1026.程序运行时间 时间转化:60进制转化
#include <iostream> #define CLK_TCK 100 using namespace std; int main() { int c1,c2; cin>>c1>>c2; double x=(c2-c1)/CLK_TCK; if(int(x)!= x)x+=1; printf("%02d:%02d:%02d\n",int(x/3600),int(x/60)%60,int(x)%60); return 0; }