This problem is in Contest(s) below:
Contest 5224:AK郦老师 初级B班 图形阵与幻方 家庭作业
Contest 5236:AK张老师初级A班 二维数组 阵法综合练习