#include<stdio.h>
int main()
{
int t,d,h,m;
scanf("%d%d",&t,&d);
h=t/100;
m=t%100;
t=h*60+m+d;
h=t/60;
m=t%60;
printf("%d",h*100+m);
}
7-2 然后是几点 (C语言)
最新推荐文章于 2024-07-23 17:55:27 发布
#include<stdio.h>
int main()
{
int t,d,h,m;
scanf("%d%d",&t,&d);
h=t/100;
m=t%100;
t=h*60+m+d;
h=t/60;
m=t%60;
printf("%d",h*100+m);
}