This problem is in Contest(s) below:
Contest 1140:LJ 25计科本2数组课堂练习2
Contest 1141:LJ 25计科本3数组课堂练习2