提交时间:2026-07-04 15:12:55
运行 ID: 75517
#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; }