#include #include #include #include #include using namespace std; #define inf (1<<29) const int maxn = 105; int g[maxn][maxn],a[maxn][maxn],p[maxn]; bool vis[maxn],combine[maxn],par[maxn]; int d[maxn],node[maxn],st[maxn],k,s,t; vector vst[maxn]; vector pa , pb; int prim(int n) { memset(vis,0,sizeof(vis)); memset(d,0,sizeof(d)); int mincut = 0 , tmp = -1; s = t = -1; int top = 0; for(int i=0;imaxi) { tmp = u; maxi = d[u]; } } st[top++] = tmp; vis[tmp] = true; if(i == k-1) mincut = d[tmp]; for(int j=0;j t) { int n = t.size(); for(int i=0;i= K) return 1; vector x , y; for(int i=0;i t; for(int i=0;i