답안 #548388

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
548388 2022-04-13T08:10:21 Z topovik 분수 공원 (IOI21_parks) C++17
70 / 100
1034 ms 118444 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;
                int x3 = x2 + step[i][0] / 2;
                int y3 = y2 + step[i][1] / 2;
                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;
}

//int main()
//{
//    int n;
//    cin >> n;
//    vector <int> x(n), y(n);
//    for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
//    construct_roads(x, y);
//}
/*
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;
      |         ~~~~~~~~~~~^~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 19028 KB Output is correct
2 Correct 12 ms 19028 KB Output is correct
3 Correct 11 ms 19112 KB Output is correct
4 Correct 12 ms 19024 KB Output is correct
5 Correct 14 ms 19028 KB Output is correct
6 Correct 11 ms 19028 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19112 KB Output is correct
9 Correct 425 ms 67564 KB Output is correct
10 Correct 47 ms 24108 KB Output is correct
11 Correct 216 ms 45740 KB Output is correct
12 Correct 58 ms 26572 KB Output is correct
13 Correct 47 ms 29536 KB Output is correct
14 Correct 13 ms 19156 KB Output is correct
15 Correct 12 ms 19248 KB Output is correct
16 Correct 418 ms 62464 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 19028 KB Output is correct
2 Correct 12 ms 19028 KB Output is correct
3 Correct 11 ms 19112 KB Output is correct
4 Correct 12 ms 19024 KB Output is correct
5 Correct 14 ms 19028 KB Output is correct
6 Correct 11 ms 19028 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19112 KB Output is correct
9 Correct 425 ms 67564 KB Output is correct
10 Correct 47 ms 24108 KB Output is correct
11 Correct 216 ms 45740 KB Output is correct
12 Correct 58 ms 26572 KB Output is correct
13 Correct 47 ms 29536 KB Output is correct
14 Correct 13 ms 19156 KB Output is correct
15 Correct 12 ms 19248 KB Output is correct
16 Correct 418 ms 62464 KB Output is correct
17 Correct 15 ms 19028 KB Output is correct
18 Correct 14 ms 19028 KB Output is correct
19 Correct 12 ms 19028 KB Output is correct
20 Correct 12 ms 18996 KB Output is correct
21 Correct 11 ms 19028 KB Output is correct
22 Correct 11 ms 19028 KB Output is correct
23 Correct 989 ms 107224 KB Output is correct
24 Correct 12 ms 19028 KB Output is correct
25 Correct 16 ms 19632 KB Output is correct
26 Correct 12 ms 19580 KB Output is correct
27 Correct 12 ms 19512 KB Output is correct
28 Correct 339 ms 54192 KB Output is correct
29 Correct 557 ms 72088 KB Output is correct
30 Correct 751 ms 89640 KB Output is correct
31 Correct 994 ms 107260 KB Output is correct
32 Correct 12 ms 19108 KB Output is correct
33 Correct 12 ms 19104 KB Output is correct
34 Correct 15 ms 19020 KB Output is correct
35 Correct 14 ms 19108 KB Output is correct
36 Correct 11 ms 19112 KB Output is correct
37 Correct 14 ms 19116 KB Output is correct
38 Correct 12 ms 19028 KB Output is correct
39 Correct 12 ms 19084 KB Output is correct
40 Correct 11 ms 19028 KB Output is correct
41 Correct 10 ms 19112 KB Output is correct
42 Correct 12 ms 19028 KB Output is correct
43 Correct 11 ms 19412 KB Output is correct
44 Correct 11 ms 19428 KB Output is correct
45 Correct 461 ms 57212 KB Output is correct
46 Correct 687 ms 74920 KB Output is correct
47 Correct 668 ms 74252 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 19028 KB Output is correct
2 Correct 12 ms 19028 KB Output is correct
3 Correct 11 ms 19112 KB Output is correct
4 Correct 12 ms 19024 KB Output is correct
5 Correct 14 ms 19028 KB Output is correct
6 Correct 11 ms 19028 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19112 KB Output is correct
9 Correct 425 ms 67564 KB Output is correct
10 Correct 47 ms 24108 KB Output is correct
11 Correct 216 ms 45740 KB Output is correct
12 Correct 58 ms 26572 KB Output is correct
13 Correct 47 ms 29536 KB Output is correct
14 Correct 13 ms 19156 KB Output is correct
15 Correct 12 ms 19248 KB Output is correct
16 Correct 418 ms 62464 KB Output is correct
17 Correct 15 ms 19028 KB Output is correct
18 Correct 14 ms 19028 KB Output is correct
19 Correct 12 ms 19028 KB Output is correct
20 Correct 12 ms 18996 KB Output is correct
21 Correct 11 ms 19028 KB Output is correct
22 Correct 11 ms 19028 KB Output is correct
23 Correct 989 ms 107224 KB Output is correct
24 Correct 12 ms 19028 KB Output is correct
25 Correct 16 ms 19632 KB Output is correct
26 Correct 12 ms 19580 KB Output is correct
27 Correct 12 ms 19512 KB Output is correct
28 Correct 339 ms 54192 KB Output is correct
29 Correct 557 ms 72088 KB Output is correct
30 Correct 751 ms 89640 KB Output is correct
31 Correct 994 ms 107260 KB Output is correct
32 Correct 12 ms 19108 KB Output is correct
33 Correct 12 ms 19104 KB Output is correct
34 Correct 15 ms 19020 KB Output is correct
35 Correct 14 ms 19108 KB Output is correct
36 Correct 11 ms 19112 KB Output is correct
37 Correct 14 ms 19116 KB Output is correct
38 Correct 12 ms 19028 KB Output is correct
39 Correct 12 ms 19084 KB Output is correct
40 Correct 11 ms 19028 KB Output is correct
41 Correct 10 ms 19112 KB Output is correct
42 Correct 12 ms 19028 KB Output is correct
43 Correct 11 ms 19412 KB Output is correct
44 Correct 11 ms 19428 KB Output is correct
45 Correct 461 ms 57212 KB Output is correct
46 Correct 687 ms 74920 KB Output is correct
47 Correct 668 ms 74252 KB Output is correct
48 Correct 12 ms 19028 KB Output is correct
49 Correct 15 ms 19156 KB Output is correct
50 Correct 13 ms 19080 KB Output is correct
51 Correct 12 ms 19096 KB Output is correct
52 Correct 11 ms 19028 KB Output is correct
53 Correct 12 ms 19036 KB Output is correct
54 Correct 12 ms 19084 KB Output is correct
55 Correct 980 ms 97428 KB Output is correct
56 Correct 14 ms 19112 KB Output is correct
57 Correct 19 ms 19768 KB Output is correct
58 Correct 29 ms 21616 KB Output is correct
59 Correct 15 ms 20152 KB Output is correct
60 Correct 430 ms 60808 KB Output is correct
61 Correct 595 ms 75324 KB Output is correct
62 Correct 790 ms 83684 KB Output is correct
63 Correct 1034 ms 100888 KB Output is correct
64 Correct 11 ms 19108 KB Output is correct
65 Correct 13 ms 19028 KB Output is correct
66 Correct 11 ms 19112 KB Output is correct
67 Correct 926 ms 110760 KB Output is correct
68 Correct 969 ms 111280 KB Output is correct
69 Correct 924 ms 113752 KB Output is correct
70 Correct 14 ms 19668 KB Output is correct
71 Correct 16 ms 19916 KB Output is correct
72 Correct 465 ms 52824 KB Output is correct
73 Correct 751 ms 73292 KB Output is correct
74 Correct 966 ms 87184 KB Output is correct
75 Correct 996 ms 104288 KB Output is correct
76 Correct 948 ms 117628 KB Output is correct
77 Correct 14 ms 19796 KB Output is correct
78 Correct 17 ms 20180 KB Output is correct
79 Correct 422 ms 54528 KB Output is correct
80 Correct 704 ms 73288 KB Output is correct
81 Correct 949 ms 91032 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 19028 KB Output is correct
2 Correct 12 ms 19028 KB Output is correct
3 Correct 11 ms 19112 KB Output is correct
4 Correct 12 ms 19024 KB Output is correct
5 Correct 14 ms 19028 KB Output is correct
6 Correct 11 ms 19028 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19112 KB Output is correct
9 Correct 425 ms 67564 KB Output is correct
10 Correct 47 ms 24108 KB Output is correct
11 Correct 216 ms 45740 KB Output is correct
12 Correct 58 ms 26572 KB Output is correct
13 Correct 47 ms 29536 KB Output is correct
14 Correct 13 ms 19156 KB Output is correct
15 Correct 12 ms 19248 KB Output is correct
16 Correct 418 ms 62464 KB Output is correct
17 Correct 12 ms 19028 KB Output is correct
18 Correct 14 ms 19028 KB Output is correct
19 Correct 10 ms 19108 KB Output is correct
20 Correct 475 ms 96876 KB Output is correct
21 Correct 450 ms 91756 KB Output is correct
22 Correct 470 ms 88600 KB Output is correct
23 Correct 504 ms 95384 KB Output is correct
24 Correct 115 ms 33904 KB Output is correct
25 Correct 119 ms 34772 KB Output is correct
26 Correct 140 ms 34732 KB Output is correct
27 Correct 622 ms 92540 KB Output is correct
28 Correct 595 ms 92484 KB Output is correct
29 Correct 776 ms 92384 KB Output is correct
30 Correct 721 ms 92472 KB Output is correct
31 Correct 11 ms 19028 KB Output is correct
32 Correct 64 ms 24312 KB Output is correct
33 Correct 66 ms 26972 KB Output is correct
34 Correct 421 ms 92612 KB Output is correct
35 Correct 18 ms 20060 KB Output is correct
36 Correct 36 ms 23848 KB Output is correct
37 Correct 62 ms 27744 KB Output is correct
38 Correct 290 ms 42172 KB Output is correct
39 Correct 407 ms 50472 KB Output is correct
40 Correct 555 ms 59048 KB Output is correct
41 Correct 691 ms 67776 KB Output is correct
42 Correct 822 ms 76440 KB Output is correct
43 Correct 13 ms 19028 KB Output is correct
44 Correct 11 ms 19028 KB Output is correct
45 Correct 12 ms 19028 KB Output is correct
46 Correct 10 ms 19108 KB Output is correct
47 Correct 10 ms 19028 KB Output is correct
48 Correct 11 ms 19160 KB Output is correct
49 Correct 12 ms 19080 KB Output is correct
50 Correct 12 ms 19028 KB Output is correct
51 Correct 14 ms 19028 KB Output is correct
52 Correct 10 ms 19028 KB Output is correct
53 Correct 12 ms 19028 KB Output is correct
54 Correct 11 ms 19376 KB Output is correct
55 Correct 11 ms 19388 KB Output is correct
56 Correct 442 ms 57156 KB Output is correct
57 Correct 681 ms 74652 KB Output is correct
58 Correct 671 ms 73932 KB Output is correct
59 Correct 10 ms 19028 KB Output is correct
60 Correct 11 ms 19016 KB Output is correct
61 Correct 10 ms 19028 KB Output is correct
62 Correct 935 ms 110440 KB Output is correct
63 Correct 935 ms 110740 KB Output is correct
64 Correct 929 ms 113224 KB Output is correct
65 Correct 13 ms 19636 KB Output is correct
66 Correct 15 ms 19904 KB Output is correct
67 Correct 414 ms 52744 KB Output is correct
68 Correct 719 ms 72720 KB Output is correct
69 Correct 991 ms 86704 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 19028 KB Output is correct
2 Correct 12 ms 19028 KB Output is correct
3 Correct 11 ms 19112 KB Output is correct
4 Correct 12 ms 19024 KB Output is correct
5 Correct 14 ms 19028 KB Output is correct
6 Correct 11 ms 19028 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19112 KB Output is correct
9 Correct 425 ms 67564 KB Output is correct
10 Correct 47 ms 24108 KB Output is correct
11 Correct 216 ms 45740 KB Output is correct
12 Correct 58 ms 26572 KB Output is correct
13 Correct 47 ms 29536 KB Output is correct
14 Correct 13 ms 19156 KB Output is correct
15 Correct 12 ms 19248 KB Output is correct
16 Correct 418 ms 62464 KB Output is correct
17 Correct 696 ms 118444 KB Output is correct
18 Correct 720 ms 108800 KB Output is correct
19 Correct 523 ms 98052 KB Output is correct
20 Correct 690 ms 88780 KB Output is correct
21 Correct 653 ms 88220 KB Output is correct
22 Correct 11 ms 19012 KB Output is correct
23 Correct 103 ms 29656 KB Output is correct
24 Correct 24 ms 21444 KB Output is correct
25 Correct 47 ms 26000 KB Output is correct
26 Correct 74 ms 29560 KB Output is correct
27 Correct 373 ms 54300 KB Output is correct
28 Correct 502 ms 63088 KB Output is correct
29 Correct 597 ms 72064 KB Output is correct
30 Correct 712 ms 80256 KB Output is correct
31 Correct 819 ms 89532 KB Output is correct
32 Correct 933 ms 103868 KB Output is correct
33 Correct 953 ms 117628 KB Output is correct
34 Correct 13 ms 19768 KB Output is correct
35 Correct 16 ms 20276 KB Output is correct
36 Correct 444 ms 54640 KB Output is correct
37 Correct 700 ms 72924 KB Output is correct
38 Correct 992 ms 91112 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 12 ms 19028 KB Output is correct
2 Correct 12 ms 19028 KB Output is correct
3 Correct 11 ms 19112 KB Output is correct
4 Correct 12 ms 19024 KB Output is correct
5 Correct 14 ms 19028 KB Output is correct
6 Correct 11 ms 19028 KB Output is correct
7 Correct 11 ms 19028 KB Output is correct
8 Correct 11 ms 19112 KB Output is correct
9 Correct 425 ms 67564 KB Output is correct
10 Correct 47 ms 24108 KB Output is correct
11 Correct 216 ms 45740 KB Output is correct
12 Correct 58 ms 26572 KB Output is correct
13 Correct 47 ms 29536 KB Output is correct
14 Correct 13 ms 19156 KB Output is correct
15 Correct 12 ms 19248 KB Output is correct
16 Correct 418 ms 62464 KB Output is correct
17 Correct 15 ms 19028 KB Output is correct
18 Correct 14 ms 19028 KB Output is correct
19 Correct 12 ms 19028 KB Output is correct
20 Correct 12 ms 18996 KB Output is correct
21 Correct 11 ms 19028 KB Output is correct
22 Correct 11 ms 19028 KB Output is correct
23 Correct 989 ms 107224 KB Output is correct
24 Correct 12 ms 19028 KB Output is correct
25 Correct 16 ms 19632 KB Output is correct
26 Correct 12 ms 19580 KB Output is correct
27 Correct 12 ms 19512 KB Output is correct
28 Correct 339 ms 54192 KB Output is correct
29 Correct 557 ms 72088 KB Output is correct
30 Correct 751 ms 89640 KB Output is correct
31 Correct 994 ms 107260 KB Output is correct
32 Correct 12 ms 19108 KB Output is correct
33 Correct 12 ms 19104 KB Output is correct
34 Correct 15 ms 19020 KB Output is correct
35 Correct 14 ms 19108 KB Output is correct
36 Correct 11 ms 19112 KB Output is correct
37 Correct 14 ms 19116 KB Output is correct
38 Correct 12 ms 19028 KB Output is correct
39 Correct 12 ms 19084 KB Output is correct
40 Correct 11 ms 19028 KB Output is correct
41 Correct 10 ms 19112 KB Output is correct
42 Correct 12 ms 19028 KB Output is correct
43 Correct 11 ms 19412 KB Output is correct
44 Correct 11 ms 19428 KB Output is correct
45 Correct 461 ms 57212 KB Output is correct
46 Correct 687 ms 74920 KB Output is correct
47 Correct 668 ms 74252 KB Output is correct
48 Correct 12 ms 19028 KB Output is correct
49 Correct 15 ms 19156 KB Output is correct
50 Correct 13 ms 19080 KB Output is correct
51 Correct 12 ms 19096 KB Output is correct
52 Correct 11 ms 19028 KB Output is correct
53 Correct 12 ms 19036 KB Output is correct
54 Correct 12 ms 19084 KB Output is correct
55 Correct 980 ms 97428 KB Output is correct
56 Correct 14 ms 19112 KB Output is correct
57 Correct 19 ms 19768 KB Output is correct
58 Correct 29 ms 21616 KB Output is correct
59 Correct 15 ms 20152 KB Output is correct
60 Correct 430 ms 60808 KB Output is correct
61 Correct 595 ms 75324 KB Output is correct
62 Correct 790 ms 83684 KB Output is correct
63 Correct 1034 ms 100888 KB Output is correct
64 Correct 11 ms 19108 KB Output is correct
65 Correct 13 ms 19028 KB Output is correct
66 Correct 11 ms 19112 KB Output is correct
67 Correct 926 ms 110760 KB Output is correct
68 Correct 969 ms 111280 KB Output is correct
69 Correct 924 ms 113752 KB Output is correct
70 Correct 14 ms 19668 KB Output is correct
71 Correct 16 ms 19916 KB Output is correct
72 Correct 465 ms 52824 KB Output is correct
73 Correct 751 ms 73292 KB Output is correct
74 Correct 966 ms 87184 KB Output is correct
75 Correct 996 ms 104288 KB Output is correct
76 Correct 948 ms 117628 KB Output is correct
77 Correct 14 ms 19796 KB Output is correct
78 Correct 17 ms 20180 KB Output is correct
79 Correct 422 ms 54528 KB Output is correct
80 Correct 704 ms 73288 KB Output is correct
81 Correct 949 ms 91032 KB Output is correct
82 Correct 12 ms 19028 KB Output is correct
83 Correct 14 ms 19028 KB Output is correct
84 Correct 10 ms 19108 KB Output is correct
85 Correct 475 ms 96876 KB Output is correct
86 Correct 450 ms 91756 KB Output is correct
87 Correct 470 ms 88600 KB Output is correct
88 Correct 504 ms 95384 KB Output is correct
89 Correct 115 ms 33904 KB Output is correct
90 Correct 119 ms 34772 KB Output is correct
91 Correct 140 ms 34732 KB Output is correct
92 Correct 622 ms 92540 KB Output is correct
93 Correct 595 ms 92484 KB Output is correct
94 Correct 776 ms 92384 KB Output is correct
95 Correct 721 ms 92472 KB Output is correct
96 Correct 11 ms 19028 KB Output is correct
97 Correct 64 ms 24312 KB Output is correct
98 Correct 66 ms 26972 KB Output is correct
99 Correct 421 ms 92612 KB Output is correct
100 Correct 18 ms 20060 KB Output is correct
101 Correct 36 ms 23848 KB Output is correct
102 Correct 62 ms 27744 KB Output is correct
103 Correct 290 ms 42172 KB Output is correct
104 Correct 407 ms 50472 KB Output is correct
105 Correct 555 ms 59048 KB Output is correct
106 Correct 691 ms 67776 KB Output is correct
107 Correct 822 ms 76440 KB Output is correct
108 Correct 13 ms 19028 KB Output is correct
109 Correct 11 ms 19028 KB Output is correct
110 Correct 12 ms 19028 KB Output is correct
111 Correct 10 ms 19108 KB Output is correct
112 Correct 10 ms 19028 KB Output is correct
113 Correct 11 ms 19160 KB Output is correct
114 Correct 12 ms 19080 KB Output is correct
115 Correct 12 ms 19028 KB Output is correct
116 Correct 14 ms 19028 KB Output is correct
117 Correct 10 ms 19028 KB Output is correct
118 Correct 12 ms 19028 KB Output is correct
119 Correct 11 ms 19376 KB Output is correct
120 Correct 11 ms 19388 KB Output is correct
121 Correct 442 ms 57156 KB Output is correct
122 Correct 681 ms 74652 KB Output is correct
123 Correct 671 ms 73932 KB Output is correct
124 Correct 10 ms 19028 KB Output is correct
125 Correct 11 ms 19016 KB Output is correct
126 Correct 10 ms 19028 KB Output is correct
127 Correct 935 ms 110440 KB Output is correct
128 Correct 935 ms 110740 KB Output is correct
129 Correct 929 ms 113224 KB Output is correct
130 Correct 13 ms 19636 KB Output is correct
131 Correct 15 ms 19904 KB Output is correct
132 Correct 414 ms 52744 KB Output is correct
133 Correct 719 ms 72720 KB Output is correct
134 Correct 991 ms 86704 KB Output is correct
135 Correct 696 ms 118444 KB Output is correct
136 Correct 720 ms 108800 KB Output is correct
137 Correct 523 ms 98052 KB Output is correct
138 Correct 690 ms 88780 KB Output is correct
139 Correct 653 ms 88220 KB Output is correct
140 Correct 11 ms 19012 KB Output is correct
141 Correct 103 ms 29656 KB Output is correct
142 Correct 24 ms 21444 KB Output is correct
143 Correct 47 ms 26000 KB Output is correct
144 Correct 74 ms 29560 KB Output is correct
145 Correct 373 ms 54300 KB Output is correct
146 Correct 502 ms 63088 KB Output is correct
147 Correct 597 ms 72064 KB Output is correct
148 Correct 712 ms 80256 KB Output is correct
149 Correct 819 ms 89532 KB Output is correct
150 Correct 933 ms 103868 KB Output is correct
151 Correct 953 ms 117628 KB Output is correct
152 Correct 13 ms 19768 KB Output is correct
153 Correct 16 ms 20276 KB Output is correct
154 Correct 444 ms 54640 KB Output is correct
155 Correct 700 ms 72924 KB Output is correct
156 Correct 992 ms 91112 KB Output is correct
157 Correct 12 ms 19108 KB Output is correct
158 Correct 10 ms 19028 KB Output is correct
159 Correct 11 ms 19084 KB Output is correct
160 Correct 12 ms 19116 KB Output is correct
161 Correct 660 ms 95964 KB Output is correct
162 Correct 515 ms 88800 KB Output is correct
163 Correct 480 ms 83412 KB Output is correct
164 Correct 502 ms 82108 KB Output is correct
165 Correct 567 ms 94188 KB Output is correct
166 Correct 620 ms 95620 KB Output is correct
167 Incorrect 165 ms 33240 KB a[19126] = 0 is not an odd integer
168 Halted 0 ms 0 KB -