| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 70990 | 孙嘉言 | 19众数 | C++ | Output Limit Exceeded | 1 MS | 268 KB | 296 | 2024-04-20 17:29:36 |
# include<iostream> using namespace std; int main(){ int n,m,a[1000],max=0; cin>>n; for(int i=0;i<n;i++){ cin>>m; a[m]++; for(int i=1;i<=n;i++){ cout<<a[m]<<" "; } } for(int i=1;i<=1000;i++){ if(a[i]>a[max])max=i; }cout<<max<<endl; return 0; }