Submission #548372

# Submission time Handle Problem Language Result Execution time Memory
548372 2022-04-13T07:32:56 Z topovik Fountain Parks (IOI21_parks) C++17
70 / 100
1098 ms 119044 KB
#include <bits/stdc++.h>
#include "parks.h"
#define pb push_back
#define f first
#define s second
#define pi acos(-1)

using namespace std;

typedef long long ll;
typedef long double ld;

const ll oo = 1e9;
const ld eps = (ld)1 / oo;
const ll N = 2e5 + 100;
const ll M = 1e6;

const int step[4][2] = {{0, 2}, {0, -2}, {2, 0}, {-2, 0}};

vector <pair<int, int> > ans;
int mrk[N];
map <int, int> mp[N];
map <int, int> mp1[N];
pair<int, int> coord[N];

void Rec(int x)
{
    for (int i = 0; i < 4; i++)
    {
        int x1 = coord[x].f + step[i][0];
        int y1 = coord[x].s + step[i][1];
        if (mp[x1][y1] != 0)
        {
            int nm = mp[x1][y1] - 1;
            if (!mrk[nm])
            {
                ans.pb({x, nm});
                mrk[nm] = 1;
                Rec(nm);
            }
        }
    }
}

//void build(vector <int> u, vector <int> v, vector <int> a, vector <int> b)
//{
//    for (int i = 0; i < u.size(); i++) cout << u[i] << " " << v[i] << " " << a[i] << " " << b[i] << endl;
//}

set <pair<int, pair<int, int> > > ms;


int construct_roads (vector<int> x, vector<int> y) {
    std::vector<int> u, v, a, b;
    int n = x.size();
    for (int i = 0; i < n; i++) coord[i] = {x[i], y[i]};
    for (int i = 0; i < n; i++) mp[x[i]][y[i]] = i + 1;
    mrk[0] = 1;
    Rec(0);
    if (ans.size() != n - 1) return 0;
    a.resize(n - 1);
    b.resize(n - 1);
    u.resize(n - 1);
    v.resize(n - 1);
    for (int i = 0; i < N; i++) mp[i].clear();
    for (int i = 0; i < n - 1; i++)
    {
        int x1 = (x[ans[i].f] + x[ans[i].s]) / 2;
        int y1 = (y[ans[i].f] + y[ans[i].s]) / 2;
        for (int j = 0; j < 4; j++)
        {
            int x2 = x1 + step[j][0] / 2;
            int y2 = y1 + step[j][1] / 2;
            if ((x2 & 1) && (y2 & 1))
            {
                if (mp[x2][y2] != 0)
                {
                    ms.erase({mp[x2][y2], {x2, y2}});
                }
                mp[x2][y2]++;
                ms.insert({mp[x2][y2], {x2, y2}});
            }
        }
        mp1[x1][y1] = i + 1;
    }
    while (!ms.empty())
    {
        pair<int, pair<int, int> > c = *ms.begin();
        ms.erase(ms.begin());
        if (c.f == 0) continue;
        int x1 = c.s.f, y1 = c.s.s;
        mp[x1][y1] = 0;
        for (int i = 0; i < 4; i++)
        {
            int x2 = x1 + step[i][0] / 2;
            int y2 = y1 + step[i][1] / 2;
            if (mp1[x2][y2] != 0)
            {
                int nom = mp1[x2][y2] - 1;
                a[nom] = x1;
                b[nom] = y1;
                mp1[x2][y2] = 0;
                for (int j = 0; j < 4; j++)
                {
                    int x3 = x2 + step[j][0] / 2;
                    int y3 = y2 + step[j][1] / 2;
                    if ((x3 & 1) && (y3 & 1))
                    {
                        if (mp[x3][y3] != 0)
                        {
                           ms.erase({mp[x3][y3], {x3, y3}});
                           mp[x3][y3]--;
                           ms.insert({mp[x3][y3], {x3, y3}});
                        }
                    }
                }
                break;
            }
        }
    }
    for (int i = 0; i < n - 1; i++)
    {
        u[i] = ans[i].f;
        v[i] = ans[i].s;
    }
    build(u, v, a, b);
    return 1;
}
/*
1
4
-100000 -100000 100000 -100000 -100000 100000
-100000 -100000 100000 -100000 -100000 100000
-100000 -100000 100000 -100000 -100000 100000
-100000 -100000 100000 -100000 -100000 100000
*/

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:60:20: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   60 |     if (ans.size() != n - 1) return 0;
      |         ~~~~~~~~~~~^~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 10 ms 19156 KB Output is correct
2 Correct 10 ms 19092 KB Output is correct
3 Correct 9 ms 19112 KB Output is correct
4 Correct 11 ms 19028 KB Output is correct
5 Correct 13 ms 19156 KB Output is correct
6 Correct 10 ms 19028 KB Output is correct
7 Correct 10 ms 19028 KB Output is correct
8 Correct 9 ms 19156 KB Output is correct
9 Correct 472 ms 67556 KB Output is correct
10 Correct 41 ms 24048 KB Output is correct
11 Correct 243 ms 45740 KB Output is correct
12 Correct 56 ms 26572 KB Output is correct
13 Correct 42 ms 29524 KB Output is correct
14 Correct 10 ms 19156 KB Output is correct
15 Correct 12 ms 19276 KB Output is correct
16 Correct 497 ms 62388 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 19156 KB Output is correct
2 Correct 10 ms 19092 KB Output is correct
3 Correct 9 ms 19112 KB Output is correct
4 Correct 11 ms 19028 KB Output is correct
5 Correct 13 ms 19156 KB Output is correct
6 Correct 10 ms 19028 KB Output is correct
7 Correct 10 ms 19028 KB Output is correct
8 Correct 9 ms 19156 KB Output is correct
9 Correct 472 ms 67556 KB Output is correct
10 Correct 41 ms 24048 KB Output is correct
11 Correct 243 ms 45740 KB Output is correct
12 Correct 56 ms 26572 KB Output is correct
13 Correct 42 ms 29524 KB Output is correct
14 Correct 10 ms 19156 KB Output is correct
15 Correct 12 ms 19276 KB Output is correct
16 Correct 497 ms 62388 KB Output is correct
17 Correct 10 ms 19112 KB Output is correct
18 Correct 12 ms 19028 KB Output is correct
19 Correct 10 ms 19120 KB Output is correct
20 Correct 11 ms 19116 KB Output is correct
21 Correct 11 ms 19072 KB Output is correct
22 Correct 13 ms 19068 KB Output is correct
23 Correct 1022 ms 107248 KB Output is correct
24 Correct 11 ms 19116 KB Output is correct
25 Correct 17 ms 19632 KB Output is correct
26 Correct 12 ms 19540 KB Output is correct
27 Correct 11 ms 19428 KB Output is correct
28 Correct 368 ms 54284 KB Output is correct
29 Correct 524 ms 71928 KB Output is correct
30 Correct 815 ms 89648 KB Output is correct
31 Correct 1018 ms 107300 KB Output is correct
32 Correct 14 ms 19028 KB Output is correct
33 Correct 12 ms 19040 KB Output is correct
34 Correct 13 ms 19040 KB Output is correct
35 Correct 12 ms 19120 KB Output is correct
36 Correct 10 ms 19060 KB Output is correct
37 Correct 11 ms 19112 KB Output is correct
38 Correct 10 ms 19028 KB Output is correct
39 Correct 11 ms 19028 KB Output is correct
40 Correct 11 ms 19028 KB Output is correct
41 Correct 11 ms 19076 KB Output is correct
42 Correct 10 ms 19028 KB Output is correct
43 Correct 10 ms 19412 KB Output is correct
44 Correct 12 ms 19384 KB Output is correct
45 Correct 473 ms 57132 KB Output is correct
46 Correct 727 ms 74968 KB Output is correct
47 Correct 670 ms 74152 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 19156 KB Output is correct
2 Correct 10 ms 19092 KB Output is correct
3 Correct 9 ms 19112 KB Output is correct
4 Correct 11 ms 19028 KB Output is correct
5 Correct 13 ms 19156 KB Output is correct
6 Correct 10 ms 19028 KB Output is correct
7 Correct 10 ms 19028 KB Output is correct
8 Correct 9 ms 19156 KB Output is correct
9 Correct 472 ms 67556 KB Output is correct
10 Correct 41 ms 24048 KB Output is correct
11 Correct 243 ms 45740 KB Output is correct
12 Correct 56 ms 26572 KB Output is correct
13 Correct 42 ms 29524 KB Output is correct
14 Correct 10 ms 19156 KB Output is correct
15 Correct 12 ms 19276 KB Output is correct
16 Correct 497 ms 62388 KB Output is correct
17 Correct 10 ms 19112 KB Output is correct
18 Correct 12 ms 19028 KB Output is correct
19 Correct 10 ms 19120 KB Output is correct
20 Correct 11 ms 19116 KB Output is correct
21 Correct 11 ms 19072 KB Output is correct
22 Correct 13 ms 19068 KB Output is correct
23 Correct 1022 ms 107248 KB Output is correct
24 Correct 11 ms 19116 KB Output is correct
25 Correct 17 ms 19632 KB Output is correct
26 Correct 12 ms 19540 KB Output is correct
27 Correct 11 ms 19428 KB Output is correct
28 Correct 368 ms 54284 KB Output is correct
29 Correct 524 ms 71928 KB Output is correct
30 Correct 815 ms 89648 KB Output is correct
31 Correct 1018 ms 107300 KB Output is correct
32 Correct 14 ms 19028 KB Output is correct
33 Correct 12 ms 19040 KB Output is correct
34 Correct 13 ms 19040 KB Output is correct
35 Correct 12 ms 19120 KB Output is correct
36 Correct 10 ms 19060 KB Output is correct
37 Correct 11 ms 19112 KB Output is correct
38 Correct 10 ms 19028 KB Output is correct
39 Correct 11 ms 19028 KB Output is correct
40 Correct 11 ms 19028 KB Output is correct
41 Correct 11 ms 19076 KB Output is correct
42 Correct 10 ms 19028 KB Output is correct
43 Correct 10 ms 19412 KB Output is correct
44 Correct 12 ms 19384 KB Output is correct
45 Correct 473 ms 57132 KB Output is correct
46 Correct 727 ms 74968 KB Output is correct
47 Correct 670 ms 74152 KB Output is correct
48 Correct 11 ms 19028 KB Output is correct
49 Correct 11 ms 19028 KB Output is correct
50 Correct 12 ms 19116 KB Output is correct
51 Correct 12 ms 19040 KB Output is correct
52 Correct 13 ms 19112 KB Output is correct
53 Correct 11 ms 19116 KB Output is correct
54 Correct 11 ms 19028 KB Output is correct
55 Correct 1057 ms 97552 KB Output is correct
56 Correct 14 ms 19028 KB Output is correct
57 Correct 19 ms 19720 KB Output is correct
58 Correct 33 ms 21608 KB Output is correct
59 Correct 15 ms 20244 KB Output is correct
60 Correct 462 ms 60760 KB Output is correct
61 Correct 665 ms 75328 KB Output is correct
62 Correct 830 ms 83804 KB Output is correct
63 Correct 977 ms 100924 KB Output is correct
64 Correct 11 ms 19028 KB Output is correct
65 Correct 12 ms 19112 KB Output is correct
66 Correct 10 ms 19028 KB Output is correct
67 Correct 962 ms 110892 KB Output is correct
68 Correct 1098 ms 111356 KB Output is correct
69 Correct 1022 ms 113688 KB Output is correct
70 Correct 12 ms 19668 KB Output is correct
71 Correct 17 ms 19924 KB Output is correct
72 Correct 499 ms 52736 KB Output is correct
73 Correct 757 ms 73080 KB Output is correct
74 Correct 1042 ms 87220 KB Output is correct
75 Correct 1004 ms 104356 KB Output is correct
76 Correct 998 ms 118176 KB Output is correct
77 Correct 14 ms 19796 KB Output is correct
78 Correct 16 ms 20220 KB Output is correct
79 Correct 468 ms 54600 KB Output is correct
80 Correct 717 ms 73452 KB Output is correct
81 Correct 980 ms 91672 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 19156 KB Output is correct
2 Correct 10 ms 19092 KB Output is correct
3 Correct 9 ms 19112 KB Output is correct
4 Correct 11 ms 19028 KB Output is correct
5 Correct 13 ms 19156 KB Output is correct
6 Correct 10 ms 19028 KB Output is correct
7 Correct 10 ms 19028 KB Output is correct
8 Correct 9 ms 19156 KB Output is correct
9 Correct 472 ms 67556 KB Output is correct
10 Correct 41 ms 24048 KB Output is correct
11 Correct 243 ms 45740 KB Output is correct
12 Correct 56 ms 26572 KB Output is correct
13 Correct 42 ms 29524 KB Output is correct
14 Correct 10 ms 19156 KB Output is correct
15 Correct 12 ms 19276 KB Output is correct
16 Correct 497 ms 62388 KB Output is correct
17 Correct 13 ms 19028 KB Output is correct
18 Correct 13 ms 19028 KB Output is correct
19 Correct 10 ms 19028 KB Output is correct
20 Correct 534 ms 97420 KB Output is correct
21 Correct 508 ms 92144 KB Output is correct
22 Correct 490 ms 89356 KB Output is correct
23 Correct 540 ms 96180 KB Output is correct
24 Correct 112 ms 34788 KB Output is correct
25 Correct 114 ms 35548 KB Output is correct
26 Correct 121 ms 35532 KB Output is correct
27 Correct 652 ms 93252 KB Output is correct
28 Correct 654 ms 93176 KB Output is correct
29 Correct 815 ms 93272 KB Output is correct
30 Correct 798 ms 93312 KB Output is correct
31 Correct 11 ms 19028 KB Output is correct
32 Correct 55 ms 24272 KB Output is correct
33 Correct 50 ms 27340 KB Output is correct
34 Correct 466 ms 93328 KB Output is correct
35 Correct 18 ms 20180 KB Output is correct
36 Correct 35 ms 23836 KB Output is correct
37 Correct 59 ms 28212 KB Output is correct
38 Correct 312 ms 42496 KB Output is correct
39 Correct 429 ms 51080 KB Output is correct
40 Correct 567 ms 59812 KB Output is correct
41 Correct 702 ms 68616 KB Output is correct
42 Correct 853 ms 77300 KB Output is correct
43 Correct 11 ms 19116 KB Output is correct
44 Correct 14 ms 19048 KB Output is correct
45 Correct 11 ms 19028 KB Output is correct
46 Correct 9 ms 19028 KB Output is correct
47 Correct 12 ms 19060 KB Output is correct
48 Correct 11 ms 19028 KB Output is correct
49 Correct 11 ms 19028 KB Output is correct
50 Correct 12 ms 19120 KB Output is correct
51 Correct 11 ms 19108 KB Output is correct
52 Correct 11 ms 19112 KB Output is correct
53 Correct 11 ms 19112 KB Output is correct
54 Correct 12 ms 19412 KB Output is correct
55 Correct 12 ms 19412 KB Output is correct
56 Correct 457 ms 57168 KB Output is correct
57 Correct 675 ms 74980 KB Output is correct
58 Correct 695 ms 74272 KB Output is correct
59 Correct 11 ms 19028 KB Output is correct
60 Correct 11 ms 19088 KB Output is correct
61 Correct 10 ms 19028 KB Output is correct
62 Correct 1012 ms 110840 KB Output is correct
63 Correct 1069 ms 111296 KB Output is correct
64 Correct 916 ms 113792 KB Output is correct
65 Correct 12 ms 19668 KB Output is correct
66 Correct 17 ms 20024 KB Output is correct
67 Correct 435 ms 52752 KB Output is correct
68 Correct 698 ms 73100 KB Output is correct
69 Correct 957 ms 87316 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 19156 KB Output is correct
2 Correct 10 ms 19092 KB Output is correct
3 Correct 9 ms 19112 KB Output is correct
4 Correct 11 ms 19028 KB Output is correct
5 Correct 13 ms 19156 KB Output is correct
6 Correct 10 ms 19028 KB Output is correct
7 Correct 10 ms 19028 KB Output is correct
8 Correct 9 ms 19156 KB Output is correct
9 Correct 472 ms 67556 KB Output is correct
10 Correct 41 ms 24048 KB Output is correct
11 Correct 243 ms 45740 KB Output is correct
12 Correct 56 ms 26572 KB Output is correct
13 Correct 42 ms 29524 KB Output is correct
14 Correct 10 ms 19156 KB Output is correct
15 Correct 12 ms 19276 KB Output is correct
16 Correct 497 ms 62388 KB Output is correct
17 Correct 674 ms 119044 KB Output is correct
18 Correct 653 ms 109288 KB Output is correct
19 Correct 448 ms 98820 KB Output is correct
20 Correct 643 ms 89412 KB Output is correct
21 Correct 618 ms 88712 KB Output is correct
22 Correct 11 ms 19028 KB Output is correct
23 Correct 108 ms 29712 KB Output is correct
24 Correct 21 ms 21388 KB Output is correct
25 Correct 44 ms 26152 KB Output is correct
26 Correct 71 ms 30224 KB Output is correct
27 Correct 361 ms 54668 KB Output is correct
28 Correct 486 ms 63728 KB Output is correct
29 Correct 564 ms 72616 KB Output is correct
30 Correct 680 ms 80888 KB Output is correct
31 Correct 802 ms 90400 KB Output is correct
32 Correct 964 ms 104528 KB Output is correct
33 Correct 923 ms 118120 KB Output is correct
34 Correct 12 ms 19796 KB Output is correct
35 Correct 17 ms 20260 KB Output is correct
36 Correct 431 ms 54540 KB Output is correct
37 Correct 676 ms 73596 KB Output is correct
38 Correct 920 ms 91644 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 19156 KB Output is correct
2 Correct 10 ms 19092 KB Output is correct
3 Correct 9 ms 19112 KB Output is correct
4 Correct 11 ms 19028 KB Output is correct
5 Correct 13 ms 19156 KB Output is correct
6 Correct 10 ms 19028 KB Output is correct
7 Correct 10 ms 19028 KB Output is correct
8 Correct 9 ms 19156 KB Output is correct
9 Correct 472 ms 67556 KB Output is correct
10 Correct 41 ms 24048 KB Output is correct
11 Correct 243 ms 45740 KB Output is correct
12 Correct 56 ms 26572 KB Output is correct
13 Correct 42 ms 29524 KB Output is correct
14 Correct 10 ms 19156 KB Output is correct
15 Correct 12 ms 19276 KB Output is correct
16 Correct 497 ms 62388 KB Output is correct
17 Correct 10 ms 19112 KB Output is correct
18 Correct 12 ms 19028 KB Output is correct
19 Correct 10 ms 19120 KB Output is correct
20 Correct 11 ms 19116 KB Output is correct
21 Correct 11 ms 19072 KB Output is correct
22 Correct 13 ms 19068 KB Output is correct
23 Correct 1022 ms 107248 KB Output is correct
24 Correct 11 ms 19116 KB Output is correct
25 Correct 17 ms 19632 KB Output is correct
26 Correct 12 ms 19540 KB Output is correct
27 Correct 11 ms 19428 KB Output is correct
28 Correct 368 ms 54284 KB Output is correct
29 Correct 524 ms 71928 KB Output is correct
30 Correct 815 ms 89648 KB Output is correct
31 Correct 1018 ms 107300 KB Output is correct
32 Correct 14 ms 19028 KB Output is correct
33 Correct 12 ms 19040 KB Output is correct
34 Correct 13 ms 19040 KB Output is correct
35 Correct 12 ms 19120 KB Output is correct
36 Correct 10 ms 19060 KB Output is correct
37 Correct 11 ms 19112 KB Output is correct
38 Correct 10 ms 19028 KB Output is correct
39 Correct 11 ms 19028 KB Output is correct
40 Correct 11 ms 19028 KB Output is correct
41 Correct 11 ms 19076 KB Output is correct
42 Correct 10 ms 19028 KB Output is correct
43 Correct 10 ms 19412 KB Output is correct
44 Correct 12 ms 19384 KB Output is correct
45 Correct 473 ms 57132 KB Output is correct
46 Correct 727 ms 74968 KB Output is correct
47 Correct 670 ms 74152 KB Output is correct
48 Correct 11 ms 19028 KB Output is correct
49 Correct 11 ms 19028 KB Output is correct
50 Correct 12 ms 19116 KB Output is correct
51 Correct 12 ms 19040 KB Output is correct
52 Correct 13 ms 19112 KB Output is correct
53 Correct 11 ms 19116 KB Output is correct
54 Correct 11 ms 19028 KB Output is correct
55 Correct 1057 ms 97552 KB Output is correct
56 Correct 14 ms 19028 KB Output is correct
57 Correct 19 ms 19720 KB Output is correct
58 Correct 33 ms 21608 KB Output is correct
59 Correct 15 ms 20244 KB Output is correct
60 Correct 462 ms 60760 KB Output is correct
61 Correct 665 ms 75328 KB Output is correct
62 Correct 830 ms 83804 KB Output is correct
63 Correct 977 ms 100924 KB Output is correct
64 Correct 11 ms 19028 KB Output is correct
65 Correct 12 ms 19112 KB Output is correct
66 Correct 10 ms 19028 KB Output is correct
67 Correct 962 ms 110892 KB Output is correct
68 Correct 1098 ms 111356 KB Output is correct
69 Correct 1022 ms 113688 KB Output is correct
70 Correct 12 ms 19668 KB Output is correct
71 Correct 17 ms 19924 KB Output is correct
72 Correct 499 ms 52736 KB Output is correct
73 Correct 757 ms 73080 KB Output is correct
74 Correct 1042 ms 87220 KB Output is correct
75 Correct 1004 ms 104356 KB Output is correct
76 Correct 998 ms 118176 KB Output is correct
77 Correct 14 ms 19796 KB Output is correct
78 Correct 16 ms 20220 KB Output is correct
79 Correct 468 ms 54600 KB Output is correct
80 Correct 717 ms 73452 KB Output is correct
81 Correct 980 ms 91672 KB Output is correct
82 Correct 13 ms 19028 KB Output is correct
83 Correct 13 ms 19028 KB Output is correct
84 Correct 10 ms 19028 KB Output is correct
85 Correct 534 ms 97420 KB Output is correct
86 Correct 508 ms 92144 KB Output is correct
87 Correct 490 ms 89356 KB Output is correct
88 Correct 540 ms 96180 KB Output is correct
89 Correct 112 ms 34788 KB Output is correct
90 Correct 114 ms 35548 KB Output is correct
91 Correct 121 ms 35532 KB Output is correct
92 Correct 652 ms 93252 KB Output is correct
93 Correct 654 ms 93176 KB Output is correct
94 Correct 815 ms 93272 KB Output is correct
95 Correct 798 ms 93312 KB Output is correct
96 Correct 11 ms 19028 KB Output is correct
97 Correct 55 ms 24272 KB Output is correct
98 Correct 50 ms 27340 KB Output is correct
99 Correct 466 ms 93328 KB Output is correct
100 Correct 18 ms 20180 KB Output is correct
101 Correct 35 ms 23836 KB Output is correct
102 Correct 59 ms 28212 KB Output is correct
103 Correct 312 ms 42496 KB Output is correct
104 Correct 429 ms 51080 KB Output is correct
105 Correct 567 ms 59812 KB Output is correct
106 Correct 702 ms 68616 KB Output is correct
107 Correct 853 ms 77300 KB Output is correct
108 Correct 11 ms 19116 KB Output is correct
109 Correct 14 ms 19048 KB Output is correct
110 Correct 11 ms 19028 KB Output is correct
111 Correct 9 ms 19028 KB Output is correct
112 Correct 12 ms 19060 KB Output is correct
113 Correct 11 ms 19028 KB Output is correct
114 Correct 11 ms 19028 KB Output is correct
115 Correct 12 ms 19120 KB Output is correct
116 Correct 11 ms 19108 KB Output is correct
117 Correct 11 ms 19112 KB Output is correct
118 Correct 11 ms 19112 KB Output is correct
119 Correct 12 ms 19412 KB Output is correct
120 Correct 12 ms 19412 KB Output is correct
121 Correct 457 ms 57168 KB Output is correct
122 Correct 675 ms 74980 KB Output is correct
123 Correct 695 ms 74272 KB Output is correct
124 Correct 11 ms 19028 KB Output is correct
125 Correct 11 ms 19088 KB Output is correct
126 Correct 10 ms 19028 KB Output is correct
127 Correct 1012 ms 110840 KB Output is correct
128 Correct 1069 ms 111296 KB Output is correct
129 Correct 916 ms 113792 KB Output is correct
130 Correct 12 ms 19668 KB Output is correct
131 Correct 17 ms 20024 KB Output is correct
132 Correct 435 ms 52752 KB Output is correct
133 Correct 698 ms 73100 KB Output is correct
134 Correct 957 ms 87316 KB Output is correct
135 Correct 674 ms 119044 KB Output is correct
136 Correct 653 ms 109288 KB Output is correct
137 Correct 448 ms 98820 KB Output is correct
138 Correct 643 ms 89412 KB Output is correct
139 Correct 618 ms 88712 KB Output is correct
140 Correct 11 ms 19028 KB Output is correct
141 Correct 108 ms 29712 KB Output is correct
142 Correct 21 ms 21388 KB Output is correct
143 Correct 44 ms 26152 KB Output is correct
144 Correct 71 ms 30224 KB Output is correct
145 Correct 361 ms 54668 KB Output is correct
146 Correct 486 ms 63728 KB Output is correct
147 Correct 564 ms 72616 KB Output is correct
148 Correct 680 ms 80888 KB Output is correct
149 Correct 802 ms 90400 KB Output is correct
150 Correct 964 ms 104528 KB Output is correct
151 Correct 923 ms 118120 KB Output is correct
152 Correct 12 ms 19796 KB Output is correct
153 Correct 17 ms 20260 KB Output is correct
154 Correct 431 ms 54540 KB Output is correct
155 Correct 676 ms 73596 KB Output is correct
156 Correct 920 ms 91644 KB Output is correct
157 Correct 14 ms 19156 KB Output is correct
158 Correct 10 ms 19028 KB Output is correct
159 Correct 11 ms 19120 KB Output is correct
160 Correct 11 ms 19156 KB Output is correct
161 Correct 734 ms 96520 KB Output is correct
162 Correct 457 ms 89600 KB Output is correct
163 Correct 513 ms 84020 KB Output is correct
164 Correct 478 ms 82744 KB Output is correct
165 Correct 482 ms 94888 KB Output is correct
166 Correct 566 ms 96188 KB Output is correct
167 Incorrect 163 ms 33292 KB a[19126] = 0 is not an odd integer
168 Halted 0 ms 0 KB -