Advertisement
Brankicaj

LENKA

Mar 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int s, m, s2, m2;
  8. cin >> s >> m;
  9.  
  10. if(m==0)
  11. {s2=24-s;
  12. m2=0;}
  13. else
  14. {
  15. if(m>0)
  16. s2=24-s-1;
  17. m2=60-m;
  18. }
  19.  
  20. cout << s2<< " "<< m2<< endl;
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement