fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, a;
  6. cin >> n >> a;
  7. a = n % 60;
  8. n = n / 60;
  9. cout << n << " часов, " << a << " минут" << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5268KB
stdin
1438
stdout
23 часов, 58 минут