[费用流] ACM-ICPC Asia China-Final Contest J. Mr.Panda and TubeMaster
%%%Manchery#include#include#include#include#includeusingnamespacestd;constintN=10010,inf=10){ans+=f*w;addedge(y,x,f,-w,1);addedge(SS,y,f,0,0);addedge(x,TT,f,0,0);}elseaddedge(x,y,f,w,0);}intvis[35][35