Run ID:155195

提交时间:2026-06-05 18:49:50

#include<bits/stdc++.h> using namespace std; int main(){ int d=0,a=0,b=0,c=0,tot=0,max=0; while(1){ cin>>d; if(d==-1){ break; } if(d==1) a++; else if(d==2) b++; else if(d==3) c++; tot++; } printf("A=%d\nB=%d\nC=%d\nTot=%d\n",a,b,c,tot); tot=double(tot)/2; if(a>tot) cout<<"A-yes"; else if(b>tot) cout<<"B-yes"; else if(c>tot)cout<<"C-yes"; else cout<<"all-No"; return 0; }