版本比较
百题斩计划 1 / 星星之火,安能伤我
正文
增加 22 行删除 2 行
6 行未改动789101111121313141516171819202122232425262728293031323334353637383940416 行未改动https://www.luogu.com.cn/problem/P16244 括号转加减 1 前缀和,然后求答案的前缀和数组,转深度限定,即为限定前缀和最值。翻转格路计数,制约转并行 LGV。
9.5CSPS 模拟 T3 容斥 + 状压 dp,枚举子集转移。
https://www.luogu.com.cn/problem/P6657 板子 LGVhttps://www.luogu.com.cn/problem/P6657 板子 LGV。
https://www.luogu.com.cn/problem/P8857 Dilworth 平面图转对偶图,拓扑计数https://www.luogu.com.cn/problem/P8857 Dilworth 平面图转对偶图,拓扑计数。
https://www.luogu.com.cn/problem/P15230 左子树一定是最大的,为 n-2,然后钦定编号。
https://www.luogu.com.cn/problem/P10670 x 小数部分无用,然后注意到 nk 取遍模 m 意义下 (n ,m) 的倍数,于是枚举 (n ,m) 随便计算即可。
https://www.luogu.com.cn/problem/P10636 枚举两端点对 dtx dty 然后套路计算即可。加上同行同列。
https://www.luogu.com.cn/problem/P8670 简单题。
https://www.luogu.com.cn/problem/P7575 神秘题目,朴素 dp 显然,但是可以莫反,用狄利克雷前缀和做得更好,然后注意到修改的位置很少,于是直接类滚动数组状物。
https://www.luogu.com.cn/problem/P1298 Stern - Brocot Tree。
https://www.luogu.com.cn/problem/P1814 类线段树二分的思考方式,进不进右子树。
https://www.luogu.com.cn/problem/P17223 可达的二分图上连边,然后最大独立集。
https://www.luogu.com.cn/problem/P10421 点分治。
https://www.luogu.com.cn/problem/P2714 至少转恰好,狄利克雷前缀和求出至少的答案再莫反。
https://www.luogu.com.cn/problem/P13520 Dilworth,我们发现不相离不相含的区间是互不统属的,然后这样区间的最大团就是答案。用线段树维护。
https://www.luogu.com.cn/problem/P10596 不知道有啥好说的的二项式反演。
https://www.luogu.com.cn/problem/P11746 二项式反演的别样形式,由钦定推至少。计算容斥系数的时候我们可以把模 2 的余数改换成 1 的该次方减去 -1 的该次方,结果除以 2。然后注意的是可以把 1 的若干次幂给随意乘进去。二项式定理。然后发现钦定难算,于是新开一个数组存一存横行纵列有多少选了的,这个好做。最后加一起再经典二项式定理就做完了,妙妙妙。
https://www.luogu.com.cn/problem/CF1733D2 分讨何种操作更佳,然后若邻项翻转更佳就 dp,否则直接算。