Lucian_Adrian

#3062 vas

Sep 21st, 2021
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int x, t , y;
  6. cin >> x >> t >> y;
  7. long long int rez = 0;
  8. while(x > y)
  9. {
  10. x = x - (x/4);
  11. rez += t;
  12. }
  13. cout << rez;
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment