Advertisement
veronikaaa86

01. Sum Seconds

Jul 10th, 2022
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. first_time = int(input())
  2. second_time = int(input())
  3. third_time = int(input())
  4.  
  5. total_sec_time = first_time + second_time + third_time
  6.  
  7. total_min = total_sec_time // 60
  8. total_sec = total_sec_time % 60
  9.  
  10. if total_sec < 10:
  11. print(f"{total_min}:0{total_sec}")
  12. else:
  13. print(f"{total_min}:{total_sec}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement