This problem is in Contest(s) below:
Contest 1551:while 2 一维数组
Contest 1867:19暑假5
Contest 1640:A2while