1026 程序运行时间
这个题需要注意的是输出的格式:运行时间必须按照 hh:mm:ss(即2位的 时:分:秒)格式输出
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
int main()
{
long long c1, c2;
cin >> c1 >> c2;
long long times = (c2 - c1);
long long t = int(double(c2 - c1) / 100 + 0.5);
int hour = t / 3600;
t = t % 3600;
int minute = t / 60;
t = t % 60;
int second = t ;
printf("%02d:%02d:%02d\n", hour, minute, second);
return 0;
}