#include<stdio.h>
#include<iostream>
#include<math.h>
using namespace std;
int C =100;
int main()
{
double C1,C2;
cin>>C1>>C2;
int c1 = round((C2-C1)/C);
int h, m, s;
h = c1 / 3600;
m = c1 / 60 % 60;
s = c1 % 60;
printf("%02d:%02d:%02d\n",h,m,s);
system("pause");
return 0;
}
PAT 乙级 1026 程序运行时间 (15分)
最新推荐文章于 2024-09-04 13:30:22 发布