版本比较
计划(2025)
版本
更早的 132 个版本
- v132
- v131
- v130
- v129
- v128
- v127
- v126
- v125
- v124
- v123
- v122
- v121
- v120
- v119
- v118
- v117
- v116
- v115
- v114
- v113
- v112
- v111
- v110
- v109
- v108
- v107
- v106
- v105
- v104
- v103
- v102
- v101
- v100
- v99
- v98
- v97
- v96
- v95
- v94
- v93
- v92
- v91
- v90
- v89
- v88
- v87
- v86
- v85
- v84
- v83
- v82
- v81
- v80
- v79
- v78
- v77
- v76
- v75
- v74
- v73
- v72
- v71
- v70
- v69
- v68
- v67
- v66
- v65
- v64
- v63
- v62
- v61
- v60
- v59
- v58
- v57
- v56
- v55
- v54
- v53
- v52
- v51
- v50
- v49
- v48
- v47
- v46
- v45
- v44
- v43
- v42
- v41
- v40
- v39
- v38
- v37
- v36
- v35
- v34
- v33
- v32
- v31
- v30
- v29
- v28
- v27
- v26
- v25
- v24
- v23
- v22
- v21
- v20
- v19
- v18
- v17
- v16
- v15
- v14
- v13
- v12
- v11
- v10
- v9
- v8
- v7
- v6
- v5
- v4
- v3
- v2
- v1
标题
增加 1 行删除 1 行
11计划计划(2025)正文
增加 544 行删除 82 行
8 行未改动9101112131415161718192021222324251314151617181920212223242526272829303132333435363738394041424344313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828345464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154306 行未改动全部展开461462463464398399400401402403404405406407465466467468469470471472473474475476477478112 行未改动全部展开5915925935945285295305315325335955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949958 行未改动:::align{center}## 比赛记录:::
| 日期 | 链接 | 总结 | $\Delta \, and \, \text{Rank} \, and \, \text{nex}$ || :-----------------: | :---------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------: || $\text{2025/11/22}$ | [Conclusion Masters #3: LAOI-R11](https://www.luogu.com.cn/contest/230112) | 思维含量很高的比赛,赛时我只会 T1,T1 做法:数据范围中 $m$ 固定,所以 $m-2n \ge \sqrt{m}$,直接输出小于等于 $m$ 的最大的 $n$ 个奇数即可。 | $\color{red}{+38}$ $\text{107/730}$ || ^ | [【MX - S12】梦熊 NOIP 2025 模拟赛 4(同步赛)](https://www.luogu.com.cn/contest/287515) | 十分低质量的比赛。数据很水。T1 做法:注意到只保留 $p= \max_{1 \le i \le n} a_n$ 和 $p= \max_{1 \le i \le n} a_n +1$ 即可。T2 做法:给 $i$ 位置赋随机值 $S_i$,使得对于所有 $x \in [1,n]$, $\sum_{c_i=x} S_i=0$。区间 $[l,r]$ 合法当且仅当 $\sum_{i=l}^{r} a_i = 0$,暴力计算即可。 | $\text{UnRated}$ $\text{705/1759}$ || $\text{2025/11/23}$ | [【LGR-249-Div.3】洛谷基础赛 #27 &「S4OI」Round 1](https://www.luogu.com.cn/contest/242706) | T1T2 过于简单,T3 题解:对 $a_i+1$ 作前缀和 $S_i$,题目转化为求满足 $S_r-S_l \le \max a_i$ 的 $l,r$ 中 $r-l+1$ 的最大值,直接双指针即可。 | $\color{red}{+55}$ $\text{112/2342}$ || $\text{2025/12/6}$ | [PhirainEX Round 1](https://www.luogu.com.cn/contest/288474) | 打得很好,T1 题解:使用 set 维护没有感染病毒也没戴口罩的人,使用 int 维护有多少个感染了病毒也没戴口罩的人。T2 题解:随便写个假贪心,拼上 $O(2^n)$ 爆搜就能通过 | $\color{red}{+25}$ $\text{124/1188}$ || ^ | [Codeforces Round 1069 (Div. 2)](https://codeforces.com/contests/2175) | T1 唐题,没有题解。T2 转化成构造异或前缀和使 $s_{l-1}=s_r$,其他都不等。T3 唐题。 | $\color{red}{+161}$ $\text{3001/8129}$ $\text{nex:}\color{red}{1200}$ || ^ | [AtCoder Beginner Contest 435](https://atcoder.jp/contests/abc435) | 唐赛。 | $\color{red}{+55}$ $\text{1675/9847}$ || $\text{2025/12/7}$ | [【LGR-253-Div.3】洛谷基础赛 #28 & KenOI Round 1](https://www.luogu.com.cn/contest/254710) | 困难的,T1 思路:$ans=\lfloor \frac{\lfloor \sqrt{n} \rfloor}{3} \rfloor$,T2 思路:直接贪心。 | $\color{red}{ +24}$ $\text{145/2669}$ $\text{nex:}\color{red}{1600}$ || $\text{2025/12/13}$ | [AtCoder Beginner Contest 436](https://atcoder.jp/contests/abc436) | A,B,C 唐题,D 是 [ABC184E](https://www.luogu.com.cn/problem/AT_abc184_e) | $\color{red}{+12}$ $\text{3145/10301}$ $\text{nex:}\color{red}{1000}$ || $\text{2025/12/14}$ | [Opoi 2025 div.1](https://www.luogu.com.cn/contest/194086) | 太难了,只会拼暴力。 | $\color{red}{+29}$ $\text{35/247}$ || $\text{2025/12/20}$ | [AtCoder Beginner Contest 437](https://atcoder.jp/contests/abc437) | C 的题解:求出 $sp=\sum p_i$,考虑最多能选几个 $w_i+p_i$ 即可。D 的题解:排序 $a,b$,拆绝对值即可。F 的题解:拆绝对值,使用线段树维护 | $\color{red}{+65}$ $\text{1328/10280}$ $\text{nex:}\color{red}{1200}$ || $\text{2025/12/21}$ | [【LGR-255-Div.2】洛谷 12 月月赛 I &「菜菜杯」Round 1](https://www.luogu.com.cn/contest/276342) | A 题解:猜结论即可通过。B 题解:$ans=\min(\min_{i=1}^{\lfloor \sqrt{n} \rfloor} (i+\lfloor \frac{n}{i} \rfloor+k \times (n\mod i)),n \times k)$ | $\color{red}{+??}$ $\text{188/2069}$ || 日期 | 链接 | 总结 | $\Delta \, and \, \text{Rank} \, and \, \text{nex}$ || :------------------------: | :--------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------: || $\text{2025/11/22}$ | [Conclusion Masters #3: LAOI-R11](https://www.luogu.com.cn/contest/230112) | 思维含量很高的比赛,赛时我只会 T1,T1 做法:数据范围中 $m$ 固定,所以 $m-2n \ge \sqrt{m}$,直接输出小于等于 $m$ 的最大的 $n$ 个奇数即可。 | $\color{red}{+38}$ $\text{107/730}$ || ^ | [【MX - S12】梦熊 NOIP 2025 模拟赛 4(同步赛)](https://www.luogu.com.cn/contest/287515) | 十分低质量的比赛。数据很水。T1 做法:注意到只保留 $p= \max_{1 \le i \le n} a_n$ 和 $p= \max_{1 \le i \le n} a_n +1$ 即可。T2 做法:给 $i$ 位置赋随机值 $S_i$,使得对于所有 $x \in [1,n]$, $\sum_{c_i=x} S_i=0$。区间 $[l,r]$ 合法当且仅当 $\sum_{i=l}^{r} a_i = 0$,暴力计算即可。 | $\text{UnRated}$ $\text{705/1759}$ || $\text{2025/11/23}$ | [【LGR-249-Div.3】洛谷基础赛 #27 &「S4OI」Round 1](https://www.luogu.com.cn/contest/242706) | T1T2 过于简单,T3 题解:对 $a_i+1$ 作前缀和 $S_i$,题目转化为求满足 $S_r-S_l \le \max a_i$ 的 $l,r$ 中 $r-l+1$ 的最大值,直接双指针即可。 | $\color{red}{+55}$ $\text{112/2342}$ || $\text{2025/12/6}$ | [PhirainEX Round 1](https://www.luogu.com.cn/contest/288474) | 打得很好,T1 题解:使用 set 维护没有感染病毒也没戴口罩的人,使用 int 维护有多少个感染了病毒也没戴口罩的人。T2 题解:随便写个假贪心,拼上 $O(2^n)$ 爆搜就能通过 | $\color{red}{+25}$ $\text{124/1188}$ || ^ | [Codeforces Round 1069 (Div. 2)](https://codeforces.com/contests/2175) | T1 唐题,没有题解。T2 转化成构造异或前缀和使 $s_{l-1}=s_r$,其他都不等。T3 唐题。 | $\color{red}{+161}$ $\text{3001/8129}$ $\text{nex:}\color{red}{1200}$ || ^ | [AtCoder Beginner Contest 435](https://atcoder.jp/contests/abc435) | 唐赛。 | $\color{red}{+55}$ $\text{1675/9847}$ || $\text{2025/12/7}$ | [【LGR-253-Div.3】洛谷基础赛 #28 & KenOI Round 1](https://www.luogu.com.cn/contest/254710) | 困难的,T1 思路:$ans=\lfloor \frac{\lfloor \sqrt{n} \rfloor}{3} \rfloor$,T2 思路:直接贪心。 | $\color{red}{ +24}$ $\text{145/2669}$ $\text{nex:}\color{red}{1600}$ || $\text{2025/12/13}$ | [AtCoder Beginner Contest 436](https://atcoder.jp/contests/abc436) | A,B,C 唐题,D 是 [ABC184E](https://www.luogu.com.cn/problem/AT_abc184_e) | $\color{red}{+12}$ $\text{3145/10301}$ $\text{nex:}\color{red}{1000}$ || $\text{2025/12/14}$ | [Opoi 2025 div.1](https://www.luogu.com.cn/contest/194086) | 太难了,只会拼暴力。 | $\color{red}{+29}$ $\text{35/247}$ || $\text{2025/12/20}$ | [AtCoder Beginner Contest 437](https://atcoder.jp/contests/abc437) | C 的题解:求出 $sp=\sum p_i$,考虑最多能选几个 $w_i+p_i$ 即可。D 的题解:排序 $a,b$,拆绝对值即可。F 的题解:拆绝对值,使用线段树维护 | $\color{red}{+65}$ $\text{1328/10280}$ $\text{nex:}\color{red}{1200}$ || $\text{2025/12/21}$ | [【LGR-255-Div.2】洛谷 12 月月赛 I &「菜菜杯」Round 1](https://www.luogu.com.cn/contest/276342) | A 题解:猜结论即可通过。B 题解:$ans=\min(\min_{i=1}^{\lfloor \sqrt{n} \rfloor} (i+\lfloor \frac{n}{i} \rfloor+k \times (n\mod i)),n \times k)$ | $\color{red}{+28}$ $\text{188/2069}$ || $\text{2025/12/27}$ | [AtCoder Beginner Contest 438](https://atcoder.jp/contests/abc438) | D 的题解:作 $C_i=C_{i-1}+a_i-b_i$,$p_i=(\sum_{p=1}^i b_p)+\max^{i-1}_{p=1} C_i$, $ans=\max_{i=1}^{n-1} (p_i+\sum_{j=i+1}^n c_i)$。 | $\color{red}{+18}$ $\text{2381/9378}$ || $\text{2025/12/28}$ | [【LGR-256-Div.3】洛谷基础赛 #29 & QFOI Round 3](https://www.luogu.com.cn/contest/256235) | T3 不会。T4 题解:利用 $0$ 权边将全图归约为两个超级连通块:奇数树根与偶数树叶互通的集合 $A$,以及偶数树根与奇数树叶互通的集合 $B$。若 $k$ 为奇数,首尾相邻使得 $A, B$ 本质连通,切换代价为 $0$;若 $k$ 为偶数,切换必须在树内进行,代价 $W$ 为所有树中根到最近叶子距离的最小值。每次询问比较树内 LCA 路径与经由 $A, B$ 中转路径的代价,其中计算完全二叉树节点 $u$ 到最近叶子距离时,利用位运算判断子树在深度 $H-1$ 的区间 $[L, R]$ 是否包含编号 $>n/2$ 的节点,若包含则距离为 $H-1-dep_u$,否则为 $H-dep_u$。 | $\text{UnRated}$ $\text{86/2399}$ || $\text{2025/12/31}$ | [【LGR-260-Div.1 + 2】洛谷 12 月月赛 II & FAOI R10: 2025-2026 跨年赛](https://www.luogu.com.cn/contest/251472) | T4 题解:从高位到低位贪心确定答案每一位,检查候选值 $x$ 时计算前缀异或和与 $x$ 的按位与得到序列 $t$,若满足 $t_n$ 的奇偶性条件($m$ 为奇数时 $t_n = x$,否则为 $0$)且能在 $t_1$ 到 $t_{n-1}$ 中找到 $m-1$ 个点使其值交替为 $x$ 和 $0$,则该位可取 $1$。时间复杂度 $O(n \log \max a_i)$。T3 题解:枚举 Mex,注意到 $k \le 2$,随便做下就可以了。 | $\color{red}{+58}$ $\text{174/2919}$ || $\color{red}{2026/1/1}$ | [GenshinOI Round 6](https://www.luogu.com.cn/contest/261469) | 0 题水平,52 + 68 + 20 + 64 = 204,部分分:T1 打表找无解的情况,有解爆搜。 T2 写一个暴力,特殊性质 B,不能暴力或特殊性质 B 的情况全部输出 `NO`(全部输出 `NO` 能过性质 A 和 $A_{i,j} \ge id-17$,可以证明)T3 打表找无解的情况,T4 写一个前缀和暴力,随机数据下如果询问矩阵大输出 $n$,询问矩阵小暴力。(过不了 #21)Gemini 3.0 pro 的成绩:25 + 100 + 34 + 32 = 191。 | $\color{red}{+66}$ $\text{27/462}$ || $\text{2026/1/2}$ | [GenshinOI Round 7](https://www.luogu.com.cn/contest/261472) | 100 + 100 + 6 + 40 = 246,T1 特判 $k = 3$,其余枚举 $[1,\lfloor \sqrt[k]{n}] \rfloor$,T2 全零矩阵乘上任何矩阵都为,用快速幂对其做 $1024$ 次幂,得到全零矩阵就输出 `YES`,否则 `NO`,T3 看样例,T4 构造一个狭窄的结构,显然所有情况有解。 | $\text{UnRated}$ $\text{18/362}$ || $\text{2026/1/3}$ | [【LGR-257-Div.2】洛谷 1 月月赛 I & ffbb OI round 1](https://www.luogu.com.cn/contest/226658) | 100 + 60 + 61 + 5 = 226,全是平凡的,没有题解。 | $\color{red}{+18}$ $\text{164/2482}$ || $\text{2026/1/10}$ | [【LGR-258-Div.2】洛谷 1 月月赛 II & KWOI Round 1](https://www.luogu.com.cn/contest/280819) | T1 题解:按从小到大顺序给 $b_i$ 赋值。T2 题解:目标是使相邻数之和 $>n$ 的最少,大的小的分开放:$1,n-2,2,n-3,\dots,n-1,n$。T4 题解:操作本质为为交换差分数组中的相邻元素。根据最高有效位分组,使用猜结论即可通过。 | $\color{red}{+24}$ $\text{106/2111}$ || ^ | [AtCoder Beginner Contest 440](https://atcoder.jp/contests/abc440) | C 题解:发现 $W$ 很烦,使用累加消除 $W$ 的影响即可。D 题解:二分套二分。 | $\color{red}{+134}$ $\text{380/10207}$ || $\text{2026/1/17}$ | [『LHB-OI』Round 1](https://www.luogu.com.cn/contest/302723) | T2 题解:记 $P_i = \prod_{l=1}^{i} a_{l}^{\,2^{\,i-l}}$。可以发现 $P_i = P_{i-1}^2 \cdot a_i \pmod M$。双重求和部分 $=(\sum_{i=1}^{k-1} P_i)^2$。直接维护即可。T1 题解:显然问题关于 $x$ 独立,拆分成独立的一维问题。枚举 $\lfloor k/w \rfloor$,双指针即可。 | $\text{UnRated}$ $\text{39/373}$ || ^ | [『GTOI』Round 2](https://www.luogu.com.cn/contest/298257) | T2 题解:先把连续的提交代码时间段合并。然后直接贪心。T4 题解:针对前五个子任务共七十分的数据,可以直接采用 $O(NQ)$ 的暴力模拟做法。对于修改操作,直接遍历数组进行区间取反;对于查询操作,利用栈线性扫描区间内的字符,遇到 `0` 入栈,遇到 `1` 则尝试与栈顶 `0` 匹配消除,否则入栈。统计最后剩余的 `0` 和 `1` 的数量,结合区间长度 $len$,利用组合数学中的反射原理公式 $\binom{len}{k} - \binom{len}{k+1}$(其中 $k=(len+c_0+c_1)/2$)计算答案,该做法能够在 $N,Q \le 5000$ 或 $Q=1$ 的限制下不超时从而拿到全部分数。 | $\text{UnRated}$ $\text{99/1493}$ || ^ | [AtCoder Beginner Contest 441 (Promotion of Engineer Guild Fes)](https://atcoder.jp/contests/abc441) | D 题解:直接爆搜。C 题解:肯定从最大的开始选。E 题解:将 `A` 看成 $-1$,`B` 看成 $1$, `C` 看成 $0$。前缀和后做逆序对。 | $\color{red}{+31}$ $\text{1509/9909}$ || $\color{green}{2026/1/18}$ | [【LGR-262-Div.2】洛谷 1 月月赛 III](https://www.luogu.com.cn/contest/302393) | T2 题解:先从小到大排序,然后就是简单的了。 | $\color{green}{-5}$ $\text{235/1916}$ || $\text{2026/1/24}$ | [【LGR-261-Div.2】洛谷 1 月月赛 Ⅳ & WAOI Round 9)](https://www.luogu.com.cn/contest/266133) | 太困难。T1 题解:输出每个字符离上一个相同字符的距离的最小值。 | $\color{red}{+14}$ $\text{121/1470}$ || ^ | [JPRS Programming Contest 2026#1 (AtCoder Beginner Contest 442)](https://atcoder.jp/contests/abc442) | 会的题目都很显然。 | $\color{red}{+0}$ $\text{2422/9872}$ |
:::align{center}## 计划表:::
| 日期 | 知识点 | 题目 | 难度 || :--------------------------------------------: | :-----------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------: || $\text{2025/11/8}$ | 【7】笛卡尔树 | [P7972](https://www.luogu.com.cn/problem/P7972),[P2171](https://www.luogu.com.cn/problem/P2171),[P5854](https://www.luogu.com.cn/problem/P5854),[P1377](https://www.luogu.com.cn/problem/P1377) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || ^ | 【7】扫描线 | [P8648](https://www.luogu.com.cn/problem/P8648),[P1884](https://www.luogu.com.cn/problem/P1884),[P10814](https://www.luogu.com.cn/problem/P10814),[P12247](https://www.luogu.com.cn/problem/P12247),[P5490](https://www.luogu.com.cn/problem/P5490) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/9}$ | 【6】分治算法 (根号) | [P12751](https://www.luogu.com.cn/problem/P12751),[P8572](https://www.luogu.com.cn/problem/P8572) | $\small{\color{green} 普及+/提高}$ || ^ | 【6】分治算法 (CDQ) | [P3120](https://www.luogu.com.cn/problem/P3120),[P5459](https://www.luogu.com.cn/problem/P5459) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/10} \sim \text{2025/11/11}$ | 【6】分治算法 (点分治) | [P4149](https://www.luogu.com.cn/problem/P4149),[P4178](https://www.luogu.com.cn/problem/P4178),[P3806](https://www.luogu.com.cn/problem/P3806) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/12} \sim \text{2025/11/13}$ | 【7】状压 DP | [P2150](https://www.luogu.com.cn/problem/P2150),[P2566](https://www.luogu.com.cn/problem/P2566),[P2157](https://www.luogu.com.cn/problem/P2157) | $\small{\color{purple} 省选/NOI-}$ || $\text{2025/11/16}$ | 【7】容斥原理 | [P13561](https://www.luogu.com.cn/problem/P13561),[P8725](https://www.luogu.com.cn/problem/P8725),[P12137](https://www.luogu.com.cn/problem/P12137),[P11000](https://www.luogu.com.cn/problem/P11000),[P7893](https://www.luogu.com.cn/problem/P7893),[P8557](https://www.luogu.com.cn/problem/P8557) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{yellow} 普及/提高-}$ || $\text{2025/11/17}$ | ^ | [P2429](https://www.luogu.com.cn/problem/P2429),[P3801](https://www.luogu.com.cn/problem/P3801),[P6298](https://www.luogu.com.cn/problem/P6298),[P6600](https://www.luogu.com.cn/problem/P6600) | $\small{\color{green} 普及+/提高}$ || $\text{2025/11/18}$ $\sim$ $\text{2025/11/19}$ | ^ | [P5628](https://www.luogu.com.cn/problem/P5628),[P10986](https://www.luogu.com.cn/problem/P10986),[P3455](https://www.luogu.com.cn/problem/P3455) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/20}$ $\sim$ $\text{2025/11/21}$ | 【5】bitset | [P4306](https://www.luogu.com.cn/problem/P4306),[P10914](https://www.luogu.com.cn/problem/P10914),[P11911](https://www.luogu.com.cn/problem/P11911),[P2170](https://www.luogu.com.cn/problem/P2170),[B3695](https://www.luogu.com.cn/problem/B3695) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/11/22}$ | 【6】ST 表 | [P2412](https://www.luogu.com.cn/problem/P2412),[B4222](https://www.luogu.com.cn/problem/B4222),[P4392](https://www.luogu.com.cn/problem/P4392),[P12241](https://www.luogu.com.cn/problem/P12241),[P13934](https://www.luogu.com.cn/problem/P13934) | ^ || ^ | ^ | [P1668](https://www.luogu.com.cn/problem/P1668),[P5629](https://www.luogu.com.cn/problem/P5629) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/23}$ | 【6】树形 DP | [P10135](https://www.luogu.com.cn/problem/P10135),[P1922](https://www.luogu.com.cn/problem/P1922),[P2899](https://www.luogu.com.cn/problem/P2899),[B4016](https://www.luogu.com.cn/problem/B4016),[B4275](https://www.luogu.com.cn/problem/B4275),[B4311](https://www.luogu.com.cn/problem/B4311) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/11/24}$ | 【无】Ad-hoc(虚低中位绿) | [P14524](https://www.luogu.com.cn/problem/P14524),[P9578](https://www.luogu.com.cn/problem/P9578),[P9635](https://www.luogu.com.cn/problem/P9635),[P9913](https://www.luogu.com.cn/problem/P9913),[P10031](https://www.luogu.com.cn/problem/P10031) | ^ || $\text{2025/11/25}$ | 【无】随机 上位黄 $\sim$ 虚低中位绿 练习 | [P11683](https://www.luogu.com.cn/problem/P11683),[P13906](https://www.luogu.com.cn/problem/P13906),[P11379](https://www.luogu.com.cn/problem/P11379),[P9533](https://www.luogu.com.cn/problem/P9533) | ^ || $\text{2025/11/26}$ | 【无】Ad-hoc(上位绿) | [P11132](https://www.luogu.com.cn/problem/P11132),[P9820](https://www.luogu.com.cn/problem/P9820),[P8957](https://www.luogu.com.cn/problem/P8957),[P5427](https://www.luogu.com.cn/problem/P5427) | $\small{\color{green} 普及+/提高}$ || ^ | ^ | [P10032](https://www.luogu.com.cn/problem/P10032),[P11397](https://www.luogu.com.cn/problem/P11397),[P13686](https://www.luogu.com.cn/problem/P13686),[B3981](https://www.luogu.com.cn/problem/B3981) | ^ || $\text{2025/11/29}$ | 【6】最短路 | [P9484](https://www.luogu.com.cn/problem/P9484),[P1576](https://www.luogu.com.cn/problem/P1576),[P1821](https://www.luogu.com.cn/problem/P1821),[P5651](https://www.luogu.com.cn/problem/P5651) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{yellow} 普及/提高-}$ || ^ | ^ | [P1673](https://www.luogu.com.cn/problem/P1673),[P2888](https://www.luogu.com.cn/problem/P2888),[P2951](https://www.luogu.com.cn/problem/P2951),[P3905](https://www.luogu.com.cn/problem/P3905),[P5764](https://www.luogu.com.cn/problem/P5764),[P1690](https://www.luogu.com.cn/problem/P1690) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/11/30}$ | ^ | [P13271](https://www.luogu.com.cn/problem/P13271),[P1144](https://www.luogu.com.cn/problem/P1144) | $\small{\color{green} 普及+/提高}$ || ^ | ^ | [P11892](https://www.luogu.com.cn/problem/P11892),[P4366](https://www.luogu.com.cn/problem/P4366) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/1}$ | 【8】计算几何 | [P1652](https://www.luogu.com.cn/problem/P1652),[P7042](https://www.luogu.com.cn/problem/P7042),[P7127](https://www.luogu.com.cn/problem/P7127) | $\small{\color{orange} 普及-}$ || $\text{2025/12/2}$ | 【6】hash | [B4200](https://www.luogu.com.cn/problem/B4200),[P7055](https://www.luogu.com.cn/problem/P7055),[P12871](https://www.luogu.com.cn/problem/P12871),[P12946](https://www.luogu.com.cn/problem/P12946) | ^ || ^ | ^ | [B4241](https://www.luogu.com.cn/problem/B4241),[P5149](https://www.luogu.com.cn/problem/P5149),[P12509](https://www.luogu.com.cn/problem/P12509),[P11412](https://www.luogu.com.cn/problem/P11412) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/12/3}$ | ^ | [P10469](https://www.luogu.com.cn/problem/P10469),[P3618](https://www.luogu.com.cn/problem/P3618),[P12198](https://www.luogu.com.cn/problem/P12198),[P12197](https://www.luogu.com.cn/problem/P12197) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/4}$ | 【6】并查集 | [P14077](https://www.luogu.com.cn/problem/P14077),[P1455](https://www.luogu.com.cn/problem/P1455),[P2078](https://www.luogu.com.cn/problem/P2078),[P3144](https://www.luogu.com.cn/problem/P3144) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/12/5}$ | ^ | [P9565](https://www.luogu.com.cn/problem/P9565),[P12698](https://www.luogu.com.cn/problem/P12698),[P1892](https://www.luogu.com.cn/problem/P1892),[P13823](https://www.luogu.com.cn/problem/P13823) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/6}$ | ^ | [P6185](https://www.luogu.com.cn/problem/P6185),[P2391](https://www.luogu.com.cn/problem/P2391) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/7}$ | 【无】素数判断,质数,筛法 | [P2092](https://www.luogu.com.cn/problem/P2092),[P3200](https://www.luogu.com.cn/problem/P3200),[P10404](https://www.luogu.com.cn/problem/P10404),[P10498](https://www.luogu.com.cn/problem/P10498) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/8}$ | 【7】卡特兰数 | [P1641](https://www.luogu.com.cn/problem/P1641),[P3978](https://www.luogu.com.cn/problem/P3978),[P1976](https://www.luogu.com.cn/problem/P1976) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2025/12/9}$ | 【8】分块 | [P13977](https://www.luogu.com.cn/problem/P13977),[P13976](https://www.luogu.com.cn/problem/P13976),[P13979](https://www.luogu.com.cn/problem/P13979),[P13983](https://www.luogu.com.cn/problem/P13983) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/10}$ | ^ | [P5356](https://www.luogu.com.cn/problem/P5356),[P13978](https://www.luogu.com.cn/problem/P13978),[P13980](https://www.luogu.com.cn/problem/P13980),[P13981](https://www.luogu.com.cn/problem/P13981) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2025/12/11}$ | 【6】字典树 | [P11209](https://www.luogu.com.cn/problem/P11209),[P6824](https://www.luogu.com.cn/problem/P6824),[P7335](https://www.luogu.com.cn/problem/P7335),[P13308](https://www.luogu.com.cn/problem/P13308) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/12}$ | ^ | [P13895](https://www.luogu.com.cn/problem/P13895),[P7502](https://www.luogu.com.cn/problem/P7502),[P9934](https://www.luogu.com.cn/problem/P9934),[P11799](https://www.luogu.com.cn/problem/P11799) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/13}$ | ^ | [P13874](https://www.luogu.com.cn/problem/P13874),[P7717](https://www.luogu.com.cn/problem/P7717),[P1688](https://www.luogu.com.cn/problem/P1688),[P4471](https://www.luogu.com.cn/problem/P4471) | ^ || ^ | 【无】组合数学 | [P12369](https://www.luogu.com.cn/problem/P12369),[P12840](https://www.luogu.com.cn/problem/P12840),[P1655](https://www.luogu.com.cn/problem/P1655),[P8788](https://www.luogu.com.cn/problem/P8788),[B2164](https://www.luogu.com.cn/problem/B2164),[P12885](https://www.luogu.com.cn/problem/P12885),[P8469](https://www.luogu.com.cn/problem/P8469),[P7157](https://www.luogu.com.cn/problem/P7157) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || $\text{2025/12/14}$ | ^ | [P14568](https://www.luogu.com.cn/problem/P14568),[P11159](https://www.luogu.com.cn/problem/P11159),[P1680](https://www.luogu.com.cn/problem/P1680) ,[P2265](https://www.luogu.com.cn/problem/P2265) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/15}$ | 【无】01 分数规划 | [P10505](https://www.luogu.com.cn/problem/P10505),[P1404](https://www.luogu.com.cn/problem/P1404),[P2868](https://www.luogu.com.cn/problem/P2868),[P3874](https://www.luogu.com.cn/problem/P3874) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/16}$ | 【无】期望 | [P9217](https://www.luogu.com.cn/problem/P9217),[P11046](https://www.luogu.com.cn/problem/P11046),[P5011](https://www.luogu.com.cn/problem/P5011),[P6046](https://www.luogu.com.cn/problem/P6046) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/17}$ | 【无】博弈论 | [B4393](https://www.luogu.com.cn/problem/B4393),[P10187](https://www.luogu.com.cn/problem/P10187),[P11143](https://www.luogu.com.cn/problem/P11143),[P13221](https://www.luogu.com.cn/problem/P13221) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{yellow} 普及/提高-}$ || $\text{2025/12/18}$ | ^ | [P4136](https://www.luogu.com.cn/problem/P4136),[P8144](https://www.luogu.com.cn/problem/P8144),[P8966](https://www.luogu.com.cn/problem/P8966),[P14059](https://www.luogu.com.cn/problem/P14059) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/19}$ | 【无】莫队 | [P1997](https://www.luogu.com.cn/problem/P1997),[P4137](https://www.luogu.com.cn/problem/P4137),[P6782](https://www.luogu.com.cn/problem/P6782) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2025/12/20}$ | 【6】线段树 | [P3184](https://www.luogu.com.cn/problem/P3184),[P4086](https://www.luogu.com.cn/problem/P4086),[P2781](https://www.luogu.com.cn/problem/P2781),[P3948](https://www.luogu.com.cn/problem/P3948),[P11078](https://www.luogu.com.cn/problem/P11078),[P1204](https://www.luogu.com.cn/problem/P1204),[B4374](https://www.luogu.com.cn/problem/B4374) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || ^ | ^ | [P3939](https://www.luogu.com.cn/problem/P3939),[P12372](https://www.luogu.com.cn/problem/P12372),[P6327](https://www.luogu.com.cn/problem/P6327),[P2418](https://www.luogu.com.cn/problem/P2418) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/21}$ | ^ | [P2787](https://www.luogu.com.cn/problem/P2787),[P7334](https://www.luogu.com.cn/problem/P7334),[P14761](https://www.luogu.com.cn/problem/P14761) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2025/12/22}$ | 【6】优先队列 | [P2107](https://www.luogu.com.cn/problem/P2107),[P9588](https://www.luogu.com.cn/problem/P9588),[P12149](https://www.luogu.com.cn/problem/P12149),[P8896](https://www.luogu.com.cn/problem/P8896) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/23}$ | 【无】反悔贪心 | [P11328](https://www.luogu.com.cn/problem/P11328),[P3620](https://www.luogu.com.cn/problem/P3620),[P3545](https://www.luogu.com.cn/problem/P3545) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/24}$ | 【6】单调队列 | [P9769](https://www.luogu.com.cn/problem/P9769),[P3512](https://www.luogu.com.cn/problem/P3512),[P5858](https://www.luogu.com.cn/problem/P5858),[P6510](https://www.luogu.com.cn/problem/P6510) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || $\text{2025/12/25}$ | ^ | [P12000](https://www.luogu.com.cn/problem/P12000),[P12882](https://www.luogu.com.cn/problem/P12882),[P3411](https://www.luogu.com.cn/problem/P3411),[P10407](https://www.luogu.com.cn/problem/P10407) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/26}$ | ^ | [P3957](https://www.luogu.com.cn/problem/P3957),[P8945](https://www.luogu.com.cn/problem/P8945),[P10119](https://www.luogu.com.cn/problem/P10119),[P1295](https://www.luogu.com.cn/problem/P1295) | $\small{\color{blue} 提高+/省选-}$ |
| 日期 | 知识点 | 题目 | 难度 || :--------------------------------------------: | :-----------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------: || $\text{2025/11/8}$ | 【7】笛卡尔树 | [P7972](https://www.luogu.com.cn/problem/P7972),[P2171](https://www.luogu.com.cn/problem/P2171),[P5854](https://www.luogu.com.cn/problem/P5854),[P1377](https://www.luogu.com.cn/problem/P1377) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || ^ | 【7】扫描线 | [P8648](https://www.luogu.com.cn/problem/P8648),[P1884](https://www.luogu.com.cn/problem/P1884),[P10814](https://www.luogu.com.cn/problem/P10814),[P12247](https://www.luogu.com.cn/problem/P12247),[P5490](https://www.luogu.com.cn/problem/P5490) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/9}$ | 【6】分治算法 (根号) | [P12751](https://www.luogu.com.cn/problem/P12751),[P8572](https://www.luogu.com.cn/problem/P8572) | $\small{\color{green} 普及+/提高}$ || ^ | 【6】分治算法 (CDQ) | [P3120](https://www.luogu.com.cn/problem/P3120),[P5459](https://www.luogu.com.cn/problem/P5459) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/10} \sim \text{2025/11/11}$ | 【6】分治算法 (点分治) | [P4149](https://www.luogu.com.cn/problem/P4149),[P4178](https://www.luogu.com.cn/problem/P4178),[P3806](https://www.luogu.com.cn/problem/P3806) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/12} \sim \text{2025/11/13}$ | 【7】状压 DP | [P2150](https://www.luogu.com.cn/problem/P2150),[P2566](https://www.luogu.com.cn/problem/P2566),[P2157](https://www.luogu.com.cn/problem/P2157) | $\small{\color{purple} 省选/NOI-}$ || $\text{2025/11/16}$ | 【7】容斥原理 | [P13561](https://www.luogu.com.cn/problem/P13561),[P8725](https://www.luogu.com.cn/problem/P8725),[P12137](https://www.luogu.com.cn/problem/P12137),[P11000](https://www.luogu.com.cn/problem/P11000),[P7893](https://www.luogu.com.cn/problem/P7893),[P8557](https://www.luogu.com.cn/problem/P8557) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{yellow} 普及/提高-}$ || $\text{2025/11/17}$ | ^ | [P2429](https://www.luogu.com.cn/problem/P2429),[P3801](https://www.luogu.com.cn/problem/P3801),[P6298](https://www.luogu.com.cn/problem/P6298),[P6600](https://www.luogu.com.cn/problem/P6600) | $\small{\color{green} 普及+/提高}$ || $\text{2025/11/18}$ $\sim$ $\text{2025/11/19}$ | ^ | [P5628](https://www.luogu.com.cn/problem/P5628),[P10986](https://www.luogu.com.cn/problem/P10986),[P3455](https://www.luogu.com.cn/problem/P3455) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/20}$ $\sim$ $\text{2025/11/21}$ | 【5】bitset | [P4306](https://www.luogu.com.cn/problem/P4306),[P10914](https://www.luogu.com.cn/problem/P10914),[P11911](https://www.luogu.com.cn/problem/P11911),[P2170](https://www.luogu.com.cn/problem/P2170),[B3695](https://www.luogu.com.cn/problem/B3695) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/11/22}$ | 【6】ST 表 | [P2412](https://www.luogu.com.cn/problem/P2412),[B4222](https://www.luogu.com.cn/problem/B4222),[P4392](https://www.luogu.com.cn/problem/P4392),[P12241](https://www.luogu.com.cn/problem/P12241),[P13934](https://www.luogu.com.cn/problem/P13934) | ^ || ^ | ^ | [P1668](https://www.luogu.com.cn/problem/P1668),[P5629](https://www.luogu.com.cn/problem/P5629) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/11/23}$ | 【6】树形 DP | [P10135](https://www.luogu.com.cn/problem/P10135),[P1922](https://www.luogu.com.cn/problem/P1922),[P2899](https://www.luogu.com.cn/problem/P2899),[B4016](https://www.luogu.com.cn/problem/B4016),[B4275](https://www.luogu.com.cn/problem/B4275),[B4311](https://www.luogu.com.cn/problem/B4311) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/11/24}$ | 【无】Ad-hoc(虚低中位绿) | [P14524](https://www.luogu.com.cn/problem/P14524),[P9578](https://www.luogu.com.cn/problem/P9578),[P9635](https://www.luogu.com.cn/problem/P9635),[P9913](https://www.luogu.com.cn/problem/P9913),[P10031](https://www.luogu.com.cn/problem/P10031) | ^ || $\text{2025/11/25}$ | 【无】随机 上位黄 $\sim$ 虚低中位绿 练习 | [P11683](https://www.luogu.com.cn/problem/P11683),[P13906](https://www.luogu.com.cn/problem/P13906),[P11379](https://www.luogu.com.cn/problem/P11379),[P9533](https://www.luogu.com.cn/problem/P9533) | ^ || $\text{2025/11/26}$ | 【无】Ad-hoc(上位绿) | [P11132](https://www.luogu.com.cn/problem/P11132),[P9820](https://www.luogu.com.cn/problem/P9820),[P8957](https://www.luogu.com.cn/problem/P8957),[P5427](https://www.luogu.com.cn/problem/P5427) | $\small{\color{green} 普及+/提高}$ || ^ | ^ | [P10032](https://www.luogu.com.cn/problem/P10032),[P11397](https://www.luogu.com.cn/problem/P11397),[P13686](https://www.luogu.com.cn/problem/P13686),[B3981](https://www.luogu.com.cn/problem/B3981) | ^ || $\text{2025/11/29}$ | 【6】最短路 | [P9484](https://www.luogu.com.cn/problem/P9484),[P1576](https://www.luogu.com.cn/problem/P1576),[P1821](https://www.luogu.com.cn/problem/P1821),[P5651](https://www.luogu.com.cn/problem/P5651) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{yellow} 普及/提高-}$ || ^ | ^ | [P1673](https://www.luogu.com.cn/problem/P1673),[P2888](https://www.luogu.com.cn/problem/P2888),[P2951](https://www.luogu.com.cn/problem/P2951),[P3905](https://www.luogu.com.cn/problem/P3905),[P5764](https://www.luogu.com.cn/problem/P5764),[P1690](https://www.luogu.com.cn/problem/P1690) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/11/30}$ | ^ | [P13271](https://www.luogu.com.cn/problem/P13271),[P1144](https://www.luogu.com.cn/problem/P1144) | $\small{\color{green} 普及+/提高}$ || ^ | ^ | [P11892](https://www.luogu.com.cn/problem/P11892),[P4366](https://www.luogu.com.cn/problem/P4366) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/1}$ | 【8】计算几何 | [P1652](https://www.luogu.com.cn/problem/P1652),[P7042](https://www.luogu.com.cn/problem/P7042),[P7127](https://www.luogu.com.cn/problem/P7127) | $\small{\color{orange} 普及-}$ || $\text{2025/12/2}$ | 【6】hash | [B4200](https://www.luogu.com.cn/problem/B4200),[P7055](https://www.luogu.com.cn/problem/P7055),[P12871](https://www.luogu.com.cn/problem/P12871),[P12946](https://www.luogu.com.cn/problem/P12946) | ^ || ^ | ^ | [B4241](https://www.luogu.com.cn/problem/B4241),[P5149](https://www.luogu.com.cn/problem/P5149),[P12509](https://www.luogu.com.cn/problem/P12509),[P11412](https://www.luogu.com.cn/problem/P11412) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/12/3}$ | ^ | [P10469](https://www.luogu.com.cn/problem/P10469),[P3618](https://www.luogu.com.cn/problem/P3618),[P12198](https://www.luogu.com.cn/problem/P12198),[P12197](https://www.luogu.com.cn/problem/P12197) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/4}$ | 【6】并查集 | [P14077](https://www.luogu.com.cn/problem/P14077),[P1455](https://www.luogu.com.cn/problem/P1455),[P2078](https://www.luogu.com.cn/problem/P2078),[P3144](https://www.luogu.com.cn/problem/P3144) | $\small{\color{yellow} 普及/提高-}$ || $\text{2025/12/5}$ | ^ | [P9565](https://www.luogu.com.cn/problem/P9565),[P12698](https://www.luogu.com.cn/problem/P12698),[P1892](https://www.luogu.com.cn/problem/P1892),[P13823](https://www.luogu.com.cn/problem/P13823) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/6}$ | ^ | [P6185](https://www.luogu.com.cn/problem/P6185),[P2391](https://www.luogu.com.cn/problem/P2391) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/7}$ | 【无】素数判断,质数,筛法 | [P2092](https://www.luogu.com.cn/problem/P2092),[P3200](https://www.luogu.com.cn/problem/P3200),[P10404](https://www.luogu.com.cn/problem/P10404),[P10498](https://www.luogu.com.cn/problem/P10498) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/8}$ | 【7】卡特兰数 | [P1641](https://www.luogu.com.cn/problem/P1641),[P3978](https://www.luogu.com.cn/problem/P3978),[P1976](https://www.luogu.com.cn/problem/P1976) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2025/12/9}$ | 【8】分块 | [P13977](https://www.luogu.com.cn/problem/P13977),[P13976](https://www.luogu.com.cn/problem/P13976),[P13979](https://www.luogu.com.cn/problem/P13979),[P13983](https://www.luogu.com.cn/problem/P13983) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/10}$ | ^ | [P5356](https://www.luogu.com.cn/problem/P5356),[P13978](https://www.luogu.com.cn/problem/P13978),[P13980](https://www.luogu.com.cn/problem/P13980),[P13981](https://www.luogu.com.cn/problem/P13981) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2025/12/11}$ | 【6】字典树 | [P11209](https://www.luogu.com.cn/problem/P11209),[P6824](https://www.luogu.com.cn/problem/P6824),[P7335](https://www.luogu.com.cn/problem/P7335),[P13308](https://www.luogu.com.cn/problem/P13308) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/12}$ | ^ | [P13895](https://www.luogu.com.cn/problem/P13895),[P7502](https://www.luogu.com.cn/problem/P7502),[P9934](https://www.luogu.com.cn/problem/P9934),[P11799](https://www.luogu.com.cn/problem/P11799) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/13}$ | ^ | [P13874](https://www.luogu.com.cn/problem/P13874),[P7717](https://www.luogu.com.cn/problem/P7717),[P1688](https://www.luogu.com.cn/problem/P1688),[P4471](https://www.luogu.com.cn/problem/P4471) | ^ || ^ | 【无】组合数学 | [P12369](https://www.luogu.com.cn/problem/P12369),[P12840](https://www.luogu.com.cn/problem/P12840),[P1655](https://www.luogu.com.cn/problem/P1655),[P8788](https://www.luogu.com.cn/problem/P8788),[B2164](https://www.luogu.com.cn/problem/B2164),[P12885](https://www.luogu.com.cn/problem/P12885),[P8469](https://www.luogu.com.cn/problem/P8469),[P7157](https://www.luogu.com.cn/problem/P7157) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || $\text{2025/12/14}$ | ^ | [P14568](https://www.luogu.com.cn/problem/P14568),[P11159](https://www.luogu.com.cn/problem/P11159),[P1680](https://www.luogu.com.cn/problem/P1680) ,[P2265](https://www.luogu.com.cn/problem/P2265) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/15}$ | 【无】01 分数规划 | [P10505](https://www.luogu.com.cn/problem/P10505),[P1404](https://www.luogu.com.cn/problem/P1404),[P2868](https://www.luogu.com.cn/problem/P2868),[P3874](https://www.luogu.com.cn/problem/P3874) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/16}$ | 【无】期望 | [P9217](https://www.luogu.com.cn/problem/P9217),[P11046](https://www.luogu.com.cn/problem/P11046),[P5011](https://www.luogu.com.cn/problem/P5011),[P6046](https://www.luogu.com.cn/problem/P6046) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/17}$ | 【无】博弈论 | [B4393](https://www.luogu.com.cn/problem/B4393),[P10187](https://www.luogu.com.cn/problem/P10187),[P11143](https://www.luogu.com.cn/problem/P11143),[P13221](https://www.luogu.com.cn/problem/P13221) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{yellow} 普及/提高-}$ || $\text{2025/12/18}$ | ^ | [P4136](https://www.luogu.com.cn/problem/P4136),[P8144](https://www.luogu.com.cn/problem/P8144),[P8966](https://www.luogu.com.cn/problem/P8966),[P14059](https://www.luogu.com.cn/problem/P14059) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/19}$ | 【无】莫队 | [P1997](https://www.luogu.com.cn/problem/P1997),[P4137](https://www.luogu.com.cn/problem/P4137),[P6782](https://www.luogu.com.cn/problem/P6782) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2025/12/20}$ | 【6】线段树 | [P3184](https://www.luogu.com.cn/problem/P3184),[P4086](https://www.luogu.com.cn/problem/P4086),[P2781](https://www.luogu.com.cn/problem/P2781),[P3948](https://www.luogu.com.cn/problem/P3948),[P11078](https://www.luogu.com.cn/problem/P11078),[P1204](https://www.luogu.com.cn/problem/P1204),[B4374](https://www.luogu.com.cn/problem/B4374) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || ^ | ^ | [P3939](https://www.luogu.com.cn/problem/P3939),[P12372](https://www.luogu.com.cn/problem/P12372),[P6327](https://www.luogu.com.cn/problem/P6327),[P2418](https://www.luogu.com.cn/problem/P2418) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/21}$ | ^ | [P2787](https://www.luogu.com.cn/problem/P2787),[P7334](https://www.luogu.com.cn/problem/P7334),[P14761](https://www.luogu.com.cn/problem/P14761) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2025/12/22}$ | 【6】优先队列 | [P2107](https://www.luogu.com.cn/problem/P2107),[P9588](https://www.luogu.com.cn/problem/P9588),[P12149](https://www.luogu.com.cn/problem/P12149),[P8896](https://www.luogu.com.cn/problem/P8896) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/23}$ | 【无】反悔贪心 | [P11328](https://www.luogu.com.cn/problem/P11328),[P3620](https://www.luogu.com.cn/problem/P3620),[P3545](https://www.luogu.com.cn/problem/P3545) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/24}$ | 【6】单调队列 | [P9769](https://www.luogu.com.cn/problem/P9769),[P3512](https://www.luogu.com.cn/problem/P3512),[P5858](https://www.luogu.com.cn/problem/P5858),[P6510](https://www.luogu.com.cn/problem/P6510) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || $\text{2025/12/25}$ | ^ | [P12000](https://www.luogu.com.cn/problem/P12000),[P12882](https://www.luogu.com.cn/problem/P12882),[P3411](https://www.luogu.com.cn/problem/P3411),[P10407](https://www.luogu.com.cn/problem/P10407) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/26}$ | ^ | [P3957](https://www.luogu.com.cn/problem/P3957),[P8945](https://www.luogu.com.cn/problem/P8945),[P10119](https://www.luogu.com.cn/problem/P10119),[P1295](https://www.luogu.com.cn/problem/P1295) | $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/27}$ | 【无】Ad-hoc | [P10567](https://www.luogu.com.cn/problem/P10567),[P9656](https://www.luogu.com.cn/problem/P9656),[P8942](https://www.luogu.com.cn/problem/P8942),[B3759](https://www.luogu.com.cn/problem/B3759),[P10444](https://www.luogu.com.cn/problem/P10444) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{yellow} 普及/提高-}$ || ^ | 【无】数据结构优化贪心 | [P3602](https://www.luogu.com.cn/problem/P3602),[P5749](https://www.luogu.com.cn/problem/P5749) | $\small{\color{blue} 提高+/省选-}$ || ^ | 【无】随机 GESP 练习 | [P13018](https://www.luogu.com.cn/problem/P13018),[P13016](https://www.luogu.com.cn/problem/P13016),[P13014](https://www.luogu.com.cn/problem/P13014) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{yellow} 普及/提高-}$ || ^ | ^ | [P14076](https://www.luogu.com.cn/problem/P14076),[P14079](https://www.luogu.com.cn/problem/P14079),[P14080](https://www.luogu.com.cn/problem/P14080) | $\small{\color{orange} 普及-}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || $\text{2025/12/28}$ | ^ | [P14074](https://www.luogu.com.cn/problem/P14074),[P14078](https://www.luogu.com.cn/problem/P14078),[P14075](https://www.luogu.com.cn/problem/P14075) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || $\text{2025/12/29}$ | ^ | [P13020](https://www.luogu.com.cn/problem/P13020),[P13019](https://www.luogu.com.cn/problem/P13019),[P11967](https://www.luogu.com.cn/problem/P11967) | $\small{\color{green} 普及+/提高}$ || $\text{2025/12/30}$ | ^ | [P10725](https://www.luogu.com.cn/problem/P10725),[P10724](https://www.luogu.com.cn/problem/P10724),[P10723](https://www.luogu.com.cn/problem/P10723) | ^ || $\text{2025/12/31}$ | ^ | [B4070](https://www.luogu.com.cn/problem/B4070),[B4071](https://www.luogu.com.cn/problem/B4071),[P11378](https://www.luogu.com.cn/problem/P11378),[P10287](https://www.luogu.com.cn/problem/P10287),[B4050](https://www.luogu.com.cn/problem/B4050) | $\small{\color{yellow} 普及/提高-}$ || $\color{red}{2026/1/1}$ | 【8】原根和指数 | [P10515](https://www.luogu.com.cn/problem/P10515),[P11961](https://www.luogu.com.cn/problem/P11961),[P6091](https://www.luogu.com.cn/problem/P6091) | $\small{\color{blue} 提高+/省选-}$ || $\text{2026/1/2}$ | 【无】DP 的优化 | [P2569](https://www.luogu.com.cn/problem/P2569),[P1973](https://www.luogu.com.cn/problem/P1973),[P10976](https://www.luogu.com.cn/problem/P10976),[P10978](https://www.luogu.com.cn/problem/P10978) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/3}$ | ^ | [P3800](https://www.luogu.com.cn/problem/P3800),[P2365](https://www.luogu.com.cn/problem/P2365),[P5785](https://www.luogu.com.cn/problem/P5785),[P8632](https://www.luogu.com.cn/problem/P8632) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/4}$ | ^ | [P4072](https://www.luogu.com.cn/problem/P4072),[P4027](https://www.luogu.com.cn/problem/P4027),[P14827](https://www.luogu.com.cn/problem/P14827),[P10381](https://www.luogu.com.cn/problem/P10381) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/5}$ | 【无】近期比赛补题 | [P14762](https://www.luogu.com.cn/problem/P14762),[P14828](https://www.luogu.com.cn/problem/P14828),[P14938](https://www.luogu.com.cn/problem/P14938),[P14952](https://www.luogu.com.cn/problem/P14952) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{black} NOI/NOI+/CTSC}$ || $\text{2026/1/6}$ | ^ | [P14665](https://www.luogu.com.cn/problem/P14665),[P14666](https://www.luogu.com.cn/problem/P14666),[P14577](https://www.luogu.com.cn/problem/P14577),[P14573](https://www.luogu.com.cn/problem/P14573) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/7}$ | 【无】随机 GESP 练习 | [P14921](https://www.luogu.com.cn/problem/P14921),[P14922](https://www.luogu.com.cn/problem/P14922) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || $\text{2026/1/8}$ | ^ | [P14923](https://www.luogu.com.cn/problem/P14923),[P14924](https://www.luogu.com.cn/problem/P14924) | $\small{\color{green} 普及+/提高}$ || $\text{2026/1/9}$ | ^ | [P10262](https://www.luogu.com.cn/problem/P10262),[P10288](https://www.luogu.com.cn/problem/P10288) | $\small{\color{yellow} 普及/提高-}$ || $\text{2026/1/10}$ | ^ | [P10264](https://www.luogu.com.cn/problem/P10264),[P10289](https://www.luogu.com.cn/problem/P10289),[P13017](https://www.luogu.com.cn/problem/P13017) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{green} 普及+/提高}$ || ^ | ^ | [P10263](https://www.luogu.com.cn/problem/P10263),[B3930](https://www.luogu.com.cn/problem/B3930),[P11965](https://www.luogu.com.cn/problem/P11965) | $\small{\color{yellow} 普及/提高-}$ || ^ | 【无】四边形不等式 | [P1775](https://www.luogu.com.cn/problem/P1775),[P3515](https://www.luogu.com.cn/problem/P3515) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/11}$ | 【无】李超线段树 | [P4097](https://www.luogu.com.cn/problem/P4097),[P4254](https://www.luogu.com.cn/problem/P4254) | $\small{\color{purple} 省选/NOI-}$ || ^ | ^ | [P4655](https://www.luogu.com.cn/problem/P4655) | ^ || $\text{2026/1/12}$ | ^ | [P11958](https://www.luogu.com.cn/problem/P11958),[P11014](https://www.luogu.com.cn/problem/P11014) | ^ || $\text{2026/1/13}$ | ^ | [P11896](https://www.luogu.com.cn/problem/P11896),[P11728](https://www.luogu.com.cn/problem/P11728) | ^ || $\text{2026/1/14}$ | ^ | [P4069](https://www.luogu.com.cn/problem/P4069),[P13798](https://www.luogu.com.cn/problem/P13798) | ^ || $\text{2026/1/15}$ | 【无】近期比赛补题 | [P14763](https://www.luogu.com.cn/problem/P14763),[P14960](https://www.luogu.com.cn/problem/P14960),[P14962](https://www.luogu.com.cn/problem/P14962),[P14963](https://www.luogu.com.cn/problem/P14963) | $\small{\color{yellow} 普及/提高-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/16}$ | ^ | [P8148](https://www.luogu.com.cn/problem/P8148),[P8149](https://www.luogu.com.cn/problem/P8149),[P8150](https://www.luogu.com.cn/problem/P8150) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/17}$ | 【无】吉司机线段树 | [P10639](https://www.luogu.com.cn/problem/P10639),[P10638](https://www.luogu.com.cn/problem/P10638) | $\small{\color{purple} 省选/NOI-}$ || ^ | ^ | [P6242](https://www.luogu.com.cn/problem/P6242) | ^ || $\text{2026/1/18}$ | 【8】网络流 | [P3376](https://www.luogu.com.cn/problem/P3376),[P2756](https://www.luogu.com.cn/problem/P2756),[P2763](https://www.luogu.com.cn/problem/P2763) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{blue} 提高+/省选-}$ || ^ | ^ | [P1402](https://www.luogu.com.cn/problem/P1402),[P2055](https://www.luogu.com.cn/problem/P2055),[P1231](https://www.luogu.com.cn/problem/P1231) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/19}$ | ^ | [P3355](https://www.luogu.com.cn/problem/P3355),[P4015](https://www.luogu.com.cn/problem/P4015) | $\small{\color{blue} 提高+/省选-}$ || $\text{2026/1/20}$ | ^ | [P4009](https://www.luogu.com.cn/problem/P4009),[P1251](https://www.luogu.com.cn/problem/P1251) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/21}$ | ^ | [P2766](https://www.luogu.com.cn/problem/P2766),[P2754](https://www.luogu.com.cn/problem/P2754) | $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/22}$ | ^ | [P4012](https://www.luogu.com.cn/problem/P4012),[P2764](https://www.luogu.com.cn/problem/P2764) | ^ || $\text{2026/1/23}$ | ^ | [P4013](https://www.luogu.com.cn/problem/P4013),[P2762](https://www.luogu.com.cn/problem/P2762) | ^ || $\text{2026/1/24}$ | 【8】重链剖分 | [P3384](https://www.luogu.com.cn/problem/P3384),[P3038](https://www.luogu.com.cn/problem/P3038) | $\small{\color{blue} 提高+/省选-}$ || ^ | ^ | [P5838](https://www.luogu.com.cn/problem/P5838),[P3459](https://www.luogu.com.cn/problem/P3459) | ^ || $\text{2026/1/25}$ | ^ | [P3976](https://www.luogu.com.cn/problem/P3976),[P2486](https://www.luogu.com.cn/problem/P2486),[P3979](https://www.luogu.com.cn/problem/P3979),[P4216](https://www.luogu.com.cn/problem/P4216) | $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/26}$ | 【无】近期比赛补题 | [P15014](https://www.luogu.com.cn/problem/P15014),[P14972](https://www.luogu.com.cn/problem/P14972),[P15013](https://www.luogu.com.cn/problem/P15013),[P15015](https://www.luogu.com.cn/problem/P15015) | $\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/27}$ | 【无】线段树合并 | [P4556](https://www.luogu.com.cn/problem/P4556),[P3224](https://www.luogu.com.cn/problem/P3224) | $\small{\color{purple} 省选/NOI-}$ || $\text{2026/1/29}$ | ^ | [P7581](https://www.luogu.com.cn/problem/P7581) | ^ || $\text{2026/1/30}$ | ^ | [P10795](https://www.luogu.com.cn/problem/P10795),[P8844](https://www.luogu.com.cn/problem/P8844) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || ^ | ^ | [P3521](https://www.luogu.com.cn/problem/P3521),[P7323](https://www.luogu.com.cn/problem/P7323) | ^ || $\text{2026/1/31}$ | ^ | [P6773](https://www.luogu.com.cn/problem/P6773) | $\small{\color{black} NOI/NOI+/CTSC}$ || $\text{2026/2/1}$ | ^ | [P4577](https://www.luogu.com.cn/problem/P4577),[P8959](https://www.luogu.com.cn/problem/P8959) | $\small{\color{purple} 省选/NOI-}$ $\sim$ $\small{\color{black} NOI/NOI+/CTSC}$ || ^ | 【无】USACO | <https://www.luogu.com.cn/contest/306851>(200) | $\small{\color{green} 普及+/提高}$ || $\text{2026/2/2}$ | ^ | <https://www.luogu.com.cn/contest/307514>(100) | ^ || $\text{2026/2/13}$ | 【无】克鲁斯卡尔重构树 | [P4768](https://www.luogu.com.cn/problem/P4768),[P1967](https://www.luogu.com.cn/problem/P1967),[P9235](https://www.luogu.com.cn/problem/P9235),[P11907](https://www.luogu.com.cn/problem/P11907) | $\small{\color{blue} 提高+/省选-}$ $\sim$ $\small{\color{purple} 省选/NOI-}$ || ^ | 【无】同余最短路 | [P2371](https://www.luogu.com.cn/problem/P2371),[P3403](https://www.luogu.com.cn/problem/P3403),[P2662](https://www.luogu.com.cn/problem/P2662) | $\small{\color{blue} 提高+/省选-}$ || $\text{2026/2/14}$ | ^ | [P9140](https://www.luogu.com.cn/problem/P9140) | $\small{\color{purple} 省选/NOI-}$ || ^ | 【无】线段树优化建图 | [P3588](https://www.luogu.com.cn/problem/P3588),[P9331](https://www.luogu.com.cn/problem/P9331) | ^ || $\text{2026/2/15}$ | ^ | [P6348](https://www.luogu.com.cn/problem/P6348),[P7984](https://www.luogu.com.cn/problem/P7984) | ^ || ^ | 【无】近期比赛补题|<https://www.luogu.com.cn/contest/309581>(T2~T5)|$\small{\color{green} 普及+/提高}$ $\sim$ $\small{\color{purple} 省选/NOI-}$|:::align{center}## 做题记录:::
306 行未改动全部展开| [P4471](https://www.luogu.com.cn/problem/P4471) | LCS 不好处理,考虑倒序插入,在原单词的开头打标记。跑[毛毛虫](https://www.luogu.com.cn/problem/P3174)就行了。 | [AC](https://www.luogu.com.cn/record/252939085) |
---
| 题目链接 | 简略题解 | AC 链接 || :------------------------------------------------: | :-------------------------------------------------------------------------------------------: | :---------------------------------------------: || [B2164](https://www.luogu.com.cn/problem/B2164) | 模板题。 | [AC](https://www.luogu.com.cn/record/252952972) || [P12369](https://www.luogu.com.cn/problem/P12369) | 找规律。 | [AC](https://www.luogu.com.cn/record/252961892) || [P7157](https://www.luogu.com.cn/record/252964902) | 题目的限制很强,$ans=\frac{n \times (n-1)}{2}-k$ | [AC](https://www.luogu.com.cn/record/252964902) || [P8469](https://www.luogu.com.cn/problem/P8469) | $ans1=\min_{1 \le i \le n} a_i$ $ans2=\prod_{1 \le i \le n} \lfloor \frac{a_i}{ans1} \rfloor$ | [AC](https://www.luogu.com.cn/record/252967413) || [P12885](https://www.luogu.com.cn/problem/P12885) | $ans=\binom{2}{2026}^2=4207934255625$ | [AC](https://www.luogu.com.cn/record/253005001) || [P12840](https://www.luogu.com.cn/problem/P12840) | 唐题。 | [AC](https://www.luogu.com.cn/record/253010588) || [P1655](https://www.luogu.com.cn/problem/P1655) | ^ | [AC](https://www.luogu.com.cn/record/253010417) || [P8788](https://www.luogu.com.cn/problem/P8788) | ^ | [AC](https://www.luogu.com.cn/record/253009803) || 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-------------------------------------------------------------------------------------------: | :---------------------------------------------: || [B2164](https://www.luogu.com.cn/problem/B2164) | 模板题。 | [AC](https://www.luogu.com.cn/record/252952972) || [P12369](https://www.luogu.com.cn/problem/P12369) | 找规律。 | [AC](https://www.luogu.com.cn/record/252961892) || [P7157](https://www.luogu.com.cn/problem/P7157) | 题目的限制很强,$ans=\frac{n \times (n-1)}{2}-k$ | [AC](https://www.luogu.com.cn/record/252964902) || [P8469](https://www.luogu.com.cn/problem/P8469) | $ans1=\min_{1 \le i \le n} a_i$ $ans2=\prod_{1 \le i \le n} \lfloor \frac{a_i}{ans1} \rfloor$ | [AC](https://www.luogu.com.cn/record/252967413) || [P12885](https://www.luogu.com.cn/problem/P12885) | $ans=\binom{2}{2026}^2=4207934255625$ | [AC](https://www.luogu.com.cn/record/253005001) || [P12840](https://www.luogu.com.cn/problem/P12840) | 唐题。 | [AC](https://www.luogu.com.cn/record/253010588) || [P1655](https://www.luogu.com.cn/problem/P1655) | ^ | [AC](https://www.luogu.com.cn/record/253010417) || [P8788](https://www.luogu.com.cn/problem/P8788) | ^ | [AC](https://www.luogu.com.cn/record/253009803) |
$\text{2025/12/14}$:
| 题目链接 | 简略题解 | AC 链接 |112 行未改动全部展开| [P10407](https://www.luogu.com.cn/problem/P10407) | 水题。 | [AC](https://www.luogu.com.cn/record/255090075) |
$\text{2025/12/26}$:
| 题目链接 | 简略题解 | AC 链接 || :--: | :--: | :---: ||[P3957](https://www.luogu.com.cn/problem/P3957)|有单调性,先二分。使用单调队列优化 DP 做 check 即可。|[AC](https://www.luogu.com.cn/record/255189885)||[P10119](https://www.luogu.com.cn/problem/P10119)|我们设 $f_{i,j,1/0}$ 表示在前 $i$ 个时间点,**第 $i$ 个时间点使用了第 $j$ 次踱步**,在第 $i$ 个时间点末处于房内/房外最大的心情值。将是否要加 $P$ 分类讨论,需要加用单调队列,不需要加直接维护。|[AC](https://www.luogu.com.cn/record/255230906)||[P1295](https://www.luogu.com.cn/problem/P1295)|水题。|[AC](https://www.luogu.com.cn/record/255245206)||[P8945](https://www.luogu.com.cn/problem/P8945)|^|[AC](https://www.luogu.com.cn/record/255247417)|| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P3957](https://www.luogu.com.cn/problem/P3957) | 有单调性,先二分。使用单调队列优化 DP 做 check 即可。 | [AC](https://www.luogu.com.cn/record/255189885) || [P10119](https://www.luogu.com.cn/problem/P10119) | 我们设 $f_{i,j,1/0}$ 表示在前 $i$ 个时间点,**第 $i$ 个时间点使用了第 $j$ 次踱步**,在第 $i$ 个时间点末处于房内 / 房外最大的心情值。将是否要加 $P$ 分类讨论,需要加用单调队列,不需要加直接维护。 | [AC](https://www.luogu.com.cn/record/255230906) || [P1295](https://www.luogu.com.cn/problem/P1295) | 水题。 | [AC](https://www.luogu.com.cn/record/255245206) || [P8945](https://www.luogu.com.cn/problem/P8945) | ^ | [AC](https://www.luogu.com.cn/record/255247417) |
$\text{2025/12/26}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :------------------------------------------------: | :---------------------------------------------: || [P9656](https://www.luogu.com.cn/problem/P9656) | 随便找一条路径,不行反着输出。 | [AC](https://www.luogu.com.cn/record/255345952) || [P10567](https://www.luogu.com.cn/problem/P10567) | 当且仅当 $n \mod 2=0$ 时输出 `Yes`。 | [AC](https://www.luogu.com.cn/record/255341359) || [P8942](https://www.luogu.com.cn/problem/P8942) | 构造 $a=2^0,2^1,\dots,2^{n-1}$ 显然最优。 | [AC](https://www.luogu.com.cn/record/255348024) || [B3759](https://www.luogu.com.cn/problem/B3759) | 选几个中文没有的常用词汇,出现就判断为英文。 | [AC](https://www.luogu.com.cn/record/255349710) || [P10444](https://www.luogu.com.cn/problem/P10444) | 转化为是否存在 $2 \le x < y \le n$,使 $a_x+a_y=\max+\min$。 | [AC](https://www.luogu.com.cn/record/255351770) |
---
| 题目链接 | 简略题解 | AC 链接 || :---------------------------------------------: | :-----------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P5749](https://www.luogu.com.cn/problem/P5749) | 转化规则为:从头开始,对于每个还未被赋值的 $S_i$ 找在它后面离它最近的并于其符号相反的 $S_i$。将 $sum+2$(其初值为 $0$),其中的正数赋值为 $sum$,负数赋值为 $sum−1$。转化后逆序对。 | [AC](https://www.luogu.com.cn/record/255421850) || [P3602](https://www.luogu.com.cn/problem/P3602) | 贪心地把右端点最大的线段永远删去,不计入答案。显然这样做对后面的决策更有利。上 multiset。 | [AC](https://www.luogu.com.cn/record/255441786) |
---
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :----------------------------------------------------------------------------: | :---------------------------------------------: || [P13014](https://www.luogu.com.cn/problem/P13014) | $\gcd(a_1+i,a_2+i,\dots,a_n+i)=\gcd(a_1+i,\gcd(a_2-a_1,\dots,a_n-a_1))$,预处理后者。 | [AC](https://www.luogu.com.cn/record/255452709) || [P13016](https://www.luogu.com.cn/problem/P13016) | 暴力跳父亲。 | [AC](https://www.luogu.com.cn/record/255459637) || [P13018](https://www.luogu.com.cn/problem/P13018) | DP: $dp_{i,A-B}$ | [AC](https://www.luogu.com.cn/record/255460526) |
---
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-----------------------------------------: | :---------------------------------------------: || [P14076](https://www.luogu.com.cn/problem/P14076) | $ans=2(\sum l_i)-L$,其中 $L$ 为 $1$ 出发的最长链的长度。 | [AC](https://www.luogu.com.cn/record/255477635) || [P14079](https://www.luogu.com.cn/problem/P14079) | 水题。 | [AC](https://www.luogu.com.cn/record/255479604) || [P14080](https://www.luogu.com.cn/problem/P14080) | 典题。 | [AC](https://www.luogu.com.cn/record/255620884) |
$\text{2025/12/28}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-------------------------------------------------: | :---------------------------------------------: || [P14074](https://www.luogu.com.cn/problem/P14074) | 暴力卡常,使用循环展开,C++14 (GCC9),`__builtin_parity()`。 | [AC](https://www.luogu.com.cn/record/255651178) || [P14078](https://www.luogu.com.cn/problem/P14078) | 线段树优化 DP。 | [AC](https://www.luogu.com.cn/record/255653513) || [P14075](https://www.luogu.com.cn/problem/P14075) | 直接 DP,暴力转移,不合法退出,由抽屉原理,时间复杂度为 $O(n\times 26)=O(n)$。 | [AC](https://www.luogu.com.cn/record/255665656) |
$\text{2025/12/29}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P13020](https://www.luogu.com.cn/problem/P13020) | $ans=\sum \text{deg}_i \cdot \prod\limits_{i=1}^n (\text{deg}_i - 1)! = (2n-2)\prod\limits_{i=1}^n(\text{deg}_i -1)!$。注意 $n=1$ 时答案是 $1$。 | [AC](https://www.luogu.com.cn/record/255760665) || [P11967](https://www.luogu.com.cn/problem/P11967) | 给好点对的路径打标记 1,坏点对的路径打标记 2,计数只打了标记 2 的节点,使用树上差分处理。 | [AC](https://www.luogu.com.cn/record/255773564) || [P13019](https://www.luogu.com.cn/problem/P13019) | 倍增水题。 | [AC](https://www.luogu.com.cn/record/255775292) |
$\text{2025/12/30}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-----------------------------------------: | :---------------------------------------------: || [P10723](https://www.luogu.com.cn/problem/P10723) | 特判全白点输出 `0`。选黑点为根,若能到另外一个黑点,这期间的所有白点都会变成黑点。 | [AC](https://www.luogu.com.cn/record/255881869) || [P10724](https://www.luogu.com.cn/problem/P10724) | 质因数分解,压位。 | [AC](https://www.luogu.com.cn/record/255887803) || [P10725](https://www.luogu.com.cn/problem/P10725) | 树形 DP 水题。 | [AC](https://www.luogu.com.cn/record/255890389) |
$\text{2025/12/31}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :------------------: | :---------------------------------------------: || [B4070](https://www.luogu.com.cn/problem/B4070) | 分解质因数,随便计算即可。 | [AC](https://www.luogu.com.cn/record/255909836) || [P11378](https://www.luogu.com.cn/problem/P11378) | 深搜,加上记忆化。 | [AC](https://www.luogu.com.cn/record/255936705) || [P10287](https://www.luogu.com.cn/problem/P10287) | 将 $A_i$ 设进状态,拓扑排序即可。 | [AC](https://www.luogu.com.cn/record/255936958) || [B4071](https://www.luogu.com.cn/problem/B4071) | 水题。 | [AC](https://www.luogu.com.cn/record/255940750) || [B4050](https://www.luogu.com.cn/problem/B4050) | ^ | [AC](https://www.luogu.com.cn/record/255940933) |
$\color{red}{2026/1/1}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-------------------------------------------------------------: | :---------------------------------------------: || [P11961](https://www.luogu.com.cn/problem/P11961) | 写个快速幂,$i$ 为 $p-1$ 的因数。 | [AC](https://www.luogu.com.cn/record/256013251) || [P10515](https://www.luogu.com.cn/problem/P10515) | 行动等价于 $\times (m+1)$,$ans$ 为 $(m+1)^{ans}≡1 (\bmod n)$ 的最小正整数解。 | [AC](https://www.luogu.com.cn/record/256016599) || [P6091](https://www.luogu.com.cn/problem/P6091) | 板子。 | [AC](https://www.luogu.com.cn/record/256044396) |
$\text{2026/1/2}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P10976](https://www.luogu.com.cn/problem/P10976) | 是倍增,没有 DP。用 $f_{i,p}$ 表示从 $s1_i$ 开始,拼成 $2^j$ 个 $s_2$ 所需的最小字符数。$p=0$ 时暴力匹配,递推简单。 | [AC](https://www.luogu.com.cn/record/256112702) || [P10978](https://www.luogu.com.cn/problem/P10978) | 单调队列优化 DP。设 $f_{i,j}$ 为前 $i$ 个工人刷前 $j$ 个栅栏的最大报酬和(可以不刷)$f_{i,j}=\max(f_{i-1,j},f_{i,j-1},\max_{k=j-l_i+1}^{s_i} (f_{i-1,k-1}-k \times p_i)+(j+1)\times p_i)$,单调队列维护 $f_{i-1,k-1}-k \times p_i$,$O(nk)$。 | [AC](https://www.luogu.com.cn/record/256147601) || [P2569](https://www.luogu.com.cn/problem/P2569) | 和 [P10978](https://www.luogu.com.cn/problem/P10978) 几乎相同。 | [AC](https://www.luogu.com.cn/record/256155491) || [P1973](https://www.luogu.com.cn/problem/P1973) | 离散化后计算前后缀 DP,枚举所有时间区间 $[i, j]$ 并利用单调队列或双指针 $O(n)$ 合并求出“该区间归属一方”时的全局最优解,询问时直接对所有包含该活动的区间取最大值即可。 | [AC](https://www.luogu.com.cn/record/256172987) |
$\text{2026/1/3}$:
| 题目链接 | 简略题解 | AC 链接 || :---------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P2365](https://www.luogu.com.cn/problem/P2365) | 考虑将额外消费的代价提前计算,$dp_i=\min\limits_{1\le j\le i}{dp_{j-1}+ \sum\limits_{k=1}^i{t_k}\times\sum\limits_{k=j}^i{f_k}}+\sum\limits_{k=j}^n{f_k}\times S$。 | [AC](https://www.luogu.com.cn/record/256231334) || [P3800](https://www.luogu.com.cn/problem/P3800) | 水题,列出 DP 方程,上线段树即可。 | [AC](https://www.luogu.com.cn/record/256248129) || [P5785](https://www.luogu.com.cn/problem/P5785) | 根据 [P2365](https://www.luogu.com.cn/problem/P2365) 有个 $O(n^2)$ 做法,斜率优化见[题解](https://www.luogu.com.cn/article/ttiqcdc3)。 | [AC](https://www.luogu.com.cn/record/256260031) || [P8632](https://www.luogu.com.cn/problem/P8632) | $O(n^2)$ 做法:将公路的终点视为家庭,DP 状态:$dp_{i,1 \sim 4}$,状态转移显然。斜率优化见[题解](https://www.luogu.com.cn/article/hd91cs7r)。 | [AC](https://www.luogu.com.cn/record/256264515) |
$\text{2026/1/4}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-----------------: | :---------------------------------------------: || [P10381](https://www.luogu.com.cn/problem/P10381) | 列一个 DP 式子,线段树优化。 | [AC](https://www.luogu.com.cn/record/256455832) || [P14827](https://www.luogu.com.cn/problem/P14827) | ^ | [AC](https://www.luogu.com.cn/record/256483877) || [P4072](https://www.luogu.com.cn/problem/P4072) | 推方差式子,做斜率优化 DP。 | [AC](https://www.luogu.com.cn/record/256484601) || [P4027](https://www.luogu.com.cn/problem/P4027) | cdq 分治维护单调栈斜率优化 DP。 | [AC](https://www.luogu.com.cn/record/256484795) |
$\text{2026/1/5}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P14762](https://www.luogu.com.cn/problem/P14762) | 链是简单的,叶子个数至多为 $20$,分成几条链去做。[详解](https://www.luogu.com.cn/article/zqbssdg7) | [AC](https://www.luogu.com.cn/record/256567323) || [P14828](https://www.luogu.com.cn/problem/P14828) | 水题,$\sqrt{400}=20$,考虑使用 $25$ 分做法分两次询问,先得到在哪个块,再得到是什么。 | [AC](https://www.luogu.com.cn/record/256573354) || [P14938](https://www.luogu.com.cn/problem/P14938) | 诈骗题,显然 $k > 1$ 和 $k=1$ 等价,使用树形 DP。[详解](https://www.luogu.com.cn/article/d1s4wv3a) | [AC](https://www.luogu.com.cn/record/256574781) || [P14952](https://www.luogu.com.cn/problem/P14952) | 1. (随机)选择一个 $n\times n$ 的 $01$ 棋盘。2. 算出当前棋盘从左上角到右下角的方案数 $F$。3. 对于每一个位置 $(i,j)$,算出将其变为 $0$ 后的方案数 $f_{i,j}$。4. 选择一个位置 $(i,j)$ 使得其满足 $L\le f_{i,j}<F$ 且 $f_{i,j}$ 尽可能小,并将该位置变为 $0$。5. 重复 $2\sim 4$ 操作直到 $4$ 操作无法找出任意一个位置符合条件。6. 重复 $1\sim 5$ 操作直到 $5$ 操作结束后的棋盘从左上角到右下角的方案数 $F=L$。 | [AC](https://www.luogu.com.cn/record/256576812) |
$\text{2026/1/6}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P14573](https://www.luogu.com.cn/problem/P14573) | 对于简单连通无向图且唯一一度点为起点,小 A 的走法使得每条有向边至多走一次,故每条无向边最多被走两次,因此路程与边数之比的上界为 $2$。为达到该上界,需使每条边恰好被走两次。构造方案:$n=4$ 时采用样例图;$n\ge5$ 时,令 $p=\lfloor\frac{n+3}{2}\rfloor$,连接边 $(1,2)$,并对所有 $2\le i<j\le n$,除 $j=n$ 且 $i\ge p$ 的情况外均连边 $(i,j)$,所得图满足条件且路程最长。 | [AC](https://www.luogu.com.cn/record/256652492) || [P14577](https://www.luogu.com.cn/problem/P14577) | 显然,每种字符只可能剩下一个。具体地,若区间内有偶数个该种字符,肯定不会剩下,否则最后一个位置可能剩下。因此只有 $26$ 个可能剩下的位置,考虑依次检验是否剩下。由于可以找到剩下的每个位置,权值并不重要,修改也很简单。一个这样的位置 $i$ 能剩下,当且仅当不存在这样的字符 $c$:$i$ 左侧存在奇数个字符 $c$,$i$ 右侧存在字符 $c$。 | [AC](https://www.luogu.com.cn/record/256668735) || [P14665](https://www.luogu.com.cn/problem/P14665) | 注意到这个答案有单调性,于是二分答案。考虑差分。极差其实就是差分数组的最大子段和或最小子段和。我们把这个叫做绝对值最大子段和。因为只和差分数组有关,于是接下来我们只需要考虑差分数组。如果当前的这个绝对值最大子段和超出正在检验的答案,那么就要进行调整。这个调整对于正负两个计数器都会有效果,所以累加答案的同时也要对这两个同时进行修改我们把需要进行的增加操作与减去操作分开来存,因为一次操作事实上可以同时完成一个增加和一个减去,于是只需要这二者操作次数的最大值即可。多出来的操作机会显然可以不管。 | [AC](https://www.luogu.com.cn/record/256669267) || [P14666](https://www.luogu.com.cn/problem/P14666) | 水题。 | [AC](https://www.luogu.com.cn/record/256669982) |
$\text{2026/1/7}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :--: | :---------------------------------------------: || [P14921](https://www.luogu.com.cn/problem/P14921) | bfs。 | [AC](https://www.luogu.com.cn/record/256773318) || [P14922](https://www.luogu.com.cn/problem/P14922) | 水题。 | [AC](https://www.luogu.com.cn/record/256773814) |
$\text{2026/1/8}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :--------------------------------------------------------------: | :---------------------------------------------: || [P14923](https://www.luogu.com.cn/problem/P14923) | 转化问题,如果猫能在某个节点抓住老鼠,那么他在这个节点赶到鼠窝在抓也是一样的。一个节点是安全的当且仅当猫不能在老鼠之前赶到鼠窝。 | [AC](https://www.luogu.com.cn/record/256860806) || [P14924](https://www.luogu.com.cn/problem/P14924) | 破环成链再倍增,双指针预处理。 | [AC](https://www.luogu.com.cn/record/256868136) |
$\text{2026/1/9}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :---------------------------------------------------: | :---------------------------------------------: || [P10262](https://www.luogu.com.cn/problem/P10262) | 定义 $f_{i,j}$ 表示所有以 $s_i$ 结尾的子串除以 $p$ 的余数是 $j$ 的子串的数量。 | [AC](https://www.luogu.com.cn/record/256937719) || [P10288](https://www.luogu.com.cn/problem/P10288) | 用 map 维护存下标的 vector,查询二分。 | [AC](https://www.luogu.com.cn/record/256942352) |
$\text{2026/1/10}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :----------------------------------: | :---------------------------------------------: || [P10289](https://www.luogu.com.cn/problem/P10289) | 要不直接走,要不走到传送门再直接走。使用多源 bfs 处理 $dis$。 | [AC](https://www.luogu.com.cn/record/257102733) || [P13017](https://www.luogu.com.cn/problem/P13017) | 水题。 | [AC](https://www.luogu.com.cn/record/257047939) || [P10264](https://www.luogu.com.cn/problem/P10264) | 用链表维护下一个和这个元素相等的元素来跳过元素,在倍增。 | [AC](https://www.luogu.com.cn/record/257120838) |
---
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-------------------------------------------------------------------------------: | :---------------------------------------------: || [P11965](https://www.luogu.com.cn/problem/P11965) | 状压,令 $a_i$ 为前 $i$ 位的每个字母出现个数的奇偶性压位。$[i,j]$ 合法当且仅当 $a_j=a_{i-1}$,开 map。 | [AC](https://www.luogu.com.cn/record/257129217) || [B3930](https://www.luogu.com.cn/problem/B3930) | 取最大的 $32$ 个数暴力。 | [AC](https://www.luogu.com.cn/record/257133418) || [P10263](https://www.luogu.com.cn/problem/P10263) | 发现 $ans_k=C_{n,k} \times C_{m,k}$,其中 $C_{i,j}$ 表示 $i$ 的 $\le j$ 因子的个数,使用枚举因子法预处理。 | [AC](https://www.luogu.com.cn/record/257138280) |
---
| 题目链接 | 简略题解 | AC 链接 || :---------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P1775](https://www.luogu.com.cn/problem/P1775) | 四边形不等式,设 $p_{i,j}$ 为 $[i,j]$ 的最优决策点,则只需枚举 $k \in [p_{i,j-1},p_{i+1,j}]$。 | [AC](https://www.luogu.com.cn/record/257145481) || [P3515](https://www.luogu.com.cn/problem/P3515) | 先正反各做一次去绝对值。设 $dp[i]=\lceil \max\{a_j+\sqrt{i-j}\} \rceil$,有决策单调性,使用分治即可。分治细节:假设已知 $[l,r]$ 的最优决策在 $[L,R]$ 上。设 $dp[mid]$ 的最优决策为 $p$,根据决策单调性,可知 $[l,mid−1]$ 的最优决策在 $[L,p]$ 内,$[mid+1,r]$ 的最优决策在 $[p,R]$ 内。 | [AC](https://www.luogu.com.cn/record/257175299) |
$\text{2026/1/11}$:
| 题目链接 | 简略题解 | AC 链接 || :---------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P4097](https://www.luogu.com.cn/problem/P4097) | 利用标记永久化在线段树节点维护区间中点函数值最大的优势线段,插入时比较新旧线段在中点 $mid$ 的优劣,保留优者并将劣者递归下放至其函数值高于优者的端点侧子树以维护潜在最优解,查询时取从根到叶子路径上所有记录线段在目标横坐标 $x$ 处计算值的最大值。 | [AC](https://www.luogu.com.cn/record/257236525) || [P4254](https://www.luogu.com.cn/problem/P4254) | 板子,注意处理细节。 | [AC](https://www.luogu.com.cn/record/257270479) |
---
| 题目链接 | 简略题解 | AC 链接 || :---------------------------------------------: | :-----------------------------: | :---------------------------------------------: || [P4655](https://www.luogu.com.cn/problem/P4655) | 唐氏题。$O(n^2)$ DP 简单。拆式子,使用李超线段树。 | [AC](https://www.luogu.com.cn/record/257308897) |
$\text{2026/1/12}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P11958](https://www.luogu.com.cn/problem/P11958) | 可以转化为:选择若干个不交的区间。记 $f_i$ 表示序列以 $i$ 为结尾的前缀的最优答案,李超树即可。 | [AC](https://www.luogu.com.cn/record/257407784) || [P11014](https://www.luogu.com.cn/problem/P11014) | 用 $f_i$ 表示 $m_i$:$f_i=\max_{j<i}\left\lbrace\frac{f_j}{\operatorname{a}(\operatorname{lcm}(w_i,w_j))+\operatorname{a}(\gcd(w_i,w_j))}\right\rbrace+k=\min_{j<i}\left\lbrace\frac{\operatorname{a}(w_i)}{f_j}+\frac{\operatorname{a}(w_j)}{f_j}\right\rbrace^{-1}+k$,$a(n)$ 使用线性筛,李超树即可。 | [AC](https://www.luogu.com.cn/record/257408999) |
$\text{2026/1/13}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :----------------------------: | :---------------------------------------------: || [P11896](https://www.luogu.com.cn/problem/P11896) | 板。插入时找到左右的最近的两个降噪设备,分几条线段插入即可。 | [AC](https://www.luogu.com.cn/record/257499103) || [P11728](https://www.luogu.com.cn/problem/P11728) | 离线,将每个机器人的轨迹分为若干线段存储,就是唐题了。 | [AC](https://www.luogu.com.cn/record/257499433) |
$\text{2026/1/14}$:
| 题目链接 | 简略题解 | AC 链接 || :-----------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P4069](https://www.luogu.com.cn/problem/P4069) | 树链剖分,令 $x=lca(s,t)$,$s$ 到 $x$ 到 $t$ 可以拆成两条直线,上李超树。 | [AC](https://www.luogu.com.cn/record/257585232) || [P13798](https://www.luogu.com.cn/problem/P13798) | 令 $(t_i, p_i) \times (T_j, P_j) = t_iT_j + p_iP_j$,则题目要求对所有 $(T_j, P_j)$ 求出 $(t_i, p_i) \times (T_j, P_j)$ 最大的一组 $i$。我们还可以假定 $T_j + P_j = 1$,可以发现在 $(t_i, p_i)$ 固定时,$(t_i, p_i) \times (T_j, P_j) \propto T_j$,相当于一个一次函数。于是将 $T_j$ 排序后就是李超线段树模板了。 | [AC](https://www.luogu.com.cn/record/257588814) |
$\text{2026/1/15}$:
| 题目链接 | 详细题解 | AC 链接 || :-----------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P14962](https://www.luogu.com.cn/problem/P14962) | 用 STL 维护已购买集合的最小性价比和未购买集合中满足条件的商品,直接模拟。 | [AC](https://www.luogu.com.cn/record/257664023) || [P14963](https://www.luogu.com.cn/problem/P14963) | 经典 trick。操作二很烦,考虑改为对 $s$ 和 $t$ 都做操作。变成带修消消乐。搞一种运算:有结合律;没有交换律;存在 $>5 \times 10^5$ 个元素 $a$,使得 $a$ 运算上自身等于该运算的单位元。一种可行的方案是使用 $(a,\frac{1-a^2}{b})(b,-a)$ 这种矩阵来做乘法。判断是否同构只需要判断区间运算结果是否相同,上线段树即可。 | [AC](https://www.luogu.com.cn/record/257676509) || [P14960](https://www.luogu.com.cn/problem/P14960) | 原题相当于给定一个环形序列 $a$,每次可以选一个长度为 $k$ 的区间异或同一个数,要求最后的总和最小。我们可以通过两次操作使得下标相距 $k$ 的两个位置同时异或同一个数,如果有两个数可以通过这个操作异或到一起,那么把它们异或到一起肯定不劣。当 $\frac{k}{\gcd(n,k)}$ 为偶数时,每个同余类都会被异或偶数次,所以此时直接把所有同余类的异或和加起来即可,否则拆位,对每一位求出这些异或和中这一位 $0$ 多还是 $1$ 多,让少的那种变为 $1$ 即可。 | [AC](https://www.luogu.com.cn/record/257679903) || [P14763](https://www.luogu.com.cn/problem/P14763) | 原问题会被 $k$ 拆分成完全独立的两部分,考虑求前后缀答案。用 $T−A$ 代替 $B$,此时 $f$ 的值仅与 $A$ 有关,考虑快速求解 $A$ 取何值时 $f$ 取到最小值。$f$ 为一个有最小值的单峰函数,且最值一定在黑色直线和两端取到。三分即可求得 $f,g$ 的值,树状数组维护动态插入直线。 | [AC](https://www.luogu.com.cn/record/257688658) |
$\text{2026/1/16}$:
| 题目链接 | 详细题解 | AC 链接 || :---------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P8148](https://www.luogu.com.cn/problem/P8148) | 每次推算出 $a_i$ 的值后把相关的数删去一个,这时我们再取最小值就是 $a_{i+1}$ 的值了。 | [AC](https://www.luogu.com.cn/record/257730862) || [P8149](https://www.luogu.com.cn/problem/P8149) | 对 $v_a=v_b$ 和 $v_a \neq v_b$ 两种情况分别讨论:操作二就是已知 $v_a=v_b$,操作一就是若 $v_a=v_b$,已知 $v_c=v_d$。直接做只能得 $35$。考虑将操作一的标记打在连通块上,每次选择标记较少的连通块检查,$O(n \log^2 n)$。 | [AC](https://www.luogu.com.cn/record/257755108) || [P8150](https://www.luogu.com.cn/problem/P8150) | 发现只需找到序列的最小值。考虑三分,我们取区间 $[l,r]$ 的两个三等分点 $p_1$ 和 $p_2$。考虑 $\text{query}(l,p_2-1)-\text{query}(l,p_1)$ 和 $\text{query}(p_1+1,r)-\text{query}(p_2,r)$。$\sum$ 项最终结果都是相同的,只需比较 $\min$ 部分。分类讨论舍去哪个区间。 | [AC](https://www.luogu.com.cn/record/257775972) |
$\text{2026/1/17}$:
| 题目链接 | 详细题解 | AC 链接 || :-----------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P10639](https://www.luogu.com.cn/problem/P10639) | 在节点中额外维护区间的严格次大值及最大值出现次数,在执行区间对 $v$ 取 $\min$ 的操作时,若 $v$ 大于等于当前区间最大值则直接返回,若 $v$ 介于严格次大值与最大值之间则利用标记仅更新最大值部分及其贡献从而避免继续下探,仅在 $v$ 小于等于严格次大值从而可能破坏区间内部相对大小关系时才暴力递归子节点。细节:在 `pushdown` 标记下传时需严格遵循“加法优先、最值其后”的执行顺序,且在更新区间最值(如 `chmin`)时不仅要修正 sum 和 max,还需同步“钳制”另一方向的懒标记(如将待下传的 `chmax` 标记与当前 `v` 取 min)并处理当 `max == min` 时对另一最值的连带影响。 | [AC](https://www.luogu.com.cn/record/257858273) || [P10637](https://www.luogu.com.cn/problem/P10637) | 先粘贴[最假女选手](https://www.luogu.com.cn/problem/P10639)的代码,操作:$tmi$ 和 $tmx$,$add$ 和 $tmx$,$cmn$。 | [AC](https://www.luogu.com.cn/record/257918785) |
---
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :-: | :---------------------------------------------: || [P6242](https://www.luogu.com.cn/problem/P6242) | 板。 | [AC](https://www.luogu.com.cn/record/257935972) |
$\text{2026/1/18}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :----------------------------------------------------------------------------------------: | :---------------------------------------------: || [P3376](https://www.luogu.com.cn/problem/P3376) | 网络流 (EK) 板子,建反向边,用 bfs 找增广路,流过去后加到反向边上。 | [AC](https://www.luogu.com.cn/record/258026104) || [P2756](https://www.luogu.com.cn/problem/P2756) | 网络流做二分图最大匹配,建超级源点和超级汇点。连边:超级源点 $\to^1$ 外籍,外籍 $\to^{搭配,1}$ 英籍,英籍 $\to^1$ 超级汇点。要建反向边,方案是容易的。 | [AC](https://www.luogu.com.cn/record/258030986) || [P2763](https://www.luogu.com.cn/problem/P2763) | 建图很简单,跑 EK。 | [AC](https://www.luogu.com.cn/record/258039831) |
---
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :---------------------------------------------------------------------: | :---------------------------------------------: || [P1402](https://www.luogu.com.cn/problem/P1402) | 将“客人”拆点(入点和出点)以限制每个客人只能被满足一次。图的层级为:源点 -> 房间 -> 客人入点 -> 客人出点 -> 菜 -> 汇点。 | [AC](https://www.luogu.com.cn/record/258043977) || [P2055](https://www.luogu.com.cn/problem/P2055) | 典中典二分图匹配。 | [AC](https://www.luogu.com.cn/record/258138641) || [P1231](https://www.luogu.com.cn/problem/P1231) | 套路拆点后最大流。 | [AC](https://www.luogu.com.cn/record/258174504) |
$\text{2026/1/19}$:
| 题目链接 | 详细题解 | AC 链接 || :---------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P3355](https://www.luogu.com.cn/problem/P3355) | 把所有点分成两个点集,分别为 O 点的点集和 X 的点集,然后在两个点集有某些点对无法全选。让源点到所有 O 点(即横纵坐标加起来为奇数的点)连一条容量为 $1$ 的边,让所有 X 点(即横纵坐标加起来为偶数的点)到汇点连一条容量为 $1$ 的边,再对无法同时选择的 O 点和 X 点,让 O 点连一条到 X 点容量为 $\inf$ 的点。(不考虑有障碍的点),$ans=n \times n - m - flow$。 | [AC](https://www.luogu.com.cn/record/258249937) || [P4015](https://www.luogu.com.cn/problem/P4015) | 费用流板子。 | [AC](https://www.luogu.com.cn/record/258263326) |
$\text{2026/1/20}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :-: | :---------------------------------------------: || [P4009](https://www.luogu.com.cn/problem/P4009) | 暂无 | [AC](https://www.luogu.com.cn/record/258372456) || [P1251](https://www.luogu.com.cn/problem/P1251) | ^ | [AC](https://www.luogu.com.cn/record/258374956) |
$\text{2026/1/21}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P2766](https://www.luogu.com.cn/problem/P2766) | 先跑一次 DP,DP 结果为 $f$ 数组。然后暴力连边,加上虚点限制每个点的出流只能为 $1$。源点与 $f_i=1$ 的点相连,$f_i=s$ 的点与汇点相连;点与点之间根据 $f$ 的转移方式连边。第三问只需取消 $1$ 和 $n$ 的部分流量限制。 | [AC](https://www.luogu.com.cn/record/258474619) || [P2754](https://www.luogu.com.cn/problem/P2754) | 按时间分层,连边,跑最大流即可,对于无解的判断可以用并查集。 | [AC](https://www.luogu.com.cn/record/258485720) |
$\text{2026/1/22}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :---------------------------------------------------------------------------------------: | :---------------------------------------------: || [P4012](https://www.luogu.com.cn/problem/P4012) | 如果只看每一个点,这题就是典型的方格取数问题,考虑最大费用最大流。建两种边:$cap=1,cost=w$, $cap=\inf,cost=0$。多起点终点套路地建立超级源汇即可。 | [AC](https://www.luogu.com.cn/record/258594993) || [P2764](https://www.luogu.com.cn/problem/P2764) | 首先将原图用 $n$ 条路径覆盖,现在尽量合并更多的路径。可以知道,每合并两条路径,图中的路径覆盖数就会减少 $1$。使用网络流合并即可。 | [AC](https://www.luogu.com.cn/record/258595794) |
$\text{2026/1/23}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P4013](https://www.luogu.com.cn/problem/P4013) | 考虑最大费用最大流。规则一:将每个点拆成两个点 $X<i,j>$ 和 $Y<i,j>$,$X \to Y$ 容量为 $1$,费用为该点本身的数值,层间连边 $Y \to X$ 容量为 $1$ 费用为 $0$,建立超级源汇点。规则二:不再拆点,层间连边容量为 $1$ 费用为**边的起点的**点权,但底层点向 $T$ 连边的容量需改为 $\inf$,**且费用也需改为该点的数值**。规则三:在规则二建图的基础上,将不与 $S$ 相连的边的容量改为 $\inf$。[细节](https://www.luogu.com.cn/article/byvcgnqf) | [AC](https://www.luogu.com.cn/record/258674446) || [P2762](https://www.luogu.com.cn/problem/P2762) | 建图是简单的,用最大流来做最小割。 | [AC](https://www.luogu.com.cn/record/258700164) |
$\text{2026/1/24}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :-----------------------------------------------------------------------: | :---------------------------------------------: || [P3384](https://www.luogu.com.cn/problem/P3384) | 树剖板子,[处理链操作的代码](https://www.luogu.com.cn/paste/drmgrbsv)。 | [AC](https://www.luogu.com.cn/record/258771078) || [P3038](https://www.luogu.com.cn/problem/P3038) | 边权转点权板子:将边权放在深度较深的点上,当 x 和 y 处于同一条重链时,范围:$[id_x,id_y] \to [id_x+1,id_y]$。 | [AC](https://www.luogu.com.cn/record/258773450) |
---
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :--------------------------------: | :---------------------------------------------: || [P5838](https://www.luogu.com.cn/problem/P5838) | 先上树剖,用 vector 存每一种奶牛的品种对应的下标,直接二分。 | [AC](https://www.luogu.com.cn/record/258860041) || [P3459](https://www.luogu.com.cn/problem/P3459) | 边权转点权板子。 | [AC](https://www.luogu.com.cn/record/258888479) |
$\text{2026/1/25}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :--------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P4216](https://www.luogu.com.cn/problem/P4216) | 对于询问 $(x,y,c)$,当前时刻 $i$,只需考虑时间不超过 $i-c-1$ 的修改。考虑离线,将询问按 $i-c-1$ 升序排序。用指针扫描修改,加入需要考虑的修改。 | [AC](https://www.luogu.com.cn/record/258944482) || [P2486](https://www.luogu.com.cn/problem/P2486) | 先上树剖,线段树的节点维护左右颜色,颜色段个数,合并时考虑 `tr[k*2].rc=tr[k*2+1].lc` 的情况,查询时额外考虑 `top[a]` 与 `fa[top[a]]` 颜色重复的问题。 | [AC](https://www.luogu.com.cn/record/258953724) |
---
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :-------------------------------------------------------------: | :---------------------------------------------: || [P3976](https://www.luogu.com.cn/problem/P3976) | 先树剖,线段树维护这一段数字从左到右走一遍获得的最大值,以及从右向左走一遍获得的最大值,最大值,最小值。然后类似于小白逛公园。 | [AC](https://www.luogu.com.cn/record/259040050) || [P3979](https://www.luogu.com.cn/problem/P3979) | 树剖换根板子。 | [AC](https://www.luogu.com.cn/record/259053269) |
$\text{2026/1/26}$:
| 题目链接 | 题解 | AC 链接 || :-----------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P14972](https://www.luogu.com.cn/problem/P14972) | 考虑逐个归位。 | [AC](https://www.luogu.com.cn/record/259096059) || [P15013](https://www.luogu.com.cn/problem/P15013) | 经典 trick。显然合法的局面除了环上的点都不会被指向。先跑拓扑找环。把环上的点标记出来,按照上面的那个结论先筛一轮。因为是森林,所以最后会得到许多互相独立的环。显然只能拼大小相同的环。若 $g$ 个长度为 $s$ 的环拼起来以后是合法的,当且仅当满足 $\gcd (g \times s,k)=g$。直接实现即可。 | [AC](https://www.luogu.com.cn/record/259188298) || [P15015](https://www.luogu.com.cn/problem/P15015) | 考虑枚举构成 LIE 的那个 I。直接插板法。 | [AC](https://www.luogu.com.cn/record/259190123) || [P15014](https://www.luogu.com.cn/problem/P15014) | 往序列里面依次插入 $1$ 到 $n$,用链表维护,如果存在一个位置使得答案不增就直接插入即可,否则找到答案增量最小的位置插入。离线所有询问,能获得 90 分,直接把找到对应位置的次数 >100 的打表存下来,就过了。 | [AC](https://www.luogu.com.cn/record/259190339) |
$\text{2026/1/27}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :---------------------------------------------------------------: | :---------------------------------------------: || [P4556](https://www.luogu.com.cn/problem/P4556) | 考虑差分,求点 $i$ 的权值线段树就是将它所有孩子的线段树合并到一起然后再对合并出来的线段树进行一些在这个节点的插入和删除操作。 | [AC](https://www.luogu.com.cn/record/259330608) || [P3224](https://www.luogu.com.cn/problem/P3224) | 可以对于每一个点动态开点线段树,维护重要度。然后用并查集维护联通性,每次连边或者 Build 就把两棵线段树合并就好了。 | [AC](https://www.luogu.com.cn/record/259331932) |
$\text{2026/1/29}$:
| 题目链接 | 题解 | AC 链接 || :-----------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P7581](https://www.luogu.com.cn/problem/P7581) | 合并 $u$ 和其儿子 $v$ 所在子树,则对于每个 $dep$,$ans_u=ans_u+ans_v+sum_utot_v+sum_vtot_u-2tot_utot_vdis_u$。启发式合并,将询问挂在节点上。 | [AC](https://www.luogu.com.cn/record/259651092) || [P8844](https://www.luogu.com.cn/problem/P8844) | 线段树合并。一号操作会把前面的一号操作全部覆盖掉。所以考虑离线存每个结点的询问。 | [AC](https://www.luogu.com.cn/record/259700670) || [P10795](https://www.luogu.com.cn/problem/P10795) | 注意到 $t$ 是互不相同的,考虑按 $t$ 降序排列,每次枚举与它右边的节点,如果其的 $t$ 大于当前的 $t$,那么就算贡献。具体的,对于每个点开一颗值域线段树,维护题意中要求满足的条件,即 $v_j \le v_x \le v_i$。算出贡献后,线段树合并即可。 | [AC](https://www.luogu.com.cn/record/259750010) |
---
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P3521](https://www.luogu.com.cn/problem/P3521) | 自下而上考虑是否交换儿子,我们能最小化的只有两个值分别在左子树和右子树的逆序对。用线段树合并维护两个桶 $L$ 和 $R$,分别表示左子树和右子树中各个数的出现次数。是否交换和以后新的逆序对是否构成都无关,所以我们可以让答案直接加上 $\min(e_1,e_2)$。 | [AC](https://www.luogu.com.cn/record/259803422) || [P7373](https://www.luogu.com.cn/problem/P7323) | 可以推出:当 $x \to y$ 存在合法路径,$x \to z$ 存在合法路径,$y \to z$ 也存在合法路径。当存在 $y \to x$ 的左括号,$z \to x$ 的左括号,$y \to z$ 必存在合法路径。启发式合并即可。 | [AC](https://www.luogu.com.cn/record/259845879) |
$\text{2026/1/31}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P6773](https://www.luogu.com.cn/problem/P6773) | 设 $f_{u,i}$ 表示子树 $u$ 中未满足限制的最深上端点深度为 $i$,转移时若不选边 $(u,v)$ 则状态取 $\max(i, j)$,选边则 $v$ 中限制被满足,结合前缀和优化转移方程为 $f'_{u,i} = f_{u,i} (\sum_{j \le i} f_{v,j} + \text{选边贡献}) + f_{v,i} (\sum_{j < i} f_{u,j})$;代码利用线段树维护 DP 数组,核心通过 `hb` 函数进行线段树合并,并在合并过程中维护前缀和 `s1, s2`,利用“若一侧节点为空,则另一侧区间乘数为常数”的性质,对非空子树直接打上乘法标记 (Lazy Tag) 实现 $O(1)$ 批量转移,从而避免 $O(N^2)$ 枚举,将整体复杂度优化至 $O(N \log N)$。 | [AC](https://www.luogu.com.cn/record/259915382) |
$\text{2026/2/1}$:
| 题目链接 | 题解 | AC 链接 || :-----------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P14979](https://www.luogu.com.cn/problem/P14979) | 显然地,只要确定 $s$ 的前 $k$ 个字符,整个 $s$ 就确定了。进一步地,能够发现,对于每个 $1 \le i \le k$,$s_i$ 确定后,能确定的字符有 $s_{i+k},s_{i+2k},\dots$,故整个字符串被拆成 $k$ 条链,对于每条链,只要确定链头,条链便能确定,且各条链之间相互独立。后面上反贪。 | [AC](https://www.luogu.com.cn/record/260216680) || [P14978](https://www.luogu.com.cn/problem/P14978) | 经典 trick:限制形如两个变量的和或差,我们把限制连边,找出连通块,之后随便钦定一个点的点权是 $x$,看看能否把 $x$ 解出来,是否出现矛盾,如果都没有,就有一个自由的东西可以自己确定。这是裸题。 | [AC](https://www.luogu.com.cn/record/260217976) |
---
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P4577](https://www.luogu.com.cn/problem/P4577) | 启发式合并裸题。核心代码:`it = f[u].lower_bound(w[u]);if(it != f[u].begin()) f[u].erase(--it);`。 | [AC](https://www.luogu.com.cn/record/260223507) || [P8959](https://www.luogu.com.cn/problem/P8959) | 刻画“可以走到 x 的点”这样的条件。:单点插入或删除即单点点权的加减,考虑将单点加转换为对所有可以走到的点加,查询变为单点查。然后考虑对于每个点求出其在每个时刻下的点权,查询答案即为前缀最大值。在每个位置对时间轴维护一个线段树,初始时存下该结点在各时刻点权的变化量。然后按拓扑序将线段树合并,将变化量传递下去,被传递的点又会继续传下去,直到碰见某个无法到达的点。 | [AC](https://www.luogu.com.cn/record/260243491) |
$\text{2026/2/13}$:
| 题目链接 | 题解 | AC 链接 || :-----------------------------------------------: | :----------------------------------------------------------: | :---------------------------------------------: || [P1967](https://www.luogu.com.cn/problem/P1967) | 将 [星际导航](https://www.luogu.com.cn/problem/P2245) 的边权排序方式反过来。 | [AC](https://www.luogu.com.cn/record/262830249) || [P9235](https://www.luogu.com.cn/problem/P9235) | ^ | [AC](https://www.luogu.com.cn/record/262822076) || [P11907](https://www.luogu.com.cn/problem/P11907) | 难写。先将每个餐厅入队列,跑多源 BFS 求出每个点的黑色恐怖距离,三维意义上的点看作一张图,跑板子即可。 | [AC](https://www.luogu.com.cn/record/262830069) || [P4768](https://www.luogu.com.cn/problem/P4768) | 先跑迪杰斯特拉求最短路,然后建立重构树。 | [AC](https://www.luogu.com.cn/record/262839199) |
---
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :---------------------------: | :---------------------------------------------: || [P3403](https://www.luogu.com.cn/problem/P3403) | 板子 | [AC](https://www.luogu.com.cn/record/262893728) || [P2371](https://www.luogu.com.cn/problem/P2371) | 先复制板子并丢掉所有 $0$,模数为数的最小值,连边简单。 | [AC](https://www.luogu.com.cn/record/262907080) || [P2662](https://www.luogu.com.cn/problem/P2662) | ^ | [AC](https://www.luogu.com.cn/record/262914022) |
$\text{2026/2/14}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :-------------------------------------------------------------------------------: | :---------------------------------------------: || [P9140](https://www.luogu.com.cn/problem/P9140) | 选择性价比最高的物品为基准,连边简单,SPFA 被卡了,使用[转两圈](https://www.luogu.com.cn/article/67f6rys1)技巧。 | [AC](https://www.luogu.com.cn/record/262948559) |
---
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------: || [P3588](https://www.luogu.com.cn/problem/P3588) | 线段树优化建图。线段树内子节点向父节点连权值为 0 的边表示包含关系,建立约束用的虚拟节点,点和一个线段树上的节点连边。使用拓扑排序求方案。 | [AC](https://www.luogu.com.cn/record/262995984) || [P9331](https://www.luogu.com.cn/problem/P9331) | 显然任何时候解锁的点(可以前往的国家)构成了一个区间,所以要求能抵达所有点等价于能抵达点 $1$ 和 $n$。要求抵达点 $1$ 与点 $n$ 的话,不难想到路径一定是先走共同的一段再分叉然后分别走向点 $1$ 与点 $n$,分叉之后的路径不交,因为如果有交则可以延后分叉点减小代价。考虑建立反图,求解每个点到点 $1$ 与点 $n$ 的最短路,然后再枚举分叉点 | [AC](https://www.luogu.com.cn/record/263014747) |
$\text{2026/2/14}$:
| 题目链接 | 题解 | AC 链接 || :---------------------------------------------: | :-------------------------------------------------------------------------------: | :---------------------------------------------: ||[P6348](https://www.luogu.com.cn/problem/P6348)|建出两棵线段树,进树和出树。进树的点直接连向对应的出树的点,连向绿点的边和绿点连出的边任意一个标权值。|[AC](https://www.luogu.com.cn/record/263040110)||[P7984](https://www.luogu.com.cn/problem/P7984)|注意到一个人不会重复买票,所以我们可以把每种票看作虚拟节点,买票看作从 $c_i$ 到 $i$ 号票边权为 $p_i$ 的边,同时 $i$ 号票向区间 $[a_i,b_i]$ 中的所有点连边权为 $0$ 的边。题目希望求出每个点到达 $1$ 和 $n$ 所需的最小代价,不妨建反图以 $1$ 和 $n$ 为原点分别跑一遍最短路。然而这样会喜提 WA 。因为仍然没有解决重复买票的问题,两条最短路的交集中的所有边被算了两遍。怎么解决?先记当前答案为 $dis_i=d1_i+dn_i$ ,若节点 $u$ 的两条最短路均经过它的邻居 $v$ ,不难发现 $dis_u=dis_v+w$ 。这和单源最短路的松弛本质相同,我们对答案数组重新跑一遍最短路即可。|[AC](https://www.luogu.com.cn/record/263061247)|