Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
122037 胡汪兵-小胡老师 19选班长 C++ Time Limit Exceeded 1000 MS 280 KB 286 2025-06-14 10:00:36

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a[11]={0},n,max=0,p,bh; cin>>n; for(int i=1;i<=n;i++) { for(int j=1;i<=3;j++) { cin>>p; a[p]++; } } for(int i=1;i<=n;i++) if(a[i]>max) { max=a[i]; bh=i; } cout<<bh; }