Answers for "codeforces 1133A in python"

0

codeforces 1133A in python

sh, sm = map(int, input().split(':')) # start time
eh, em = map(int, input().split(':')) # end time

mid_m = (((sh * 60) + sm) + ((eh * 60) + em)) // 2

if mid_m >= 1440:
    mid_m = mid_m - 1440
mh = mid_m // 60
mm = mid_m - (mh * 60)

if mh < 10:
    mh = '0' + str(mh)
if mm < 10:
    mm = '0' + str(mm)
print(mh, ':', mm, sep='')
Posted by: Guest on April-16-2022

Code answers related to "codeforces 1133A in python"

Python Answers by Framework

Browse Popular Code Answers by Language