快读快写模板
https://www.luogu.com.cn/paste/gha2g4eo
快速幂模板
https://www.luogu.com.cn/paste/cii5iml6
计数排序模板
https://www.luogu.com.cn/paste/4k0cr8rl
归并排序模板
https://www.luogu.com.cn/paste/sivvmpkr
整数二分模板
https://www.luogu.com.cn/paste/p1txxdxm
实数二分
https://www.luogu.com.cn/paste/ueiifv8h
高精度加法模板
https://www.luogu.com.cn/paste/oudtsfkq
高精度减法模板
https://www.luogu.com.cn/paste/jyhx8cxc
高精度乘法模板
https://www.luogu.com.cn/paste/t0v9y23u
高精度除法模板
https://www.luogu.com.cn/paste/zsinga31
封装高精度模板
https://www.luogu.com.cn/paste/jng0cbgo
封装压位高精度模板
https://www.luogu.com.cn/paste/t2bjjmdr
深度优先搜索模板
https://www.luogu.com.cn/paste/mpvkr5ed
广度优先搜索
https://www.luogu.com.cn/paste/myrvptdd
并查集的秩优化模板
https://www.luogu.com.cn/paste/lrsms4x5
并查集的路径压缩优化模板
https://www.luogu.com.cn/paste/rfmmiexz
树的直径
https://www.luogu.com.cn/paste/5j9tdinz
最小生成树Prim模板
https://www.luogu.com.cn/paste/2vy60ops
Floyd模板
https://www.luogu.com.cn/paste/7nt85wgb
Dijkstra模板
https://www.luogu.com.cn/paste/rc5jrgiw
Spfa模板
https://www.luogu.com.cn/paste/ingk8qp5
Bellman-Ford模板
https://www.luogu.com.cn/paste/4e4nlx8x
最短路计数
https://www.luogu.com.cn/paste/0sti0j4l
哈希模式串匹配模板
KMP模板
AC自动机模板
哈希判回文模板
Manacher模板
Trie模板
可持久化Trie模板
01背包模板
https://www.luogu.com.cn/paste/mvgmr32v
空间优化01背包模板
https://www.luogu.com.cn/paste/f50q2vsr
完全背包模板
https://www.luogu.com.cn/paste/y58dzmkf
空间优化完全背包模板
https://www.luogu.com.cn/paste/8ei13n94
多重背包模板
https://www.luogu.com.cn/paste/0uifls8w
二进制优化多重背包模板
https://www.luogu.com.cn/paste/ae3ikpgw
欧拉筛模板
https://www.luogu.com.cn/paste/h5utwcv2
线性筛模板
https://www.luogu.com.cn/paste/8fft03b0
算术基本定理阶乘分解模板
https://www.luogu.com.cn/paste/gr2wz4u3
约数个数模板
https://www.luogu.com.cn/paste/n36e0au2
约数和模板
https://www.luogu.com.cn/paste/a64fp7su
扩展欧拉定理模板
https://www.luogu.com.cn/paste/w04u96po
Exgcd模板
https://www.luogu.com.cn/paste/n9q2lo38
Excrt模板
https://www.luogu.com.cn/paste/41gyf3tq
BSGS模板
https://www.luogu.com.cn/paste/m344prpu
矩阵加速Fib模板
https://www.luogu.com.cn/paste/hmxw9s9d
约旦-高斯消元模板
https://www.luogu.com.cn/paste/12pzlsvk
矩阵求逆模板
https://www.luogu.com.cn/paste/pma08obv
Lucas模板
https://www.luogu.com.cn/paste/bqoa4umt