文章
145
粉丝
217
获赞
21
访问
88.9k
#include <stdio.h>
int main()
{
int i,n,h0,m0,h,m;
while(scanf("%d",&n) != EOF)
{
for(i = 0; i < n; i++)
{
scanf("%d:%d",&h,&m);
h0 = 13,m0 = 15;
if(m0+m >= 60)
{
m = (m0+m) % 60;
h++;
}
else m = m0+m;
if(h0+h >= 24)
{
h = (h0+h) % 24;
}
else h = h0+h;
printf("%d:%d\n",h,m);
}
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发