fumanbest

Time+15minutes

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