#include <iostream>
#include <stdio.h>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;
int main(int argc, char const *argv[])
{
double c1,c2;
cin >> c1 >> c2;
int h,m,s;
s=round((c2-c1)/100);
h=int(s/60/60);
m=int((s/60)-h*60);
s=s-h*60*60-m*60;
printf("%02d:%02d:%02d\n",h,m,s);
return 0;
}
PAT (Basic Level) Practice 1026 程序运行时间 (15分)
最新推荐文章于 2020-08-24 18:38:20 发布