Ответ:
Код написан на python
time1 = input(' ').split(':')
time2 = input(' ').split(':')
day = int()
hours = int(time1[0]) + int(time2[0])
minutes = int(time1[1]) + int(time2[1])
if minutes >= 60:
hours += 1
minutes -= 60
if hours >= 24:
day += 1
hours -= 24
print(f'{day}:{hours}:{minutes}')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
Код написан на python
time1 = input(' ').split(':')
time2 = input(' ').split(':')
day = int()
hours = int(time1[0]) + int(time2[0])
minutes = int(time1[1]) + int(time2[1])
if minutes >= 60:
hours += 1
minutes -= 60
if hours >= 24:
day += 1
hours -= 24
print(f'{day}:{hours}:{minutes}')