bl00dt3ars

01. Sum Seconds

Oct 12th, 2020 (edited)
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. first_time = int(input())
  2. second_time = int(input())
  3. third_time = int(input())
  4. total_time_min = (first_time + second_time + third_time) // 60
  5. total_time_sec = (first_time + second_time + third_time) % 60
  6.  
  7. if total_time_sec < 10:
  8.     print(f"{total_time_min}:0{total_time_sec}")
  9. else:
  10.     print(f"{total_time_min}:{total_time_sec}")
Add Comment
Please, Sign In to add comment