hiho week 99 register

Ended

Participants:253

Verdict:Accepted
Score:100 / 100
Submitted:2016-05-22 13:31:14

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"
#include "string"
#define INT_MAX 2147483647
using namespace std;
struct point{
    int x;
    int y;
    point(){}
    point(int x, int y)
    {
        this->x = x;
        this->y = y;
    }
    void setXY(int x,int y)
    {
        this->x = x;
        this->y = y;
    }
};
int step[3][8][8];
point move(point current, int i)
{
    point next;
    switch (i)
    {
    case 0:
        next.setXY(current.x - 1, current.y + 2);
        break;
    case 1:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX