#include <stdio.h>
int main(){
int startTime, passTime, endTime;
scanf("%d %d", &startTime, &passTime);
int startTimeHoursPart = (startTime / 100) * 60;
int startTimeMinutesPart = startTime % 100;
int startTimeMinutes = startTimeHoursPart + startTimeMinutesPart;
int endTimeMinutes = startTimeMinutes + passTime;
int endTimeHoursPart = (endTimeMinutes / 60) * 100;
int endTimeMinutesPart = endTimeMinutes % 60;
endTime = endTimeHoursPart + endTimeMinutesPart;
printf("%d", endTime);
return 0;
}
2-2. 然后是几点
于 2023-08-01 12:02:25 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)