```
int a[n+1];
```
你怎么可以用变量定义呢
by flame_soul @ 2022-08-05 16:57:51
@[hjsxhst2022](/user/745903) 方法不行,建议重新思考
by flame_soul @ 2022-08-05 17:01:59
@[hjsxhst2022](/user/745903) 同上,错误过多(帮你交了几十次,各种颜色都有QAQ)
by Cstdio_Rabbit @ 2022-08-05 17:27:49
数组太大了,这题5MB,而且你这个方法。。。还有防越界的办法我是第一次见,时间空间双重爆炸
by Kniqht @ 2022-08-31 15:53:49
## _if a numble appear more than N divided by 61 , it is answer_
## $hack$数据太差了
```cpp
#include<bits/stdc++.h>
using namespace std;
#define MAXN 61 // n / MAXN
inline int read()
{
int x=0;char ch=getchar();
while (ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
return x;
} // fast read
int main()
{
int n=read();
map<int,int> mp;
for(int i=0;i<n;i++) {
int t=read();
if(mp[t]>=(n/MAXN)) {//多次
cout<<t;//剪枝
return 0;
}
mp[t]<=0 ? mp[t]=1 : mp[t]++; //第一次
}
}
```
by ___njr___ @ 2022-10-28 19:41:39
@liuhaodong2021# 桶标记
by ___njr___ @ 2022-10-28 19:42:46