This problem is in Contest(s) below:
Contest 1400:程序设计基础B上机6:数组上机操作2-海洋B241-B242
Contest 1368:程序设计基础上机5-数组程序设计-软工B241-242-王迪