Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. main()
  4. {
  5. int h,a,b,n=1;
  6. cin>>h>>a>>b;
  7. if(a<h){n+=(h-a)/(a-b);
  8. if((h-a)%(a-b)>0)n++;
  9. }
  10. cout<<n;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement