题解
2024-10-07 10:45:12
发布于:广东
11阅读
0回复
0点赞
#include<iostream>
using namespace std;
int Map[105][105];
int n,m,q;
int main(){
cin>>n>>m>>q;
for(int i=0;i<m;i++){
int u,v;
cin>>u>>v;
Map[u][v]=Map[v][v]=1;
}
for(int i=0;i<q;i++){
int x,y;
cin>>x>>y;
if(Map[x][y]||Map[y][x]){
cout<<"Cancel"<<endl;
}else{
cout<<"Accepted"<<endl;
}
}
return 0;
}
这里空空如也
有帮助,赞一个