Advertisement
Josif_tepe

Untitled

Oct 29th, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n, m;
  8.     cin >> n >> m;
  9.     int nivoa = 0;
  10.     while (m >= n)
  11.     {
  12.         m -= n;
  13.         m += 3;
  14.         nivoa += 1;
  15.     }
  16.     cout << nivoa << endl;
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement