社区讨论
90分求解
B4418[语言月赛 202510] 选择题参与者 3已保存回复 5
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 5 条
- 当前快照
- 1 份
- 快照标识符
- @mjodzktf
- 此快照首次捕获于
- 2025/12/27 22:19 2 个月前
- 此快照最后确认于
- 2025/12/30 21:30 2 个月前
CPP
#include <bits/stdc++.h>
#define ll long long
#define endl "\n"
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int a, b, c, d;
cin >> a >> b >> c >> d;
if (a == b || a == c || b == c){
cout << "Report" << endl;
return 0;
}
if (a == d){
cout << "A" << endl;
}else if (b == d){
cout << "B" << endl;
}else if (c == d){
cout << "C" << endl;
}else{
if (a == min(max(a,b),c)){
cout << "A" << endl;
}else if (b == min(max(a,b),c)){
cout << "B" << endl;
}else{
cout << "C" << endl;
}
}
return 0;
}
回复
共 5 条回复,欢迎继续交流。
正在加载回复...