A51779. (子矩阵) 给输入一个 n1*m1 的矩阵 a,和 n2*m2 的矩阵 b,问 a 中是否存在子矩阵和 b 相等。 若存在,输出所有子矩阵左上角的坐标:若不存在输出“ There is no answer ”。
填空题
较易
知识点
题目描述
(子矩阵) 给输入一个 n1*m1 的矩阵 a,和 n2*m2 的矩阵 b,问 a 中是否存在子矩阵和 b 相等。 若存在,输出所有子矩阵左上角的坐标:若不存在输出“ There is no answer ”。

参考答案
<p>1.cin>>b[i][j]</p><p><br/></p><p>2.m1 - m2 + 1</p><p><br/></p><p>3.good = true</p><p><br/></p><p>4.m2</p><p><br/></p><p>5.haveAns = true</p>
上一题
下一题