题解
2025-11-03 19:16:37
发布于:广东
8阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int n,x,y;
int main(){
cin>>n>>x>>y;
if(y%x!=0){
cout<<n-y/x-1;
}
else{
if(n-y/x<=0){
cout<<"0";
}
else{
cout<<n-y/x;}
}
return 0;
}
这里空空如也
2025-11-03 19:16:37
发布于:广东
#include<bits/stdc++.h>
using namespace std;
int n,x,y;
int main(){
cin>>n>>x>>y;
if(y%x!=0){
cout<<n-y/x-1;
}
else{
if(n-y/x<=0){
cout<<"0";
}
else{
cout<<n-y/x;}
}
return 0;
}
这里空空如也
提交答案之后,这里将显示提交结果~
有帮助,赞一个