#include "parks.h"
#include<bits/stdc++.h>
using namespace std;
map<int,int> pts[200100];
vector<pair<int,int>> tre_edges;
struct dsu{
int par[200100];
int abp(int n){
return par[n]?par[n]=abp(par[n]):n;
}
int merge(int a,int b){
a=abp(a),b=abp(b);
return a-b?par[a]=b:0;
}
} DT;
int Xpos[400100],Ypos[400100];
int construct_roads(std::vector<int> x, std::vector<int> y) {
int n=x.size();
for(int i=0;i<n;i++)
pts[x[i]][y[i]]=i+1;
vector<tuple<int,int,int>>pt;
vector<array<int,4>> E;
for(int i=0;i<n;i++)
pt.push_back({x[i],y[i],i});
sort(pt.begin(),pt.end());
for(auto[X,Y,i]:pt) {
int k=(X+Y>>1) % 2 ? 1 : -1;
if(pts[X-2][Y])
E.push_back({i+1,pts[X-2][Y],X-1,Y+k});
if(pts[X][Y-2])
E.push_back({i+1,pts[X][Y-2],X-k,Y-1});
}
vector<int>u,v,A,B;
int CC=0;
for(auto [i,j,x,y]:E){
if(!pts[x][y]&&DT.merge(i,j)){
u.push_back(i-1);
v.push_back(j-1);
A.push_back(x);
B.push_back(y);
pts[x][y]=1;
}
}
if(u.size()-n+1)return 0;
build(u,v,A,B);
return 1;
}
Compilation message
parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:27:17: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
27 | int k=(X+Y>>1) % 2 ? 1 : -1;
| ~^~
parks.cpp:34:9: warning: unused variable 'CC' [-Wunused-variable]
34 | int CC=0;
| ^~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
11356 KB |
Output is correct |
2 |
Correct |
2 ms |
11356 KB |
Output is correct |
3 |
Correct |
2 ms |
11356 KB |
Output is correct |
4 |
Correct |
2 ms |
11356 KB |
Output is correct |
5 |
Correct |
2 ms |
11356 KB |
Output is correct |
6 |
Correct |
2 ms |
11356 KB |
Output is correct |
7 |
Correct |
2 ms |
11540 KB |
Output is correct |
8 |
Correct |
2 ms |
11356 KB |
Output is correct |
9 |
Correct |
116 ms |
35476 KB |
Output is correct |
10 |
Correct |
9 ms |
13980 KB |
Output is correct |
11 |
Correct |
50 ms |
24456 KB |
Output is correct |
12 |
Correct |
13 ms |
15000 KB |
Output is correct |
13 |
Correct |
32 ms |
20708 KB |
Output is correct |
14 |
Correct |
3 ms |
11608 KB |
Output is correct |
15 |
Correct |
3 ms |
11868 KB |
Output is correct |
16 |
Correct |
118 ms |
35372 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
11356 KB |
Output is correct |
2 |
Correct |
2 ms |
11356 KB |
Output is correct |
3 |
Correct |
2 ms |
11356 KB |
Output is correct |
4 |
Correct |
2 ms |
11356 KB |
Output is correct |
5 |
Correct |
2 ms |
11356 KB |
Output is correct |
6 |
Correct |
2 ms |
11356 KB |
Output is correct |
7 |
Correct |
2 ms |
11540 KB |
Output is correct |
8 |
Correct |
2 ms |
11356 KB |
Output is correct |
9 |
Correct |
116 ms |
35476 KB |
Output is correct |
10 |
Correct |
9 ms |
13980 KB |
Output is correct |
11 |
Correct |
50 ms |
24456 KB |
Output is correct |
12 |
Correct |
13 ms |
15000 KB |
Output is correct |
13 |
Correct |
32 ms |
20708 KB |
Output is correct |
14 |
Correct |
3 ms |
11608 KB |
Output is correct |
15 |
Correct |
3 ms |
11868 KB |
Output is correct |
16 |
Correct |
118 ms |
35372 KB |
Output is correct |
17 |
Correct |
2 ms |
11536 KB |
Output is correct |
18 |
Correct |
2 ms |
11356 KB |
Output is correct |
19 |
Correct |
2 ms |
11356 KB |
Output is correct |
20 |
Correct |
2 ms |
11452 KB |
Output is correct |
21 |
Correct |
2 ms |
11368 KB |
Output is correct |
22 |
Correct |
2 ms |
11356 KB |
Output is correct |
23 |
Correct |
255 ms |
57172 KB |
Output is correct |
24 |
Correct |
2 ms |
11356 KB |
Output is correct |
25 |
Correct |
3 ms |
11612 KB |
Output is correct |
26 |
Correct |
4 ms |
12124 KB |
Output is correct |
27 |
Correct |
4 ms |
12124 KB |
Output is correct |
28 |
Correct |
86 ms |
29380 KB |
Output is correct |
29 |
Correct |
142 ms |
38776 KB |
Output is correct |
30 |
Correct |
194 ms |
47708 KB |
Output is correct |
31 |
Correct |
244 ms |
57524 KB |
Output is correct |
32 |
Correct |
2 ms |
11356 KB |
Output is correct |
33 |
Correct |
2 ms |
11356 KB |
Output is correct |
34 |
Correct |
2 ms |
11356 KB |
Output is correct |
35 |
Correct |
2 ms |
11356 KB |
Output is correct |
36 |
Correct |
2 ms |
11356 KB |
Output is correct |
37 |
Correct |
2 ms |
11356 KB |
Output is correct |
38 |
Correct |
2 ms |
11356 KB |
Output is correct |
39 |
Correct |
2 ms |
11356 KB |
Output is correct |
40 |
Correct |
2 ms |
11352 KB |
Output is correct |
41 |
Correct |
2 ms |
11356 KB |
Output is correct |
42 |
Correct |
2 ms |
11356 KB |
Output is correct |
43 |
Correct |
3 ms |
11864 KB |
Output is correct |
44 |
Correct |
4 ms |
12124 KB |
Output is correct |
45 |
Correct |
108 ms |
34640 KB |
Output is correct |
46 |
Correct |
168 ms |
46976 KB |
Output is correct |
47 |
Correct |
161 ms |
46784 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
11356 KB |
Output is correct |
2 |
Correct |
2 ms |
11356 KB |
Output is correct |
3 |
Correct |
2 ms |
11356 KB |
Output is correct |
4 |
Correct |
2 ms |
11356 KB |
Output is correct |
5 |
Correct |
2 ms |
11356 KB |
Output is correct |
6 |
Correct |
2 ms |
11356 KB |
Output is correct |
7 |
Correct |
2 ms |
11540 KB |
Output is correct |
8 |
Correct |
2 ms |
11356 KB |
Output is correct |
9 |
Correct |
116 ms |
35476 KB |
Output is correct |
10 |
Correct |
9 ms |
13980 KB |
Output is correct |
11 |
Correct |
50 ms |
24456 KB |
Output is correct |
12 |
Correct |
13 ms |
15000 KB |
Output is correct |
13 |
Correct |
32 ms |
20708 KB |
Output is correct |
14 |
Correct |
3 ms |
11608 KB |
Output is correct |
15 |
Correct |
3 ms |
11868 KB |
Output is correct |
16 |
Correct |
118 ms |
35372 KB |
Output is correct |
17 |
Correct |
2 ms |
11536 KB |
Output is correct |
18 |
Correct |
2 ms |
11356 KB |
Output is correct |
19 |
Correct |
2 ms |
11356 KB |
Output is correct |
20 |
Correct |
2 ms |
11452 KB |
Output is correct |
21 |
Correct |
2 ms |
11368 KB |
Output is correct |
22 |
Correct |
2 ms |
11356 KB |
Output is correct |
23 |
Correct |
255 ms |
57172 KB |
Output is correct |
24 |
Correct |
2 ms |
11356 KB |
Output is correct |
25 |
Correct |
3 ms |
11612 KB |
Output is correct |
26 |
Correct |
4 ms |
12124 KB |
Output is correct |
27 |
Correct |
4 ms |
12124 KB |
Output is correct |
28 |
Correct |
86 ms |
29380 KB |
Output is correct |
29 |
Correct |
142 ms |
38776 KB |
Output is correct |
30 |
Correct |
194 ms |
47708 KB |
Output is correct |
31 |
Correct |
244 ms |
57524 KB |
Output is correct |
32 |
Correct |
2 ms |
11356 KB |
Output is correct |
33 |
Correct |
2 ms |
11356 KB |
Output is correct |
34 |
Correct |
2 ms |
11356 KB |
Output is correct |
35 |
Correct |
2 ms |
11356 KB |
Output is correct |
36 |
Correct |
2 ms |
11356 KB |
Output is correct |
37 |
Correct |
2 ms |
11356 KB |
Output is correct |
38 |
Correct |
2 ms |
11356 KB |
Output is correct |
39 |
Correct |
2 ms |
11356 KB |
Output is correct |
40 |
Correct |
2 ms |
11352 KB |
Output is correct |
41 |
Correct |
2 ms |
11356 KB |
Output is correct |
42 |
Correct |
2 ms |
11356 KB |
Output is correct |
43 |
Correct |
3 ms |
11864 KB |
Output is correct |
44 |
Correct |
4 ms |
12124 KB |
Output is correct |
45 |
Correct |
108 ms |
34640 KB |
Output is correct |
46 |
Correct |
168 ms |
46976 KB |
Output is correct |
47 |
Correct |
161 ms |
46784 KB |
Output is correct |
48 |
Correct |
2 ms |
11352 KB |
Output is correct |
49 |
Correct |
2 ms |
11356 KB |
Output is correct |
50 |
Correct |
2 ms |
11356 KB |
Output is correct |
51 |
Correct |
2 ms |
11352 KB |
Output is correct |
52 |
Correct |
2 ms |
11356 KB |
Output is correct |
53 |
Correct |
2 ms |
11356 KB |
Output is correct |
54 |
Correct |
2 ms |
11608 KB |
Output is correct |
55 |
Correct |
280 ms |
56592 KB |
Output is correct |
56 |
Correct |
3 ms |
9816 KB |
Output is correct |
57 |
Correct |
5 ms |
11868 KB |
Output is correct |
58 |
Correct |
9 ms |
11148 KB |
Output is correct |
59 |
Correct |
14 ms |
13460 KB |
Output is correct |
60 |
Correct |
133 ms |
31936 KB |
Output is correct |
61 |
Correct |
168 ms |
42240 KB |
Output is correct |
62 |
Correct |
235 ms |
47288 KB |
Output is correct |
63 |
Correct |
263 ms |
55408 KB |
Output is correct |
64 |
Correct |
3 ms |
11356 KB |
Output is correct |
65 |
Correct |
4 ms |
9776 KB |
Output is correct |
66 |
Correct |
3 ms |
11352 KB |
Output is correct |
67 |
Correct |
279 ms |
59584 KB |
Output is correct |
68 |
Correct |
294 ms |
59528 KB |
Output is correct |
69 |
Correct |
261 ms |
59576 KB |
Output is correct |
70 |
Correct |
6 ms |
12124 KB |
Output is correct |
71 |
Correct |
9 ms |
12892 KB |
Output is correct |
72 |
Correct |
114 ms |
34504 KB |
Output is correct |
73 |
Correct |
179 ms |
47032 KB |
Output is correct |
74 |
Correct |
230 ms |
57816 KB |
Output is correct |
75 |
Correct |
241 ms |
58300 KB |
Output is correct |
76 |
Correct |
244 ms |
60348 KB |
Output is correct |
77 |
Correct |
5 ms |
12380 KB |
Output is correct |
78 |
Correct |
8 ms |
13308 KB |
Output is correct |
79 |
Correct |
108 ms |
34508 KB |
Output is correct |
80 |
Correct |
169 ms |
47760 KB |
Output is correct |
81 |
Correct |
227 ms |
58364 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
11356 KB |
Output is correct |
2 |
Correct |
2 ms |
11356 KB |
Output is correct |
3 |
Correct |
2 ms |
11356 KB |
Output is correct |
4 |
Correct |
2 ms |
11356 KB |
Output is correct |
5 |
Correct |
2 ms |
11356 KB |
Output is correct |
6 |
Correct |
2 ms |
11356 KB |
Output is correct |
7 |
Correct |
2 ms |
11540 KB |
Output is correct |
8 |
Correct |
2 ms |
11356 KB |
Output is correct |
9 |
Correct |
116 ms |
35476 KB |
Output is correct |
10 |
Correct |
9 ms |
13980 KB |
Output is correct |
11 |
Correct |
50 ms |
24456 KB |
Output is correct |
12 |
Correct |
13 ms |
15000 KB |
Output is correct |
13 |
Correct |
32 ms |
20708 KB |
Output is correct |
14 |
Correct |
3 ms |
11608 KB |
Output is correct |
15 |
Correct |
3 ms |
11868 KB |
Output is correct |
16 |
Correct |
118 ms |
35372 KB |
Output is correct |
17 |
Correct |
2 ms |
11356 KB |
Output is correct |
18 |
Correct |
2 ms |
11356 KB |
Output is correct |
19 |
Correct |
2 ms |
11356 KB |
Output is correct |
20 |
Correct |
150 ms |
56252 KB |
Output is correct |
21 |
Correct |
150 ms |
60100 KB |
Output is correct |
22 |
Correct |
143 ms |
55736 KB |
Output is correct |
23 |
Correct |
143 ms |
53440 KB |
Output is correct |
24 |
Correct |
141 ms |
46784 KB |
Output is correct |
25 |
Correct |
169 ms |
53944 KB |
Output is correct |
26 |
Correct |
163 ms |
53336 KB |
Output is correct |
27 |
Correct |
216 ms |
59660 KB |
Output is correct |
28 |
Correct |
210 ms |
60048 KB |
Output is correct |
29 |
Correct |
209 ms |
59832 KB |
Output is correct |
30 |
Correct |
202 ms |
59324 KB |
Output is correct |
31 |
Correct |
2 ms |
11356 KB |
Output is correct |
32 |
Correct |
16 ms |
14760 KB |
Output is correct |
33 |
Correct |
41 ms |
29388 KB |
Output is correct |
34 |
Correct |
140 ms |
60352 KB |
Output is correct |
35 |
Correct |
8 ms |
13468 KB |
Output is correct |
36 |
Correct |
38 ms |
21256 KB |
Output is correct |
37 |
Correct |
81 ms |
31188 KB |
Output is correct |
38 |
Correct |
77 ms |
29888 KB |
Output is correct |
39 |
Correct |
110 ms |
36544 KB |
Output is correct |
40 |
Correct |
144 ms |
45492 KB |
Output is correct |
41 |
Correct |
183 ms |
51724 KB |
Output is correct |
42 |
Correct |
216 ms |
57608 KB |
Output is correct |
43 |
Correct |
2 ms |
11356 KB |
Output is correct |
44 |
Correct |
2 ms |
11356 KB |
Output is correct |
45 |
Correct |
2 ms |
11356 KB |
Output is correct |
46 |
Correct |
3 ms |
11612 KB |
Output is correct |
47 |
Correct |
2 ms |
11356 KB |
Output is correct |
48 |
Correct |
2 ms |
11356 KB |
Output is correct |
49 |
Correct |
2 ms |
11356 KB |
Output is correct |
50 |
Correct |
2 ms |
11356 KB |
Output is correct |
51 |
Correct |
2 ms |
11356 KB |
Output is correct |
52 |
Correct |
2 ms |
11356 KB |
Output is correct |
53 |
Correct |
3 ms |
11356 KB |
Output is correct |
54 |
Correct |
3 ms |
11868 KB |
Output is correct |
55 |
Correct |
4 ms |
12124 KB |
Output is correct |
56 |
Correct |
104 ms |
34752 KB |
Output is correct |
57 |
Correct |
169 ms |
46788 KB |
Output is correct |
58 |
Correct |
157 ms |
46696 KB |
Output is correct |
59 |
Correct |
2 ms |
11356 KB |
Output is correct |
60 |
Correct |
2 ms |
11356 KB |
Output is correct |
61 |
Correct |
2 ms |
11356 KB |
Output is correct |
62 |
Correct |
251 ms |
59668 KB |
Output is correct |
63 |
Correct |
276 ms |
60096 KB |
Output is correct |
64 |
Correct |
255 ms |
59328 KB |
Output is correct |
65 |
Correct |
5 ms |
12124 KB |
Output is correct |
66 |
Correct |
8 ms |
13092 KB |
Output is correct |
67 |
Correct |
112 ms |
34440 KB |
Output is correct |
68 |
Correct |
178 ms |
46168 KB |
Output is correct |
69 |
Correct |
266 ms |
57524 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
11356 KB |
Output is correct |
2 |
Correct |
2 ms |
11356 KB |
Output is correct |
3 |
Correct |
2 ms |
11356 KB |
Output is correct |
4 |
Correct |
2 ms |
11356 KB |
Output is correct |
5 |
Correct |
2 ms |
11356 KB |
Output is correct |
6 |
Correct |
2 ms |
11356 KB |
Output is correct |
7 |
Correct |
2 ms |
11540 KB |
Output is correct |
8 |
Correct |
2 ms |
11356 KB |
Output is correct |
9 |
Correct |
116 ms |
35476 KB |
Output is correct |
10 |
Correct |
9 ms |
13980 KB |
Output is correct |
11 |
Correct |
50 ms |
24456 KB |
Output is correct |
12 |
Correct |
13 ms |
15000 KB |
Output is correct |
13 |
Correct |
32 ms |
20708 KB |
Output is correct |
14 |
Correct |
3 ms |
11608 KB |
Output is correct |
15 |
Correct |
3 ms |
11868 KB |
Output is correct |
16 |
Correct |
118 ms |
35372 KB |
Output is correct |
17 |
Correct |
213 ms |
60004 KB |
Output is correct |
18 |
Correct |
234 ms |
59012 KB |
Output is correct |
19 |
Correct |
166 ms |
57820 KB |
Output is correct |
20 |
Correct |
215 ms |
56432 KB |
Output is correct |
21 |
Correct |
198 ms |
52156 KB |
Output is correct |
22 |
Correct |
7 ms |
9816 KB |
Output is correct |
23 |
Correct |
35 ms |
17036 KB |
Output is correct |
24 |
Correct |
18 ms |
13908 KB |
Output is correct |
25 |
Correct |
60 ms |
24520 KB |
Output is correct |
26 |
Correct |
102 ms |
35756 KB |
Output is correct |
27 |
Correct |
109 ms |
33384 KB |
Output is correct |
28 |
Correct |
134 ms |
40080 KB |
Output is correct |
29 |
Correct |
197 ms |
45496 KB |
Output is correct |
30 |
Correct |
216 ms |
52160 KB |
Output is correct |
31 |
Correct |
248 ms |
58304 KB |
Output is correct |
32 |
Correct |
276 ms |
58336 KB |
Output is correct |
33 |
Correct |
281 ms |
59584 KB |
Output is correct |
34 |
Correct |
6 ms |
12380 KB |
Output is correct |
35 |
Correct |
11 ms |
11672 KB |
Output is correct |
36 |
Correct |
155 ms |
33220 KB |
Output is correct |
37 |
Correct |
192 ms |
47768 KB |
Output is correct |
38 |
Correct |
257 ms |
57780 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
11356 KB |
Output is correct |
2 |
Correct |
2 ms |
11356 KB |
Output is correct |
3 |
Correct |
2 ms |
11356 KB |
Output is correct |
4 |
Correct |
2 ms |
11356 KB |
Output is correct |
5 |
Correct |
2 ms |
11356 KB |
Output is correct |
6 |
Correct |
2 ms |
11356 KB |
Output is correct |
7 |
Correct |
2 ms |
11540 KB |
Output is correct |
8 |
Correct |
2 ms |
11356 KB |
Output is correct |
9 |
Correct |
116 ms |
35476 KB |
Output is correct |
10 |
Correct |
9 ms |
13980 KB |
Output is correct |
11 |
Correct |
50 ms |
24456 KB |
Output is correct |
12 |
Correct |
13 ms |
15000 KB |
Output is correct |
13 |
Correct |
32 ms |
20708 KB |
Output is correct |
14 |
Correct |
3 ms |
11608 KB |
Output is correct |
15 |
Correct |
3 ms |
11868 KB |
Output is correct |
16 |
Correct |
118 ms |
35372 KB |
Output is correct |
17 |
Correct |
2 ms |
11536 KB |
Output is correct |
18 |
Correct |
2 ms |
11356 KB |
Output is correct |
19 |
Correct |
2 ms |
11356 KB |
Output is correct |
20 |
Correct |
2 ms |
11452 KB |
Output is correct |
21 |
Correct |
2 ms |
11368 KB |
Output is correct |
22 |
Correct |
2 ms |
11356 KB |
Output is correct |
23 |
Correct |
255 ms |
57172 KB |
Output is correct |
24 |
Correct |
2 ms |
11356 KB |
Output is correct |
25 |
Correct |
3 ms |
11612 KB |
Output is correct |
26 |
Correct |
4 ms |
12124 KB |
Output is correct |
27 |
Correct |
4 ms |
12124 KB |
Output is correct |
28 |
Correct |
86 ms |
29380 KB |
Output is correct |
29 |
Correct |
142 ms |
38776 KB |
Output is correct |
30 |
Correct |
194 ms |
47708 KB |
Output is correct |
31 |
Correct |
244 ms |
57524 KB |
Output is correct |
32 |
Correct |
2 ms |
11356 KB |
Output is correct |
33 |
Correct |
2 ms |
11356 KB |
Output is correct |
34 |
Correct |
2 ms |
11356 KB |
Output is correct |
35 |
Correct |
2 ms |
11356 KB |
Output is correct |
36 |
Correct |
2 ms |
11356 KB |
Output is correct |
37 |
Correct |
2 ms |
11356 KB |
Output is correct |
38 |
Correct |
2 ms |
11356 KB |
Output is correct |
39 |
Correct |
2 ms |
11356 KB |
Output is correct |
40 |
Correct |
2 ms |
11352 KB |
Output is correct |
41 |
Correct |
2 ms |
11356 KB |
Output is correct |
42 |
Correct |
2 ms |
11356 KB |
Output is correct |
43 |
Correct |
3 ms |
11864 KB |
Output is correct |
44 |
Correct |
4 ms |
12124 KB |
Output is correct |
45 |
Correct |
108 ms |
34640 KB |
Output is correct |
46 |
Correct |
168 ms |
46976 KB |
Output is correct |
47 |
Correct |
161 ms |
46784 KB |
Output is correct |
48 |
Correct |
2 ms |
11352 KB |
Output is correct |
49 |
Correct |
2 ms |
11356 KB |
Output is correct |
50 |
Correct |
2 ms |
11356 KB |
Output is correct |
51 |
Correct |
2 ms |
11352 KB |
Output is correct |
52 |
Correct |
2 ms |
11356 KB |
Output is correct |
53 |
Correct |
2 ms |
11356 KB |
Output is correct |
54 |
Correct |
2 ms |
11608 KB |
Output is correct |
55 |
Correct |
280 ms |
56592 KB |
Output is correct |
56 |
Correct |
3 ms |
9816 KB |
Output is correct |
57 |
Correct |
5 ms |
11868 KB |
Output is correct |
58 |
Correct |
9 ms |
11148 KB |
Output is correct |
59 |
Correct |
14 ms |
13460 KB |
Output is correct |
60 |
Correct |
133 ms |
31936 KB |
Output is correct |
61 |
Correct |
168 ms |
42240 KB |
Output is correct |
62 |
Correct |
235 ms |
47288 KB |
Output is correct |
63 |
Correct |
263 ms |
55408 KB |
Output is correct |
64 |
Correct |
3 ms |
11356 KB |
Output is correct |
65 |
Correct |
4 ms |
9776 KB |
Output is correct |
66 |
Correct |
3 ms |
11352 KB |
Output is correct |
67 |
Correct |
279 ms |
59584 KB |
Output is correct |
68 |
Correct |
294 ms |
59528 KB |
Output is correct |
69 |
Correct |
261 ms |
59576 KB |
Output is correct |
70 |
Correct |
6 ms |
12124 KB |
Output is correct |
71 |
Correct |
9 ms |
12892 KB |
Output is correct |
72 |
Correct |
114 ms |
34504 KB |
Output is correct |
73 |
Correct |
179 ms |
47032 KB |
Output is correct |
74 |
Correct |
230 ms |
57816 KB |
Output is correct |
75 |
Correct |
241 ms |
58300 KB |
Output is correct |
76 |
Correct |
244 ms |
60348 KB |
Output is correct |
77 |
Correct |
5 ms |
12380 KB |
Output is correct |
78 |
Correct |
8 ms |
13308 KB |
Output is correct |
79 |
Correct |
108 ms |
34508 KB |
Output is correct |
80 |
Correct |
169 ms |
47760 KB |
Output is correct |
81 |
Correct |
227 ms |
58364 KB |
Output is correct |
82 |
Correct |
2 ms |
11356 KB |
Output is correct |
83 |
Correct |
2 ms |
11356 KB |
Output is correct |
84 |
Correct |
2 ms |
11356 KB |
Output is correct |
85 |
Correct |
150 ms |
56252 KB |
Output is correct |
86 |
Correct |
150 ms |
60100 KB |
Output is correct |
87 |
Correct |
143 ms |
55736 KB |
Output is correct |
88 |
Correct |
143 ms |
53440 KB |
Output is correct |
89 |
Correct |
141 ms |
46784 KB |
Output is correct |
90 |
Correct |
169 ms |
53944 KB |
Output is correct |
91 |
Correct |
163 ms |
53336 KB |
Output is correct |
92 |
Correct |
216 ms |
59660 KB |
Output is correct |
93 |
Correct |
210 ms |
60048 KB |
Output is correct |
94 |
Correct |
209 ms |
59832 KB |
Output is correct |
95 |
Correct |
202 ms |
59324 KB |
Output is correct |
96 |
Correct |
2 ms |
11356 KB |
Output is correct |
97 |
Correct |
16 ms |
14760 KB |
Output is correct |
98 |
Correct |
41 ms |
29388 KB |
Output is correct |
99 |
Correct |
140 ms |
60352 KB |
Output is correct |
100 |
Correct |
8 ms |
13468 KB |
Output is correct |
101 |
Correct |
38 ms |
21256 KB |
Output is correct |
102 |
Correct |
81 ms |
31188 KB |
Output is correct |
103 |
Correct |
77 ms |
29888 KB |
Output is correct |
104 |
Correct |
110 ms |
36544 KB |
Output is correct |
105 |
Correct |
144 ms |
45492 KB |
Output is correct |
106 |
Correct |
183 ms |
51724 KB |
Output is correct |
107 |
Correct |
216 ms |
57608 KB |
Output is correct |
108 |
Correct |
2 ms |
11356 KB |
Output is correct |
109 |
Correct |
2 ms |
11356 KB |
Output is correct |
110 |
Correct |
2 ms |
11356 KB |
Output is correct |
111 |
Correct |
3 ms |
11612 KB |
Output is correct |
112 |
Correct |
2 ms |
11356 KB |
Output is correct |
113 |
Correct |
2 ms |
11356 KB |
Output is correct |
114 |
Correct |
2 ms |
11356 KB |
Output is correct |
115 |
Correct |
2 ms |
11356 KB |
Output is correct |
116 |
Correct |
2 ms |
11356 KB |
Output is correct |
117 |
Correct |
2 ms |
11356 KB |
Output is correct |
118 |
Correct |
3 ms |
11356 KB |
Output is correct |
119 |
Correct |
3 ms |
11868 KB |
Output is correct |
120 |
Correct |
4 ms |
12124 KB |
Output is correct |
121 |
Correct |
104 ms |
34752 KB |
Output is correct |
122 |
Correct |
169 ms |
46788 KB |
Output is correct |
123 |
Correct |
157 ms |
46696 KB |
Output is correct |
124 |
Correct |
2 ms |
11356 KB |
Output is correct |
125 |
Correct |
2 ms |
11356 KB |
Output is correct |
126 |
Correct |
2 ms |
11356 KB |
Output is correct |
127 |
Correct |
251 ms |
59668 KB |
Output is correct |
128 |
Correct |
276 ms |
60096 KB |
Output is correct |
129 |
Correct |
255 ms |
59328 KB |
Output is correct |
130 |
Correct |
5 ms |
12124 KB |
Output is correct |
131 |
Correct |
8 ms |
13092 KB |
Output is correct |
132 |
Correct |
112 ms |
34440 KB |
Output is correct |
133 |
Correct |
178 ms |
46168 KB |
Output is correct |
134 |
Correct |
266 ms |
57524 KB |
Output is correct |
135 |
Correct |
213 ms |
60004 KB |
Output is correct |
136 |
Correct |
234 ms |
59012 KB |
Output is correct |
137 |
Correct |
166 ms |
57820 KB |
Output is correct |
138 |
Correct |
215 ms |
56432 KB |
Output is correct |
139 |
Correct |
198 ms |
52156 KB |
Output is correct |
140 |
Correct |
7 ms |
9816 KB |
Output is correct |
141 |
Correct |
35 ms |
17036 KB |
Output is correct |
142 |
Correct |
18 ms |
13908 KB |
Output is correct |
143 |
Correct |
60 ms |
24520 KB |
Output is correct |
144 |
Correct |
102 ms |
35756 KB |
Output is correct |
145 |
Correct |
109 ms |
33384 KB |
Output is correct |
146 |
Correct |
134 ms |
40080 KB |
Output is correct |
147 |
Correct |
197 ms |
45496 KB |
Output is correct |
148 |
Correct |
216 ms |
52160 KB |
Output is correct |
149 |
Correct |
248 ms |
58304 KB |
Output is correct |
150 |
Correct |
276 ms |
58336 KB |
Output is correct |
151 |
Correct |
281 ms |
59584 KB |
Output is correct |
152 |
Correct |
6 ms |
12380 KB |
Output is correct |
153 |
Correct |
11 ms |
11672 KB |
Output is correct |
154 |
Correct |
155 ms |
33220 KB |
Output is correct |
155 |
Correct |
192 ms |
47768 KB |
Output is correct |
156 |
Correct |
257 ms |
57780 KB |
Output is correct |
157 |
Correct |
4 ms |
9820 KB |
Output is correct |
158 |
Correct |
4 ms |
9676 KB |
Output is correct |
159 |
Correct |
4 ms |
9820 KB |
Output is correct |
160 |
Correct |
5 ms |
9760 KB |
Output is correct |
161 |
Correct |
229 ms |
53856 KB |
Output is correct |
162 |
Correct |
212 ms |
59572 KB |
Output is correct |
163 |
Correct |
181 ms |
58156 KB |
Output is correct |
164 |
Correct |
169 ms |
59684 KB |
Output is correct |
165 |
Correct |
161 ms |
56252 KB |
Output is correct |
166 |
Correct |
192 ms |
53176 KB |
Output is correct |
167 |
Correct |
59 ms |
20164 KB |
Output is correct |
168 |
Correct |
25 ms |
15428 KB |
Output is correct |
169 |
Correct |
74 ms |
25276 KB |
Output is correct |
170 |
Correct |
119 ms |
39336 KB |
Output is correct |
171 |
Correct |
187 ms |
47216 KB |
Output is correct |
172 |
Correct |
118 ms |
32840 KB |
Output is correct |
173 |
Correct |
127 ms |
35780 KB |
Output is correct |
174 |
Correct |
148 ms |
43440 KB |
Output is correct |
175 |
Correct |
205 ms |
44724 KB |
Output is correct |
176 |
Correct |
215 ms |
49008 KB |
Output is correct |
177 |
Correct |
238 ms |
53408 KB |
Output is correct |