This problem is in Contest(s) below:
Contest 1183:基础课程-一维数组