Submission #1076897

# Submission time Handle Problem Language Result Execution time Memory
1076897 2024-08-26T18:22:28 Z dwuy Maze (JOI23_ho_t3) C++14
100 / 100
1803 ms 739988 KB
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
const int MX = 3000006;
const int dx[] = {-1, 1, 0, 0};
const int dy[] = {0, 0, -1, 1};

struct vortex{
    int id;
    int d[MX];
    vortex(): id(0) {}

    void push_back(int x){
        id++;
        d[id] = x;
    }

    void pop_back(){
        if(id) id--;
    }

    void clear(){
        id = 0;
    }

    int gx(int i){
        return !i || i > id? -1 : d[i];
    }
};

int n, m, k;
int Sx, Sy, Ex, Ey;
vector<vector<int>> ttr;
vector<vector<int>> ttb;
vector<vector<int>> d;
string a[MX];
queue<pii> Q[2];

void nhap(){
    cin >> n >> m >> k;
    cin >> Sx >> Sy >> Ex >> Ey;
    ttr.assign(n + 5, vector<int>(m + 5, 0));
    ttb.assign(m + 5, vector<int>(n + 5, 0));
    for(int i=1; i<=n; i++){
        cin >> a[i];
        a[i] = ' ' + a[i];
        for(int j=1; j<=m; j++){
            ttr[i][j] = j + 1;
            ttb[j][i] = i + 1;
        }
    }
}

void solve(){
    d.assign(n + 5, vector<int>(m + 5, 1e9));
    d[Sx][Sy] = 0;
    Q[0].push({Sx, Sy});
    for(int f=0; f<n*m; f++){
        int c = f&1;
        vector<pii> vt;
        while(Q[c].size()){
            int x, y;
            tie(x, y) = Q[c].front();
            vt.push_back({x, y});
            Q[c].pop();
            for(int i=0; i<4; i++){
                int u = x + dx[i];
                int v = y + dy[i];
                if(u < 1 || u > n || v < 1 || v > m || a[u][v] == '#' || d[u][v] <= d[x][y]) continue;
                d[u][v] = d[x][y];
                Q[c].push({u, v});
            }
        }
        for(pii td: vt){
            int x, y;
            tie(x, y) = td;
            vector<int> vert;
            for(int i=max(1, x-k); i<=min(n, x+k);){
                vert.push_back(i);
                vector<int> hori;
                for(int j=max(1, y-k); j<=min(m, y+k);){
                    if((i == x - k || i == x + k) && (j == y - k || j == y + k)){
                        j = ttr[i][j];
                        continue;
                    }
                    hori.push_back(j);
                    if(d[i][j] > d[x][y] + 1){
                        d[i][j] = d[x][y] + 1;
                        Q[c^1].push({i, j});
                    }
                    j = ttr[i][j];
                }
                if(hori.size()){
                    int p = hori.back(); hori.pop_back();
                    for(int j: hori) ttr[i][j] = p;
                }
                i = ttb[y][i];
            }
            if(vert.size()){
                int p = vert.back(); vert.pop_back();
                for(int i: vert) ttb[y][i] = p;
            }
        }
    }
    cout << d[Ex][Ey];
}

int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);

    nhap();
    solve();

    return 0;
}


/*

10 10 2
1 1
10 10
.##.#..##.
#..#.###.#
###.#.##..
..##..####
..###.##.#
###.#.###.
##.#.#####
##.....#.#
##.#.#.#.#
##.#.####.

*/
# Verdict Execution time Memory Grader output
1 Correct 43 ms 94292 KB Output is correct
2 Correct 43 ms 94164 KB Output is correct
3 Correct 42 ms 94292 KB Output is correct
4 Correct 43 ms 94288 KB Output is correct
5 Correct 47 ms 94288 KB Output is correct
6 Correct 45 ms 94296 KB Output is correct
7 Correct 41 ms 94492 KB Output is correct
8 Correct 44 ms 94292 KB Output is correct
9 Correct 43 ms 94288 KB Output is correct
10 Correct 43 ms 94292 KB Output is correct
11 Correct 44 ms 94300 KB Output is correct
12 Correct 48 ms 94296 KB Output is correct
13 Correct 42 ms 94288 KB Output is correct
14 Correct 42 ms 94292 KB Output is correct
15 Correct 45 ms 94424 KB Output is correct
16 Correct 44 ms 94288 KB Output is correct
17 Correct 44 ms 94288 KB Output is correct
18 Correct 44 ms 94284 KB Output is correct
19 Correct 50 ms 95056 KB Output is correct
20 Correct 53 ms 99228 KB Output is correct
21 Correct 56 ms 95712 KB Output is correct
22 Correct 59 ms 95056 KB Output is correct
23 Correct 55 ms 95056 KB Output is correct
24 Correct 55 ms 100952 KB Output is correct
25 Correct 53 ms 100968 KB Output is correct
26 Correct 56 ms 95464 KB Output is correct
27 Correct 60 ms 95268 KB Output is correct
28 Correct 52 ms 95060 KB Output is correct
29 Correct 70 ms 96336 KB Output is correct
30 Correct 55 ms 98384 KB Output is correct
31 Correct 78 ms 98508 KB Output is correct
32 Correct 75 ms 96596 KB Output is correct
33 Correct 72 ms 96332 KB Output is correct
34 Correct 62 ms 110344 KB Output is correct
35 Correct 73 ms 110344 KB Output is correct
36 Correct 76 ms 96724 KB Output is correct
37 Correct 77 ms 96592 KB Output is correct
38 Correct 70 ms 96348 KB Output is correct
39 Correct 394 ms 115268 KB Output is correct
40 Correct 85 ms 97620 KB Output is correct
41 Correct 79 ms 114044 KB Output is correct
42 Correct 86 ms 97460 KB Output is correct
43 Correct 105 ms 110452 KB Output is correct
44 Correct 199 ms 117444 KB Output is correct
45 Correct 207 ms 120544 KB Output is correct
46 Correct 359 ms 131760 KB Output is correct
47 Correct 403 ms 115464 KB Output is correct
48 Correct 381 ms 115288 KB Output is correct
49 Correct 301 ms 255588 KB Output is correct
50 Correct 300 ms 255588 KB Output is correct
51 Correct 408 ms 116408 KB Output is correct
52 Correct 422 ms 115784 KB Output is correct
53 Correct 379 ms 115340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 42 ms 94292 KB Output is correct
2 Correct 44 ms 94296 KB Output is correct
3 Correct 43 ms 94292 KB Output is correct
4 Correct 44 ms 94288 KB Output is correct
5 Correct 44 ms 94288 KB Output is correct
6 Correct 45 ms 94296 KB Output is correct
7 Correct 44 ms 94344 KB Output is correct
8 Correct 40 ms 94296 KB Output is correct
9 Correct 44 ms 94300 KB Output is correct
10 Correct 43 ms 94176 KB Output is correct
11 Correct 40 ms 94288 KB Output is correct
12 Correct 43 ms 94296 KB Output is correct
13 Correct 44 ms 94300 KB Output is correct
14 Correct 46 ms 94292 KB Output is correct
15 Correct 44 ms 94292 KB Output is correct
16 Correct 45 ms 94292 KB Output is correct
17 Correct 43 ms 94288 KB Output is correct
18 Correct 42 ms 94292 KB Output is correct
19 Correct 45 ms 94292 KB Output is correct
20 Correct 42 ms 94288 KB Output is correct
21 Correct 44 ms 94296 KB Output is correct
22 Correct 45 ms 94288 KB Output is correct
23 Correct 45 ms 94300 KB Output is correct
24 Correct 42 ms 94292 KB Output is correct
25 Correct 44 ms 94228 KB Output is correct
26 Correct 44 ms 94288 KB Output is correct
27 Correct 44 ms 94288 KB Output is correct
28 Correct 44 ms 94288 KB Output is correct
29 Correct 44 ms 94288 KB Output is correct
30 Correct 46 ms 94236 KB Output is correct
31 Correct 44 ms 94288 KB Output is correct
32 Correct 47 ms 94296 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 43 ms 94300 KB Output is correct
2 Correct 40 ms 94292 KB Output is correct
3 Correct 41 ms 94248 KB Output is correct
4 Correct 41 ms 94292 KB Output is correct
5 Correct 43 ms 94292 KB Output is correct
6 Correct 42 ms 94292 KB Output is correct
7 Correct 44 ms 94288 KB Output is correct
8 Correct 45 ms 94288 KB Output is correct
9 Correct 45 ms 94292 KB Output is correct
10 Correct 44 ms 94312 KB Output is correct
11 Correct 40 ms 94288 KB Output is correct
12 Correct 47 ms 94280 KB Output is correct
13 Correct 45 ms 94288 KB Output is correct
14 Correct 45 ms 94288 KB Output is correct
15 Correct 42 ms 94296 KB Output is correct
16 Correct 45 ms 94392 KB Output is correct
17 Correct 49 ms 94384 KB Output is correct
18 Correct 44 ms 94292 KB Output is correct
19 Correct 44 ms 94288 KB Output is correct
20 Correct 45 ms 94296 KB Output is correct
21 Correct 43 ms 94292 KB Output is correct
22 Correct 44 ms 94300 KB Output is correct
23 Correct 46 ms 94288 KB Output is correct
24 Correct 43 ms 94292 KB Output is correct
25 Correct 52 ms 94804 KB Output is correct
26 Correct 58 ms 95700 KB Output is correct
27 Correct 55 ms 95868 KB Output is correct
28 Correct 57 ms 95704 KB Output is correct
29 Correct 56 ms 96216 KB Output is correct
30 Correct 54 ms 96252 KB Output is correct
31 Correct 57 ms 95452 KB Output is correct
32 Correct 55 ms 95424 KB Output is correct
33 Correct 54 ms 95316 KB Output is correct
34 Correct 71 ms 97228 KB Output is correct
35 Correct 71 ms 98552 KB Output is correct
36 Correct 76 ms 98508 KB Output is correct
37 Correct 78 ms 99960 KB Output is correct
38 Correct 74 ms 100044 KB Output is correct
39 Correct 172 ms 104548 KB Output is correct
40 Correct 351 ms 122820 KB Output is correct
41 Correct 354 ms 131768 KB Output is correct
42 Correct 379 ms 131664 KB Output is correct
43 Correct 379 ms 144980 KB Output is correct
44 Correct 360 ms 145104 KB Output is correct
45 Correct 422 ms 134408 KB Output is correct
46 Correct 415 ms 133780 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 42 ms 94292 KB Output is correct
2 Correct 44 ms 94296 KB Output is correct
3 Correct 43 ms 94292 KB Output is correct
4 Correct 44 ms 94288 KB Output is correct
5 Correct 44 ms 94288 KB Output is correct
6 Correct 45 ms 94296 KB Output is correct
7 Correct 44 ms 94344 KB Output is correct
8 Correct 40 ms 94296 KB Output is correct
9 Correct 44 ms 94300 KB Output is correct
10 Correct 43 ms 94176 KB Output is correct
11 Correct 40 ms 94288 KB Output is correct
12 Correct 43 ms 94296 KB Output is correct
13 Correct 44 ms 94300 KB Output is correct
14 Correct 46 ms 94292 KB Output is correct
15 Correct 44 ms 94292 KB Output is correct
16 Correct 45 ms 94292 KB Output is correct
17 Correct 43 ms 94288 KB Output is correct
18 Correct 42 ms 94292 KB Output is correct
19 Correct 45 ms 94292 KB Output is correct
20 Correct 42 ms 94288 KB Output is correct
21 Correct 44 ms 94296 KB Output is correct
22 Correct 45 ms 94288 KB Output is correct
23 Correct 45 ms 94300 KB Output is correct
24 Correct 42 ms 94292 KB Output is correct
25 Correct 44 ms 94228 KB Output is correct
26 Correct 44 ms 94288 KB Output is correct
27 Correct 44 ms 94288 KB Output is correct
28 Correct 44 ms 94288 KB Output is correct
29 Correct 44 ms 94288 KB Output is correct
30 Correct 46 ms 94236 KB Output is correct
31 Correct 44 ms 94288 KB Output is correct
32 Correct 47 ms 94296 KB Output is correct
33 Correct 54 ms 95060 KB Output is correct
34 Correct 42 ms 94300 KB Output is correct
35 Correct 42 ms 94464 KB Output is correct
36 Correct 53 ms 94800 KB Output is correct
37 Correct 52 ms 99224 KB Output is correct
38 Correct 58 ms 95704 KB Output is correct
39 Correct 53 ms 95704 KB Output is correct
40 Correct 55 ms 95216 KB Output is correct
41 Correct 53 ms 95060 KB Output is correct
42 Correct 55 ms 95700 KB Output is correct
43 Correct 58 ms 96468 KB Output is correct
44 Correct 56 ms 96216 KB Output is correct
45 Correct 61 ms 100904 KB Output is correct
46 Correct 53 ms 100712 KB Output is correct
47 Correct 52 ms 98384 KB Output is correct
48 Correct 57 ms 95568 KB Output is correct
49 Correct 60 ms 95316 KB Output is correct
50 Correct 64 ms 95408 KB Output is correct
51 Correct 57 ms 95424 KB Output is correct
52 Correct 55 ms 95504 KB Output is correct
53 Correct 50 ms 95324 KB Output is correct
54 Correct 53 ms 95060 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 42 ms 94292 KB Output is correct
2 Correct 44 ms 94296 KB Output is correct
3 Correct 43 ms 94292 KB Output is correct
4 Correct 44 ms 94288 KB Output is correct
5 Correct 44 ms 94288 KB Output is correct
6 Correct 45 ms 94296 KB Output is correct
7 Correct 44 ms 94344 KB Output is correct
8 Correct 40 ms 94296 KB Output is correct
9 Correct 44 ms 94300 KB Output is correct
10 Correct 43 ms 94176 KB Output is correct
11 Correct 40 ms 94288 KB Output is correct
12 Correct 43 ms 94296 KB Output is correct
13 Correct 44 ms 94300 KB Output is correct
14 Correct 46 ms 94292 KB Output is correct
15 Correct 44 ms 94292 KB Output is correct
16 Correct 45 ms 94292 KB Output is correct
17 Correct 43 ms 94288 KB Output is correct
18 Correct 42 ms 94292 KB Output is correct
19 Correct 45 ms 94292 KB Output is correct
20 Correct 42 ms 94288 KB Output is correct
21 Correct 44 ms 94296 KB Output is correct
22 Correct 45 ms 94288 KB Output is correct
23 Correct 45 ms 94300 KB Output is correct
24 Correct 42 ms 94292 KB Output is correct
25 Correct 44 ms 94228 KB Output is correct
26 Correct 44 ms 94288 KB Output is correct
27 Correct 44 ms 94288 KB Output is correct
28 Correct 44 ms 94288 KB Output is correct
29 Correct 44 ms 94288 KB Output is correct
30 Correct 46 ms 94236 KB Output is correct
31 Correct 44 ms 94288 KB Output is correct
32 Correct 47 ms 94296 KB Output is correct
33 Correct 54 ms 95060 KB Output is correct
34 Correct 42 ms 94300 KB Output is correct
35 Correct 42 ms 94464 KB Output is correct
36 Correct 53 ms 94800 KB Output is correct
37 Correct 52 ms 99224 KB Output is correct
38 Correct 58 ms 95704 KB Output is correct
39 Correct 53 ms 95704 KB Output is correct
40 Correct 55 ms 95216 KB Output is correct
41 Correct 53 ms 95060 KB Output is correct
42 Correct 55 ms 95700 KB Output is correct
43 Correct 58 ms 96468 KB Output is correct
44 Correct 56 ms 96216 KB Output is correct
45 Correct 61 ms 100904 KB Output is correct
46 Correct 53 ms 100712 KB Output is correct
47 Correct 52 ms 98384 KB Output is correct
48 Correct 57 ms 95568 KB Output is correct
49 Correct 60 ms 95316 KB Output is correct
50 Correct 64 ms 95408 KB Output is correct
51 Correct 57 ms 95424 KB Output is correct
52 Correct 55 ms 95504 KB Output is correct
53 Correct 50 ms 95324 KB Output is correct
54 Correct 53 ms 95060 KB Output is correct
55 Correct 71 ms 96340 KB Output is correct
56 Correct 57 ms 98400 KB Output is correct
57 Correct 77 ms 97228 KB Output is correct
58 Correct 75 ms 97108 KB Output is correct
59 Correct 77 ms 98764 KB Output is correct
60 Correct 80 ms 96604 KB Output is correct
61 Correct 75 ms 96468 KB Output is correct
62 Correct 74 ms 98512 KB Output is correct
63 Correct 75 ms 100128 KB Output is correct
64 Correct 74 ms 100048 KB Output is correct
65 Correct 67 ms 110340 KB Output is correct
66 Correct 72 ms 110340 KB Output is correct
67 Correct 79 ms 104284 KB Output is correct
68 Correct 73 ms 97104 KB Output is correct
69 Correct 83 ms 96860 KB Output is correct
70 Correct 77 ms 96848 KB Output is correct
71 Correct 77 ms 96988 KB Output is correct
72 Correct 72 ms 96724 KB Output is correct
73 Correct 69 ms 96604 KB Output is correct
74 Correct 74 ms 96572 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 43 ms 94292 KB Output is correct
2 Correct 43 ms 94164 KB Output is correct
3 Correct 42 ms 94292 KB Output is correct
4 Correct 43 ms 94288 KB Output is correct
5 Correct 47 ms 94288 KB Output is correct
6 Correct 45 ms 94296 KB Output is correct
7 Correct 41 ms 94492 KB Output is correct
8 Correct 44 ms 94292 KB Output is correct
9 Correct 43 ms 94288 KB Output is correct
10 Correct 43 ms 94292 KB Output is correct
11 Correct 44 ms 94300 KB Output is correct
12 Correct 48 ms 94296 KB Output is correct
13 Correct 42 ms 94288 KB Output is correct
14 Correct 42 ms 94292 KB Output is correct
15 Correct 45 ms 94424 KB Output is correct
16 Correct 44 ms 94288 KB Output is correct
17 Correct 44 ms 94288 KB Output is correct
18 Correct 44 ms 94284 KB Output is correct
19 Correct 50 ms 95056 KB Output is correct
20 Correct 53 ms 99228 KB Output is correct
21 Correct 56 ms 95712 KB Output is correct
22 Correct 59 ms 95056 KB Output is correct
23 Correct 55 ms 95056 KB Output is correct
24 Correct 55 ms 100952 KB Output is correct
25 Correct 53 ms 100968 KB Output is correct
26 Correct 56 ms 95464 KB Output is correct
27 Correct 60 ms 95268 KB Output is correct
28 Correct 52 ms 95060 KB Output is correct
29 Correct 70 ms 96336 KB Output is correct
30 Correct 55 ms 98384 KB Output is correct
31 Correct 78 ms 98508 KB Output is correct
32 Correct 75 ms 96596 KB Output is correct
33 Correct 72 ms 96332 KB Output is correct
34 Correct 62 ms 110344 KB Output is correct
35 Correct 73 ms 110344 KB Output is correct
36 Correct 76 ms 96724 KB Output is correct
37 Correct 77 ms 96592 KB Output is correct
38 Correct 70 ms 96348 KB Output is correct
39 Correct 394 ms 115268 KB Output is correct
40 Correct 85 ms 97620 KB Output is correct
41 Correct 79 ms 114044 KB Output is correct
42 Correct 86 ms 97460 KB Output is correct
43 Correct 105 ms 110452 KB Output is correct
44 Correct 199 ms 117444 KB Output is correct
45 Correct 207 ms 120544 KB Output is correct
46 Correct 359 ms 131760 KB Output is correct
47 Correct 403 ms 115464 KB Output is correct
48 Correct 381 ms 115288 KB Output is correct
49 Correct 301 ms 255588 KB Output is correct
50 Correct 300 ms 255588 KB Output is correct
51 Correct 408 ms 116408 KB Output is correct
52 Correct 422 ms 115784 KB Output is correct
53 Correct 379 ms 115340 KB Output is correct
54 Correct 42 ms 94292 KB Output is correct
55 Correct 44 ms 94296 KB Output is correct
56 Correct 43 ms 94292 KB Output is correct
57 Correct 44 ms 94288 KB Output is correct
58 Correct 44 ms 94288 KB Output is correct
59 Correct 45 ms 94296 KB Output is correct
60 Correct 44 ms 94344 KB Output is correct
61 Correct 40 ms 94296 KB Output is correct
62 Correct 44 ms 94300 KB Output is correct
63 Correct 43 ms 94176 KB Output is correct
64 Correct 40 ms 94288 KB Output is correct
65 Correct 43 ms 94296 KB Output is correct
66 Correct 44 ms 94300 KB Output is correct
67 Correct 46 ms 94292 KB Output is correct
68 Correct 44 ms 94292 KB Output is correct
69 Correct 45 ms 94292 KB Output is correct
70 Correct 43 ms 94288 KB Output is correct
71 Correct 42 ms 94292 KB Output is correct
72 Correct 45 ms 94292 KB Output is correct
73 Correct 42 ms 94288 KB Output is correct
74 Correct 44 ms 94296 KB Output is correct
75 Correct 45 ms 94288 KB Output is correct
76 Correct 45 ms 94300 KB Output is correct
77 Correct 42 ms 94292 KB Output is correct
78 Correct 44 ms 94228 KB Output is correct
79 Correct 44 ms 94288 KB Output is correct
80 Correct 44 ms 94288 KB Output is correct
81 Correct 44 ms 94288 KB Output is correct
82 Correct 44 ms 94288 KB Output is correct
83 Correct 46 ms 94236 KB Output is correct
84 Correct 44 ms 94288 KB Output is correct
85 Correct 47 ms 94296 KB Output is correct
86 Correct 43 ms 94300 KB Output is correct
87 Correct 40 ms 94292 KB Output is correct
88 Correct 41 ms 94248 KB Output is correct
89 Correct 41 ms 94292 KB Output is correct
90 Correct 43 ms 94292 KB Output is correct
91 Correct 42 ms 94292 KB Output is correct
92 Correct 44 ms 94288 KB Output is correct
93 Correct 45 ms 94288 KB Output is correct
94 Correct 45 ms 94292 KB Output is correct
95 Correct 44 ms 94312 KB Output is correct
96 Correct 40 ms 94288 KB Output is correct
97 Correct 47 ms 94280 KB Output is correct
98 Correct 45 ms 94288 KB Output is correct
99 Correct 45 ms 94288 KB Output is correct
100 Correct 42 ms 94296 KB Output is correct
101 Correct 45 ms 94392 KB Output is correct
102 Correct 49 ms 94384 KB Output is correct
103 Correct 44 ms 94292 KB Output is correct
104 Correct 44 ms 94288 KB Output is correct
105 Correct 45 ms 94296 KB Output is correct
106 Correct 43 ms 94292 KB Output is correct
107 Correct 44 ms 94300 KB Output is correct
108 Correct 46 ms 94288 KB Output is correct
109 Correct 43 ms 94292 KB Output is correct
110 Correct 52 ms 94804 KB Output is correct
111 Correct 58 ms 95700 KB Output is correct
112 Correct 55 ms 95868 KB Output is correct
113 Correct 57 ms 95704 KB Output is correct
114 Correct 56 ms 96216 KB Output is correct
115 Correct 54 ms 96252 KB Output is correct
116 Correct 57 ms 95452 KB Output is correct
117 Correct 55 ms 95424 KB Output is correct
118 Correct 54 ms 95316 KB Output is correct
119 Correct 71 ms 97228 KB Output is correct
120 Correct 71 ms 98552 KB Output is correct
121 Correct 76 ms 98508 KB Output is correct
122 Correct 78 ms 99960 KB Output is correct
123 Correct 74 ms 100044 KB Output is correct
124 Correct 172 ms 104548 KB Output is correct
125 Correct 351 ms 122820 KB Output is correct
126 Correct 354 ms 131768 KB Output is correct
127 Correct 379 ms 131664 KB Output is correct
128 Correct 379 ms 144980 KB Output is correct
129 Correct 360 ms 145104 KB Output is correct
130 Correct 422 ms 134408 KB Output is correct
131 Correct 415 ms 133780 KB Output is correct
132 Correct 54 ms 95060 KB Output is correct
133 Correct 42 ms 94300 KB Output is correct
134 Correct 42 ms 94464 KB Output is correct
135 Correct 53 ms 94800 KB Output is correct
136 Correct 52 ms 99224 KB Output is correct
137 Correct 58 ms 95704 KB Output is correct
138 Correct 53 ms 95704 KB Output is correct
139 Correct 55 ms 95216 KB Output is correct
140 Correct 53 ms 95060 KB Output is correct
141 Correct 55 ms 95700 KB Output is correct
142 Correct 58 ms 96468 KB Output is correct
143 Correct 56 ms 96216 KB Output is correct
144 Correct 61 ms 100904 KB Output is correct
145 Correct 53 ms 100712 KB Output is correct
146 Correct 52 ms 98384 KB Output is correct
147 Correct 57 ms 95568 KB Output is correct
148 Correct 60 ms 95316 KB Output is correct
149 Correct 64 ms 95408 KB Output is correct
150 Correct 57 ms 95424 KB Output is correct
151 Correct 55 ms 95504 KB Output is correct
152 Correct 50 ms 95324 KB Output is correct
153 Correct 53 ms 95060 KB Output is correct
154 Correct 71 ms 96340 KB Output is correct
155 Correct 57 ms 98400 KB Output is correct
156 Correct 77 ms 97228 KB Output is correct
157 Correct 75 ms 97108 KB Output is correct
158 Correct 77 ms 98764 KB Output is correct
159 Correct 80 ms 96604 KB Output is correct
160 Correct 75 ms 96468 KB Output is correct
161 Correct 74 ms 98512 KB Output is correct
162 Correct 75 ms 100128 KB Output is correct
163 Correct 74 ms 100048 KB Output is correct
164 Correct 67 ms 110340 KB Output is correct
165 Correct 72 ms 110340 KB Output is correct
166 Correct 79 ms 104284 KB Output is correct
167 Correct 73 ms 97104 KB Output is correct
168 Correct 83 ms 96860 KB Output is correct
169 Correct 77 ms 96848 KB Output is correct
170 Correct 77 ms 96988 KB Output is correct
171 Correct 72 ms 96724 KB Output is correct
172 Correct 69 ms 96604 KB Output is correct
173 Correct 74 ms 96572 KB Output is correct
174 Correct 97 ms 98384 KB Output is correct
175 Correct 130 ms 99584 KB Output is correct
176 Correct 213 ms 131184 KB Output is correct
177 Correct 308 ms 113056 KB Output is correct
178 Correct 414 ms 115724 KB Output is correct
179 Correct 399 ms 118228 KB Output is correct
180 Correct 400 ms 117352 KB Output is correct
181 Correct 402 ms 117036 KB Output is correct
182 Correct 391 ms 117848 KB Output is correct
183 Correct 400 ms 121816 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 43 ms 94292 KB Output is correct
2 Correct 43 ms 94164 KB Output is correct
3 Correct 42 ms 94292 KB Output is correct
4 Correct 43 ms 94288 KB Output is correct
5 Correct 47 ms 94288 KB Output is correct
6 Correct 45 ms 94296 KB Output is correct
7 Correct 41 ms 94492 KB Output is correct
8 Correct 44 ms 94292 KB Output is correct
9 Correct 43 ms 94288 KB Output is correct
10 Correct 43 ms 94292 KB Output is correct
11 Correct 44 ms 94300 KB Output is correct
12 Correct 48 ms 94296 KB Output is correct
13 Correct 42 ms 94288 KB Output is correct
14 Correct 42 ms 94292 KB Output is correct
15 Correct 45 ms 94424 KB Output is correct
16 Correct 44 ms 94288 KB Output is correct
17 Correct 44 ms 94288 KB Output is correct
18 Correct 44 ms 94284 KB Output is correct
19 Correct 50 ms 95056 KB Output is correct
20 Correct 53 ms 99228 KB Output is correct
21 Correct 56 ms 95712 KB Output is correct
22 Correct 59 ms 95056 KB Output is correct
23 Correct 55 ms 95056 KB Output is correct
24 Correct 55 ms 100952 KB Output is correct
25 Correct 53 ms 100968 KB Output is correct
26 Correct 56 ms 95464 KB Output is correct
27 Correct 60 ms 95268 KB Output is correct
28 Correct 52 ms 95060 KB Output is correct
29 Correct 70 ms 96336 KB Output is correct
30 Correct 55 ms 98384 KB Output is correct
31 Correct 78 ms 98508 KB Output is correct
32 Correct 75 ms 96596 KB Output is correct
33 Correct 72 ms 96332 KB Output is correct
34 Correct 62 ms 110344 KB Output is correct
35 Correct 73 ms 110344 KB Output is correct
36 Correct 76 ms 96724 KB Output is correct
37 Correct 77 ms 96592 KB Output is correct
38 Correct 70 ms 96348 KB Output is correct
39 Correct 394 ms 115268 KB Output is correct
40 Correct 85 ms 97620 KB Output is correct
41 Correct 79 ms 114044 KB Output is correct
42 Correct 86 ms 97460 KB Output is correct
43 Correct 105 ms 110452 KB Output is correct
44 Correct 199 ms 117444 KB Output is correct
45 Correct 207 ms 120544 KB Output is correct
46 Correct 359 ms 131760 KB Output is correct
47 Correct 403 ms 115464 KB Output is correct
48 Correct 381 ms 115288 KB Output is correct
49 Correct 301 ms 255588 KB Output is correct
50 Correct 300 ms 255588 KB Output is correct
51 Correct 408 ms 116408 KB Output is correct
52 Correct 422 ms 115784 KB Output is correct
53 Correct 379 ms 115340 KB Output is correct
54 Correct 42 ms 94292 KB Output is correct
55 Correct 44 ms 94296 KB Output is correct
56 Correct 43 ms 94292 KB Output is correct
57 Correct 44 ms 94288 KB Output is correct
58 Correct 44 ms 94288 KB Output is correct
59 Correct 45 ms 94296 KB Output is correct
60 Correct 44 ms 94344 KB Output is correct
61 Correct 40 ms 94296 KB Output is correct
62 Correct 44 ms 94300 KB Output is correct
63 Correct 43 ms 94176 KB Output is correct
64 Correct 40 ms 94288 KB Output is correct
65 Correct 43 ms 94296 KB Output is correct
66 Correct 44 ms 94300 KB Output is correct
67 Correct 46 ms 94292 KB Output is correct
68 Correct 44 ms 94292 KB Output is correct
69 Correct 45 ms 94292 KB Output is correct
70 Correct 43 ms 94288 KB Output is correct
71 Correct 42 ms 94292 KB Output is correct
72 Correct 45 ms 94292 KB Output is correct
73 Correct 42 ms 94288 KB Output is correct
74 Correct 44 ms 94296 KB Output is correct
75 Correct 45 ms 94288 KB Output is correct
76 Correct 45 ms 94300 KB Output is correct
77 Correct 42 ms 94292 KB Output is correct
78 Correct 44 ms 94228 KB Output is correct
79 Correct 44 ms 94288 KB Output is correct
80 Correct 44 ms 94288 KB Output is correct
81 Correct 44 ms 94288 KB Output is correct
82 Correct 44 ms 94288 KB Output is correct
83 Correct 46 ms 94236 KB Output is correct
84 Correct 44 ms 94288 KB Output is correct
85 Correct 47 ms 94296 KB Output is correct
86 Correct 43 ms 94300 KB Output is correct
87 Correct 40 ms 94292 KB Output is correct
88 Correct 41 ms 94248 KB Output is correct
89 Correct 41 ms 94292 KB Output is correct
90 Correct 43 ms 94292 KB Output is correct
91 Correct 42 ms 94292 KB Output is correct
92 Correct 44 ms 94288 KB Output is correct
93 Correct 45 ms 94288 KB Output is correct
94 Correct 45 ms 94292 KB Output is correct
95 Correct 44 ms 94312 KB Output is correct
96 Correct 40 ms 94288 KB Output is correct
97 Correct 47 ms 94280 KB Output is correct
98 Correct 45 ms 94288 KB Output is correct
99 Correct 45 ms 94288 KB Output is correct
100 Correct 42 ms 94296 KB Output is correct
101 Correct 45 ms 94392 KB Output is correct
102 Correct 49 ms 94384 KB Output is correct
103 Correct 44 ms 94292 KB Output is correct
104 Correct 44 ms 94288 KB Output is correct
105 Correct 45 ms 94296 KB Output is correct
106 Correct 43 ms 94292 KB Output is correct
107 Correct 44 ms 94300 KB Output is correct
108 Correct 46 ms 94288 KB Output is correct
109 Correct 43 ms 94292 KB Output is correct
110 Correct 52 ms 94804 KB Output is correct
111 Correct 58 ms 95700 KB Output is correct
112 Correct 55 ms 95868 KB Output is correct
113 Correct 57 ms 95704 KB Output is correct
114 Correct 56 ms 96216 KB Output is correct
115 Correct 54 ms 96252 KB Output is correct
116 Correct 57 ms 95452 KB Output is correct
117 Correct 55 ms 95424 KB Output is correct
118 Correct 54 ms 95316 KB Output is correct
119 Correct 71 ms 97228 KB Output is correct
120 Correct 71 ms 98552 KB Output is correct
121 Correct 76 ms 98508 KB Output is correct
122 Correct 78 ms 99960 KB Output is correct
123 Correct 74 ms 100044 KB Output is correct
124 Correct 172 ms 104548 KB Output is correct
125 Correct 351 ms 122820 KB Output is correct
126 Correct 354 ms 131768 KB Output is correct
127 Correct 379 ms 131664 KB Output is correct
128 Correct 379 ms 144980 KB Output is correct
129 Correct 360 ms 145104 KB Output is correct
130 Correct 422 ms 134408 KB Output is correct
131 Correct 415 ms 133780 KB Output is correct
132 Correct 54 ms 95060 KB Output is correct
133 Correct 42 ms 94300 KB Output is correct
134 Correct 42 ms 94464 KB Output is correct
135 Correct 53 ms 94800 KB Output is correct
136 Correct 52 ms 99224 KB Output is correct
137 Correct 58 ms 95704 KB Output is correct
138 Correct 53 ms 95704 KB Output is correct
139 Correct 55 ms 95216 KB Output is correct
140 Correct 53 ms 95060 KB Output is correct
141 Correct 55 ms 95700 KB Output is correct
142 Correct 58 ms 96468 KB Output is correct
143 Correct 56 ms 96216 KB Output is correct
144 Correct 61 ms 100904 KB Output is correct
145 Correct 53 ms 100712 KB Output is correct
146 Correct 52 ms 98384 KB Output is correct
147 Correct 57 ms 95568 KB Output is correct
148 Correct 60 ms 95316 KB Output is correct
149 Correct 64 ms 95408 KB Output is correct
150 Correct 57 ms 95424 KB Output is correct
151 Correct 55 ms 95504 KB Output is correct
152 Correct 50 ms 95324 KB Output is correct
153 Correct 53 ms 95060 KB Output is correct
154 Correct 71 ms 96340 KB Output is correct
155 Correct 57 ms 98400 KB Output is correct
156 Correct 77 ms 97228 KB Output is correct
157 Correct 75 ms 97108 KB Output is correct
158 Correct 77 ms 98764 KB Output is correct
159 Correct 80 ms 96604 KB Output is correct
160 Correct 75 ms 96468 KB Output is correct
161 Correct 74 ms 98512 KB Output is correct
162 Correct 75 ms 100128 KB Output is correct
163 Correct 74 ms 100048 KB Output is correct
164 Correct 67 ms 110340 KB Output is correct
165 Correct 72 ms 110340 KB Output is correct
166 Correct 79 ms 104284 KB Output is correct
167 Correct 73 ms 97104 KB Output is correct
168 Correct 83 ms 96860 KB Output is correct
169 Correct 77 ms 96848 KB Output is correct
170 Correct 77 ms 96988 KB Output is correct
171 Correct 72 ms 96724 KB Output is correct
172 Correct 69 ms 96604 KB Output is correct
173 Correct 74 ms 96572 KB Output is correct
174 Correct 97 ms 98384 KB Output is correct
175 Correct 130 ms 99584 KB Output is correct
176 Correct 213 ms 131184 KB Output is correct
177 Correct 308 ms 113056 KB Output is correct
178 Correct 414 ms 115724 KB Output is correct
179 Correct 399 ms 118228 KB Output is correct
180 Correct 400 ms 117352 KB Output is correct
181 Correct 402 ms 117036 KB Output is correct
182 Correct 391 ms 117848 KB Output is correct
183 Correct 400 ms 121816 KB Output is correct
184 Correct 716 ms 135764 KB Output is correct
185 Correct 476 ms 122484 KB Output is correct
186 Correct 505 ms 135636 KB Output is correct
187 Correct 683 ms 126624 KB Output is correct
188 Correct 667 ms 168868 KB Output is correct
189 Correct 805 ms 136236 KB Output is correct
190 Correct 684 ms 135764 KB Output is correct
191 Correct 709 ms 168856 KB Output is correct
192 Correct 725 ms 195908 KB Output is correct
193 Correct 706 ms 196100 KB Output is correct
194 Correct 544 ms 417144 KB Output is correct
195 Correct 578 ms 417396 KB Output is correct
196 Correct 721 ms 140976 KB Output is correct
197 Correct 743 ms 139656 KB Output is correct
198 Correct 808 ms 138984 KB Output is correct
199 Correct 759 ms 139404 KB Output is correct
200 Correct 860 ms 137900 KB Output is correct
201 Correct 844 ms 136872 KB Output is correct
202 Correct 726 ms 136184 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 43 ms 94292 KB Output is correct
2 Correct 43 ms 94164 KB Output is correct
3 Correct 42 ms 94292 KB Output is correct
4 Correct 43 ms 94288 KB Output is correct
5 Correct 47 ms 94288 KB Output is correct
6 Correct 45 ms 94296 KB Output is correct
7 Correct 41 ms 94492 KB Output is correct
8 Correct 44 ms 94292 KB Output is correct
9 Correct 43 ms 94288 KB Output is correct
10 Correct 43 ms 94292 KB Output is correct
11 Correct 44 ms 94300 KB Output is correct
12 Correct 48 ms 94296 KB Output is correct
13 Correct 42 ms 94288 KB Output is correct
14 Correct 42 ms 94292 KB Output is correct
15 Correct 45 ms 94424 KB Output is correct
16 Correct 44 ms 94288 KB Output is correct
17 Correct 44 ms 94288 KB Output is correct
18 Correct 44 ms 94284 KB Output is correct
19 Correct 50 ms 95056 KB Output is correct
20 Correct 53 ms 99228 KB Output is correct
21 Correct 56 ms 95712 KB Output is correct
22 Correct 59 ms 95056 KB Output is correct
23 Correct 55 ms 95056 KB Output is correct
24 Correct 55 ms 100952 KB Output is correct
25 Correct 53 ms 100968 KB Output is correct
26 Correct 56 ms 95464 KB Output is correct
27 Correct 60 ms 95268 KB Output is correct
28 Correct 52 ms 95060 KB Output is correct
29 Correct 70 ms 96336 KB Output is correct
30 Correct 55 ms 98384 KB Output is correct
31 Correct 78 ms 98508 KB Output is correct
32 Correct 75 ms 96596 KB Output is correct
33 Correct 72 ms 96332 KB Output is correct
34 Correct 62 ms 110344 KB Output is correct
35 Correct 73 ms 110344 KB Output is correct
36 Correct 76 ms 96724 KB Output is correct
37 Correct 77 ms 96592 KB Output is correct
38 Correct 70 ms 96348 KB Output is correct
39 Correct 394 ms 115268 KB Output is correct
40 Correct 85 ms 97620 KB Output is correct
41 Correct 79 ms 114044 KB Output is correct
42 Correct 86 ms 97460 KB Output is correct
43 Correct 105 ms 110452 KB Output is correct
44 Correct 199 ms 117444 KB Output is correct
45 Correct 207 ms 120544 KB Output is correct
46 Correct 359 ms 131760 KB Output is correct
47 Correct 403 ms 115464 KB Output is correct
48 Correct 381 ms 115288 KB Output is correct
49 Correct 301 ms 255588 KB Output is correct
50 Correct 300 ms 255588 KB Output is correct
51 Correct 408 ms 116408 KB Output is correct
52 Correct 422 ms 115784 KB Output is correct
53 Correct 379 ms 115340 KB Output is correct
54 Correct 42 ms 94292 KB Output is correct
55 Correct 44 ms 94296 KB Output is correct
56 Correct 43 ms 94292 KB Output is correct
57 Correct 44 ms 94288 KB Output is correct
58 Correct 44 ms 94288 KB Output is correct
59 Correct 45 ms 94296 KB Output is correct
60 Correct 44 ms 94344 KB Output is correct
61 Correct 40 ms 94296 KB Output is correct
62 Correct 44 ms 94300 KB Output is correct
63 Correct 43 ms 94176 KB Output is correct
64 Correct 40 ms 94288 KB Output is correct
65 Correct 43 ms 94296 KB Output is correct
66 Correct 44 ms 94300 KB Output is correct
67 Correct 46 ms 94292 KB Output is correct
68 Correct 44 ms 94292 KB Output is correct
69 Correct 45 ms 94292 KB Output is correct
70 Correct 43 ms 94288 KB Output is correct
71 Correct 42 ms 94292 KB Output is correct
72 Correct 45 ms 94292 KB Output is correct
73 Correct 42 ms 94288 KB Output is correct
74 Correct 44 ms 94296 KB Output is correct
75 Correct 45 ms 94288 KB Output is correct
76 Correct 45 ms 94300 KB Output is correct
77 Correct 42 ms 94292 KB Output is correct
78 Correct 44 ms 94228 KB Output is correct
79 Correct 44 ms 94288 KB Output is correct
80 Correct 44 ms 94288 KB Output is correct
81 Correct 44 ms 94288 KB Output is correct
82 Correct 44 ms 94288 KB Output is correct
83 Correct 46 ms 94236 KB Output is correct
84 Correct 44 ms 94288 KB Output is correct
85 Correct 47 ms 94296 KB Output is correct
86 Correct 43 ms 94300 KB Output is correct
87 Correct 40 ms 94292 KB Output is correct
88 Correct 41 ms 94248 KB Output is correct
89 Correct 41 ms 94292 KB Output is correct
90 Correct 43 ms 94292 KB Output is correct
91 Correct 42 ms 94292 KB Output is correct
92 Correct 44 ms 94288 KB Output is correct
93 Correct 45 ms 94288 KB Output is correct
94 Correct 45 ms 94292 KB Output is correct
95 Correct 44 ms 94312 KB Output is correct
96 Correct 40 ms 94288 KB Output is correct
97 Correct 47 ms 94280 KB Output is correct
98 Correct 45 ms 94288 KB Output is correct
99 Correct 45 ms 94288 KB Output is correct
100 Correct 42 ms 94296 KB Output is correct
101 Correct 45 ms 94392 KB Output is correct
102 Correct 49 ms 94384 KB Output is correct
103 Correct 44 ms 94292 KB Output is correct
104 Correct 44 ms 94288 KB Output is correct
105 Correct 45 ms 94296 KB Output is correct
106 Correct 43 ms 94292 KB Output is correct
107 Correct 44 ms 94300 KB Output is correct
108 Correct 46 ms 94288 KB Output is correct
109 Correct 43 ms 94292 KB Output is correct
110 Correct 52 ms 94804 KB Output is correct
111 Correct 58 ms 95700 KB Output is correct
112 Correct 55 ms 95868 KB Output is correct
113 Correct 57 ms 95704 KB Output is correct
114 Correct 56 ms 96216 KB Output is correct
115 Correct 54 ms 96252 KB Output is correct
116 Correct 57 ms 95452 KB Output is correct
117 Correct 55 ms 95424 KB Output is correct
118 Correct 54 ms 95316 KB Output is correct
119 Correct 71 ms 97228 KB Output is correct
120 Correct 71 ms 98552 KB Output is correct
121 Correct 76 ms 98508 KB Output is correct
122 Correct 78 ms 99960 KB Output is correct
123 Correct 74 ms 100044 KB Output is correct
124 Correct 172 ms 104548 KB Output is correct
125 Correct 351 ms 122820 KB Output is correct
126 Correct 354 ms 131768 KB Output is correct
127 Correct 379 ms 131664 KB Output is correct
128 Correct 379 ms 144980 KB Output is correct
129 Correct 360 ms 145104 KB Output is correct
130 Correct 422 ms 134408 KB Output is correct
131 Correct 415 ms 133780 KB Output is correct
132 Correct 54 ms 95060 KB Output is correct
133 Correct 42 ms 94300 KB Output is correct
134 Correct 42 ms 94464 KB Output is correct
135 Correct 53 ms 94800 KB Output is correct
136 Correct 52 ms 99224 KB Output is correct
137 Correct 58 ms 95704 KB Output is correct
138 Correct 53 ms 95704 KB Output is correct
139 Correct 55 ms 95216 KB Output is correct
140 Correct 53 ms 95060 KB Output is correct
141 Correct 55 ms 95700 KB Output is correct
142 Correct 58 ms 96468 KB Output is correct
143 Correct 56 ms 96216 KB Output is correct
144 Correct 61 ms 100904 KB Output is correct
145 Correct 53 ms 100712 KB Output is correct
146 Correct 52 ms 98384 KB Output is correct
147 Correct 57 ms 95568 KB Output is correct
148 Correct 60 ms 95316 KB Output is correct
149 Correct 64 ms 95408 KB Output is correct
150 Correct 57 ms 95424 KB Output is correct
151 Correct 55 ms 95504 KB Output is correct
152 Correct 50 ms 95324 KB Output is correct
153 Correct 53 ms 95060 KB Output is correct
154 Correct 71 ms 96340 KB Output is correct
155 Correct 57 ms 98400 KB Output is correct
156 Correct 77 ms 97228 KB Output is correct
157 Correct 75 ms 97108 KB Output is correct
158 Correct 77 ms 98764 KB Output is correct
159 Correct 80 ms 96604 KB Output is correct
160 Correct 75 ms 96468 KB Output is correct
161 Correct 74 ms 98512 KB Output is correct
162 Correct 75 ms 100128 KB Output is correct
163 Correct 74 ms 100048 KB Output is correct
164 Correct 67 ms 110340 KB Output is correct
165 Correct 72 ms 110340 KB Output is correct
166 Correct 79 ms 104284 KB Output is correct
167 Correct 73 ms 97104 KB Output is correct
168 Correct 83 ms 96860 KB Output is correct
169 Correct 77 ms 96848 KB Output is correct
170 Correct 77 ms 96988 KB Output is correct
171 Correct 72 ms 96724 KB Output is correct
172 Correct 69 ms 96604 KB Output is correct
173 Correct 74 ms 96572 KB Output is correct
174 Correct 97 ms 98384 KB Output is correct
175 Correct 130 ms 99584 KB Output is correct
176 Correct 213 ms 131184 KB Output is correct
177 Correct 308 ms 113056 KB Output is correct
178 Correct 414 ms 115724 KB Output is correct
179 Correct 399 ms 118228 KB Output is correct
180 Correct 400 ms 117352 KB Output is correct
181 Correct 402 ms 117036 KB Output is correct
182 Correct 391 ms 117848 KB Output is correct
183 Correct 400 ms 121816 KB Output is correct
184 Correct 716 ms 135764 KB Output is correct
185 Correct 476 ms 122484 KB Output is correct
186 Correct 505 ms 135636 KB Output is correct
187 Correct 683 ms 126624 KB Output is correct
188 Correct 667 ms 168868 KB Output is correct
189 Correct 805 ms 136236 KB Output is correct
190 Correct 684 ms 135764 KB Output is correct
191 Correct 709 ms 168856 KB Output is correct
192 Correct 725 ms 195908 KB Output is correct
193 Correct 706 ms 196100 KB Output is correct
194 Correct 544 ms 417144 KB Output is correct
195 Correct 578 ms 417396 KB Output is correct
196 Correct 721 ms 140976 KB Output is correct
197 Correct 743 ms 139656 KB Output is correct
198 Correct 808 ms 138984 KB Output is correct
199 Correct 759 ms 139404 KB Output is correct
200 Correct 860 ms 137900 KB Output is correct
201 Correct 844 ms 136872 KB Output is correct
202 Correct 726 ms 136184 KB Output is correct
203 Correct 1458 ms 177112 KB Output is correct
204 Correct 760 ms 147760 KB Output is correct
205 Correct 1178 ms 146100 KB Output is correct
206 Correct 1258 ms 193780 KB Output is correct
207 Correct 1294 ms 242800 KB Output is correct
208 Correct 1718 ms 177688 KB Output is correct
209 Correct 1442 ms 176984 KB Output is correct
210 Correct 1502 ms 242800 KB Output is correct
211 Correct 1512 ms 295692 KB Output is correct
212 Correct 1365 ms 295432 KB Output is correct
213 Correct 1046 ms 739988 KB Output is correct
214 Correct 1086 ms 739988 KB Output is correct
215 Correct 1454 ms 185448 KB Output is correct
216 Correct 1444 ms 183356 KB Output is correct
217 Correct 1470 ms 182268 KB Output is correct
218 Correct 1479 ms 184072 KB Output is correct
219 Correct 1587 ms 217512 KB Output is correct
220 Correct 1586 ms 227364 KB Output is correct
221 Correct 1681 ms 250620 KB Output is correct
222 Correct 1649 ms 248148 KB Output is correct
223 Correct 1717 ms 179424 KB Output is correct
224 Correct 1803 ms 178332 KB Output is correct
225 Correct 1500 ms 177428 KB Output is correct