跳到正文

个人记录

Steambird Weekly

steambird约 6 分钟
原文
文章信息与版本

文章信息

发布
2023年12月31日
收录
2025年12月12日
更新
2026年11月19日
篇幅
约 6 分钟

版本

  1. v1当前

2023.12.31

Accepted:\text{\textcolor{green}{Accepted}:} P9978\text{\textcolor{orange}{P9978}} P4998\text{\textcolor{green}{P4998}} P3918\text{\textcolor{green}{P3918}} P3661(70 pts→100 pts)*\text{\textcolor{green}{P3661}(\textcolor{orange}{70 pts}} \rightarrow \text{\textcolor{green}{100 pts}} \text{)*} P2887\text{\textcolor{green}{P2887}}

带 * 的参考了题解。

Attempted:\text{\textcolor{red}{Attempted}:} P5390 (38 pts)\text{\textcolor{green}{P5390} (\textcolor{darkorange}{38 pts})} T402615 (55 pts)\text{\textcolor{orange}{T402615} (\textcolor{darkorange}{55 pts})}

( T402615\text{\textcolor{orange}{T402615}} 是 IceSpring & HotSpring,即 这个 的验题 )

2024 1st week

Accepted:\text{\textcolor{green}{Accepted}:} P1043\text{\textcolor{green}{P1043}} P3819\text{\textcolor{green}{P3819}} P4231\text{\textcolor{green}{P4231}} P8289\text{\textcolor{green}{P8289}} P1378\text{\textcolor{green}{P1378}}

Attempted:\text{\textcolor{red}{Attempted}:} P1514 (90 pts)\sout{\text{\textcolor{blue}{P1514} (\textcolor{darkgreen}{90 pts})}} P1174 (50∼70 pts)\text{\textcolor{blue}{P1174} (\textcolor{darkorange}{50}} \sim\text{\textcolor{darkorange}{70 pts})}

2024 2nd week

Accepted:\text{\textcolor{green}{Accepted}:} P1514*\text{\textcolor{blue}{P1514}*} P4050\text{\textcolor{blue}{P4050}}

Attempted: - - -\text{\textcolor{red}{Attempted}: - - -}

2024 3rd week

(aka 寒假集训1)

Accepted:\text{\textcolor{green}{Accepted}:} P2022\text{\textcolor{green}{P2022}} P1559\text{\textcolor{blue}{P1559}} P2018\text{\textcolor{green}{P2018}} P5490*\text{\textcolor{blue}{P5490}*} P3758\text{\textcolor{green}{P3758}} P2797\text{\textcolor{blue}{P2797}} P1090\text{\textcolor{orange}{P1090}} P2827\text{\textcolor{blue}{P2827}} CF1133D\text{\textcolor{green}{CF1133D}} CF626E\text{\textcolor{blue}{CF626E}} P2168\text{\textcolor{green}{P2168}} P7653\text{\textcolor{green}{P7653}} P7915\text{\textcolor{green}{P7915}} P4779\text{\textcolor{orange}{P4779}} P2334\text{\textcolor{blue}{P2334}} P6477\text{\textcolor{blue}{P6477}} U405605\text{\textcolor{blue}{U405605}} P1471\text{\textcolor{blue}{P1471}} CF1904D1\text{\textcolor{orange}{CF1904D1}}

Attempted:\text{\textcolor{red}{Attempted}:} P4871 (20 pts)\text{\textcolor{blue}{P4871} (\text{\textcolor{red}{20 pts})}} P6033 (60 pts)\text{\textcolor{green}{P6033} (\textcolor{darkorange}{60 pts})} P1417 (35 pts)\text{\textcolor{green}{P1417} (\textcolor{red}{35 pts})} P5662\text{\textcolor{green}{P5662}}

In Progress:\text{\textcolor{darkcyan}{In Progress:}} P2509\text{\textcolor{purple}{P2509}}

P5490*\text{\textcolor{blue}{P5490}*}:参考了龙哥的解法


警钟敲碎

  1. 注意数组越界 (x2)

  2. 手动模拟一遍,不然容易 Fake

  3. 注意 dp 特殊处理部分状态不合法情况以及前缀和状态前后影响的问题

  4. 多测不清见祖宗 (NOIP 140→120)( \text{NOIP 140} \rightarrow \text{120} ) (x2)

  5. 注意 0 引起死循环/运算 RE 的情况(不得不让人想起某年初赛那个选择题)

  6. 不开 long long\bold{\text{long long}} 见祖宗

  7. 单源最短路用堆优化时容易写错,见 P4779\text{\textcolor{orange}{P4779}} 的代码以检查

  8. 线段树有一些奇怪的优化技巧(向 build 合并操作,减少 query 等等),见 P6477\text{\textcolor{blue}{P6477}};关于线段树的思考,可以见 U405605\text{\textcolor{blue}{U405605}},之后可能也会有专题文章

一些知识型内容

  1. 次短路:同时维护两个,类似维护区间最大+次大

  2. 同余最短路:见 T402615\text{\textcolor{orange}{T402615}}。

  3. 扫描线:见 4.10 节。注意线段树的“真·线段”思维方法。

  4. 贪心+dp:dp 中顺序的考量(例如 P1417\text{\textcolor{green}{P1417}},后面可能会有专门的文章介绍)

  5. 单调性的思考:见 P6033 \text{\textcolor{green}{P6033}}。

奇怪的事情

  1. 有的时候可以用 long double\text{long double} 获得更高的精度。
原文