hiho week 68 register

Ended

Participants:264

Verdict:Accepted
Score:100 / 100
Submitted:2015-10-18 18:52:37

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 <algorithm>
#include <cstring>
#include <cmath>
#include <queue>
#include <vector>
#include <cstdio>
#include <limits.h>
using namespace std;
char s[205][205],s2[4][4];
bool fun(int x,int y)
{
    int f1=1,f2=1,f3=1,f4=1;
    for(int i=0;i<3;i++)
    {
        for(int j=0;j<3;j++)
        {
            if(s[i+x][j+y]!=s2[i][j]) f1=0;
            if(s[i+x][j+y]!=s2[2-i][2-j]) f2=0;
            if(s[i+x][j+y]!=s2[j][2-i]) f3=0;
            if(s[i+x][j+y]!=s2[2-j][i]) f4=0;
        }
    }
    if(f1+f2+f3+f4) return 1;
    return 0;
}
int main()
{
    int n,m;
    scanf("%d%d",&n,&m);
    for(int i=0;i<n;i++)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX