正文
增加 5 行删除 1 行
23 行未改动242526272829303132333435365 行未改动424344454647484914 行未改动64656667686970718 行未改动23 行未改动[链表](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/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)5 行未改动[单侧递归线段树](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)14 行未改动[*圆方树](https://www.luogu.com.cn/paste/f4mnlsjv)[二分图最大匹配](https://www.luogu.com.cn/paste/hbis0gzi)[二分图最大权完美匹配KM(dfs)](https://www.luogu.com.cn/paste/rue9xmf5)[*二分图最大权完美匹配KM(bfs)](https://www.luogu.com.cn/paste/jlmnbu3j)[最大流Dinic](https://www.luogu.com.cn/paste/5c74uon0)[费用流Dinic](https://www.luogu.com.cn/paste/y3c55izs)## 数论8 行未改动23 行未改动2425262728293031323334353637385 行未改动44454647484950515214 行未改动6768697071727374758 行未改动23 行未改动[链表](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/evuiu1se)[树状数组](https://www.luogu.com.cn/paste/ugd3t93i)[树状数组动态开点](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)5 行未改动[单侧递归线段树](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)[点分治](https://www.luogu.com.cn/paste/en4phk67)[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)14 行未改动[*圆方树](https://www.luogu.com.cn/paste/f4mnlsjv)[二分图最大匹配](https://www.luogu.com.cn/paste/hbis0gzi)[二分图最大权完美匹配KM(dfs)](https://www.luogu.com.cn/paste/rue9xmf5)[*二分图最大权完美匹配KM(bfs)](https://www.luogu.com.cn/paste/jlmnbu3j)[最大流EK](https://www.luogu.com.cn/paste/qpistsw5)[最大流Dinic](https://www.luogu.com.cn/paste/5c74uon0)[费用流Dinic](https://www.luogu.com.cn/paste/y3c55izs)## 数论8 行未改动