华东理工大学 2026 年程序设计竞赛春季校赛(重现赛) 总结

· · 个人记录

编写人:liuyuantao。

信息:

参赛身份:Nobody_zzZ 的小队队员
小队组成:Nobody_zzZ(队长)、liuyuantao、LYJ240049
赛制:ICPC
成绩(AC 数):7
总用时(含罚时):16:24
名次:rk14
链接:link

各题目详细信息如下(截止到 2026.5.17):

\text{A}

链接: P16393 [ECUSTPC 2026 Spring] 聚光灯下
难度:提高+/省选−(蓝)
通过状态(赛时):\color{limegreen}✓
通过者(最终):LYJ240049
用时:0:37
评价:佳总牛逼。

\text{B}

链接: P16394 [ECUSTPC 2026 Spring] 回响形态
难度:普及+/提高(绿)
通过状态(赛时):\color{limegreen}+2
通过者(最终):Nobody_zzZ
用时:3:22
评价:升绿了。昊神牛逼。

\text{C}

链接: P16395 [ECUSTPC 2026 Spring] 星之所在
难度:省选/NOI−(紫)
通过状态(赛时):\color{red}✗
通过者(最终):--
用时:--
评价:

\text{D}

链接: P16836 [ECUSTPC 2026 Spring] 左灯右行
难度:普及+/提高(绿)
通过状态(赛时):\color{red}✗
通过者(最终):--
用时:--
评价:

\text{E}

链接: P16397 [ECUSTPC 2026 Spring] 右灯左行
难度:省选/NOI−(紫)
通过状态(赛时):\color{red}✗
通过者(最终):--
用时:--
评价:

\text{F}

链接: P16398 [ECUSTPC 2026 Spring] 迷路日
难度:普及-(橙)
通过状态(赛时):\color{limegreen}+1
通过者(最终):liuyuantao
用时:0:10
评价:

\text{G}

链接: P16399 [ECUSTPC 2026 Spring] 朝复习
难度:普及/提高−(黄)
通过状态(赛时):\color{limegreen}✓
通过者(最终):liuyuantao
用时:0:42
评价:

\text{H}

链接: P16400 [ECUSTPC 2026 Spring] 朝复夕
难度:提高+/省选−(蓝)
通过状态(赛时):\color{red}✗
通过者(最终):--
用时:--
评价:

\text{I}

链接: P16401 [ECUSTPC 2026 Spring] 星露谷物语
难度:普及-(橙)
通过状态(赛时):\color{limegreen}✓
通过者(最终):liuyuantao
用时:0:54
评价:

\text{J}

链接: P16402 [ECUSTPC 2026 Spring] 烈焰风暴 2
难度:普及+/提高(绿)
通过状态(赛时):\color{limegreen}+13
通过者(最终):liuyuantao
用时:3:43
评价:
难评。

\text{K}

链接: P16403 [ECUSTPC 2026 Spring] 净化行动 2
难度:省选/NOI−(紫)
通过状态(赛时):\color{red}-3
通过者(最终):--
用时:--
评价:昊神以 1h+ 奋战无果,一看排行榜有 e^{i\pi}+1 个人 AC……

\text{L}

链接: P16404 [ECUSTPC 2026 Spring] 海底捞月
难度:普及+/提高(绿)
通过状态(赛时):\color{limegreen}✓
通过者(最终):LYJ240049
用时:1:33
评价:“佳总 AC 了 A 和 L”= “AK 重现赛”。

赛后结算:Nobody_zzZ :\text{B}(绿)。
LYJ240049 :\text{A}(蓝),\text{L}(绿)。
liuyuantao:\text{F}(橙),\text{G}(黄),\text{I}(橙),\text{J}(绿)。

彩蛋:

热知识:
::::info[除法打表]{open}

除法/取模比加/减/乘法慢几十倍,所以当你需要卡常时,如果你的代码时间运算瓶颈中带有除法/取模请尽量减少,或尝试图片所提到的打表(如果除数/被除数为定值)代替(打表预处理也需使用较快方法!)。
图中提到的除法打表核心代码(B_i 表示 \left\lfloor\frac{i}{m}\right\rfloor 的值,A_n 为 i 的上限。 ):

for(int i=1,l=1;i<=A[n];i+=m,l++){
    for(int j=0;j<m&&i+j<=A[n];j++){
        B[i+j]=l;
    }
}
请注意空间问题。