// Be Name Khoda //
//#pragma GCC optimize ("O3")
//#pragma GCC target("avx2")
//#pragma GCC optimize("unroll-loops,O3")
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define debug(x) cerr << "(" << (#x) << "): " << (x) << endl;
#define all(x) x.begin(), x.end()
#define MAX(x, y) ((x) > (y) ? (x) : (y))
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#define fi first
#define se second
#define pb push_back
#define mp make_pair
const int maxn5 = 1e6 + 10;
int n, q[maxn5], cnt[maxn5];
bool mark[maxn5];
vector <int> ret[2], ed[2], edg[maxn5];
vector <pair<int, int>> ver;
pair<pair <int, int>, pair<int, int>> adj[maxn5];
map <pair<int, int>, int> av;
void dfs(int v, int x, int y){
av.erase(mp(x, y));
if(av.find(mp(x - 2, y)) != av.end()){
int u = av[mp(x - 2, y)];
ed[0].pb(v);
ed[1].pb(u);
dfs(u, x - 2, y);
}
if(av.find(mp(x + 2, y)) != av.end()){
int u = av[mp(x + 2, y)];
ed[0].pb(v);
ed[1].pb(u);
dfs(u, x + 2, y);
}
if(av.find(mp(x, y - 2)) != av.end()){
int u = av[mp(x, y - 2)];
ed[0].pb(v);
ed[1].pb(u);
dfs(u, x, y - 2);
}
if(av.find(mp(x, y + 2)) != av.end()){
int u = av[mp(x, y + 2)];
ed[0].pb(v);
ed[1].pb(u);
dfs(u, x, y + 2);
}
}
void dfs2(int v){
mark[v] = true;
for(auto u : edg[v]) if(!mark[u]){
mark[u] = true;
//debug(v);
//debug(u);
ret[0][v] = ver[u - (n - 1)].fi;
ret[1][v] = ver[u - (n - 1)].se;
for(auto z : edg[u]) if(!mark[z])
dfs2(z);
return;
}
}
int construct_roads(std::vector<int> x, std::vector<int> y) {
n = x.size();
for(int i = 0; i < n; i++)
av[mp(x[i], y[i])] = i;
dfs(0, x[0], y[0]);
if(av.size())
return 0;
for(int i = 0; i < n - 1; i++){
if(x[ed[0][i]] == x[ed[1][i]]){
adj[i].fi = mp(x[ed[0][i]] - 1, (y[ed[0][i]] + y[ed[1][i]]) / 2);
adj[i].se = mp(x[ed[0][i]] + 1, (y[ed[0][i]] + y[ed[1][i]]) / 2);
}
else{
adj[i].fi = mp((x[ed[0][i]] + x[ed[1][i]]) / 2, y[ed[0][i]] - 1);
adj[i].se = mp((x[ed[0][i]] + x[ed[1][i]]) / 2, y[ed[0][i]] + 1);
}
ver.pb(adj[i].fi);
ver.pb(adj[i].se);
}
sort(all(ver));
ver.resize(unique(all(ver)) - ver.begin());
for(int i = 0; i < n - 1; i++){
int pt = lower_bound(all(ver), adj[i].fi) - ver.begin();
edg[i].pb(pt + n - 1);
pt = lower_bound(all(ver), adj[i].se) - ver.begin();
edg[i].pb(pt + n - 1);
edg[edg[i][0]].pb(i);
edg[edg[i][1]].pb(i);
cnt[edg[i][0]]++;
cnt[edg[i][1]]++;
}
/*
for(int i = 0; i < int(ver.size()) + n - 1; i++){
//debug(i);
for(auto u : edg[i])
cout << u << ' ';
cout << endl;
}
//*/
int l = 0, r = 0;
for(int i = 0; i < int(ver.size()); i++) if(edg[i + n - 1].size() == 1){
q[r++] = i + n - 1;
mark[i + n - 1] = true;
}
ret[0].resize(n - 1);
ret[1].resize(n - 1);
//debug(r);
while(l < r){
int v = q[l++];
for(auto u : edg[v]) if(!mark[u]){
mark[u] = true;
for(auto z : edg[u]){
cnt[z]--;
if(!mark[z] && cnt[z] == 1){
q[r++] = z;
mark[z] = true;
}
}
ret[0][u] = ver[v - (n - 1)].fi;
ret[1][u] = ver[v - (n - 1)].se;
}
}
//return 0;
//cout << ed[0].size() << ' ' << ed[1].size() << ' ' << ret[0].size() << ' ' << ret[1].size() << endl;
for(int i = 0; i < n - 1; i++) if(!mark[i])
dfs2(i);
build(ed[0], ed[1], ret[0], ret[1]);
return 1;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
23760 KB |
Output is correct |
2 |
Correct |
12 ms |
23764 KB |
Output is correct |
3 |
Correct |
12 ms |
23688 KB |
Output is correct |
4 |
Correct |
12 ms |
23744 KB |
Output is correct |
5 |
Correct |
12 ms |
23788 KB |
Output is correct |
6 |
Correct |
12 ms |
23764 KB |
Output is correct |
7 |
Correct |
12 ms |
23796 KB |
Output is correct |
8 |
Correct |
12 ms |
23800 KB |
Output is correct |
9 |
Correct |
139 ms |
57308 KB |
Output is correct |
10 |
Correct |
23 ms |
27396 KB |
Output is correct |
11 |
Correct |
80 ms |
42356 KB |
Output is correct |
12 |
Correct |
30 ms |
29180 KB |
Output is correct |
13 |
Correct |
36 ms |
31324 KB |
Output is correct |
14 |
Correct |
12 ms |
23892 KB |
Output is correct |
15 |
Correct |
13 ms |
23936 KB |
Output is correct |
16 |
Correct |
137 ms |
51752 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
23760 KB |
Output is correct |
2 |
Correct |
12 ms |
23764 KB |
Output is correct |
3 |
Correct |
12 ms |
23688 KB |
Output is correct |
4 |
Correct |
12 ms |
23744 KB |
Output is correct |
5 |
Correct |
12 ms |
23788 KB |
Output is correct |
6 |
Correct |
12 ms |
23764 KB |
Output is correct |
7 |
Correct |
12 ms |
23796 KB |
Output is correct |
8 |
Correct |
12 ms |
23800 KB |
Output is correct |
9 |
Correct |
139 ms |
57308 KB |
Output is correct |
10 |
Correct |
23 ms |
27396 KB |
Output is correct |
11 |
Correct |
80 ms |
42356 KB |
Output is correct |
12 |
Correct |
30 ms |
29180 KB |
Output is correct |
13 |
Correct |
36 ms |
31324 KB |
Output is correct |
14 |
Correct |
12 ms |
23892 KB |
Output is correct |
15 |
Correct |
13 ms |
23936 KB |
Output is correct |
16 |
Correct |
137 ms |
51752 KB |
Output is correct |
17 |
Correct |
12 ms |
23764 KB |
Output is correct |
18 |
Correct |
12 ms |
23796 KB |
Output is correct |
19 |
Correct |
12 ms |
23736 KB |
Output is correct |
20 |
Correct |
12 ms |
23704 KB |
Output is correct |
21 |
Correct |
11 ms |
23756 KB |
Output is correct |
22 |
Correct |
12 ms |
23760 KB |
Output is correct |
23 |
Correct |
286 ms |
81912 KB |
Output is correct |
24 |
Correct |
12 ms |
23764 KB |
Output is correct |
25 |
Correct |
14 ms |
24148 KB |
Output is correct |
26 |
Correct |
13 ms |
24148 KB |
Output is correct |
27 |
Correct |
13 ms |
24196 KB |
Output is correct |
28 |
Correct |
110 ms |
47624 KB |
Output is correct |
29 |
Correct |
171 ms |
56512 KB |
Output is correct |
30 |
Correct |
236 ms |
70368 KB |
Output is correct |
31 |
Correct |
321 ms |
79592 KB |
Output is correct |
32 |
Correct |
12 ms |
23764 KB |
Output is correct |
33 |
Correct |
12 ms |
23808 KB |
Output is correct |
34 |
Correct |
12 ms |
23796 KB |
Output is correct |
35 |
Correct |
12 ms |
23724 KB |
Output is correct |
36 |
Correct |
12 ms |
23764 KB |
Output is correct |
37 |
Correct |
12 ms |
23784 KB |
Output is correct |
38 |
Correct |
12 ms |
23808 KB |
Output is correct |
39 |
Correct |
14 ms |
23892 KB |
Output is correct |
40 |
Correct |
12 ms |
23800 KB |
Output is correct |
41 |
Correct |
14 ms |
23764 KB |
Output is correct |
42 |
Correct |
12 ms |
23800 KB |
Output is correct |
43 |
Correct |
12 ms |
24020 KB |
Output is correct |
44 |
Correct |
14 ms |
24020 KB |
Output is correct |
45 |
Correct |
143 ms |
50560 KB |
Output is correct |
46 |
Correct |
210 ms |
63304 KB |
Output is correct |
47 |
Correct |
234 ms |
62540 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
23760 KB |
Output is correct |
2 |
Correct |
12 ms |
23764 KB |
Output is correct |
3 |
Correct |
12 ms |
23688 KB |
Output is correct |
4 |
Correct |
12 ms |
23744 KB |
Output is correct |
5 |
Correct |
12 ms |
23788 KB |
Output is correct |
6 |
Correct |
12 ms |
23764 KB |
Output is correct |
7 |
Correct |
12 ms |
23796 KB |
Output is correct |
8 |
Correct |
12 ms |
23800 KB |
Output is correct |
9 |
Correct |
139 ms |
57308 KB |
Output is correct |
10 |
Correct |
23 ms |
27396 KB |
Output is correct |
11 |
Correct |
80 ms |
42356 KB |
Output is correct |
12 |
Correct |
30 ms |
29180 KB |
Output is correct |
13 |
Correct |
36 ms |
31324 KB |
Output is correct |
14 |
Correct |
12 ms |
23892 KB |
Output is correct |
15 |
Correct |
13 ms |
23936 KB |
Output is correct |
16 |
Correct |
137 ms |
51752 KB |
Output is correct |
17 |
Correct |
12 ms |
23764 KB |
Output is correct |
18 |
Correct |
12 ms |
23796 KB |
Output is correct |
19 |
Correct |
12 ms |
23736 KB |
Output is correct |
20 |
Correct |
12 ms |
23704 KB |
Output is correct |
21 |
Correct |
11 ms |
23756 KB |
Output is correct |
22 |
Correct |
12 ms |
23760 KB |
Output is correct |
23 |
Correct |
286 ms |
81912 KB |
Output is correct |
24 |
Correct |
12 ms |
23764 KB |
Output is correct |
25 |
Correct |
14 ms |
24148 KB |
Output is correct |
26 |
Correct |
13 ms |
24148 KB |
Output is correct |
27 |
Correct |
13 ms |
24196 KB |
Output is correct |
28 |
Correct |
110 ms |
47624 KB |
Output is correct |
29 |
Correct |
171 ms |
56512 KB |
Output is correct |
30 |
Correct |
236 ms |
70368 KB |
Output is correct |
31 |
Correct |
321 ms |
79592 KB |
Output is correct |
32 |
Correct |
12 ms |
23764 KB |
Output is correct |
33 |
Correct |
12 ms |
23808 KB |
Output is correct |
34 |
Correct |
12 ms |
23796 KB |
Output is correct |
35 |
Correct |
12 ms |
23724 KB |
Output is correct |
36 |
Correct |
12 ms |
23764 KB |
Output is correct |
37 |
Correct |
12 ms |
23784 KB |
Output is correct |
38 |
Correct |
12 ms |
23808 KB |
Output is correct |
39 |
Correct |
14 ms |
23892 KB |
Output is correct |
40 |
Correct |
12 ms |
23800 KB |
Output is correct |
41 |
Correct |
14 ms |
23764 KB |
Output is correct |
42 |
Correct |
12 ms |
23800 KB |
Output is correct |
43 |
Correct |
12 ms |
24020 KB |
Output is correct |
44 |
Correct |
14 ms |
24020 KB |
Output is correct |
45 |
Correct |
143 ms |
50560 KB |
Output is correct |
46 |
Correct |
210 ms |
63304 KB |
Output is correct |
47 |
Correct |
234 ms |
62540 KB |
Output is correct |
48 |
Correct |
12 ms |
23764 KB |
Output is correct |
49 |
Correct |
12 ms |
23764 KB |
Output is correct |
50 |
Correct |
12 ms |
23764 KB |
Output is correct |
51 |
Correct |
12 ms |
23772 KB |
Output is correct |
52 |
Correct |
12 ms |
23720 KB |
Output is correct |
53 |
Correct |
13 ms |
23800 KB |
Output is correct |
54 |
Correct |
12 ms |
23796 KB |
Output is correct |
55 |
Correct |
295 ms |
77532 KB |
Output is correct |
56 |
Correct |
14 ms |
23800 KB |
Output is correct |
57 |
Correct |
14 ms |
24324 KB |
Output is correct |
58 |
Correct |
18 ms |
25556 KB |
Output is correct |
59 |
Correct |
17 ms |
24832 KB |
Output is correct |
60 |
Correct |
142 ms |
53056 KB |
Output is correct |
61 |
Correct |
197 ms |
62448 KB |
Output is correct |
62 |
Correct |
238 ms |
69700 KB |
Output is correct |
63 |
Correct |
292 ms |
76620 KB |
Output is correct |
64 |
Correct |
12 ms |
23764 KB |
Output is correct |
65 |
Correct |
11 ms |
23700 KB |
Output is correct |
66 |
Correct |
12 ms |
23764 KB |
Output is correct |
67 |
Correct |
294 ms |
85516 KB |
Output is correct |
68 |
Correct |
279 ms |
84952 KB |
Output is correct |
69 |
Correct |
292 ms |
88452 KB |
Output is correct |
70 |
Correct |
14 ms |
24148 KB |
Output is correct |
71 |
Correct |
15 ms |
24592 KB |
Output is correct |
72 |
Correct |
155 ms |
47112 KB |
Output is correct |
73 |
Correct |
239 ms |
61368 KB |
Output is correct |
74 |
Correct |
338 ms |
70952 KB |
Output is correct |
75 |
Correct |
314 ms |
82404 KB |
Output is correct |
76 |
Correct |
283 ms |
92728 KB |
Output is correct |
77 |
Correct |
13 ms |
24404 KB |
Output is correct |
78 |
Correct |
15 ms |
24860 KB |
Output is correct |
79 |
Correct |
172 ms |
49116 KB |
Output is correct |
80 |
Correct |
239 ms |
62668 KB |
Output is correct |
81 |
Correct |
344 ms |
76004 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
23760 KB |
Output is correct |
2 |
Correct |
12 ms |
23764 KB |
Output is correct |
3 |
Correct |
12 ms |
23688 KB |
Output is correct |
4 |
Correct |
12 ms |
23744 KB |
Output is correct |
5 |
Correct |
12 ms |
23788 KB |
Output is correct |
6 |
Correct |
12 ms |
23764 KB |
Output is correct |
7 |
Correct |
12 ms |
23796 KB |
Output is correct |
8 |
Correct |
12 ms |
23800 KB |
Output is correct |
9 |
Correct |
139 ms |
57308 KB |
Output is correct |
10 |
Correct |
23 ms |
27396 KB |
Output is correct |
11 |
Correct |
80 ms |
42356 KB |
Output is correct |
12 |
Correct |
30 ms |
29180 KB |
Output is correct |
13 |
Correct |
36 ms |
31324 KB |
Output is correct |
14 |
Correct |
12 ms |
23892 KB |
Output is correct |
15 |
Correct |
13 ms |
23936 KB |
Output is correct |
16 |
Correct |
137 ms |
51752 KB |
Output is correct |
17 |
Correct |
10 ms |
23764 KB |
Output is correct |
18 |
Correct |
12 ms |
23800 KB |
Output is correct |
19 |
Correct |
11 ms |
23804 KB |
Output is correct |
20 |
Correct |
284 ms |
85532 KB |
Output is correct |
21 |
Correct |
330 ms |
80212 KB |
Output is correct |
22 |
Correct |
328 ms |
77464 KB |
Output is correct |
23 |
Correct |
262 ms |
74268 KB |
Output is correct |
24 |
Correct |
109 ms |
41164 KB |
Output is correct |
25 |
Correct |
120 ms |
41080 KB |
Output is correct |
26 |
Correct |
128 ms |
41088 KB |
Output is correct |
27 |
Correct |
287 ms |
67768 KB |
Output is correct |
28 |
Correct |
286 ms |
67856 KB |
Output is correct |
29 |
Correct |
426 ms |
67796 KB |
Output is correct |
30 |
Correct |
434 ms |
66880 KB |
Output is correct |
31 |
Correct |
16 ms |
23768 KB |
Output is correct |
32 |
Correct |
33 ms |
27540 KB |
Output is correct |
33 |
Correct |
54 ms |
32768 KB |
Output is correct |
34 |
Correct |
286 ms |
80644 KB |
Output is correct |
35 |
Correct |
17 ms |
24788 KB |
Output is correct |
36 |
Correct |
40 ms |
28416 KB |
Output is correct |
37 |
Correct |
65 ms |
32960 KB |
Output is correct |
38 |
Correct |
140 ms |
39004 KB |
Output is correct |
39 |
Correct |
200 ms |
44880 KB |
Output is correct |
40 |
Correct |
249 ms |
50196 KB |
Output is correct |
41 |
Correct |
323 ms |
55948 KB |
Output is correct |
42 |
Correct |
373 ms |
62644 KB |
Output is correct |
43 |
Correct |
13 ms |
23764 KB |
Output is correct |
44 |
Correct |
12 ms |
23780 KB |
Output is correct |
45 |
Correct |
12 ms |
23796 KB |
Output is correct |
46 |
Correct |
12 ms |
23796 KB |
Output is correct |
47 |
Correct |
12 ms |
23804 KB |
Output is correct |
48 |
Correct |
12 ms |
23804 KB |
Output is correct |
49 |
Correct |
12 ms |
23804 KB |
Output is correct |
50 |
Correct |
12 ms |
23700 KB |
Output is correct |
51 |
Correct |
12 ms |
23796 KB |
Output is correct |
52 |
Correct |
12 ms |
23764 KB |
Output is correct |
53 |
Correct |
12 ms |
23704 KB |
Output is correct |
54 |
Correct |
13 ms |
24036 KB |
Output is correct |
55 |
Correct |
15 ms |
24020 KB |
Output is correct |
56 |
Correct |
148 ms |
50548 KB |
Output is correct |
57 |
Correct |
216 ms |
63288 KB |
Output is correct |
58 |
Correct |
213 ms |
62520 KB |
Output is correct |
59 |
Correct |
12 ms |
23764 KB |
Output is correct |
60 |
Correct |
12 ms |
23764 KB |
Output is correct |
61 |
Correct |
12 ms |
23764 KB |
Output is correct |
62 |
Correct |
284 ms |
85524 KB |
Output is correct |
63 |
Correct |
286 ms |
84988 KB |
Output is correct |
64 |
Correct |
293 ms |
88356 KB |
Output is correct |
65 |
Correct |
14 ms |
24148 KB |
Output is correct |
66 |
Correct |
15 ms |
24548 KB |
Output is correct |
67 |
Correct |
160 ms |
47136 KB |
Output is correct |
68 |
Correct |
235 ms |
61368 KB |
Output is correct |
69 |
Correct |
350 ms |
71008 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
23760 KB |
Output is correct |
2 |
Correct |
12 ms |
23764 KB |
Output is correct |
3 |
Correct |
12 ms |
23688 KB |
Output is correct |
4 |
Correct |
12 ms |
23744 KB |
Output is correct |
5 |
Correct |
12 ms |
23788 KB |
Output is correct |
6 |
Correct |
12 ms |
23764 KB |
Output is correct |
7 |
Correct |
12 ms |
23796 KB |
Output is correct |
8 |
Correct |
12 ms |
23800 KB |
Output is correct |
9 |
Correct |
139 ms |
57308 KB |
Output is correct |
10 |
Correct |
23 ms |
27396 KB |
Output is correct |
11 |
Correct |
80 ms |
42356 KB |
Output is correct |
12 |
Correct |
30 ms |
29180 KB |
Output is correct |
13 |
Correct |
36 ms |
31324 KB |
Output is correct |
14 |
Correct |
12 ms |
23892 KB |
Output is correct |
15 |
Correct |
13 ms |
23936 KB |
Output is correct |
16 |
Correct |
137 ms |
51752 KB |
Output is correct |
17 |
Correct |
311 ms |
93188 KB |
Output is correct |
18 |
Correct |
312 ms |
90976 KB |
Output is correct |
19 |
Correct |
313 ms |
85632 KB |
Output is correct |
20 |
Correct |
418 ms |
74656 KB |
Output is correct |
21 |
Correct |
349 ms |
70668 KB |
Output is correct |
22 |
Correct |
12 ms |
23764 KB |
Output is correct |
23 |
Correct |
61 ms |
31188 KB |
Output is correct |
24 |
Correct |
24 ms |
26240 KB |
Output is correct |
25 |
Correct |
49 ms |
30756 KB |
Output is correct |
26 |
Correct |
76 ms |
35404 KB |
Output is correct |
27 |
Correct |
192 ms |
48184 KB |
Output is correct |
28 |
Correct |
239 ms |
54760 KB |
Output is correct |
29 |
Correct |
290 ms |
60784 KB |
Output is correct |
30 |
Correct |
352 ms |
68248 KB |
Output is correct |
31 |
Correct |
409 ms |
74072 KB |
Output is correct |
32 |
Correct |
312 ms |
82360 KB |
Output is correct |
33 |
Correct |
284 ms |
92728 KB |
Output is correct |
34 |
Correct |
14 ms |
24364 KB |
Output is correct |
35 |
Correct |
15 ms |
24916 KB |
Output is correct |
36 |
Correct |
153 ms |
49012 KB |
Output is correct |
37 |
Correct |
241 ms |
62696 KB |
Output is correct |
38 |
Correct |
334 ms |
76004 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
12 ms |
23760 KB |
Output is correct |
2 |
Correct |
12 ms |
23764 KB |
Output is correct |
3 |
Correct |
12 ms |
23688 KB |
Output is correct |
4 |
Correct |
12 ms |
23744 KB |
Output is correct |
5 |
Correct |
12 ms |
23788 KB |
Output is correct |
6 |
Correct |
12 ms |
23764 KB |
Output is correct |
7 |
Correct |
12 ms |
23796 KB |
Output is correct |
8 |
Correct |
12 ms |
23800 KB |
Output is correct |
9 |
Correct |
139 ms |
57308 KB |
Output is correct |
10 |
Correct |
23 ms |
27396 KB |
Output is correct |
11 |
Correct |
80 ms |
42356 KB |
Output is correct |
12 |
Correct |
30 ms |
29180 KB |
Output is correct |
13 |
Correct |
36 ms |
31324 KB |
Output is correct |
14 |
Correct |
12 ms |
23892 KB |
Output is correct |
15 |
Correct |
13 ms |
23936 KB |
Output is correct |
16 |
Correct |
137 ms |
51752 KB |
Output is correct |
17 |
Correct |
12 ms |
23764 KB |
Output is correct |
18 |
Correct |
12 ms |
23796 KB |
Output is correct |
19 |
Correct |
12 ms |
23736 KB |
Output is correct |
20 |
Correct |
12 ms |
23704 KB |
Output is correct |
21 |
Correct |
11 ms |
23756 KB |
Output is correct |
22 |
Correct |
12 ms |
23760 KB |
Output is correct |
23 |
Correct |
286 ms |
81912 KB |
Output is correct |
24 |
Correct |
12 ms |
23764 KB |
Output is correct |
25 |
Correct |
14 ms |
24148 KB |
Output is correct |
26 |
Correct |
13 ms |
24148 KB |
Output is correct |
27 |
Correct |
13 ms |
24196 KB |
Output is correct |
28 |
Correct |
110 ms |
47624 KB |
Output is correct |
29 |
Correct |
171 ms |
56512 KB |
Output is correct |
30 |
Correct |
236 ms |
70368 KB |
Output is correct |
31 |
Correct |
321 ms |
79592 KB |
Output is correct |
32 |
Correct |
12 ms |
23764 KB |
Output is correct |
33 |
Correct |
12 ms |
23808 KB |
Output is correct |
34 |
Correct |
12 ms |
23796 KB |
Output is correct |
35 |
Correct |
12 ms |
23724 KB |
Output is correct |
36 |
Correct |
12 ms |
23764 KB |
Output is correct |
37 |
Correct |
12 ms |
23784 KB |
Output is correct |
38 |
Correct |
12 ms |
23808 KB |
Output is correct |
39 |
Correct |
14 ms |
23892 KB |
Output is correct |
40 |
Correct |
12 ms |
23800 KB |
Output is correct |
41 |
Correct |
14 ms |
23764 KB |
Output is correct |
42 |
Correct |
12 ms |
23800 KB |
Output is correct |
43 |
Correct |
12 ms |
24020 KB |
Output is correct |
44 |
Correct |
14 ms |
24020 KB |
Output is correct |
45 |
Correct |
143 ms |
50560 KB |
Output is correct |
46 |
Correct |
210 ms |
63304 KB |
Output is correct |
47 |
Correct |
234 ms |
62540 KB |
Output is correct |
48 |
Correct |
12 ms |
23764 KB |
Output is correct |
49 |
Correct |
12 ms |
23764 KB |
Output is correct |
50 |
Correct |
12 ms |
23764 KB |
Output is correct |
51 |
Correct |
12 ms |
23772 KB |
Output is correct |
52 |
Correct |
12 ms |
23720 KB |
Output is correct |
53 |
Correct |
13 ms |
23800 KB |
Output is correct |
54 |
Correct |
12 ms |
23796 KB |
Output is correct |
55 |
Correct |
295 ms |
77532 KB |
Output is correct |
56 |
Correct |
14 ms |
23800 KB |
Output is correct |
57 |
Correct |
14 ms |
24324 KB |
Output is correct |
58 |
Correct |
18 ms |
25556 KB |
Output is correct |
59 |
Correct |
17 ms |
24832 KB |
Output is correct |
60 |
Correct |
142 ms |
53056 KB |
Output is correct |
61 |
Correct |
197 ms |
62448 KB |
Output is correct |
62 |
Correct |
238 ms |
69700 KB |
Output is correct |
63 |
Correct |
292 ms |
76620 KB |
Output is correct |
64 |
Correct |
12 ms |
23764 KB |
Output is correct |
65 |
Correct |
11 ms |
23700 KB |
Output is correct |
66 |
Correct |
12 ms |
23764 KB |
Output is correct |
67 |
Correct |
294 ms |
85516 KB |
Output is correct |
68 |
Correct |
279 ms |
84952 KB |
Output is correct |
69 |
Correct |
292 ms |
88452 KB |
Output is correct |
70 |
Correct |
14 ms |
24148 KB |
Output is correct |
71 |
Correct |
15 ms |
24592 KB |
Output is correct |
72 |
Correct |
155 ms |
47112 KB |
Output is correct |
73 |
Correct |
239 ms |
61368 KB |
Output is correct |
74 |
Correct |
338 ms |
70952 KB |
Output is correct |
75 |
Correct |
314 ms |
82404 KB |
Output is correct |
76 |
Correct |
283 ms |
92728 KB |
Output is correct |
77 |
Correct |
13 ms |
24404 KB |
Output is correct |
78 |
Correct |
15 ms |
24860 KB |
Output is correct |
79 |
Correct |
172 ms |
49116 KB |
Output is correct |
80 |
Correct |
239 ms |
62668 KB |
Output is correct |
81 |
Correct |
344 ms |
76004 KB |
Output is correct |
82 |
Correct |
10 ms |
23764 KB |
Output is correct |
83 |
Correct |
12 ms |
23800 KB |
Output is correct |
84 |
Correct |
11 ms |
23804 KB |
Output is correct |
85 |
Correct |
284 ms |
85532 KB |
Output is correct |
86 |
Correct |
330 ms |
80212 KB |
Output is correct |
87 |
Correct |
328 ms |
77464 KB |
Output is correct |
88 |
Correct |
262 ms |
74268 KB |
Output is correct |
89 |
Correct |
109 ms |
41164 KB |
Output is correct |
90 |
Correct |
120 ms |
41080 KB |
Output is correct |
91 |
Correct |
128 ms |
41088 KB |
Output is correct |
92 |
Correct |
287 ms |
67768 KB |
Output is correct |
93 |
Correct |
286 ms |
67856 KB |
Output is correct |
94 |
Correct |
426 ms |
67796 KB |
Output is correct |
95 |
Correct |
434 ms |
66880 KB |
Output is correct |
96 |
Correct |
16 ms |
23768 KB |
Output is correct |
97 |
Correct |
33 ms |
27540 KB |
Output is correct |
98 |
Correct |
54 ms |
32768 KB |
Output is correct |
99 |
Correct |
286 ms |
80644 KB |
Output is correct |
100 |
Correct |
17 ms |
24788 KB |
Output is correct |
101 |
Correct |
40 ms |
28416 KB |
Output is correct |
102 |
Correct |
65 ms |
32960 KB |
Output is correct |
103 |
Correct |
140 ms |
39004 KB |
Output is correct |
104 |
Correct |
200 ms |
44880 KB |
Output is correct |
105 |
Correct |
249 ms |
50196 KB |
Output is correct |
106 |
Correct |
323 ms |
55948 KB |
Output is correct |
107 |
Correct |
373 ms |
62644 KB |
Output is correct |
108 |
Correct |
13 ms |
23764 KB |
Output is correct |
109 |
Correct |
12 ms |
23780 KB |
Output is correct |
110 |
Correct |
12 ms |
23796 KB |
Output is correct |
111 |
Correct |
12 ms |
23796 KB |
Output is correct |
112 |
Correct |
12 ms |
23804 KB |
Output is correct |
113 |
Correct |
12 ms |
23804 KB |
Output is correct |
114 |
Correct |
12 ms |
23804 KB |
Output is correct |
115 |
Correct |
12 ms |
23700 KB |
Output is correct |
116 |
Correct |
12 ms |
23796 KB |
Output is correct |
117 |
Correct |
12 ms |
23764 KB |
Output is correct |
118 |
Correct |
12 ms |
23704 KB |
Output is correct |
119 |
Correct |
13 ms |
24036 KB |
Output is correct |
120 |
Correct |
15 ms |
24020 KB |
Output is correct |
121 |
Correct |
148 ms |
50548 KB |
Output is correct |
122 |
Correct |
216 ms |
63288 KB |
Output is correct |
123 |
Correct |
213 ms |
62520 KB |
Output is correct |
124 |
Correct |
12 ms |
23764 KB |
Output is correct |
125 |
Correct |
12 ms |
23764 KB |
Output is correct |
126 |
Correct |
12 ms |
23764 KB |
Output is correct |
127 |
Correct |
284 ms |
85524 KB |
Output is correct |
128 |
Correct |
286 ms |
84988 KB |
Output is correct |
129 |
Correct |
293 ms |
88356 KB |
Output is correct |
130 |
Correct |
14 ms |
24148 KB |
Output is correct |
131 |
Correct |
15 ms |
24548 KB |
Output is correct |
132 |
Correct |
160 ms |
47136 KB |
Output is correct |
133 |
Correct |
235 ms |
61368 KB |
Output is correct |
134 |
Correct |
350 ms |
71008 KB |
Output is correct |
135 |
Correct |
311 ms |
93188 KB |
Output is correct |
136 |
Correct |
312 ms |
90976 KB |
Output is correct |
137 |
Correct |
313 ms |
85632 KB |
Output is correct |
138 |
Correct |
418 ms |
74656 KB |
Output is correct |
139 |
Correct |
349 ms |
70668 KB |
Output is correct |
140 |
Correct |
12 ms |
23764 KB |
Output is correct |
141 |
Correct |
61 ms |
31188 KB |
Output is correct |
142 |
Correct |
24 ms |
26240 KB |
Output is correct |
143 |
Correct |
49 ms |
30756 KB |
Output is correct |
144 |
Correct |
76 ms |
35404 KB |
Output is correct |
145 |
Correct |
192 ms |
48184 KB |
Output is correct |
146 |
Correct |
239 ms |
54760 KB |
Output is correct |
147 |
Correct |
290 ms |
60784 KB |
Output is correct |
148 |
Correct |
352 ms |
68248 KB |
Output is correct |
149 |
Correct |
409 ms |
74072 KB |
Output is correct |
150 |
Correct |
312 ms |
82360 KB |
Output is correct |
151 |
Correct |
284 ms |
92728 KB |
Output is correct |
152 |
Correct |
14 ms |
24364 KB |
Output is correct |
153 |
Correct |
15 ms |
24916 KB |
Output is correct |
154 |
Correct |
153 ms |
49012 KB |
Output is correct |
155 |
Correct |
241 ms |
62696 KB |
Output is correct |
156 |
Correct |
334 ms |
76004 KB |
Output is correct |
157 |
Correct |
11 ms |
23764 KB |
Output is correct |
158 |
Correct |
13 ms |
23808 KB |
Output is correct |
159 |
Correct |
12 ms |
23804 KB |
Output is correct |
160 |
Correct |
11 ms |
23796 KB |
Output is correct |
161 |
Correct |
394 ms |
74736 KB |
Output is correct |
162 |
Correct |
265 ms |
76944 KB |
Output is correct |
163 |
Correct |
290 ms |
71192 KB |
Output is correct |
164 |
Correct |
292 ms |
69748 KB |
Output is correct |
165 |
Correct |
352 ms |
81924 KB |
Output is correct |
166 |
Correct |
352 ms |
84264 KB |
Output is correct |
167 |
Incorrect |
90 ms |
34032 KB |
a[4127] = 0 is not an odd integer |
168 |
Halted |
0 ms |
0 KB |
- |