定闹钟_python3

小乐乐定闹钟

http://www.nowcoder.com/questionTerminal/0f7e422e12be4a7f9958ca2a82abc775

while True:
    try:
        t, s = input().split()
        h, m = map(int, t.split(':'))
        print('{:02d}:{:02d}'.format((h+(m+int(s))//60)%24, (m+int(s))%60))
    except EOFError:
        break
全部评论

相关推荐

评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务