답안 #559942

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
559942 2022-05-11T01:26:54 Z nghiass001 분수 공원 (IOI21_parks) C++17
100 / 100
381 ms 37316 KB
#include "parks.h"
#include <bits/stdc++.h>
#define FOR(i,l,r) for(int i=(l); i<=(r); ++i)
#define REP(i,l,r) for(int i=(l); i<(r); ++i)
#define FORD(i,r,l) for(int i=(r); i>=(l); --i)
#define REPD(i,r,l) for(int i=(r)-1; i>=(l); --i)
using namespace std;
const int N = 2e5 + 5;
int component, a[N], dsu[N];
map<int, int> M[N];
vector<int> px, py;
vector<int> edgex, edgey, pointx, pointy;

int getD(int u) {
    return dsu[u] < 0 ? u : dsu[u] = getD(dsu[u]);
}

void add(int u, int v, int chair_x, int chair_y) {
    int pu = getD(u);
    int pv = getD(v);
    if (pu == pv) return;
    edgex.push_back(u);
    edgey.push_back(v);
    pointx.push_back(chair_x);
    pointy.push_back(chair_y);
    if (dsu[pu] > dsu[pv]) swap(pu, pv);
    dsu[pu] += dsu[pv];
    dsu[pv] = pu;
    --component;
}

int construct_roads(vector<int> xxx, vector<int> yyy) {
    px = xxx; py = yyy;
    int n = component = px.size();
    REP(i, 0, n) dsu[i] = -1;
    REP(i, 0, n) M[px[i]][py[i]] = i;

    REP(i, 0, n) if ((px[i] + py[i]) & 2) {
        if (M[px[i]].count(py[i] + 2))
            add(i, M[px[i]][py[i] + 2], px[i] - 1, py[i] + 1);
        if (M[px[i] + 2].count(py[i]))
            add(i, M[px[i] + 2][py[i]], px[i] + 1, py[i] + 1);
    }

    REP(i, 0, n) if (!((px[i] + py[i]) & 2)) {
        if (M[px[i]].count(py[i] + 2)) {
            if (!(M[px[i] + 2].count(py[i]) && M[px[i] + 2].count(py[i] + 2)))
                add(i, M[px[i]][py[i] + 2], px[i] + 1, py[i] + 1);
        }
        if (M[px[i] + 2].count(py[i])) {
            if (!(M[px[i]].count(py[i] - 2) && M[px[i] + 2].count(py[i] - 2)))
                add(i, M[px[i] + 2][py[i]], px[i] + 1, py[i] - 1);
        }
    }

    if (component != 1) return 0;

    build(edgex, edgey, pointx, pointy);
    return 1;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9684 KB Output is correct
2 Correct 5 ms 9668 KB Output is correct
3 Correct 5 ms 9700 KB Output is correct
4 Correct 5 ms 9648 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 5 ms 9704 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 128 ms 22776 KB Output is correct
10 Correct 13 ms 11248 KB Output is correct
11 Correct 44 ms 16816 KB Output is correct
12 Correct 15 ms 11816 KB Output is correct
13 Correct 24 ms 14164 KB Output is correct
14 Correct 6 ms 9684 KB Output is correct
15 Correct 7 ms 9812 KB Output is correct
16 Correct 113 ms 22740 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9684 KB Output is correct
2 Correct 5 ms 9668 KB Output is correct
3 Correct 5 ms 9700 KB Output is correct
4 Correct 5 ms 9648 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 5 ms 9704 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 128 ms 22776 KB Output is correct
10 Correct 13 ms 11248 KB Output is correct
11 Correct 44 ms 16816 KB Output is correct
12 Correct 15 ms 11816 KB Output is correct
13 Correct 24 ms 14164 KB Output is correct
14 Correct 6 ms 9684 KB Output is correct
15 Correct 7 ms 9812 KB Output is correct
16 Correct 113 ms 22740 KB Output is correct
17 Correct 5 ms 9684 KB Output is correct
18 Correct 5 ms 9704 KB Output is correct
19 Correct 5 ms 9648 KB Output is correct
20 Correct 5 ms 9684 KB Output is correct
21 Correct 5 ms 9684 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 337 ms 35672 KB Output is correct
24 Correct 6 ms 9684 KB Output is correct
25 Correct 6 ms 9812 KB Output is correct
26 Correct 7 ms 9972 KB Output is correct
27 Correct 8 ms 10068 KB Output is correct
28 Correct 105 ms 20180 KB Output is correct
29 Correct 187 ms 25396 KB Output is correct
30 Correct 254 ms 30576 KB Output is correct
31 Correct 337 ms 35716 KB Output is correct
32 Correct 6 ms 9684 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 5 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 6 ms 9684 KB Output is correct
37 Correct 5 ms 9684 KB Output is correct
38 Correct 5 ms 9708 KB Output is correct
39 Correct 5 ms 9708 KB Output is correct
40 Correct 5 ms 9708 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 6 ms 9812 KB Output is correct
44 Correct 7 ms 9980 KB Output is correct
45 Correct 135 ms 22832 KB Output is correct
46 Correct 204 ms 28616 KB Output is correct
47 Correct 223 ms 28564 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9684 KB Output is correct
2 Correct 5 ms 9668 KB Output is correct
3 Correct 5 ms 9700 KB Output is correct
4 Correct 5 ms 9648 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 5 ms 9704 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 128 ms 22776 KB Output is correct
10 Correct 13 ms 11248 KB Output is correct
11 Correct 44 ms 16816 KB Output is correct
12 Correct 15 ms 11816 KB Output is correct
13 Correct 24 ms 14164 KB Output is correct
14 Correct 6 ms 9684 KB Output is correct
15 Correct 7 ms 9812 KB Output is correct
16 Correct 113 ms 22740 KB Output is correct
17 Correct 5 ms 9684 KB Output is correct
18 Correct 5 ms 9704 KB Output is correct
19 Correct 5 ms 9648 KB Output is correct
20 Correct 5 ms 9684 KB Output is correct
21 Correct 5 ms 9684 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 337 ms 35672 KB Output is correct
24 Correct 6 ms 9684 KB Output is correct
25 Correct 6 ms 9812 KB Output is correct
26 Correct 7 ms 9972 KB Output is correct
27 Correct 8 ms 10068 KB Output is correct
28 Correct 105 ms 20180 KB Output is correct
29 Correct 187 ms 25396 KB Output is correct
30 Correct 254 ms 30576 KB Output is correct
31 Correct 337 ms 35716 KB Output is correct
32 Correct 6 ms 9684 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 5 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 6 ms 9684 KB Output is correct
37 Correct 5 ms 9684 KB Output is correct
38 Correct 5 ms 9708 KB Output is correct
39 Correct 5 ms 9708 KB Output is correct
40 Correct 5 ms 9708 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 6 ms 9812 KB Output is correct
44 Correct 7 ms 9980 KB Output is correct
45 Correct 135 ms 22832 KB Output is correct
46 Correct 204 ms 28616 KB Output is correct
47 Correct 223 ms 28564 KB Output is correct
48 Correct 5 ms 9684 KB Output is correct
49 Correct 5 ms 9684 KB Output is correct
50 Correct 5 ms 9684 KB Output is correct
51 Correct 5 ms 9684 KB Output is correct
52 Correct 5 ms 9708 KB Output is correct
53 Correct 6 ms 9684 KB Output is correct
54 Correct 5 ms 9684 KB Output is correct
55 Correct 363 ms 35716 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 6 ms 9980 KB Output is correct
58 Correct 11 ms 10580 KB Output is correct
59 Correct 14 ms 10740 KB Output is correct
60 Correct 146 ms 22688 KB Output is correct
61 Correct 207 ms 27220 KB Output is correct
62 Correct 282 ms 31472 KB Output is correct
63 Correct 357 ms 35748 KB Output is correct
64 Correct 5 ms 9684 KB Output is correct
65 Correct 5 ms 9704 KB Output is correct
66 Correct 5 ms 9704 KB Output is correct
67 Correct 270 ms 35796 KB Output is correct
68 Correct 273 ms 35788 KB Output is correct
69 Correct 268 ms 35624 KB Output is correct
70 Correct 8 ms 10100 KB Output is correct
71 Correct 11 ms 10472 KB Output is correct
72 Correct 128 ms 22648 KB Output is correct
73 Correct 222 ms 29264 KB Output is correct
74 Correct 329 ms 35676 KB Output is correct
75 Correct 341 ms 35792 KB Output is correct
76 Correct 297 ms 35744 KB Output is correct
77 Correct 8 ms 10228 KB Output is correct
78 Correct 12 ms 10708 KB Output is correct
79 Correct 134 ms 22740 KB Output is correct
80 Correct 222 ms 29288 KB Output is correct
81 Correct 349 ms 36012 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9684 KB Output is correct
2 Correct 5 ms 9668 KB Output is correct
3 Correct 5 ms 9700 KB Output is correct
4 Correct 5 ms 9648 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 5 ms 9704 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 128 ms 22776 KB Output is correct
10 Correct 13 ms 11248 KB Output is correct
11 Correct 44 ms 16816 KB Output is correct
12 Correct 15 ms 11816 KB Output is correct
13 Correct 24 ms 14164 KB Output is correct
14 Correct 6 ms 9684 KB Output is correct
15 Correct 7 ms 9812 KB Output is correct
16 Correct 113 ms 22740 KB Output is correct
17 Correct 5 ms 9684 KB Output is correct
18 Correct 6 ms 9704 KB Output is correct
19 Correct 5 ms 9684 KB Output is correct
20 Correct 222 ms 37076 KB Output is correct
21 Correct 238 ms 36688 KB Output is correct
22 Correct 221 ms 36624 KB Output is correct
23 Correct 197 ms 32240 KB Output is correct
24 Correct 145 ms 26288 KB Output is correct
25 Correct 246 ms 29376 KB Output is correct
26 Correct 175 ms 29344 KB Output is correct
27 Correct 259 ms 35780 KB Output is correct
28 Correct 238 ms 35668 KB Output is correct
29 Correct 285 ms 35748 KB Output is correct
30 Correct 279 ms 35652 KB Output is correct
31 Correct 5 ms 9600 KB Output is correct
32 Correct 21 ms 11852 KB Output is correct
33 Correct 46 ms 18372 KB Output is correct
34 Correct 202 ms 37148 KB Output is correct
35 Correct 11 ms 10880 KB Output is correct
36 Correct 40 ms 14872 KB Output is correct
37 Correct 87 ms 20052 KB Output is correct
38 Correct 95 ms 20808 KB Output is correct
39 Correct 139 ms 24696 KB Output is correct
40 Correct 178 ms 28820 KB Output is correct
41 Correct 231 ms 33020 KB Output is correct
42 Correct 306 ms 37112 KB Output is correct
43 Correct 5 ms 9684 KB Output is correct
44 Correct 4 ms 9704 KB Output is correct
45 Correct 7 ms 9684 KB Output is correct
46 Correct 5 ms 9684 KB Output is correct
47 Correct 5 ms 9684 KB Output is correct
48 Correct 5 ms 9684 KB Output is correct
49 Correct 5 ms 9704 KB Output is correct
50 Correct 5 ms 9708 KB Output is correct
51 Correct 5 ms 9684 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 5 ms 9684 KB Output is correct
54 Correct 6 ms 9812 KB Output is correct
55 Correct 7 ms 9940 KB Output is correct
56 Correct 133 ms 22740 KB Output is correct
57 Correct 227 ms 28644 KB Output is correct
58 Correct 211 ms 28604 KB Output is correct
59 Correct 5 ms 9716 KB Output is correct
60 Correct 5 ms 9684 KB Output is correct
61 Correct 4 ms 9684 KB Output is correct
62 Correct 269 ms 35784 KB Output is correct
63 Correct 271 ms 35700 KB Output is correct
64 Correct 283 ms 35620 KB Output is correct
65 Correct 7 ms 10068 KB Output is correct
66 Correct 10 ms 10472 KB Output is correct
67 Correct 138 ms 22640 KB Output is correct
68 Correct 219 ms 29260 KB Output is correct
69 Correct 354 ms 35772 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9684 KB Output is correct
2 Correct 5 ms 9668 KB Output is correct
3 Correct 5 ms 9700 KB Output is correct
4 Correct 5 ms 9648 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 5 ms 9704 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 128 ms 22776 KB Output is correct
10 Correct 13 ms 11248 KB Output is correct
11 Correct 44 ms 16816 KB Output is correct
12 Correct 15 ms 11816 KB Output is correct
13 Correct 24 ms 14164 KB Output is correct
14 Correct 6 ms 9684 KB Output is correct
15 Correct 7 ms 9812 KB Output is correct
16 Correct 113 ms 22740 KB Output is correct
17 Correct 267 ms 36088 KB Output is correct
18 Correct 238 ms 36416 KB Output is correct
19 Correct 209 ms 36676 KB Output is correct
20 Correct 308 ms 35108 KB Output is correct
21 Correct 259 ms 32592 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 35 ms 14544 KB Output is correct
24 Correct 20 ms 12008 KB Output is correct
25 Correct 61 ms 17236 KB Output is correct
26 Correct 104 ms 22124 KB Output is correct
27 Correct 123 ms 23300 KB Output is correct
28 Correct 155 ms 27080 KB Output is correct
29 Correct 210 ms 30468 KB Output is correct
30 Correct 268 ms 33444 KB Output is correct
31 Correct 312 ms 37316 KB Output is correct
32 Correct 338 ms 35748 KB Output is correct
33 Correct 270 ms 35792 KB Output is correct
34 Correct 9 ms 10220 KB Output is correct
35 Correct 11 ms 10740 KB Output is correct
36 Correct 135 ms 22736 KB Output is correct
37 Correct 223 ms 29264 KB Output is correct
38 Correct 334 ms 35740 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9684 KB Output is correct
2 Correct 5 ms 9668 KB Output is correct
3 Correct 5 ms 9700 KB Output is correct
4 Correct 5 ms 9648 KB Output is correct
5 Correct 5 ms 9684 KB Output is correct
6 Correct 5 ms 9684 KB Output is correct
7 Correct 5 ms 9704 KB Output is correct
8 Correct 5 ms 9684 KB Output is correct
9 Correct 128 ms 22776 KB Output is correct
10 Correct 13 ms 11248 KB Output is correct
11 Correct 44 ms 16816 KB Output is correct
12 Correct 15 ms 11816 KB Output is correct
13 Correct 24 ms 14164 KB Output is correct
14 Correct 6 ms 9684 KB Output is correct
15 Correct 7 ms 9812 KB Output is correct
16 Correct 113 ms 22740 KB Output is correct
17 Correct 5 ms 9684 KB Output is correct
18 Correct 5 ms 9704 KB Output is correct
19 Correct 5 ms 9648 KB Output is correct
20 Correct 5 ms 9684 KB Output is correct
21 Correct 5 ms 9684 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 337 ms 35672 KB Output is correct
24 Correct 6 ms 9684 KB Output is correct
25 Correct 6 ms 9812 KB Output is correct
26 Correct 7 ms 9972 KB Output is correct
27 Correct 8 ms 10068 KB Output is correct
28 Correct 105 ms 20180 KB Output is correct
29 Correct 187 ms 25396 KB Output is correct
30 Correct 254 ms 30576 KB Output is correct
31 Correct 337 ms 35716 KB Output is correct
32 Correct 6 ms 9684 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 5 ms 9684 KB Output is correct
35 Correct 5 ms 9684 KB Output is correct
36 Correct 6 ms 9684 KB Output is correct
37 Correct 5 ms 9684 KB Output is correct
38 Correct 5 ms 9708 KB Output is correct
39 Correct 5 ms 9708 KB Output is correct
40 Correct 5 ms 9708 KB Output is correct
41 Correct 5 ms 9684 KB Output is correct
42 Correct 5 ms 9684 KB Output is correct
43 Correct 6 ms 9812 KB Output is correct
44 Correct 7 ms 9980 KB Output is correct
45 Correct 135 ms 22832 KB Output is correct
46 Correct 204 ms 28616 KB Output is correct
47 Correct 223 ms 28564 KB Output is correct
48 Correct 5 ms 9684 KB Output is correct
49 Correct 5 ms 9684 KB Output is correct
50 Correct 5 ms 9684 KB Output is correct
51 Correct 5 ms 9684 KB Output is correct
52 Correct 5 ms 9708 KB Output is correct
53 Correct 6 ms 9684 KB Output is correct
54 Correct 5 ms 9684 KB Output is correct
55 Correct 363 ms 35716 KB Output is correct
56 Correct 5 ms 9684 KB Output is correct
57 Correct 6 ms 9980 KB Output is correct
58 Correct 11 ms 10580 KB Output is correct
59 Correct 14 ms 10740 KB Output is correct
60 Correct 146 ms 22688 KB Output is correct
61 Correct 207 ms 27220 KB Output is correct
62 Correct 282 ms 31472 KB Output is correct
63 Correct 357 ms 35748 KB Output is correct
64 Correct 5 ms 9684 KB Output is correct
65 Correct 5 ms 9704 KB Output is correct
66 Correct 5 ms 9704 KB Output is correct
67 Correct 270 ms 35796 KB Output is correct
68 Correct 273 ms 35788 KB Output is correct
69 Correct 268 ms 35624 KB Output is correct
70 Correct 8 ms 10100 KB Output is correct
71 Correct 11 ms 10472 KB Output is correct
72 Correct 128 ms 22648 KB Output is correct
73 Correct 222 ms 29264 KB Output is correct
74 Correct 329 ms 35676 KB Output is correct
75 Correct 341 ms 35792 KB Output is correct
76 Correct 297 ms 35744 KB Output is correct
77 Correct 8 ms 10228 KB Output is correct
78 Correct 12 ms 10708 KB Output is correct
79 Correct 134 ms 22740 KB Output is correct
80 Correct 222 ms 29288 KB Output is correct
81 Correct 349 ms 36012 KB Output is correct
82 Correct 5 ms 9684 KB Output is correct
83 Correct 6 ms 9704 KB Output is correct
84 Correct 5 ms 9684 KB Output is correct
85 Correct 222 ms 37076 KB Output is correct
86 Correct 238 ms 36688 KB Output is correct
87 Correct 221 ms 36624 KB Output is correct
88 Correct 197 ms 32240 KB Output is correct
89 Correct 145 ms 26288 KB Output is correct
90 Correct 246 ms 29376 KB Output is correct
91 Correct 175 ms 29344 KB Output is correct
92 Correct 259 ms 35780 KB Output is correct
93 Correct 238 ms 35668 KB Output is correct
94 Correct 285 ms 35748 KB Output is correct
95 Correct 279 ms 35652 KB Output is correct
96 Correct 5 ms 9600 KB Output is correct
97 Correct 21 ms 11852 KB Output is correct
98 Correct 46 ms 18372 KB Output is correct
99 Correct 202 ms 37148 KB Output is correct
100 Correct 11 ms 10880 KB Output is correct
101 Correct 40 ms 14872 KB Output is correct
102 Correct 87 ms 20052 KB Output is correct
103 Correct 95 ms 20808 KB Output is correct
104 Correct 139 ms 24696 KB Output is correct
105 Correct 178 ms 28820 KB Output is correct
106 Correct 231 ms 33020 KB Output is correct
107 Correct 306 ms 37112 KB Output is correct
108 Correct 5 ms 9684 KB Output is correct
109 Correct 4 ms 9704 KB Output is correct
110 Correct 7 ms 9684 KB Output is correct
111 Correct 5 ms 9684 KB Output is correct
112 Correct 5 ms 9684 KB Output is correct
113 Correct 5 ms 9684 KB Output is correct
114 Correct 5 ms 9704 KB Output is correct
115 Correct 5 ms 9708 KB Output is correct
116 Correct 5 ms 9684 KB Output is correct
117 Correct 5 ms 9684 KB Output is correct
118 Correct 5 ms 9684 KB Output is correct
119 Correct 6 ms 9812 KB Output is correct
120 Correct 7 ms 9940 KB Output is correct
121 Correct 133 ms 22740 KB Output is correct
122 Correct 227 ms 28644 KB Output is correct
123 Correct 211 ms 28604 KB Output is correct
124 Correct 5 ms 9716 KB Output is correct
125 Correct 5 ms 9684 KB Output is correct
126 Correct 4 ms 9684 KB Output is correct
127 Correct 269 ms 35784 KB Output is correct
128 Correct 271 ms 35700 KB Output is correct
129 Correct 283 ms 35620 KB Output is correct
130 Correct 7 ms 10068 KB Output is correct
131 Correct 10 ms 10472 KB Output is correct
132 Correct 138 ms 22640 KB Output is correct
133 Correct 219 ms 29260 KB Output is correct
134 Correct 354 ms 35772 KB Output is correct
135 Correct 267 ms 36088 KB Output is correct
136 Correct 238 ms 36416 KB Output is correct
137 Correct 209 ms 36676 KB Output is correct
138 Correct 308 ms 35108 KB Output is correct
139 Correct 259 ms 32592 KB Output is correct
140 Correct 5 ms 9684 KB Output is correct
141 Correct 35 ms 14544 KB Output is correct
142 Correct 20 ms 12008 KB Output is correct
143 Correct 61 ms 17236 KB Output is correct
144 Correct 104 ms 22124 KB Output is correct
145 Correct 123 ms 23300 KB Output is correct
146 Correct 155 ms 27080 KB Output is correct
147 Correct 210 ms 30468 KB Output is correct
148 Correct 268 ms 33444 KB Output is correct
149 Correct 312 ms 37316 KB Output is correct
150 Correct 338 ms 35748 KB Output is correct
151 Correct 270 ms 35792 KB Output is correct
152 Correct 9 ms 10220 KB Output is correct
153 Correct 11 ms 10740 KB Output is correct
154 Correct 135 ms 22736 KB Output is correct
155 Correct 223 ms 29264 KB Output is correct
156 Correct 334 ms 35740 KB Output is correct
157 Correct 5 ms 9684 KB Output is correct
158 Correct 5 ms 9684 KB Output is correct
159 Correct 5 ms 9684 KB Output is correct
160 Correct 5 ms 9612 KB Output is correct
161 Correct 321 ms 36044 KB Output is correct
162 Correct 200 ms 37060 KB Output is correct
163 Correct 211 ms 36964 KB Output is correct
164 Correct 207 ms 36932 KB Output is correct
165 Correct 244 ms 36480 KB Output is correct
166 Correct 312 ms 36044 KB Output is correct
167 Correct 58 ms 16016 KB Output is correct
168 Correct 28 ms 13088 KB Output is correct
169 Correct 80 ms 18024 KB Output is correct
170 Correct 203 ms 25432 KB Output is correct
171 Correct 259 ms 30408 KB Output is correct
172 Correct 148 ms 23396 KB Output is correct
173 Correct 187 ms 26080 KB Output is correct
174 Correct 273 ms 28884 KB Output is correct
175 Correct 272 ms 31316 KB Output is correct
176 Correct 316 ms 34324 KB Output is correct
177 Correct 381 ms 37096 KB Output is correct