跳到正文

剪贴板

剪贴板 ozokm7dk

原文
剪贴板信息

剪贴板信息

收录
更新

PART1 基础算法\color{red}PART1~基础算法

基本功能优化\color{orange}基本功能优化

快读快写模板

https://www.luogu.com.cn/paste/gha2g4eo

快速幂模板

https://www.luogu.com.cn/paste/cii5iml6

排序\color{orange}排序

计数排序模板

https://www.luogu.com.cn/paste/4k0cr8rl

归并排序模板

https://www.luogu.com.cn/paste/sivvmpkr

二分\color{orange}二分

整数二分模板

https://www.luogu.com.cn/paste/p1txxdxm

实数二分

https://www.luogu.com.cn/paste/ueiifv8h

高精度\color{orange}高精度

高精度加法模板

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

PART2 搜索与图\color{red}PART2~搜索与图

棋盘搜索\color{orange}棋盘搜索

深度优先搜索模板

https://www.luogu.com.cn/paste/mpvkr5ed

广度优先搜索

https://www.luogu.com.cn/paste/myrvptdd

并查集\color{orange}并查集

并查集的秩优化模板

https://www.luogu.com.cn/paste/lrsms4x5

并查集的路径压缩优化模板

https://www.luogu.com.cn/paste/rfmmiexz

树\color{orange}树

树的直径

https://www.luogu.com.cn/paste/5j9tdinz

最小生成树Prim模板

https://www.luogu.com.cn/paste/2vy60ops

最短路\color{orange}最短路

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

PART3 字符串\color{red}PART3~字符串

字符串匹配\color{orange}字符串匹配

哈希模式串匹配模板

KMP模板

AC自动机模板

回文串判断\color{orange}回文串判断

哈希判回文模板

Manacher模板

字典树\color{orange}字典树

Trie模板

可持久化Trie模板

PART4 动态规划\color{red}PART4~动态规划

背包问题\color{orange}背包问题

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

PART5 数学\color{red}PART5~数学

质数\color{orange}质数

欧拉筛模板

https://www.luogu.com.cn/paste/h5utwcv2

线性筛模板

https://www.luogu.com.cn/paste/8fft03b0

算术基本定理阶乘分解模板

https://www.luogu.com.cn/paste/gr2wz4u3

约数\color{orange}约数

约数个数模板

https://www.luogu.com.cn/paste/n36e0au2

约数和模板

https://www.luogu.com.cn/paste/a64fp7su

同余\color{orange}同余

扩展欧拉定理模板

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

矩阵\color{orange}矩阵

矩阵加速Fib模板

https://www.luogu.com.cn/paste/hmxw9s9d

高斯消元\color{orange}高斯消元

约旦-高斯消元模板

https://www.luogu.com.cn/paste/12pzlsvk

矩阵求逆模板

https://www.luogu.com.cn/paste/pma08obv

组合\color{orange}组合

Lucas模板

https://www.luogu.com.cn/paste/bqoa4umt

ExLucas模板