hiho week 68 register

Ended

Participants:264

Verdict:Accepted
Score:100 / 100
Submitted:2015-10-18 10:39:49

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<stdio.h>
#include<string.h>
#include<algorithm>
using namespace std;
char mp[207][207];
char now[4][4][4];
int n,m;
bool check(int x,int y){
    x--;
    y--;
    int i,j,k;
    for(k=0;k<4;k++){
        for(i=0;i<3;i++){
            for(j=0;j<3;j++){
                if(mp[x+i][y+j] != now[k][i][j]){
                    break;
                }
            }
            if(j<3) break;
        }
        if(i>=3) return 1;
    }
    return 0;
}
void solve(){
    for(int k=1;k<4;k++){
        for(int i=0;i<3;i++){
            for(int j=0;j<3;j++){
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX