全部评论 1

  • #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    //n箱苹果,x小时吃一个,y小时后,剩s个
    int s,n,x,y;
    cin>>n>>x>>y;
    if(y%x==0) s=n-y/x;
    else s=(n-y/x)-1;
    if(s>0) cout<<s;
    else cout<<0;
    return 0;
    }

    2026-09-12 来自 浙江

    0
暂无数据

提交答案之后,这里将显示提交结果~

首页