#include<iostream>
using namespace std;
int c1,c2;
int main()
{
cin>>c1>>c2;
int ans;
ans=(c2-c1+50)/100;
printf("%02d:%02d:%02d",ans/3600,ans%3600/60,ans%60);
return 0;
}
PAT乙级 1026 程序运行时间
最新推荐文章于 2024-07-03 17:31:11 发布
#include<iostream>
using namespace std;
int c1,c2;
int main()
{
cin>>c1>>c2;
int ans;
ans=(c2-c1+50)/100;
printf("%02d:%02d:%02d",ans/3600,ans%3600/60,ans%60);
return 0;
}