| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61502 | 夏轩淇 | 19众数 | C++ | Output Limit Exceeded | 1 MS | 276 KB | 307 | 2023-12-09 17:59:35 |
#include<iostream> using namespace std; int n,x,t[1001]; int main(){ cin>>n; for(int i=1;i<=1000;i++){ t[i]=0; } for(int i=1;i<=n;i++){ cin>>x; t[x]++; } int ma=0; for(int i=0;i<=1000;i++){ if(t[i]>ma){ ma=t[i]; } } for(int i=0;i<=1000;i++){ cout<<i<<" "; } }