| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122268 | 晏莞煜 | 19选班长 | C++ | Wrong Answer | 1 MS | 272 KB | 309 | 2025-06-15 09:48:27 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int a[n]={0}; for(int i=1;i<=n;i++){ for(int q=1;q<=3;q++){ int m; cin>>m; a[m]++; } } int u=0,j=1; u=a[1]; for(int i=2;i<=n;i++){ if(u<a[i]){ u=a[i]; j=i; } } cout<<j; return 0; }
------Input------
10 2 10 9 1 7 9 7 7 9 10 3 1 7 5 2 2 8 2 1 10 5 8 3 3 2 3 4 3 7 9
------Answer-----
2
------Your output-----
10