提交时间:2026-07-04 16:59:52
运行 ID: 75673
#include<bits/stdc++.h> using namespace std; int A,B,C; int a; int main(){ int n;cin>>n; for(int i=0;i<n;i++){ int x;cin>>x; if(x==1)A++; esle if(x==2)B++; else C++; } if(A>B and A>C){ cout<<"A"; a = A; } if(B>C and B>A){ cout<<"B"; a = B; } if(C>B and C>B){ cout<<"C"; a=C; } if(A==B and A==C)cout<<"NONE"; if(A==B )cout<<"NONE"; if(A==C)cout<<"NONE"; if( B=C)cout<<"NONE"; }