hiho week 99 register

Ended

Participants:253

Verdict:Accepted
Score:100 / 100
Submitted:2016-05-27 21:05:51

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 <queue>
using namespace std;
class tr
{
public:
    int x[6],d;
    tr()
    {
    }
    tr(int a1,int b1,int a2,int b2,int a3,int b3)
    {
        x[0] = a1;
        x[1] = b1;
        x[2] = a2;
        x[3] = b2;
        x[4] = a3;
        x[5] = b3;
        d = 0;
    }
    bool ok()
    {
        int i;
        for(i=0; i<6; i++)
        {
            if(x[i]<1 || x[i]>8)
                return false;
        }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX