Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1. времената на тримата
- # 2. общо време (секунди) = време1 + време2 + време3
- # 3. общо време в секунди => минути и секунди
- # 4. печатаме -> проверка за секундите
- time_first = int(input())
- time_second = int(input())
- time_third = int(input())
- total_time = time_first + time_second + time_third
- minutes = total_time // 60
- seconds = total_time % 60
- if seconds < 10:
- print(f"{minutes}:0{seconds}")
- else:
- print(f"{minutes}:{seconds}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement