#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);
}
版权声明:本文为zmj_journey原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
#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);
}