Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
75605 锁米阳 选班长 C++ 解答错误 90 0 MS 256 KB 340 2026-07-04 16:03:25

Tests(9/10):


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


测评信息: