想了想还是转学术版吧(
从输出所省略的额外重寻址溢出
请问这是啥意思
代码:
#include<bits/stdc++.h>
using namespace std;
bool qwq[100001][100001];
int n,m,a,b;
char c;
bool t[100001];
int main()
{
memset(qwq,true,sizeof(qwq));
cin>>n>>m;
while(m--)
{
cin>>c>>a>>b;
if(c=='D')
qwq[a][b]=qwq[b][a]=0,t[a]=t[b]=1;
if(c=='A')
{
if(t[a]==0 || t[b]==0)
printf("not sure\n");
else
{
if(qwq[a][b])
printf("same\n");
else
printf("different\n");
}
}
}
return 0;
}