#2024. 子矩阵

子矩阵

Description

给输入一个n1*m1的矩阵a,和n2*m2的矩阵b,问a中是否存在子矩阵和b相等。若存在,输出所有子矩阵左上角的坐标:若不存在输出“There is no answer”。

Input Format

矩阵1和矩阵2

Output Format

若存在,输出所有子矩阵左上角的坐标:若不存在输出“There is no answer”。
5 5
1 2 3 4 5
6 7 8 9 10
1 2 3 4 5
6 7 8 9 10
1 2 3 4 5
3 3
1 2 3
6 7 8
1 2 3
1 1
3 1

Hint

1≤n1,m1≤100
1≤n2,m2≤50

Source

三学阶