正文
增加 198 行删除 198 行
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233- `if(a)b;else c,d;`,应该写成 `a ? b : (c,d)`---1. ...[写反](https://www.luogu.com.cn/record/41433957) [2](https://www.luogu.com.cn/record/46157091) [3](https://www.luogu.com.cn/record/46275622) [4](https://www.luogu.com.cn/record/46798328) [5](https://www.luogu.com.cn/record/47644180) [6](https://www.luogu.com.cn/record/47683273) [7](https://www.luogu.com.cn/record/47725471) [8](https://www.luogu.com.cn/record/48122397) [9](https://www.luogu.com.cn/record/48675330) [10](https://www.luogu.com.cn/record/49153758) [11](https://www.luogu.com.cn/record/49300876) [12](https://www.luogu.com.cn/record/50006530) [13](https://www.luogu.com.cn/record/52433726) [14](https://www.luogu.com.cn/record/52633296) [15](https://www.luogu.com.cn/record/54664340) [16](https://www.luogu.com.cn/record/58675821)[删注释&调试](https://www.luogu.com.cn/record/40760007) [2](https://www.luogu.com.cn/record/49234340) [3](https://www.luogu.com.cn/record/51009830) [4](https://www.luogu.com.cn/record/51801810) [5](https://www.luogu.com.cn/record/51864750) [6](https://www.luogu.com.cn/record/54092099) [7](https://www.luogu.com.cn/record/54303698) [8](https://www.luogu.com.cn/record/56293178) [9](https://www.luogu.com.cn/record/67770689)[区间开闭](https://www.luogu.com.cn/problem/P1601) [2](https://www.luogu.com.cn/record/46237930) [3](https://www.luogu.com.cn/record/46321508)[分类不完全](https://www.luogu.com.cn/record/42903017)[对应输入](https://www.luogu.com.cn/record/42902416)[freopen](https://www.luogu.com.cn/record/43412119) [2](https://www.luogu.com.cn/record/46407714) [3](https://www.luogu.com.cn/record/47414894) [4](https://www.luogu.com.cn/record/49134786) [5](https://www.luogu.com.cn/record/49150140) [6](https://www.luogu.com.cn/record/49194507) [7](https://www.luogu.com.cn/record/49235522) [8](https://www.luogu.com.cn/record/51668715) [9](https://www.luogu.com.cn/record/51702479) [10](https://www.luogu.com.cn/record/51806449) [11](https://www.luogu.com.cn/record/52362266) [12](https://www.luogu.com.cn/record/58655698) [13](https://www.luogu.com.cn/record/62821143)[c++11](https://www.luogu.com.cn/record/44756430)符号: [括号错位](https://www.luogu.com.cn/record/45503106) [中文标点](https://www.luogu.com.cn/record/45643179) [多打,](https://www.luogu.com.cn/record/52851492)[函数return](https://www.luogu.com.cn/record/45604263)[打错变量](https://www.luogu.com.cn/record/45671542) [2](https://www.luogu.com.cn/record/46279912) [3](https://www.luogu.com.cn/record/46338997) [4](https://www.luogu.com.cn/record/46478542) [5](https://www.luogu.com.cn/record/50681318) [6](https://www.luogu.com.cn/record/51676610) [7](https://www.luogu.com.cn/record/51844110) [8](https://www.luogu.com.cn/record/51848594) [9](https://www.luogu.com.cn/record/52044515) [10](https://www.luogu.com.cn/record/53376643) [11](https://www.luogu.com.cn/record/53914498) [12](https://www.luogu.com.cn/record/54135390) [13](https://www.luogu.com.cn/record/55424656) [14](https://www.luogu.com.cn/record/56513143) [15](https://www.luogu.com.cn/record/56642185) [16](https://www.luogu.com.cn/record/57612737) [17](https://www.luogu.com.cn/record/57705023) [18](https://www.luogu.com.cn/record/57758374) [19](https://www.luogu.com.cn/record/57973316) [20](https://www.luogu.com.cn/record/58454379) [21](https://www.luogu.com.cn/record/62332549) [22](https://www.luogu.com.cn/record/66834943) [23](https://www.luogu.com.cn/record/68708325) [24](https://www.luogu.com.cn/record/70501798) [25](https://www.luogu.com.cn/record/75605846)[迷信O2](https://www.luogu.com.cn/record/46030174) [2](https://www.luogu.com.cn/record/47597850)[多个break条件判哪个](https://www.luogu.com.cn/record/46275585)[正负](https://www.luogu.com.cn/record/46349694)[特判0](https://www.luogu.com.cn/record/46504801) [2](https://www.luogu.com.cn/record/47733323) [3](https://www.luogu.com.cn/record/50104117) [4](https://www.luogu.com.cn/record/51317197) [5](https://www.luogu.com.cn/record/51817216) [6](https://www.luogu.com.cn/record/57067559) [7](https://www.luogu.com.cn/record/58169639)[sync+scanf](https://www.luogu.com.cn/record/46716226) [2](https://www.luogu.com.cn/record/46871102)[默认无序](https://www.luogu.com.cn/record/47307671) [2](https://www.luogu.com.cn/record/56938473)[判无解](https://www.luogu.com.cn/record/47689217) [2](https://www.luogu.com.cn/record/47733426) [3](https://www.luogu.com.cn/record/50628053)[输出特定字符串](https://www.luogu.com.cn/record/47717177) [2](https://www.luogu.com.cn/record/47725471) [3](https://www.luogu.com.cn/record/69813996)[输出特殊情况的结果后及时结束](https://www.luogu.com.cn/record/47717341)[$=$ 取舍](https://www.luogu.com.cn/record/47731987)[慎用 else](https://www.luogu.com.cn/record/48031733)[交互:`\n`](https://www.luogu.com.cn/record/49135678)[return 0](https://www.luogu.com.cn/record/49153329)[不要改题目给的生成数据的函数](https://www.luogu.com.cn/record/51180844)[“呼吸”](https://www.luogu.com.cn/record/45006003) [2](https://www.luogu.com.cn/record/46754936) [3](https://www.luogu.com.cn/record/51655624) [4](https://www.luogu.com.cn/record/54712672) [5](https://www.luogu.com.cn/record/58825266) [6](https://www.luogu.com.cn/record/61144380) [7](https://www.luogu.com.cn/record/61259909) [8](https://www.luogu.com.cn/record/69857001) [9](https://www.luogu.com.cn/record/73500248)[移位](https://www.luogu.com.cn/record/518551860)[mem过小/大](https://www.luogu.com.cn/record/list?user=236866) [2](https://www.luogu.com.cn/record/59705107)[break位置](https://www.luogu.com.cn/record/51944145)[write特判0](https://www.luogu.com.cn/record/52103488)[`break` or `continue`](https://www.luogu.com.cn/record/52115218)[`pair` 正反存](https://www.luogu.com.cn/record/52765866)[改写法时改全](https://www.luogu.com.cn/record/53693598) [2](https://www.luogu.com.cn/record/81434315)[&& or ||](https://www.luogu.com.cn/record/54092856)[初值](https://www.luogu.com.cn/record/54096423) [2](https://www.luogu.com.cn/record/56912992)[审题](https://www.luogu.com.cn/record/55819600) [2](https://www.luogu.com.cn/record/68671149) [3](https://www.luogu.com.cn/record/68982383)[卡常](https://www.luogu.com.cn/record/56508843)[转化后想清楚输出啥](https://www.luogu.com.cn/record/56633125)[前面的字符串未读完不能直接scanf后面的数](https://www.luogu.com.cn/record/57712805)[typo](https://www.luogu.com.cn/record/58702010) [2](https://www.luogu.com.cn/record/65998612)[同时做两件事时注意if的作用范围](https://www.luogu.com.cn/record/64522870)[复制粘贴后改全](https://www.luogu.com.cn/record/68697997)[(sort)不能以第一个元素为基准比较(会变)](https://www.luogu.com.cn/record/70391029)[本地对拍后提交前记得强制在线](https://www.luogu.com.cn/record/71001485)[判 STL 容器空(有时不会 RE)](https://www.luogu.com.cn/record/71048072)[`pbds` 空间带 $2$ 倍常数](https://www.luogu.com.cn/record/71700761)[环上问题特判 $n\rightarrow1$](https://www.luogu.com.cn/record/76276666)2. 数组[开小](https://www.luogu.com.cn/record/41777545) [2](https://www.luogu.com.cn/record/46156966) [3](https://www.luogu.com.cn/record/47349743) [4](https://www.luogu.com.cn/record/47597728) [5](https://www.luogu.com.cn/record/47769509) [6](https://www.luogu.com.cn/record/48084630) [7](https://www.luogu.com.cn/record/48389660) [8](https://www.luogu.com.cn/record/48909756) [9](https://www.luogu.com.cn/record/51674144) [10](https://www.luogu.com.cn/record/52521637) [11](https://www.luogu.com.cn/record/55816175) [12](https://www.luogu.com.cn/record/58393397) [13](https://www.luogu.com.cn/record/58789961) [14](https://www.luogu.com.cn/record/60376313) [15](https://www.luogu.com.cn/record/63063471) [16](https://www.luogu.com.cn/record/65987012) [17](https://uoj.ac/submission/553656)[MLE](https://www.luogu.com.cn/record/41781597) [2](https://www.luogu.com.cn/record/48773258) [3](https://www.luogu.com.cn/record/49198134) [4](https://www.luogu.com.cn/record/55424689) [动态开内存不要用stack](https://www.luogu.com.cn/record/57355590) [6](https://www.luogu.com.cn/record/57623129)[边界](https://www.luogu.com.cn/record/41854297) [2](https://www.luogu.com.cn/record/45491335) [3](https://www.luogu.com.cn/record/45488769) [4](https://www.luogu.com.cn/record/47414834) [5](https://www.luogu.com.cn/record/48392635) [6](https://www.luogu.com.cn/record/50627473) [7](https://www.luogu.com.cn/record/51257550) [8](https://www.luogu.com.cn/record/51317690) [9](https://www.luogu.com.cn/record/53749419)[复制](https://www.luogu.com.cn/record/43411681)除法 $\lfloor N\rfloor$[序列长度or块数](https://www.luogu.com.cn/record/44509753)[下标从0开始](https://www.luogu.com.cn/record/44701052)[1e?](https://www.luogu.com.cn/record/46066108) [2](https://www.luogu.com.cn/record/47717177) [3](https://www.luogu.com.cn/record/48822352) [4](https://www.luogu.com.cn/record/48981626) [5](https://www.luogu.com.cn/record/51763841)[顺序 & 传参](https://www.luogu.com.cn/record/46081647)[越界](https://www.luogu.com.cn/record/46798264)[memset成inf后用桶统计](https://www.luogu.com.cn/record/47944290)[不确定能处理完时手动最后若干个](https://www.luogu.com.cn/record/50601215)[动态开点后回收](https://www.luogu.com.cn/record/50621093)[打错常量](https://www.luogu.com.cn/record/75964950)3. long long & double & __int128[没开全](https://www.luogu.com.cn/record/40867299) [2](https://www.luogu.com.cn/record/44765471) [3](https://www.luogu.com.cn/record/46979964) [4](https://www.luogu.com.cn/record/46987000) [5](https://www.luogu.com.cn/record/47308017) [6](https://www.luogu.com.cn/record/47644980) [7](https://www.luogu.com.cn/record/48308581) [8](https://www.luogu.com.cn/record/48309016) [9](https://www.luogu.com.cn/record/48642884) [10](https://www.luogu.com.cn/record/48817629) [11](https://www.luogu.com.cn/record/49145459) [12](https://www.luogu.com.cn/record/50555821) [13](https://www.luogu.com.cn/record/51943880) [14](https://www.luogu.com.cn/record/53840100) [15](https://www.luogu.com.cn/record/54672073) [16](https://www.luogu.com.cn/record/54675994) [17](https://www.luogu.com.cn/record/54776589) [18](https://www.luogu.com.cn/record/57412516) [19](https://www.luogu.com.cn/record/57614855) [20](https://www.luogu.com.cn/record/60531804) [21](https://www.luogu.com.cn/record/61039021) [22](https://www.luogu.com.cn/record/64887548) [23](https://www.luogu.com.cn/record/65572527) [24](https://www.luogu.com.cn/record/69443827) [25](https://www.luogu.com.cn/record/75507878) [26](https://www.luogu.com.cn/record/76021093)[没开](https://www.luogu.com.cn/record/41087646) [2](https://www.luogu.com.cn/record/45006021) [3](https://www.luogu.com.cn/record/47642827) [4](https://www.luogu.com.cn/record/48642863) [5](https://www.luogu.com.cn/record/48821531) [6](https://www.luogu.com.cn/record/51763674) [7](https://www.luogu.com.cn/record/54640514) [8](https://www.luogu.com.cn/record/54775337) [9](https://www.luogu.com.cn/record/56523580) [10](https://www.luogu.com.cn/record/56682526)[按位比大小](https://www.luogu.com.cn/record/43411681)[超过就break](https://www.luogu.com.cn/record/46484161)[输出](https://www.luogu.com.cn/record/46986915) [`long double`](https://www.luogu.com.cn/record/47345316)[LL_max=0x3f3f3f3f3f3f3f3f](https://www.luogu.com.cn/record/47944231)[double 输出整数 %.0lf](https://www.luogu.com.cn/record/49471596)[精度](https://www.luogu.com.cn/problem/P5931) [2](https://www.luogu.com.cn/record/53265368) [3](https://www.luogu.com.cn/record/62664136)[`inf` 过大/小](https://www.luogu.com.cn/record/62906203) [2](https://www.luogu.com.cn/record/66505485) [2](https://www.luogu.com.cn/record/77956123)[改类型后记得改常量](https://www.luogu.com.cn/record/70338754)[强制在线解密前的数可能是 `long long`](https://www.luogu.com.cn/record/71002747)4. 多测[clear放错位置](https://www.luogu.com.cn/record/40821114)[读入未完就特判](https://www.luogu.com.cn/record/41722041)[que.pop()](https://www.luogu.com.cn/record/42445688)[顺序](https://www.luogu.com.cn/record/46404347)[清空](https://www.luogu.com.cn/record/62935902)5. 数学[^0=1](https://www.luogu.com.cn/record/43568913) [2](https://www.luogu.com.cn/record/49153758)(`lcm`)先 `/` 后 `*`[整除分块:先/后*](https://www.luogu.com.cn/record/45907599)[负负得正](https://www.luogu.com.cn/record/46030604)[(快速幂)底数先mod](https://www.luogu.com.cn/record/46727565)[(自然数幂和)先mod](https://www.luogu.com.cn/record/46979964)[mod下取回正数](https://www.luogu.com.cn/record/47274215) [2](https://www.luogu.com.cn/record/51966852) [3](https://www.luogu.com.cn/record/52114847) [4](https://www.luogu.com.cn/record/58448842) [5](https://www.luogu.com.cn/record/59656172)[少mod](https://www.luogu.com.cn/record/47598220) [2](https://www.luogu.com.cn/record/48068973) [3](https://www.luogu.com.cn/record/47312570) [4](https://www.luogu.com.cn/record/54802270) [5](https://www.luogu.com.cn/record/54991807) [6](https://www.luogu.com.cn/record/56507389) [7](https://www.luogu.com.cn/record/64919252) [8](https://www.luogu.com.cn/record/66239885)[异或和不能用0来判断是否访问过](https://www.luogu.com.cn/record/48084751)[取二进制后k位](https://www.luogu.com.cn/record/51076708)[枚举二进制后k位为0的数](https://www.luogu.com.cn/record/51076841)[等差数列求和](https://www.luogu.com.cn/record/51322402)[*0=0](https://www.luogu.com.cn/record/52114959)[模数为1时初值为0](https://www.luogu.com.cn/record/58815969)[多 mod](https://www.luogu.com.cn/record/59403401)[(凸包)二分时判边界](https://www.luogu.com.cn/record/66511478)[`()%+mod`](https://www.luogu.com.cn/record/66580631)[(半平面交)判平行](https://www.luogu.com.cn/record/70386581)[模意义下 `/`](https://www.luogu.com.cn/record/72901920)[看清 mod](https://www.luogu.com.cn/record/77529294)6. 图论[联通性](https://www.luogu.com.cn/record/41427065) [2](https://www.luogu.com.cn/record/48630754) [3](https://www.luogu.com.cn/record/51674114) [4](https://www.luogu.com.cn/record/54132156)[有向图](https://www.luogu.com.cn/record/41777418)(虽然`pair`也写反了) [2](https://www.luogu.com.cn/record/51674395)[边权为0](https://www.luogu.com.cn/record/42256802)[无向边开双倍数组](https://www.luogu.com.cn/record/42805288) [2](https://www.luogu.com.cn/record/66110587)[点数为 $1$ or $2$](https://www.luogu.com.cn/record/43194033) [2](https://www.luogu.com.cn/record/48031733)[手滑](https://www.luogu.com.cn/record/43453632)[矩阵转图点数 $n^2$](https://www.luogu.com.cn/record/45643119) [2](https://www.luogu.com.cn/record/45682782)[`xor` 存反向边从 $2$ 开始](https://www.luogu.com.cn/record/47683473)[孤点](https://www.luogu.com.cn/record/48375171)[存在虚点虚边时数组开大](https://www.luogu.com.cn/record/49229689)[无向边正反存](https://www.luogu.com.cn/record/50197597)[重边](https://www.luogu.com.cn/record/51674359)[自环](https://www.luogu.com.cn/record/52785993)[(圆方树)点数开两倍](https://www.luogu.com.cn/record/54160735) [2](https://www.luogu.com.cn/record/58147296)[(树)根的度数可能为 $1$](https://www.luogu.com.cn/record/54794817)[(树)tarjan lca 特判两点相等](https://www.luogu.com.cn/record/62986257)[(dij)要求前驱最小](https://www.luogu.com.cn/record/72122392)[(dinic)`now[v]=head[v]`](https://www.luogu.com.cn/record/76493624)7. 数据结构[(Trie)MLE](https://www.luogu.com.cn/record/43454957)[(线段树)区间加×长度](https://www.luogu.com.cn/record/46279441) [2](https://www.luogu.com.cn/record/55371093)[(分块)初始化后定 size](https://www.luogu.com.cn/record/46507370)[(BIT)值域取反](https://www.luogu.com.cn/record/46707673)[(lazytag)下放mul时add也要乘](https://www.luogu.com.cn/record/48818226)[(分块)`size=n/sqrt(m)`:若 $n<<m$ 会 size=0](https://www.luogu.com.cn/record/49069547)[(左偏树)保持fa和rt同步(每次操作rt[find(x)])](https://www.luogu.com.cn/record/50621093)[(线段树)4倍空间](https://www.luogu.com.cn/record/51687106) [2](https://www.luogu.com.cn/record/57719184)[(并查集)合并时更新环的信息:fa[x]=y,cir[y]|=cir[x]](https://www.luogu.com.cn/record/51759773)[(莫队)离线时与原次序对应](https://www.luogu.com.cn/record/52017194)[(ST)lg[len]](https://www.luogu.com.cn/record/52059568)[(树)父子dfn不一定相邻](https://www.luogu.com.cn/record/52062899)[(并查集)更新fa[x]=find(y)](https://www.luogu.com.cn/record/52360844)[(树)dfn上查子树的下一个特判dfn[u]+siz[u]<=n](https://www.luogu.com.cn/record/52362266)[(线段树)判右端点是否超过 $n$](https://www.luogu.com.cn/record/52430958)[(trie)点数为 $\sum|s|$](https://www.luogu.com.cn/record/52864885)[(主席树)空间 $4n+n\lceil\log_{2}n+1\rceil$](https://www.luogu.com.cn/record/53706249)[(链表)判首尾](https://www.luogu.com.cn/record/53738335)[(莫队)排序前算每个点在那个块](https://www.luogu.com.cn/record/53755881)[修改时注意除DS外的数组要不要改](https://www.luogu.com.cn/record/53885826)[区间 $l>r$](https://www.luogu.com.cn/record/53914752) https://www.luogu.com.cn/record/57668978[(线段树)区间查询](https://www.luogu.com.cn/record/56912992)[(BIT)下标不能为0(维护后缀时不能为n)](https://www.luogu.com.cn/record/57074024)[(Treap)树高期望 $2\log n$(持久化需开 $2n\log n$)](https://www.luogu.com.cn/record/57332918)[(持久化文艺平衡树)节点数 $4n\log n$](https://www.luogu.com.cn/record/57373556)[(hjt)值域](https://www.luogu.com.cn/record/57701876)[及时 update](https://www.luogu.com.cn/record/58675186)[(线段树)叶结点没有ls,rs](https://www.luogu.com.cn/record/63713194)[(扫描线)注意矩形的边界是否合法(是否需要 +1,-1)](https://www.luogu.com.cn/record/63737324)[(fhqTreap)每次insert新建一个点,开够空间](https://www.luogu.com.cn/record/65037549)[(李超树)当前区间没有线段不代表子树没有](https://www.luogu.com.cn/record/66910995)[(莫队)移动指针时注意 `--,++` 的位置](https://www.luogu.com.cn/record/68630787)[(trie)$0$ 是根而不是空节点](https://www.luogu.com.cn/record/75758248)[(分块)提交前注意 B 大小](https://www.luogu.com.cn/record/75993127)[(并查集)无效 mrg 不能撤销](https://www.luogu.com.cn/record/76367471)8. string[大写](https://www.luogu.com.cn/record/44122061) [2](https://www.luogu.com.cn/record/57668978)[自匹配](https://www.luogu.com.cn/record/46506898)[(string)[0,size()-1]](https://www.luogu.com.cn/record/51012236)[(插间隔字符)算好数组大小](https://www.luogu.com.cn/record/52017194)[(ACAM)分清trie上fa还是fail树上](https://www.luogu.com.cn/record/56898981)[(hash)hash值需要相乘时 $mod^2<2^{64}$](https://www.luogu.com.cn/record/57659542)[(kmp)kmp[1]=0](https://www.luogu.com.cn/record/64794826)[(sam)结点数2n-1](https://www.luogu.com.cn/record/64980438)[Rep(i,0,26](https://www.luogu.com.cn/record/64982049)9. DP[(斜优)特判横坐标相等](https://www.luogu.com.cn/record/58575634)[(计数)考虑清楚边界](https://www.luogu.com.cn/record/67541489)10. 其他[(倍增)玄学常数](https://www.luogu.com.cn/record/43569258)[(匈牙利)玄学建边](https://www.luogu.com.cn/record/45643218) [2](https://www.luogu.com.cn/record/45682782)[(前缀和)%后相减得负数](https://www.luogu.com.cn/record/45922145)[(dij)常数](https://www.luogu.com.cn/record/46113038)[(BFS)st=en](https://www.luogu.com.cn/record/46494757)[(lsh)unique](https://www.luogu.com.cn/record/47393788)[(dinic)分层](https://www.luogu.com.cn/record/47644857)[(ISAP)if(!--gap[dep[u]])](https://www.luogu.com.cn/record/48032101)[(Dinic)que.pop()](https://www.luogu.com.cn/record/48412279)[(Dinic)use<flow](https://www.luogu.com.cn/record/48412852)[(高精度)去除前导0](https://www.luogu.com.cn/record/48908390)[(二分)边界](https://www.luogu.com.cn/record/49135732) [分清下标和值域](https://www.luogu.com.cn/record/57362286)[(差分约束)边数为 $n+m$(源点向 $n$ 个点连边)](https://www.luogu.com.cn/record/49139548)[(实数三分)eps过小](https://www.luogu.com.cn/record/49471717)[(网络流跑二分图)边数+4n](https://www.luogu.com.cn/record/50013533)[(树剖)树上点or线段树上](https://www.luogu.com.cn/record/50612478)[(isap)`gap[dep[t]=1]=1`](https://www.luogu.com.cn/record/50681318)[(sort)第二关键字](https://www.luogu.com.cn/record/50864193)[(高精)各种错误](https://www.luogu.com.cn/record/51144250)[(网络流)算好数组大小](https://www.luogu.com.cn/record/51844023) [2](https://www.luogu.com.cn/record/54660571)[(上下界isap)第二遍mem(dep&gap)](https://www.luogu.com.cn/record/51866416)[(dfs)起点](https://www.luogu.com.cn/record/51987648)[(sort)`greater<int>()`](https://www.luogu.com.cn/record/52010906)[(dp)特判非法状态](https://www.luogu.com.cn/record/52114959)[(倍增)边权推点权后判lca](https://www.luogu.com.cn/record/53078272)[(dp)转移顺序](https://www.luogu.com.cn/record/54672039)[(lsh)还原](https://www.luogu.com.cn/record/54686437)[pair以first为第一关键字](https://www.luogu.com.cn/record/57098949)[(dp)边界](https://www.luogu.com.cn/record/57415304)# 题目[贪心:排序时第一维一样则第二维降序](https://www.luogu.com.cn/record/48698902)[增加匹配时不能更改已匹配的](https://www.luogu.com.cn/record/48703544)[手动去重&统计个数时最后的要在循环外取出](https://www.luogu.com.cn/record/48820247)[dp时f[v]=max(f[v],f[u])](https://www.luogu.com.cn/record/51823809)[如果不 `fa[n+1]=n+1`,就会从 n 跳到0,死循环](https://www.luogu.com.cn/record/52780254)[自环和当前边不优时都要打删除标记](https://www.luogu.com.cn/record/52786091)[差分约束系统的各子系统独立](https://www.luogu.com.cn/discuss/256016?page=1)[懒惰删除时先把最小值赋成自己](https://www.luogu.com.cn/record/65095909)[修改后发现不成立要改回来](https://www.luogu.com.cn/record/65151235)[特判初始团和独立集大小是否都 >0](https://www.luogu.com.cn/record/65466918)[记的判根的 del 标记](https://www.luogu.com.cn/record/72170783)# 玄学[UB:运算顺序](https://www.luogu.com.cn/discuss/show/204689)DLX : `(u[d[j]]=d[j]=ind) != (u[d[j]]=d[j]=ind)`。`r[l[head[i]]]=ind,l[head[i]]=ind;` 同[UB:运算顺序](https://www.luogu.com.cn/record/47087810)[字符数组最后多开一个存 `0`](https://www.luogu.com.cn/record/47683964)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233- `if(a)b;else c,d;`,应该写成 `a ? b : (c,d)`---1. ...[写反](https://www.luogu.com.cn/record/41433957) [2](https://www.luogu.com.cn/record/46157091) [3](https://www.luogu.com.cn/record/46275622) [4](https://www.luogu.com.cn/record/46798328) [5](https://www.luogu.com.cn/record/47644180) [6](https://www.luogu.com.cn/record/47683273) [7](https://www.luogu.com.cn/record/47725471) [8](https://www.luogu.com.cn/record/48122397) [9](https://www.luogu.com.cn/record/48675330) [10](https://www.luogu.com.cn/record/49153758) [11](https://www.luogu.com.cn/record/49300876) [12](https://www.luogu.com.cn/record/50006530) [13](https://www.luogu.com.cn/record/52433726) [14](https://www.luogu.com.cn/record/52633296) [15](https://www.luogu.com.cn/record/54664340) [16](https://www.luogu.com.cn/record/58675821)[删注释&调试](https://www.luogu.com.cn/record/40760007) [2](https://www.luogu.com.cn/record/49234340) [3](https://www.luogu.com.cn/record/51009830) [4](https://www.luogu.com.cn/record/51801810) [5](https://www.luogu.com.cn/record/51864750) [6](https://www.luogu.com.cn/record/54092099) [7](https://www.luogu.com.cn/record/54303698) [8](https://www.luogu.com.cn/record/56293178) [9](https://www.luogu.com.cn/record/67770689)[区间开闭](https://www.luogu.com.cn/problem/P1601) [2](https://www.luogu.com.cn/record/46237930) [3](https://www.luogu.com.cn/record/46321508)[分类不完全](https://www.luogu.com.cn/record/42903017)[对应输入](https://www.luogu.com.cn/record/42902416)[freopen](https://www.luogu.com.cn/record/43412119) [2](https://www.luogu.com.cn/record/46407714) [3](https://www.luogu.com.cn/record/47414894) [4](https://www.luogu.com.cn/record/49134786) [5](https://www.luogu.com.cn/record/49150140) [6](https://www.luogu.com.cn/record/49194507) [7](https://www.luogu.com.cn/record/49235522) [8](https://www.luogu.com.cn/record/51668715) [9](https://www.luogu.com.cn/record/51702479) [10](https://www.luogu.com.cn/record/51806449) [11](https://www.luogu.com.cn/record/52362266) [12](https://www.luogu.com.cn/record/58655698) [13](https://www.luogu.com.cn/record/62821143)[c++11](https://www.luogu.com.cn/record/44756430)符号: [括号错位](https://www.luogu.com.cn/record/45503106) [中文标点](https://www.luogu.com.cn/record/45643179) [多打,](https://www.luogu.com.cn/record/52851492)[函数return](https://www.luogu.com.cn/record/45604263)[打错变量](https://www.luogu.com.cn/record/45671542) [2](https://www.luogu.com.cn/record/46279912) [3](https://www.luogu.com.cn/record/46338997) [4](https://www.luogu.com.cn/record/46478542) [5](https://www.luogu.com.cn/record/50681318) [6](https://www.luogu.com.cn/record/51676610) [7](https://www.luogu.com.cn/record/51844110) [8](https://www.luogu.com.cn/record/51848594) [9](https://www.luogu.com.cn/record/52044515) [10](https://www.luogu.com.cn/record/53376643) [11](https://www.luogu.com.cn/record/53914498) [12](https://www.luogu.com.cn/record/54135390) [13](https://www.luogu.com.cn/record/55424656) [14](https://www.luogu.com.cn/record/56513143) [15](https://www.luogu.com.cn/record/56642185) [16](https://www.luogu.com.cn/record/57612737) [17](https://www.luogu.com.cn/record/57705023) [18](https://www.luogu.com.cn/record/57758374) [19](https://www.luogu.com.cn/record/57973316) [20](https://www.luogu.com.cn/record/58454379) [21](https://www.luogu.com.cn/record/62332549) [22](https://www.luogu.com.cn/record/66834943) [23](https://www.luogu.com.cn/record/68708325) [24](https://www.luogu.com.cn/record/70501798) [25](https://www.luogu.com.cn/record/75605846)[迷信O2](https://www.luogu.com.cn/record/46030174) [2](https://www.luogu.com.cn/record/47597850)[多个break条件判哪个](https://www.luogu.com.cn/record/46275585)[正负](https://www.luogu.com.cn/record/46349694)[特判0](https://www.luogu.com.cn/record/46504801) [2](https://www.luogu.com.cn/record/47733323) [3](https://www.luogu.com.cn/record/50104117) [4](https://www.luogu.com.cn/record/51317197) [5](https://www.luogu.com.cn/record/51817216) [6](https://www.luogu.com.cn/record/57067559) [7](https://www.luogu.com.cn/record/58169639)[sync+scanf](https://www.luogu.com.cn/record/46716226) [2](https://www.luogu.com.cn/record/46871102)[默认无序](https://www.luogu.com.cn/record/47307671) [2](https://www.luogu.com.cn/record/56938473)[判无解](https://www.luogu.com.cn/record/47689217) [2](https://www.luogu.com.cn/record/47733426) [3](https://www.luogu.com.cn/record/50628053)[输出特定字符串](https://www.luogu.com.cn/record/47717177) [2](https://www.luogu.com.cn/record/47725471) [3](https://www.luogu.com.cn/record/69813996)[输出特殊情况的结果后及时结束](https://www.luogu.com.cn/record/47717341)[$=$ 取舍](https://www.luogu.com.cn/record/47731987)[慎用 else](https://www.luogu.com.cn/record/48031733)[交互:`\n`](https://www.luogu.com.cn/record/49135678)[return 0](https://www.luogu.com.cn/record/49153329)[不要改题目给的生成数据的函数](https://www.luogu.com.cn/record/51180844)[“呼吸”](https://www.luogu.com.cn/record/45006003) [2](https://www.luogu.com.cn/record/46754936) [3](https://www.luogu.com.cn/record/51655624) [4](https://www.luogu.com.cn/record/54712672) [5](https://www.luogu.com.cn/record/58825266) [6](https://www.luogu.com.cn/record/61144380) [7](https://www.luogu.com.cn/record/61259909) [8](https://www.luogu.com.cn/record/69857001) [9](https://www.luogu.com.cn/record/73500248)[移位](https://www.luogu.com.cn/record/518551860)[mem过小/大](https://www.luogu.com.cn/record/list?user=236866) [2](https://www.luogu.com.cn/record/59705107)[break位置](https://www.luogu.com.cn/record/51944145)[write特判0](https://www.luogu.com.cn/record/52103488)[`break` or `continue`](https://www.luogu.com.cn/record/52115218)[`pair` 正反存](https://www.luogu.com.cn/record/52765866)[改写法时改全](https://www.luogu.com.cn/record/53693598) [2](https://www.luogu.com.cn/record/81434315)[&& or ||](https://www.luogu.com.cn/record/54092856)[初值](https://www.luogu.com.cn/record/54096423) [2](https://www.luogu.com.cn/record/56912992)[审题](https://www.luogu.com.cn/record/55819600) [2](https://www.luogu.com.cn/record/68671149) [3](https://www.luogu.com.cn/record/68982383)[卡常](https://www.luogu.com.cn/record/56508843)[转化后想清楚输出啥](https://www.luogu.com.cn/record/56633125)[前面的字符串未读完不能直接scanf后面的数](https://www.luogu.com.cn/record/57712805)[typo](https://www.luogu.com.cn/record/58702010) [2](https://www.luogu.com.cn/record/65998612)[同时做两件事时注意if的作用范围](https://www.luogu.com.cn/record/64522870)[复制粘贴后改全](https://www.luogu.com.cn/record/68697997)[(sort)不能以第一个元素为基准比较(会变)](https://www.luogu.com.cn/record/70391029)[本地对拍后提交前记得强制在线](https://www.luogu.com.cn/record/71001485)[判 STL 容器空(有时不会 RE)](https://www.luogu.com.cn/record/71048072)[`pbds` 空间带 $2$ 倍常数](https://www.luogu.com.cn/record/71700761)[环上问题特判 $n\rightarrow1$](https://www.luogu.com.cn/record/76276666)2. 数组[开小](https://www.luogu.com.cn/record/41777545) [2](https://www.luogu.com.cn/record/46156966) [3](https://www.luogu.com.cn/record/47349743) [4](https://www.luogu.com.cn/record/47597728) [5](https://www.luogu.com.cn/record/47769509) [6](https://www.luogu.com.cn/record/48084630) [7](https://www.luogu.com.cn/record/48389660) [8](https://www.luogu.com.cn/record/48909756) [9](https://www.luogu.com.cn/record/51674144) [10](https://www.luogu.com.cn/record/52521637) [11](https://www.luogu.com.cn/record/55816175) [12](https://www.luogu.com.cn/record/58393397) [13](https://www.luogu.com.cn/record/58789961) [14](https://www.luogu.com.cn/record/60376313) [15](https://www.luogu.com.cn/record/63063471) [16](https://www.luogu.com.cn/record/65987012) [17](https://uoj.ac/submission/553656)[MLE](https://www.luogu.com.cn/record/41781597) [2](https://www.luogu.com.cn/record/48773258) [3](https://www.luogu.com.cn/record/49198134) [4](https://www.luogu.com.cn/record/55424689) [动态开内存不要用stack](https://www.luogu.com.cn/record/57355590) [6](https://www.luogu.com.cn/record/57623129)[边界](https://www.luogu.com.cn/record/41854297) [2](https://www.luogu.com.cn/record/45491335) [3](https://www.luogu.com.cn/record/45488769) [4](https://www.luogu.com.cn/record/47414834) [5](https://www.luogu.com.cn/record/48392635) [6](https://www.luogu.com.cn/record/50627473) [7](https://www.luogu.com.cn/record/51257550) [8](https://www.luogu.com.cn/record/51317690) [9](https://www.luogu.com.cn/record/53749419)[复制](https://www.luogu.com.cn/record/43411681)除法 $\lfloor N\rfloor$[序列长度or块数](https://www.luogu.com.cn/record/44509753)[下标从0开始](https://www.luogu.com.cn/record/44701052)[1e?](https://www.luogu.com.cn/record/46066108) [2](https://www.luogu.com.cn/record/47717177) [3](https://www.luogu.com.cn/record/48822352) [4](https://www.luogu.com.cn/record/48981626) [5](https://www.luogu.com.cn/record/51763841)[顺序 & 传参](https://www.luogu.com.cn/record/46081647)[越界](https://www.luogu.com.cn/record/46798264)[memset成inf后用桶统计](https://www.luogu.com.cn/record/47944290)[不确定能处理完时手动最后若干个](https://www.luogu.com.cn/record/50601215)[动态开点后回收](https://www.luogu.com.cn/record/50621093)[打错常量](https://www.luogu.com.cn/record/75964950)3. long long & double & __int128[没开全](https://www.luogu.com.cn/record/40867299) [2](https://www.luogu.com.cn/record/44765471) [3](https://www.luogu.com.cn/record/46979964) [4](https://www.luogu.com.cn/record/46987000) [5](https://www.luogu.com.cn/record/47308017) [6](https://www.luogu.com.cn/record/47644980) [7](https://www.luogu.com.cn/record/48308581) [8](https://www.luogu.com.cn/record/48309016) [9](https://www.luogu.com.cn/record/48642884) [10](https://www.luogu.com.cn/record/48817629) [11](https://www.luogu.com.cn/record/49145459) [12](https://www.luogu.com.cn/record/50555821) [13](https://www.luogu.com.cn/record/51943880) [14](https://www.luogu.com.cn/record/53840100) [15](https://www.luogu.com.cn/record/54672073) [16](https://www.luogu.com.cn/record/54675994) [17](https://www.luogu.com.cn/record/54776589) [18](https://www.luogu.com.cn/record/57412516) [19](https://www.luogu.com.cn/record/57614855) [20](https://www.luogu.com.cn/record/60531804) [21](https://www.luogu.com.cn/record/61039021) [22](https://www.luogu.com.cn/record/64887548) [23](https://www.luogu.com.cn/record/65572527) [24](https://www.luogu.com.cn/record/69443827) [25](https://www.luogu.com.cn/record/75507878) [26](https://www.luogu.com.cn/record/76021093)[没开](https://www.luogu.com.cn/record/41087646) [2](https://www.luogu.com.cn/record/45006021) [3](https://www.luogu.com.cn/record/47642827) [4](https://www.luogu.com.cn/record/48642863) [5](https://www.luogu.com.cn/record/48821531) [6](https://www.luogu.com.cn/record/51763674) [7](https://www.luogu.com.cn/record/54640514) [8](https://www.luogu.com.cn/record/54775337) [9](https://www.luogu.com.cn/record/56523580) [10](https://www.luogu.com.cn/record/56682526)[按位比大小](https://www.luogu.com.cn/record/43411681)[超过就break](https://www.luogu.com.cn/record/46484161)[输出](https://www.luogu.com.cn/record/46986915) [`long double`](https://www.luogu.com.cn/record/47345316)[LL_max=0x3f3f3f3f3f3f3f3f](https://www.luogu.com.cn/record/47944231)[double 输出整数 %.0lf](https://www.luogu.com.cn/record/49471596)[精度](https://www.luogu.com.cn/problem/P5931) [2](https://www.luogu.com.cn/record/53265368) [3](https://www.luogu.com.cn/record/62664136)[`inf` 过大/小](https://www.luogu.com.cn/record/62906203) [2](https://www.luogu.com.cn/record/66505485) [2](https://www.luogu.com.cn/record/77956123)[改类型后记得改常量](https://www.luogu.com.cn/record/70338754)[强制在线解密前的数可能是 `long long`](https://www.luogu.com.cn/record/71002747)4. 多测[clear放错位置](https://www.luogu.com.cn/record/40821114)[读入未完就特判](https://www.luogu.com.cn/record/41722041)[que.pop()](https://www.luogu.com.cn/record/42445688)[顺序](https://www.luogu.com.cn/record/46404347)[清空](https://www.luogu.com.cn/record/62935902)5. 数学[^0=1](https://www.luogu.com.cn/record/43568913) [2](https://www.luogu.com.cn/record/49153758)(`lcm`)先 `/` 后 `*`[整除分块:先/后*](https://www.luogu.com.cn/record/45907599)[负负得正](https://www.luogu.com.cn/record/46030604)[(快速幂)底数先mod](https://www.luogu.com.cn/record/46727565)[(自然数幂和)先mod](https://www.luogu.com.cn/record/46979964)[mod下取回正数](https://www.luogu.com.cn/record/47274215) [2](https://www.luogu.com.cn/record/51966852) [3](https://www.luogu.com.cn/record/52114847) [4](https://www.luogu.com.cn/record/58448842) [5](https://www.luogu.com.cn/record/59656172)[少mod](https://www.luogu.com.cn/record/47598220) [2](https://www.luogu.com.cn/record/48068973) [3](https://www.luogu.com.cn/record/47312570) [4](https://www.luogu.com.cn/record/54802270) [5](https://www.luogu.com.cn/record/54991807) [6](https://www.luogu.com.cn/record/56507389) [7](https://www.luogu.com.cn/record/64919252) [8](https://www.luogu.com.cn/record/66239885)[异或和不能用0来判断是否访问过](https://www.luogu.com.cn/record/48084751)[取二进制后k位](https://www.luogu.com.cn/record/51076708)[枚举二进制后k位为0的数](https://www.luogu.com.cn/record/51076841)[等差数列求和](https://www.luogu.com.cn/record/51322402)[*0=0](https://www.luogu.com.cn/record/52114959)[模数为1时初值为0](https://www.luogu.com.cn/record/58815969)[多 mod](https://www.luogu.com.cn/record/59403401)[(凸包)二分时判边界](https://www.luogu.com.cn/record/66511478)[`()%+mod`](https://www.luogu.com.cn/record/66580631)[(半平面交)判平行](https://www.luogu.com.cn/record/70386581)[模意义下 `/`](https://www.luogu.com.cn/record/72901920)[看清 mod](https://www.luogu.com.cn/record/77529294)6. 图论[联通性](https://www.luogu.com.cn/record/41427065) [2](https://www.luogu.com.cn/record/48630754) [3](https://www.luogu.com.cn/record/51674114) [4](https://www.luogu.com.cn/record/54132156)[有向图](https://www.luogu.com.cn/record/41777418)(虽然`pair`也写反了) [2](https://www.luogu.com.cn/record/51674395)[边权为0](https://www.luogu.com.cn/record/42256802)[无向边开双倍数组](https://www.luogu.com.cn/record/42805288) [2](https://www.luogu.com.cn/record/66110587)[点数为 $1$ or $2$](https://www.luogu.com.cn/record/43194033) [2](https://www.luogu.com.cn/record/48031733)[手滑](https://www.luogu.com.cn/record/43453632)[矩阵转图点数 $n^2$](https://www.luogu.com.cn/record/45643119) [2](https://www.luogu.com.cn/record/45682782)[`xor` 存反向边从 $2$ 开始](https://www.luogu.com.cn/record/47683473)[孤点](https://www.luogu.com.cn/record/48375171)[存在虚点虚边时数组开大](https://www.luogu.com.cn/record/49229689)[无向边正反存](https://www.luogu.com.cn/record/50197597)[重边](https://www.luogu.com.cn/record/51674359)[自环](https://www.luogu.com.cn/record/52785993)[(圆方树)点数开两倍](https://www.luogu.com.cn/record/54160735) [2](https://www.luogu.com.cn/record/58147296)[(树)根的度数可能为 $1$](https://www.luogu.com.cn/record/54794817)[(树)tarjan lca 特判两点相等](https://www.luogu.com.cn/record/62986257)[(dij)要求前驱最小](https://www.luogu.com.cn/record/72122392)[(dinic)`now[v]=head[v]`](https://www.luogu.com.cn/record/76493624)7. 数据结构[(Trie)MLE](https://www.luogu.com.cn/record/43454957)[(线段树)区间加×长度](https://www.luogu.com.cn/record/46279441) [2](https://www.luogu.com.cn/record/55371093)[(分块)初始化后定 size](https://www.luogu.com.cn/record/46507370)[(BIT)值域取反](https://www.luogu.com.cn/record/46707673)[(lazytag)下放mul时add也要乘](https://www.luogu.com.cn/record/48818226)[(分块)`size=n/sqrt(m)`:若 $n<<m$ 会 size=0](https://www.luogu.com.cn/record/49069547)[(左偏树)保持fa和rt同步(每次操作rt[find(x)])](https://www.luogu.com.cn/record/50621093)[(线段树)4倍空间](https://www.luogu.com.cn/record/51687106) [2](https://www.luogu.com.cn/record/57719184)[(并查集)合并时更新环的信息:fa[x]=y,cir[y]|=cir[x]](https://www.luogu.com.cn/record/51759773)[(莫队)离线时与原次序对应](https://www.luogu.com.cn/record/52017194)[(ST)lg[len]](https://www.luogu.com.cn/record/52059568)[(树)父子dfn不一定相邻](https://www.luogu.com.cn/record/52062899)[(并查集)更新fa[x]=find(y)](https://www.luogu.com.cn/record/52360844)[(树)dfn上查子树的下一个特判dfn[u]+siz[u]<=n](https://www.luogu.com.cn/record/52362266)[(线段树)判右端点是否超过 $n$](https://www.luogu.com.cn/record/52430958)[(trie)点数为 $\sum|s|$](https://www.luogu.com.cn/record/52864885)[(主席树)空间 $4n+n\lceil\log_{2}n+1\rceil$](https://www.luogu.com.cn/record/53706249)[(链表)判首尾](https://www.luogu.com.cn/record/53738335)[(莫队)排序前算每个点在那个块](https://www.luogu.com.cn/record/53755881)[修改时注意除DS外的数组要不要改](https://www.luogu.com.cn/record/53885826)[区间 $l>r$](https://www.luogu.com.cn/record/53914752) https://www.luogu.com.cn/record/57668978[(线段树)区间查询](https://www.luogu.com.cn/record/56912992)[(BIT)下标不能为0(维护后缀时不能为n)](https://www.luogu.com.cn/record/57074024)[(Treap)树高期望 $2\log n$(持久化需开 $2n\log n$)](https://www.luogu.com.cn/record/57332918)[(持久化文艺平衡树)节点数 $4n\log n$](https://www.luogu.com.cn/record/57373556)[(hjt)值域](https://www.luogu.com.cn/record/57701876)[及时 update](https://www.luogu.com.cn/record/58675186)[(线段树)叶结点没有ls,rs](https://www.luogu.com.cn/record/63713194)[(扫描线)注意矩形的边界是否合法(是否需要 +1,-1)](https://www.luogu.com.cn/record/63737324)[(fhqTreap)每次insert新建一个点,开够空间](https://www.luogu.com.cn/record/65037549)[(李超树)当前区间没有线段不代表子树没有](https://www.luogu.com.cn/record/66910995)[(莫队)移动指针时注意 `--,++` 的位置](https://www.luogu.com.cn/record/68630787)[(trie)$0$ 是根而不是空节点](https://www.luogu.com.cn/record/75758248)[(分块)提交前注意 B 大小](https://www.luogu.com.cn/record/75993127)[(并查集)无效 mrg 不能撤销](https://www.luogu.com.cn/record/76367471)8. string[大写](https://www.luogu.com.cn/record/44122061) [2](https://www.luogu.com.cn/record/57668978)[自匹配](https://www.luogu.com.cn/record/46506898)[(string)[0,size()-1]](https://www.luogu.com.cn/record/51012236)[(插间隔字符)算好数组大小](https://www.luogu.com.cn/record/52017194)[(ACAM)分清trie上fa还是fail树上](https://www.luogu.com.cn/record/56898981)[(hash)hash值需要相乘时 $mod^2<2^{64}$](https://www.luogu.com.cn/record/57659542)[(kmp)kmp[1]=0](https://www.luogu.com.cn/record/64794826)[(sam)结点数2n-1](https://www.luogu.com.cn/record/64980438)[Rep(i,0,26](https://www.luogu.com.cn/record/64982049)9. DP[(斜优)特判横坐标相等](https://www.luogu.com.cn/record/58575634)[(计数)考虑清楚边界](https://www.luogu.com.cn/record/67541489)10. 其他[(倍增)玄学常数](https://www.luogu.com.cn/record/43569258)[(匈牙利)玄学建边](https://www.luogu.com.cn/record/45643218) [2](https://www.luogu.com.cn/record/45682782)[(前缀和)%后相减得负数](https://www.luogu.com.cn/record/45922145)[(dij)常数](https://www.luogu.com.cn/record/46113038)[(BFS)st=en](https://www.luogu.com.cn/record/46494757)[(lsh)unique](https://www.luogu.com.cn/record/47393788)[(dinic)分层](https://www.luogu.com.cn/record/47644857)[(ISAP)if(!--gap[dep[u]])](https://www.luogu.com.cn/record/48032101)[(Dinic)que.pop()](https://www.luogu.com.cn/record/48412279)[(Dinic)use<flow](https://www.luogu.com.cn/record/48412852)[(高精度)去除前导0](https://www.luogu.com.cn/record/48908390)[(二分)边界](https://www.luogu.com.cn/record/49135732) [分清下标和值域](https://www.luogu.com.cn/record/57362286)[(差分约束)边数为 $n+m$(源点向 $n$ 个点连边)](https://www.luogu.com.cn/record/49139548)[(实数三分)eps过小](https://www.luogu.com.cn/record/49471717)[(网络流跑二分图)边数+4n](https://www.luogu.com.cn/record/50013533)[(树剖)树上点or线段树上](https://www.luogu.com.cn/record/50612478)[(isap)`gap[dep[t]=1]=1`](https://www.luogu.com.cn/record/50681318)[(sort)第二关键字](https://www.luogu.com.cn/record/50864193)[(高精)各种错误](https://www.luogu.com.cn/record/51144250)[(网络流)算好数组大小](https://www.luogu.com.cn/record/51844023) [2](https://www.luogu.com.cn/record/54660571)[(上下界isap)第二遍mem(dep&gap)](https://www.luogu.com.cn/record/51866416)[(dfs)起点](https://www.luogu.com.cn/record/51987648)[(sort)`greater<int>()`](https://www.luogu.com.cn/record/52010906)[(dp)特判非法状态](https://www.luogu.com.cn/record/52114959)[(倍增)边权推点权后判lca](https://www.luogu.com.cn/record/53078272)[(dp)转移顺序](https://www.luogu.com.cn/record/54672039)[(lsh)还原](https://www.luogu.com.cn/record/54686437)[pair以first为第一关键字](https://www.luogu.com.cn/record/57098949)[(dp)边界](https://www.luogu.com.cn/record/57415304)# 题目[贪心:排序时第一维一样则第二维降序](https://www.luogu.com.cn/record/48698902)[增加匹配时不能更改已匹配的](https://www.luogu.com.cn/record/48703544)[手动去重&统计个数时最后的要在循环外取出](https://www.luogu.com.cn/record/48820247)[dp时f[v]=max(f[v],f[u])](https://www.luogu.com.cn/record/51823809)[如果不 `fa[n+1]=n+1`,就会从 n 跳到0,死循环](https://www.luogu.com.cn/record/52780254)[自环和当前边不优时都要打删除标记](https://www.luogu.com.cn/record/52786091)[差分约束系统的各子系统独立](https://www.luogu.com.cn/discuss/256016?page=1)[懒惰删除时先把最小值赋成自己](https://www.luogu.com.cn/record/65095909)[修改后发现不成立要改回来](https://www.luogu.com.cn/record/65151235)[特判初始团和独立集大小是否都 >0](https://www.luogu.com.cn/record/65466918)[记的判根的 del 标记](https://www.luogu.com.cn/record/72170783)# 玄学[UB:运算顺序](https://www.luogu.com.cn/discuss/show/204689)DLX : `(u[d[j]]=d[j]=ind) != (u[d[j]]=d[j]=ind)`。`r[l[head[i]]]=ind,l[head[i]]=ind;` 同[UB:运算顺序](https://www.luogu.com.cn/record/47087810)[字符数组最后多开一个存 `0`](https://www.luogu.com.cn/record/47683964)