This problem is in Contest(s) below:
Contest 1397:【2413-2414】第四次作业
Contest 1275:【2312-2314】第五次作业
Contest 1258:2315-17班第5次作业(数组与函数)
Contest 1267:2303-04期中考前练习3
Contest 1318:2023级C语言寒假训练题