#include "parks.h"
#include <bits/stdc++.h>
#define fir first
#define sec second
#define pb push_back
typedef long long ll;
using namespace std;
map<pair<int,int>,int> c;
set<pair<int,int>> taken;
vector<pair<int,int>> coor;
//DSU
int par[200005] = {0};
int find(int x)
{
if(par[x]==x) return x;
return par[x] = find(par[x]);
}
void join(int a,int b)
{
if(find(a)==find(b)) assert(false);
par[find(a)] = par[find(b)];
}
int cnt = 0;
vector<int> u,v,a,b;
void addline(int ax,int ay,int bx,int by,int inda,int indb)
{
if(find(c[{ax,ay}])==find(c[{bx,by}])) return;
pair<int,int> bench = {-1,-1};
if(ax==bx)
{
pair<int,int> tmp = {ax-1,(ay+by)/2};
if(taken.find(tmp)==taken.end() && (tmp.fir-tmp.sec)%4==0) bench = tmp;
tmp = {ax+1,(ay+by)/2};
if(taken.find(tmp)==taken.end() && (tmp.fir-tmp.sec)%4==0) bench = tmp;
}
if(ay==by)
{
pair<int,int> tmp = {(ax+bx)/2,ay-1};
if(taken.find(tmp)==taken.end() && (tmp.fir-tmp.sec)%4!=0) bench = tmp;
tmp = {(ax+bx)/2,ay+1};
if(taken.find(tmp)==taken.end() && (tmp.fir-tmp.sec)%4!=0) bench = tmp;
}
if(bench != make_pair(-1,-1))
{
join(inda,indb);
taken.insert(bench);
u.pb(inda);
v.pb(indb);
a.pb(bench.fir);
b.pb(bench.sec);
cnt++;
}
}
int construct_roads(vector<int> x, vector<int> y)
{
int n = x.size();
for(int i=0;i<n;i++) par[i] = i;
for(int i=0;i<n;i++) c[{x[i],y[i]}] = i;
for(int i=0;i<n;i++) coor.pb({x[i],y[i]});
sort(coor.begin(),coor.end());
vector<pair< pair<int,int>,pair<int,int> >> ret;
for(int i=0;i<n;i++)
{
int tx = coor[i].fir;
int ty = coor[i].sec;
if(c.count({tx,ty-2})) addline(tx,ty-2,tx,ty,c[{tx,ty}],c[{tx,ty-2}]);
if(c.count({tx-2,ty})) addline(tx-2,ty,tx,ty,c[{tx,ty}],c[{tx-2,ty}]);
}
if(cnt==n-1)
{
build(u,v,a,b);
return 1;
}
else return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
300 KB |
Output is correct |
8 |
Correct |
1 ms |
332 KB |
Output is correct |
9 |
Correct |
216 ms |
20820 KB |
Output is correct |
10 |
Correct |
17 ms |
2416 KB |
Output is correct |
11 |
Correct |
108 ms |
11356 KB |
Output is correct |
12 |
Correct |
26 ms |
3400 KB |
Output is correct |
13 |
Correct |
67 ms |
7468 KB |
Output is correct |
14 |
Correct |
2 ms |
460 KB |
Output is correct |
15 |
Correct |
3 ms |
588 KB |
Output is correct |
16 |
Correct |
215 ms |
20976 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
300 KB |
Output is correct |
8 |
Correct |
1 ms |
332 KB |
Output is correct |
9 |
Correct |
216 ms |
20820 KB |
Output is correct |
10 |
Correct |
17 ms |
2416 KB |
Output is correct |
11 |
Correct |
108 ms |
11356 KB |
Output is correct |
12 |
Correct |
26 ms |
3400 KB |
Output is correct |
13 |
Correct |
67 ms |
7468 KB |
Output is correct |
14 |
Correct |
2 ms |
460 KB |
Output is correct |
15 |
Correct |
3 ms |
588 KB |
Output is correct |
16 |
Correct |
215 ms |
20976 KB |
Output is correct |
17 |
Correct |
1 ms |
204 KB |
Output is correct |
18 |
Correct |
1 ms |
204 KB |
Output is correct |
19 |
Correct |
0 ms |
204 KB |
Output is correct |
20 |
Correct |
1 ms |
204 KB |
Output is correct |
21 |
Correct |
1 ms |
204 KB |
Output is correct |
22 |
Correct |
1 ms |
204 KB |
Output is correct |
23 |
Correct |
547 ms |
41780 KB |
Output is correct |
24 |
Correct |
1 ms |
204 KB |
Output is correct |
25 |
Correct |
2 ms |
460 KB |
Output is correct |
26 |
Correct |
5 ms |
716 KB |
Output is correct |
27 |
Correct |
6 ms |
844 KB |
Output is correct |
28 |
Correct |
189 ms |
16796 KB |
Output is correct |
29 |
Correct |
292 ms |
24944 KB |
Output is correct |
30 |
Correct |
407 ms |
33616 KB |
Output is correct |
31 |
Correct |
573 ms |
41624 KB |
Output is correct |
32 |
Correct |
1 ms |
204 KB |
Output is correct |
33 |
Correct |
0 ms |
204 KB |
Output is correct |
34 |
Correct |
1 ms |
204 KB |
Output is correct |
35 |
Correct |
1 ms |
204 KB |
Output is correct |
36 |
Correct |
0 ms |
204 KB |
Output is correct |
37 |
Correct |
0 ms |
204 KB |
Output is correct |
38 |
Correct |
1 ms |
204 KB |
Output is correct |
39 |
Correct |
1 ms |
204 KB |
Output is correct |
40 |
Correct |
0 ms |
204 KB |
Output is correct |
41 |
Correct |
0 ms |
204 KB |
Output is correct |
42 |
Correct |
1 ms |
204 KB |
Output is correct |
43 |
Correct |
3 ms |
588 KB |
Output is correct |
44 |
Correct |
4 ms |
704 KB |
Output is correct |
45 |
Correct |
209 ms |
20952 KB |
Output is correct |
46 |
Correct |
315 ms |
30920 KB |
Output is correct |
47 |
Correct |
317 ms |
30920 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
300 KB |
Output is correct |
8 |
Correct |
1 ms |
332 KB |
Output is correct |
9 |
Correct |
216 ms |
20820 KB |
Output is correct |
10 |
Correct |
17 ms |
2416 KB |
Output is correct |
11 |
Correct |
108 ms |
11356 KB |
Output is correct |
12 |
Correct |
26 ms |
3400 KB |
Output is correct |
13 |
Correct |
67 ms |
7468 KB |
Output is correct |
14 |
Correct |
2 ms |
460 KB |
Output is correct |
15 |
Correct |
3 ms |
588 KB |
Output is correct |
16 |
Correct |
215 ms |
20976 KB |
Output is correct |
17 |
Correct |
1 ms |
204 KB |
Output is correct |
18 |
Correct |
1 ms |
204 KB |
Output is correct |
19 |
Correct |
0 ms |
204 KB |
Output is correct |
20 |
Correct |
1 ms |
204 KB |
Output is correct |
21 |
Correct |
1 ms |
204 KB |
Output is correct |
22 |
Correct |
1 ms |
204 KB |
Output is correct |
23 |
Correct |
547 ms |
41780 KB |
Output is correct |
24 |
Correct |
1 ms |
204 KB |
Output is correct |
25 |
Correct |
2 ms |
460 KB |
Output is correct |
26 |
Correct |
5 ms |
716 KB |
Output is correct |
27 |
Correct |
6 ms |
844 KB |
Output is correct |
28 |
Correct |
189 ms |
16796 KB |
Output is correct |
29 |
Correct |
292 ms |
24944 KB |
Output is correct |
30 |
Correct |
407 ms |
33616 KB |
Output is correct |
31 |
Correct |
573 ms |
41624 KB |
Output is correct |
32 |
Correct |
1 ms |
204 KB |
Output is correct |
33 |
Correct |
0 ms |
204 KB |
Output is correct |
34 |
Correct |
1 ms |
204 KB |
Output is correct |
35 |
Correct |
1 ms |
204 KB |
Output is correct |
36 |
Correct |
0 ms |
204 KB |
Output is correct |
37 |
Correct |
0 ms |
204 KB |
Output is correct |
38 |
Correct |
1 ms |
204 KB |
Output is correct |
39 |
Correct |
1 ms |
204 KB |
Output is correct |
40 |
Correct |
0 ms |
204 KB |
Output is correct |
41 |
Correct |
0 ms |
204 KB |
Output is correct |
42 |
Correct |
1 ms |
204 KB |
Output is correct |
43 |
Correct |
3 ms |
588 KB |
Output is correct |
44 |
Correct |
4 ms |
704 KB |
Output is correct |
45 |
Correct |
209 ms |
20952 KB |
Output is correct |
46 |
Correct |
315 ms |
30920 KB |
Output is correct |
47 |
Correct |
317 ms |
30920 KB |
Output is correct |
48 |
Correct |
1 ms |
204 KB |
Output is correct |
49 |
Correct |
1 ms |
300 KB |
Output is correct |
50 |
Correct |
1 ms |
204 KB |
Output is correct |
51 |
Correct |
1 ms |
300 KB |
Output is correct |
52 |
Correct |
1 ms |
204 KB |
Output is correct |
53 |
Correct |
0 ms |
204 KB |
Output is correct |
54 |
Correct |
1 ms |
204 KB |
Output is correct |
55 |
Correct |
543 ms |
41504 KB |
Output is correct |
56 |
Correct |
1 ms |
204 KB |
Output is correct |
57 |
Correct |
4 ms |
588 KB |
Output is correct |
58 |
Correct |
11 ms |
1484 KB |
Output is correct |
59 |
Correct |
17 ms |
1916 KB |
Output is correct |
60 |
Correct |
239 ms |
20892 KB |
Output is correct |
61 |
Correct |
336 ms |
29084 KB |
Output is correct |
62 |
Correct |
442 ms |
34832 KB |
Output is correct |
63 |
Correct |
545 ms |
41780 KB |
Output is correct |
64 |
Correct |
1 ms |
204 KB |
Output is correct |
65 |
Correct |
1 ms |
204 KB |
Output is correct |
66 |
Correct |
0 ms |
204 KB |
Output is correct |
67 |
Correct |
500 ms |
41704 KB |
Output is correct |
68 |
Correct |
502 ms |
41600 KB |
Output is correct |
69 |
Correct |
467 ms |
41504 KB |
Output is correct |
70 |
Correct |
5 ms |
844 KB |
Output is correct |
71 |
Correct |
11 ms |
1568 KB |
Output is correct |
72 |
Correct |
207 ms |
20760 KB |
Output is correct |
73 |
Correct |
339 ms |
31772 KB |
Output is correct |
74 |
Correct |
465 ms |
41748 KB |
Output is correct |
75 |
Correct |
495 ms |
41632 KB |
Output is correct |
76 |
Correct |
483 ms |
41680 KB |
Output is correct |
77 |
Correct |
10 ms |
1100 KB |
Output is correct |
78 |
Correct |
13 ms |
1740 KB |
Output is correct |
79 |
Correct |
217 ms |
20832 KB |
Output is correct |
80 |
Correct |
338 ms |
31768 KB |
Output is correct |
81 |
Correct |
481 ms |
41752 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
300 KB |
Output is correct |
8 |
Correct |
1 ms |
332 KB |
Output is correct |
9 |
Correct |
216 ms |
20820 KB |
Output is correct |
10 |
Correct |
17 ms |
2416 KB |
Output is correct |
11 |
Correct |
108 ms |
11356 KB |
Output is correct |
12 |
Correct |
26 ms |
3400 KB |
Output is correct |
13 |
Correct |
67 ms |
7468 KB |
Output is correct |
14 |
Correct |
2 ms |
460 KB |
Output is correct |
15 |
Correct |
3 ms |
588 KB |
Output is correct |
16 |
Correct |
215 ms |
20976 KB |
Output is correct |
17 |
Correct |
1 ms |
312 KB |
Output is correct |
18 |
Correct |
1 ms |
204 KB |
Output is correct |
19 |
Correct |
1 ms |
204 KB |
Output is correct |
20 |
Correct |
465 ms |
43160 KB |
Output is correct |
21 |
Correct |
483 ms |
43032 KB |
Output is correct |
22 |
Correct |
483 ms |
43036 KB |
Output is correct |
23 |
Correct |
382 ms |
36252 KB |
Output is correct |
24 |
Correct |
220 ms |
20672 KB |
Output is correct |
25 |
Correct |
429 ms |
32632 KB |
Output is correct |
26 |
Correct |
352 ms |
32572 KB |
Output is correct |
27 |
Correct |
425 ms |
41632 KB |
Output is correct |
28 |
Correct |
435 ms |
41628 KB |
Output is correct |
29 |
Correct |
468 ms |
41700 KB |
Output is correct |
30 |
Correct |
474 ms |
41724 KB |
Output is correct |
31 |
Correct |
1 ms |
204 KB |
Output is correct |
32 |
Correct |
27 ms |
3388 KB |
Output is correct |
33 |
Correct |
94 ms |
10912 KB |
Output is correct |
34 |
Correct |
466 ms |
43404 KB |
Output is correct |
35 |
Correct |
17 ms |
1996 KB |
Output is correct |
36 |
Correct |
88 ms |
8516 KB |
Output is correct |
37 |
Correct |
189 ms |
16936 KB |
Output is correct |
38 |
Correct |
178 ms |
17768 KB |
Output is correct |
39 |
Correct |
245 ms |
23936 KB |
Output is correct |
40 |
Correct |
329 ms |
31340 KB |
Output is correct |
41 |
Correct |
399 ms |
37112 KB |
Output is correct |
42 |
Correct |
455 ms |
43436 KB |
Output is correct |
43 |
Correct |
0 ms |
204 KB |
Output is correct |
44 |
Correct |
0 ms |
300 KB |
Output is correct |
45 |
Correct |
1 ms |
300 KB |
Output is correct |
46 |
Correct |
0 ms |
204 KB |
Output is correct |
47 |
Correct |
0 ms |
204 KB |
Output is correct |
48 |
Correct |
0 ms |
204 KB |
Output is correct |
49 |
Correct |
0 ms |
204 KB |
Output is correct |
50 |
Correct |
1 ms |
204 KB |
Output is correct |
51 |
Correct |
1 ms |
204 KB |
Output is correct |
52 |
Correct |
0 ms |
204 KB |
Output is correct |
53 |
Correct |
0 ms |
204 KB |
Output is correct |
54 |
Correct |
3 ms |
588 KB |
Output is correct |
55 |
Correct |
4 ms |
716 KB |
Output is correct |
56 |
Correct |
205 ms |
20856 KB |
Output is correct |
57 |
Correct |
312 ms |
30920 KB |
Output is correct |
58 |
Correct |
321 ms |
30952 KB |
Output is correct |
59 |
Correct |
1 ms |
204 KB |
Output is correct |
60 |
Correct |
1 ms |
204 KB |
Output is correct |
61 |
Correct |
0 ms |
204 KB |
Output is correct |
62 |
Correct |
474 ms |
41712 KB |
Output is correct |
63 |
Correct |
520 ms |
41720 KB |
Output is correct |
64 |
Correct |
479 ms |
41468 KB |
Output is correct |
65 |
Correct |
6 ms |
868 KB |
Output is correct |
66 |
Correct |
11 ms |
1484 KB |
Output is correct |
67 |
Correct |
213 ms |
20756 KB |
Output is correct |
68 |
Correct |
345 ms |
31820 KB |
Output is correct |
69 |
Correct |
463 ms |
41700 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
300 KB |
Output is correct |
8 |
Correct |
1 ms |
332 KB |
Output is correct |
9 |
Correct |
216 ms |
20820 KB |
Output is correct |
10 |
Correct |
17 ms |
2416 KB |
Output is correct |
11 |
Correct |
108 ms |
11356 KB |
Output is correct |
12 |
Correct |
26 ms |
3400 KB |
Output is correct |
13 |
Correct |
67 ms |
7468 KB |
Output is correct |
14 |
Correct |
2 ms |
460 KB |
Output is correct |
15 |
Correct |
3 ms |
588 KB |
Output is correct |
16 |
Correct |
215 ms |
20976 KB |
Output is correct |
17 |
Correct |
480 ms |
42388 KB |
Output is correct |
18 |
Correct |
462 ms |
42776 KB |
Output is correct |
19 |
Correct |
462 ms |
43028 KB |
Output is correct |
20 |
Correct |
457 ms |
40632 KB |
Output is correct |
21 |
Correct |
381 ms |
36692 KB |
Output is correct |
22 |
Correct |
1 ms |
204 KB |
Output is correct |
23 |
Correct |
66 ms |
7104 KB |
Output is correct |
24 |
Correct |
33 ms |
3608 KB |
Output is correct |
25 |
Correct |
126 ms |
12372 KB |
Output is correct |
26 |
Correct |
225 ms |
20032 KB |
Output is correct |
27 |
Correct |
217 ms |
21800 KB |
Output is correct |
28 |
Correct |
294 ms |
27408 KB |
Output is correct |
29 |
Correct |
349 ms |
33308 KB |
Output is correct |
30 |
Correct |
410 ms |
37856 KB |
Output is correct |
31 |
Correct |
490 ms |
43420 KB |
Output is correct |
32 |
Correct |
576 ms |
41624 KB |
Output is correct |
33 |
Correct |
484 ms |
41632 KB |
Output is correct |
34 |
Correct |
7 ms |
1100 KB |
Output is correct |
35 |
Correct |
13 ms |
1832 KB |
Output is correct |
36 |
Correct |
216 ms |
20752 KB |
Output is correct |
37 |
Correct |
337 ms |
31768 KB |
Output is correct |
38 |
Correct |
474 ms |
41880 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
1 ms |
204 KB |
Output is correct |
3 |
Correct |
1 ms |
204 KB |
Output is correct |
4 |
Correct |
1 ms |
204 KB |
Output is correct |
5 |
Correct |
0 ms |
204 KB |
Output is correct |
6 |
Correct |
1 ms |
204 KB |
Output is correct |
7 |
Correct |
1 ms |
300 KB |
Output is correct |
8 |
Correct |
1 ms |
332 KB |
Output is correct |
9 |
Correct |
216 ms |
20820 KB |
Output is correct |
10 |
Correct |
17 ms |
2416 KB |
Output is correct |
11 |
Correct |
108 ms |
11356 KB |
Output is correct |
12 |
Correct |
26 ms |
3400 KB |
Output is correct |
13 |
Correct |
67 ms |
7468 KB |
Output is correct |
14 |
Correct |
2 ms |
460 KB |
Output is correct |
15 |
Correct |
3 ms |
588 KB |
Output is correct |
16 |
Correct |
215 ms |
20976 KB |
Output is correct |
17 |
Correct |
1 ms |
204 KB |
Output is correct |
18 |
Correct |
1 ms |
204 KB |
Output is correct |
19 |
Correct |
0 ms |
204 KB |
Output is correct |
20 |
Correct |
1 ms |
204 KB |
Output is correct |
21 |
Correct |
1 ms |
204 KB |
Output is correct |
22 |
Correct |
1 ms |
204 KB |
Output is correct |
23 |
Correct |
547 ms |
41780 KB |
Output is correct |
24 |
Correct |
1 ms |
204 KB |
Output is correct |
25 |
Correct |
2 ms |
460 KB |
Output is correct |
26 |
Correct |
5 ms |
716 KB |
Output is correct |
27 |
Correct |
6 ms |
844 KB |
Output is correct |
28 |
Correct |
189 ms |
16796 KB |
Output is correct |
29 |
Correct |
292 ms |
24944 KB |
Output is correct |
30 |
Correct |
407 ms |
33616 KB |
Output is correct |
31 |
Correct |
573 ms |
41624 KB |
Output is correct |
32 |
Correct |
1 ms |
204 KB |
Output is correct |
33 |
Correct |
0 ms |
204 KB |
Output is correct |
34 |
Correct |
1 ms |
204 KB |
Output is correct |
35 |
Correct |
1 ms |
204 KB |
Output is correct |
36 |
Correct |
0 ms |
204 KB |
Output is correct |
37 |
Correct |
0 ms |
204 KB |
Output is correct |
38 |
Correct |
1 ms |
204 KB |
Output is correct |
39 |
Correct |
1 ms |
204 KB |
Output is correct |
40 |
Correct |
0 ms |
204 KB |
Output is correct |
41 |
Correct |
0 ms |
204 KB |
Output is correct |
42 |
Correct |
1 ms |
204 KB |
Output is correct |
43 |
Correct |
3 ms |
588 KB |
Output is correct |
44 |
Correct |
4 ms |
704 KB |
Output is correct |
45 |
Correct |
209 ms |
20952 KB |
Output is correct |
46 |
Correct |
315 ms |
30920 KB |
Output is correct |
47 |
Correct |
317 ms |
30920 KB |
Output is correct |
48 |
Correct |
1 ms |
204 KB |
Output is correct |
49 |
Correct |
1 ms |
300 KB |
Output is correct |
50 |
Correct |
1 ms |
204 KB |
Output is correct |
51 |
Correct |
1 ms |
300 KB |
Output is correct |
52 |
Correct |
1 ms |
204 KB |
Output is correct |
53 |
Correct |
0 ms |
204 KB |
Output is correct |
54 |
Correct |
1 ms |
204 KB |
Output is correct |
55 |
Correct |
543 ms |
41504 KB |
Output is correct |
56 |
Correct |
1 ms |
204 KB |
Output is correct |
57 |
Correct |
4 ms |
588 KB |
Output is correct |
58 |
Correct |
11 ms |
1484 KB |
Output is correct |
59 |
Correct |
17 ms |
1916 KB |
Output is correct |
60 |
Correct |
239 ms |
20892 KB |
Output is correct |
61 |
Correct |
336 ms |
29084 KB |
Output is correct |
62 |
Correct |
442 ms |
34832 KB |
Output is correct |
63 |
Correct |
545 ms |
41780 KB |
Output is correct |
64 |
Correct |
1 ms |
204 KB |
Output is correct |
65 |
Correct |
1 ms |
204 KB |
Output is correct |
66 |
Correct |
0 ms |
204 KB |
Output is correct |
67 |
Correct |
500 ms |
41704 KB |
Output is correct |
68 |
Correct |
502 ms |
41600 KB |
Output is correct |
69 |
Correct |
467 ms |
41504 KB |
Output is correct |
70 |
Correct |
5 ms |
844 KB |
Output is correct |
71 |
Correct |
11 ms |
1568 KB |
Output is correct |
72 |
Correct |
207 ms |
20760 KB |
Output is correct |
73 |
Correct |
339 ms |
31772 KB |
Output is correct |
74 |
Correct |
465 ms |
41748 KB |
Output is correct |
75 |
Correct |
495 ms |
41632 KB |
Output is correct |
76 |
Correct |
483 ms |
41680 KB |
Output is correct |
77 |
Correct |
10 ms |
1100 KB |
Output is correct |
78 |
Correct |
13 ms |
1740 KB |
Output is correct |
79 |
Correct |
217 ms |
20832 KB |
Output is correct |
80 |
Correct |
338 ms |
31768 KB |
Output is correct |
81 |
Correct |
481 ms |
41752 KB |
Output is correct |
82 |
Correct |
1 ms |
312 KB |
Output is correct |
83 |
Correct |
1 ms |
204 KB |
Output is correct |
84 |
Correct |
1 ms |
204 KB |
Output is correct |
85 |
Correct |
465 ms |
43160 KB |
Output is correct |
86 |
Correct |
483 ms |
43032 KB |
Output is correct |
87 |
Correct |
483 ms |
43036 KB |
Output is correct |
88 |
Correct |
382 ms |
36252 KB |
Output is correct |
89 |
Correct |
220 ms |
20672 KB |
Output is correct |
90 |
Correct |
429 ms |
32632 KB |
Output is correct |
91 |
Correct |
352 ms |
32572 KB |
Output is correct |
92 |
Correct |
425 ms |
41632 KB |
Output is correct |
93 |
Correct |
435 ms |
41628 KB |
Output is correct |
94 |
Correct |
468 ms |
41700 KB |
Output is correct |
95 |
Correct |
474 ms |
41724 KB |
Output is correct |
96 |
Correct |
1 ms |
204 KB |
Output is correct |
97 |
Correct |
27 ms |
3388 KB |
Output is correct |
98 |
Correct |
94 ms |
10912 KB |
Output is correct |
99 |
Correct |
466 ms |
43404 KB |
Output is correct |
100 |
Correct |
17 ms |
1996 KB |
Output is correct |
101 |
Correct |
88 ms |
8516 KB |
Output is correct |
102 |
Correct |
189 ms |
16936 KB |
Output is correct |
103 |
Correct |
178 ms |
17768 KB |
Output is correct |
104 |
Correct |
245 ms |
23936 KB |
Output is correct |
105 |
Correct |
329 ms |
31340 KB |
Output is correct |
106 |
Correct |
399 ms |
37112 KB |
Output is correct |
107 |
Correct |
455 ms |
43436 KB |
Output is correct |
108 |
Correct |
0 ms |
204 KB |
Output is correct |
109 |
Correct |
0 ms |
300 KB |
Output is correct |
110 |
Correct |
1 ms |
300 KB |
Output is correct |
111 |
Correct |
0 ms |
204 KB |
Output is correct |
112 |
Correct |
0 ms |
204 KB |
Output is correct |
113 |
Correct |
0 ms |
204 KB |
Output is correct |
114 |
Correct |
0 ms |
204 KB |
Output is correct |
115 |
Correct |
1 ms |
204 KB |
Output is correct |
116 |
Correct |
1 ms |
204 KB |
Output is correct |
117 |
Correct |
0 ms |
204 KB |
Output is correct |
118 |
Correct |
0 ms |
204 KB |
Output is correct |
119 |
Correct |
3 ms |
588 KB |
Output is correct |
120 |
Correct |
4 ms |
716 KB |
Output is correct |
121 |
Correct |
205 ms |
20856 KB |
Output is correct |
122 |
Correct |
312 ms |
30920 KB |
Output is correct |
123 |
Correct |
321 ms |
30952 KB |
Output is correct |
124 |
Correct |
1 ms |
204 KB |
Output is correct |
125 |
Correct |
1 ms |
204 KB |
Output is correct |
126 |
Correct |
0 ms |
204 KB |
Output is correct |
127 |
Correct |
474 ms |
41712 KB |
Output is correct |
128 |
Correct |
520 ms |
41720 KB |
Output is correct |
129 |
Correct |
479 ms |
41468 KB |
Output is correct |
130 |
Correct |
6 ms |
868 KB |
Output is correct |
131 |
Correct |
11 ms |
1484 KB |
Output is correct |
132 |
Correct |
213 ms |
20756 KB |
Output is correct |
133 |
Correct |
345 ms |
31820 KB |
Output is correct |
134 |
Correct |
463 ms |
41700 KB |
Output is correct |
135 |
Correct |
480 ms |
42388 KB |
Output is correct |
136 |
Correct |
462 ms |
42776 KB |
Output is correct |
137 |
Correct |
462 ms |
43028 KB |
Output is correct |
138 |
Correct |
457 ms |
40632 KB |
Output is correct |
139 |
Correct |
381 ms |
36692 KB |
Output is correct |
140 |
Correct |
1 ms |
204 KB |
Output is correct |
141 |
Correct |
66 ms |
7104 KB |
Output is correct |
142 |
Correct |
33 ms |
3608 KB |
Output is correct |
143 |
Correct |
126 ms |
12372 KB |
Output is correct |
144 |
Correct |
225 ms |
20032 KB |
Output is correct |
145 |
Correct |
217 ms |
21800 KB |
Output is correct |
146 |
Correct |
294 ms |
27408 KB |
Output is correct |
147 |
Correct |
349 ms |
33308 KB |
Output is correct |
148 |
Correct |
410 ms |
37856 KB |
Output is correct |
149 |
Correct |
490 ms |
43420 KB |
Output is correct |
150 |
Correct |
576 ms |
41624 KB |
Output is correct |
151 |
Correct |
484 ms |
41632 KB |
Output is correct |
152 |
Correct |
7 ms |
1100 KB |
Output is correct |
153 |
Correct |
13 ms |
1832 KB |
Output is correct |
154 |
Correct |
216 ms |
20752 KB |
Output is correct |
155 |
Correct |
337 ms |
31768 KB |
Output is correct |
156 |
Correct |
474 ms |
41880 KB |
Output is correct |
157 |
Correct |
1 ms |
204 KB |
Output is correct |
158 |
Correct |
1 ms |
300 KB |
Output is correct |
159 |
Correct |
1 ms |
204 KB |
Output is correct |
160 |
Correct |
0 ms |
304 KB |
Output is correct |
161 |
Correct |
560 ms |
42412 KB |
Output is correct |
162 |
Correct |
467 ms |
43452 KB |
Output is correct |
163 |
Correct |
508 ms |
43388 KB |
Output is correct |
164 |
Correct |
487 ms |
43396 KB |
Output is correct |
165 |
Correct |
531 ms |
42904 KB |
Output is correct |
166 |
Correct |
522 ms |
42392 KB |
Output is correct |
167 |
Correct |
103 ms |
10192 KB |
Output is correct |
168 |
Correct |
58 ms |
5256 KB |
Output is correct |
169 |
Correct |
175 ms |
13744 KB |
Output is correct |
170 |
Correct |
328 ms |
25640 KB |
Output is correct |
171 |
Correct |
481 ms |
33596 KB |
Output is correct |
172 |
Correct |
251 ms |
21800 KB |
Output is correct |
173 |
Correct |
317 ms |
26000 KB |
Output is correct |
174 |
Correct |
365 ms |
31348 KB |
Output is correct |
175 |
Correct |
424 ms |
34848 KB |
Output is correct |
176 |
Correct |
491 ms |
39200 KB |
Output is correct |
177 |
Correct |
574 ms |
43600 KB |
Output is correct |