题解 | #小乐乐定闹钟#
小乐乐定闹钟
https://www.nowcoder.com/practice/0f7e422e12be4a7f9958ca2a82abc775?tpId=290&&tqId=39830&sourceUrl=https%3A%2F%2Fwww.nowcoder.com%2Fexam%2Foj%3FquestionJobId%3D10%26subTabName%3Donline_coding_page
#include <stdio.h> int main() { int h, m,k; scanf("%d:%d %d",&h,&m,&k); printf("%02d:%02d",(h+(m+k)/60)%24,(m+k)-((k+m)/60)*60); return 0; }
也是没想到可以睡一万分钟