AC
2026-09-26 22:12:34
发布于:广东
0阅读
0回复
0点赞
#include<bits/stdc++.h>//头文件
using namespace std;
int main(){//主函数
int n,x,y;//定义变量
cin>>n>>x>>y;//输入变量
if(y/x>=n){//虫子是否会把苹果吃完
cout<<"0";//吃完输出0
}
else if(y%x>0){
cout<<n-(y/x+1);
}
else{
cout<<n-(y/x);
}
return 0;
}
这里空空如也


有帮助,赞一个