【C】#小乐乐定闹钟#
小乐乐定闹钟
https://www.nowcoder.com/practice/0f7e422e12be4a7f9958ca2a82abc775
#include <stdio.h> int main() { int hour, minute, k; scanf("%d:%d %d", &hour, &minute, &k); printf("%02d:%02d", ((k + minute) / 60 + hour) % 24, (k + minute) % 60); return 0; }