Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- long long x,t,y,z=0;
- int main()
- {
- cin >> x >> t >> y;
- while(x>y)
- {
- x=x-x/4;
- z++;
- }
- cout << z*t;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement