fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int n,y,x,a;
  7. cin>>n;
  8. cin>>x;
  9. cin>>y;
  10. if(y%x==0) a=y/x;
  11. else a=y/x+1;
  12. cout<<n-a;
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5284KB
stdin
10
2
3
stdout
8