fork download
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main() {
  6. int h, a, b;
  7.  
  8. cin >> h >> a >> b;
  9. const int v = a - b;
  10.  
  11. cout << (h - a + v) / v;
  12. return 0;
  13. }
Success #stdin #stdout 0s 5320KB
stdin
10 4 1
stdout
3