Submission #1052976

# Submission time Handle Problem Language Result Execution time Memory
1052976 2024-08-11T07:01:38 Z ReLice Fountain Parks (IOI21_parks) C++17
100 / 100
456 ms 56752 KB
#include "parks.h"
#include <bits/stdc++.h>
#define pb push_back
#define ll int
#define ins insert
#define sz size()
#define vll vector<ll>
#define fr first
#define sc second
#define all(x) x.begin(),x.end()
using namespace std;
const int N=2e5+5;
const int inf=1e9;
map<pair<ll,ll>, ll> f;
vll xx, yy;

ll xd[4] = {2, 0}, yd[4] = {0, 2};
ll bx[2][4] = {{1, -1}, { 1, 1}};
ll by[2][4] = {{1,  1}, {-1, 1}};

set<pair<ll,ll>> vis;
vll v,u,a,b;
ll n,c;
ll p[N], siz[N];
bool ok(ll x,ll y){
	if(x % 2) return (vis.find({x, y}) == vis.end());
	return f[{x,y}];
}

ll anc(ll a){
	return (p[a] == a ? a : p[a] = anc(p[a]));
}
bool uni(ll a, ll b){
	a = anc(a);
	b = anc(b);
	if(a == b)return false;
	if(siz[a]>siz[b]) swap(a, b);
	p[a] = b;
	siz[b] += siz[a];
	return true;
}

void go(ll x, ll y){
	c++;
	for(ll i=0;i<2;i++){
		ll nx = x + xd[i], ny = y + yd[i];
		
		ll p = (x + y) / 2 % 2;
		ll aa = x + bx[p][i], bb = y + by[p][i];
		
		if(!ok(nx, ny) || !ok(aa, bb) || !uni(f[{nx,ny}],f[{x,y}])) continue;
		
		v.pb(f[{x,y}]-1);
		u.pb(f[{nx,ny}]-1);
		a.pb(aa);
		b.pb(bb);
		
		vis.ins({aa, bb});
	}
}
int construct_roads(vector<int> X, vector<int> Y) {
	n=X.size();
	vector<array<int,3>> V;
	
	for(int i=0;i<n;i++){
		f[{X[i], Y[i]}] = i + 1;
		V.pb({X[i] + Y[i], X[i], i + 1});
	}
	
	sort(all(V));
	
	xx.pb(0);
	yy.pb(0);
	for(auto i : X) xx.pb(i);
	for(auto i : Y) yy.pb(i);
	
	for(ll i=1;i<=n;i++){p[i]=i,siz[i]=1;}
	
	for(ll i=0;i<n;i++){
		ll x = xx[V[i][2]];
		ll y = yy[V[i][2]];
		//~ cout<<x<<' '<<y<<endl;
		go(x,y);
	}
	
	//~ for(ll i=0;i<(ll)u.size();i++){
		//~ cout<<X[v[i]]<<' '<<Y[v[i]]<<endl;
		//~ cout<<X[u[i]]<<' '<<Y[u[i]]<<endl;
		//~ cout<<a[i]<<' '<<b[i]<<endl;
		//~ cout<<endl;
	//~ }
	
	if((ll)u.size() != n - 1) return 0;
	
	build(u, v, a, b);
	
	return 1;
}











# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 119 ms 26816 KB Output is correct
10 Correct 11 ms 3044 KB Output is correct
11 Correct 57 ms 14600 KB Output is correct
12 Correct 12 ms 4524 KB Output is correct
13 Correct 38 ms 10508 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 128 ms 26832 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 119 ms 26816 KB Output is correct
10 Correct 11 ms 3044 KB Output is correct
11 Correct 57 ms 14600 KB Output is correct
12 Correct 12 ms 4524 KB Output is correct
13 Correct 38 ms 10508 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 128 ms 26832 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 279 ms 47176 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 2 ms 604 KB Output is correct
26 Correct 2 ms 1076 KB Output is correct
27 Correct 3 ms 1112 KB Output is correct
28 Correct 95 ms 19016 KB Output is correct
29 Correct 165 ms 28376 KB Output is correct
30 Correct 217 ms 38400 KB Output is correct
31 Correct 282 ms 47104 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 1 ms 344 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 344 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 2 ms 860 KB Output is correct
44 Correct 2 ms 972 KB Output is correct
45 Correct 121 ms 25704 KB Output is correct
46 Correct 187 ms 38660 KB Output is correct
47 Correct 184 ms 38148 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 119 ms 26816 KB Output is correct
10 Correct 11 ms 3044 KB Output is correct
11 Correct 57 ms 14600 KB Output is correct
12 Correct 12 ms 4524 KB Output is correct
13 Correct 38 ms 10508 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 128 ms 26832 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 279 ms 47176 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 2 ms 604 KB Output is correct
26 Correct 2 ms 1076 KB Output is correct
27 Correct 3 ms 1112 KB Output is correct
28 Correct 95 ms 19016 KB Output is correct
29 Correct 165 ms 28376 KB Output is correct
30 Correct 217 ms 38400 KB Output is correct
31 Correct 282 ms 47104 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 1 ms 344 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 344 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 2 ms 860 KB Output is correct
44 Correct 2 ms 972 KB Output is correct
45 Correct 121 ms 25704 KB Output is correct
46 Correct 187 ms 38660 KB Output is correct
47 Correct 184 ms 38148 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 281 ms 45252 KB Output is correct
56 Correct 1 ms 348 KB Output is correct
57 Correct 2 ms 860 KB Output is correct
58 Correct 5 ms 1908 KB Output is correct
59 Correct 8 ms 2396 KB Output is correct
60 Correct 138 ms 22628 KB Output is correct
61 Correct 175 ms 31424 KB Output is correct
62 Correct 231 ms 37476 KB Output is correct
63 Correct 301 ms 44976 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 310 ms 53344 KB Output is correct
68 Correct 305 ms 53428 KB Output is correct
69 Correct 295 ms 53032 KB Output is correct
70 Correct 4 ms 1116 KB Output is correct
71 Correct 7 ms 2140 KB Output is correct
72 Correct 126 ms 25376 KB Output is correct
73 Correct 195 ms 38276 KB Output is correct
74 Correct 319 ms 50652 KB Output is correct
75 Correct 284 ms 48328 KB Output is correct
76 Correct 301 ms 53420 KB Output is correct
77 Correct 4 ms 1372 KB Output is correct
78 Correct 8 ms 2396 KB Output is correct
79 Correct 124 ms 24804 KB Output is correct
80 Correct 197 ms 37328 KB Output is correct
81 Correct 284 ms 49580 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 119 ms 26816 KB Output is correct
10 Correct 11 ms 3044 KB Output is correct
11 Correct 57 ms 14600 KB Output is correct
12 Correct 12 ms 4524 KB Output is correct
13 Correct 38 ms 10508 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 128 ms 26832 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 247 ms 48056 KB Output is correct
21 Correct 277 ms 54188 KB Output is correct
22 Correct 281 ms 47884 KB Output is correct
23 Correct 236 ms 46028 KB Output is correct
24 Correct 298 ms 46488 KB Output is correct
25 Correct 387 ms 46852 KB Output is correct
26 Correct 382 ms 46844 KB Output is correct
27 Correct 456 ms 53420 KB Output is correct
28 Correct 430 ms 53420 KB Output is correct
29 Correct 419 ms 53368 KB Output is correct
30 Correct 444 ms 53428 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 17 ms 4160 KB Output is correct
33 Correct 66 ms 23524 KB Output is correct
34 Correct 256 ms 54228 KB Output is correct
35 Correct 11 ms 2396 KB Output is correct
36 Correct 56 ms 10912 KB Output is correct
37 Correct 129 ms 21292 KB Output is correct
38 Correct 127 ms 20196 KB Output is correct
39 Correct 222 ms 27428 KB Output is correct
40 Correct 268 ms 35760 KB Output is correct
41 Correct 314 ms 42484 KB Output is correct
42 Correct 399 ms 49640 KB Output is correct
43 Correct 0 ms 344 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 428 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 356 KB Output is correct
54 Correct 2 ms 860 KB Output is correct
55 Correct 2 ms 1116 KB Output is correct
56 Correct 117 ms 25700 KB Output is correct
57 Correct 188 ms 37612 KB Output is correct
58 Correct 184 ms 38364 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 295 ms 53496 KB Output is correct
63 Correct 301 ms 53424 KB Output is correct
64 Correct 298 ms 53216 KB Output is correct
65 Correct 4 ms 1116 KB Output is correct
66 Correct 6 ms 2140 KB Output is correct
67 Correct 126 ms 25312 KB Output is correct
68 Correct 198 ms 38524 KB Output is correct
69 Correct 287 ms 50576 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 119 ms 26816 KB Output is correct
10 Correct 11 ms 3044 KB Output is correct
11 Correct 57 ms 14600 KB Output is correct
12 Correct 12 ms 4524 KB Output is correct
13 Correct 38 ms 10508 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 128 ms 26832 KB Output is correct
17 Correct 296 ms 53684 KB Output is correct
18 Correct 287 ms 53948 KB Output is correct
19 Correct 273 ms 50860 KB Output is correct
20 Correct 370 ms 44124 KB Output is correct
21 Correct 352 ms 45060 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 40 ms 8220 KB Output is correct
24 Correct 27 ms 4504 KB Output is correct
25 Correct 83 ms 14780 KB Output is correct
26 Correct 148 ms 24244 KB Output is correct
27 Correct 163 ms 23908 KB Output is correct
28 Correct 238 ms 29800 KB Output is correct
29 Correct 289 ms 36124 KB Output is correct
30 Correct 362 ms 41752 KB Output is correct
31 Correct 391 ms 47636 KB Output is correct
32 Correct 279 ms 48364 KB Output is correct
33 Correct 292 ms 53424 KB Output is correct
34 Correct 4 ms 1372 KB Output is correct
35 Correct 7 ms 2396 KB Output is correct
36 Correct 120 ms 24812 KB Output is correct
37 Correct 197 ms 38144 KB Output is correct
38 Correct 288 ms 49920 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 119 ms 26816 KB Output is correct
10 Correct 11 ms 3044 KB Output is correct
11 Correct 57 ms 14600 KB Output is correct
12 Correct 12 ms 4524 KB Output is correct
13 Correct 38 ms 10508 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 860 KB Output is correct
16 Correct 128 ms 26832 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 279 ms 47176 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 2 ms 604 KB Output is correct
26 Correct 2 ms 1076 KB Output is correct
27 Correct 3 ms 1112 KB Output is correct
28 Correct 95 ms 19016 KB Output is correct
29 Correct 165 ms 28376 KB Output is correct
30 Correct 217 ms 38400 KB Output is correct
31 Correct 282 ms 47104 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 1 ms 344 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 344 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 2 ms 860 KB Output is correct
44 Correct 2 ms 972 KB Output is correct
45 Correct 121 ms 25704 KB Output is correct
46 Correct 187 ms 38660 KB Output is correct
47 Correct 184 ms 38148 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 281 ms 45252 KB Output is correct
56 Correct 1 ms 348 KB Output is correct
57 Correct 2 ms 860 KB Output is correct
58 Correct 5 ms 1908 KB Output is correct
59 Correct 8 ms 2396 KB Output is correct
60 Correct 138 ms 22628 KB Output is correct
61 Correct 175 ms 31424 KB Output is correct
62 Correct 231 ms 37476 KB Output is correct
63 Correct 301 ms 44976 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 348 KB Output is correct
67 Correct 310 ms 53344 KB Output is correct
68 Correct 305 ms 53428 KB Output is correct
69 Correct 295 ms 53032 KB Output is correct
70 Correct 4 ms 1116 KB Output is correct
71 Correct 7 ms 2140 KB Output is correct
72 Correct 126 ms 25376 KB Output is correct
73 Correct 195 ms 38276 KB Output is correct
74 Correct 319 ms 50652 KB Output is correct
75 Correct 284 ms 48328 KB Output is correct
76 Correct 301 ms 53420 KB Output is correct
77 Correct 4 ms 1372 KB Output is correct
78 Correct 8 ms 2396 KB Output is correct
79 Correct 124 ms 24804 KB Output is correct
80 Correct 197 ms 37328 KB Output is correct
81 Correct 284 ms 49580 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 247 ms 48056 KB Output is correct
86 Correct 277 ms 54188 KB Output is correct
87 Correct 281 ms 47884 KB Output is correct
88 Correct 236 ms 46028 KB Output is correct
89 Correct 298 ms 46488 KB Output is correct
90 Correct 387 ms 46852 KB Output is correct
91 Correct 382 ms 46844 KB Output is correct
92 Correct 456 ms 53420 KB Output is correct
93 Correct 430 ms 53420 KB Output is correct
94 Correct 419 ms 53368 KB Output is correct
95 Correct 444 ms 53428 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 17 ms 4160 KB Output is correct
98 Correct 66 ms 23524 KB Output is correct
99 Correct 256 ms 54228 KB Output is correct
100 Correct 11 ms 2396 KB Output is correct
101 Correct 56 ms 10912 KB Output is correct
102 Correct 129 ms 21292 KB Output is correct
103 Correct 127 ms 20196 KB Output is correct
104 Correct 222 ms 27428 KB Output is correct
105 Correct 268 ms 35760 KB Output is correct
106 Correct 314 ms 42484 KB Output is correct
107 Correct 399 ms 49640 KB Output is correct
108 Correct 0 ms 344 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 0 ms 348 KB Output is correct
111 Correct 0 ms 348 KB Output is correct
112 Correct 0 ms 348 KB Output is correct
113 Correct 0 ms 348 KB Output is correct
114 Correct 0 ms 348 KB Output is correct
115 Correct 0 ms 348 KB Output is correct
116 Correct 0 ms 428 KB Output is correct
117 Correct 0 ms 348 KB Output is correct
118 Correct 0 ms 356 KB Output is correct
119 Correct 2 ms 860 KB Output is correct
120 Correct 2 ms 1116 KB Output is correct
121 Correct 117 ms 25700 KB Output is correct
122 Correct 188 ms 37612 KB Output is correct
123 Correct 184 ms 38364 KB Output is correct
124 Correct 0 ms 348 KB Output is correct
125 Correct 0 ms 348 KB Output is correct
126 Correct 1 ms 348 KB Output is correct
127 Correct 295 ms 53496 KB Output is correct
128 Correct 301 ms 53424 KB Output is correct
129 Correct 298 ms 53216 KB Output is correct
130 Correct 4 ms 1116 KB Output is correct
131 Correct 6 ms 2140 KB Output is correct
132 Correct 126 ms 25312 KB Output is correct
133 Correct 198 ms 38524 KB Output is correct
134 Correct 287 ms 50576 KB Output is correct
135 Correct 296 ms 53684 KB Output is correct
136 Correct 287 ms 53948 KB Output is correct
137 Correct 273 ms 50860 KB Output is correct
138 Correct 370 ms 44124 KB Output is correct
139 Correct 352 ms 45060 KB Output is correct
140 Correct 0 ms 348 KB Output is correct
141 Correct 40 ms 8220 KB Output is correct
142 Correct 27 ms 4504 KB Output is correct
143 Correct 83 ms 14780 KB Output is correct
144 Correct 148 ms 24244 KB Output is correct
145 Correct 163 ms 23908 KB Output is correct
146 Correct 238 ms 29800 KB Output is correct
147 Correct 289 ms 36124 KB Output is correct
148 Correct 362 ms 41752 KB Output is correct
149 Correct 391 ms 47636 KB Output is correct
150 Correct 279 ms 48364 KB Output is correct
151 Correct 292 ms 53424 KB Output is correct
152 Correct 4 ms 1372 KB Output is correct
153 Correct 7 ms 2396 KB Output is correct
154 Correct 120 ms 24812 KB Output is correct
155 Correct 197 ms 38144 KB Output is correct
156 Correct 288 ms 49920 KB Output is correct
157 Correct 1 ms 344 KB Output is correct
158 Correct 0 ms 348 KB Output is correct
159 Correct 0 ms 348 KB Output is correct
160 Correct 0 ms 348 KB Output is correct
161 Correct 340 ms 43180 KB Output is correct
162 Correct 259 ms 56752 KB Output is correct
163 Correct 259 ms 52408 KB Output is correct
164 Correct 247 ms 52396 KB Output is correct
165 Correct 255 ms 46620 KB Output is correct
166 Correct 254 ms 43948 KB Output is correct
167 Correct 61 ms 11136 KB Output is correct
168 Correct 32 ms 5772 KB Output is correct
169 Correct 89 ms 15324 KB Output is correct
170 Correct 177 ms 28348 KB Output is correct
171 Correct 262 ms 37440 KB Output is correct
172 Correct 162 ms 22248 KB Output is correct
173 Correct 186 ms 26596 KB Output is correct
174 Correct 228 ms 32076 KB Output is correct
175 Correct 265 ms 35480 KB Output is correct
176 Correct 307 ms 40244 KB Output is correct
177 Correct 362 ms 44728 KB Output is correct