摘要: 思路:利用它的几条性质#include#include#include#include#include#include#include#include#include#include#include#define pb push_back#define mp make_pair#define Maxn 20010#define Maxm 2000010#define LL __int64#define Abs(x) ((x)>0?(x):(-x))#define lson(x) (xdfn[u]) return 0; low[u]=min(low[u],low[v]); ... 阅读全文
posted @ 2013-09-17 21:32 fangguo 阅读(211) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #define mul(a) (a)*(a)using namespace std;const int Maxn = 210;const int Maxm = 100010;const int inf = 0x3f3f3f3f;struct ZKW_flow{ int st, ed, ecnt, n; int head[Maxn]; int cap[Maxm], cost[Maxm], to[Maxm], next[Maxm]; void init(){ memset(head, -1... 阅读全文
posted @ 2013-09-17 18:02 fangguo 阅读(281) 评论(0) 推荐(0) 编辑