This problem is in Contest(s) below:
Contest 1135:CCF GESP2024年3月认证一级-四级编程题
Contest 1158:GESP二级考试编程第一题汇总