Files
python/TangDou/KaoShi/秒数转时分秒.cpp

14 lines
253 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
// 7259
int main() {
int n;
cin >> n;
int h = n / 3600;
int m = (n - h * 3600) / 60;
int s = n - h * 3600 - m * 60;
printf("%02d:%02d:%02d\n", h, m, s);
return 0;
}