csansoon

P1.13 P37469 Time decomposition (1)

Sep 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6.     int n,s,m,h;
  7.     cin >> n;
  8.     h=n/3600;
  9.     n=n%3600;
  10.     m=n/60;
  11.     s=n%60;
  12.     cout << h << " " << m << " " << s << endl;
  13. }
Add Comment
Please, Sign In to add comment