PAT 乙级 1026 程序运行时间 #include <bits/stdc++.h> using namespace std; const int CLK = 100; int main() { int c1, c2; cin >> c1 >> c2; int t = round((double)(c2 - c1) / CLK); // 记得浮点化后再除,然后四舍五入 printf("%02d:%02d:%02d", t / 3600, t / 60 % 60, t % 60); return 0; }