This problem is in Contest(s) below:
Contest 1120:CCF GESP2023年6月认证二级
Contest 1159:GESP二级考试编程第二题汇总