# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
443495 | 2021-07-10T15:20:47 Z | leinad2 | Fountain Parks (IOI21_parks) | C++17 | 601 ms | 74636 KB |
#include "parks.h" #include<bits/stdc++.h> using namespace std; int par[400010], chk[400010], chk2[400010], A[400010][2], vis[400010]; int Find(int v){return v==par[v]?v:par[v]=Find(par[v]);} vector<pair<int, int> >v; int cnt; map<pair<int, int>, int>mp; vector<pair<int, int> >adj[400010]; vector<int>_u, _v, _a, _b; void dfs(int v) { for(int i=0;i<adj[v].size();i++) { int p=adj[v][i].first; if(!vis[p])vis[p]=1,dfs(p),_a[adj[v][i].second]=p; } } int construct_roads(vector<int>x, vector<int>y) { int n, i, j, k, a, b; n=x.size(); vector<pair<pair<int, int>, int> >V; for(i=0;i<n;i++) { V.push_back({{x[i], y[i]}, i}); } sort(V.begin(), V.end()); for(i=1;i<V.size();i++) { if(V[i].first.first==V[i-1].first.first&&V[i].first.second==V[i-1].first.second+2) { v.push_back({V[i].second, V[i-1].second}); } } for(i=0;i<n;i++) { swap(V[i].first.first, V[i].first.second); } sort(V.begin(), V.end()); for(i=1;i<V.size();i++) { if(V[i].first.first==V[i-1].first.first&&V[i].first.second==V[i-1].first.second+2) { v.push_back({V[i].second, V[i-1].second}); } } for(int rng=0;rng<10;rng++) { for(i=0;i<n;i++)par[i]=i; if(rng!=0)random_shuffle(v.begin(), v.end()); _u.clear();_v.clear();_a.clear();_b.clear();cnt=0;mp.clear();for(i=1;i<=2*n;i++)vis[i]=chk[i]=chk2[i]=0,adj[i].clear(); for(i=0;i<v.size();i++) { if(Find(v[i].first)!=Find(v[i].second)) { _u.push_back(v[i].first); _v.push_back(v[i].second); par[Find(v[i].first)]=Find(v[i].second); } } if(_u.size()!=n-1)return 0; vector<pair<int, int> >edge; _a.resize(n-1);_b.resize(n-1); for(i=0;i<_u.size();i++) { int a=_u[i], b=_v[i], q, w, e, r; if(x[a]==x[b]) { q=x[a]-1;e=x[a]+1; w=r=(y[a]+y[b])/2; } else { w=y[a]-1;r=y[a]+1; q=e=(x[a]+x[b])/2; } if(mp.find({q, w})==mp.end())mp[{q, w}]=++cnt,A[cnt][0]=q,A[cnt][1]=w; if(mp.find({e, r})==mp.end())mp[{e, r}]=++cnt,A[cnt][0]=e,A[cnt][1]=r; int x=mp[{q, w}];int y=mp[{e, r}]; edge.push_back({x, y}); } for(i=0;i++<cnt;)par[i]=i; for(i=0;i<edge.size();i++)par[Find(edge[i].first)]=Find(edge[i].second); for(i=0;i++<cnt;)chk[Find(i)]++; for(i=0;i<edge.size();i++)chk2[Find(edge[i].first)]++; for(i=0;i<edge.size();i++) { adj[edge[i].first].push_back({edge[i].second, i}); adj[edge[i].second].push_back({edge[i].first, i}); } bool flag=true; for(i=0;i++<cnt;) { if(chk[i]) { if(chk[i]<chk2[i]){flag=false;break;} else vis[i]=1,dfs(i); } } if(!flag)continue; for(i=0;i<_a.size();i++) { if(_a[i]==0)_a[i]=Find(edge[i].first); int a=_a[i]; _a[i]=A[a][0];_b[i]=A[a][1]; } build(_u, _v, _a, _b); return 1; } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 9676 KB | Output is correct |
2 | Correct | 7 ms | 9676 KB | Output is correct |
3 | Correct | 7 ms | 9676 KB | Output is correct |
4 | Correct | 6 ms | 9676 KB | Output is correct |
5 | Correct | 6 ms | 9676 KB | Output is correct |
6 | Correct | 6 ms | 9672 KB | Output is correct |
7 | Correct | 6 ms | 9676 KB | Output is correct |
8 | Correct | 6 ms | 9624 KB | Output is correct |
9 | Correct | 225 ms | 42332 KB | Output is correct |
10 | Correct | 25 ms | 12940 KB | Output is correct |
11 | Correct | 115 ms | 27220 KB | Output is correct |
12 | Correct | 34 ms | 14564 KB | Output is correct |
13 | Correct | 21 ms | 13124 KB | Output is correct |
14 | Correct | 7 ms | 9676 KB | Output is correct |
15 | Correct | 8 ms | 9864 KB | Output is correct |
16 | Correct | 226 ms | 42272 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 9676 KB | Output is correct |
2 | Correct | 7 ms | 9676 KB | Output is correct |
3 | Correct | 7 ms | 9676 KB | Output is correct |
4 | Correct | 6 ms | 9676 KB | Output is correct |
5 | Correct | 6 ms | 9676 KB | Output is correct |
6 | Correct | 6 ms | 9672 KB | Output is correct |
7 | Correct | 6 ms | 9676 KB | Output is correct |
8 | Correct | 6 ms | 9624 KB | Output is correct |
9 | Correct | 225 ms | 42332 KB | Output is correct |
10 | Correct | 25 ms | 12940 KB | Output is correct |
11 | Correct | 115 ms | 27220 KB | Output is correct |
12 | Correct | 34 ms | 14564 KB | Output is correct |
13 | Correct | 21 ms | 13124 KB | Output is correct |
14 | Correct | 7 ms | 9676 KB | Output is correct |
15 | Correct | 8 ms | 9864 KB | Output is correct |
16 | Correct | 226 ms | 42272 KB | Output is correct |
17 | Correct | 7 ms | 9676 KB | Output is correct |
18 | Correct | 6 ms | 9676 KB | Output is correct |
19 | Correct | 6 ms | 9676 KB | Output is correct |
20 | Correct | 6 ms | 9700 KB | Output is correct |
21 | Correct | 6 ms | 9604 KB | Output is correct |
22 | Correct | 6 ms | 9676 KB | Output is correct |
23 | Correct | 431 ms | 65256 KB | Output is correct |
24 | Correct | 6 ms | 9676 KB | Output is correct |
25 | Correct | 8 ms | 10080 KB | Output is correct |
26 | Correct | 8 ms | 9932 KB | Output is correct |
27 | Correct | 8 ms | 10060 KB | Output is correct |
28 | Correct | 167 ms | 32008 KB | Output is correct |
29 | Correct | 263 ms | 43012 KB | Output is correct |
30 | Correct | 398 ms | 53908 KB | Output is correct |
31 | Correct | 427 ms | 65228 KB | Output is correct |
32 | Correct | 6 ms | 9676 KB | Output is correct |
33 | Correct | 6 ms | 9676 KB | Output is correct |
34 | Correct | 6 ms | 9676 KB | Output is correct |
35 | Correct | 6 ms | 9724 KB | Output is correct |
36 | Correct | 7 ms | 9624 KB | Output is correct |
37 | Correct | 6 ms | 9676 KB | Output is correct |
38 | Correct | 6 ms | 9676 KB | Output is correct |
39 | Correct | 7 ms | 9628 KB | Output is correct |
40 | Correct | 6 ms | 9668 KB | Output is correct |
41 | Correct | 6 ms | 9676 KB | Output is correct |
42 | Correct | 6 ms | 9736 KB | Output is correct |
43 | Correct | 7 ms | 9876 KB | Output is correct |
44 | Correct | 7 ms | 9964 KB | Output is correct |
45 | Correct | 202 ms | 35716 KB | Output is correct |
46 | Correct | 324 ms | 47588 KB | Output is correct |
47 | Correct | 308 ms | 47360 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 9676 KB | Output is correct |
2 | Correct | 7 ms | 9676 KB | Output is correct |
3 | Correct | 7 ms | 9676 KB | Output is correct |
4 | Correct | 6 ms | 9676 KB | Output is correct |
5 | Correct | 6 ms | 9676 KB | Output is correct |
6 | Correct | 6 ms | 9672 KB | Output is correct |
7 | Correct | 6 ms | 9676 KB | Output is correct |
8 | Correct | 6 ms | 9624 KB | Output is correct |
9 | Correct | 225 ms | 42332 KB | Output is correct |
10 | Correct | 25 ms | 12940 KB | Output is correct |
11 | Correct | 115 ms | 27220 KB | Output is correct |
12 | Correct | 34 ms | 14564 KB | Output is correct |
13 | Correct | 21 ms | 13124 KB | Output is correct |
14 | Correct | 7 ms | 9676 KB | Output is correct |
15 | Correct | 8 ms | 9864 KB | Output is correct |
16 | Correct | 226 ms | 42272 KB | Output is correct |
17 | Correct | 7 ms | 9676 KB | Output is correct |
18 | Correct | 6 ms | 9676 KB | Output is correct |
19 | Correct | 6 ms | 9676 KB | Output is correct |
20 | Correct | 6 ms | 9700 KB | Output is correct |
21 | Correct | 6 ms | 9604 KB | Output is correct |
22 | Correct | 6 ms | 9676 KB | Output is correct |
23 | Correct | 431 ms | 65256 KB | Output is correct |
24 | Correct | 6 ms | 9676 KB | Output is correct |
25 | Correct | 8 ms | 10080 KB | Output is correct |
26 | Correct | 8 ms | 9932 KB | Output is correct |
27 | Correct | 8 ms | 10060 KB | Output is correct |
28 | Correct | 167 ms | 32008 KB | Output is correct |
29 | Correct | 263 ms | 43012 KB | Output is correct |
30 | Correct | 398 ms | 53908 KB | Output is correct |
31 | Correct | 427 ms | 65228 KB | Output is correct |
32 | Correct | 6 ms | 9676 KB | Output is correct |
33 | Correct | 6 ms | 9676 KB | Output is correct |
34 | Correct | 6 ms | 9676 KB | Output is correct |
35 | Correct | 6 ms | 9724 KB | Output is correct |
36 | Correct | 7 ms | 9624 KB | Output is correct |
37 | Correct | 6 ms | 9676 KB | Output is correct |
38 | Correct | 6 ms | 9676 KB | Output is correct |
39 | Correct | 7 ms | 9628 KB | Output is correct |
40 | Correct | 6 ms | 9668 KB | Output is correct |
41 | Correct | 6 ms | 9676 KB | Output is correct |
42 | Correct | 6 ms | 9736 KB | Output is correct |
43 | Correct | 7 ms | 9876 KB | Output is correct |
44 | Correct | 7 ms | 9964 KB | Output is correct |
45 | Correct | 202 ms | 35716 KB | Output is correct |
46 | Correct | 324 ms | 47588 KB | Output is correct |
47 | Correct | 308 ms | 47360 KB | Output is correct |
48 | Correct | 7 ms | 9728 KB | Output is correct |
49 | Correct | 6 ms | 9672 KB | Output is correct |
50 | Correct | 6 ms | 9676 KB | Output is correct |
51 | Correct | 7 ms | 9676 KB | Output is correct |
52 | Correct | 6 ms | 9676 KB | Output is correct |
53 | Correct | 7 ms | 9676 KB | Output is correct |
54 | Correct | 7 ms | 9676 KB | Output is correct |
55 | Correct | 396 ms | 61932 KB | Output is correct |
56 | Correct | 6 ms | 9676 KB | Output is correct |
57 | Correct | 9 ms | 10188 KB | Output is correct |
58 | Correct | 16 ms | 11416 KB | Output is correct |
59 | Correct | 12 ms | 10508 KB | Output is correct |
60 | Correct | 201 ms | 35804 KB | Output is correct |
61 | Correct | 262 ms | 44916 KB | Output is correct |
62 | Correct | 340 ms | 52932 KB | Output is correct |
63 | Correct | 482 ms | 61992 KB | Output is correct |
64 | Correct | 7 ms | 9676 KB | Output is correct |
65 | Correct | 7 ms | 9676 KB | Output is correct |
66 | Correct | 6 ms | 9600 KB | Output is correct |
67 | Correct | 487 ms | 74552 KB | Output is correct |
68 | Correct | 493 ms | 74552 KB | Output is correct |
69 | Correct | 482 ms | 74376 KB | Output is correct |
70 | Correct | 9 ms | 9940 KB | Output is correct |
71 | Correct | 10 ms | 10316 KB | Output is correct |
72 | Correct | 210 ms | 35212 KB | Output is correct |
73 | Correct | 305 ms | 47848 KB | Output is correct |
74 | Correct | 408 ms | 60612 KB | Output is correct |
75 | Correct | 431 ms | 66464 KB | Output is correct |
76 | Correct | 487 ms | 74608 KB | Output is correct |
77 | Correct | 8 ms | 10076 KB | Output is correct |
78 | Correct | 10 ms | 10384 KB | Output is correct |
79 | Correct | 235 ms | 36216 KB | Output is correct |
80 | Correct | 310 ms | 49652 KB | Output is correct |
81 | Correct | 423 ms | 62660 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 9676 KB | Output is correct |
2 | Correct | 7 ms | 9676 KB | Output is correct |
3 | Correct | 7 ms | 9676 KB | Output is correct |
4 | Correct | 6 ms | 9676 KB | Output is correct |
5 | Correct | 6 ms | 9676 KB | Output is correct |
6 | Correct | 6 ms | 9672 KB | Output is correct |
7 | Correct | 6 ms | 9676 KB | Output is correct |
8 | Correct | 6 ms | 9624 KB | Output is correct |
9 | Correct | 225 ms | 42332 KB | Output is correct |
10 | Correct | 25 ms | 12940 KB | Output is correct |
11 | Correct | 115 ms | 27220 KB | Output is correct |
12 | Correct | 34 ms | 14564 KB | Output is correct |
13 | Correct | 21 ms | 13124 KB | Output is correct |
14 | Correct | 7 ms | 9676 KB | Output is correct |
15 | Correct | 8 ms | 9864 KB | Output is correct |
16 | Correct | 226 ms | 42272 KB | Output is correct |
17 | Correct | 6 ms | 9676 KB | Output is correct |
18 | Correct | 7 ms | 9676 KB | Output is correct |
19 | Correct | 6 ms | 9676 KB | Output is correct |
20 | Correct | 341 ms | 63000 KB | Output is correct |
21 | Correct | 371 ms | 58292 KB | Output is correct |
22 | Correct | 363 ms | 58192 KB | Output is correct |
23 | Correct | 334 ms | 64916 KB | Output is correct |
24 | Correct | 114 ms | 20708 KB | Output is correct |
25 | Correct | 109 ms | 25028 KB | Output is correct |
26 | Correct | 111 ms | 25084 KB | Output is correct |
27 | Correct | 385 ms | 74576 KB | Output is correct |
28 | Correct | 416 ms | 74496 KB | Output is correct |
29 | Correct | 418 ms | 74552 KB | Output is correct |
30 | Correct | 397 ms | 74500 KB | Output is correct |
31 | Correct | 7 ms | 9676 KB | Output is correct |
32 | Correct | 31 ms | 13280 KB | Output is correct |
33 | Correct | 47 ms | 15200 KB | Output is correct |
34 | Correct | 384 ms | 62836 KB | Output is correct |
35 | Correct | 12 ms | 10512 KB | Output is correct |
36 | Correct | 34 ms | 13600 KB | Output is correct |
37 | Correct | 68 ms | 17128 KB | Output is correct |
38 | Correct | 176 ms | 29072 KB | Output is correct |
39 | Correct | 254 ms | 35964 KB | Output is correct |
40 | Correct | 308 ms | 43216 KB | Output is correct |
41 | Correct | 417 ms | 50408 KB | Output is correct |
42 | Correct | 460 ms | 57592 KB | Output is correct |
43 | Correct | 8 ms | 9676 KB | Output is correct |
44 | Correct | 6 ms | 9660 KB | Output is correct |
45 | Correct | 7 ms | 9676 KB | Output is correct |
46 | Correct | 7 ms | 9676 KB | Output is correct |
47 | Correct | 8 ms | 9676 KB | Output is correct |
48 | Correct | 6 ms | 9676 KB | Output is correct |
49 | Correct | 6 ms | 9676 KB | Output is correct |
50 | Correct | 6 ms | 9676 KB | Output is correct |
51 | Correct | 6 ms | 9676 KB | Output is correct |
52 | Correct | 6 ms | 9676 KB | Output is correct |
53 | Correct | 6 ms | 9676 KB | Output is correct |
54 | Correct | 7 ms | 9804 KB | Output is correct |
55 | Correct | 8 ms | 9980 KB | Output is correct |
56 | Correct | 210 ms | 35644 KB | Output is correct |
57 | Correct | 304 ms | 47332 KB | Output is correct |
58 | Correct | 314 ms | 47412 KB | Output is correct |
59 | Correct | 6 ms | 9676 KB | Output is correct |
60 | Correct | 7 ms | 9676 KB | Output is correct |
61 | Correct | 7 ms | 9676 KB | Output is correct |
62 | Correct | 498 ms | 74552 KB | Output is correct |
63 | Correct | 489 ms | 74632 KB | Output is correct |
64 | Correct | 489 ms | 74292 KB | Output is correct |
65 | Correct | 8 ms | 9932 KB | Output is correct |
66 | Correct | 10 ms | 10248 KB | Output is correct |
67 | Correct | 197 ms | 35216 KB | Output is correct |
68 | Correct | 319 ms | 47976 KB | Output is correct |
69 | Correct | 451 ms | 60516 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 9676 KB | Output is correct |
2 | Correct | 7 ms | 9676 KB | Output is correct |
3 | Correct | 7 ms | 9676 KB | Output is correct |
4 | Correct | 6 ms | 9676 KB | Output is correct |
5 | Correct | 6 ms | 9676 KB | Output is correct |
6 | Correct | 6 ms | 9672 KB | Output is correct |
7 | Correct | 6 ms | 9676 KB | Output is correct |
8 | Correct | 6 ms | 9624 KB | Output is correct |
9 | Correct | 225 ms | 42332 KB | Output is correct |
10 | Correct | 25 ms | 12940 KB | Output is correct |
11 | Correct | 115 ms | 27220 KB | Output is correct |
12 | Correct | 34 ms | 14564 KB | Output is correct |
13 | Correct | 21 ms | 13124 KB | Output is correct |
14 | Correct | 7 ms | 9676 KB | Output is correct |
15 | Correct | 8 ms | 9864 KB | Output is correct |
16 | Correct | 226 ms | 42272 KB | Output is correct |
17 | Correct | 441 ms | 74604 KB | Output is correct |
18 | Correct | 435 ms | 74636 KB | Output is correct |
19 | Correct | 374 ms | 62824 KB | Output is correct |
20 | Correct | 376 ms | 60088 KB | Output is correct |
21 | Correct | 367 ms | 62616 KB | Output is correct |
22 | Correct | 6 ms | 9676 KB | Output is correct |
23 | Correct | 79 ms | 17848 KB | Output is correct |
24 | Correct | 20 ms | 11212 KB | Output is correct |
25 | Correct | 45 ms | 15240 KB | Output is correct |
26 | Correct | 72 ms | 18696 KB | Output is correct |
27 | Correct | 225 ms | 35052 KB | Output is correct |
28 | Correct | 285 ms | 42004 KB | Output is correct |
29 | Correct | 347 ms | 47444 KB | Output is correct |
30 | Correct | 404 ms | 53688 KB | Output is correct |
31 | Correct | 456 ms | 59956 KB | Output is correct |
32 | Correct | 429 ms | 66496 KB | Output is correct |
33 | Correct | 494 ms | 74552 KB | Output is correct |
34 | Correct | 9 ms | 10060 KB | Output is correct |
35 | Correct | 13 ms | 10384 KB | Output is correct |
36 | Correct | 197 ms | 36228 KB | Output is correct |
37 | Correct | 308 ms | 49604 KB | Output is correct |
38 | Correct | 419 ms | 62824 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 6 ms | 9676 KB | Output is correct |
2 | Correct | 7 ms | 9676 KB | Output is correct |
3 | Correct | 7 ms | 9676 KB | Output is correct |
4 | Correct | 6 ms | 9676 KB | Output is correct |
5 | Correct | 6 ms | 9676 KB | Output is correct |
6 | Correct | 6 ms | 9672 KB | Output is correct |
7 | Correct | 6 ms | 9676 KB | Output is correct |
8 | Correct | 6 ms | 9624 KB | Output is correct |
9 | Correct | 225 ms | 42332 KB | Output is correct |
10 | Correct | 25 ms | 12940 KB | Output is correct |
11 | Correct | 115 ms | 27220 KB | Output is correct |
12 | Correct | 34 ms | 14564 KB | Output is correct |
13 | Correct | 21 ms | 13124 KB | Output is correct |
14 | Correct | 7 ms | 9676 KB | Output is correct |
15 | Correct | 8 ms | 9864 KB | Output is correct |
16 | Correct | 226 ms | 42272 KB | Output is correct |
17 | Correct | 7 ms | 9676 KB | Output is correct |
18 | Correct | 6 ms | 9676 KB | Output is correct |
19 | Correct | 6 ms | 9676 KB | Output is correct |
20 | Correct | 6 ms | 9700 KB | Output is correct |
21 | Correct | 6 ms | 9604 KB | Output is correct |
22 | Correct | 6 ms | 9676 KB | Output is correct |
23 | Correct | 431 ms | 65256 KB | Output is correct |
24 | Correct | 6 ms | 9676 KB | Output is correct |
25 | Correct | 8 ms | 10080 KB | Output is correct |
26 | Correct | 8 ms | 9932 KB | Output is correct |
27 | Correct | 8 ms | 10060 KB | Output is correct |
28 | Correct | 167 ms | 32008 KB | Output is correct |
29 | Correct | 263 ms | 43012 KB | Output is correct |
30 | Correct | 398 ms | 53908 KB | Output is correct |
31 | Correct | 427 ms | 65228 KB | Output is correct |
32 | Correct | 6 ms | 9676 KB | Output is correct |
33 | Correct | 6 ms | 9676 KB | Output is correct |
34 | Correct | 6 ms | 9676 KB | Output is correct |
35 | Correct | 6 ms | 9724 KB | Output is correct |
36 | Correct | 7 ms | 9624 KB | Output is correct |
37 | Correct | 6 ms | 9676 KB | Output is correct |
38 | Correct | 6 ms | 9676 KB | Output is correct |
39 | Correct | 7 ms | 9628 KB | Output is correct |
40 | Correct | 6 ms | 9668 KB | Output is correct |
41 | Correct | 6 ms | 9676 KB | Output is correct |
42 | Correct | 6 ms | 9736 KB | Output is correct |
43 | Correct | 7 ms | 9876 KB | Output is correct |
44 | Correct | 7 ms | 9964 KB | Output is correct |
45 | Correct | 202 ms | 35716 KB | Output is correct |
46 | Correct | 324 ms | 47588 KB | Output is correct |
47 | Correct | 308 ms | 47360 KB | Output is correct |
48 | Correct | 7 ms | 9728 KB | Output is correct |
49 | Correct | 6 ms | 9672 KB | Output is correct |
50 | Correct | 6 ms | 9676 KB | Output is correct |
51 | Correct | 7 ms | 9676 KB | Output is correct |
52 | Correct | 6 ms | 9676 KB | Output is correct |
53 | Correct | 7 ms | 9676 KB | Output is correct |
54 | Correct | 7 ms | 9676 KB | Output is correct |
55 | Correct | 396 ms | 61932 KB | Output is correct |
56 | Correct | 6 ms | 9676 KB | Output is correct |
57 | Correct | 9 ms | 10188 KB | Output is correct |
58 | Correct | 16 ms | 11416 KB | Output is correct |
59 | Correct | 12 ms | 10508 KB | Output is correct |
60 | Correct | 201 ms | 35804 KB | Output is correct |
61 | Correct | 262 ms | 44916 KB | Output is correct |
62 | Correct | 340 ms | 52932 KB | Output is correct |
63 | Correct | 482 ms | 61992 KB | Output is correct |
64 | Correct | 7 ms | 9676 KB | Output is correct |
65 | Correct | 7 ms | 9676 KB | Output is correct |
66 | Correct | 6 ms | 9600 KB | Output is correct |
67 | Correct | 487 ms | 74552 KB | Output is correct |
68 | Correct | 493 ms | 74552 KB | Output is correct |
69 | Correct | 482 ms | 74376 KB | Output is correct |
70 | Correct | 9 ms | 9940 KB | Output is correct |
71 | Correct | 10 ms | 10316 KB | Output is correct |
72 | Correct | 210 ms | 35212 KB | Output is correct |
73 | Correct | 305 ms | 47848 KB | Output is correct |
74 | Correct | 408 ms | 60612 KB | Output is correct |
75 | Correct | 431 ms | 66464 KB | Output is correct |
76 | Correct | 487 ms | 74608 KB | Output is correct |
77 | Correct | 8 ms | 10076 KB | Output is correct |
78 | Correct | 10 ms | 10384 KB | Output is correct |
79 | Correct | 235 ms | 36216 KB | Output is correct |
80 | Correct | 310 ms | 49652 KB | Output is correct |
81 | Correct | 423 ms | 62660 KB | Output is correct |
82 | Correct | 6 ms | 9676 KB | Output is correct |
83 | Correct | 7 ms | 9676 KB | Output is correct |
84 | Correct | 6 ms | 9676 KB | Output is correct |
85 | Correct | 341 ms | 63000 KB | Output is correct |
86 | Correct | 371 ms | 58292 KB | Output is correct |
87 | Correct | 363 ms | 58192 KB | Output is correct |
88 | Correct | 334 ms | 64916 KB | Output is correct |
89 | Correct | 114 ms | 20708 KB | Output is correct |
90 | Correct | 109 ms | 25028 KB | Output is correct |
91 | Correct | 111 ms | 25084 KB | Output is correct |
92 | Correct | 385 ms | 74576 KB | Output is correct |
93 | Correct | 416 ms | 74496 KB | Output is correct |
94 | Correct | 418 ms | 74552 KB | Output is correct |
95 | Correct | 397 ms | 74500 KB | Output is correct |
96 | Correct | 7 ms | 9676 KB | Output is correct |
97 | Correct | 31 ms | 13280 KB | Output is correct |
98 | Correct | 47 ms | 15200 KB | Output is correct |
99 | Correct | 384 ms | 62836 KB | Output is correct |
100 | Correct | 12 ms | 10512 KB | Output is correct |
101 | Correct | 34 ms | 13600 KB | Output is correct |
102 | Correct | 68 ms | 17128 KB | Output is correct |
103 | Correct | 176 ms | 29072 KB | Output is correct |
104 | Correct | 254 ms | 35964 KB | Output is correct |
105 | Correct | 308 ms | 43216 KB | Output is correct |
106 | Correct | 417 ms | 50408 KB | Output is correct |
107 | Correct | 460 ms | 57592 KB | Output is correct |
108 | Correct | 8 ms | 9676 KB | Output is correct |
109 | Correct | 6 ms | 9660 KB | Output is correct |
110 | Correct | 7 ms | 9676 KB | Output is correct |
111 | Correct | 7 ms | 9676 KB | Output is correct |
112 | Correct | 8 ms | 9676 KB | Output is correct |
113 | Correct | 6 ms | 9676 KB | Output is correct |
114 | Correct | 6 ms | 9676 KB | Output is correct |
115 | Correct | 6 ms | 9676 KB | Output is correct |
116 | Correct | 6 ms | 9676 KB | Output is correct |
117 | Correct | 6 ms | 9676 KB | Output is correct |
118 | Correct | 6 ms | 9676 KB | Output is correct |
119 | Correct | 7 ms | 9804 KB | Output is correct |
120 | Correct | 8 ms | 9980 KB | Output is correct |
121 | Correct | 210 ms | 35644 KB | Output is correct |
122 | Correct | 304 ms | 47332 KB | Output is correct |
123 | Correct | 314 ms | 47412 KB | Output is correct |
124 | Correct | 6 ms | 9676 KB | Output is correct |
125 | Correct | 7 ms | 9676 KB | Output is correct |
126 | Correct | 7 ms | 9676 KB | Output is correct |
127 | Correct | 498 ms | 74552 KB | Output is correct |
128 | Correct | 489 ms | 74632 KB | Output is correct |
129 | Correct | 489 ms | 74292 KB | Output is correct |
130 | Correct | 8 ms | 9932 KB | Output is correct |
131 | Correct | 10 ms | 10248 KB | Output is correct |
132 | Correct | 197 ms | 35216 KB | Output is correct |
133 | Correct | 319 ms | 47976 KB | Output is correct |
134 | Correct | 451 ms | 60516 KB | Output is correct |
135 | Correct | 441 ms | 74604 KB | Output is correct |
136 | Correct | 435 ms | 74636 KB | Output is correct |
137 | Correct | 374 ms | 62824 KB | Output is correct |
138 | Correct | 376 ms | 60088 KB | Output is correct |
139 | Correct | 367 ms | 62616 KB | Output is correct |
140 | Correct | 6 ms | 9676 KB | Output is correct |
141 | Correct | 79 ms | 17848 KB | Output is correct |
142 | Correct | 20 ms | 11212 KB | Output is correct |
143 | Correct | 45 ms | 15240 KB | Output is correct |
144 | Correct | 72 ms | 18696 KB | Output is correct |
145 | Correct | 225 ms | 35052 KB | Output is correct |
146 | Correct | 285 ms | 42004 KB | Output is correct |
147 | Correct | 347 ms | 47444 KB | Output is correct |
148 | Correct | 404 ms | 53688 KB | Output is correct |
149 | Correct | 456 ms | 59956 KB | Output is correct |
150 | Correct | 429 ms | 66496 KB | Output is correct |
151 | Correct | 494 ms | 74552 KB | Output is correct |
152 | Correct | 9 ms | 10060 KB | Output is correct |
153 | Correct | 13 ms | 10384 KB | Output is correct |
154 | Correct | 197 ms | 36228 KB | Output is correct |
155 | Correct | 308 ms | 49604 KB | Output is correct |
156 | Correct | 419 ms | 62824 KB | Output is correct |
157 | Correct | 6 ms | 9632 KB | Output is correct |
158 | Correct | 6 ms | 9696 KB | Output is correct |
159 | Correct | 7 ms | 9676 KB | Output is correct |
160 | Correct | 6 ms | 9624 KB | Output is correct |
161 | Correct | 392 ms | 55856 KB | Output is correct |
162 | Correct | 363 ms | 62884 KB | Output is correct |
163 | Correct | 332 ms | 64600 KB | Output is correct |
164 | Correct | 342 ms | 64600 KB | Output is correct |
165 | Correct | 357 ms | 58788 KB | Output is correct |
166 | Correct | 370 ms | 56600 KB | Output is correct |
167 | Incorrect | 601 ms | 20236 KB | Solution announced impossible, but it is possible. |
168 | Halted | 0 ms | 0 KB | - |