This problem is in Contest(s) below:
Contest 1183:基础课程-一维数组
Contest 1097:2022小学市夏令营练习-一维数组