随笔分类 -  费用流

摘要:洛谷传送门 CF 传送门 考虑费用流,对于每一行建两个点 i0,i1,分别代表这一行的所有 0,1。同样每一列建两个点 j0,j1。源点分别向 i0,i1 连流量为这一行要求的 01 的个数,费用为 0。同理连汇点。 阅读全文
posted @ 2023-12-21 15:14 zltzlt 阅读(49) 评论(0) 推荐(0) 编辑
摘要:洛谷传送门 AtCoder 传送门 直接糊一手线性规划对偶板板。 要求: minAili+Birii,j,li+rjCi,jli,ri0\[l_i, r_i \in \ 阅读全文
posted @ 2023-11-03 21:33 zltzlt 阅读(26) 评论(0) 推荐(0) 编辑
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc259_g "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc259/tasks/abc259_g "AtCoder 传送门") 记 $b_i = 阅读全文
posted @ 2023-06-04 22:03 zltzlt 阅读(14) 评论(0) 推荐(0) 编辑
摘要:[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc214_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc214/tasks/abc214_h "AtCoder 传送门") 好毒瘤啊…… 首先 阅读全文
posted @ 2023-06-03 08:31 zltzlt 阅读(26) 评论(0) 推荐(0) 编辑
摘要:[AtCoder 传送门](https://atcoder.jp/contests/abc263/tasks/abc263_g "AtCoder 传送门") [洛谷传送门](https://www.luogu.com.cn/problem/AT_abc263_g "洛谷传送门") ## 题意 有 $ 阅读全文
posted @ 2022-10-22 19:43 zltzlt 阅读(42) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示