题解:无(注意下四舍五入和输出格式即可)
题目地址:https://www.nowcoder.com/questionTerminal/fabbb85fc2d342418bcacdf0148b6130
1 /** 2 * 3 *作者:Ycute 4 *时间:2019-11-02-11.19.47 5 *题目题意简单描述:无 6 */ 7 8 9 #include<iostream> 10 #include<cmath> 11 #include<cstring> 12 #include<algorithm> 13 #include<vector> 14 using namespace std; 15 16 17 int main(){ 18 int c1,c2; 19 scanf("%d %d",&c1,&c2); 20 double temp=(c2-c1)*1.0/100; 21 int s=(int)(temp+0.5); 22 int hh=s/3600; 23 int mm=s%3600/60; 24 int ss=s%60; 25 printf("%02d:%02d:%02d ",hh,mm,ss); 26 return 0; 27 }