题解 | #小乐乐定闹钟#
小乐乐定闹钟
http://www.nowcoder.com/practice/0f7e422e12be4a7f9958ca2a82abc775
h, m, k = map(int, input().replace(":", " ").split(" "))
h = (h + (m+k) // 60) % 24
m = (m+k) % 60
print("%02d:%02d" % (h, m))
小乐乐定闹钟
http://www.nowcoder.com/practice/0f7e422e12be4a7f9958ca2a82abc775
h, m, k = map(int, input().replace(":", " ").split(" "))
h = (h + (m+k) // 60) % 24
m = (m+k) % 60
print("%02d:%02d" % (h, m))
相关推荐