This problem is in Contest(s) below:
Contest 1131:CCF GESP2023年12月认证二级
Contest 1129:CCF GESP2023年12月认证一级-五编程题
Contest 1158:GESP二级考试编程第一题汇总