Submission #780640

# Submission time Handle Problem Language Result Execution time Memory
780640 2023-07-12T11:14:53 Z raysh07 Fountain Parks (IOI21_parks) C++17
100 / 100
543 ms 53964 KB
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;

struct park{
	int x, y, i;
};

const int N = 2e5 + 69;
int root[N];

int find(int x){ 
	if (x == root[x]) return x;
	return root[x] = find(root[x]);
}

void unite(int x, int y){
	x = find(x); y = find(y);
	root[x] = y;
}

pair<int, int> f(int x, int y, int d){
	if (d == 0){
		int add = -1;
		if ((x + y) % 4 == 0) add = 1;

		return make_pair(x - 1, y + add);
	} else {
		int add = -1;
		if ((x + y) % 4 == 2) add = 1;

		return make_pair(x + add, y - 1);
	}
}

int construct_roads(vector<int> x, vector<int> y) {
 //    if (x.size() == 1) {
	// build({}, {}, {}, {});
 //        return 1;
 //    }
 //    std::vector<int> u, v, a, b;
 //    u.push_back(0);
 //    v.push_back(1);
 //    a.push_back(x[0]+1);
 //    b.push_back(y[0]-1);
 //    build(u, v, a, b);
 //    return 1;

	int n = x.size();
	vector <park> a(n);
	for (int i = 0; i < n; i++){
		a[i].i = i;
		a[i].x = x[i];
		a[i].y = y[i];
	}

	vector <int> u, v, u1, v1;

	sort(a.begin(), a.end(), [&](park x, park y){
		return x.x + x.y < y.x + y.y;
	});

	set <pair<int, int>> st;
	set <pair<int, int>> foun;
	map <pair<int, int>, int> mp;
	for (auto x : a){
		foun.insert({x.x, x.y});
		mp[{x.x, x.y}] = x.i;

		if (foun.find({x.x - 2, x.y}) != foun.end() && st.find(f(x.x, x.y, 0)) == st.end()){
			auto pi = f(x.x, x.y, 0);
			st.insert(pi);
			u.push_back(x.i);
			v.push_back(mp[make_pair(x.x - 2, x.y)]);
			u1.push_back(pi.first);
			v1.push_back(pi.second);
		}

		if (foun.find({x.x, x.y - 2}) != foun.end() && st.find(f(x.x, x.y, 1)) == st.end()){
			auto pi = f(x.x, x.y, 1);
			st.insert(pi);
			u.push_back(x.i);
			v.push_back(mp[make_pair(x.x, x.y - 2)]);
			u1.push_back(pi.first);
			v1.push_back(pi.second);
		}
	}

	for (int i = 0; i < n; i++) root[i] = i;

	for (int i = 0; i < (int)u.size(); i++){
		unite(u[i], v[i]);
	}

	for (int i = 0; i < n; i++){
		if (find(i) != find(0)) return 0;
	}

	build(u, v, u1, v1);
	return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 312 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 0 ms 308 KB Output is correct
9 Correct 129 ms 24608 KB Output is correct
10 Correct 10 ms 2900 KB Output is correct
11 Correct 62 ms 13284 KB Output is correct
12 Correct 16 ms 3968 KB Output is correct
13 Correct 36 ms 9668 KB Output is correct
14 Correct 1 ms 468 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 138 ms 24540 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 312 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 0 ms 308 KB Output is correct
9 Correct 129 ms 24608 KB Output is correct
10 Correct 10 ms 2900 KB Output is correct
11 Correct 62 ms 13284 KB Output is correct
12 Correct 16 ms 3968 KB Output is correct
13 Correct 36 ms 9668 KB Output is correct
14 Correct 1 ms 468 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 138 ms 24540 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 333 ms 48848 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 596 KB Output is correct
26 Correct 3 ms 852 KB Output is correct
27 Correct 3 ms 1108 KB Output is correct
28 Correct 110 ms 19756 KB Output is correct
29 Correct 180 ms 29608 KB Output is correct
30 Correct 252 ms 39176 KB Output is correct
31 Correct 336 ms 48912 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 212 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 0 ms 308 KB Output is correct
37 Correct 1 ms 304 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 0 ms 308 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 2 ms 724 KB Output is correct
44 Correct 3 ms 852 KB Output is correct
45 Correct 164 ms 24624 KB Output is correct
46 Correct 199 ms 35520 KB Output is correct
47 Correct 242 ms 35488 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 312 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 0 ms 308 KB Output is correct
9 Correct 129 ms 24608 KB Output is correct
10 Correct 10 ms 2900 KB Output is correct
11 Correct 62 ms 13284 KB Output is correct
12 Correct 16 ms 3968 KB Output is correct
13 Correct 36 ms 9668 KB Output is correct
14 Correct 1 ms 468 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 138 ms 24540 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 333 ms 48848 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 596 KB Output is correct
26 Correct 3 ms 852 KB Output is correct
27 Correct 3 ms 1108 KB Output is correct
28 Correct 110 ms 19756 KB Output is correct
29 Correct 180 ms 29608 KB Output is correct
30 Correct 252 ms 39176 KB Output is correct
31 Correct 336 ms 48912 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 212 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 0 ms 308 KB Output is correct
37 Correct 1 ms 304 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 0 ms 308 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 2 ms 724 KB Output is correct
44 Correct 3 ms 852 KB Output is correct
45 Correct 164 ms 24624 KB Output is correct
46 Correct 199 ms 35520 KB Output is correct
47 Correct 242 ms 35488 KB Output is correct
48 Correct 1 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 1 ms 312 KB Output is correct
51 Correct 1 ms 212 KB Output is correct
52 Correct 1 ms 212 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 1 ms 308 KB Output is correct
55 Correct 357 ms 48788 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 2 ms 724 KB Output is correct
58 Correct 6 ms 1876 KB Output is correct
59 Correct 8 ms 2388 KB Output is correct
60 Correct 125 ms 24576 KB Output is correct
61 Correct 212 ms 33056 KB Output is correct
62 Correct 260 ms 40532 KB Output is correct
63 Correct 330 ms 48896 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 1 ms 212 KB Output is correct
67 Correct 327 ms 48916 KB Output is correct
68 Correct 323 ms 48956 KB Output is correct
69 Correct 327 ms 48672 KB Output is correct
70 Correct 4 ms 1108 KB Output is correct
71 Correct 6 ms 1984 KB Output is correct
72 Correct 135 ms 24512 KB Output is correct
73 Correct 220 ms 36808 KB Output is correct
74 Correct 331 ms 48928 KB Output is correct
75 Correct 337 ms 52640 KB Output is correct
76 Correct 318 ms 48888 KB Output is correct
77 Correct 6 ms 1544 KB Output is correct
78 Correct 7 ms 2260 KB Output is correct
79 Correct 136 ms 25524 KB Output is correct
80 Correct 237 ms 38276 KB Output is correct
81 Correct 332 ms 50848 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 312 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 0 ms 308 KB Output is correct
9 Correct 129 ms 24608 KB Output is correct
10 Correct 10 ms 2900 KB Output is correct
11 Correct 62 ms 13284 KB Output is correct
12 Correct 16 ms 3968 KB Output is correct
13 Correct 36 ms 9668 KB Output is correct
14 Correct 1 ms 468 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 138 ms 24540 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 458 ms 49748 KB Output is correct
21 Correct 306 ms 49528 KB Output is correct
22 Correct 495 ms 49572 KB Output is correct
23 Correct 248 ms 42044 KB Output is correct
24 Correct 260 ms 30156 KB Output is correct
25 Correct 464 ms 42528 KB Output is correct
26 Correct 391 ms 42608 KB Output is correct
27 Correct 457 ms 48824 KB Output is correct
28 Correct 498 ms 48796 KB Output is correct
29 Correct 526 ms 48804 KB Output is correct
30 Correct 502 ms 48904 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 19 ms 3880 KB Output is correct
33 Correct 64 ms 15564 KB Output is correct
34 Correct 279 ms 49868 KB Output is correct
35 Correct 10 ms 2388 KB Output is correct
36 Correct 57 ms 11092 KB Output is correct
37 Correct 132 ms 21896 KB Output is correct
38 Correct 144 ms 20216 KB Output is correct
39 Correct 232 ms 27524 KB Output is correct
40 Correct 316 ms 34884 KB Output is correct
41 Correct 435 ms 42420 KB Output is correct
42 Correct 481 ms 49820 KB Output is correct
43 Correct 0 ms 212 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 1 ms 312 KB Output is correct
46 Correct 0 ms 212 KB Output is correct
47 Correct 0 ms 212 KB Output is correct
48 Correct 1 ms 212 KB Output is correct
49 Correct 1 ms 212 KB Output is correct
50 Correct 1 ms 212 KB Output is correct
51 Correct 1 ms 212 KB Output is correct
52 Correct 0 ms 212 KB Output is correct
53 Correct 0 ms 212 KB Output is correct
54 Correct 2 ms 724 KB Output is correct
55 Correct 2 ms 852 KB Output is correct
56 Correct 122 ms 24624 KB Output is correct
57 Correct 238 ms 35548 KB Output is correct
58 Correct 208 ms 35528 KB Output is correct
59 Correct 1 ms 212 KB Output is correct
60 Correct 0 ms 212 KB Output is correct
61 Correct 1 ms 212 KB Output is correct
62 Correct 336 ms 48968 KB Output is correct
63 Correct 318 ms 48860 KB Output is correct
64 Correct 314 ms 48664 KB Output is correct
65 Correct 3 ms 1108 KB Output is correct
66 Correct 7 ms 1944 KB Output is correct
67 Correct 137 ms 24552 KB Output is correct
68 Correct 242 ms 36800 KB Output is correct
69 Correct 329 ms 48980 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 312 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 0 ms 308 KB Output is correct
9 Correct 129 ms 24608 KB Output is correct
10 Correct 10 ms 2900 KB Output is correct
11 Correct 62 ms 13284 KB Output is correct
12 Correct 16 ms 3968 KB Output is correct
13 Correct 36 ms 9668 KB Output is correct
14 Correct 1 ms 468 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 138 ms 24540 KB Output is correct
17 Correct 306 ms 49388 KB Output is correct
18 Correct 301 ms 49404 KB Output is correct
19 Correct 345 ms 49536 KB Output is correct
20 Correct 542 ms 53964 KB Output is correct
21 Correct 453 ms 45004 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 54 ms 8284 KB Output is correct
24 Correct 23 ms 4804 KB Output is correct
25 Correct 91 ms 16236 KB Output is correct
26 Correct 189 ms 27636 KB Output is correct
27 Correct 235 ms 26836 KB Output is correct
28 Correct 291 ms 33696 KB Output is correct
29 Correct 401 ms 40344 KB Output is correct
30 Correct 489 ms 46740 KB Output is correct
31 Correct 543 ms 53500 KB Output is correct
32 Correct 354 ms 52628 KB Output is correct
33 Correct 324 ms 48924 KB Output is correct
34 Correct 4 ms 1364 KB Output is correct
35 Correct 7 ms 2260 KB Output is correct
36 Correct 141 ms 25504 KB Output is correct
37 Correct 239 ms 38308 KB Output is correct
38 Correct 338 ms 50940 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 212 KB Output is correct
4 Correct 1 ms 312 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 0 ms 308 KB Output is correct
9 Correct 129 ms 24608 KB Output is correct
10 Correct 10 ms 2900 KB Output is correct
11 Correct 62 ms 13284 KB Output is correct
12 Correct 16 ms 3968 KB Output is correct
13 Correct 36 ms 9668 KB Output is correct
14 Correct 1 ms 468 KB Output is correct
15 Correct 2 ms 724 KB Output is correct
16 Correct 138 ms 24540 KB Output is correct
17 Correct 1 ms 212 KB Output is correct
18 Correct 1 ms 212 KB Output is correct
19 Correct 1 ms 212 KB Output is correct
20 Correct 1 ms 212 KB Output is correct
21 Correct 1 ms 212 KB Output is correct
22 Correct 1 ms 212 KB Output is correct
23 Correct 333 ms 48848 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 1 ms 596 KB Output is correct
26 Correct 3 ms 852 KB Output is correct
27 Correct 3 ms 1108 KB Output is correct
28 Correct 110 ms 19756 KB Output is correct
29 Correct 180 ms 29608 KB Output is correct
30 Correct 252 ms 39176 KB Output is correct
31 Correct 336 ms 48912 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 0 ms 212 KB Output is correct
35 Correct 0 ms 212 KB Output is correct
36 Correct 0 ms 308 KB Output is correct
37 Correct 1 ms 304 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 1 ms 212 KB Output is correct
41 Correct 0 ms 308 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 2 ms 724 KB Output is correct
44 Correct 3 ms 852 KB Output is correct
45 Correct 164 ms 24624 KB Output is correct
46 Correct 199 ms 35520 KB Output is correct
47 Correct 242 ms 35488 KB Output is correct
48 Correct 1 ms 212 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 1 ms 312 KB Output is correct
51 Correct 1 ms 212 KB Output is correct
52 Correct 1 ms 212 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 1 ms 308 KB Output is correct
55 Correct 357 ms 48788 KB Output is correct
56 Correct 1 ms 212 KB Output is correct
57 Correct 2 ms 724 KB Output is correct
58 Correct 6 ms 1876 KB Output is correct
59 Correct 8 ms 2388 KB Output is correct
60 Correct 125 ms 24576 KB Output is correct
61 Correct 212 ms 33056 KB Output is correct
62 Correct 260 ms 40532 KB Output is correct
63 Correct 330 ms 48896 KB Output is correct
64 Correct 1 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 1 ms 212 KB Output is correct
67 Correct 327 ms 48916 KB Output is correct
68 Correct 323 ms 48956 KB Output is correct
69 Correct 327 ms 48672 KB Output is correct
70 Correct 4 ms 1108 KB Output is correct
71 Correct 6 ms 1984 KB Output is correct
72 Correct 135 ms 24512 KB Output is correct
73 Correct 220 ms 36808 KB Output is correct
74 Correct 331 ms 48928 KB Output is correct
75 Correct 337 ms 52640 KB Output is correct
76 Correct 318 ms 48888 KB Output is correct
77 Correct 6 ms 1544 KB Output is correct
78 Correct 7 ms 2260 KB Output is correct
79 Correct 136 ms 25524 KB Output is correct
80 Correct 237 ms 38276 KB Output is correct
81 Correct 332 ms 50848 KB Output is correct
82 Correct 1 ms 212 KB Output is correct
83 Correct 0 ms 212 KB Output is correct
84 Correct 1 ms 212 KB Output is correct
85 Correct 458 ms 49748 KB Output is correct
86 Correct 306 ms 49528 KB Output is correct
87 Correct 495 ms 49572 KB Output is correct
88 Correct 248 ms 42044 KB Output is correct
89 Correct 260 ms 30156 KB Output is correct
90 Correct 464 ms 42528 KB Output is correct
91 Correct 391 ms 42608 KB Output is correct
92 Correct 457 ms 48824 KB Output is correct
93 Correct 498 ms 48796 KB Output is correct
94 Correct 526 ms 48804 KB Output is correct
95 Correct 502 ms 48904 KB Output is correct
96 Correct 1 ms 212 KB Output is correct
97 Correct 19 ms 3880 KB Output is correct
98 Correct 64 ms 15564 KB Output is correct
99 Correct 279 ms 49868 KB Output is correct
100 Correct 10 ms 2388 KB Output is correct
101 Correct 57 ms 11092 KB Output is correct
102 Correct 132 ms 21896 KB Output is correct
103 Correct 144 ms 20216 KB Output is correct
104 Correct 232 ms 27524 KB Output is correct
105 Correct 316 ms 34884 KB Output is correct
106 Correct 435 ms 42420 KB Output is correct
107 Correct 481 ms 49820 KB Output is correct
108 Correct 0 ms 212 KB Output is correct
109 Correct 0 ms 212 KB Output is correct
110 Correct 1 ms 312 KB Output is correct
111 Correct 0 ms 212 KB Output is correct
112 Correct 0 ms 212 KB Output is correct
113 Correct 1 ms 212 KB Output is correct
114 Correct 1 ms 212 KB Output is correct
115 Correct 1 ms 212 KB Output is correct
116 Correct 1 ms 212 KB Output is correct
117 Correct 0 ms 212 KB Output is correct
118 Correct 0 ms 212 KB Output is correct
119 Correct 2 ms 724 KB Output is correct
120 Correct 2 ms 852 KB Output is correct
121 Correct 122 ms 24624 KB Output is correct
122 Correct 238 ms 35548 KB Output is correct
123 Correct 208 ms 35528 KB Output is correct
124 Correct 1 ms 212 KB Output is correct
125 Correct 0 ms 212 KB Output is correct
126 Correct 1 ms 212 KB Output is correct
127 Correct 336 ms 48968 KB Output is correct
128 Correct 318 ms 48860 KB Output is correct
129 Correct 314 ms 48664 KB Output is correct
130 Correct 3 ms 1108 KB Output is correct
131 Correct 7 ms 1944 KB Output is correct
132 Correct 137 ms 24552 KB Output is correct
133 Correct 242 ms 36800 KB Output is correct
134 Correct 329 ms 48980 KB Output is correct
135 Correct 306 ms 49388 KB Output is correct
136 Correct 301 ms 49404 KB Output is correct
137 Correct 345 ms 49536 KB Output is correct
138 Correct 542 ms 53964 KB Output is correct
139 Correct 453 ms 45004 KB Output is correct
140 Correct 1 ms 212 KB Output is correct
141 Correct 54 ms 8284 KB Output is correct
142 Correct 23 ms 4804 KB Output is correct
143 Correct 91 ms 16236 KB Output is correct
144 Correct 189 ms 27636 KB Output is correct
145 Correct 235 ms 26836 KB Output is correct
146 Correct 291 ms 33696 KB Output is correct
147 Correct 401 ms 40344 KB Output is correct
148 Correct 489 ms 46740 KB Output is correct
149 Correct 543 ms 53500 KB Output is correct
150 Correct 354 ms 52628 KB Output is correct
151 Correct 324 ms 48924 KB Output is correct
152 Correct 4 ms 1364 KB Output is correct
153 Correct 7 ms 2260 KB Output is correct
154 Correct 141 ms 25504 KB Output is correct
155 Correct 239 ms 38308 KB Output is correct
156 Correct 338 ms 50940 KB Output is correct
157 Correct 1 ms 316 KB Output is correct
158 Correct 1 ms 312 KB Output is correct
159 Correct 1 ms 212 KB Output is correct
160 Correct 1 ms 308 KB Output is correct
161 Correct 532 ms 49200 KB Output is correct
162 Correct 282 ms 49772 KB Output is correct
163 Correct 269 ms 49684 KB Output is correct
164 Correct 276 ms 49608 KB Output is correct
165 Correct 276 ms 49444 KB Output is correct
166 Correct 307 ms 49208 KB Output is correct
167 Correct 75 ms 11840 KB Output is correct
168 Correct 35 ms 6728 KB Output is correct
169 Correct 101 ms 17668 KB Output is correct
170 Correct 240 ms 32672 KB Output is correct
171 Correct 336 ms 43704 KB Output is correct
172 Correct 207 ms 24996 KB Output is correct
173 Correct 267 ms 30016 KB Output is correct
174 Correct 334 ms 35028 KB Output is correct
175 Correct 412 ms 39852 KB Output is correct
176 Correct 486 ms 44836 KB Output is correct
177 Correct 543 ms 49876 KB Output is correct