Josif_tepe

Untitled

Dec 22nd, 2023
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8.     int P;
  9.     cin >> P;
  10.     int V;
  11.     cin >> V;
  12.     int K = P-V;
  13.     int x = K/5;
  14.     int y = K%5;
  15.     int z = y/2;
  16.     int a = y%2;
  17.     int zbir = x+z+a;
  18.     cout << zbir << endl;
  19.  
  20.  
  21.  
  22.     return 0;
  23. }
  24.  
Add Comment
Please, Sign In to add comment