This problem is in Contest(s) below:
Contest 5589:北海基础班 数组及复合复习作业
Contest 5634:入门-第14课-课堂练习(三小社团)
Contest 5635:零基础A班 假期第一次复习 作业