'commit'
This commit is contained in:
14
TangDou/KaoShi/秒数转时分秒.cpp
Normal file
14
TangDou/KaoShi/秒数转时分秒.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user