#include #include #include #include using namespace std; #define BLACK 100 #define WHITE 200 #define FOR(i,n) for(int i=0;i best1; FOR(i,N) if(best[i]==BLACK) best1.push_back(i+1); int len=best1.size(); FOR(i,len) { cout<>test; A=new int*[101]; FOR(i,101) A[i]=new int[101]; while(test--){ cin>>n>>k; FOR(i,n) FOR(j,n) A[i][j]=0; FOR(i,k) { cin>>x>>y; A[x-1][y-1]=1; A[y-1][x-1]=1; } int mc=-1,c=0; FOR(i,n) { g.assign(A); c=g.Dfs(i); if(mc