Submission #922041

# Submission time Handle Problem Language Result Execution time Memory
922041 2024-02-04T20:46:13 Z SUNWOOOOOOOO Maze (JOI23_ho_t3) C++17
86 / 100
2000 ms 172452 KB
#include <bits/stdc++.h>
using namespace std;
using pint = array <int, 2>;
const int INF = 1e9;
vector <vector <int>> ans, G;
vector <vector <pint>> Gelm;
int r, c, n, gno = 0, dx[4] = {0, 0, 1, -1}, dy[4] = {1, -1, 0, 0};
vector <int> Gvst;
vector <string> A;
deque <pint> dq;
pint s, g;

struct segtree { // +1
    int mxX = 1, mxY = 1;
    vector <vector <pint>> node;
    void init(){
        mxX = r;
        mxY = c;
        node.resize(2 * mxX + 1, vector <pint> (2 * mxY + 1, (pint) {INF, INF}));
        for (int i = 0; i < r; i++){
            for (int j = 0; j < c; j++){
                if (A[i][j] != '#') continue;
                node[i + mxX][j + mxY] = {i, j};
            }
        }
        for (int i = mxX; i < 2 * mxX; i++){
            for (int j = mxY - 1; j > 0; j--){
                node[i][j] = min(node[i][2 * j], node[i][2 * j + 1]);
            }
        }
        for (int i = mxX - 1; i > 0; i--){
            for (int j = 1; j < 2 * mxY; j++){
                node[i][j] = min(node[2 * i][j], node[2 * i + 1][j]);
            }
        }
    }
    void update(int x, int y, pint val){
        x++, y++;
        x += mxX - 1, y += mxY - 1;
        node[x][y] = val;
        for (int cy = y / 2; cy > 0; cy /= 2){
            node[x][cy] = min(node[x][2 * cy], node[x][2 * cy + 1]);
        }
        for (int cx = x / 2; cx > 0; cx /= 2){
            for (int cy = y; cy > 0; cy /= 2){
                node[cx][cy] = min(node[cx * 2][cy], node[cx * 2 + 1][cy]);
            }
        }
    }
    pint query(int L1, int R1, int L2, int R2){
        L1++, R1++, L2++, R2++;
        pint ret = {INF, INF};
        for (L1 += mxX - 1, R1 += mxX - 1; L1 <= R1; L1 /= 2, R1 /= 2){
            if (L1 % 2 == 1){
                for (int cL2 = L2 + mxY - 1, cR2 = R2 + mxY - 1; cL2 <= cR2; cL2 /= 2, cR2 /= 2){
                    if (cL2 % 2 == 1) ret = min(ret, node[L1][cL2++]);
                    if (cR2 % 2 == 0) ret = min(ret, node[L1][cR2--]);
                }
                L1++;
            }
            if (R1 % 2 == 0){
                for (int cL2 = L2 + mxY - 1, cR2 = R2 + mxY - 1; cL2 <= cR2; cL2 /= 2, cR2 /= 2){
                    if (cL2 % 2 == 1) ret = min(ret, node[R1][cL2++]);
                    if (cR2 % 2 == 0) ret = min(ret, node[R1][cR2--]);
                }
                R1--;
            }
        }
        return ret;
    }
} tree;

void val_up(int L1, int R1, int L2, int R2, int val){
    L1 = max(L1, 0), R1 = min(R1, r - 1), L2 = max(L2, 0), R2 = min(R2, c - 1);
    while (1){
        pint ret = tree.query(L1, R1, L2, R2);
        if (ret == (pint) {INF, INF}) break;
        ans[ret[0]][ret[1]] = val;
        tree.update(ret[0], ret[1], (pint) {INF, INF});
        dq.push_back(ret);
    }
}

int main()
{
    scanf("%d %d %d", &r, &c, &n);
    A.resize(r);
    ans.resize(r, vector <int> (c, -1));
    G.resize(r, vector <int> (c, -1));
    scanf("%d %d %d %d", &s[0], &s[1], &g[0], &g[1]);
    s[0]--, s[1]--, g[0]--, g[1]--;
    for (int i = 0; i < r; i++) cin >> A[i];

    for (int i = 0; i < r; i++){
        for (int j = 0; j < c; j++){
            if (G[i][j] != -1) continue;
            if (A[i][j] == '#') continue;
            Gelm.push_back(vector <pint> {});
            queue <pint> q;
            G[i][j] = gno;
            Gelm[gno].push_back({i, j});
            q.push({i, j});
            while (!q.empty()){
                pint now = q.front(); q.pop();
                for (int k : {0, 1, 2, 3}){
                    int nx = now[0] + dx[k], ny = now[1] + dy[k];
                    if (nx < 0 || ny < 0 || nx >= r || ny >= c) continue;
                    if (G[nx][ny] != -1) continue;
                    if (A[nx][ny] == '#') continue;
                    G[nx][ny] = gno;
                    Gelm[gno].push_back({nx, ny});
                    q.push({nx, ny});
                }
            }
            gno++;
        }
    }
    Gvst.resize(gno, 0);

    tree.init();
    ans[s[0]][s[1]] = 0;
    dq.push_front(s);
    while (!dq.empty()){
        pint now = dq.front(); dq.pop_front();
        for (int k : {0, 1, 2, 3}){
            int nx = now[0] + dx[k], ny = now[1] + dy[k];
            if (nx < 0 || ny < 0 || nx >= r || ny >= c) continue;
            if (A[nx][ny] == '#' || Gvst[G[nx][ny]] == 1) continue;
            for (pint j : Gelm[G[nx][ny]]){
                if (ans[j[0]][j[1]] == -1){
                    ans[j[0]][j[1]] = ans[now[0]][now[1]];
                    dq.push_front(j);
                }
            }
            Gvst[G[nx][ny]] = 1;
        }
        val_up(now[0] - n, now[0] + n, now[1] - n + 1, now[1] + n - 1, ans[now[0]][now[1]] + 1);
        val_up(now[0] - n + 1, now[0] + n - 1, now[1] + n, now[1] + n, ans[now[0]][now[1]] + 1);
        val_up(now[0] - n + 1, now[0] + n - 1, now[1] - n, now[1] - n, ans[now[0]][now[1]] + 1);
    }

    printf("%d\n", ans[g[0]][g[1]]);

    return 0;
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:86:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   86 |     scanf("%d %d %d", &r, &c, &n);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Main.cpp:90:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   90 |     scanf("%d %d %d %d", &s[0], &s[1], &g[0], &g[1]);
      |     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 600 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 344 KB Output is correct
18 Correct 1 ms 344 KB Output is correct
19 Correct 21 ms 2908 KB Output is correct
20 Correct 10 ms 3744 KB Output is correct
21 Correct 9 ms 3800 KB Output is correct
22 Correct 24 ms 3416 KB Output is correct
23 Correct 26 ms 2904 KB Output is correct
24 Correct 9 ms 5228 KB Output is correct
25 Correct 13 ms 4716 KB Output is correct
26 Correct 19 ms 3416 KB Output is correct
27 Correct 21 ms 3416 KB Output is correct
28 Correct 22 ms 2904 KB Output is correct
29 Correct 58 ms 6744 KB Output is correct
30 Correct 16 ms 4500 KB Output is correct
31 Correct 21 ms 8776 KB Output is correct
32 Correct 54 ms 7828 KB Output is correct
33 Correct 61 ms 6636 KB Output is correct
34 Correct 20 ms 12812 KB Output is correct
35 Correct 32 ms 11532 KB Output is correct
36 Correct 54 ms 7828 KB Output is correct
37 Correct 56 ms 7828 KB Output is correct
38 Correct 57 ms 6664 KB Output is correct
39 Correct 832 ms 64260 KB Output is correct
40 Correct 56 ms 9160 KB Output is correct
41 Correct 30 ms 16260 KB Output is correct
42 Correct 97 ms 10652 KB Output is correct
43 Correct 67 ms 16504 KB Output is correct
44 Correct 217 ms 40740 KB Output is correct
45 Correct 285 ms 43476 KB Output is correct
46 Correct 323 ms 85420 KB Output is correct
47 Correct 682 ms 76028 KB Output is correct
48 Correct 851 ms 62600 KB Output is correct
49 Correct 188 ms 125296 KB Output is correct
50 Correct 327 ms 111724 KB Output is correct
51 Correct 727 ms 74448 KB Output is correct
52 Correct 788 ms 76792 KB Output is correct
53 Correct 796 ms 62528 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 344 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 500 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 344 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 344 KB Output is correct
21 Correct 0 ms 344 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 1 ms 344 KB Output is correct
24 Correct 0 ms 344 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 0 ms 344 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 600 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 344 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 0 ms 344 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 1 ms 344 KB Output is correct
16 Correct 1 ms 344 KB Output is correct
17 Correct 0 ms 344 KB Output is correct
18 Correct 1 ms 344 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 0 ms 344 KB Output is correct
21 Correct 1 ms 344 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 1 ms 344 KB Output is correct
24 Correct 1 ms 348 KB Output is correct
25 Correct 16 ms 2136 KB Output is correct
26 Correct 21 ms 3288 KB Output is correct
27 Correct 8 ms 3804 KB Output is correct
28 Correct 16 ms 3804 KB Output is correct
29 Correct 33 ms 3672 KB Output is correct
30 Correct 33 ms 3284 KB Output is correct
31 Correct 30 ms 3416 KB Output is correct
32 Correct 20 ms 3472 KB Output is correct
33 Correct 21 ms 3416 KB Output is correct
34 Correct 82 ms 7120 KB Output is correct
35 Correct 21 ms 8912 KB Output is correct
36 Correct 55 ms 8916 KB Output is correct
37 Correct 101 ms 8872 KB Output is correct
38 Correct 113 ms 7764 KB Output is correct
39 Correct 292 ms 23228 KB Output is correct
40 Correct 825 ms 67504 KB Output is correct
41 Correct 328 ms 86948 KB Output is correct
42 Correct 583 ms 85680 KB Output is correct
43 Correct 1105 ms 82820 KB Output is correct
44 Correct 1348 ms 74548 KB Output is correct
45 Correct 715 ms 77996 KB Output is correct
46 Correct 860 ms 77584 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 344 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 500 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 344 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 344 KB Output is correct
21 Correct 0 ms 344 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 1 ms 344 KB Output is correct
24 Correct 0 ms 344 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 0 ms 344 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 22 ms 2908 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 2 ms 600 KB Output is correct
36 Correct 16 ms 2136 KB Output is correct
37 Correct 10 ms 3744 KB Output is correct
38 Correct 18 ms 3288 KB Output is correct
39 Correct 9 ms 3800 KB Output is correct
40 Correct 20 ms 3416 KB Output is correct
41 Correct 23 ms 2904 KB Output is correct
42 Correct 16 ms 3800 KB Output is correct
43 Correct 29 ms 3672 KB Output is correct
44 Correct 32 ms 3416 KB Output is correct
45 Correct 8 ms 5228 KB Output is correct
46 Correct 14 ms 4720 KB Output is correct
47 Correct 16 ms 4756 KB Output is correct
48 Correct 27 ms 3416 KB Output is correct
49 Correct 23 ms 3416 KB Output is correct
50 Correct 33 ms 3416 KB Output is correct
51 Correct 29 ms 3416 KB Output is correct
52 Correct 19 ms 3420 KB Output is correct
53 Correct 21 ms 3420 KB Output is correct
54 Correct 26 ms 2904 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 0 ms 344 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 500 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 1 ms 344 KB Output is correct
11 Correct 1 ms 344 KB Output is correct
12 Correct 1 ms 348 KB Output is correct
13 Correct 1 ms 344 KB Output is correct
14 Correct 1 ms 344 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 0 ms 344 KB Output is correct
17 Correct 1 ms 344 KB Output is correct
18 Correct 0 ms 344 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 344 KB Output is correct
21 Correct 0 ms 344 KB Output is correct
22 Correct 1 ms 344 KB Output is correct
23 Correct 1 ms 344 KB Output is correct
24 Correct 0 ms 344 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 0 ms 344 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 1 ms 344 KB Output is correct
31 Correct 1 ms 344 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 22 ms 2908 KB Output is correct
34 Correct 1 ms 344 KB Output is correct
35 Correct 2 ms 600 KB Output is correct
36 Correct 16 ms 2136 KB Output is correct
37 Correct 10 ms 3744 KB Output is correct
38 Correct 18 ms 3288 KB Output is correct
39 Correct 9 ms 3800 KB Output is correct
40 Correct 20 ms 3416 KB Output is correct
41 Correct 23 ms 2904 KB Output is correct
42 Correct 16 ms 3800 KB Output is correct
43 Correct 29 ms 3672 KB Output is correct
44 Correct 32 ms 3416 KB Output is correct
45 Correct 8 ms 5228 KB Output is correct
46 Correct 14 ms 4720 KB Output is correct
47 Correct 16 ms 4756 KB Output is correct
48 Correct 27 ms 3416 KB Output is correct
49 Correct 23 ms 3416 KB Output is correct
50 Correct 33 ms 3416 KB Output is correct
51 Correct 29 ms 3416 KB Output is correct
52 Correct 19 ms 3420 KB Output is correct
53 Correct 21 ms 3420 KB Output is correct
54 Correct 26 ms 2904 KB Output is correct
55 Correct 59 ms 6744 KB Output is correct
56 Correct 16 ms 4500 KB Output is correct
57 Correct 86 ms 6896 KB Output is correct
58 Correct 58 ms 7444 KB Output is correct
59 Correct 23 ms 8912 KB Output is correct
60 Correct 59 ms 7828 KB Output is correct
61 Correct 67 ms 6736 KB Output is correct
62 Correct 54 ms 8912 KB Output is correct
63 Correct 97 ms 8660 KB Output is correct
64 Correct 115 ms 7756 KB Output is correct
65 Correct 21 ms 12812 KB Output is correct
66 Correct 33 ms 11536 KB Output is correct
67 Correct 41 ms 10412 KB Output is correct
68 Correct 78 ms 7980 KB Output is correct
69 Correct 83 ms 7828 KB Output is correct
70 Correct 86 ms 7828 KB Output is correct
71 Correct 88 ms 7920 KB Output is correct
72 Correct 51 ms 7852 KB Output is correct
73 Correct 57 ms 7828 KB Output is correct
74 Correct 56 ms 6672 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 600 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 344 KB Output is correct
18 Correct 1 ms 344 KB Output is correct
19 Correct 21 ms 2908 KB Output is correct
20 Correct 10 ms 3744 KB Output is correct
21 Correct 9 ms 3800 KB Output is correct
22 Correct 24 ms 3416 KB Output is correct
23 Correct 26 ms 2904 KB Output is correct
24 Correct 9 ms 5228 KB Output is correct
25 Correct 13 ms 4716 KB Output is correct
26 Correct 19 ms 3416 KB Output is correct
27 Correct 21 ms 3416 KB Output is correct
28 Correct 22 ms 2904 KB Output is correct
29 Correct 58 ms 6744 KB Output is correct
30 Correct 16 ms 4500 KB Output is correct
31 Correct 21 ms 8776 KB Output is correct
32 Correct 54 ms 7828 KB Output is correct
33 Correct 61 ms 6636 KB Output is correct
34 Correct 20 ms 12812 KB Output is correct
35 Correct 32 ms 11532 KB Output is correct
36 Correct 54 ms 7828 KB Output is correct
37 Correct 56 ms 7828 KB Output is correct
38 Correct 57 ms 6664 KB Output is correct
39 Correct 832 ms 64260 KB Output is correct
40 Correct 56 ms 9160 KB Output is correct
41 Correct 30 ms 16260 KB Output is correct
42 Correct 97 ms 10652 KB Output is correct
43 Correct 67 ms 16504 KB Output is correct
44 Correct 217 ms 40740 KB Output is correct
45 Correct 285 ms 43476 KB Output is correct
46 Correct 323 ms 85420 KB Output is correct
47 Correct 682 ms 76028 KB Output is correct
48 Correct 851 ms 62600 KB Output is correct
49 Correct 188 ms 125296 KB Output is correct
50 Correct 327 ms 111724 KB Output is correct
51 Correct 727 ms 74448 KB Output is correct
52 Correct 788 ms 76792 KB Output is correct
53 Correct 796 ms 62528 KB Output is correct
54 Correct 0 ms 344 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 1 ms 500 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 344 KB Output is correct
61 Correct 1 ms 344 KB Output is correct
62 Correct 1 ms 344 KB Output is correct
63 Correct 1 ms 344 KB Output is correct
64 Correct 1 ms 344 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 1 ms 344 KB Output is correct
67 Correct 1 ms 344 KB Output is correct
68 Correct 0 ms 344 KB Output is correct
69 Correct 0 ms 344 KB Output is correct
70 Correct 1 ms 344 KB Output is correct
71 Correct 0 ms 344 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 0 ms 344 KB Output is correct
75 Correct 1 ms 344 KB Output is correct
76 Correct 1 ms 344 KB Output is correct
77 Correct 0 ms 344 KB Output is correct
78 Correct 0 ms 344 KB Output is correct
79 Correct 0 ms 344 KB Output is correct
80 Correct 0 ms 344 KB Output is correct
81 Correct 1 ms 348 KB Output is correct
82 Correct 0 ms 344 KB Output is correct
83 Correct 1 ms 344 KB Output is correct
84 Correct 1 ms 344 KB Output is correct
85 Correct 1 ms 344 KB Output is correct
86 Correct 0 ms 600 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 344 KB Output is correct
89 Correct 0 ms 344 KB Output is correct
90 Correct 0 ms 344 KB Output is correct
91 Correct 1 ms 348 KB Output is correct
92 Correct 1 ms 344 KB Output is correct
93 Correct 1 ms 344 KB Output is correct
94 Correct 1 ms 344 KB Output is correct
95 Correct 1 ms 344 KB Output is correct
96 Correct 1 ms 344 KB Output is correct
97 Correct 1 ms 344 KB Output is correct
98 Correct 0 ms 344 KB Output is correct
99 Correct 1 ms 344 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 344 KB Output is correct
102 Correct 0 ms 344 KB Output is correct
103 Correct 1 ms 344 KB Output is correct
104 Correct 0 ms 344 KB Output is correct
105 Correct 0 ms 344 KB Output is correct
106 Correct 1 ms 344 KB Output is correct
107 Correct 1 ms 344 KB Output is correct
108 Correct 1 ms 344 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 16 ms 2136 KB Output is correct
111 Correct 21 ms 3288 KB Output is correct
112 Correct 8 ms 3804 KB Output is correct
113 Correct 16 ms 3804 KB Output is correct
114 Correct 33 ms 3672 KB Output is correct
115 Correct 33 ms 3284 KB Output is correct
116 Correct 30 ms 3416 KB Output is correct
117 Correct 20 ms 3472 KB Output is correct
118 Correct 21 ms 3416 KB Output is correct
119 Correct 82 ms 7120 KB Output is correct
120 Correct 21 ms 8912 KB Output is correct
121 Correct 55 ms 8916 KB Output is correct
122 Correct 101 ms 8872 KB Output is correct
123 Correct 113 ms 7764 KB Output is correct
124 Correct 292 ms 23228 KB Output is correct
125 Correct 825 ms 67504 KB Output is correct
126 Correct 328 ms 86948 KB Output is correct
127 Correct 583 ms 85680 KB Output is correct
128 Correct 1105 ms 82820 KB Output is correct
129 Correct 1348 ms 74548 KB Output is correct
130 Correct 715 ms 77996 KB Output is correct
131 Correct 860 ms 77584 KB Output is correct
132 Correct 22 ms 2908 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 2 ms 600 KB Output is correct
135 Correct 16 ms 2136 KB Output is correct
136 Correct 10 ms 3744 KB Output is correct
137 Correct 18 ms 3288 KB Output is correct
138 Correct 9 ms 3800 KB Output is correct
139 Correct 20 ms 3416 KB Output is correct
140 Correct 23 ms 2904 KB Output is correct
141 Correct 16 ms 3800 KB Output is correct
142 Correct 29 ms 3672 KB Output is correct
143 Correct 32 ms 3416 KB Output is correct
144 Correct 8 ms 5228 KB Output is correct
145 Correct 14 ms 4720 KB Output is correct
146 Correct 16 ms 4756 KB Output is correct
147 Correct 27 ms 3416 KB Output is correct
148 Correct 23 ms 3416 KB Output is correct
149 Correct 33 ms 3416 KB Output is correct
150 Correct 29 ms 3416 KB Output is correct
151 Correct 19 ms 3420 KB Output is correct
152 Correct 21 ms 3420 KB Output is correct
153 Correct 26 ms 2904 KB Output is correct
154 Correct 59 ms 6744 KB Output is correct
155 Correct 16 ms 4500 KB Output is correct
156 Correct 86 ms 6896 KB Output is correct
157 Correct 58 ms 7444 KB Output is correct
158 Correct 23 ms 8912 KB Output is correct
159 Correct 59 ms 7828 KB Output is correct
160 Correct 67 ms 6736 KB Output is correct
161 Correct 54 ms 8912 KB Output is correct
162 Correct 97 ms 8660 KB Output is correct
163 Correct 115 ms 7756 KB Output is correct
164 Correct 21 ms 12812 KB Output is correct
165 Correct 33 ms 11536 KB Output is correct
166 Correct 41 ms 10412 KB Output is correct
167 Correct 78 ms 7980 KB Output is correct
168 Correct 83 ms 7828 KB Output is correct
169 Correct 86 ms 7828 KB Output is correct
170 Correct 88 ms 7920 KB Output is correct
171 Correct 51 ms 7852 KB Output is correct
172 Correct 57 ms 7828 KB Output is correct
173 Correct 56 ms 6672 KB Output is correct
174 Correct 78 ms 10388 KB Output is correct
175 Correct 219 ms 16912 KB Output is correct
176 Correct 259 ms 46440 KB Output is correct
177 Correct 551 ms 51772 KB Output is correct
178 Correct 774 ms 65936 KB Output is correct
179 Correct 869 ms 76916 KB Output is correct
180 Correct 820 ms 77044 KB Output is correct
181 Correct 987 ms 76272 KB Output is correct
182 Correct 1202 ms 77040 KB Output is correct
183 Correct 809 ms 72288 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 600 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 344 KB Output is correct
18 Correct 1 ms 344 KB Output is correct
19 Correct 21 ms 2908 KB Output is correct
20 Correct 10 ms 3744 KB Output is correct
21 Correct 9 ms 3800 KB Output is correct
22 Correct 24 ms 3416 KB Output is correct
23 Correct 26 ms 2904 KB Output is correct
24 Correct 9 ms 5228 KB Output is correct
25 Correct 13 ms 4716 KB Output is correct
26 Correct 19 ms 3416 KB Output is correct
27 Correct 21 ms 3416 KB Output is correct
28 Correct 22 ms 2904 KB Output is correct
29 Correct 58 ms 6744 KB Output is correct
30 Correct 16 ms 4500 KB Output is correct
31 Correct 21 ms 8776 KB Output is correct
32 Correct 54 ms 7828 KB Output is correct
33 Correct 61 ms 6636 KB Output is correct
34 Correct 20 ms 12812 KB Output is correct
35 Correct 32 ms 11532 KB Output is correct
36 Correct 54 ms 7828 KB Output is correct
37 Correct 56 ms 7828 KB Output is correct
38 Correct 57 ms 6664 KB Output is correct
39 Correct 832 ms 64260 KB Output is correct
40 Correct 56 ms 9160 KB Output is correct
41 Correct 30 ms 16260 KB Output is correct
42 Correct 97 ms 10652 KB Output is correct
43 Correct 67 ms 16504 KB Output is correct
44 Correct 217 ms 40740 KB Output is correct
45 Correct 285 ms 43476 KB Output is correct
46 Correct 323 ms 85420 KB Output is correct
47 Correct 682 ms 76028 KB Output is correct
48 Correct 851 ms 62600 KB Output is correct
49 Correct 188 ms 125296 KB Output is correct
50 Correct 327 ms 111724 KB Output is correct
51 Correct 727 ms 74448 KB Output is correct
52 Correct 788 ms 76792 KB Output is correct
53 Correct 796 ms 62528 KB Output is correct
54 Correct 0 ms 344 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 1 ms 500 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 344 KB Output is correct
61 Correct 1 ms 344 KB Output is correct
62 Correct 1 ms 344 KB Output is correct
63 Correct 1 ms 344 KB Output is correct
64 Correct 1 ms 344 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 1 ms 344 KB Output is correct
67 Correct 1 ms 344 KB Output is correct
68 Correct 0 ms 344 KB Output is correct
69 Correct 0 ms 344 KB Output is correct
70 Correct 1 ms 344 KB Output is correct
71 Correct 0 ms 344 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 0 ms 344 KB Output is correct
75 Correct 1 ms 344 KB Output is correct
76 Correct 1 ms 344 KB Output is correct
77 Correct 0 ms 344 KB Output is correct
78 Correct 0 ms 344 KB Output is correct
79 Correct 0 ms 344 KB Output is correct
80 Correct 0 ms 344 KB Output is correct
81 Correct 1 ms 348 KB Output is correct
82 Correct 0 ms 344 KB Output is correct
83 Correct 1 ms 344 KB Output is correct
84 Correct 1 ms 344 KB Output is correct
85 Correct 1 ms 344 KB Output is correct
86 Correct 0 ms 600 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 344 KB Output is correct
89 Correct 0 ms 344 KB Output is correct
90 Correct 0 ms 344 KB Output is correct
91 Correct 1 ms 348 KB Output is correct
92 Correct 1 ms 344 KB Output is correct
93 Correct 1 ms 344 KB Output is correct
94 Correct 1 ms 344 KB Output is correct
95 Correct 1 ms 344 KB Output is correct
96 Correct 1 ms 344 KB Output is correct
97 Correct 1 ms 344 KB Output is correct
98 Correct 0 ms 344 KB Output is correct
99 Correct 1 ms 344 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 344 KB Output is correct
102 Correct 0 ms 344 KB Output is correct
103 Correct 1 ms 344 KB Output is correct
104 Correct 0 ms 344 KB Output is correct
105 Correct 0 ms 344 KB Output is correct
106 Correct 1 ms 344 KB Output is correct
107 Correct 1 ms 344 KB Output is correct
108 Correct 1 ms 344 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 16 ms 2136 KB Output is correct
111 Correct 21 ms 3288 KB Output is correct
112 Correct 8 ms 3804 KB Output is correct
113 Correct 16 ms 3804 KB Output is correct
114 Correct 33 ms 3672 KB Output is correct
115 Correct 33 ms 3284 KB Output is correct
116 Correct 30 ms 3416 KB Output is correct
117 Correct 20 ms 3472 KB Output is correct
118 Correct 21 ms 3416 KB Output is correct
119 Correct 82 ms 7120 KB Output is correct
120 Correct 21 ms 8912 KB Output is correct
121 Correct 55 ms 8916 KB Output is correct
122 Correct 101 ms 8872 KB Output is correct
123 Correct 113 ms 7764 KB Output is correct
124 Correct 292 ms 23228 KB Output is correct
125 Correct 825 ms 67504 KB Output is correct
126 Correct 328 ms 86948 KB Output is correct
127 Correct 583 ms 85680 KB Output is correct
128 Correct 1105 ms 82820 KB Output is correct
129 Correct 1348 ms 74548 KB Output is correct
130 Correct 715 ms 77996 KB Output is correct
131 Correct 860 ms 77584 KB Output is correct
132 Correct 22 ms 2908 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 2 ms 600 KB Output is correct
135 Correct 16 ms 2136 KB Output is correct
136 Correct 10 ms 3744 KB Output is correct
137 Correct 18 ms 3288 KB Output is correct
138 Correct 9 ms 3800 KB Output is correct
139 Correct 20 ms 3416 KB Output is correct
140 Correct 23 ms 2904 KB Output is correct
141 Correct 16 ms 3800 KB Output is correct
142 Correct 29 ms 3672 KB Output is correct
143 Correct 32 ms 3416 KB Output is correct
144 Correct 8 ms 5228 KB Output is correct
145 Correct 14 ms 4720 KB Output is correct
146 Correct 16 ms 4756 KB Output is correct
147 Correct 27 ms 3416 KB Output is correct
148 Correct 23 ms 3416 KB Output is correct
149 Correct 33 ms 3416 KB Output is correct
150 Correct 29 ms 3416 KB Output is correct
151 Correct 19 ms 3420 KB Output is correct
152 Correct 21 ms 3420 KB Output is correct
153 Correct 26 ms 2904 KB Output is correct
154 Correct 59 ms 6744 KB Output is correct
155 Correct 16 ms 4500 KB Output is correct
156 Correct 86 ms 6896 KB Output is correct
157 Correct 58 ms 7444 KB Output is correct
158 Correct 23 ms 8912 KB Output is correct
159 Correct 59 ms 7828 KB Output is correct
160 Correct 67 ms 6736 KB Output is correct
161 Correct 54 ms 8912 KB Output is correct
162 Correct 97 ms 8660 KB Output is correct
163 Correct 115 ms 7756 KB Output is correct
164 Correct 21 ms 12812 KB Output is correct
165 Correct 33 ms 11536 KB Output is correct
166 Correct 41 ms 10412 KB Output is correct
167 Correct 78 ms 7980 KB Output is correct
168 Correct 83 ms 7828 KB Output is correct
169 Correct 86 ms 7828 KB Output is correct
170 Correct 88 ms 7920 KB Output is correct
171 Correct 51 ms 7852 KB Output is correct
172 Correct 57 ms 7828 KB Output is correct
173 Correct 56 ms 6672 KB Output is correct
174 Correct 78 ms 10388 KB Output is correct
175 Correct 219 ms 16912 KB Output is correct
176 Correct 259 ms 46440 KB Output is correct
177 Correct 551 ms 51772 KB Output is correct
178 Correct 774 ms 65936 KB Output is correct
179 Correct 869 ms 76916 KB Output is correct
180 Correct 820 ms 77044 KB Output is correct
181 Correct 987 ms 76272 KB Output is correct
182 Correct 1202 ms 77040 KB Output is correct
183 Correct 809 ms 72288 KB Output is correct
184 Correct 1810 ms 126860 KB Output is correct
185 Correct 990 ms 83256 KB Output is correct
186 Correct 917 ms 93324 KB Output is correct
187 Correct 1902 ms 89072 KB Output is correct
188 Correct 687 ms 172196 KB Output is correct
189 Correct 1692 ms 151788 KB Output is correct
190 Correct 1736 ms 126168 KB Output is correct
191 Correct 1264 ms 172452 KB Output is correct
192 Execution timed out 2029 ms 167700 KB Time limit exceeded
193 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 600 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 1 ms 344 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 1 ms 344 KB Output is correct
10 Correct 0 ms 344 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 344 KB Output is correct
13 Correct 0 ms 344 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 0 ms 344 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 1 ms 344 KB Output is correct
18 Correct 1 ms 344 KB Output is correct
19 Correct 21 ms 2908 KB Output is correct
20 Correct 10 ms 3744 KB Output is correct
21 Correct 9 ms 3800 KB Output is correct
22 Correct 24 ms 3416 KB Output is correct
23 Correct 26 ms 2904 KB Output is correct
24 Correct 9 ms 5228 KB Output is correct
25 Correct 13 ms 4716 KB Output is correct
26 Correct 19 ms 3416 KB Output is correct
27 Correct 21 ms 3416 KB Output is correct
28 Correct 22 ms 2904 KB Output is correct
29 Correct 58 ms 6744 KB Output is correct
30 Correct 16 ms 4500 KB Output is correct
31 Correct 21 ms 8776 KB Output is correct
32 Correct 54 ms 7828 KB Output is correct
33 Correct 61 ms 6636 KB Output is correct
34 Correct 20 ms 12812 KB Output is correct
35 Correct 32 ms 11532 KB Output is correct
36 Correct 54 ms 7828 KB Output is correct
37 Correct 56 ms 7828 KB Output is correct
38 Correct 57 ms 6664 KB Output is correct
39 Correct 832 ms 64260 KB Output is correct
40 Correct 56 ms 9160 KB Output is correct
41 Correct 30 ms 16260 KB Output is correct
42 Correct 97 ms 10652 KB Output is correct
43 Correct 67 ms 16504 KB Output is correct
44 Correct 217 ms 40740 KB Output is correct
45 Correct 285 ms 43476 KB Output is correct
46 Correct 323 ms 85420 KB Output is correct
47 Correct 682 ms 76028 KB Output is correct
48 Correct 851 ms 62600 KB Output is correct
49 Correct 188 ms 125296 KB Output is correct
50 Correct 327 ms 111724 KB Output is correct
51 Correct 727 ms 74448 KB Output is correct
52 Correct 788 ms 76792 KB Output is correct
53 Correct 796 ms 62528 KB Output is correct
54 Correct 0 ms 344 KB Output is correct
55 Correct 0 ms 344 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 1 ms 500 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 344 KB Output is correct
61 Correct 1 ms 344 KB Output is correct
62 Correct 1 ms 344 KB Output is correct
63 Correct 1 ms 344 KB Output is correct
64 Correct 1 ms 344 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 1 ms 344 KB Output is correct
67 Correct 1 ms 344 KB Output is correct
68 Correct 0 ms 344 KB Output is correct
69 Correct 0 ms 344 KB Output is correct
70 Correct 1 ms 344 KB Output is correct
71 Correct 0 ms 344 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 0 ms 344 KB Output is correct
75 Correct 1 ms 344 KB Output is correct
76 Correct 1 ms 344 KB Output is correct
77 Correct 0 ms 344 KB Output is correct
78 Correct 0 ms 344 KB Output is correct
79 Correct 0 ms 344 KB Output is correct
80 Correct 0 ms 344 KB Output is correct
81 Correct 1 ms 348 KB Output is correct
82 Correct 0 ms 344 KB Output is correct
83 Correct 1 ms 344 KB Output is correct
84 Correct 1 ms 344 KB Output is correct
85 Correct 1 ms 344 KB Output is correct
86 Correct 0 ms 600 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 344 KB Output is correct
89 Correct 0 ms 344 KB Output is correct
90 Correct 0 ms 344 KB Output is correct
91 Correct 1 ms 348 KB Output is correct
92 Correct 1 ms 344 KB Output is correct
93 Correct 1 ms 344 KB Output is correct
94 Correct 1 ms 344 KB Output is correct
95 Correct 1 ms 344 KB Output is correct
96 Correct 1 ms 344 KB Output is correct
97 Correct 1 ms 344 KB Output is correct
98 Correct 0 ms 344 KB Output is correct
99 Correct 1 ms 344 KB Output is correct
100 Correct 1 ms 344 KB Output is correct
101 Correct 1 ms 344 KB Output is correct
102 Correct 0 ms 344 KB Output is correct
103 Correct 1 ms 344 KB Output is correct
104 Correct 0 ms 344 KB Output is correct
105 Correct 0 ms 344 KB Output is correct
106 Correct 1 ms 344 KB Output is correct
107 Correct 1 ms 344 KB Output is correct
108 Correct 1 ms 344 KB Output is correct
109 Correct 1 ms 348 KB Output is correct
110 Correct 16 ms 2136 KB Output is correct
111 Correct 21 ms 3288 KB Output is correct
112 Correct 8 ms 3804 KB Output is correct
113 Correct 16 ms 3804 KB Output is correct
114 Correct 33 ms 3672 KB Output is correct
115 Correct 33 ms 3284 KB Output is correct
116 Correct 30 ms 3416 KB Output is correct
117 Correct 20 ms 3472 KB Output is correct
118 Correct 21 ms 3416 KB Output is correct
119 Correct 82 ms 7120 KB Output is correct
120 Correct 21 ms 8912 KB Output is correct
121 Correct 55 ms 8916 KB Output is correct
122 Correct 101 ms 8872 KB Output is correct
123 Correct 113 ms 7764 KB Output is correct
124 Correct 292 ms 23228 KB Output is correct
125 Correct 825 ms 67504 KB Output is correct
126 Correct 328 ms 86948 KB Output is correct
127 Correct 583 ms 85680 KB Output is correct
128 Correct 1105 ms 82820 KB Output is correct
129 Correct 1348 ms 74548 KB Output is correct
130 Correct 715 ms 77996 KB Output is correct
131 Correct 860 ms 77584 KB Output is correct
132 Correct 22 ms 2908 KB Output is correct
133 Correct 1 ms 344 KB Output is correct
134 Correct 2 ms 600 KB Output is correct
135 Correct 16 ms 2136 KB Output is correct
136 Correct 10 ms 3744 KB Output is correct
137 Correct 18 ms 3288 KB Output is correct
138 Correct 9 ms 3800 KB Output is correct
139 Correct 20 ms 3416 KB Output is correct
140 Correct 23 ms 2904 KB Output is correct
141 Correct 16 ms 3800 KB Output is correct
142 Correct 29 ms 3672 KB Output is correct
143 Correct 32 ms 3416 KB Output is correct
144 Correct 8 ms 5228 KB Output is correct
145 Correct 14 ms 4720 KB Output is correct
146 Correct 16 ms 4756 KB Output is correct
147 Correct 27 ms 3416 KB Output is correct
148 Correct 23 ms 3416 KB Output is correct
149 Correct 33 ms 3416 KB Output is correct
150 Correct 29 ms 3416 KB Output is correct
151 Correct 19 ms 3420 KB Output is correct
152 Correct 21 ms 3420 KB Output is correct
153 Correct 26 ms 2904 KB Output is correct
154 Correct 59 ms 6744 KB Output is correct
155 Correct 16 ms 4500 KB Output is correct
156 Correct 86 ms 6896 KB Output is correct
157 Correct 58 ms 7444 KB Output is correct
158 Correct 23 ms 8912 KB Output is correct
159 Correct 59 ms 7828 KB Output is correct
160 Correct 67 ms 6736 KB Output is correct
161 Correct 54 ms 8912 KB Output is correct
162 Correct 97 ms 8660 KB Output is correct
163 Correct 115 ms 7756 KB Output is correct
164 Correct 21 ms 12812 KB Output is correct
165 Correct 33 ms 11536 KB Output is correct
166 Correct 41 ms 10412 KB Output is correct
167 Correct 78 ms 7980 KB Output is correct
168 Correct 83 ms 7828 KB Output is correct
169 Correct 86 ms 7828 KB Output is correct
170 Correct 88 ms 7920 KB Output is correct
171 Correct 51 ms 7852 KB Output is correct
172 Correct 57 ms 7828 KB Output is correct
173 Correct 56 ms 6672 KB Output is correct
174 Correct 78 ms 10388 KB Output is correct
175 Correct 219 ms 16912 KB Output is correct
176 Correct 259 ms 46440 KB Output is correct
177 Correct 551 ms 51772 KB Output is correct
178 Correct 774 ms 65936 KB Output is correct
179 Correct 869 ms 76916 KB Output is correct
180 Correct 820 ms 77044 KB Output is correct
181 Correct 987 ms 76272 KB Output is correct
182 Correct 1202 ms 77040 KB Output is correct
183 Correct 809 ms 72288 KB Output is correct
184 Correct 1810 ms 126860 KB Output is correct
185 Correct 990 ms 83256 KB Output is correct
186 Correct 917 ms 93324 KB Output is correct
187 Correct 1902 ms 89072 KB Output is correct
188 Correct 687 ms 172196 KB Output is correct
189 Correct 1692 ms 151788 KB Output is correct
190 Correct 1736 ms 126168 KB Output is correct
191 Correct 1264 ms 172452 KB Output is correct
192 Execution timed out 2029 ms 167700 KB Time limit exceeded
193 Halted 0 ms 0 KB -