记录一下见过的一些神奇 trick。有一些有我写的笔记。
- 警报器:P7603
- 对偶:https://www.luogu.com.cn/article/ho3wqvw7
- 压位 trie:https://www.luogu.com.cn/article/guq11vwp
- 追忆线段树:https://www.luogu.com.cn/article/jvmor50q
- 二次递归线段树 / 兔队线段树:P4198
- 网格图分治:https://www.luogu.com.cn/article/9sdqf05s
- 分治求和法:https://www.luogu.com.cn/article/4jicxaql
- 极小 mex 区间:https://www.cnblogs.com/gsc0618china/p/19211980
- 连续段 dp:CF1515E、P7967、P9197
- 不删双指针:https://www.luogu.com.cn/article/7pfjgl9d
- 斐波那契倍增:https://www.luogu.com.cn/article/65jdhhcu
- 除零扩域:https://www.luogu.com.cn/article/w5vtrof1 和 P13275
- 带权并查集判有解性:P2294、P12358。另:https://www.luogu.com.cn/article/zryb4gtq
- Shopping Plans Trick:https://www.luogu.com.cn/article/6i7m4hr6 另:我的学习笔记 https://www.luogu.com.cn/article/nawek55x 另:https://www.luogu.com.cn/article/8lob9dt3
- 质因子状压:https://www.luogu.com.cn/article/f7uu8w9z
- 二分图博弈:P4617
- 三个排列的三维偏序:P11197
- 格路计数与坐标系变换:Topcoder12464、UOJ981。反射容斥 https://www.luogu.com.cn/article/y9ty7ipw
- 索引线段树优化块状链表:https://www.luogu.me/article/uu80ann7