This problem is in Contest(s) below:
Contest 1167:GESP2025年12月-一级到四级
Contest 1159:GESP二级考试编程第二题汇总
Contest 1172:GESP二级考试编程第二题汇总