fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a,b,c,d,e;
  5. cin>>a;
  6. b=a/3600;
  7. c=a%3600;
  8. d=c/60;
  9. e=a%60;
  10. cout<<b<<" "<<d<<" "<<e<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5280KB
stdin
3661
stdout
1 1 1