Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
153550 余建成 19选班长 C++ Accepted 1 MS 272 KB 255 2026-05-22 19:07:48

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,p,t[100]={},max=0,xh; cin>>n; for(int i=1;i<=3*n;i++){ cin>>p; t[p]++; } for(int i=1;i<=n;i++){ if(max<t[i]){ max=t[i]; xh=i; } } cout<<xh; return 0; }