This problem is in Contest(s) below:
Contest 229:算法初级第x+1次课
Contest 219:2025秋冬语法高级周三第六次课作业