hiho week 68 register

Ended

Participants:264

Verdict:Accepted
Score:100 / 100
Submitted:2015-10-18 21:28:27

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<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
const int maxn = 300;
char maps[maxn][maxn],p[4][3][3];
int x,y;
void input(int n)
{
    for(int i = 0;i<n;i++)scanf("%s",maps[i]);
    for(int i = 0;i<3;i++)scanf("%s",p[0][i]);
    for(int i = 1;i<4;i++){
        for(int j = 0;j<3;j++){
            for(int k = 0;k<3;k++){
                p[i][j][k] = p[i-1][3-k-1][j];
            }
        }
    }
}
bool test(int i,int j,int k)
{
    for(int x = 0;x<3;x++){
        for(int y = 0;y<3;y++){
            if(maps[i+x][j+y]!=p[k][x][y])return 0;
        }
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX