#include #include #include using namespace std; bool G[100][100]; bool V[100]; int Ma[100],Mb[100]; int szA,szB; bool recurse(int j) { if(V[j])return false; if(Mb[j]==-1)return true; V[j]=true; int i=Mb[j]; for(int k=0;k