#include #include const int N=105; const int INF=1<<30; int map[N][N]; int wet[N]; int vis[N]; int combine[N]; int S,T,mincut,n; void search() { int i,j,max,tmp; memset(vis,0,sizeof(vis)); memset(wet,0,sizeof(wet)); S=T=-1; for(i=0;imax) { tmp=j; max=wet[j]; } } if(T==tmp) return; S=T;T=tmp; mincut=max; vis[tmp]=1; for(j=0;j