#include <cmath>
#include <iostream>
using namespace std;
int main(){
int sec,min,hour;
cin >> sec;
hour = sec / 3600;
sec %= 3600;
min = sec / 60;
sec %= 60;
cout << hour << " " << min << " " << sec;
return 0;
}
Объяснение:
#include <cmath>
#include <iostream>
using namespace std;
int main(){
int sec,min,hour;
cin >> sec;
hour = sec / 3600;
sec %= 3600;
min = sec / 60;
sec %= 60;
cout << hour << " " << min << " " << sec;
return 0;
}
Объяснение: