| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122352 | 顾文博 | 19选班长 | C++ | Accepted | 1 MS | 272 KB | 511 | 2025-06-15 15:10:27 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,a[11]={0},s,max=0,b=0; cin>>n; for(int i=1;i<=n*3;i++){ cin>>s; a[s]+=1; } for(int i=1;i<=n;i++){ if(a[i]>b){ max=i; b=a[i]; } } cout<<max; return 0; }