fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin>>n;
  7. cout<<n/86400<<" "<<(n%86400)/3600<<" "<<((n%86400)%3600)/60<<" "<<n%60;
  8. return 0;
  9. }
Success #stdin #stdout 0s 4244KB
stdin
899650
stdout
10 9 54 10