Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
75517 卢俊霖 选班长 C++ 通过 100 0 MS 248 KB 406 2026-07-04 15:12:55

Tests(10/10):


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


测评信息: