This problem is in Contest(s) below:
Contest 1121:CCF GESP2023年6月认证三级
Contest 1176:GESP三级考试编程第一题汇总