请求加强数据
查看原帖
请求加强数据
839021
gzh090820楼主2025/1/17 14:22
#include<bits/stdc++.h>
using namespace std;
int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int m,t,s;
    cin>>m>>t>>s;
    if(t==0){
        cout<<0<<endl;
        exit(0);
    }
    int ans=m-s/t;
    ans= ans<0?0:ans;
    cout<<ans<<endl;
    
    return 0;
}

我这份代码在完全没有考虑题目中所要求的"完整"苹果数量的情况下过了4个点,只WA在了第四个,数据会不会有点水啊

2025/1/17 14:22
加载中...