답안 #763579

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
763579 2023-06-22T13:14:55 Z caganyanmaz Maze (JOI23_ho_t3) C++17
100 / 100
980 ms 306776 KB
#include <bits/stdc++.h>
#define pb push_back
using namespace std;

constexpr static int MAX_R = 2500;


int r, c, n;
vector<int> min_dist[MAX_R];
vector<vector<array<int, 2>>> steps;
vector<bool> white[MAX_R];
vector<bool> visited[MAX_R];
vector<bool> seen[MAX_R];


void clean_dfs(int x, int y, int step);

void clean_check(int x, int y, int step)
{
        if (c > x && x >= 0 && r > y && y >= 0 && !visited[y][x] && white[y][x])
                clean_dfs(x, y, step);
}

void clean_dfs(int x, int y, int step)
{
        visited[y][x] = true;
        min_dist[y][x] = step;
        if (!seen[y][x])
                steps[step].pb({x, y});
        clean_check(x-1, y, step);
        clean_check(x+1, y, step);
        clean_check(x, y-1, step);
        clean_check(x, y+1, step);
}

vector<int> bvert[MAX_R];
vector<int> bhrz[MAX_R];
void bfs(int step)
{
        queue<array<int, 2>> vq, hq;
        for (array<int, 2> pos : steps[step])
                vq.push(pos);
        while (vq.size())
        {
                auto [x, y] = vq.front();
                vq.pop();
                if (min_dist[y][x] == step)
                        bvert[y][x] = 0;
                for (int dy = -1; dy <= 1; dy+=2)
                {
                        if (r > y+dy && y+dy >= 0 && !visited[y+dy][x] && !seen[y+dy][x])
                        {
                                seen[y+dy][x] = true;
                                min_dist[y+dy][x] = step + 1;
                                steps[step+1].pb({x, y+dy});
                                bvert[y+dy][x] = bvert[y][x]+1;
                                if (bvert[y+dy][x] < n)
                                        vq.push({x, y+dy});
                        }
                }
        }
        vector<array<int, 2>> lasts;
        for (array<int, 2> pos : steps[step])
                hq.push(pos);
        for (array<int, 2> pos : steps[step+1])
                if (bvert[pos[1]][pos[0]] < n)
                        hq.push(pos);
                else
                        lasts.push_back(pos);
        if (n > 1)
                for (array<int, 2> pos : lasts)
                        hq.push(pos);
        while (hq.size())
        {
                auto [x, y] = hq.front();
                hq.pop();
                if (bvert[y][x] != -1 && bvert[y][x] < n)
                        bhrz[y][x] = 0;
                else if (bvert[y][x] != -1 && bvert[y][x] == n)
                        bhrz[y][x] = 1;
                for (int dx = -1; dx <= 1; dx+=2)
                {
                        if (c > x+dx && x+dx >= 0 && !visited[y][x+dx] && !seen[y][x+dx])
                        {
                                seen[y][x+dx] = true;
                                min_dist[y][x+dx] = step + 1;
                                steps[step+1].pb({x+dx, y});
                                bhrz[y][x+dx] = bhrz[y][x]+1;
                                if (bhrz[y][x+dx] < n)
                                        hq.push({x+dx, y});
                        }
                }
        }
}



int main()
{
        cin >> r >> c >> n;
        int sx, sy, ex, ey;
        cin >> sy >> sx;
        cin >> ey >> ex;
        sy--, sx--, ey--, ex--;
        for (int y = 0; y < r; y++)
        {
                string s;
                white[y] = vector<bool>(c);
                visited[y] = vector<bool>(c);
                min_dist[y] = vector<int>(c);
                bvert[y] = vector<int>(c, -1);
                bhrz[y] = vector<int>(c, -1);
                seen[y] = vector<bool>(c, false);
                cin >> s;
                for (int x = 0; x < c; x++)
                        white[y][x] = s[x] == '.';
        }
        steps.pb(vector<array<int, 2>>(0));
        int current_step = 0;
        clean_dfs(sx, sy, 0);
        for (auto [x, y] : steps[current_step])
        while (!visited[ey][ex] && !seen[ey][ex])
        {
                steps.pb(vector<array<int, 2>>(0));
                bfs(current_step);
                current_step++;
                for (int i = steps[current_step].size()-1; i >= 0; i--)
                {
                        auto [x, y] = steps[current_step][i];
                        if (!visited[y][x])
                                clean_dfs(x, y, current_step);
                }
        }
        cout << min_dist[ey][ex] << "\n";
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:121:19: warning: structured binding declaration set but not used [-Wunused-but-set-variable]
  121 |         for (auto [x, y] : steps[current_step])
      |                   ^~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 1 ms 724 KB Output is correct
3 Correct 1 ms 724 KB Output is correct
4 Correct 1 ms 724 KB Output is correct
5 Correct 1 ms 724 KB Output is correct
6 Correct 1 ms 768 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 1 ms 724 KB Output is correct
9 Correct 1 ms 724 KB Output is correct
10 Correct 1 ms 724 KB Output is correct
11 Correct 1 ms 724 KB Output is correct
12 Correct 1 ms 772 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 724 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 724 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 5 ms 2004 KB Output is correct
20 Correct 7 ms 2968 KB Output is correct
21 Correct 4 ms 3032 KB Output is correct
22 Correct 6 ms 2060 KB Output is correct
23 Correct 5 ms 2132 KB Output is correct
24 Correct 4 ms 2132 KB Output is correct
25 Correct 9 ms 4108 KB Output is correct
26 Correct 2 ms 1620 KB Output is correct
27 Correct 2 ms 1620 KB Output is correct
28 Correct 3 ms 1876 KB Output is correct
29 Correct 14 ms 4416 KB Output is correct
30 Correct 6 ms 2132 KB Output is correct
31 Correct 10 ms 8776 KB Output is correct
32 Correct 17 ms 4104 KB Output is correct
33 Correct 13 ms 4308 KB Output is correct
34 Correct 11 ms 4432 KB Output is correct
35 Correct 25 ms 9448 KB Output is correct
36 Correct 9 ms 3668 KB Output is correct
37 Correct 12 ms 3860 KB Output is correct
38 Correct 4 ms 2900 KB Output is correct
39 Correct 184 ms 34856 KB Output is correct
40 Correct 7 ms 3440 KB Output is correct
41 Correct 10 ms 4140 KB Output is correct
42 Correct 22 ms 6160 KB Output is correct
43 Correct 22 ms 6324 KB Output is correct
44 Correct 33 ms 13012 KB Output is correct
45 Correct 49 ms 14880 KB Output is correct
46 Correct 96 ms 76596 KB Output is correct
47 Correct 152 ms 31688 KB Output is correct
48 Correct 176 ms 32372 KB Output is correct
49 Correct 78 ms 31444 KB Output is correct
50 Correct 157 ms 61432 KB Output is correct
51 Correct 113 ms 29332 KB Output is correct
52 Correct 101 ms 26680 KB Output is correct
53 Correct 160 ms 31548 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 1 ms 724 KB Output is correct
3 Correct 1 ms 724 KB Output is correct
4 Correct 1 ms 724 KB Output is correct
5 Correct 1 ms 776 KB Output is correct
6 Correct 1 ms 724 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 1 ms 724 KB Output is correct
9 Correct 1 ms 772 KB Output is correct
10 Correct 1 ms 724 KB Output is correct
11 Correct 1 ms 724 KB Output is correct
12 Correct 1 ms 724 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 768 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 724 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 1 ms 724 KB Output is correct
20 Correct 1 ms 772 KB Output is correct
21 Correct 1 ms 772 KB Output is correct
22 Correct 1 ms 772 KB Output is correct
23 Correct 1 ms 724 KB Output is correct
24 Correct 1 ms 724 KB Output is correct
25 Correct 1 ms 724 KB Output is correct
26 Correct 1 ms 852 KB Output is correct
27 Correct 1 ms 724 KB Output is correct
28 Correct 1 ms 752 KB Output is correct
29 Correct 1 ms 768 KB Output is correct
30 Correct 1 ms 724 KB Output is correct
31 Correct 1 ms 724 KB Output is correct
32 Correct 1 ms 724 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 776 KB Output is correct
2 Correct 1 ms 724 KB Output is correct
3 Correct 1 ms 724 KB Output is correct
4 Correct 1 ms 724 KB Output is correct
5 Correct 1 ms 724 KB Output is correct
6 Correct 1 ms 724 KB Output is correct
7 Correct 1 ms 796 KB Output is correct
8 Correct 1 ms 724 KB Output is correct
9 Correct 1 ms 724 KB Output is correct
10 Correct 1 ms 768 KB Output is correct
11 Correct 1 ms 724 KB Output is correct
12 Correct 1 ms 772 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 724 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 724 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 1 ms 724 KB Output is correct
20 Correct 1 ms 724 KB Output is correct
21 Correct 1 ms 724 KB Output is correct
22 Correct 1 ms 724 KB Output is correct
23 Correct 1 ms 724 KB Output is correct
24 Correct 1 ms 724 KB Output is correct
25 Correct 2 ms 1236 KB Output is correct
26 Correct 4 ms 2896 KB Output is correct
27 Correct 4 ms 3032 KB Output is correct
28 Correct 5 ms 3724 KB Output is correct
29 Correct 6 ms 2164 KB Output is correct
30 Correct 4 ms 2140 KB Output is correct
31 Correct 4 ms 1876 KB Output is correct
32 Correct 3 ms 1680 KB Output is correct
33 Correct 2 ms 1616 KB Output is correct
34 Correct 7 ms 4940 KB Output is correct
35 Correct 10 ms 8776 KB Output is correct
36 Correct 10 ms 9416 KB Output is correct
37 Correct 13 ms 4936 KB Output is correct
38 Correct 14 ms 4936 KB Output is correct
39 Correct 25 ms 15368 KB Output is correct
40 Correct 68 ms 34148 KB Output is correct
41 Correct 95 ms 76496 KB Output is correct
42 Correct 95 ms 76128 KB Output is correct
43 Correct 174 ms 37088 KB Output is correct
44 Correct 158 ms 37000 KB Output is correct
45 Correct 90 ms 34396 KB Output is correct
46 Correct 83 ms 35252 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 1 ms 724 KB Output is correct
3 Correct 1 ms 724 KB Output is correct
4 Correct 1 ms 724 KB Output is correct
5 Correct 1 ms 776 KB Output is correct
6 Correct 1 ms 724 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 1 ms 724 KB Output is correct
9 Correct 1 ms 772 KB Output is correct
10 Correct 1 ms 724 KB Output is correct
11 Correct 1 ms 724 KB Output is correct
12 Correct 1 ms 724 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 768 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 724 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 1 ms 724 KB Output is correct
20 Correct 1 ms 772 KB Output is correct
21 Correct 1 ms 772 KB Output is correct
22 Correct 1 ms 772 KB Output is correct
23 Correct 1 ms 724 KB Output is correct
24 Correct 1 ms 724 KB Output is correct
25 Correct 1 ms 724 KB Output is correct
26 Correct 1 ms 852 KB Output is correct
27 Correct 1 ms 724 KB Output is correct
28 Correct 1 ms 752 KB Output is correct
29 Correct 1 ms 768 KB Output is correct
30 Correct 1 ms 724 KB Output is correct
31 Correct 1 ms 724 KB Output is correct
32 Correct 1 ms 724 KB Output is correct
33 Correct 6 ms 2004 KB Output is correct
34 Correct 1 ms 724 KB Output is correct
35 Correct 1 ms 852 KB Output is correct
36 Correct 3 ms 1236 KB Output is correct
37 Correct 9 ms 2956 KB Output is correct
38 Correct 4 ms 2896 KB Output is correct
39 Correct 4 ms 3032 KB Output is correct
40 Correct 6 ms 1996 KB Output is correct
41 Correct 5 ms 2132 KB Output is correct
42 Correct 5 ms 3704 KB Output is correct
43 Correct 7 ms 2200 KB Output is correct
44 Correct 5 ms 2136 KB Output is correct
45 Correct 4 ms 2120 KB Output is correct
46 Correct 9 ms 4068 KB Output is correct
47 Correct 6 ms 2264 KB Output is correct
48 Correct 6 ms 2080 KB Output is correct
49 Correct 5 ms 1932 KB Output is correct
50 Correct 6 ms 2096 KB Output is correct
51 Correct 4 ms 1876 KB Output is correct
52 Correct 3 ms 1716 KB Output is correct
53 Correct 3 ms 1620 KB Output is correct
54 Correct 4 ms 1780 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 1 ms 724 KB Output is correct
3 Correct 1 ms 724 KB Output is correct
4 Correct 1 ms 724 KB Output is correct
5 Correct 1 ms 776 KB Output is correct
6 Correct 1 ms 724 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 1 ms 724 KB Output is correct
9 Correct 1 ms 772 KB Output is correct
10 Correct 1 ms 724 KB Output is correct
11 Correct 1 ms 724 KB Output is correct
12 Correct 1 ms 724 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 768 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 724 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 1 ms 724 KB Output is correct
20 Correct 1 ms 772 KB Output is correct
21 Correct 1 ms 772 KB Output is correct
22 Correct 1 ms 772 KB Output is correct
23 Correct 1 ms 724 KB Output is correct
24 Correct 1 ms 724 KB Output is correct
25 Correct 1 ms 724 KB Output is correct
26 Correct 1 ms 852 KB Output is correct
27 Correct 1 ms 724 KB Output is correct
28 Correct 1 ms 752 KB Output is correct
29 Correct 1 ms 768 KB Output is correct
30 Correct 1 ms 724 KB Output is correct
31 Correct 1 ms 724 KB Output is correct
32 Correct 1 ms 724 KB Output is correct
33 Correct 6 ms 2004 KB Output is correct
34 Correct 1 ms 724 KB Output is correct
35 Correct 1 ms 852 KB Output is correct
36 Correct 3 ms 1236 KB Output is correct
37 Correct 9 ms 2956 KB Output is correct
38 Correct 4 ms 2896 KB Output is correct
39 Correct 4 ms 3032 KB Output is correct
40 Correct 6 ms 1996 KB Output is correct
41 Correct 5 ms 2132 KB Output is correct
42 Correct 5 ms 3704 KB Output is correct
43 Correct 7 ms 2200 KB Output is correct
44 Correct 5 ms 2136 KB Output is correct
45 Correct 4 ms 2120 KB Output is correct
46 Correct 9 ms 4068 KB Output is correct
47 Correct 6 ms 2264 KB Output is correct
48 Correct 6 ms 2080 KB Output is correct
49 Correct 5 ms 1932 KB Output is correct
50 Correct 6 ms 2096 KB Output is correct
51 Correct 4 ms 1876 KB Output is correct
52 Correct 3 ms 1716 KB Output is correct
53 Correct 3 ms 1620 KB Output is correct
54 Correct 4 ms 1780 KB Output is correct
55 Correct 15 ms 4352 KB Output is correct
56 Correct 9 ms 2132 KB Output is correct
57 Correct 8 ms 4940 KB Output is correct
58 Correct 17 ms 3668 KB Output is correct
59 Correct 12 ms 8776 KB Output is correct
60 Correct 15 ms 4052 KB Output is correct
61 Correct 14 ms 4248 KB Output is correct
62 Correct 10 ms 9396 KB Output is correct
63 Correct 14 ms 4848 KB Output is correct
64 Correct 10 ms 4936 KB Output is correct
65 Correct 10 ms 4432 KB Output is correct
66 Correct 25 ms 9416 KB Output is correct
67 Correct 16 ms 5128 KB Output is correct
68 Correct 14 ms 4308 KB Output is correct
69 Correct 14 ms 4252 KB Output is correct
70 Correct 15 ms 4052 KB Output is correct
71 Correct 14 ms 3872 KB Output is correct
72 Correct 9 ms 3668 KB Output is correct
73 Correct 12 ms 3836 KB Output is correct
74 Correct 6 ms 2900 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 1 ms 724 KB Output is correct
3 Correct 1 ms 724 KB Output is correct
4 Correct 1 ms 724 KB Output is correct
5 Correct 1 ms 724 KB Output is correct
6 Correct 1 ms 768 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 1 ms 724 KB Output is correct
9 Correct 1 ms 724 KB Output is correct
10 Correct 1 ms 724 KB Output is correct
11 Correct 1 ms 724 KB Output is correct
12 Correct 1 ms 772 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 724 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 724 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 5 ms 2004 KB Output is correct
20 Correct 7 ms 2968 KB Output is correct
21 Correct 4 ms 3032 KB Output is correct
22 Correct 6 ms 2060 KB Output is correct
23 Correct 5 ms 2132 KB Output is correct
24 Correct 4 ms 2132 KB Output is correct
25 Correct 9 ms 4108 KB Output is correct
26 Correct 2 ms 1620 KB Output is correct
27 Correct 2 ms 1620 KB Output is correct
28 Correct 3 ms 1876 KB Output is correct
29 Correct 14 ms 4416 KB Output is correct
30 Correct 6 ms 2132 KB Output is correct
31 Correct 10 ms 8776 KB Output is correct
32 Correct 17 ms 4104 KB Output is correct
33 Correct 13 ms 4308 KB Output is correct
34 Correct 11 ms 4432 KB Output is correct
35 Correct 25 ms 9448 KB Output is correct
36 Correct 9 ms 3668 KB Output is correct
37 Correct 12 ms 3860 KB Output is correct
38 Correct 4 ms 2900 KB Output is correct
39 Correct 184 ms 34856 KB Output is correct
40 Correct 7 ms 3440 KB Output is correct
41 Correct 10 ms 4140 KB Output is correct
42 Correct 22 ms 6160 KB Output is correct
43 Correct 22 ms 6324 KB Output is correct
44 Correct 33 ms 13012 KB Output is correct
45 Correct 49 ms 14880 KB Output is correct
46 Correct 96 ms 76596 KB Output is correct
47 Correct 152 ms 31688 KB Output is correct
48 Correct 176 ms 32372 KB Output is correct
49 Correct 78 ms 31444 KB Output is correct
50 Correct 157 ms 61432 KB Output is correct
51 Correct 113 ms 29332 KB Output is correct
52 Correct 101 ms 26680 KB Output is correct
53 Correct 160 ms 31548 KB Output is correct
54 Correct 1 ms 724 KB Output is correct
55 Correct 1 ms 724 KB Output is correct
56 Correct 1 ms 724 KB Output is correct
57 Correct 1 ms 724 KB Output is correct
58 Correct 1 ms 776 KB Output is correct
59 Correct 1 ms 724 KB Output is correct
60 Correct 1 ms 724 KB Output is correct
61 Correct 1 ms 724 KB Output is correct
62 Correct 1 ms 772 KB Output is correct
63 Correct 1 ms 724 KB Output is correct
64 Correct 1 ms 724 KB Output is correct
65 Correct 1 ms 724 KB Output is correct
66 Correct 1 ms 724 KB Output is correct
67 Correct 1 ms 768 KB Output is correct
68 Correct 1 ms 724 KB Output is correct
69 Correct 1 ms 724 KB Output is correct
70 Correct 1 ms 724 KB Output is correct
71 Correct 1 ms 724 KB Output is correct
72 Correct 1 ms 724 KB Output is correct
73 Correct 1 ms 772 KB Output is correct
74 Correct 1 ms 772 KB Output is correct
75 Correct 1 ms 772 KB Output is correct
76 Correct 1 ms 724 KB Output is correct
77 Correct 1 ms 724 KB Output is correct
78 Correct 1 ms 724 KB Output is correct
79 Correct 1 ms 852 KB Output is correct
80 Correct 1 ms 724 KB Output is correct
81 Correct 1 ms 752 KB Output is correct
82 Correct 1 ms 768 KB Output is correct
83 Correct 1 ms 724 KB Output is correct
84 Correct 1 ms 724 KB Output is correct
85 Correct 1 ms 724 KB Output is correct
86 Correct 1 ms 776 KB Output is correct
87 Correct 1 ms 724 KB Output is correct
88 Correct 1 ms 724 KB Output is correct
89 Correct 1 ms 724 KB Output is correct
90 Correct 1 ms 724 KB Output is correct
91 Correct 1 ms 724 KB Output is correct
92 Correct 1 ms 796 KB Output is correct
93 Correct 1 ms 724 KB Output is correct
94 Correct 1 ms 724 KB Output is correct
95 Correct 1 ms 768 KB Output is correct
96 Correct 1 ms 724 KB Output is correct
97 Correct 1 ms 772 KB Output is correct
98 Correct 1 ms 724 KB Output is correct
99 Correct 1 ms 724 KB Output is correct
100 Correct 1 ms 724 KB Output is correct
101 Correct 1 ms 724 KB Output is correct
102 Correct 1 ms 724 KB Output is correct
103 Correct 1 ms 724 KB Output is correct
104 Correct 1 ms 724 KB Output is correct
105 Correct 1 ms 724 KB Output is correct
106 Correct 1 ms 724 KB Output is correct
107 Correct 1 ms 724 KB Output is correct
108 Correct 1 ms 724 KB Output is correct
109 Correct 1 ms 724 KB Output is correct
110 Correct 2 ms 1236 KB Output is correct
111 Correct 4 ms 2896 KB Output is correct
112 Correct 4 ms 3032 KB Output is correct
113 Correct 5 ms 3724 KB Output is correct
114 Correct 6 ms 2164 KB Output is correct
115 Correct 4 ms 2140 KB Output is correct
116 Correct 4 ms 1876 KB Output is correct
117 Correct 3 ms 1680 KB Output is correct
118 Correct 2 ms 1616 KB Output is correct
119 Correct 7 ms 4940 KB Output is correct
120 Correct 10 ms 8776 KB Output is correct
121 Correct 10 ms 9416 KB Output is correct
122 Correct 13 ms 4936 KB Output is correct
123 Correct 14 ms 4936 KB Output is correct
124 Correct 25 ms 15368 KB Output is correct
125 Correct 68 ms 34148 KB Output is correct
126 Correct 95 ms 76496 KB Output is correct
127 Correct 95 ms 76128 KB Output is correct
128 Correct 174 ms 37088 KB Output is correct
129 Correct 158 ms 37000 KB Output is correct
130 Correct 90 ms 34396 KB Output is correct
131 Correct 83 ms 35252 KB Output is correct
132 Correct 6 ms 2004 KB Output is correct
133 Correct 1 ms 724 KB Output is correct
134 Correct 1 ms 852 KB Output is correct
135 Correct 3 ms 1236 KB Output is correct
136 Correct 9 ms 2956 KB Output is correct
137 Correct 4 ms 2896 KB Output is correct
138 Correct 4 ms 3032 KB Output is correct
139 Correct 6 ms 1996 KB Output is correct
140 Correct 5 ms 2132 KB Output is correct
141 Correct 5 ms 3704 KB Output is correct
142 Correct 7 ms 2200 KB Output is correct
143 Correct 5 ms 2136 KB Output is correct
144 Correct 4 ms 2120 KB Output is correct
145 Correct 9 ms 4068 KB Output is correct
146 Correct 6 ms 2264 KB Output is correct
147 Correct 6 ms 2080 KB Output is correct
148 Correct 5 ms 1932 KB Output is correct
149 Correct 6 ms 2096 KB Output is correct
150 Correct 4 ms 1876 KB Output is correct
151 Correct 3 ms 1716 KB Output is correct
152 Correct 3 ms 1620 KB Output is correct
153 Correct 4 ms 1780 KB Output is correct
154 Correct 15 ms 4352 KB Output is correct
155 Correct 9 ms 2132 KB Output is correct
156 Correct 8 ms 4940 KB Output is correct
157 Correct 17 ms 3668 KB Output is correct
158 Correct 12 ms 8776 KB Output is correct
159 Correct 15 ms 4052 KB Output is correct
160 Correct 14 ms 4248 KB Output is correct
161 Correct 10 ms 9396 KB Output is correct
162 Correct 14 ms 4848 KB Output is correct
163 Correct 10 ms 4936 KB Output is correct
164 Correct 10 ms 4432 KB Output is correct
165 Correct 25 ms 9416 KB Output is correct
166 Correct 16 ms 5128 KB Output is correct
167 Correct 14 ms 4308 KB Output is correct
168 Correct 14 ms 4252 KB Output is correct
169 Correct 15 ms 4052 KB Output is correct
170 Correct 14 ms 3872 KB Output is correct
171 Correct 9 ms 3668 KB Output is correct
172 Correct 12 ms 3836 KB Output is correct
173 Correct 6 ms 2900 KB Output is correct
174 Correct 9 ms 3908 KB Output is correct
175 Correct 33 ms 8324 KB Output is correct
176 Correct 38 ms 13752 KB Output is correct
177 Correct 79 ms 23120 KB Output is correct
178 Correct 36 ms 18760 KB Output is correct
179 Correct 94 ms 27504 KB Output is correct
180 Correct 157 ms 31864 KB Output is correct
181 Correct 172 ms 31852 KB Output is correct
182 Correct 173 ms 33064 KB Output is correct
183 Correct 148 ms 33920 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 1 ms 724 KB Output is correct
3 Correct 1 ms 724 KB Output is correct
4 Correct 1 ms 724 KB Output is correct
5 Correct 1 ms 724 KB Output is correct
6 Correct 1 ms 768 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 1 ms 724 KB Output is correct
9 Correct 1 ms 724 KB Output is correct
10 Correct 1 ms 724 KB Output is correct
11 Correct 1 ms 724 KB Output is correct
12 Correct 1 ms 772 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 724 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 724 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 5 ms 2004 KB Output is correct
20 Correct 7 ms 2968 KB Output is correct
21 Correct 4 ms 3032 KB Output is correct
22 Correct 6 ms 2060 KB Output is correct
23 Correct 5 ms 2132 KB Output is correct
24 Correct 4 ms 2132 KB Output is correct
25 Correct 9 ms 4108 KB Output is correct
26 Correct 2 ms 1620 KB Output is correct
27 Correct 2 ms 1620 KB Output is correct
28 Correct 3 ms 1876 KB Output is correct
29 Correct 14 ms 4416 KB Output is correct
30 Correct 6 ms 2132 KB Output is correct
31 Correct 10 ms 8776 KB Output is correct
32 Correct 17 ms 4104 KB Output is correct
33 Correct 13 ms 4308 KB Output is correct
34 Correct 11 ms 4432 KB Output is correct
35 Correct 25 ms 9448 KB Output is correct
36 Correct 9 ms 3668 KB Output is correct
37 Correct 12 ms 3860 KB Output is correct
38 Correct 4 ms 2900 KB Output is correct
39 Correct 184 ms 34856 KB Output is correct
40 Correct 7 ms 3440 KB Output is correct
41 Correct 10 ms 4140 KB Output is correct
42 Correct 22 ms 6160 KB Output is correct
43 Correct 22 ms 6324 KB Output is correct
44 Correct 33 ms 13012 KB Output is correct
45 Correct 49 ms 14880 KB Output is correct
46 Correct 96 ms 76596 KB Output is correct
47 Correct 152 ms 31688 KB Output is correct
48 Correct 176 ms 32372 KB Output is correct
49 Correct 78 ms 31444 KB Output is correct
50 Correct 157 ms 61432 KB Output is correct
51 Correct 113 ms 29332 KB Output is correct
52 Correct 101 ms 26680 KB Output is correct
53 Correct 160 ms 31548 KB Output is correct
54 Correct 1 ms 724 KB Output is correct
55 Correct 1 ms 724 KB Output is correct
56 Correct 1 ms 724 KB Output is correct
57 Correct 1 ms 724 KB Output is correct
58 Correct 1 ms 776 KB Output is correct
59 Correct 1 ms 724 KB Output is correct
60 Correct 1 ms 724 KB Output is correct
61 Correct 1 ms 724 KB Output is correct
62 Correct 1 ms 772 KB Output is correct
63 Correct 1 ms 724 KB Output is correct
64 Correct 1 ms 724 KB Output is correct
65 Correct 1 ms 724 KB Output is correct
66 Correct 1 ms 724 KB Output is correct
67 Correct 1 ms 768 KB Output is correct
68 Correct 1 ms 724 KB Output is correct
69 Correct 1 ms 724 KB Output is correct
70 Correct 1 ms 724 KB Output is correct
71 Correct 1 ms 724 KB Output is correct
72 Correct 1 ms 724 KB Output is correct
73 Correct 1 ms 772 KB Output is correct
74 Correct 1 ms 772 KB Output is correct
75 Correct 1 ms 772 KB Output is correct
76 Correct 1 ms 724 KB Output is correct
77 Correct 1 ms 724 KB Output is correct
78 Correct 1 ms 724 KB Output is correct
79 Correct 1 ms 852 KB Output is correct
80 Correct 1 ms 724 KB Output is correct
81 Correct 1 ms 752 KB Output is correct
82 Correct 1 ms 768 KB Output is correct
83 Correct 1 ms 724 KB Output is correct
84 Correct 1 ms 724 KB Output is correct
85 Correct 1 ms 724 KB Output is correct
86 Correct 1 ms 776 KB Output is correct
87 Correct 1 ms 724 KB Output is correct
88 Correct 1 ms 724 KB Output is correct
89 Correct 1 ms 724 KB Output is correct
90 Correct 1 ms 724 KB Output is correct
91 Correct 1 ms 724 KB Output is correct
92 Correct 1 ms 796 KB Output is correct
93 Correct 1 ms 724 KB Output is correct
94 Correct 1 ms 724 KB Output is correct
95 Correct 1 ms 768 KB Output is correct
96 Correct 1 ms 724 KB Output is correct
97 Correct 1 ms 772 KB Output is correct
98 Correct 1 ms 724 KB Output is correct
99 Correct 1 ms 724 KB Output is correct
100 Correct 1 ms 724 KB Output is correct
101 Correct 1 ms 724 KB Output is correct
102 Correct 1 ms 724 KB Output is correct
103 Correct 1 ms 724 KB Output is correct
104 Correct 1 ms 724 KB Output is correct
105 Correct 1 ms 724 KB Output is correct
106 Correct 1 ms 724 KB Output is correct
107 Correct 1 ms 724 KB Output is correct
108 Correct 1 ms 724 KB Output is correct
109 Correct 1 ms 724 KB Output is correct
110 Correct 2 ms 1236 KB Output is correct
111 Correct 4 ms 2896 KB Output is correct
112 Correct 4 ms 3032 KB Output is correct
113 Correct 5 ms 3724 KB Output is correct
114 Correct 6 ms 2164 KB Output is correct
115 Correct 4 ms 2140 KB Output is correct
116 Correct 4 ms 1876 KB Output is correct
117 Correct 3 ms 1680 KB Output is correct
118 Correct 2 ms 1616 KB Output is correct
119 Correct 7 ms 4940 KB Output is correct
120 Correct 10 ms 8776 KB Output is correct
121 Correct 10 ms 9416 KB Output is correct
122 Correct 13 ms 4936 KB Output is correct
123 Correct 14 ms 4936 KB Output is correct
124 Correct 25 ms 15368 KB Output is correct
125 Correct 68 ms 34148 KB Output is correct
126 Correct 95 ms 76496 KB Output is correct
127 Correct 95 ms 76128 KB Output is correct
128 Correct 174 ms 37088 KB Output is correct
129 Correct 158 ms 37000 KB Output is correct
130 Correct 90 ms 34396 KB Output is correct
131 Correct 83 ms 35252 KB Output is correct
132 Correct 6 ms 2004 KB Output is correct
133 Correct 1 ms 724 KB Output is correct
134 Correct 1 ms 852 KB Output is correct
135 Correct 3 ms 1236 KB Output is correct
136 Correct 9 ms 2956 KB Output is correct
137 Correct 4 ms 2896 KB Output is correct
138 Correct 4 ms 3032 KB Output is correct
139 Correct 6 ms 1996 KB Output is correct
140 Correct 5 ms 2132 KB Output is correct
141 Correct 5 ms 3704 KB Output is correct
142 Correct 7 ms 2200 KB Output is correct
143 Correct 5 ms 2136 KB Output is correct
144 Correct 4 ms 2120 KB Output is correct
145 Correct 9 ms 4068 KB Output is correct
146 Correct 6 ms 2264 KB Output is correct
147 Correct 6 ms 2080 KB Output is correct
148 Correct 5 ms 1932 KB Output is correct
149 Correct 6 ms 2096 KB Output is correct
150 Correct 4 ms 1876 KB Output is correct
151 Correct 3 ms 1716 KB Output is correct
152 Correct 3 ms 1620 KB Output is correct
153 Correct 4 ms 1780 KB Output is correct
154 Correct 15 ms 4352 KB Output is correct
155 Correct 9 ms 2132 KB Output is correct
156 Correct 8 ms 4940 KB Output is correct
157 Correct 17 ms 3668 KB Output is correct
158 Correct 12 ms 8776 KB Output is correct
159 Correct 15 ms 4052 KB Output is correct
160 Correct 14 ms 4248 KB Output is correct
161 Correct 10 ms 9396 KB Output is correct
162 Correct 14 ms 4848 KB Output is correct
163 Correct 10 ms 4936 KB Output is correct
164 Correct 10 ms 4432 KB Output is correct
165 Correct 25 ms 9416 KB Output is correct
166 Correct 16 ms 5128 KB Output is correct
167 Correct 14 ms 4308 KB Output is correct
168 Correct 14 ms 4252 KB Output is correct
169 Correct 15 ms 4052 KB Output is correct
170 Correct 14 ms 3872 KB Output is correct
171 Correct 9 ms 3668 KB Output is correct
172 Correct 12 ms 3836 KB Output is correct
173 Correct 6 ms 2900 KB Output is correct
174 Correct 9 ms 3908 KB Output is correct
175 Correct 33 ms 8324 KB Output is correct
176 Correct 38 ms 13752 KB Output is correct
177 Correct 79 ms 23120 KB Output is correct
178 Correct 36 ms 18760 KB Output is correct
179 Correct 94 ms 27504 KB Output is correct
180 Correct 157 ms 31864 KB Output is correct
181 Correct 172 ms 31852 KB Output is correct
182 Correct 173 ms 33064 KB Output is correct
183 Correct 148 ms 33920 KB Output is correct
184 Correct 470 ms 68784 KB Output is correct
185 Correct 71 ms 26528 KB Output is correct
186 Correct 113 ms 61632 KB Output is correct
187 Correct 69 ms 32884 KB Output is correct
188 Correct 188 ms 152888 KB Output is correct
189 Correct 278 ms 57180 KB Output is correct
190 Correct 169 ms 50860 KB Output is correct
191 Correct 187 ms 152700 KB Output is correct
192 Correct 369 ms 73168 KB Output is correct
193 Correct 363 ms 73212 KB Output is correct
194 Correct 190 ms 74164 KB Output is correct
195 Correct 409 ms 132688 KB Output is correct
196 Correct 306 ms 65228 KB Output is correct
197 Correct 188 ms 51508 KB Output is correct
198 Correct 188 ms 51444 KB Output is correct
199 Correct 318 ms 64268 KB Output is correct
200 Correct 148 ms 49968 KB Output is correct
201 Correct 249 ms 54196 KB Output is correct
202 Correct 401 ms 64972 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 724 KB Output is correct
2 Correct 1 ms 724 KB Output is correct
3 Correct 1 ms 724 KB Output is correct
4 Correct 1 ms 724 KB Output is correct
5 Correct 1 ms 724 KB Output is correct
6 Correct 1 ms 768 KB Output is correct
7 Correct 1 ms 724 KB Output is correct
8 Correct 1 ms 724 KB Output is correct
9 Correct 1 ms 724 KB Output is correct
10 Correct 1 ms 724 KB Output is correct
11 Correct 1 ms 724 KB Output is correct
12 Correct 1 ms 772 KB Output is correct
13 Correct 1 ms 724 KB Output is correct
14 Correct 1 ms 724 KB Output is correct
15 Correct 1 ms 724 KB Output is correct
16 Correct 1 ms 724 KB Output is correct
17 Correct 1 ms 724 KB Output is correct
18 Correct 1 ms 724 KB Output is correct
19 Correct 5 ms 2004 KB Output is correct
20 Correct 7 ms 2968 KB Output is correct
21 Correct 4 ms 3032 KB Output is correct
22 Correct 6 ms 2060 KB Output is correct
23 Correct 5 ms 2132 KB Output is correct
24 Correct 4 ms 2132 KB Output is correct
25 Correct 9 ms 4108 KB Output is correct
26 Correct 2 ms 1620 KB Output is correct
27 Correct 2 ms 1620 KB Output is correct
28 Correct 3 ms 1876 KB Output is correct
29 Correct 14 ms 4416 KB Output is correct
30 Correct 6 ms 2132 KB Output is correct
31 Correct 10 ms 8776 KB Output is correct
32 Correct 17 ms 4104 KB Output is correct
33 Correct 13 ms 4308 KB Output is correct
34 Correct 11 ms 4432 KB Output is correct
35 Correct 25 ms 9448 KB Output is correct
36 Correct 9 ms 3668 KB Output is correct
37 Correct 12 ms 3860 KB Output is correct
38 Correct 4 ms 2900 KB Output is correct
39 Correct 184 ms 34856 KB Output is correct
40 Correct 7 ms 3440 KB Output is correct
41 Correct 10 ms 4140 KB Output is correct
42 Correct 22 ms 6160 KB Output is correct
43 Correct 22 ms 6324 KB Output is correct
44 Correct 33 ms 13012 KB Output is correct
45 Correct 49 ms 14880 KB Output is correct
46 Correct 96 ms 76596 KB Output is correct
47 Correct 152 ms 31688 KB Output is correct
48 Correct 176 ms 32372 KB Output is correct
49 Correct 78 ms 31444 KB Output is correct
50 Correct 157 ms 61432 KB Output is correct
51 Correct 113 ms 29332 KB Output is correct
52 Correct 101 ms 26680 KB Output is correct
53 Correct 160 ms 31548 KB Output is correct
54 Correct 1 ms 724 KB Output is correct
55 Correct 1 ms 724 KB Output is correct
56 Correct 1 ms 724 KB Output is correct
57 Correct 1 ms 724 KB Output is correct
58 Correct 1 ms 776 KB Output is correct
59 Correct 1 ms 724 KB Output is correct
60 Correct 1 ms 724 KB Output is correct
61 Correct 1 ms 724 KB Output is correct
62 Correct 1 ms 772 KB Output is correct
63 Correct 1 ms 724 KB Output is correct
64 Correct 1 ms 724 KB Output is correct
65 Correct 1 ms 724 KB Output is correct
66 Correct 1 ms 724 KB Output is correct
67 Correct 1 ms 768 KB Output is correct
68 Correct 1 ms 724 KB Output is correct
69 Correct 1 ms 724 KB Output is correct
70 Correct 1 ms 724 KB Output is correct
71 Correct 1 ms 724 KB Output is correct
72 Correct 1 ms 724 KB Output is correct
73 Correct 1 ms 772 KB Output is correct
74 Correct 1 ms 772 KB Output is correct
75 Correct 1 ms 772 KB Output is correct
76 Correct 1 ms 724 KB Output is correct
77 Correct 1 ms 724 KB Output is correct
78 Correct 1 ms 724 KB Output is correct
79 Correct 1 ms 852 KB Output is correct
80 Correct 1 ms 724 KB Output is correct
81 Correct 1 ms 752 KB Output is correct
82 Correct 1 ms 768 KB Output is correct
83 Correct 1 ms 724 KB Output is correct
84 Correct 1 ms 724 KB Output is correct
85 Correct 1 ms 724 KB Output is correct
86 Correct 1 ms 776 KB Output is correct
87 Correct 1 ms 724 KB Output is correct
88 Correct 1 ms 724 KB Output is correct
89 Correct 1 ms 724 KB Output is correct
90 Correct 1 ms 724 KB Output is correct
91 Correct 1 ms 724 KB Output is correct
92 Correct 1 ms 796 KB Output is correct
93 Correct 1 ms 724 KB Output is correct
94 Correct 1 ms 724 KB Output is correct
95 Correct 1 ms 768 KB Output is correct
96 Correct 1 ms 724 KB Output is correct
97 Correct 1 ms 772 KB Output is correct
98 Correct 1 ms 724 KB Output is correct
99 Correct 1 ms 724 KB Output is correct
100 Correct 1 ms 724 KB Output is correct
101 Correct 1 ms 724 KB Output is correct
102 Correct 1 ms 724 KB Output is correct
103 Correct 1 ms 724 KB Output is correct
104 Correct 1 ms 724 KB Output is correct
105 Correct 1 ms 724 KB Output is correct
106 Correct 1 ms 724 KB Output is correct
107 Correct 1 ms 724 KB Output is correct
108 Correct 1 ms 724 KB Output is correct
109 Correct 1 ms 724 KB Output is correct
110 Correct 2 ms 1236 KB Output is correct
111 Correct 4 ms 2896 KB Output is correct
112 Correct 4 ms 3032 KB Output is correct
113 Correct 5 ms 3724 KB Output is correct
114 Correct 6 ms 2164 KB Output is correct
115 Correct 4 ms 2140 KB Output is correct
116 Correct 4 ms 1876 KB Output is correct
117 Correct 3 ms 1680 KB Output is correct
118 Correct 2 ms 1616 KB Output is correct
119 Correct 7 ms 4940 KB Output is correct
120 Correct 10 ms 8776 KB Output is correct
121 Correct 10 ms 9416 KB Output is correct
122 Correct 13 ms 4936 KB Output is correct
123 Correct 14 ms 4936 KB Output is correct
124 Correct 25 ms 15368 KB Output is correct
125 Correct 68 ms 34148 KB Output is correct
126 Correct 95 ms 76496 KB Output is correct
127 Correct 95 ms 76128 KB Output is correct
128 Correct 174 ms 37088 KB Output is correct
129 Correct 158 ms 37000 KB Output is correct
130 Correct 90 ms 34396 KB Output is correct
131 Correct 83 ms 35252 KB Output is correct
132 Correct 6 ms 2004 KB Output is correct
133 Correct 1 ms 724 KB Output is correct
134 Correct 1 ms 852 KB Output is correct
135 Correct 3 ms 1236 KB Output is correct
136 Correct 9 ms 2956 KB Output is correct
137 Correct 4 ms 2896 KB Output is correct
138 Correct 4 ms 3032 KB Output is correct
139 Correct 6 ms 1996 KB Output is correct
140 Correct 5 ms 2132 KB Output is correct
141 Correct 5 ms 3704 KB Output is correct
142 Correct 7 ms 2200 KB Output is correct
143 Correct 5 ms 2136 KB Output is correct
144 Correct 4 ms 2120 KB Output is correct
145 Correct 9 ms 4068 KB Output is correct
146 Correct 6 ms 2264 KB Output is correct
147 Correct 6 ms 2080 KB Output is correct
148 Correct 5 ms 1932 KB Output is correct
149 Correct 6 ms 2096 KB Output is correct
150 Correct 4 ms 1876 KB Output is correct
151 Correct 3 ms 1716 KB Output is correct
152 Correct 3 ms 1620 KB Output is correct
153 Correct 4 ms 1780 KB Output is correct
154 Correct 15 ms 4352 KB Output is correct
155 Correct 9 ms 2132 KB Output is correct
156 Correct 8 ms 4940 KB Output is correct
157 Correct 17 ms 3668 KB Output is correct
158 Correct 12 ms 8776 KB Output is correct
159 Correct 15 ms 4052 KB Output is correct
160 Correct 14 ms 4248 KB Output is correct
161 Correct 10 ms 9396 KB Output is correct
162 Correct 14 ms 4848 KB Output is correct
163 Correct 10 ms 4936 KB Output is correct
164 Correct 10 ms 4432 KB Output is correct
165 Correct 25 ms 9416 KB Output is correct
166 Correct 16 ms 5128 KB Output is correct
167 Correct 14 ms 4308 KB Output is correct
168 Correct 14 ms 4252 KB Output is correct
169 Correct 15 ms 4052 KB Output is correct
170 Correct 14 ms 3872 KB Output is correct
171 Correct 9 ms 3668 KB Output is correct
172 Correct 12 ms 3836 KB Output is correct
173 Correct 6 ms 2900 KB Output is correct
174 Correct 9 ms 3908 KB Output is correct
175 Correct 33 ms 8324 KB Output is correct
176 Correct 38 ms 13752 KB Output is correct
177 Correct 79 ms 23120 KB Output is correct
178 Correct 36 ms 18760 KB Output is correct
179 Correct 94 ms 27504 KB Output is correct
180 Correct 157 ms 31864 KB Output is correct
181 Correct 172 ms 31852 KB Output is correct
182 Correct 173 ms 33064 KB Output is correct
183 Correct 148 ms 33920 KB Output is correct
184 Correct 470 ms 68784 KB Output is correct
185 Correct 71 ms 26528 KB Output is correct
186 Correct 113 ms 61632 KB Output is correct
187 Correct 69 ms 32884 KB Output is correct
188 Correct 188 ms 152888 KB Output is correct
189 Correct 278 ms 57180 KB Output is correct
190 Correct 169 ms 50860 KB Output is correct
191 Correct 187 ms 152700 KB Output is correct
192 Correct 369 ms 73168 KB Output is correct
193 Correct 363 ms 73212 KB Output is correct
194 Correct 190 ms 74164 KB Output is correct
195 Correct 409 ms 132688 KB Output is correct
196 Correct 306 ms 65228 KB Output is correct
197 Correct 188 ms 51508 KB Output is correct
198 Correct 188 ms 51444 KB Output is correct
199 Correct 318 ms 64268 KB Output is correct
200 Correct 148 ms 49968 KB Output is correct
201 Correct 249 ms 54196 KB Output is correct
202 Correct 401 ms 64972 KB Output is correct
203 Correct 944 ms 132432 KB Output is correct
204 Correct 327 ms 67124 KB Output is correct
205 Correct 475 ms 73384 KB Output is correct
206 Correct 208 ms 89852 KB Output is correct
207 Correct 387 ms 304628 KB Output is correct
208 Correct 582 ms 113000 KB Output is correct
209 Correct 980 ms 133520 KB Output is correct
210 Correct 368 ms 306776 KB Output is correct
211 Correct 732 ms 145520 KB Output is correct
212 Correct 684 ms 145188 KB Output is correct
213 Correct 254 ms 122044 KB Output is correct
214 Correct 738 ms 244088 KB Output is correct
215 Correct 601 ms 121628 KB Output is correct
216 Correct 548 ms 117740 KB Output is correct
217 Correct 617 ms 122804 KB Output is correct
218 Correct 579 ms 114872 KB Output is correct
219 Correct 513 ms 140112 KB Output is correct
220 Correct 239 ms 130300 KB Output is correct
221 Correct 288 ms 122764 KB Output is correct
222 Correct 732 ms 206140 KB Output is correct
223 Correct 513 ms 109156 KB Output is correct
224 Correct 561 ms 109572 KB Output is correct
225 Correct 430 ms 99524 KB Output is correct