| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 140850 | 李折曦 | 19买画笔 | C++ | Wrong Answer | 0 MS | 276 KB | 271 | 2025-12-20 13:53:45 |
#include<bits/stdc++.h> using namespace std; int main() { int n,a[1001]={0},b,max=0,index; cin>>n; for(int i=1;i<=n;i++){ cin>>b; a[b]++; } for(int i =1;i<=1000;i++){ if(a[i]>max){ max=a[i]; index=i; } } cout<<index; return 0; }
------Input------
9 1 1 9 11 3 3 11 5 9
------Answer-----
5
------Your output-----
1