Submission #814092

# Submission time Handle Problem Language Result Execution time Memory
814092 2023-08-08T05:28:48 Z LittleCube Fountain Parks (IOI21_parks) C++17
70 / 100
797 ms 73396 KB
#include "parks.h"
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define F first
#define S second
using namespace std;

map<pii, int> id;
int n, m, deg[200000], dsu[200000], vis[400001], use[400001];
pii pos[400001];
vector<pair<pii, pii>> edge;
vector<pii> E[400001];
vector<int> ru, rv, bx, by;

int find(int k)
{
    return dsu[k] == k ? k : dsu[k] = find(dsu[k]);
}

void merge(int x, int y)
{
    x = find(x), y = find(y);
    dsu[x] = y;
}

int node(int x, int y)
{
    if (!id[pii(x, y)])
    {
        id[pii(x, y)] = ++m;
        pos[m] = pii(x, y);
    }
    return id[pii(x, y)];
}

void dfs(int u, int p)
{
    vis[u] = 1;
    int flag = 1;
    for (auto [v, i] : E[u])
        if(!vis[v])
            dfs(v, u);
    for (auto [v, i] : E[u])
        if(v != p && !use[i] && flag)
        {
            flag--;
            use[i] = 1;
            tie(bx[i], by[i]) = pos[u];
        }
    for (auto [v, i] : E[u])
        if(!use[i] && flag)
        {
            flag--;
            use[i] = 1;
            tie(bx[i], by[i]) = pos[u];
        }
}

int construct_roads(vector<int> x, vector<int> y)
{
    n = x.size();
    for (int i = 0; i < n; i++)
        dsu[i] = i;
    for (int i = 0; i < n; i++)
        id[pii(x[i], y[i])] = i + 1;

    bx.resize(n - 1), by.resize(n - 1);
    for (int i = 0; i < n; i++)
    {
        if (id.find(pii(x[i], y[i] - 2)) != id.end())
        {
            int j = id[pii(x[i], y[i] - 2)] - 1;
            merge(i, j);
            ru.emplace_back(i);
            rv.emplace_back(j);
        }
        if (id.find(pii(x[i] - 2, y[i])) != id.end())
        {
            int j = id[pii(x[i] - 2, y[i])] - 1;
            edge.emplace_back(make_pair(pii(x[i] - 1, y[i]), pii(i, j)));
        }
    }
    sort(edge.begin(), edge.end(), [&](pair<pii, pii> f, pair<pii, pii> s)
         {
        pii p = f.F, q = s.F;
        if(p.F != q.F)
            return p.F < q.F;
        if(p.F % 4 == 1)
            return p.S < q.S;
        return p.S > q.S; });
    for (auto [_, p] : edge)
    {
        auto [u, v] = p;
        if (find(u) != find(v))
        {
            ru.emplace_back(u);
            rv.emplace_back(v);
            merge(u, v);
        }
    }
    if (ru.size() < n - 1)
        return 0;
    id.clear();
    for (int i = 0; i < n - 1; i++)
    {
        int u = ru[i], v = rv[i];
        if (x[u] == x[v])
        {
            int a = node(x[u] - 1, (y[u] + y[v]) / 2),
                b = node(x[u] + 1, (y[u] + y[v]) / 2);
            E[a].emplace_back(pii(b, i));
            E[b].emplace_back(pii(a, i));
        }
        else
        {
            int a = node((x[u] + x[v]) / 2, y[u] + 1),
                b = node((x[u] + x[v]) / 2, y[u] - 1);
            E[a].emplace_back(pii(b, i));
            E[b].emplace_back(pii(a, i));
        }
    }
    for (int i = 1; i <= m; i++)
        if(!vis[i])
            dfs(i, i);
    build(ru, rv, bx, by);
    return 1;
}

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:103:19: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
  103 |     if (ru.size() < n - 1)
      |         ~~~~~~~~~~^~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 4 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 4 ms 9684 KB Output is correct
4 Correct 4 ms 9684 KB Output is correct
5 Correct 4 ms 9684 KB Output is correct
6 Correct 4 ms 9684 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 4 ms 9684 KB Output is correct
9 Correct 232 ms 37844 KB Output is correct
10 Correct 17 ms 12628 KB Output is correct
11 Correct 90 ms 24884 KB Output is correct
12 Correct 26 ms 14140 KB Output is correct
13 Correct 29 ms 14156 KB Output is correct
14 Correct 4 ms 9684 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 276 ms 37884 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 4 ms 9684 KB Output is correct
4 Correct 4 ms 9684 KB Output is correct
5 Correct 4 ms 9684 KB Output is correct
6 Correct 4 ms 9684 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 4 ms 9684 KB Output is correct
9 Correct 232 ms 37844 KB Output is correct
10 Correct 17 ms 12628 KB Output is correct
11 Correct 90 ms 24884 KB Output is correct
12 Correct 26 ms 14140 KB Output is correct
13 Correct 29 ms 14156 KB Output is correct
14 Correct 4 ms 9684 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 276 ms 37884 KB Output is correct
17 Correct 4 ms 9684 KB Output is correct
18 Correct 4 ms 9684 KB Output is correct
19 Correct 6 ms 9684 KB Output is correct
20 Correct 6 ms 9684 KB Output is correct
21 Correct 4 ms 9684 KB Output is correct
22 Correct 4 ms 9684 KB Output is correct
23 Correct 797 ms 59740 KB Output is correct
24 Correct 4 ms 9684 KB Output is correct
25 Correct 6 ms 9972 KB Output is correct
26 Correct 7 ms 10084 KB Output is correct
27 Correct 7 ms 10100 KB Output is correct
28 Correct 206 ms 30132 KB Output is correct
29 Correct 408 ms 40668 KB Output is correct
30 Correct 580 ms 51092 KB Output is correct
31 Correct 733 ms 61720 KB Output is correct
32 Correct 4 ms 9704 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 4 ms 9684 KB Output is correct
35 Correct 4 ms 9612 KB Output is correct
36 Correct 4 ms 9684 KB Output is correct
37 Correct 4 ms 9684 KB Output is correct
38 Correct 5 ms 9684 KB Output is correct
39 Correct 5 ms 9712 KB Output is correct
40 Correct 4 ms 9696 KB Output is correct
41 Correct 4 ms 9648 KB Output is correct
42 Correct 4 ms 9684 KB Output is correct
43 Correct 5 ms 9836 KB Output is correct
44 Correct 8 ms 9976 KB Output is correct
45 Correct 230 ms 32604 KB Output is correct
46 Correct 375 ms 43168 KB Output is correct
47 Correct 394 ms 42916 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 4 ms 9684 KB Output is correct
4 Correct 4 ms 9684 KB Output is correct
5 Correct 4 ms 9684 KB Output is correct
6 Correct 4 ms 9684 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 4 ms 9684 KB Output is correct
9 Correct 232 ms 37844 KB Output is correct
10 Correct 17 ms 12628 KB Output is correct
11 Correct 90 ms 24884 KB Output is correct
12 Correct 26 ms 14140 KB Output is correct
13 Correct 29 ms 14156 KB Output is correct
14 Correct 4 ms 9684 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 276 ms 37884 KB Output is correct
17 Correct 4 ms 9684 KB Output is correct
18 Correct 4 ms 9684 KB Output is correct
19 Correct 6 ms 9684 KB Output is correct
20 Correct 6 ms 9684 KB Output is correct
21 Correct 4 ms 9684 KB Output is correct
22 Correct 4 ms 9684 KB Output is correct
23 Correct 797 ms 59740 KB Output is correct
24 Correct 4 ms 9684 KB Output is correct
25 Correct 6 ms 9972 KB Output is correct
26 Correct 7 ms 10084 KB Output is correct
27 Correct 7 ms 10100 KB Output is correct
28 Correct 206 ms 30132 KB Output is correct
29 Correct 408 ms 40668 KB Output is correct
30 Correct 580 ms 51092 KB Output is correct
31 Correct 733 ms 61720 KB Output is correct
32 Correct 4 ms 9704 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 4 ms 9684 KB Output is correct
35 Correct 4 ms 9612 KB Output is correct
36 Correct 4 ms 9684 KB Output is correct
37 Correct 4 ms 9684 KB Output is correct
38 Correct 5 ms 9684 KB Output is correct
39 Correct 5 ms 9712 KB Output is correct
40 Correct 4 ms 9696 KB Output is correct
41 Correct 4 ms 9648 KB Output is correct
42 Correct 4 ms 9684 KB Output is correct
43 Correct 5 ms 9836 KB Output is correct
44 Correct 8 ms 9976 KB Output is correct
45 Correct 230 ms 32604 KB Output is correct
46 Correct 375 ms 43168 KB Output is correct
47 Correct 394 ms 42916 KB Output is correct
48 Correct 4 ms 9684 KB Output is correct
49 Correct 4 ms 9684 KB Output is correct
50 Correct 4 ms 9684 KB Output is correct
51 Correct 4 ms 9684 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 4 ms 9704 KB Output is correct
54 Correct 5 ms 9684 KB Output is correct
55 Correct 679 ms 58332 KB Output is correct
56 Correct 4 ms 9684 KB Output is correct
57 Correct 7 ms 10068 KB Output is correct
58 Correct 23 ms 11084 KB Output is correct
59 Correct 12 ms 10996 KB Output is correct
60 Correct 264 ms 34000 KB Output is correct
61 Correct 383 ms 42308 KB Output is correct
62 Correct 492 ms 50384 KB Output is correct
63 Correct 675 ms 58388 KB Output is correct
64 Correct 4 ms 9684 KB Output is correct
65 Correct 5 ms 9684 KB Output is correct
66 Correct 5 ms 9684 KB Output is correct
67 Correct 563 ms 67672 KB Output is correct
68 Correct 554 ms 67672 KB Output is correct
69 Correct 563 ms 67428 KB Output is correct
70 Correct 7 ms 10152 KB Output is correct
71 Correct 9 ms 10612 KB Output is correct
72 Correct 229 ms 33420 KB Output is correct
73 Correct 396 ms 43456 KB Output is correct
74 Correct 610 ms 57452 KB Output is correct
75 Correct 587 ms 63244 KB Output is correct
76 Correct 603 ms 67728 KB Output is correct
77 Correct 8 ms 10228 KB Output is correct
78 Correct 13 ms 10776 KB Output is correct
79 Correct 282 ms 34452 KB Output is correct
80 Correct 390 ms 45084 KB Output is correct
81 Correct 668 ms 59832 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 4 ms 9684 KB Output is correct
4 Correct 4 ms 9684 KB Output is correct
5 Correct 4 ms 9684 KB Output is correct
6 Correct 4 ms 9684 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 4 ms 9684 KB Output is correct
9 Correct 232 ms 37844 KB Output is correct
10 Correct 17 ms 12628 KB Output is correct
11 Correct 90 ms 24884 KB Output is correct
12 Correct 26 ms 14140 KB Output is correct
13 Correct 29 ms 14156 KB Output is correct
14 Correct 4 ms 9684 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 276 ms 37884 KB Output is correct
17 Correct 6 ms 9684 KB Output is correct
18 Correct 6 ms 9684 KB Output is correct
19 Correct 4 ms 9684 KB Output is correct
20 Correct 502 ms 65332 KB Output is correct
21 Correct 514 ms 58908 KB Output is correct
22 Correct 550 ms 57928 KB Output is correct
23 Correct 399 ms 64056 KB Output is correct
24 Correct 214 ms 29324 KB Output is correct
25 Correct 258 ms 35400 KB Output is correct
26 Correct 239 ms 31068 KB Output is correct
27 Correct 588 ms 67548 KB Output is correct
28 Correct 632 ms 67644 KB Output is correct
29 Correct 447 ms 73372 KB Output is correct
30 Correct 506 ms 73396 KB Output is correct
31 Correct 4 ms 9684 KB Output is correct
32 Correct 33 ms 13248 KB Output is correct
33 Correct 78 ms 19932 KB Output is correct
34 Correct 486 ms 65372 KB Output is correct
35 Correct 11 ms 10992 KB Output is correct
36 Correct 51 ms 15632 KB Output is correct
37 Correct 107 ms 21896 KB Output is correct
38 Correct 178 ms 28564 KB Output is correct
39 Correct 250 ms 35456 KB Output is correct
40 Correct 359 ms 43024 KB Output is correct
41 Correct 469 ms 49600 KB Output is correct
42 Correct 517 ms 56932 KB Output is correct
43 Correct 6 ms 9684 KB Output is correct
44 Correct 5 ms 9704 KB Output is correct
45 Correct 5 ms 9684 KB Output is correct
46 Correct 4 ms 9700 KB Output is correct
47 Correct 4 ms 9684 KB Output is correct
48 Correct 4 ms 9684 KB Output is correct
49 Correct 5 ms 9684 KB Output is correct
50 Correct 5 ms 9684 KB Output is correct
51 Correct 5 ms 9684 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 4 ms 9684 KB Output is correct
54 Correct 6 ms 9940 KB Output is correct
55 Correct 6 ms 9972 KB Output is correct
56 Correct 242 ms 32784 KB Output is correct
57 Correct 396 ms 42960 KB Output is correct
58 Correct 376 ms 42920 KB Output is correct
59 Correct 5 ms 9684 KB Output is correct
60 Correct 4 ms 9688 KB Output is correct
61 Correct 4 ms 9684 KB Output is correct
62 Correct 562 ms 67664 KB Output is correct
63 Correct 588 ms 67756 KB Output is correct
64 Correct 559 ms 67364 KB Output is correct
65 Correct 7 ms 10096 KB Output is correct
66 Correct 9 ms 10580 KB Output is correct
67 Correct 246 ms 33384 KB Output is correct
68 Correct 384 ms 43384 KB Output is correct
69 Correct 584 ms 57372 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 4 ms 9684 KB Output is correct
4 Correct 4 ms 9684 KB Output is correct
5 Correct 4 ms 9684 KB Output is correct
6 Correct 4 ms 9684 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 4 ms 9684 KB Output is correct
9 Correct 232 ms 37844 KB Output is correct
10 Correct 17 ms 12628 KB Output is correct
11 Correct 90 ms 24884 KB Output is correct
12 Correct 26 ms 14140 KB Output is correct
13 Correct 29 ms 14156 KB Output is correct
14 Correct 4 ms 9684 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 276 ms 37884 KB Output is correct
17 Correct 514 ms 70960 KB Output is correct
18 Correct 526 ms 71056 KB Output is correct
19 Correct 534 ms 63920 KB Output is correct
20 Correct 587 ms 57204 KB Output is correct
21 Correct 507 ms 60648 KB Output is correct
22 Correct 5 ms 9684 KB Output is correct
23 Correct 77 ms 17600 KB Output is correct
24 Correct 22 ms 12272 KB Output is correct
25 Correct 75 ms 18720 KB Output is correct
26 Correct 137 ms 25128 KB Output is correct
27 Correct 264 ms 34388 KB Output is correct
28 Correct 372 ms 40736 KB Output is correct
29 Correct 536 ms 46992 KB Output is correct
30 Correct 750 ms 52836 KB Output is correct
31 Correct 777 ms 59076 KB Output is correct
32 Correct 613 ms 63180 KB Output is correct
33 Correct 594 ms 67640 KB Output is correct
34 Correct 9 ms 10196 KB Output is correct
35 Correct 11 ms 10748 KB Output is correct
36 Correct 257 ms 34476 KB Output is correct
37 Correct 425 ms 45152 KB Output is correct
38 Correct 658 ms 59912 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 9684 KB Output is correct
2 Correct 5 ms 9684 KB Output is correct
3 Correct 4 ms 9684 KB Output is correct
4 Correct 4 ms 9684 KB Output is correct
5 Correct 4 ms 9684 KB Output is correct
6 Correct 4 ms 9684 KB Output is correct
7 Correct 5 ms 9684 KB Output is correct
8 Correct 4 ms 9684 KB Output is correct
9 Correct 232 ms 37844 KB Output is correct
10 Correct 17 ms 12628 KB Output is correct
11 Correct 90 ms 24884 KB Output is correct
12 Correct 26 ms 14140 KB Output is correct
13 Correct 29 ms 14156 KB Output is correct
14 Correct 4 ms 9684 KB Output is correct
15 Correct 6 ms 9812 KB Output is correct
16 Correct 276 ms 37884 KB Output is correct
17 Correct 4 ms 9684 KB Output is correct
18 Correct 4 ms 9684 KB Output is correct
19 Correct 6 ms 9684 KB Output is correct
20 Correct 6 ms 9684 KB Output is correct
21 Correct 4 ms 9684 KB Output is correct
22 Correct 4 ms 9684 KB Output is correct
23 Correct 797 ms 59740 KB Output is correct
24 Correct 4 ms 9684 KB Output is correct
25 Correct 6 ms 9972 KB Output is correct
26 Correct 7 ms 10084 KB Output is correct
27 Correct 7 ms 10100 KB Output is correct
28 Correct 206 ms 30132 KB Output is correct
29 Correct 408 ms 40668 KB Output is correct
30 Correct 580 ms 51092 KB Output is correct
31 Correct 733 ms 61720 KB Output is correct
32 Correct 4 ms 9704 KB Output is correct
33 Correct 6 ms 9684 KB Output is correct
34 Correct 4 ms 9684 KB Output is correct
35 Correct 4 ms 9612 KB Output is correct
36 Correct 4 ms 9684 KB Output is correct
37 Correct 4 ms 9684 KB Output is correct
38 Correct 5 ms 9684 KB Output is correct
39 Correct 5 ms 9712 KB Output is correct
40 Correct 4 ms 9696 KB Output is correct
41 Correct 4 ms 9648 KB Output is correct
42 Correct 4 ms 9684 KB Output is correct
43 Correct 5 ms 9836 KB Output is correct
44 Correct 8 ms 9976 KB Output is correct
45 Correct 230 ms 32604 KB Output is correct
46 Correct 375 ms 43168 KB Output is correct
47 Correct 394 ms 42916 KB Output is correct
48 Correct 4 ms 9684 KB Output is correct
49 Correct 4 ms 9684 KB Output is correct
50 Correct 4 ms 9684 KB Output is correct
51 Correct 4 ms 9684 KB Output is correct
52 Correct 5 ms 9684 KB Output is correct
53 Correct 4 ms 9704 KB Output is correct
54 Correct 5 ms 9684 KB Output is correct
55 Correct 679 ms 58332 KB Output is correct
56 Correct 4 ms 9684 KB Output is correct
57 Correct 7 ms 10068 KB Output is correct
58 Correct 23 ms 11084 KB Output is correct
59 Correct 12 ms 10996 KB Output is correct
60 Correct 264 ms 34000 KB Output is correct
61 Correct 383 ms 42308 KB Output is correct
62 Correct 492 ms 50384 KB Output is correct
63 Correct 675 ms 58388 KB Output is correct
64 Correct 4 ms 9684 KB Output is correct
65 Correct 5 ms 9684 KB Output is correct
66 Correct 5 ms 9684 KB Output is correct
67 Correct 563 ms 67672 KB Output is correct
68 Correct 554 ms 67672 KB Output is correct
69 Correct 563 ms 67428 KB Output is correct
70 Correct 7 ms 10152 KB Output is correct
71 Correct 9 ms 10612 KB Output is correct
72 Correct 229 ms 33420 KB Output is correct
73 Correct 396 ms 43456 KB Output is correct
74 Correct 610 ms 57452 KB Output is correct
75 Correct 587 ms 63244 KB Output is correct
76 Correct 603 ms 67728 KB Output is correct
77 Correct 8 ms 10228 KB Output is correct
78 Correct 13 ms 10776 KB Output is correct
79 Correct 282 ms 34452 KB Output is correct
80 Correct 390 ms 45084 KB Output is correct
81 Correct 668 ms 59832 KB Output is correct
82 Correct 6 ms 9684 KB Output is correct
83 Correct 6 ms 9684 KB Output is correct
84 Correct 4 ms 9684 KB Output is correct
85 Correct 502 ms 65332 KB Output is correct
86 Correct 514 ms 58908 KB Output is correct
87 Correct 550 ms 57928 KB Output is correct
88 Correct 399 ms 64056 KB Output is correct
89 Correct 214 ms 29324 KB Output is correct
90 Correct 258 ms 35400 KB Output is correct
91 Correct 239 ms 31068 KB Output is correct
92 Correct 588 ms 67548 KB Output is correct
93 Correct 632 ms 67644 KB Output is correct
94 Correct 447 ms 73372 KB Output is correct
95 Correct 506 ms 73396 KB Output is correct
96 Correct 4 ms 9684 KB Output is correct
97 Correct 33 ms 13248 KB Output is correct
98 Correct 78 ms 19932 KB Output is correct
99 Correct 486 ms 65372 KB Output is correct
100 Correct 11 ms 10992 KB Output is correct
101 Correct 51 ms 15632 KB Output is correct
102 Correct 107 ms 21896 KB Output is correct
103 Correct 178 ms 28564 KB Output is correct
104 Correct 250 ms 35456 KB Output is correct
105 Correct 359 ms 43024 KB Output is correct
106 Correct 469 ms 49600 KB Output is correct
107 Correct 517 ms 56932 KB Output is correct
108 Correct 6 ms 9684 KB Output is correct
109 Correct 5 ms 9704 KB Output is correct
110 Correct 5 ms 9684 KB Output is correct
111 Correct 4 ms 9700 KB Output is correct
112 Correct 4 ms 9684 KB Output is correct
113 Correct 4 ms 9684 KB Output is correct
114 Correct 5 ms 9684 KB Output is correct
115 Correct 5 ms 9684 KB Output is correct
116 Correct 5 ms 9684 KB Output is correct
117 Correct 5 ms 9684 KB Output is correct
118 Correct 4 ms 9684 KB Output is correct
119 Correct 6 ms 9940 KB Output is correct
120 Correct 6 ms 9972 KB Output is correct
121 Correct 242 ms 32784 KB Output is correct
122 Correct 396 ms 42960 KB Output is correct
123 Correct 376 ms 42920 KB Output is correct
124 Correct 5 ms 9684 KB Output is correct
125 Correct 4 ms 9688 KB Output is correct
126 Correct 4 ms 9684 KB Output is correct
127 Correct 562 ms 67664 KB Output is correct
128 Correct 588 ms 67756 KB Output is correct
129 Correct 559 ms 67364 KB Output is correct
130 Correct 7 ms 10096 KB Output is correct
131 Correct 9 ms 10580 KB Output is correct
132 Correct 246 ms 33384 KB Output is correct
133 Correct 384 ms 43384 KB Output is correct
134 Correct 584 ms 57372 KB Output is correct
135 Correct 514 ms 70960 KB Output is correct
136 Correct 526 ms 71056 KB Output is correct
137 Correct 534 ms 63920 KB Output is correct
138 Correct 587 ms 57204 KB Output is correct
139 Correct 507 ms 60648 KB Output is correct
140 Correct 5 ms 9684 KB Output is correct
141 Correct 77 ms 17600 KB Output is correct
142 Correct 22 ms 12272 KB Output is correct
143 Correct 75 ms 18720 KB Output is correct
144 Correct 137 ms 25128 KB Output is correct
145 Correct 264 ms 34388 KB Output is correct
146 Correct 372 ms 40736 KB Output is correct
147 Correct 536 ms 46992 KB Output is correct
148 Correct 750 ms 52836 KB Output is correct
149 Correct 777 ms 59076 KB Output is correct
150 Correct 613 ms 63180 KB Output is correct
151 Correct 594 ms 67640 KB Output is correct
152 Correct 9 ms 10196 KB Output is correct
153 Correct 11 ms 10748 KB Output is correct
154 Correct 257 ms 34476 KB Output is correct
155 Correct 425 ms 45152 KB Output is correct
156 Correct 658 ms 59912 KB Output is correct
157 Correct 4 ms 9640 KB Output is correct
158 Correct 5 ms 9684 KB Output is correct
159 Correct 5 ms 9700 KB Output is correct
160 Correct 4 ms 9684 KB Output is correct
161 Correct 780 ms 53100 KB Output is correct
162 Correct 526 ms 67216 KB Output is correct
163 Correct 594 ms 56044 KB Output is correct
164 Correct 571 ms 56188 KB Output is correct
165 Correct 666 ms 54236 KB Output is correct
166 Correct 738 ms 53556 KB Output is correct
167 Incorrect 111 ms 20428 KB a[9895] = 0 is not an odd integer
168 Halted 0 ms 0 KB -