Advertisement
Spocoman

03. Time + 15 Minutes

Dec 16th, 2021 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. hours = int(input())
  2. minutes = int(input())
  3.  
  4. total_minutes = hours * 60 + minutes + 15
  5.  
  6. print(f'{total_minutes // 60 % 24}:{total_minutes % 60:02}')
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement