im11

Untitled

Sep 19th, 2021
722
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hour = int(input())
  2. minutes = int(input())
  3. minutes += 15
  4. hour += minutes // 60
  5. minutes %= 60
  6.  
  7.  
  8. # if hour > 23:
  9. #     hour = 0
  10.  
  11. hour %= 24
  12.  
  13. if minutes < 10:
  14.     print(f"{hour}:0{minutes}")
  15. else:
  16.     print(f"{hour}:{minutes}")
RAW Paste Data