学习目标: 用C++编写简单程序 学习内容: #include<iostream> using namespace std; int main() { int n,x,y; cin>>n>>x>>y; if(n-y/x>0){ if(y%x==0){ n=n-y/x; cout<<n<<endl; } else{ n=n-y/x-1; cout<<n<<endl; } } else cout<<0<<endl; return 0; }