This problem is in Contest(s) below:
Contest 1889: 少年宫(数组)