Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
75600 郭依宸 选班长 C++ 解答错误 10 1 MS 244 KB 407 2026-07-04 16:00:53

Tests(1/10):


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


测评信息: