Python3 题解 | #小乐乐定闹钟#
小乐乐定闹钟
http://www.nowcoder.com/practice/0f7e422e12be4a7f9958ca2a82abc775
#python3题解#
startTime, length = input().split()
length = int(length)
hour, minute = map(int, startTime.split(":"))
minute = minute + length % 60
if minute >= 60:
print(f"{(hour+length//60+1)%24:0>2}:{minute-60:0>2}")
else:
print(f"{(hour+length//60)%24:0>2}:{minute:0>2}")