Advertisement
veronikaaa86

01. Sum Seconds

May 15th, 2022
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. first = int(input())
  2. second = int(input())
  3. third = int(input())
  4.  
  5. total_time = first + second + third
  6.  
  7. minutes = total_time // 60
  8. seconds = total_time % 60
  9.  
  10. if seconds < 10:
  11. print(f"{minutes}:0{seconds}")
  12. else:
  13. print(f"{minutes}:{seconds}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement