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