Submission #1111694

# Submission time Handle Problem Language Result Execution time Memory
1111694 2024-11-12T16:39:24 Z siewjh Fountain Parks (IOI21_parks) C++17
100 / 100
448 ms 48188 KB
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 200005;
map<pair<int, int>, int> ctid;
set<pair<int, int>> bs;
vector<int> re1, re2, rbx, rby;
int par[MAXN], rnk[MAXN];
int root(int x){
	if (par[x] == -1) return x;
	else return par[x] = root(par[x]);
}
void join(int ra, int rb){
	if (rnk[ra] > rnk[rb]) swap(ra, rb);
	par[ra] = rb;
	if (rnk[ra] == rnk[rb]) rnk[rb]++;
}
bool check(int bx, int by, int n0x, int n0y, int n1x, int n1y){
	if (!ctid.count({n0x, n0y}) || !ctid.count({n1x, n1y})) return 0;
	int n0id = ctid[{n0x, n0y}], n1id = ctid[{n1x, n1y}];
	int r0 = root(n0id), r1 = root(n1id);
	if (r0 == r1) return 0;
	join(r0, r1);
	re1.push_back(n0id); re2.push_back(n1id); rbx.push_back(bx); rby.push_back(by);
	return 1;
}
int construct_roads(vector<int> xv, vector<int> yv) {
	memset(par, -1, sizeof(par));
	int nodes = xv.size();
	for (int i = 0; i < nodes; i++) ctid[{xv[i], yv[i]}] = i;
	for (auto &[loc, id] : ctid){
		auto &[x, y] = loc;
		if (ctid.count({x, y + 2})){
			bs.insert({x - 1, y + 1}); bs.insert({x + 1, y + 1});
		}
		if (ctid.count({x + 2, y})){
			bs.insert({x + 1, y - 1}); bs.insert({x + 1, y + 1});
		}
	}
	for (auto &[bx, by] : bs){
		int n0x, n0y, n1x, n1y;
		if ((bx + by) % 4 == 0){
			n0x = bx - 1; n1x = bx + 1; n0y = n1y = by - 1;
			if (check(bx, by, n0x, n0y, n1x, n1y)) continue;
			n0y = n1y = by + 1;
			check(bx, by, n0x, n0y, n1x, n1y);
		}
		else{
			n0x = n1x = bx - 1; n0y = by - 1; n1y = by + 1;
			if (check(bx, by, n0x, n0y, n1x, n1y)) continue;
			n0x = n1x = bx + 1;
			check(bx, by, n0x, n0y, n1x, n1y);
		}
	}
	if (re1.size() != nodes - 1) return 0;
	build(re1, re2, rbx, rby);
	return 1;
}

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:55:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   55 |  if (re1.size() != nodes - 1) return 0;
      |      ~~~~~~~~~~~^~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 2 ms 1104 KB Output is correct
2 Correct 1 ms 1104 KB Output is correct
3 Correct 1 ms 1104 KB Output is correct
4 Correct 1 ms 1104 KB Output is correct
5 Correct 1 ms 1104 KB Output is correct
6 Correct 1 ms 1116 KB Output is correct
7 Correct 1 ms 1212 KB Output is correct
8 Correct 1 ms 1104 KB Output is correct
9 Correct 175 ms 24496 KB Output is correct
10 Correct 16 ms 3664 KB Output is correct
11 Correct 97 ms 13756 KB Output is correct
12 Correct 29 ms 4956 KB Output is correct
13 Correct 63 ms 10180 KB Output is correct
14 Correct 2 ms 1360 KB Output is correct
15 Correct 3 ms 1616 KB Output is correct
16 Correct 165 ms 24496 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 1104 KB Output is correct
2 Correct 1 ms 1104 KB Output is correct
3 Correct 1 ms 1104 KB Output is correct
4 Correct 1 ms 1104 KB Output is correct
5 Correct 1 ms 1104 KB Output is correct
6 Correct 1 ms 1116 KB Output is correct
7 Correct 1 ms 1212 KB Output is correct
8 Correct 1 ms 1104 KB Output is correct
9 Correct 175 ms 24496 KB Output is correct
10 Correct 16 ms 3664 KB Output is correct
11 Correct 97 ms 13756 KB Output is correct
12 Correct 29 ms 4956 KB Output is correct
13 Correct 63 ms 10180 KB Output is correct
14 Correct 2 ms 1360 KB Output is correct
15 Correct 3 ms 1616 KB Output is correct
16 Correct 165 ms 24496 KB Output is correct
17 Correct 1 ms 1104 KB Output is correct
18 Correct 1 ms 1104 KB Output is correct
19 Correct 1 ms 1104 KB Output is correct
20 Correct 1 ms 1104 KB Output is correct
21 Correct 1 ms 1360 KB Output is correct
22 Correct 1 ms 1272 KB Output is correct
23 Correct 369 ms 42912 KB Output is correct
24 Correct 1 ms 1104 KB Output is correct
25 Correct 2 ms 1444 KB Output is correct
26 Correct 4 ms 1616 KB Output is correct
27 Correct 5 ms 1968 KB Output is correct
28 Correct 118 ms 17932 KB Output is correct
29 Correct 206 ms 26360 KB Output is correct
30 Correct 288 ms 34684 KB Output is correct
31 Correct 437 ms 42856 KB Output is correct
32 Correct 1 ms 1104 KB Output is correct
33 Correct 1 ms 1104 KB Output is correct
34 Correct 1 ms 1104 KB Output is correct
35 Correct 1 ms 1104 KB Output is correct
36 Correct 1 ms 1272 KB Output is correct
37 Correct 1 ms 1104 KB Output is correct
38 Correct 1 ms 1104 KB Output is correct
39 Correct 1 ms 1104 KB Output is correct
40 Correct 1 ms 1104 KB Output is correct
41 Correct 2 ms 1104 KB Output is correct
42 Correct 2 ms 1104 KB Output is correct
43 Correct 3 ms 1480 KB Output is correct
44 Correct 4 ms 1616 KB Output is correct
45 Correct 157 ms 21424 KB Output is correct
46 Correct 253 ms 30572 KB Output is correct
47 Correct 240 ms 30700 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 1104 KB Output is correct
2 Correct 1 ms 1104 KB Output is correct
3 Correct 1 ms 1104 KB Output is correct
4 Correct 1 ms 1104 KB Output is correct
5 Correct 1 ms 1104 KB Output is correct
6 Correct 1 ms 1116 KB Output is correct
7 Correct 1 ms 1212 KB Output is correct
8 Correct 1 ms 1104 KB Output is correct
9 Correct 175 ms 24496 KB Output is correct
10 Correct 16 ms 3664 KB Output is correct
11 Correct 97 ms 13756 KB Output is correct
12 Correct 29 ms 4956 KB Output is correct
13 Correct 63 ms 10180 KB Output is correct
14 Correct 2 ms 1360 KB Output is correct
15 Correct 3 ms 1616 KB Output is correct
16 Correct 165 ms 24496 KB Output is correct
17 Correct 1 ms 1104 KB Output is correct
18 Correct 1 ms 1104 KB Output is correct
19 Correct 1 ms 1104 KB Output is correct
20 Correct 1 ms 1104 KB Output is correct
21 Correct 1 ms 1360 KB Output is correct
22 Correct 1 ms 1272 KB Output is correct
23 Correct 369 ms 42912 KB Output is correct
24 Correct 1 ms 1104 KB Output is correct
25 Correct 2 ms 1444 KB Output is correct
26 Correct 4 ms 1616 KB Output is correct
27 Correct 5 ms 1968 KB Output is correct
28 Correct 118 ms 17932 KB Output is correct
29 Correct 206 ms 26360 KB Output is correct
30 Correct 288 ms 34684 KB Output is correct
31 Correct 437 ms 42856 KB Output is correct
32 Correct 1 ms 1104 KB Output is correct
33 Correct 1 ms 1104 KB Output is correct
34 Correct 1 ms 1104 KB Output is correct
35 Correct 1 ms 1104 KB Output is correct
36 Correct 1 ms 1272 KB Output is correct
37 Correct 1 ms 1104 KB Output is correct
38 Correct 1 ms 1104 KB Output is correct
39 Correct 1 ms 1104 KB Output is correct
40 Correct 1 ms 1104 KB Output is correct
41 Correct 2 ms 1104 KB Output is correct
42 Correct 2 ms 1104 KB Output is correct
43 Correct 3 ms 1480 KB Output is correct
44 Correct 4 ms 1616 KB Output is correct
45 Correct 157 ms 21424 KB Output is correct
46 Correct 253 ms 30572 KB Output is correct
47 Correct 240 ms 30700 KB Output is correct
48 Correct 1 ms 1104 KB Output is correct
49 Correct 1 ms 1104 KB Output is correct
50 Correct 2 ms 1104 KB Output is correct
51 Correct 1 ms 1104 KB Output is correct
52 Correct 1 ms 1104 KB Output is correct
53 Correct 1 ms 1104 KB Output is correct
54 Correct 1 ms 1104 KB Output is correct
55 Correct 418 ms 41320 KB Output is correct
56 Correct 1 ms 1104 KB Output is correct
57 Correct 3 ms 1616 KB Output is correct
58 Correct 9 ms 2332 KB Output is correct
59 Correct 12 ms 2896 KB Output is correct
60 Correct 184 ms 21168 KB Output is correct
61 Correct 255 ms 28176 KB Output is correct
62 Correct 321 ms 34472 KB Output is correct
63 Correct 438 ms 41376 KB Output is correct
64 Correct 2 ms 1104 KB Output is correct
65 Correct 1 ms 1104 KB Output is correct
66 Correct 1 ms 1104 KB Output is correct
67 Correct 408 ms 47520 KB Output is correct
68 Correct 392 ms 47508 KB Output is correct
69 Correct 379 ms 47264 KB Output is correct
70 Correct 5 ms 1872 KB Output is correct
71 Correct 9 ms 2628 KB Output is correct
72 Correct 157 ms 21168 KB Output is correct
73 Correct 257 ms 31392 KB Output is correct
74 Correct 345 ms 41360 KB Output is correct
75 Correct 386 ms 43744 KB Output is correct
76 Correct 421 ms 47468 KB Output is correct
77 Correct 6 ms 2128 KB Output is correct
78 Correct 11 ms 2896 KB Output is correct
79 Correct 155 ms 21680 KB Output is correct
80 Correct 257 ms 31908 KB Output is correct
81 Correct 330 ms 42148 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 1104 KB Output is correct
2 Correct 1 ms 1104 KB Output is correct
3 Correct 1 ms 1104 KB Output is correct
4 Correct 1 ms 1104 KB Output is correct
5 Correct 1 ms 1104 KB Output is correct
6 Correct 1 ms 1116 KB Output is correct
7 Correct 1 ms 1212 KB Output is correct
8 Correct 1 ms 1104 KB Output is correct
9 Correct 175 ms 24496 KB Output is correct
10 Correct 16 ms 3664 KB Output is correct
11 Correct 97 ms 13756 KB Output is correct
12 Correct 29 ms 4956 KB Output is correct
13 Correct 63 ms 10180 KB Output is correct
14 Correct 2 ms 1360 KB Output is correct
15 Correct 3 ms 1616 KB Output is correct
16 Correct 165 ms 24496 KB Output is correct
17 Correct 1 ms 1104 KB Output is correct
18 Correct 2 ms 1104 KB Output is correct
19 Correct 1 ms 1360 KB Output is correct
20 Correct 322 ms 39500 KB Output is correct
21 Correct 345 ms 38204 KB Output is correct
22 Correct 326 ms 38972 KB Output is correct
23 Correct 307 ms 40948 KB Output is correct
24 Correct 131 ms 18368 KB Output is correct
25 Correct 360 ms 41120 KB Output is correct
26 Correct 304 ms 41376 KB Output is correct
27 Correct 391 ms 47556 KB Output is correct
28 Correct 341 ms 47504 KB Output is correct
29 Correct 437 ms 47392 KB Output is correct
30 Correct 374 ms 47232 KB Output is correct
31 Correct 1 ms 1104 KB Output is correct
32 Correct 21 ms 4308 KB Output is correct
33 Correct 61 ms 10056 KB Output is correct
34 Correct 317 ms 38720 KB Output is correct
35 Correct 17 ms 2896 KB Output is correct
36 Correct 61 ms 9580 KB Output is correct
37 Correct 121 ms 17976 KB Output is correct
38 Correct 119 ms 17272 KB Output is correct
39 Correct 204 ms 23144 KB Output is correct
40 Correct 226 ms 29128 KB Output is correct
41 Correct 289 ms 35320 KB Output is correct
42 Correct 340 ms 41284 KB Output is correct
43 Correct 2 ms 1104 KB Output is correct
44 Correct 1 ms 1104 KB Output is correct
45 Correct 2 ms 1276 KB Output is correct
46 Correct 1 ms 1272 KB Output is correct
47 Correct 1 ms 1104 KB Output is correct
48 Correct 1 ms 1104 KB Output is correct
49 Correct 1 ms 1104 KB Output is correct
50 Correct 1 ms 1104 KB Output is correct
51 Correct 1 ms 1104 KB Output is correct
52 Correct 1 ms 1104 KB Output is correct
53 Correct 1 ms 1104 KB Output is correct
54 Correct 3 ms 1360 KB Output is correct
55 Correct 5 ms 1776 KB Output is correct
56 Correct 153 ms 21424 KB Output is correct
57 Correct 262 ms 30624 KB Output is correct
58 Correct 228 ms 30624 KB Output is correct
59 Correct 1 ms 1104 KB Output is correct
60 Correct 1 ms 1104 KB Output is correct
61 Correct 1 ms 1276 KB Output is correct
62 Correct 438 ms 47528 KB Output is correct
63 Correct 396 ms 47520 KB Output is correct
64 Correct 405 ms 47264 KB Output is correct
65 Correct 8 ms 1872 KB Output is correct
66 Correct 9 ms 2640 KB Output is correct
67 Correct 182 ms 21152 KB Output is correct
68 Correct 256 ms 31136 KB Output is correct
69 Correct 347 ms 41380 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 1104 KB Output is correct
2 Correct 1 ms 1104 KB Output is correct
3 Correct 1 ms 1104 KB Output is correct
4 Correct 1 ms 1104 KB Output is correct
5 Correct 1 ms 1104 KB Output is correct
6 Correct 1 ms 1116 KB Output is correct
7 Correct 1 ms 1212 KB Output is correct
8 Correct 1 ms 1104 KB Output is correct
9 Correct 175 ms 24496 KB Output is correct
10 Correct 16 ms 3664 KB Output is correct
11 Correct 97 ms 13756 KB Output is correct
12 Correct 29 ms 4956 KB Output is correct
13 Correct 63 ms 10180 KB Output is correct
14 Correct 2 ms 1360 KB Output is correct
15 Correct 3 ms 1616 KB Output is correct
16 Correct 165 ms 24496 KB Output is correct
17 Correct 448 ms 48128 KB Output is correct
18 Correct 394 ms 48188 KB Output is correct
19 Correct 355 ms 38976 KB Output is correct
20 Correct 400 ms 40496 KB Output is correct
21 Correct 339 ms 40104 KB Output is correct
22 Correct 2 ms 1104 KB Output is correct
23 Correct 47 ms 8264 KB Output is correct
24 Correct 25 ms 4948 KB Output is correct
25 Correct 97 ms 13504 KB Output is correct
26 Correct 169 ms 21936 KB Output is correct
27 Correct 163 ms 21680 KB Output is correct
28 Correct 210 ms 27180 KB Output is correct
29 Correct 260 ms 32480 KB Output is correct
30 Correct 325 ms 37016 KB Output is correct
31 Correct 356 ms 42304 KB Output is correct
32 Correct 389 ms 43684 KB Output is correct
33 Correct 388 ms 47520 KB Output is correct
34 Correct 7 ms 2128 KB Output is correct
35 Correct 11 ms 2896 KB Output is correct
36 Correct 163 ms 21680 KB Output is correct
37 Correct 268 ms 31908 KB Output is correct
38 Correct 392 ms 42152 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 1104 KB Output is correct
2 Correct 1 ms 1104 KB Output is correct
3 Correct 1 ms 1104 KB Output is correct
4 Correct 1 ms 1104 KB Output is correct
5 Correct 1 ms 1104 KB Output is correct
6 Correct 1 ms 1116 KB Output is correct
7 Correct 1 ms 1212 KB Output is correct
8 Correct 1 ms 1104 KB Output is correct
9 Correct 175 ms 24496 KB Output is correct
10 Correct 16 ms 3664 KB Output is correct
11 Correct 97 ms 13756 KB Output is correct
12 Correct 29 ms 4956 KB Output is correct
13 Correct 63 ms 10180 KB Output is correct
14 Correct 2 ms 1360 KB Output is correct
15 Correct 3 ms 1616 KB Output is correct
16 Correct 165 ms 24496 KB Output is correct
17 Correct 1 ms 1104 KB Output is correct
18 Correct 1 ms 1104 KB Output is correct
19 Correct 1 ms 1104 KB Output is correct
20 Correct 1 ms 1104 KB Output is correct
21 Correct 1 ms 1360 KB Output is correct
22 Correct 1 ms 1272 KB Output is correct
23 Correct 369 ms 42912 KB Output is correct
24 Correct 1 ms 1104 KB Output is correct
25 Correct 2 ms 1444 KB Output is correct
26 Correct 4 ms 1616 KB Output is correct
27 Correct 5 ms 1968 KB Output is correct
28 Correct 118 ms 17932 KB Output is correct
29 Correct 206 ms 26360 KB Output is correct
30 Correct 288 ms 34684 KB Output is correct
31 Correct 437 ms 42856 KB Output is correct
32 Correct 1 ms 1104 KB Output is correct
33 Correct 1 ms 1104 KB Output is correct
34 Correct 1 ms 1104 KB Output is correct
35 Correct 1 ms 1104 KB Output is correct
36 Correct 1 ms 1272 KB Output is correct
37 Correct 1 ms 1104 KB Output is correct
38 Correct 1 ms 1104 KB Output is correct
39 Correct 1 ms 1104 KB Output is correct
40 Correct 1 ms 1104 KB Output is correct
41 Correct 2 ms 1104 KB Output is correct
42 Correct 2 ms 1104 KB Output is correct
43 Correct 3 ms 1480 KB Output is correct
44 Correct 4 ms 1616 KB Output is correct
45 Correct 157 ms 21424 KB Output is correct
46 Correct 253 ms 30572 KB Output is correct
47 Correct 240 ms 30700 KB Output is correct
48 Correct 1 ms 1104 KB Output is correct
49 Correct 1 ms 1104 KB Output is correct
50 Correct 2 ms 1104 KB Output is correct
51 Correct 1 ms 1104 KB Output is correct
52 Correct 1 ms 1104 KB Output is correct
53 Correct 1 ms 1104 KB Output is correct
54 Correct 1 ms 1104 KB Output is correct
55 Correct 418 ms 41320 KB Output is correct
56 Correct 1 ms 1104 KB Output is correct
57 Correct 3 ms 1616 KB Output is correct
58 Correct 9 ms 2332 KB Output is correct
59 Correct 12 ms 2896 KB Output is correct
60 Correct 184 ms 21168 KB Output is correct
61 Correct 255 ms 28176 KB Output is correct
62 Correct 321 ms 34472 KB Output is correct
63 Correct 438 ms 41376 KB Output is correct
64 Correct 2 ms 1104 KB Output is correct
65 Correct 1 ms 1104 KB Output is correct
66 Correct 1 ms 1104 KB Output is correct
67 Correct 408 ms 47520 KB Output is correct
68 Correct 392 ms 47508 KB Output is correct
69 Correct 379 ms 47264 KB Output is correct
70 Correct 5 ms 1872 KB Output is correct
71 Correct 9 ms 2628 KB Output is correct
72 Correct 157 ms 21168 KB Output is correct
73 Correct 257 ms 31392 KB Output is correct
74 Correct 345 ms 41360 KB Output is correct
75 Correct 386 ms 43744 KB Output is correct
76 Correct 421 ms 47468 KB Output is correct
77 Correct 6 ms 2128 KB Output is correct
78 Correct 11 ms 2896 KB Output is correct
79 Correct 155 ms 21680 KB Output is correct
80 Correct 257 ms 31908 KB Output is correct
81 Correct 330 ms 42148 KB Output is correct
82 Correct 1 ms 1104 KB Output is correct
83 Correct 2 ms 1104 KB Output is correct
84 Correct 1 ms 1360 KB Output is correct
85 Correct 322 ms 39500 KB Output is correct
86 Correct 345 ms 38204 KB Output is correct
87 Correct 326 ms 38972 KB Output is correct
88 Correct 307 ms 40948 KB Output is correct
89 Correct 131 ms 18368 KB Output is correct
90 Correct 360 ms 41120 KB Output is correct
91 Correct 304 ms 41376 KB Output is correct
92 Correct 391 ms 47556 KB Output is correct
93 Correct 341 ms 47504 KB Output is correct
94 Correct 437 ms 47392 KB Output is correct
95 Correct 374 ms 47232 KB Output is correct
96 Correct 1 ms 1104 KB Output is correct
97 Correct 21 ms 4308 KB Output is correct
98 Correct 61 ms 10056 KB Output is correct
99 Correct 317 ms 38720 KB Output is correct
100 Correct 17 ms 2896 KB Output is correct
101 Correct 61 ms 9580 KB Output is correct
102 Correct 121 ms 17976 KB Output is correct
103 Correct 119 ms 17272 KB Output is correct
104 Correct 204 ms 23144 KB Output is correct
105 Correct 226 ms 29128 KB Output is correct
106 Correct 289 ms 35320 KB Output is correct
107 Correct 340 ms 41284 KB Output is correct
108 Correct 2 ms 1104 KB Output is correct
109 Correct 1 ms 1104 KB Output is correct
110 Correct 2 ms 1276 KB Output is correct
111 Correct 1 ms 1272 KB Output is correct
112 Correct 1 ms 1104 KB Output is correct
113 Correct 1 ms 1104 KB Output is correct
114 Correct 1 ms 1104 KB Output is correct
115 Correct 1 ms 1104 KB Output is correct
116 Correct 1 ms 1104 KB Output is correct
117 Correct 1 ms 1104 KB Output is correct
118 Correct 1 ms 1104 KB Output is correct
119 Correct 3 ms 1360 KB Output is correct
120 Correct 5 ms 1776 KB Output is correct
121 Correct 153 ms 21424 KB Output is correct
122 Correct 262 ms 30624 KB Output is correct
123 Correct 228 ms 30624 KB Output is correct
124 Correct 1 ms 1104 KB Output is correct
125 Correct 1 ms 1104 KB Output is correct
126 Correct 1 ms 1276 KB Output is correct
127 Correct 438 ms 47528 KB Output is correct
128 Correct 396 ms 47520 KB Output is correct
129 Correct 405 ms 47264 KB Output is correct
130 Correct 8 ms 1872 KB Output is correct
131 Correct 9 ms 2640 KB Output is correct
132 Correct 182 ms 21152 KB Output is correct
133 Correct 256 ms 31136 KB Output is correct
134 Correct 347 ms 41380 KB Output is correct
135 Correct 448 ms 48128 KB Output is correct
136 Correct 394 ms 48188 KB Output is correct
137 Correct 355 ms 38976 KB Output is correct
138 Correct 400 ms 40496 KB Output is correct
139 Correct 339 ms 40104 KB Output is correct
140 Correct 2 ms 1104 KB Output is correct
141 Correct 47 ms 8264 KB Output is correct
142 Correct 25 ms 4948 KB Output is correct
143 Correct 97 ms 13504 KB Output is correct
144 Correct 169 ms 21936 KB Output is correct
145 Correct 163 ms 21680 KB Output is correct
146 Correct 210 ms 27180 KB Output is correct
147 Correct 260 ms 32480 KB Output is correct
148 Correct 325 ms 37016 KB Output is correct
149 Correct 356 ms 42304 KB Output is correct
150 Correct 389 ms 43684 KB Output is correct
151 Correct 388 ms 47520 KB Output is correct
152 Correct 7 ms 2128 KB Output is correct
153 Correct 11 ms 2896 KB Output is correct
154 Correct 163 ms 21680 KB Output is correct
155 Correct 268 ms 31908 KB Output is correct
156 Correct 392 ms 42152 KB Output is correct
157 Correct 1 ms 1104 KB Output is correct
158 Correct 1 ms 1104 KB Output is correct
159 Correct 1 ms 1212 KB Output is correct
160 Correct 1 ms 1104 KB Output is correct
161 Correct 348 ms 38304 KB Output is correct
162 Correct 312 ms 38728 KB Output is correct
163 Correct 316 ms 38464 KB Output is correct
164 Correct 356 ms 39364 KB Output is correct
165 Correct 416 ms 39208 KB Output is correct
166 Correct 409 ms 38560 KB Output is correct
167 Correct 70 ms 10356 KB Output is correct
168 Correct 40 ms 6232 KB Output is correct
169 Correct 109 ms 14100 KB Output is correct
170 Correct 268 ms 25320 KB Output is correct
171 Correct 299 ms 32928 KB Output is correct
172 Correct 156 ms 20356 KB Output is correct
173 Correct 188 ms 24176 KB Output is correct
174 Correct 251 ms 28104 KB Output is correct
175 Correct 279 ms 31464 KB Output is correct
176 Correct 343 ms 35636 KB Output is correct
177 Correct 359 ms 39612 KB Output is correct