This problem is in Contest(s) below:
Contest 1404:2017-2018-2电气1701-03数组(一)
Contest 1405:2017-2018-2电气1704-05数组(一)