Sichanov

time+15

Jan 18th, 2021
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. hours = int(input())
  2. minutes = int(input())
  3. minutes += 15
  4. hours += minutes // 60
  5. minutes %= 60
  6. if hours > 23:
  7.     hours -= 24
  8. print(f'{hours}:{minutes:0>2d}')
Advertisement
Add Comment
Please, Sign In to add comment