随笔分类 -  网络流

摘要:σ ゚∀ ゚) ゚∀゚)σ 阅读全文
posted @ 2018-08-01 21:25 Caturra 阅读(234) 评论(0) 推荐(0)
摘要:Accumulation Degree 阅读全文
posted @ 2018-07-25 00:57 Caturra 阅读(476) 评论(0) 推荐(0)
摘要:士兵占领 阅读全文
posted @ 2018-04-23 15:59 Caturra 阅读(98) 评论(0) 推荐(0)
摘要:Course Selection 阅读全文
posted @ 2018-04-23 15:11 Caturra 阅读(122) 评论(0) 推荐(0)
摘要:最大获利 阅读全文
posted @ 2018-04-21 13:38 Caturra 阅读(133) 评论(0) 推荐(0)
摘要:Network Wars 阅读全文
posted @ 2018-04-21 01:51 Caturra 阅读(155) 评论(0) 推荐(0)
摘要:数目规模大,尝试转换为判定性问题,那么E就不影响到网络流的复杂度了 SPFA码歪了,WA了好几发气死了 C++ include using namespace std; const int maxn = 3e5+11; const int oo = 0x3f3f3f3f; int to[maxnf) 阅读全文
posted @ 2017-11-29 21:45 Caturra 阅读(200) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2017-11-29 20:07 Caturra 阅读(184) 评论(0) 推荐(0)
摘要:按边建模,二叉树一条入边两条出边 判断就要用到mcmf的好处了 阅读全文
posted @ 2017-11-29 17:22 Caturra 阅读(273) 评论(0) 推荐(0)
摘要:没啥好说的 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 阅读全文
posted @ 2017-11-29 16:44 Caturra 阅读(150) 评论(0) 推荐(0)
摘要:```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 阅读全文
posted @ 2017-11-28 20:09 Caturra 阅读(346) 评论(0) 推荐(0)
摘要:```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] 阅读全文
posted @ 2017-11-28 12:18 Caturra 阅读(157) 评论(0) 推荐(0)
摘要:按航班拆点 注意返边的条件 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( 阅读全文
posted @ 2017-11-28 12:02 Caturra 阅读(208) 评论(0) 推荐(0)
摘要:行列二分图模型,行指向列即表示权重w[i][j] 避免零流的方法就是使下界为1 阅读全文
posted @ 2017-11-28 11:43 Caturra 阅读(195) 评论(0) 推荐(0)
摘要:~~~ 阅读全文
posted @ 2017-11-28 00:03 Caturra 阅读(316) 评论(0) 推荐(0)