fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, x, y, rest;
  6. cin >> n >> x >> y;
  7. if (y%x==0)
  8. rest = n - y / x;
  9. else
  10. rest = n - (y / x + 1);
  11. if (rest < 0)
  12. rest = 0;
  13. cout << rest << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 4452KB
stdin
Standard input is empty
stdout
21913