This problem is in Contest(s) below:
Contest 6668:二维矩阵综合复习
Contest 6670:AK 张老师 语法中级A班 二维简单阵法
Contest 6691:Ak王老师 语法中级B班 二维数组简单蛇阵