网络流Dinic模板
摘要:
1 #define INF 2000000000 2 #define typec int//type of cost 3 const int pN=600000,eN=3000000; 4 struct Edge{ 5 int u,v,next; 6 typec w; 7 }; 8 Edge edge[eN]; 9 int en,head[pN],cur[pN],ps[pN],dep[pN];10 void insert(int u,int v,typec w){11 edge[en].u=u;12 edge[en].v=v;13 edge[en].w... 阅读全文
posted @ 2012-08-13 20:57 acoderworld 阅读(73) 评论(0) 推荐(0)
浙公网安备 33010602011771号