fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. inline void fast() {
  5. ios_base::sync_with_stdio(0);
  6. cin.tie(0);
  7. cout.tie(0);
  8. }
  9.  
  10. void solve() {
  11. int x, y, z; cin >> x >> y >> z;
  12.  
  13. int cntr=0;
  14. for(int i=x; i<=200; i+=y) {
  15. if(i==z) break;
  16. cntr++;
  17. }
  18.  
  19. cout << cntr << endl;
  20.  
  21. }
  22.  
  23. int main() {
  24. fast();
  25.  
  26. solve();
  27.  
  28. return 0;
  29. }
  30.  
  31.  
  32.  
  33.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
0