标签:main target name 时间 get iostream tle http 程序运行时间
题目链接:https://pintia.cn/problem-sets/994805260223102976/problems/994805295203598336
题解:
1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 int c1, c2, hh, mm, ss; 6 cin >> c1 >> c2; 7 int temp = (c2 - c1 + 50) / 100;//四舍五入,易错 8 hh = temp / 3600, mm = temp % 3600 / 60, ss = temp % 3600 % 60; 9 if (hh < 10) cout << "0"; 10 cout << hh << ":"; 11 if (mm < 10) cout << "0"; 12 cout << mm << ":"; 13 if (ss < 10) cout << "0"; 14 cout << ss; 15 return 0; 16 }
标签:main target name 时间 get iostream tle http 程序运行时间
原文地址:https://www.cnblogs.com/Gzu_zb/p/9567085.html