提交时间:2020-07-31 19:37:29

运行 ID: 5369

#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y,ans; cin>>n>>x>>y; if(y!=0&&x!=0){ ans=n-y/x-y%x; cout<<ans;} else if(x==0||y==0) cout<<n; return 0; }