版本比较
Xzy的模板
正文
增加 17 行删除 15 行
13 行未改动1415161718191819202122232425262728292526272829303231323433343536373839414243444540414243444546474849505152535354555657585926 行未改动13 行未改动[*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/o3424qtf)[*斜率优化](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/omxh543h) [树上莫队](https://www.luogu.com.cn/paste/basxxsyo) [莫队二次离线](https://www.luogu.com.cn/paste/gxtqrebk)[*带修莫队](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/gxtqrebk)
### 树[*堆](https://www.luogu.com.cn/paste/evuiu1se) [堆](https://www.luogu.com.cn/paste/evuiu1se) [树状数组](https://www.luogu.com.cn/paste/ugd3t93i) [树状数组动态开点](https://www.luogu.com.cn/paste/c9e7bkiw) [*树状数组动态开点](https://www.luogu.com.cn/paste/c9e7bkiw) [线段树](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/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) [*K-D 树](https://www.luogu.com.cn/paste/bxvudla7) [树的直径](https://www.luogu.com.cn/paste/6ze24mjw) [树的重心](https://www.luogu.com.cn/paste/wbzb3awo) [点分治](https://www.luogu.com.cn/paste/en4phk67) [长剖求祖先](https://www.luogu.com.cn/paste/qy8wv2fs) [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) [*splay](https://www.luogu.com.cn/paste/a84qqmnd) [*FHQ treap](https://www.luogu.com.cn/paste/1ai91cmp) [*虚树](https://www.luogu.com.cn/paste/63rkz69i) [树上启发式合并](https://www.luogu.com.cn/paste/jmunwxz8)
### 图26 行未改动