Lang:G++
Edit12345678910111213141516171819202122232425262728293031//// main.cpp// Hihocoder19-1//// Created by rc on 23/07/2017.// Copyright © 2017 Youdao. All rights reserved.//#include <iostream>#include <cstring>#include <cstdio>#define MAXN 55#define MAXH 105#define MAXW 810using namespace std;int n, m, k, h, w;char mat[MAXN][MAXN];char photo[MAXH][MAXW];char fullmat[MAXH+MAXN][MAXW+MAXN];bool match(int x, int y) {for (int i=0; i<h; i++)for (int j=0; j<w; j++)if (fullmat[x+i][y+j] != photo[i][j])return false;return true;}