然后是几点
1 #include<stdio.h> 2 int main(void) 3 { 4 int now, delay; 5 int minutes; 6 int after_hour, after_minute; 7 8 scanf("%d %d", &now, &delay); 9 minutes = now / 100 * 60 + now % 100; //时间换算成分钟 10 11 after_hour = (minutes + delay) / 60; 12 after_minute = (minutes + delay) % 60; 13 14 printf("%d%02d\n", after_hour,after_minute); 15 16 return 0; 17 }