#include<stdio.h>
int HmsToS(int h, int m, int s)
{
int x;
x=h*3600+m*60+s;
return x;
}
PrintTime(int x)
{
int a,b,c;
a=x/3600;
b=x%3600/60;
c=x%60;
printf("%02d:%02d:%02d\n",a,b,c);
}
int main()
{
int h1,m1,s1,h2,m2,s2,x;
while(scanf("%02d:%02d:%02d\n%02d:%02d:%02d",&h1,&m1,&s1,&h2,&m2,&s2)!=EOF)
{
x=HmsToS(h2,m2,s2)-HmsToS(h1,m1,s1);
printf("%d",PrintTime(x));
}
}
zzulioj1095-
最新推荐文章于 2024-05-21 20:29:42 发布