1
刘鑫泽
修练者
修练者
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,a,cnt1=0,cnt2=0,cnt3=0,sum=0,maxn=-0x3f3f3f3f;
bool flag=0;
cin>>n;
while(true){
cin>>a;
if(a==-1){
break;
}
if(a==1){
cnt1++;
}
if(a==2){
cnt2++;
}
if(a==3){
cnt3++;
}
cout<<"cnt1="<<cnt1<<" cnt2="<<cnt2<<" cnt3="<<cnt3<<endl;
}
sum=cnt1+cnt2+cnt3;
cout<<cnt1<<endl<<cnt2<<endl<<cnt3<<endl;
cout<<sum<<endl;
if(cnt1>sum/2){
cout<<"酷酷-yes";
}else if(cnt2>sum/2){
cout<<"町町-yes";
}else if(cnt3>sum/2){
cout<<"猫猫-yes";
}else{
cout<<"all-no";
}
return 0;
}