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 sek, SEKONDS, min, hour, day;
  13.  
  14. cin >> sek;
  15. day = sek / (86400);
  16.  
  17. hour = (sek % (60 * 60)) / 24;// здесь надо sek/ 3600
  18. min = (sek % (60 * 60))/60;
  19. SEKONDS = sek % 60;
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
Standard output is empty