1 4WA,求大佬相助
查看原帖
1 4WA,求大佬相助
1020330
5ooii7楼主2023/7/22 14:56
#include<bits/stdc++.h>//非抄袭题解,可查看我发的帖子 
using namespace std;
int m,t,s;
int main(){
    cin>>m>>t>>s;
    if(t==0){
        cout<<0;
        return 0;
    }
    if(s%t==0) cout<<max(m-s/t,0);
    else cout<<m-(s/t*0.1);
    return 0;
}
2023/7/22 14:56
加载中...