随笔分类 - 网络流
摘要:σ ゚∀ ゚) ゚∀゚)σ
阅读全文
摘要:Accumulation Degree
阅读全文
摘要:Course Selection
阅读全文
摘要:数目规模大,尝试转换为判定性问题,那么E就不影响到网络流的复杂度了 SPFA码歪了,WA了好几发气死了 C++ include using namespace std; const int maxn = 3e5+11; const int oo = 0x3f3f3f3f; int to[maxnf)
阅读全文
摘要:Let’s move from initial matrix to the bipartite graph. The matrix elements (i, j) for which i + j are even should be place to one part, the matrix ele
阅读全文
摘要:按边建模,二叉树一条入边两条出边 判断就要用到mcmf的好处了
阅读全文
摘要:没啥好说的 C++ include include include include using namespace std; const int maxn = 1e5+11; const int oo = 0x3f3f3f3f; int to[maxnf&&dis[v] dis[u]+w){ dis
阅读全文
摘要:```C++ include using namespace std; const int maxn = 1e6+11; const int oo = 0x7fffffff; const double eps = 1e 8; int to[maxnf){ vis[v]=1; dis[v]=dis[u
阅读全文
摘要:```C++ include include include include using namespace std; const int maxn = 1e5+11; const int oo = 0x3f3f3f3f; int to[maxnf&&dis[v] dis[u]+w){ dis[v]
阅读全文
摘要:按航班拆点 注意返边的条件 C++ include using namespace std; const int maxn = 1e6+11; const int oo = 0x7fffffff; int to[maxnf){ vis[v]=1; dis[v]=dis[u]+1; que.push(
阅读全文
摘要:行列二分图模型,行指向列即表示权重w[i][j] 避免零流的方法就是使下界为1
阅读全文