SHARE
TWEET

best

dimuster Sep 19th, 2019 (edited) 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int N, H, M, m, S, s;
  7.     cin >> N;
  8.     H = N / 3600 % 24;
  9.     M = N % 3600 / 60 / 10;
  10.     m = N % 3600 / 60 % 10;
  11.     S = N % 3600 % 60 / 10;
  12.     s = N % 3600 % 60 % 10;
  13.     cout << H << ":" << M << m << ":" << S << s;
  14.     return 0;
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top