hihoCoder太阁最新面经算法竞赛11 register

Ended

Participants:176

Verdict:Accepted
Score:100 / 100
Submitted:2016-10-17 19:58:23

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>
using namespace std;
struct R
{
    int h, v, dl, dr;
    R(int a, int b, int c, int d) :h(a), v(b), dl(c), dr(d){}
    void Set(int a, int b, int c, int d)
    {
        h = a, v = b, dl = c, dr = d;
    }
    R(){ h = v = dl = dr = 0; }
    bool Check()
    {
        if (h == 5 || v == 5 || dl == 5 || dr == 5) return true;
        return false;
    }
};
char Board[15][15];
R Record[15];
int main()
{
    int T;
    bool f1, f2;
    cin >> T;
    R pre(0, 0, 0, 0), curr(0, 0, 0, 0);
    while (T--)
    {
        for (int i = 0; i < 15; i++) cin >> Board[i];
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX