This problem is in Contest(s) below:
Contest 4756:湖州第六天(2)数组进阶
Contest 4755:湖州第六天(1)初识数组