A300.苹果和虫子题解
2024-12-15 10:07:32
发布于:广东
4阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int n,x,y;
cin>>n>>x>>y;
if(n-y/x<1){
cout<<0;
}
else if(y%x==0){
cout<<n-y/x;
}
else{
cout<<n-y/x-1;
}
}
这里空空如也
有帮助,赞一个