Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
75522 廖元方 选班长 C++ 解答错误 90 0 MS 252 KB 359 2026-07-04 15:16:13

Tests(9/10):


#include<bits/stdc++.h> using namespace std; int a[100]; int A,B,C; int main(){ int n;cin>>n; for(int i=0;i<n;i++){ cin>>a[i]; if(a[i]==1)A++; else if(a[i]==2)B++; else C++; } if(A!=B and A!=C and B!=C){ if(A>B and A>C)cout<<"A"; if(B>A and B>C)cout<<"B"; if(C>B and C>A)cout<<"C"; }else{ cout<<"NONE"; } return 0; }


测评信息: