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