lanqiao 1452 时间显示

This commit is contained in:
2025-04-03 09:37:03 +08:00
parent 5d97080c21
commit 0efe76d48a

18
12lanqiao/test6.cpp Normal file
View File

@@ -0,0 +1,18 @@
// lanqiao 1452 时间显示
#include<bits/stdc++.h>
using namespace std;
#define int long long // 10e18 需要开long long
signed main(){
int n; cin >> n;
n /= 1000;
int h = n / 3600;
n -= h * 3600;
int m = n / 60;
n -= m * 60;
h %= 24;
printf("%02d:%02d:%02d\n", h, m, n);
return 0;
}
/* test samples -> 13:00:00 01:08:23
46800999 1618708103123
*/