Submission #781357

# Submission time Handle Problem Language Result Execution time Memory
781357 2023-07-13T04:12:02 Z green_gold_dog Maze (JOI23_ho_t3) C++17
94 / 100
2000 ms 108412 KB
#include<bits/stdc++.h>

using namespace std;

typedef int ll;

const ll INF = 1'000'000'000;

template<typename T>
bool assign_min(T& a, T b) {
        if (a > b) {
                a = b;
                return true;
        }
        return false;
}

template<typename T>
bool assign_max(T& a, T b) {
        if (a < b) {
                a = b;
                return true;
        }
        return false;
}

struct segment_tree {
        vector<bool> tree;
        ll size;
        segment_tree(ll n) {
                size = 1;
                while (size < n) {
                        size *= 2;
                }
                tree.resize(size * 2, false);
        }
        vector<ll> set(ll l, ll r) {
                vector<ll> ans;
                set(1, 0, size, l, r, ans);
                return ans;
        }
        void set(ll v, ll l, ll r, ll ql, ll qr, vector<ll>& ans) {
                if (tree[v]) {
                        return;
                }
                if (r <= ql || qr <= l) {
                        return;
                }
                if (r - l == 1) {
                        ans.push_back(l);
                        tree[v] = true;
                        return;
                }
                ll mid = (l + r) / 2;
                set(v * 2, l, mid, ql, qr, ans);
                set(v * 2 + 1, mid, r, ql, qr, ans);
                tree[v] = tree[v * 2] && tree[v * 2 + 1];
        }
};

struct segment_tree_am {
        vector<ll> m, tree;
        ll size;
        segment_tree_am(ll n) {
                size = 1;
                while (size < n) {
                        size *= 2;
                }
                m.resize(size * 2, 0);
                tree.resize(size * 2, 0);
        }
        bool get(ll l, ll r) {
                return get(1, 0, size, l, r);
        }
        bool get(ll v, ll l, ll r, ll ql, ll qr) {
                if (tree[v] != 0) {
                        return false;
                }
                if (ql <= l && r <= qr) {
                        return true;
                }
                if (qr <= l || r <= ql) {
                        return false;
                }
                ll mid = (l + r) / 2;
                return get(v * 2, l, mid, ql, qr) || get(v * 2 + 1, mid, r, ql, qr);
        }
        void add(ll l, ll r, ll x) {
                add(1, 0, size, l, r, x);
        }
        void add(ll v, ll l, ll r, ll ql, ll qr, ll x) {
                if (ql <= l && r <= qr) {
                        tree[v] += x;
                        m[v] += x;
                        return;
                }
                if (qr <= l || r <= ql) {
                        return;
                }
                ll mid = (l + r) / 2;
                add(v * 2, l, mid, ql, qr, x);
                add(v * 2 + 1, mid, r, ql, qr, x);
                tree[v] = min(tree[v * 2], tree[v * 2 + 1]) + m[v];
        }
        ll find_first(ll l, ll r) {
                if (!get(l, r)) {
                        return r;
                }
                return find_first(1, 0, size, l, r);
        }
        ll find_first(ll v, ll l, ll r, ll ql, ll qr) {
                if (r - l == 1) {
                        return l;
                }
                ll mid = (l + r) / 2;
                if (get(v * 2, l, mid, ql, qr)) {
                        return find_first(v * 2, l, mid, ql, qr);
                } else {
                        return find_first(v * 2 + 1, mid, r, ql, qr);
                }
        }
};

void solve() {
        ll n, r, c;
        cin >> r >> c >> n;
        ll sx, sy, gx, gy;
        cin >> sx >> sy >> gx >> gy;
        sx--;
        sy--;
        gx--;
        gy--;
        vector<vector<bool>> arr(r, vector<bool>(c, false));
        vector<vector<bool>> used(r, vector<bool>(c, false));
        vector<segment_tree> dist(r, segment_tree(c));
        for (ll i = 0; i < r; i++) {
                string s;
                cin >> s;
                for (ll j = 0; j < c; j++) {
                        if (s[j] == '.') {
                                arr[i][j] = true;
                        }
                }
        }
        vector<pair<ll, ll>> now;
        now.emplace_back(sx, sy);
        used[sx][sy] = true;
        ll na = 0;
        while (true) {
                vector<pair<ll, ll>> nu;
                vector<vector<ll>> all(r * 2);
                while (!now.empty()) {
                        auto[x, y] = now.back();
                        nu.emplace_back(x, y);
                        if (x == gx && y == gy) {
                                cout << na << '\n';
                                return;
                        }
                        now.pop_back();
                        if (x > 0 && arr[x - 1][y]) {
                                if (!used[x - 1][y]) {
                                        used[x - 1][y] = true;
                                        now.emplace_back(x - 1, y);
                                }
                        }
                        if (x + 1 < r && arr[x + 1][y]) {
                                if (!used[x + 1][y]) {
                                        used[x + 1][y] = true;
                                        now.emplace_back(x + 1, y);
                                }
                        }
                        if (y > 0 && arr[x][y - 1]) {
                                if (!used[x][y - 1]) {
                                        used[x][y - 1] = true;
                                        now.emplace_back(x, y - 1);
                                }
                        }
                        if (y + 1 < c && arr[x][y + 1]) {
                                if (!used[x][y + 1]) {
                                        used[x][y + 1] = true;
                                        now.emplace_back(x, y + 1);
                                }
                        }
                        all[max(x - n + 1, (ll)0) * 2].emplace_back(y);
                        all[(min(x + n, r) - 1) * 2 + 1].emplace_back(y);
                }
                na++;
                for (auto[x, y] : nu) {
                        if (x - n >= 0) {
                                ll i = x - n;
                                for (auto j : dist[i].set(max(y - n + 1, (ll)0), min(y + n, c))) {
                                        if (!used[i][j]) {
                                                used[i][j] = true;
                                                now.emplace_back(i, j);
                                        }
                                }
                        }
                        if (x + n < r) {
                                ll i = x + n;
                                for (auto j : dist[i].set(max(y - n + 1, (ll)0), min(y + n, c))) {
                                        if (!used[i][j]) {
                                                used[i][j] = true;
                                                now.emplace_back(i, j);
                                        }
                                }
                        }
                }
                multiset<ll> nps;
                set<ll> no;
                no.insert(-INF);
                for (ll i = 0; i < r; i++) {
                        for (auto y : all[i * 2]) {
                                ll l = y - n, r = y + n + 1;
                                auto it = nps.lower_bound(y);
                                ll prev = -INF, next = INF;
                                if (it != nps.end()) {
                                        next = *it;
                                }
                                if (it != nps.begin()) {
                                        it--;
                                        prev = *it;
                                }
                                nps.insert(y);
                                if (next - prev - 1 <= n * 2 || next == y || prev == y) {
                                        continue;
                                }
                                auto io = no.lower_bound(l);
                                auto nio = io;
                                if (y - prev - 1 <= n * 2) {
                                        nio++;
                                        no.erase(io);
                                } else {
                                        no.insert(l);
                                }
                                if (next - y - 1 <= n * 2) {
                                        no.erase(nio);
                                } else {
                                        no.insert(r);
                                }
                        }
                        ll lst = -INF;
                        for (auto j : no) {
                                if (lst == -INF) {
                                        lst = j;
                                        continue;
                                }
                                for (auto j : dist[i].set(max(lst, (ll)0), min(j, c))) {
                                        if (!used[i][j]) {
                                                used[i][j] = true;
                                                now.emplace_back(i, j);
                                        }
                                }
                                lst = -INF;
                        }
                        for (auto y : all[i * 2 + 1]) {
                                ll l = y - n, r = y + n + 1;
                                auto io = no.upper_bound(y);
                                auto nio = io;
                                nio--;
                                nps.erase(nps.find(y));
                                if (nps.empty()) {
                                        no.erase(io);
                                        no.erase(nio);
                                        continue;
                                }
                                ll lo = *nio, ro = *io;
                                auto it = nps.lower_bound(y);
                                if (it != nps.end() && *it == y) {
                                        continue;
                                }
                                if (it == nps.end()) {
                                        no.erase(ro);
                                        it--;
                                        if (lo < l) {
                                                no.insert(*it + n + 1);
                                        } else {
                                                no.erase(lo);
                                        }
                                        continue;
                                }
                                if (it == nps.begin()) {
                                        no.erase(lo);
                                        if (ro > r) {
                                                no.insert(*it - n);
                                        } else {
                                                no.erase(ro);
                                        }
                                        continue;
                                }
                                auto lit = it, rit = it;
                                lit--;
                                if (*rit - *lit - 1 <= n * 2) {
                                        continue;
                                }
                                if (lo < l) {
                                        no.insert(*lit + n + 1);
                                } else {
                                        no.erase(lo);
                                }
                                if (ro > r) {
                                        no.insert(*rit - n);
                                } else {
                                        no.erase(ro);
                                }
                        }
                }
        }
}

int main() {
        ios_base::sync_with_stdio(false);
        cin.tie(0);
        cout.tie(0);
        solve();
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Correct 1 ms 316 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 316 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 328 KB Output is correct
18 Correct 1 ms 320 KB Output is correct
19 Correct 26 ms 488 KB Output is correct
20 Correct 16 ms 468 KB Output is correct
21 Correct 3 ms 1576 KB Output is correct
22 Correct 30 ms 468 KB Output is correct
23 Correct 32 ms 480 KB Output is correct
24 Correct 12 ms 536 KB Output is correct
25 Correct 19 ms 516 KB Output is correct
26 Correct 1 ms 468 KB Output is correct
27 Correct 2 ms 468 KB Output is correct
28 Correct 13 ms 536 KB Output is correct
29 Correct 82 ms 656 KB Output is correct
30 Correct 24 ms 424 KB Output is correct
31 Correct 5 ms 2112 KB Output is correct
32 Correct 82 ms 748 KB Output is correct
33 Correct 70 ms 596 KB Output is correct
34 Correct 37 ms 872 KB Output is correct
35 Correct 72 ms 968 KB Output is correct
36 Correct 55 ms 1080 KB Output is correct
37 Correct 73 ms 896 KB Output is correct
38 Correct 4 ms 724 KB Output is correct
39 Correct 989 ms 2132 KB Output is correct
40 Correct 32 ms 596 KB Output is correct
41 Correct 22 ms 996 KB Output is correct
42 Correct 129 ms 752 KB Output is correct
43 Correct 94 ms 884 KB Output is correct
44 Correct 171 ms 1444 KB Output is correct
45 Correct 213 ms 1628 KB Output is correct
46 Correct 51 ms 36088 KB Output is correct
47 Correct 853 ms 2356 KB Output is correct
48 Correct 703 ms 2200 KB Output is correct
49 Correct 212 ms 4712 KB Output is correct
50 Correct 419 ms 4700 KB Output is correct
51 Correct 666 ms 3624 KB Output is correct
52 Correct 476 ms 2780 KB Output is correct
53 Correct 772 ms 2412 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 320 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 316 KB Output is correct
9 Correct 1 ms 316 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 1 ms 316 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 324 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 320 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 212 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 324 KB Output is correct
7 Correct 1 ms 340 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 340 KB Output is correct
10 Correct 1 ms 340 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 0 ms 212 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 324 KB Output is correct
23 Correct 1 ms 320 KB Output is correct
24 Correct 0 ms 256 KB Output is correct
25 Correct 4 ms 392 KB Output is correct
26 Correct 3 ms 1348 KB Output is correct
27 Correct 2 ms 1456 KB Output is correct
28 Correct 1 ms 980 KB Output is correct
29 Correct 4 ms 2124 KB Output is correct
30 Correct 3 ms 2120 KB Output is correct
31 Correct 6 ms 808 KB Output is correct
32 Correct 2 ms 468 KB Output is correct
33 Correct 3 ms 448 KB Output is correct
34 Correct 1 ms 596 KB Output is correct
35 Correct 5 ms 2108 KB Output is correct
36 Correct 2 ms 1396 KB Output is correct
37 Correct 6 ms 2748 KB Output is correct
38 Correct 5 ms 3268 KB Output is correct
39 Correct 13 ms 6424 KB Output is correct
40 Correct 25 ms 14260 KB Output is correct
41 Correct 48 ms 36172 KB Output is correct
42 Correct 29 ms 19912 KB Output is correct
43 Correct 74 ms 37464 KB Output is correct
44 Correct 48 ms 32904 KB Output is correct
45 Correct 21 ms 10548 KB Output is correct
46 Correct 18 ms 6988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 320 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 316 KB Output is correct
9 Correct 1 ms 316 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 1 ms 316 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 324 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 320 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 212 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 26 ms 476 KB Output is correct
34 Correct 1 ms 316 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 3 ms 332 KB Output is correct
37 Correct 21 ms 456 KB Output is correct
38 Correct 2 ms 1356 KB Output is correct
39 Correct 2 ms 1572 KB Output is correct
40 Correct 30 ms 652 KB Output is correct
41 Correct 28 ms 460 KB Output is correct
42 Correct 1 ms 980 KB Output is correct
43 Correct 4 ms 2104 KB Output is correct
44 Correct 3 ms 2124 KB Output is correct
45 Correct 12 ms 468 KB Output is correct
46 Correct 19 ms 460 KB Output is correct
47 Correct 16 ms 556 KB Output is correct
48 Correct 12 ms 480 KB Output is correct
49 Correct 11 ms 460 KB Output is correct
50 Correct 14 ms 560 KB Output is correct
51 Correct 6 ms 808 KB Output is correct
52 Correct 1 ms 460 KB Output is correct
53 Correct 3 ms 468 KB Output is correct
54 Correct 16 ms 468 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 1 ms 320 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 316 KB Output is correct
9 Correct 1 ms 316 KB Output is correct
10 Correct 1 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 340 KB Output is correct
13 Correct 1 ms 340 KB Output is correct
14 Correct 1 ms 340 KB Output is correct
15 Correct 1 ms 340 KB Output is correct
16 Correct 1 ms 316 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 324 KB Output is correct
19 Correct 1 ms 340 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 320 KB Output is correct
23 Correct 1 ms 212 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 212 KB Output is correct
26 Correct 1 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 1 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 340 KB Output is correct
33 Correct 26 ms 476 KB Output is correct
34 Correct 1 ms 316 KB Output is correct
35 Correct 1 ms 340 KB Output is correct
36 Correct 3 ms 332 KB Output is correct
37 Correct 21 ms 456 KB Output is correct
38 Correct 2 ms 1356 KB Output is correct
39 Correct 2 ms 1572 KB Output is correct
40 Correct 30 ms 652 KB Output is correct
41 Correct 28 ms 460 KB Output is correct
42 Correct 1 ms 980 KB Output is correct
43 Correct 4 ms 2104 KB Output is correct
44 Correct 3 ms 2124 KB Output is correct
45 Correct 12 ms 468 KB Output is correct
46 Correct 19 ms 460 KB Output is correct
47 Correct 16 ms 556 KB Output is correct
48 Correct 12 ms 480 KB Output is correct
49 Correct 11 ms 460 KB Output is correct
50 Correct 14 ms 560 KB Output is correct
51 Correct 6 ms 808 KB Output is correct
52 Correct 1 ms 460 KB Output is correct
53 Correct 3 ms 468 KB Output is correct
54 Correct 16 ms 468 KB Output is correct
55 Correct 82 ms 596 KB Output is correct
56 Correct 22 ms 468 KB Output is correct
57 Correct 1 ms 596 KB Output is correct
58 Correct 51 ms 468 KB Output is correct
59 Correct 3 ms 2112 KB Output is correct
60 Correct 85 ms 712 KB Output is correct
61 Correct 70 ms 664 KB Output is correct
62 Correct 2 ms 1364 KB Output is correct
63 Correct 5 ms 2792 KB Output is correct
64 Correct 5 ms 3348 KB Output is correct
65 Correct 39 ms 920 KB Output is correct
66 Correct 60 ms 920 KB Output is correct
67 Correct 46 ms 740 KB Output is correct
68 Correct 35 ms 596 KB Output is correct
69 Correct 36 ms 784 KB Output is correct
70 Correct 36 ms 960 KB Output is correct
71 Correct 31 ms 1592 KB Output is correct
72 Correct 45 ms 1056 KB Output is correct
73 Correct 69 ms 852 KB Output is correct
74 Correct 4 ms 724 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Correct 1 ms 316 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 316 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 328 KB Output is correct
18 Correct 1 ms 320 KB Output is correct
19 Correct 26 ms 488 KB Output is correct
20 Correct 16 ms 468 KB Output is correct
21 Correct 3 ms 1576 KB Output is correct
22 Correct 30 ms 468 KB Output is correct
23 Correct 32 ms 480 KB Output is correct
24 Correct 12 ms 536 KB Output is correct
25 Correct 19 ms 516 KB Output is correct
26 Correct 1 ms 468 KB Output is correct
27 Correct 2 ms 468 KB Output is correct
28 Correct 13 ms 536 KB Output is correct
29 Correct 82 ms 656 KB Output is correct
30 Correct 24 ms 424 KB Output is correct
31 Correct 5 ms 2112 KB Output is correct
32 Correct 82 ms 748 KB Output is correct
33 Correct 70 ms 596 KB Output is correct
34 Correct 37 ms 872 KB Output is correct
35 Correct 72 ms 968 KB Output is correct
36 Correct 55 ms 1080 KB Output is correct
37 Correct 73 ms 896 KB Output is correct
38 Correct 4 ms 724 KB Output is correct
39 Correct 989 ms 2132 KB Output is correct
40 Correct 32 ms 596 KB Output is correct
41 Correct 22 ms 996 KB Output is correct
42 Correct 129 ms 752 KB Output is correct
43 Correct 94 ms 884 KB Output is correct
44 Correct 171 ms 1444 KB Output is correct
45 Correct 213 ms 1628 KB Output is correct
46 Correct 51 ms 36088 KB Output is correct
47 Correct 853 ms 2356 KB Output is correct
48 Correct 703 ms 2200 KB Output is correct
49 Correct 212 ms 4712 KB Output is correct
50 Correct 419 ms 4700 KB Output is correct
51 Correct 666 ms 3624 KB Output is correct
52 Correct 476 ms 2780 KB Output is correct
53 Correct 772 ms 2412 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 1 ms 212 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 0 ms 212 KB Output is correct
58 Correct 1 ms 320 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 212 KB Output is correct
61 Correct 1 ms 316 KB Output is correct
62 Correct 1 ms 316 KB Output is correct
63 Correct 1 ms 212 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 1 ms 316 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 1 ms 324 KB Output is correct
72 Correct 1 ms 340 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 1 ms 212 KB Output is correct
75 Correct 1 ms 320 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 1 ms 212 KB Output is correct
78 Correct 1 ms 212 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 1 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 0 ms 212 KB Output is correct
90 Correct 1 ms 212 KB Output is correct
91 Correct 1 ms 324 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 1 ms 340 KB Output is correct
95 Correct 1 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 1 ms 212 KB Output is correct
98 Correct 0 ms 212 KB Output is correct
99 Correct 1 ms 340 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 1 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 324 KB Output is correct
108 Correct 1 ms 320 KB Output is correct
109 Correct 0 ms 256 KB Output is correct
110 Correct 4 ms 392 KB Output is correct
111 Correct 3 ms 1348 KB Output is correct
112 Correct 2 ms 1456 KB Output is correct
113 Correct 1 ms 980 KB Output is correct
114 Correct 4 ms 2124 KB Output is correct
115 Correct 3 ms 2120 KB Output is correct
116 Correct 6 ms 808 KB Output is correct
117 Correct 2 ms 468 KB Output is correct
118 Correct 3 ms 448 KB Output is correct
119 Correct 1 ms 596 KB Output is correct
120 Correct 5 ms 2108 KB Output is correct
121 Correct 2 ms 1396 KB Output is correct
122 Correct 6 ms 2748 KB Output is correct
123 Correct 5 ms 3268 KB Output is correct
124 Correct 13 ms 6424 KB Output is correct
125 Correct 25 ms 14260 KB Output is correct
126 Correct 48 ms 36172 KB Output is correct
127 Correct 29 ms 19912 KB Output is correct
128 Correct 74 ms 37464 KB Output is correct
129 Correct 48 ms 32904 KB Output is correct
130 Correct 21 ms 10548 KB Output is correct
131 Correct 18 ms 6988 KB Output is correct
132 Correct 26 ms 476 KB Output is correct
133 Correct 1 ms 316 KB Output is correct
134 Correct 1 ms 340 KB Output is correct
135 Correct 3 ms 332 KB Output is correct
136 Correct 21 ms 456 KB Output is correct
137 Correct 2 ms 1356 KB Output is correct
138 Correct 2 ms 1572 KB Output is correct
139 Correct 30 ms 652 KB Output is correct
140 Correct 28 ms 460 KB Output is correct
141 Correct 1 ms 980 KB Output is correct
142 Correct 4 ms 2104 KB Output is correct
143 Correct 3 ms 2124 KB Output is correct
144 Correct 12 ms 468 KB Output is correct
145 Correct 19 ms 460 KB Output is correct
146 Correct 16 ms 556 KB Output is correct
147 Correct 12 ms 480 KB Output is correct
148 Correct 11 ms 460 KB Output is correct
149 Correct 14 ms 560 KB Output is correct
150 Correct 6 ms 808 KB Output is correct
151 Correct 1 ms 460 KB Output is correct
152 Correct 3 ms 468 KB Output is correct
153 Correct 16 ms 468 KB Output is correct
154 Correct 82 ms 596 KB Output is correct
155 Correct 22 ms 468 KB Output is correct
156 Correct 1 ms 596 KB Output is correct
157 Correct 51 ms 468 KB Output is correct
158 Correct 3 ms 2112 KB Output is correct
159 Correct 85 ms 712 KB Output is correct
160 Correct 70 ms 664 KB Output is correct
161 Correct 2 ms 1364 KB Output is correct
162 Correct 5 ms 2792 KB Output is correct
163 Correct 5 ms 3348 KB Output is correct
164 Correct 39 ms 920 KB Output is correct
165 Correct 60 ms 920 KB Output is correct
166 Correct 46 ms 740 KB Output is correct
167 Correct 35 ms 596 KB Output is correct
168 Correct 36 ms 784 KB Output is correct
169 Correct 36 ms 960 KB Output is correct
170 Correct 31 ms 1592 KB Output is correct
171 Correct 45 ms 1056 KB Output is correct
172 Correct 69 ms 852 KB Output is correct
173 Correct 4 ms 724 KB Output is correct
174 Correct 24 ms 644 KB Output is correct
175 Correct 117 ms 1060 KB Output is correct
176 Correct 115 ms 1692 KB Output is correct
177 Correct 285 ms 1556 KB Output is correct
178 Correct 36 ms 1876 KB Output is correct
179 Correct 199 ms 2320 KB Output is correct
180 Correct 360 ms 2708 KB Output is correct
181 Correct 384 ms 3792 KB Output is correct
182 Correct 430 ms 7772 KB Output is correct
183 Correct 452 ms 13688 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Correct 1 ms 316 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 316 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 328 KB Output is correct
18 Correct 1 ms 320 KB Output is correct
19 Correct 26 ms 488 KB Output is correct
20 Correct 16 ms 468 KB Output is correct
21 Correct 3 ms 1576 KB Output is correct
22 Correct 30 ms 468 KB Output is correct
23 Correct 32 ms 480 KB Output is correct
24 Correct 12 ms 536 KB Output is correct
25 Correct 19 ms 516 KB Output is correct
26 Correct 1 ms 468 KB Output is correct
27 Correct 2 ms 468 KB Output is correct
28 Correct 13 ms 536 KB Output is correct
29 Correct 82 ms 656 KB Output is correct
30 Correct 24 ms 424 KB Output is correct
31 Correct 5 ms 2112 KB Output is correct
32 Correct 82 ms 748 KB Output is correct
33 Correct 70 ms 596 KB Output is correct
34 Correct 37 ms 872 KB Output is correct
35 Correct 72 ms 968 KB Output is correct
36 Correct 55 ms 1080 KB Output is correct
37 Correct 73 ms 896 KB Output is correct
38 Correct 4 ms 724 KB Output is correct
39 Correct 989 ms 2132 KB Output is correct
40 Correct 32 ms 596 KB Output is correct
41 Correct 22 ms 996 KB Output is correct
42 Correct 129 ms 752 KB Output is correct
43 Correct 94 ms 884 KB Output is correct
44 Correct 171 ms 1444 KB Output is correct
45 Correct 213 ms 1628 KB Output is correct
46 Correct 51 ms 36088 KB Output is correct
47 Correct 853 ms 2356 KB Output is correct
48 Correct 703 ms 2200 KB Output is correct
49 Correct 212 ms 4712 KB Output is correct
50 Correct 419 ms 4700 KB Output is correct
51 Correct 666 ms 3624 KB Output is correct
52 Correct 476 ms 2780 KB Output is correct
53 Correct 772 ms 2412 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 1 ms 212 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 0 ms 212 KB Output is correct
58 Correct 1 ms 320 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 212 KB Output is correct
61 Correct 1 ms 316 KB Output is correct
62 Correct 1 ms 316 KB Output is correct
63 Correct 1 ms 212 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 1 ms 316 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 1 ms 324 KB Output is correct
72 Correct 1 ms 340 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 1 ms 212 KB Output is correct
75 Correct 1 ms 320 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 1 ms 212 KB Output is correct
78 Correct 1 ms 212 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 1 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 0 ms 212 KB Output is correct
90 Correct 1 ms 212 KB Output is correct
91 Correct 1 ms 324 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 1 ms 340 KB Output is correct
95 Correct 1 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 1 ms 212 KB Output is correct
98 Correct 0 ms 212 KB Output is correct
99 Correct 1 ms 340 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 1 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 324 KB Output is correct
108 Correct 1 ms 320 KB Output is correct
109 Correct 0 ms 256 KB Output is correct
110 Correct 4 ms 392 KB Output is correct
111 Correct 3 ms 1348 KB Output is correct
112 Correct 2 ms 1456 KB Output is correct
113 Correct 1 ms 980 KB Output is correct
114 Correct 4 ms 2124 KB Output is correct
115 Correct 3 ms 2120 KB Output is correct
116 Correct 6 ms 808 KB Output is correct
117 Correct 2 ms 468 KB Output is correct
118 Correct 3 ms 448 KB Output is correct
119 Correct 1 ms 596 KB Output is correct
120 Correct 5 ms 2108 KB Output is correct
121 Correct 2 ms 1396 KB Output is correct
122 Correct 6 ms 2748 KB Output is correct
123 Correct 5 ms 3268 KB Output is correct
124 Correct 13 ms 6424 KB Output is correct
125 Correct 25 ms 14260 KB Output is correct
126 Correct 48 ms 36172 KB Output is correct
127 Correct 29 ms 19912 KB Output is correct
128 Correct 74 ms 37464 KB Output is correct
129 Correct 48 ms 32904 KB Output is correct
130 Correct 21 ms 10548 KB Output is correct
131 Correct 18 ms 6988 KB Output is correct
132 Correct 26 ms 476 KB Output is correct
133 Correct 1 ms 316 KB Output is correct
134 Correct 1 ms 340 KB Output is correct
135 Correct 3 ms 332 KB Output is correct
136 Correct 21 ms 456 KB Output is correct
137 Correct 2 ms 1356 KB Output is correct
138 Correct 2 ms 1572 KB Output is correct
139 Correct 30 ms 652 KB Output is correct
140 Correct 28 ms 460 KB Output is correct
141 Correct 1 ms 980 KB Output is correct
142 Correct 4 ms 2104 KB Output is correct
143 Correct 3 ms 2124 KB Output is correct
144 Correct 12 ms 468 KB Output is correct
145 Correct 19 ms 460 KB Output is correct
146 Correct 16 ms 556 KB Output is correct
147 Correct 12 ms 480 KB Output is correct
148 Correct 11 ms 460 KB Output is correct
149 Correct 14 ms 560 KB Output is correct
150 Correct 6 ms 808 KB Output is correct
151 Correct 1 ms 460 KB Output is correct
152 Correct 3 ms 468 KB Output is correct
153 Correct 16 ms 468 KB Output is correct
154 Correct 82 ms 596 KB Output is correct
155 Correct 22 ms 468 KB Output is correct
156 Correct 1 ms 596 KB Output is correct
157 Correct 51 ms 468 KB Output is correct
158 Correct 3 ms 2112 KB Output is correct
159 Correct 85 ms 712 KB Output is correct
160 Correct 70 ms 664 KB Output is correct
161 Correct 2 ms 1364 KB Output is correct
162 Correct 5 ms 2792 KB Output is correct
163 Correct 5 ms 3348 KB Output is correct
164 Correct 39 ms 920 KB Output is correct
165 Correct 60 ms 920 KB Output is correct
166 Correct 46 ms 740 KB Output is correct
167 Correct 35 ms 596 KB Output is correct
168 Correct 36 ms 784 KB Output is correct
169 Correct 36 ms 960 KB Output is correct
170 Correct 31 ms 1592 KB Output is correct
171 Correct 45 ms 1056 KB Output is correct
172 Correct 69 ms 852 KB Output is correct
173 Correct 4 ms 724 KB Output is correct
174 Correct 24 ms 644 KB Output is correct
175 Correct 117 ms 1060 KB Output is correct
176 Correct 115 ms 1692 KB Output is correct
177 Correct 285 ms 1556 KB Output is correct
178 Correct 36 ms 1876 KB Output is correct
179 Correct 199 ms 2320 KB Output is correct
180 Correct 360 ms 2708 KB Output is correct
181 Correct 384 ms 3792 KB Output is correct
182 Correct 430 ms 7772 KB Output is correct
183 Correct 452 ms 13688 KB Output is correct
184 Correct 1848 ms 3060 KB Output is correct
185 Correct 153 ms 1924 KB Output is correct
186 Correct 27 ms 13632 KB Output is correct
187 Correct 108 ms 5560 KB Output is correct
188 Correct 76 ms 44416 KB Output is correct
189 Correct 1361 ms 3632 KB Output is correct
190 Correct 607 ms 2960 KB Output is correct
191 Correct 21 ms 13744 KB Output is correct
192 Correct 197 ms 108412 KB Output is correct
193 Correct 81 ms 45528 KB Output is correct
194 Correct 670 ms 8800 KB Output is correct
195 Correct 878 ms 8800 KB Output is correct
196 Correct 714 ms 3044 KB Output is correct
197 Correct 350 ms 4516 KB Output is correct
198 Correct 388 ms 6260 KB Output is correct
199 Correct 838 ms 10456 KB Output is correct
200 Correct 687 ms 5580 KB Output is correct
201 Correct 1194 ms 4248 KB Output is correct
202 Correct 1897 ms 3416 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 316 KB Output is correct
3 Correct 1 ms 316 KB Output is correct
4 Correct 1 ms 340 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 1 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 1 ms 212 KB Output is correct
13 Correct 1 ms 316 KB Output is correct
14 Correct 1 ms 212 KB Output is correct
15 Correct 1 ms 212 KB Output is correct
16 Correct 1 ms 212 KB Output is correct
17 Correct 1 ms 328 KB Output is correct
18 Correct 1 ms 320 KB Output is correct
19 Correct 26 ms 488 KB Output is correct
20 Correct 16 ms 468 KB Output is correct
21 Correct 3 ms 1576 KB Output is correct
22 Correct 30 ms 468 KB Output is correct
23 Correct 32 ms 480 KB Output is correct
24 Correct 12 ms 536 KB Output is correct
25 Correct 19 ms 516 KB Output is correct
26 Correct 1 ms 468 KB Output is correct
27 Correct 2 ms 468 KB Output is correct
28 Correct 13 ms 536 KB Output is correct
29 Correct 82 ms 656 KB Output is correct
30 Correct 24 ms 424 KB Output is correct
31 Correct 5 ms 2112 KB Output is correct
32 Correct 82 ms 748 KB Output is correct
33 Correct 70 ms 596 KB Output is correct
34 Correct 37 ms 872 KB Output is correct
35 Correct 72 ms 968 KB Output is correct
36 Correct 55 ms 1080 KB Output is correct
37 Correct 73 ms 896 KB Output is correct
38 Correct 4 ms 724 KB Output is correct
39 Correct 989 ms 2132 KB Output is correct
40 Correct 32 ms 596 KB Output is correct
41 Correct 22 ms 996 KB Output is correct
42 Correct 129 ms 752 KB Output is correct
43 Correct 94 ms 884 KB Output is correct
44 Correct 171 ms 1444 KB Output is correct
45 Correct 213 ms 1628 KB Output is correct
46 Correct 51 ms 36088 KB Output is correct
47 Correct 853 ms 2356 KB Output is correct
48 Correct 703 ms 2200 KB Output is correct
49 Correct 212 ms 4712 KB Output is correct
50 Correct 419 ms 4700 KB Output is correct
51 Correct 666 ms 3624 KB Output is correct
52 Correct 476 ms 2780 KB Output is correct
53 Correct 772 ms 2412 KB Output is correct
54 Correct 1 ms 212 KB Output is correct
55 Correct 1 ms 212 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 0 ms 212 KB Output is correct
58 Correct 1 ms 320 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 1 ms 212 KB Output is correct
61 Correct 1 ms 316 KB Output is correct
62 Correct 1 ms 316 KB Output is correct
63 Correct 1 ms 212 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 1 ms 340 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 340 KB Output is correct
68 Correct 1 ms 340 KB Output is correct
69 Correct 1 ms 316 KB Output is correct
70 Correct 1 ms 212 KB Output is correct
71 Correct 1 ms 324 KB Output is correct
72 Correct 1 ms 340 KB Output is correct
73 Correct 1 ms 212 KB Output is correct
74 Correct 1 ms 212 KB Output is correct
75 Correct 1 ms 320 KB Output is correct
76 Correct 1 ms 212 KB Output is correct
77 Correct 1 ms 212 KB Output is correct
78 Correct 1 ms 212 KB Output is correct
79 Correct 1 ms 212 KB Output is correct
80 Correct 1 ms 212 KB Output is correct
81 Correct 1 ms 212 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 1 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 1 ms 340 KB Output is correct
86 Correct 1 ms 212 KB Output is correct
87 Correct 1 ms 212 KB Output is correct
88 Correct 1 ms 212 KB Output is correct
89 Correct 0 ms 212 KB Output is correct
90 Correct 1 ms 212 KB Output is correct
91 Correct 1 ms 324 KB Output is correct
92 Correct 1 ms 340 KB Output is correct
93 Correct 1 ms 212 KB Output is correct
94 Correct 1 ms 340 KB Output is correct
95 Correct 1 ms 340 KB Output is correct
96 Correct 1 ms 340 KB Output is correct
97 Correct 1 ms 212 KB Output is correct
98 Correct 0 ms 212 KB Output is correct
99 Correct 1 ms 340 KB Output is correct
100 Correct 1 ms 212 KB Output is correct
101 Correct 1 ms 212 KB Output is correct
102 Correct 1 ms 212 KB Output is correct
103 Correct 1 ms 212 KB Output is correct
104 Correct 1 ms 212 KB Output is correct
105 Correct 1 ms 212 KB Output is correct
106 Correct 1 ms 212 KB Output is correct
107 Correct 1 ms 324 KB Output is correct
108 Correct 1 ms 320 KB Output is correct
109 Correct 0 ms 256 KB Output is correct
110 Correct 4 ms 392 KB Output is correct
111 Correct 3 ms 1348 KB Output is correct
112 Correct 2 ms 1456 KB Output is correct
113 Correct 1 ms 980 KB Output is correct
114 Correct 4 ms 2124 KB Output is correct
115 Correct 3 ms 2120 KB Output is correct
116 Correct 6 ms 808 KB Output is correct
117 Correct 2 ms 468 KB Output is correct
118 Correct 3 ms 448 KB Output is correct
119 Correct 1 ms 596 KB Output is correct
120 Correct 5 ms 2108 KB Output is correct
121 Correct 2 ms 1396 KB Output is correct
122 Correct 6 ms 2748 KB Output is correct
123 Correct 5 ms 3268 KB Output is correct
124 Correct 13 ms 6424 KB Output is correct
125 Correct 25 ms 14260 KB Output is correct
126 Correct 48 ms 36172 KB Output is correct
127 Correct 29 ms 19912 KB Output is correct
128 Correct 74 ms 37464 KB Output is correct
129 Correct 48 ms 32904 KB Output is correct
130 Correct 21 ms 10548 KB Output is correct
131 Correct 18 ms 6988 KB Output is correct
132 Correct 26 ms 476 KB Output is correct
133 Correct 1 ms 316 KB Output is correct
134 Correct 1 ms 340 KB Output is correct
135 Correct 3 ms 332 KB Output is correct
136 Correct 21 ms 456 KB Output is correct
137 Correct 2 ms 1356 KB Output is correct
138 Correct 2 ms 1572 KB Output is correct
139 Correct 30 ms 652 KB Output is correct
140 Correct 28 ms 460 KB Output is correct
141 Correct 1 ms 980 KB Output is correct
142 Correct 4 ms 2104 KB Output is correct
143 Correct 3 ms 2124 KB Output is correct
144 Correct 12 ms 468 KB Output is correct
145 Correct 19 ms 460 KB Output is correct
146 Correct 16 ms 556 KB Output is correct
147 Correct 12 ms 480 KB Output is correct
148 Correct 11 ms 460 KB Output is correct
149 Correct 14 ms 560 KB Output is correct
150 Correct 6 ms 808 KB Output is correct
151 Correct 1 ms 460 KB Output is correct
152 Correct 3 ms 468 KB Output is correct
153 Correct 16 ms 468 KB Output is correct
154 Correct 82 ms 596 KB Output is correct
155 Correct 22 ms 468 KB Output is correct
156 Correct 1 ms 596 KB Output is correct
157 Correct 51 ms 468 KB Output is correct
158 Correct 3 ms 2112 KB Output is correct
159 Correct 85 ms 712 KB Output is correct
160 Correct 70 ms 664 KB Output is correct
161 Correct 2 ms 1364 KB Output is correct
162 Correct 5 ms 2792 KB Output is correct
163 Correct 5 ms 3348 KB Output is correct
164 Correct 39 ms 920 KB Output is correct
165 Correct 60 ms 920 KB Output is correct
166 Correct 46 ms 740 KB Output is correct
167 Correct 35 ms 596 KB Output is correct
168 Correct 36 ms 784 KB Output is correct
169 Correct 36 ms 960 KB Output is correct
170 Correct 31 ms 1592 KB Output is correct
171 Correct 45 ms 1056 KB Output is correct
172 Correct 69 ms 852 KB Output is correct
173 Correct 4 ms 724 KB Output is correct
174 Correct 24 ms 644 KB Output is correct
175 Correct 117 ms 1060 KB Output is correct
176 Correct 115 ms 1692 KB Output is correct
177 Correct 285 ms 1556 KB Output is correct
178 Correct 36 ms 1876 KB Output is correct
179 Correct 199 ms 2320 KB Output is correct
180 Correct 360 ms 2708 KB Output is correct
181 Correct 384 ms 3792 KB Output is correct
182 Correct 430 ms 7772 KB Output is correct
183 Correct 452 ms 13688 KB Output is correct
184 Correct 1848 ms 3060 KB Output is correct
185 Correct 153 ms 1924 KB Output is correct
186 Correct 27 ms 13632 KB Output is correct
187 Correct 108 ms 5560 KB Output is correct
188 Correct 76 ms 44416 KB Output is correct
189 Correct 1361 ms 3632 KB Output is correct
190 Correct 607 ms 2960 KB Output is correct
191 Correct 21 ms 13744 KB Output is correct
192 Correct 197 ms 108412 KB Output is correct
193 Correct 81 ms 45528 KB Output is correct
194 Correct 670 ms 8800 KB Output is correct
195 Correct 878 ms 8800 KB Output is correct
196 Correct 714 ms 3044 KB Output is correct
197 Correct 350 ms 4516 KB Output is correct
198 Correct 388 ms 6260 KB Output is correct
199 Correct 838 ms 10456 KB Output is correct
200 Correct 687 ms 5580 KB Output is correct
201 Correct 1194 ms 4248 KB Output is correct
202 Correct 1897 ms 3416 KB Output is correct
203 Execution timed out 2059 ms 5536 KB Time limit exceeded
204 Halted 0 ms 0 KB -