1026 程序运行时间

1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#define CLK_TCK 100
using namespace std;
int main() {
int c1,c2;
scanf("%d %d",&c1,&c2);
int second = (c2-c1+50)*1.0/CLK_TCK;
int hour = second/3600;
int minute = (second%3600)/60;
int s = second-hour*3600-minute*60;
printf("%02d:%02d:%02d",hour,minute,s);
return 0;
}

1026 程序运行时间
https://pisces34.github.io/2021/05/08/patB/basic-1026/
发布于
2021年5月8日
许可协议