摘要: 题目描述: bz 题解: (1)高消。 直接列异或方程组高消即可。 代码: #include<vector> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N = 105; 阅读全文
posted @ 2019-04-24 18:12 LiGuanlin 阅读(217) 评论(0) 推荐(1) 编辑
摘要: 题目描述: bz 题解: 线段树模拟费用流。 想法和种树有点类似。 每次取区间内权值和最大的一段,然后整体乘$-1$,代表再次选中时会去掉之前的影响。 线段树维护一堆东西…… 小白逛公园双倍快乐。乘$-1$时交换正反。 [滑稽] 代码: #include<cstdio> #include<cstri 阅读全文
posted @ 2019-04-24 16:33 LiGuanlin 阅读(235) 评论(0) 推荐(0) 编辑