Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hour = int(input())
- minutes = int(input())
- timer = minutes+15
- if timer < 60:
- hour = hour
- minutes = timer
- elif timer >=60:
- hour = hour + timer // 60
- minutes = timer % 60
- if hour == 24:
- hour=0
- print(f"{hour}:0{minutes}" if minutes<10 else f"{hour}:{minutes}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement