hiho week 232 register

Ended

Participants:110

Verdict:Accepted
Score:100 / 100
Submitted:2018-12-08 22:04:46

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 <bits/stdc++.h>
using namespace std;
constexpr int MOD = 1e9 + 7;
constexpr int MAXN = 2e3 + 1;
constexpr int dirs[] = {-1, 0, 1, 0, -1};
using ll = long long;
string board[MAXN];
int vis[MAXN][MAXN];
int N, M, K;
struct Part {
    int a, b;
    int c, d;
    int x, y;
    int flag;
    Part() {
        flag = 0;
        a = MAXN;
        b = MAXN;
        c = -MAXN;
        d = -MAXN;
        x = MAXN;
        y = MAXN;
    }
    bool operator < (const Part& oth) const {
        if (y < oth.y) {
            return true;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX