版本比较
Xzy的模板
正文
增加 17 行删除 4 行
1234566789101112131415161716181920212223242523262728293031323334353637383940414243444546474849503951525354555623 行未改动不是很熟的打上*号
[头文件](https://www.luogu.com.cn/paste/kenkr20w) [*快读](https://www.luogu.com.cn/paste/5npb402v) [文件操作](https://www.luogu.com.cn/paste/ms1153rt)### 基本算法### 算法[二分](https://www.luogu.com.cn/paste/bfu5q1uz) [整体二分](https://www.luogu.com.cn/paste/4il9zxq5) [四维偏序(cdq+cdq)](https://www.luogu.com.cn/paste/8fkeyune) [*高精度](https://www.luogu.com.cn/paste/sq9vf7ag)
### 字符串[*KMP](https://www.luogu.com.cn/paste/5hl8pb7b) [*manacher](https://www.luogu.com.cn/paste/q0z6l07l) [字典树](https://www.luogu.com.cn/paste/0icghdwf)
### 动态规划[斜率优化](https://www.luogu.com.cn/paste/dlzkx2mx)[斜率优化](https://www.luogu.com.cn/paste/dlzkx2mx) [长链剖分优化](https://www.luogu.com.cn/paste/o3424qtf)
## 数据结构### 线性
[链表](https://www.luogu.com.cn/paste/iqlxcfci) [分块]() [带修莫队](https://www.luogu.com.cn/paste/757k3y82)[带修莫队](https://www.luogu.com.cn/paste/757k3y82) [回滚莫队](https://www.luogu.com.cn/paste/omxh543h) [树上莫队](https://www.luogu.com.cn/paste/basxxsyo)
### 树[*堆](https://www.luogu.com.cn/paste/evuiu1se) [树状数组](https://www.luogu.com.cn/paste/ugd3t93i) [线段树](https://www.luogu.com.cn/paste/go4rz5e4) [线段树动态开点](https://www.luogu.com.cn/paste/5kvu1fak) [线段树分治](https://www.luogu.com.cn/paste/vdptjqfa) [树状数组套线段树](https://www.luogu.com.cn/paste/r67v2of1) [可持久化线段树](https://www.luogu.com.cn/paste/jwt9oo4d) [可持久化01trie](https://www.luogu.com.cn/paste/vue0xczm) [线段树合并](https://www.luogu.com.cn/paste/2ju63pfu) [线段树分裂](https://www.luogu.com.cn/paste/d2mf7qhs) [吉司机线段树(区间最值+区间历史最值)](https://www.luogu.com.cn/paste/ea3kiyvq) [单侧递归线段树](https://www.luogu.com.cn/paste/xzc7bms4) [李超线段树](https://www.luogu.com.cn/paste/nu0sif2d) [树的直径](https://www.luogu.com.cn/paste/6ze24mjw) [树的重心](https://www.luogu.com.cn/paste/wbzb3awo) [LCA(重链剖分)](https://www.luogu.com.cn/paste/ukfcolok) [LCA(倍增)](https://www.luogu.com.cn/paste/3xgxfw3t) [*LCA(tarjan)](https://www.luogu.com.cn/paste/p584yo1a) [*LCA(dfs序)](https://www.luogu.com.cn/paste/bg6732ba) [*平衡树Splay](https://www.luogu.com.cn/paste/a84qqmnd) [*虚树](https://www.luogu.com.cn/paste/63rkz69i)[*虚树](https://www.luogu.com.cn/paste/63rkz69i) [树上启发式合并](https://www.luogu.com.cn/paste/jmunwxz8)
### 图
[拓扑排序](https://www.luogu.com.cn/paste/cxi7t71d) 23 行未改动