社区讨论
1 4WA,求大佬相助
P5709【深基2.习6】Apples Prologue / 苹果和虫子参与者 2已保存回复 2
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 2 条
- 当前快照
- 1 份
- 快照标识符
- @lo24p0ad
- 此快照首次捕获于
- 2023/10/23 07:57 2 年前
- 此快照最后确认于
- 2023/11/03 08:15 2 年前
CPP
#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;
}
回复
共 2 条回复,欢迎继续交流。
正在加载回复...