苹果和虫子
2025-07-30 21:02:55
发布于:上海
0阅读
0回复
0点赞
以下是这道题的题解:#include<iostream>
using namespace std;
int main()
{
int n,x,y;
cin>>n>>x>>y;
if (y%x >= 1)
{
if ((n-y/x-1) < 0)
{
cout<<0;
}
else
{
cout<<n-y/x-1;
}
}
else
{
if ((n-y/x) < 0)
{
cout<<0;
}
else
{
cout<<n-y/x;
}
}
}
这里空空如也
有帮助,赞一个