随笔分类 - 网络流
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int N = 210;10 const int M=1001000;11 const...
阅读全文
摘要:具体建模是:从 s 连边到所有正权点,流量为这个点的权值;从所有负权点连边到 t,流量为这个点的权值的绝对值;对 E中的所有边 ,从 u 连一条边到 v,流量为 INF。 转自:http://shu-mj.com/archives/244 S,T两个集合最小割一定是简单割 最小割C=Sc+Tv ...
阅读全文

浙公网安备 33010602011771号