社区讨论
60pts
B4052 [语言月赛 202411] Giants参与者 1已保存回复 1
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 1 条
- 当前快照
- 1 份
- 快照标识符
- @m3sskg36
- 此快照首次捕获于
- 2024/11/22 21:43 去年
- 此快照最后确认于
- 2025/11/04 14:10 4 个月前
CPP
#include<bits/stdc++.h>
using namespace std;
int main(){
int type,a,b,c,d;
cin>>type>>a>>b>>c>>d;
if(type==0){
cout<<a+b;
}
if(type==1){
cout<<max(a-c,0)+(b-d,0);
}
return 0;
}
为什么WA 2个点?
回复
共 1 条回复,欢迎继续交流。
正在加载回复...