@[ljh6jz](/user/157147)
用map试试
```cpp
map<int,int>a;
by Cstdio_Rabbit @ 2021-09-06 19:42:47
j 可能大于1.8e4,越界了
by Fan_Tuan @ 2021-09-06 19:43:17
@[ljh6jz](/user/157147)
```cpp
int a[MAXN<<2];
by Cstdio_Rabbit @ 2021-09-06 19:48:22
解决了,谢谢各位巨佬
by ljh6jz @ 2021-09-06 20:36:28