请教一下大佬为何20分剩下的全部RE

P1571 眼红的Medusa

``` #include<bits/stdc++.h> #define For(i,j,k) for(i=j;i<=k;i++) using namespace std; int n,m,a[100001],b[100001],t,i; int main() { scanf("%d%d",&n,&m); For(i,1,n) { int x; scanf("%d",&x); if(i==1) t=x; a[x]++; b[i]=x; } For(i,1,m) { int x; scanf("%d",&x); a[x]++; } int p=1; for(i=b[p];i!=0;i=b[p]) { if(a[i]==2) { printf("%d ",b[p]); } p++; } return 0; } ```
by Herry_NY @ 2018-07-12 19:11:11


@[33616354czf411](/space/show?uid=21082) 请认真读题 2*10^9,int不够吧
by 亚索s @ 2018-08-19 15:51:14


@[亚索s](/space/show?uid=92553) 2*10^9 int应该是够的吧 并且我开了 ll依旧RE 我也是醉
by 学而 @ 2018-08-28 15:37:45


|