Sichanov

time+15

Apr 16th, 2021
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. hours = int(input())
  2. minutes = int(input())
  3. minutes += 15  # minutes = minutes + 15
  4. hours += minutes // 60
  5. minutes %= 60
  6. if hours > 23:
  7.     hours -= 24
  8. print(f'{hours}:{minutes:02d}') # вместо if minutes <10: print с 0
Advertisement
Add Comment
Please, Sign In to add comment