摘要:
SAM I AM UVA - 11419 二分图最小覆盖 二分图的最小顶点覆盖数等于最大匹配数。 且选择的顶点为: 从左边未被匹配的点开始扩展匈牙利树,标记树中的所有节点,取左边未被标记的和右边被标记的。 1 #include <bits/stdc++.h> 2 using namespace st 阅读全文
摘要:
dijkstra 1 const int inf=0x3f3f3f3f; 2 const int maxv=1010; 3 const int maxe=1010; 4 5 struct Edge 6 { 7 int u,v,w; 8 int nex; 9 }e[maxe<<1]; 10 int h 阅读全文