Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hours = int(input())
- minutes = int(input())
- minutes += 15 # minutes = minutes + 15
- hours += minutes // 60
- minutes %= 60
- if hours > 23:
- hours -= 24
- print(f'{hours}:{minutes:02d}') # вместо if minutes <10: print с 0
Advertisement
Add Comment
Please, Sign In to add comment