Advertisement
Josif_tepe

Untitled

Feb 10th, 2021
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int P, T;
  6.     cin >> P >> T;
  7.     P *= 120; // 2 cekori vo sekunda, 60 * 2 cekori vo minuta
  8.     T *= 240; // 4 cekori vo sekunda, 60 * 4 cekori vo minuta
  9.     cout << 10000 - P - T << endl;
  10.    
  11.     return 0;
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement