#include #include #include #include #include #include #include using namespace std; typedef long long ll; vectorG[111]; int n; int vis[111]; int maze[111][111]; int cnt; void iscircle(int x){ vis[x] = 1; int sz = G[x].size(); for(int i=0;i::iterator it = G[a].begin(); for(;it!=G[a].end();it++){ if(*it == b){ G[a].erase(it);break; } } vector::iterator its = G[b].begin(); for(;its!=G[b].end();its++){ if(*its == a){ G[b].erase(its);break; } } if(isliantong()) ans++; G[a].push_back(b); G[b].push_back(a); } //printf("fff %d\n",ans); int ans2 = 0; for(int i=0;i::iterator it = G[a].begin(); for(;it!=G[a].end();it++){ if(*it == b){ G[a].erase(it);break; } } vector::iterator its = G[b].begin(); for(;its!=G[b].end();its++){ if(*its == a){ G[b].erase(its);break; } } if(isliantong()){ for(int j=0;j