Submission #1070557

# Submission time Handle Problem Language Result Execution time Memory
1070557 2024-08-22T15:21:24 Z jamjanek Fountain Parks (IOI21_parks) C++17
100 / 100
423 ms 34432 KB
#include "parks.h"
#include<bits/stdc++.h>
using namespace std;
map<pair<int,int>,int>mapa;
int roza[4][2] = {{0,-2}, {0,2}, {-2,0}, {2,0}};
int father[200010];
int find(int x){
	if(father[x]==x)return x;
	return father[x] = find(father[x]);
}
int construct_roads(vector<int> x, vector<int> y) {
	vector<int>va,vb,vu,vv;
	int n = x.size(), i;
	vector<pair<int,int>>p;
	for(i=0;i<n;i++){
		mapa[{x[i],y[i]}]=i;
		p.push_back({x[i], y[i]});
	}
	sort(p.begin(), p.end());
	for(i=0;i<n;i++)father[i] = i;
	for(int j = 0;j<n;j++){
		i = mapa[p[j]];
		if(mapa.find({x[i],y[i]})!=mapa.end() && mapa.find({x[i]+2, y[i]})!=mapa.end() && mapa.find({x[i], y[i]+2})!=mapa.end() && mapa.find({x[i]+2, y[i]+2})!=mapa.end()){
//			printf("znalazlem\n");
			int a=mapa[{x[i],y[i]}];
			int b=mapa[{x[i]+2,y[i]}];
			int c=mapa[{x[i],y[i]+2}];
			int d=mapa[{x[i]+2,y[i]+2}];
			if((x[i]+y[i]+2)%4==2){
				if(find(a)!=find(c)){
					vu.push_back(a);
					vv.push_back(c);
					father[find(a)]=find(c);
					va.push_back(x[i]-1);
					vb.push_back(y[i]+1);
				}
				if(find(b)!=find(d)){
					vu.push_back(b);
					vv.push_back(d);
					father[find(b)]=find(d);
					va.push_back(x[i]+3);
					vb.push_back(y[i]+1);
				}
				if(find(a)!=find(b)){
					vu.push_back(a);
					vv.push_back(b);
					father[find(a)] = find(b);
					va.push_back(x[i]+1);
					vb.push_back(y[i]+1);
				}
			}
			else{
				if(find(a)!=find(b)){
					vu.push_back(a);
					vv.push_back(b);
					father[find(a)]=find(b);
					va.push_back(x[i]+1);
					vb.push_back(y[i]-1);
				}
				if(find(c)!=find(d)){
					vu.push_back(c);
					vv.push_back(d);
					father[find(c)]=find(d);
					va.push_back(x[i]+1);
					vb.push_back(y[i]+3);
				}
				if(find(a)!=find(c)){
					vu.push_back(a);
					vv.push_back(c);
					father[find(a)] = find(c);
					va.push_back(x[i]+1);
					vb.push_back(y[i]+1);
				}				
			}
		}
	}
	for(int ij=0;ij<n;ij++){
		i = mapa[p[ij]];
		for(auto j: roza){
			if(mapa.find({x[i]+j[0], y[i]+j[1]})!=mapa.end()){
				if(find(i)==find(mapa[{x[i]+j[0], y[i]+j[1]}]))continue;
				father[find(i)] = find(mapa[{x[i]+j[0], y[i]+j[1]}]);
				vu.push_back(mapa[{x[i]+j[0], y[i]+j[1]}]);
				vv.push_back(i);
				int A = x[i]+j[0]/2, B = y[i]+j[1]/2;
				//printf("%d %d\n", A, B);
				if(j[1]==0){
					if((A+B)%4==1)
						va.push_back(A),vb.push_back(B+1);
					else
						va.push_back(A),vb.push_back(B-1);
				}
				else{
					if((A+B)%4==1)
						va.push_back(A-1),vb.push_back(B);
					else
						va.push_back(A+1),vb.push_back(B);
				}
			}
		}
	}
	for(i=0;i<n;i++)
		if(find(i)!=find(0))return 0;
	build(vu,vv,va,vb);
	return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 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 122 ms 16804 KB Output is correct
10 Correct 11 ms 2060 KB Output is correct
11 Correct 71 ms 9232 KB Output is correct
12 Correct 18 ms 2788 KB Output is correct
13 Correct 52 ms 6348 KB Output is correct
14 Correct 2 ms 344 KB Output is correct
15 Correct 2 ms 604 KB Output is correct
16 Correct 127 ms 16380 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 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 122 ms 16804 KB Output is correct
10 Correct 11 ms 2060 KB Output is correct
11 Correct 71 ms 9232 KB Output is correct
12 Correct 18 ms 2788 KB Output is correct
13 Correct 52 ms 6348 KB Output is correct
14 Correct 2 ms 344 KB Output is correct
15 Correct 2 ms 604 KB Output is correct
16 Correct 127 ms 16380 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 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 444 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 338 ms 32624 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 2 ms 604 KB Output is correct
26 Correct 3 ms 600 KB Output is correct
27 Correct 4 ms 860 KB Output is correct
28 Correct 111 ms 13292 KB Output is correct
29 Correct 176 ms 19308 KB Output is correct
30 Correct 251 ms 26872 KB Output is correct
31 Correct 327 ms 32628 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 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 348 KB Output is correct
38 Correct 1 ms 448 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 1 ms 440 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 2 ms 604 KB Output is correct
44 Correct 3 ms 604 KB Output is correct
45 Correct 161 ms 15952 KB Output is correct
46 Correct 267 ms 24124 KB Output is correct
47 Correct 231 ms 23776 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 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 122 ms 16804 KB Output is correct
10 Correct 11 ms 2060 KB Output is correct
11 Correct 71 ms 9232 KB Output is correct
12 Correct 18 ms 2788 KB Output is correct
13 Correct 52 ms 6348 KB Output is correct
14 Correct 2 ms 344 KB Output is correct
15 Correct 2 ms 604 KB Output is correct
16 Correct 127 ms 16380 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 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 444 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 338 ms 32624 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 2 ms 604 KB Output is correct
26 Correct 3 ms 600 KB Output is correct
27 Correct 4 ms 860 KB Output is correct
28 Correct 111 ms 13292 KB Output is correct
29 Correct 176 ms 19308 KB Output is correct
30 Correct 251 ms 26872 KB Output is correct
31 Correct 327 ms 32628 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 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 348 KB Output is correct
38 Correct 1 ms 448 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 1 ms 440 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 2 ms 604 KB Output is correct
44 Correct 3 ms 604 KB Output is correct
45 Correct 161 ms 15952 KB Output is correct
46 Correct 267 ms 24124 KB Output is correct
47 Correct 231 ms 23776 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 1 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 401 ms 31992 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 3 ms 604 KB Output is correct
58 Correct 8 ms 1372 KB Output is correct
59 Correct 12 ms 1628 KB Output is correct
60 Correct 184 ms 15928 KB Output is correct
61 Correct 250 ms 22616 KB Output is correct
62 Correct 307 ms 27096 KB Output is correct
63 Correct 380 ms 32136 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 339 ms 32140 KB Output is correct
68 Correct 303 ms 32648 KB Output is correct
69 Correct 306 ms 31888 KB Output is correct
70 Correct 4 ms 860 KB Output is correct
71 Correct 8 ms 1232 KB Output is correct
72 Correct 152 ms 15700 KB Output is correct
73 Correct 264 ms 24456 KB Output is correct
74 Correct 406 ms 31464 KB Output is correct
75 Correct 423 ms 32236 KB Output is correct
76 Correct 320 ms 32588 KB Output is correct
77 Correct 5 ms 860 KB Output is correct
78 Correct 10 ms 1544 KB Output is correct
79 Correct 169 ms 15560 KB Output is correct
80 Correct 281 ms 24208 KB Output is correct
81 Correct 355 ms 31472 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 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 122 ms 16804 KB Output is correct
10 Correct 11 ms 2060 KB Output is correct
11 Correct 71 ms 9232 KB Output is correct
12 Correct 18 ms 2788 KB Output is correct
13 Correct 52 ms 6348 KB Output is correct
14 Correct 2 ms 344 KB Output is correct
15 Correct 2 ms 604 KB Output is correct
16 Correct 127 ms 16380 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 344 KB Output is correct
20 Correct 325 ms 33828 KB Output is correct
21 Correct 337 ms 33020 KB Output is correct
22 Correct 357 ms 32920 KB Output is correct
23 Correct 298 ms 28140 KB Output is correct
24 Correct 234 ms 19908 KB Output is correct
25 Correct 347 ms 25436 KB Output is correct
26 Correct 302 ms 25280 KB Output is correct
27 Correct 312 ms 31124 KB Output is correct
28 Correct 336 ms 31108 KB Output is correct
29 Correct 383 ms 31248 KB Output is correct
30 Correct 391 ms 31260 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 23 ms 2732 KB Output is correct
33 Correct 113 ms 10696 KB Output is correct
34 Correct 366 ms 34168 KB Output is correct
35 Correct 14 ms 1628 KB Output is correct
36 Correct 72 ms 6860 KB Output is correct
37 Correct 165 ms 13288 KB Output is correct
38 Correct 128 ms 13724 KB Output is correct
39 Correct 226 ms 18184 KB Output is correct
40 Correct 240 ms 24104 KB Output is correct
41 Correct 309 ms 28516 KB Output is correct
42 Correct 343 ms 33152 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 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 2 ms 604 KB Output is correct
55 Correct 3 ms 604 KB Output is correct
56 Correct 144 ms 15928 KB Output is correct
57 Correct 217 ms 23892 KB Output is correct
58 Correct 212 ms 23764 KB Output is correct
59 Correct 0 ms 344 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 291 ms 32272 KB Output is correct
63 Correct 277 ms 32640 KB Output is correct
64 Correct 294 ms 31656 KB Output is correct
65 Correct 4 ms 856 KB Output is correct
66 Correct 9 ms 1372 KB Output is correct
67 Correct 149 ms 15776 KB Output is correct
68 Correct 234 ms 24492 KB Output is correct
69 Correct 332 ms 31652 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 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 122 ms 16804 KB Output is correct
10 Correct 11 ms 2060 KB Output is correct
11 Correct 71 ms 9232 KB Output is correct
12 Correct 18 ms 2788 KB Output is correct
13 Correct 52 ms 6348 KB Output is correct
14 Correct 2 ms 344 KB Output is correct
15 Correct 2 ms 604 KB Output is correct
16 Correct 127 ms 16380 KB Output is correct
17 Correct 306 ms 32752 KB Output is correct
18 Correct 303 ms 32640 KB Output is correct
19 Correct 334 ms 32988 KB Output is correct
20 Correct 354 ms 30400 KB Output is correct
21 Correct 280 ms 27896 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 44 ms 5596 KB Output is correct
24 Correct 25 ms 3024 KB Output is correct
25 Correct 95 ms 9952 KB Output is correct
26 Correct 169 ms 15560 KB Output is correct
27 Correct 159 ms 16648 KB Output is correct
28 Correct 221 ms 20508 KB Output is correct
29 Correct 266 ms 26008 KB Output is correct
30 Correct 313 ms 29040 KB Output is correct
31 Correct 370 ms 33144 KB Output is correct
32 Correct 332 ms 32128 KB Output is correct
33 Correct 284 ms 32680 KB Output is correct
34 Correct 6 ms 1112 KB Output is correct
35 Correct 10 ms 1472 KB Output is correct
36 Correct 145 ms 15536 KB Output is correct
37 Correct 248 ms 24464 KB Output is correct
38 Correct 322 ms 31360 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 344 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 122 ms 16804 KB Output is correct
10 Correct 11 ms 2060 KB Output is correct
11 Correct 71 ms 9232 KB Output is correct
12 Correct 18 ms 2788 KB Output is correct
13 Correct 52 ms 6348 KB Output is correct
14 Correct 2 ms 344 KB Output is correct
15 Correct 2 ms 604 KB Output is correct
16 Correct 127 ms 16380 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 1 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 444 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 338 ms 32624 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 2 ms 604 KB Output is correct
26 Correct 3 ms 600 KB Output is correct
27 Correct 4 ms 860 KB Output is correct
28 Correct 111 ms 13292 KB Output is correct
29 Correct 176 ms 19308 KB Output is correct
30 Correct 251 ms 26872 KB Output is correct
31 Correct 327 ms 32628 KB Output is correct
32 Correct 1 ms 348 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 1 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 348 KB Output is correct
38 Correct 1 ms 448 KB Output is correct
39 Correct 0 ms 344 KB Output is correct
40 Correct 1 ms 348 KB Output is correct
41 Correct 1 ms 440 KB Output is correct
42 Correct 1 ms 348 KB Output is correct
43 Correct 2 ms 604 KB Output is correct
44 Correct 3 ms 604 KB Output is correct
45 Correct 161 ms 15952 KB Output is correct
46 Correct 267 ms 24124 KB Output is correct
47 Correct 231 ms 23776 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 1 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 401 ms 31992 KB Output is correct
56 Correct 0 ms 348 KB Output is correct
57 Correct 3 ms 604 KB Output is correct
58 Correct 8 ms 1372 KB Output is correct
59 Correct 12 ms 1628 KB Output is correct
60 Correct 184 ms 15928 KB Output is correct
61 Correct 250 ms 22616 KB Output is correct
62 Correct 307 ms 27096 KB Output is correct
63 Correct 380 ms 32136 KB Output is correct
64 Correct 1 ms 604 KB Output is correct
65 Correct 1 ms 348 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 339 ms 32140 KB Output is correct
68 Correct 303 ms 32648 KB Output is correct
69 Correct 306 ms 31888 KB Output is correct
70 Correct 4 ms 860 KB Output is correct
71 Correct 8 ms 1232 KB Output is correct
72 Correct 152 ms 15700 KB Output is correct
73 Correct 264 ms 24456 KB Output is correct
74 Correct 406 ms 31464 KB Output is correct
75 Correct 423 ms 32236 KB Output is correct
76 Correct 320 ms 32588 KB Output is correct
77 Correct 5 ms 860 KB Output is correct
78 Correct 10 ms 1544 KB Output is correct
79 Correct 169 ms 15560 KB Output is correct
80 Correct 281 ms 24208 KB Output is correct
81 Correct 355 ms 31472 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 1 ms 344 KB Output is correct
85 Correct 325 ms 33828 KB Output is correct
86 Correct 337 ms 33020 KB Output is correct
87 Correct 357 ms 32920 KB Output is correct
88 Correct 298 ms 28140 KB Output is correct
89 Correct 234 ms 19908 KB Output is correct
90 Correct 347 ms 25436 KB Output is correct
91 Correct 302 ms 25280 KB Output is correct
92 Correct 312 ms 31124 KB Output is correct
93 Correct 336 ms 31108 KB Output is correct
94 Correct 383 ms 31248 KB Output is correct
95 Correct 391 ms 31260 KB Output is correct
96 Correct 1 ms 348 KB Output is correct
97 Correct 23 ms 2732 KB Output is correct
98 Correct 113 ms 10696 KB Output is correct
99 Correct 366 ms 34168 KB Output is correct
100 Correct 14 ms 1628 KB Output is correct
101 Correct 72 ms 6860 KB Output is correct
102 Correct 165 ms 13288 KB Output is correct
103 Correct 128 ms 13724 KB Output is correct
104 Correct 226 ms 18184 KB Output is correct
105 Correct 240 ms 24104 KB Output is correct
106 Correct 309 ms 28516 KB Output is correct
107 Correct 343 ms 33152 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 348 KB Output is correct
117 Correct 0 ms 348 KB Output is correct
118 Correct 0 ms 348 KB Output is correct
119 Correct 2 ms 604 KB Output is correct
120 Correct 3 ms 604 KB Output is correct
121 Correct 144 ms 15928 KB Output is correct
122 Correct 217 ms 23892 KB Output is correct
123 Correct 212 ms 23764 KB Output is correct
124 Correct 0 ms 344 KB Output is correct
125 Correct 0 ms 348 KB Output is correct
126 Correct 0 ms 348 KB Output is correct
127 Correct 291 ms 32272 KB Output is correct
128 Correct 277 ms 32640 KB Output is correct
129 Correct 294 ms 31656 KB Output is correct
130 Correct 4 ms 856 KB Output is correct
131 Correct 9 ms 1372 KB Output is correct
132 Correct 149 ms 15776 KB Output is correct
133 Correct 234 ms 24492 KB Output is correct
134 Correct 332 ms 31652 KB Output is correct
135 Correct 306 ms 32752 KB Output is correct
136 Correct 303 ms 32640 KB Output is correct
137 Correct 334 ms 32988 KB Output is correct
138 Correct 354 ms 30400 KB Output is correct
139 Correct 280 ms 27896 KB Output is correct
140 Correct 1 ms 348 KB Output is correct
141 Correct 44 ms 5596 KB Output is correct
142 Correct 25 ms 3024 KB Output is correct
143 Correct 95 ms 9952 KB Output is correct
144 Correct 169 ms 15560 KB Output is correct
145 Correct 159 ms 16648 KB Output is correct
146 Correct 221 ms 20508 KB Output is correct
147 Correct 266 ms 26008 KB Output is correct
148 Correct 313 ms 29040 KB Output is correct
149 Correct 370 ms 33144 KB Output is correct
150 Correct 332 ms 32128 KB Output is correct
151 Correct 284 ms 32680 KB Output is correct
152 Correct 6 ms 1112 KB Output is correct
153 Correct 10 ms 1472 KB Output is correct
154 Correct 145 ms 15536 KB Output is correct
155 Correct 248 ms 24464 KB Output is correct
156 Correct 322 ms 31360 KB Output is correct
157 Correct 1 ms 348 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 391 ms 31636 KB Output is correct
162 Correct 308 ms 33916 KB Output is correct
163 Correct 322 ms 34428 KB Output is correct
164 Correct 308 ms 34432 KB Output is correct
165 Correct 343 ms 32768 KB Output is correct
166 Correct 380 ms 32380 KB Output is correct
167 Correct 77 ms 7916 KB Output is correct
168 Correct 43 ms 4044 KB Output is correct
169 Correct 135 ms 10952 KB Output is correct
170 Correct 262 ms 20524 KB Output is correct
171 Correct 363 ms 26588 KB Output is correct
172 Correct 182 ms 16540 KB Output is correct
173 Correct 220 ms 19484 KB Output is correct
174 Correct 261 ms 24104 KB Output is correct
175 Correct 325 ms 26872 KB Output is correct
176 Correct 341 ms 30140 KB Output is correct
177 Correct 374 ms 33148 KB Output is correct