[Offer收割]编程练习赛19 register

Ended

Participants:405

Verdict:Time Limit Exceeded
Score:90 / 100
Submitted:2017-07-23 13:31:44

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <vector>
using namespace std;
typedef long long LL;
typedef pair<int,int>pii;
char o[55][55];
char t[105][805];
int main(){
  //freopen("in.txt","r",stdin);
  int n,m,k,h,w;
  scanf("%d%d%d",&n,&m,&k);
  for(int i=1;i<=n;++i)scanf("%s",o[i]+1);
  while(k--){
      scanf("%d%d",&h,&w);
      for(int i=1;i<=h;++i)
          scanf("%s",t[i]+1);
      bool flag = false;
      for(int i=1;i<=n;++i){
         for(int j=1;j<=m;++j){
           bool f = true;
            for(int x=1;x<=h;++x){
               for(int y=1;y<=w;++y){
                  int k1 = x+i-1;
                  int k2 = y+j-1;
                  k1 -= k1/n*n;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX