hiho week 166 register

Ended

Participants:289

Verdict:Accepted
Score:100 / 100
Submitted:2017-09-07 00:46:25

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;
const int maxn=100+5;
int M,N,K,a,b,c,d;
char m[maxn][maxn];
int site[5][2];
int dx[4]={0,1,0,-1};
int dy[4]={1,0,-1,0};
bool vis[maxn][maxn][1<<5];
struct node
{
    int x,y,step,status;
    node(int x,int y,int step,int status)
    {
        this->x=x;
        this->y=y;
        this->status=status;
        this->step=step;
    }
};
void init()
{
    cin>>N>>M>>K>>a>>b>>c>>d;
    for(int i=0;i<N;i++)
        cin>>m[i];
    for(int i=0;i<K;i++)
        cin>>site[i][0]>>site[i][1];
}
int main()
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX