dinic
文章平均质量分 83
mhlwsk
这个作者很懒,什么都没留下…
展开
-
[POJ1273]草地排水 dinic模板
这题可以作为网络流模板看,这里贴一下自己的dinic模板#include <iostream> #include <algorithm> #include <cstring> #include <queue> #include <cstdio> using namespace std; const int inf=0x3fffffff,N=400,M=500; int d[N],head[N],ve原创 2016-03-02 14:05:50 · 1025 阅读 · 0 评论 -
[POJ2112]Optimal Milking 做题笔记
Description FJ has moved his K (1 <= K <= 30) milking machines out into the cow pastures among the C (1 <= C <= 200) cows. A set of paths of various lengths runs among the cows and the milki原创 2016-03-03 16:40:56 · 373 阅读 · 0 评论 -
[POJ1149]PIGS 做题笔记
Description Mirko works on a pig farm that consists of M locked pig-houses and Mirko can’t unlock any pighouse because he doesn’t have the keys. Customers come to the farm one after another.原创 2016-03-03 17:20:08 · 307 阅读 · 0 评论