This problem is in Contest(s) below:
Contest 4755:湖州第六天(1)初识数组
Contest 4748:湖州第四天(2)计数器