fork download
  1. # include <iostream>
  2.  
  3.  
  4.  
  5. using std::cout;
  6. using std::cin;
  7. using std::endl;
  8.  
  9.  
  10. int main(){
  11.  
  12. unsigned long long int sec_input, sec, min, hour, day;
  13.  
  14. cin >> sec_input;
  15. sec=sec_input%60;
  16. min=sec_input/60;
  17. hour=min/60;
  18. day=hour/24;
  19. min%=60;
  20. hour%=24;
  21.  
  22.  
  23. cout << day<<" "<<hour<<" "<<min<<" "<<sec<<endl;
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0s 3464KB
stdin
600001
stdout
6 22 40 1