Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_time = int(input())
- second_time = int(input())
- third_time = int(input())
- total_time_sec = first_time + second_time + third_time
- minutes = total_time_sec // 60
- seconds = total_time_sec % 60
- if seconds <= 9:
- print(f"{minutes}:0{seconds}")
- else:
- print(f"{minutes}:{seconds}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement