Steambird Weekly

· · 个人记录

2023.12.31

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

带 * 的参考了题解。

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

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

2024 1st week

\text{\textcolor{green}{Accepted}:} $ $ \text{\textcolor{green}{P1043}} $ $ \text{\textcolor{green}{P3819}} $ $ \text{\textcolor{green}{P4231}} $ $ \text{\textcolor{green}{P8289}} $ $ \text{\textcolor{green}{P1378}} \text{\textcolor{red}{Attempted}:} $ $ \sout{\text{\textcolor{blue}{P1514} (\textcolor{darkgreen}{90 pts})}} $ $ \text{\textcolor{blue}{P1174} (\textcolor{darkorange}{50}} \sim\text{\textcolor{darkorange}{70 pts})}

2024 2nd week

\text{\textcolor{green}{Accepted}:} $ $ \text{\textcolor{blue}{P1514}*} $ $ \text{\textcolor{blue}{P4050}} \text{\textcolor{red}{Attempted}: - - -}

2024 3rd week

(aka 寒假集训1)

\text{\textcolor{green}{Accepted}:} $ $ \text{\textcolor{green}{P2022}} $ $ \text{\textcolor{blue}{P1559}} $ $ \text{\textcolor{green}{P2018}} $ $ \text{\textcolor{blue}{P5490}*} $ $ \text{\textcolor{green}{P3758}} $ $ \text{\textcolor{blue}{P2797}} $ $ \text{\textcolor{orange}{P1090}} $ $ \text{\textcolor{blue}{P2827}} $ $ \text{\textcolor{green}{CF1133D}} $ $ \text{\textcolor{blue}{CF626E}} $ $ \text{\textcolor{green}{P2168}} $ $ \text{\textcolor{green}{P7653}} $ $ \text{\textcolor{green}{P7915}} $ $ \text{\textcolor{orange}{P4779}} $ $ \text{\textcolor{blue}{P2334}} $ $ \text{\textcolor{blue}{P6477}} $ $ \text{\textcolor{blue}{U405605}} $ $ \text{\textcolor{blue}{P1471}} $ $ \text{\textcolor{orange}{CF1904D1}} \text{\textcolor{red}{Attempted}:} $ $ \text{\textcolor{blue}{P4871} (\text{\textcolor{red}{20 pts})}} $ $ \text{\textcolor{green}{P6033} (\textcolor{darkorange}{60 pts})} $ $ \text{\textcolor{green}{P1417} (\textcolor{red}{35 pts})} $ $ \text{\textcolor{green}{P5662}} \text{\textcolor{darkcyan}{In Progress:}} $ $ \text{\textcolor{purple}{P2509}} ---- #### 警钟敲碎 1. 注意数组越界 (x2) 2. 手动模拟一遍,不然容易 Fake 3. 注意 dp 特殊处理部分状态不合法情况以及前缀和状态前后影响的问题 4. **多测不清见祖宗** $( \text{NOIP 140} \rightarrow \text{120} )$ (x2) 5. 注意 0 引起死循环/运算 RE 的情况(不得不让人想起某年初赛那个选择题) 6. **不开 $\bold{\text{long long}}$ 见祖宗** 7. 单源最短路用堆优化时容易写错,见 $ \text{\textcolor{orange}{P4779}} $ 的代码以检查 8. 线段树有一些奇怪的优化技巧(向 `build` 合并操作,减少 `query` 等等),见 $ \text{\textcolor{blue}{P6477}} $;关于线段树的思考,可以见 $ \text{\textcolor{blue}{U405605}} $,之后可能也会有专题文章 #### 一些知识型内容 1. 次短路:同时维护两个,类似维护区间最大+次大 2. 同余最短路:见 $ \text{\textcolor{orange}{T402615}} $。 3. 扫描线:见 4.10 节。注意线段树的“真·线段”思维方法。 4. 贪心+dp:dp 中顺序的考量(例如 $\text{\textcolor{green}{P1417}}$,后面可能会有专门的文章介绍) 5. 单调性的思考:见 $ \text{\textcolor{green}{P6033}}$。 #### 奇怪的事情 1. 有的时候可以用 $\text{long double}$ 获得更高的精度。