hiho week 253 register

Ended

Participants:61

Verdict:Accepted
Score:100 / 100
Submitted:2019-05-04 20:08:56

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 <cstdio>
#include <cstring>
#include <vector>
#include <queue>
#include <cmath>
#include <cstdlib>
#include <string>
#include <map>
#include <stack>
using namespace std;
#define INF 0x3f3f3f3f
#define LL long long
#define fi first
#define se second
#define mem(a,b) memset((a),(b),sizeof(a))
 
const int MAXN=100+2;
const int MAXL=MAXN*3;
const int dy[]={-1,0,1,0},dx[]={0,1,0,-1};
int N,M;
bool maze[MAXL][MAXL];
 
inline bool in(int y,int x)
{
    return y>=0&&y<3*N&&x>=0&&x<3*M;
}
 
void dfs(int y,int x)
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX