This problem is in Contest(s) below:
Contest 6668:二维矩阵综合复习
Contest 6690:Ak张老师 算法初级A班 vec 家庭练习