正文
增加 48 行删除 48 行
80 行未改动818283848586878889904 行未改动959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423580 行未改动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)80 行未改动818283848586878889904 行未改动959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423580 行未改动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)