版本比较
华东理工大学 2026 年程序设计竞赛春季校赛(重现赛) 总结
正文
增加 99 行删除 96 行
123456789105678910111213141516171819202115161718192021222324252627282923242526272829303132333435363731323334353637383940414243444539404142434445464748495051525347484950515253545556575859606155565758596061626364656667686963646566676869707172737475767771727374757677787980818283848579808182838485868788899091929387888990919293949596979899100101102969798991001011021031041051061071081091101041051061071081091101111121131121131141151161171161171181191201211221231211241251261241271281291301317 行未改动编写人:[liuyuantao](https://www.luogu.com.cn/user/1167837)。
信息:
参赛身份:[Nobody_zzZ](https://www.luogu.com.cn/user/1151300) 的小队队员 小队组成:[Nobody_zzZ](https://www.luogu.com.cn/user/1151300)(队长)、[liuyuantao](https://www.luogu.com.cn/user/1167837)、[LYJ240049](https://www.luogu.com.cn/user/1532435) 赛制:ICPC 成绩(AC 数):7 总用时(含罚时):16:24 名次:rk14 参赛身份:[Nobody_zzZ](https://www.luogu.com.cn/user/1151300) 的小队队员小队组成:[Nobody_zzZ](https://www.luogu.com.cn/user/1151300)(队长)、[liuyuantao](https://www.luogu.com.cn/user/1167837)、[LYJ240049](https://www.luogu.com.cn/user/1532435)赛制:ICPC成绩(AC 数):7总用时(含罚时):16:24名次:rk14链接:[link](https://www.luogu.com.cn/contest/321841)
各题目详细信息如下(截止到 2026.5.17):
$\text{A}$ 链接: [P16393 [ECUSTPC 2026 Spring] 聚光灯下](https://www.luogu.com.cn/problem/P16393) 难度:提高+/省选−(蓝) 通过状态(赛时):$\color{limegreen}✓$ 通过者(最终):[LYJ240049](https://www.luogu.com.cn/user/1532435) 用时:0:37 评价:佳总牛逼。 $\text{A}$链接: [P16393 [ECUSTPC 2026 Spring] 聚光灯下](https://www.luogu.com.cn/problem/P16393)难度:提高+/省选−(蓝)通过状态(赛时):$\color{limegreen}✓$通过者(最终):[LYJ240049](https://www.luogu.com.cn/user/1532435)用时:0:37评价:佳总牛逼。
$\text{B}$ 链接: [P16394 [ECUSTPC 2026 Spring] 回响形态](https://www.luogu.com.cn/problem/P16394) 难度:普及+/提高(绿) 通过状态(赛时):$\color{limegreen}+2$ 通过者(最终):[Nobody_zzZ](https://www.luogu.com.cn/user/1151300) 用时:3:22 评价:升绿了。昊神牛逼。 $\text{B}$链接: [P16394 [ECUSTPC 2026 Spring] 回响形态](https://www.luogu.com.cn/problem/P16394)难度:普及+/提高(绿)通过状态(赛时):$\color{limegreen}+2$通过者(最终):[Nobody_zzZ](https://www.luogu.com.cn/user/1151300)用时:3:22评价:升绿了。昊神牛逼。
$\text{C}$ 链接: [P16395 [ECUSTPC 2026 Spring] 星之所在](https://www.luogu.com.cn/problem/P16395) 难度:省选/NOI−(紫) 通过状态(赛时):$\color{red}✗$ 通过者(最终):-- 用时:-- 评价: $\text{C}$链接: [P16395 [ECUSTPC 2026 Spring] 星之所在](https://www.luogu.com.cn/problem/P16395)难度:省选/NOI−(紫)通过状态(赛时):$\color{red}✗$通过者(最终):--用时:--评价:
$\text{D}$ 链接: [P16836 [ECUSTPC 2026 Spring] 左灯右行](https://www.luogu.com.cn/problem/P16396) 难度:普及+/提高(绿) 通过状态(赛时):$\color{red}✗$ 通过者(最终):-- 用时:-- 评价: $\text{D}$链接: [P16836 [ECUSTPC 2026 Spring] 左灯右行](https://www.luogu.com.cn/problem/P16396)难度:普及+/提高(绿)通过状态(赛时):$\color{red}✗$通过者(最终):--用时:--评价:
$\text{E}$ 链接: [P16397 [ECUSTPC 2026 Spring] 右灯左行](https://www.luogu.com.cn/problem/P16397) 难度:省选/NOI−(紫) 通过状态(赛时):$\color{red}✗$ 通过者(最终):-- 用时:-- 评价: $\text{E}$链接: [P16397 [ECUSTPC 2026 Spring] 右灯左行](https://www.luogu.com.cn/problem/P16397)难度:省选/NOI−(紫)通过状态(赛时):$\color{red}✗$通过者(最终):--用时:--评价:
$\text{F}$ 链接: [P16398 [ECUSTPC 2026 Spring] 迷路日](https://www.luogu.com.cn/problem/P16398) 难度:普及-(橙) 通过状态(赛时):$\color{limegreen}+1$ 通过者(最终):[liuyuantao](https://www.luogu.com.cn/user/1167837) 用时:0:10 评价: $\text{F}$链接: [P16398 [ECUSTPC 2026 Spring] 迷路日](https://www.luogu.com.cn/problem/P16398)难度:普及-(橙)通过状态(赛时):$\color{limegreen}+1$通过者(最终):[liuyuantao](https://www.luogu.com.cn/user/1167837)用时:0:10评价:
$\text{G}$ 链接: [P16399 [ECUSTPC 2026 Spring] 朝复习](https://www.luogu.com.cn/problem/P16399) 难度:普及/提高−(黄) 通过状态(赛时):$\color{limegreen}✓$ 通过者(最终):[liuyuantao](https://www.luogu.com.cn/user/1167837) 用时:0:42 评价: $\text{G}$链接: [P16399 [ECUSTPC 2026 Spring] 朝复习](https://www.luogu.com.cn/problem/P16399)难度:普及/提高−(黄)通过状态(赛时):$\color{limegreen}✓$通过者(最终):[liuyuantao](https://www.luogu.com.cn/user/1167837)用时:0:42评价:
$\text{H}$ 链接: [P16400 [ECUSTPC 2026 Spring] 朝复夕](https://www.luogu.com.cn/problem/P16400) 难度:提高+/省选−(蓝) 通过状态(赛时):$\color{red}✗$ 通过者(最终):-- 用时:-- 评价: $\text{H}$链接: [P16400 [ECUSTPC 2026 Spring] 朝复夕](https://www.luogu.com.cn/problem/P16400)难度:提高+/省选−(蓝)通过状态(赛时):$\color{red}✗$通过者(最终):--用时:--评价:
$\text{I}$ 链接: [P16401 [ECUSTPC 2026 Spring] 星露谷物语](https://www.luogu.com.cn/problem/P16401) 难度:普及-(橙) 通过状态(赛时):$\color{limegreen}✓$ 通过者(最终):[liuyuantao](https://www.luogu.com.cn/user/1167837) 用时:0:54 评价: $\text{I}$链接: [P16401 [ECUSTPC 2026 Spring] 星露谷物语](https://www.luogu.com.cn/problem/P16401)难度:普及-(橙)通过状态(赛时):$\color{limegreen}✓$通过者(最终):[liuyuantao](https://www.luogu.com.cn/user/1167837)用时:0:54评价:
$\text{J}$ 链接: [P16402 [ECUSTPC 2026 Spring] 烈焰风暴 2](https://www.luogu.com.cn/problem/P16402) 难度:普及+/提高(绿) 通过状态(赛时):$\color{limegreen}+13$ 通过者(最终):[liuyuantao](https://www.luogu.com.cn/user/1167837) 用时:3:43 评价: $\text{J}$链接: [P16402 [ECUSTPC 2026 Spring] 烈焰风暴 2](https://www.luogu.com.cn/problem/P16402)难度:普及+/提高(绿)通过状态(赛时):$\color{limegreen}+13$通过者(最终):[liuyuantao](https://www.luogu.com.cn/user/1167837)用时:3:43评价:难评。
$\text{K}$ 链接: [P16403 [ECUSTPC 2026 Spring] 净化行动 2](https://www.luogu.com.cn/problem/P16403) 难度:省选/NOI−(紫) 通过状态(赛时):$\color{red}-3$ 通过者(最终):-- 用时:-- 评价:昊神以 1h+ 奋战无果,一看排行榜有 $e^{i\pi}+1$ 个人 AC…… $\text{K}$链接: [P16403 [ECUSTPC 2026 Spring] 净化行动 2](https://www.luogu.com.cn/problem/P16403)难度:省选/NOI−(紫)通过状态(赛时):$\color{red}-3$通过者(最终):--用时:--评价:昊神以 1h+ 奋战无果,一看排行榜有 $e^{i\pi}+1$ 个人 AC……
$\text{L}$ 链接: [P16404 [ECUSTPC 2026 Spring] 海底捞月](https://www.luogu.com.cn/problem/P16404) 难度:普及+/提高(绿) 通过状态(赛时):$\color{limegreen}✓$ 通过者(最终):[LYJ240049](https://www.luogu.com.cn/user/1532435) 用时:1:33 评价:“佳总 AC 了 A 和 L”= “AK 重现赛”。 $\text{L}$链接: [P16404 [ECUSTPC 2026 Spring] 海底捞月](https://www.luogu.com.cn/problem/P16404)难度:普及+/提高(绿)通过状态(赛时):$\color{limegreen}✓$通过者(最终):[LYJ240049](https://www.luogu.com.cn/user/1532435)用时:1:33评价:“佳总 AC 了 A 和 L”= “AK 重现赛”。
赛后结算:[Nobody_zzZ](https://www.luogu.com.cn/user/1151300) :$\text{B}$(绿)。 [LYJ240049](https://www.luogu.com.cn/user/1532435) :$\text{A}$(蓝),$\text{L}$(绿)。 赛后结算:[Nobody_zzZ](https://www.luogu.com.cn/user/1151300) :$\text{B}$(绿)。[LYJ240049](https://www.luogu.com.cn/user/1532435) :$\text{A}$(蓝),$\text{L}$(绿)。[liuyuantao](https://www.luogu.com.cn/user/1167837):$\text{F}$(橙),$\text{G}$(黄),$\text{I}$(橙),$\text{J}$(绿)。
彩蛋: * 没人切黑。 彩蛋:
* 没人切黑。
* 其实这次是绿。

热知识: 热知识:::::info[除法打表]{open}
除法/取模比加/减/乘法慢几十倍,所以当你需要卡常时,如果你的代码时间运算瓶颈中带有除法/取模请尽量减少,或尝试图片所提到的打表(如果除数/被除数为定值)代替(打表预处理也需使用较快方法!)。 除法/取模比加/减/乘法慢几十倍,所以当你需要卡常时,如果你的代码时间运算瓶颈中带有除法/取模请尽量减少,或尝试图片所提到的打表(如果除数/被除数为定值)代替(打表预处理也需使用较快方法!)。图中提到的除法打表核心代码($B_i$ 表示 $\left\lfloor\frac{i}{m}\right\rfloor$ 的值,$A_n$ 为 $i$ 的上限。):```cppfor(int i=1,l=1;i<=A[n];i+=m,l++){7 行未改动