版本比较
QX应该怎么写题
正文
增加 48 行删除 48 行
80 行未改动8182838485868586878889904 行未改动95969798999910010110210310310410510510610710710810910911011111111211311311411511511611711711811911912012112212312412512612712812812913013113213313413413513613613713813813914014014114214314414514614614714814814915015015115215215315415415515615615715815815916016016116216216316416516616616716816816917017017117217217317417417517617617717817918018118218218318418418518618618718818818919019119219319419419519619619719819920020120220220320420420520620720820921021021121221321321421521621621721821921922022122222222322422522622722822822923023123123223323423423580 行未改动typedef unsigned long long ull;const int N = ;
void solve() {
}signed main() { ios::sync_with_stdio(false), cin.tie(0), cout.tie(0); // int t; cin >> t; while(t--)4 行未改动
## trick 合集(补题计划)
### 基础算法
- [枚举](https://www.luogu.com.cn/training/967765)
- [搜索](https://www.luogu.com.cn/training/968440)
- [模拟](https://www.luogu.com.cn/training/967796)
- [排序与离散化](https://www.luogu.com.cn/training/969007)
- [前缀和与差分](https://www.luogu.com.cn/training/971833)
- [二分与三分](https://www.luogu.com.cn/training/972459)
- [双指针](https://www.luogu.com.cn/training/969090)
- [哈希](https://www.luogu.com.cn/training/972713)
- [倍增](https://www.luogu.com.cn/training/967877)
- [分治](https://www.luogu.com.cn/training/971314)
- [贪心](https://www.luogu.com.cn/training/968193)
### 基础数据结构
- [线性数据结构(链表、栈、队列)](https://www.luogu.com.cn/training/938776)
- [单调队列与单调栈](https://www.luogu.com.cn/training/964856)
- [堆](https://www.luogu.com.cn/training/941643)
### 高级数据结构
- [并查集](https://www.luogu.com.cn/training/965070)
- [ST 表](https://www.luogu.com.cn/training/964993)
- [树状数组](https://www.luogu.com.cn/training/965991)
- [线段树 1](https://www.luogu.com.cn/training/966190)、[线段树 2](https://www.luogu.com.cn/training/972388)
- [珂朵莉树](https://www.luogu.com.cn/training/966424)
### 图论
- [树的性质](https://www.luogu.com.cn/training/966517)
- [拓扑排序](https://www.luogu.com.cn/training/964398)
- [欧拉回路](https://www.luogu.com.cn/training/964466)
- [LCA](https://www.luogu.com.cn/training/965916)
- [最短路1](https://www.luogu.com.cn/training/964697)、[最短路2](https://www.luogu.com.cn/training/964989)
- [差分约束](https://www.luogu.com.cn/training/965065)
- [生成树](https://www.luogu.com.cn/training/965271)
- [Tarjan 系列算法](https://www.luogu.com.cn/training/965659)
- [重链剖分](https://www.luogu.com.cn/training/970861)
### 动态规划 DP
- [DP 总览与一般线性 DP](https://www.luogu.com.cn/training/966041)
- [背包 DP](https://www.luogu.com.cn/training/967146)
- [区间 DP](https://www.luogu.com.cn/training/967710)
- [树形 DP](https://www.luogu.com.cn/training/967825)
- [换根 DP](https://www.luogu.com.cn/training/968018)
- [状压 DP](https://www.luogu.com.cn/training/968123)
- [DP 优化](https://www.luogu.com.cn/training/968278)
### 字符串
- [BKDR 哈希](https://www.luogu.com.cn/training/967612)
- [字典树与 01 字典树](https://www.luogu.com.cn/training/971080)
- [KMP 算法](https://www.luogu.com.cn/training/972749)
- [Manacher 算法](https://www.luogu.com.cn/training/972818)
- [后缀数组](https://www.luogu.com.cn/training/972768)
### 数论
- [质数与筛法](https://www.luogu.com.cn/training/967432)
- [GCD 与 LCM](https://www.luogu.com.cn/training/967738)
- [模与同余](https://www.luogu.com.cn/training/966943)
### 组合数学
- [基础排列组合](https://www.luogu.com.cn/training/968260)
- [容斥原理](https://www.luogu.com.cn/training/968340)
- [卡特兰数和斯特林数](https://www.luogu.com.cn/training/971077)
### 杂项
- [二进制与位运算](https://www.luogu.com.cn/training/980453)
- [矩阵运算与矩阵快速幂](https://www.luogu.com.cn/training/967551)
- [启发式合并](https://www.luogu.com.cn/training/973459)
- [$\operatorname{mex}$ 相关](https://www.luogu.com.cn/training/971508)
- [随机化](https://www.luogu.com.cn/training/973738)
- [思维题](https://www.luogu.com.cn/training/973865)
### 其它
- [总体思想](https://www.luogu.com.cn/training/971737)
- [编码技巧 + 易错点](https://www.luogu.com.cn/training/971731)
- [做题相关](https://www.luogu.com.cn/training/971734)
- [模板大全](https://www.luogu.com.cn/training/974685)