Submission #435636

# Submission time Handle Problem Language Result Execution time Memory
435636 2021-06-23T13:54:31 Z 79brue Fountain Parks (IOI21_parks) C++17
70 / 100
1359 ms 148156 KB
#include <bits/stdc++.h>
#include "parks.h"

using namespace std;

typedef long long ll;

struct Edge{
    int u, v, idx;
    Edge(){}
    Edge(int u, int v, int idx): u(u), v(v), idx(idx){}

    bool operator==(const Edge &r)const{
        return idx==r.idx;
    }
};

struct dat{
    int x, y;
    vector<Edge> vec;
    dat(){}
    dat(int x, int y, vector<Edge> vec): x(x), y(y), vec(vec){}

    bool operator<(const dat &r)const{
        if(vec.size() != r.vec.size()) return vec.size() < r.vec.size();
        return make_pair(x, y) < make_pair(r.x, r.y);
    }
};

int xx[]={1, -1, 0, 0}, yy[]={0, 0, 1, -1};

int n;
pair<int, int> arr[200002];
map<pair<int, int>, int> idx;

int par[200002];
int edgeU[200002], edgeV[200002], edgeCnt;
int edgeA[200002], edgeB[200002];
vector<pair<int, int> > link[200002];
map<pair<int, int>, vector<Edge> > mp;
set<dat> st;

int find(int x){
    if(x==par[x]) return x;
    return par[x] = find(par[x]);
}

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

void dfs(int u){
    int x = arr[u].first, y = arr[u].second;
    for(int d=0; d<4; d++){
        int tx = x+xx[d]+xx[d], ty = y+yy[d]+yy[d];
        if(idx.find(make_pair(tx, ty)) == idx.end()) continue;
        int tmp = idx[make_pair(tx, ty)];
        if(find(u) == find(tmp)) continue;

        edgeU[edgeCnt] = u, edgeV[edgeCnt] = tmp;
        if(x == tx){
            mp[make_pair(x+1, y+yy[d])].push_back(Edge(u, tmp, edgeCnt));
            mp[make_pair(x-1, y+yy[d])].push_back(Edge(u, tmp, edgeCnt));
            link[edgeCnt].push_back(make_pair(x+1, y+yy[d]));
            link[edgeCnt].push_back(make_pair(x-1, y+yy[d]));
        }
        else{
            mp[make_pair(x+xx[d], y+1)].push_back(Edge(u, tmp, edgeCnt));
            mp[make_pair(x+xx[d], y-1)].push_back(Edge(u, tmp, edgeCnt));
            link[edgeCnt].push_back(make_pair(x+xx[d], y-1));
            link[edgeCnt].push_back(make_pair(x+xx[d], y+1));
        }
        edgeCnt++;

        merge(u, tmp);
        dfs(tmp);
    }
}

int construct_roads(vector<int> x, vector<int> y) {
    n = (int)x.size();
    for(int i=0; i<n; i++){
        arr[i] = make_pair(x[i], y[i]);
        par[i] = i;
        idx[arr[i]] = i;
    }

    int start = min_element(arr, arr+n) - arr;
    dfs(start);
    for(int i=0; i<n; i++){
        if(find(i) != find(0)) return 0;
    }

    for(auto p: mp){
        st.insert(dat(p.first.first, p.first.second, p.second));
    }
    while(!st.empty()){
        dat tmp = *st.begin(); st.erase(st.begin());
        if(tmp.vec.empty()) continue;
        Edge edge = tmp.vec[0];
        edgeA[edge.idx] = tmp.x;
        edgeB[edge.idx] = tmp.y;
        for(auto p: link[edge.idx]){
            if(p.first == tmp.x && p.second == tmp.y) continue;
            st.erase(dat(p.first, p.second, mp[p]));
            auto it = find(mp[p].begin(), mp[p].end(), Edge(edgeU[edge.idx], edgeV[edge.idx], edge.idx));
            if(it == mp[p].end()) continue;
            mp[p].erase(it);
            st.insert(dat(p.first, p.second, mp[p]));
        }
    }

    build(vector<int>(edgeU, edgeU+n-1), vector<int>(edgeV, edgeV+n-1), vector<int>(edgeA, edgeA+n-1), vector<int>(edgeB, edgeB+n-1));
    return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4940 KB Output is correct
2 Correct 4 ms 4940 KB Output is correct
3 Correct 4 ms 4940 KB Output is correct
4 Correct 4 ms 4940 KB Output is correct
5 Correct 4 ms 4940 KB Output is correct
6 Correct 4 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 527 ms 76292 KB Output is correct
10 Correct 51 ms 12100 KB Output is correct
11 Correct 276 ms 43392 KB Output is correct
12 Correct 69 ms 15664 KB Output is correct
13 Correct 79 ms 20544 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5284 KB Output is correct
16 Correct 564 ms 76208 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4940 KB Output is correct
2 Correct 4 ms 4940 KB Output is correct
3 Correct 4 ms 4940 KB Output is correct
4 Correct 4 ms 4940 KB Output is correct
5 Correct 4 ms 4940 KB Output is correct
6 Correct 4 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 527 ms 76292 KB Output is correct
10 Correct 51 ms 12100 KB Output is correct
11 Correct 276 ms 43392 KB Output is correct
12 Correct 69 ms 15664 KB Output is correct
13 Correct 79 ms 20544 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5284 KB Output is correct
16 Correct 564 ms 76208 KB Output is correct
17 Correct 4 ms 4940 KB Output is correct
18 Correct 4 ms 4940 KB Output is correct
19 Correct 4 ms 4940 KB Output is correct
20 Correct 5 ms 4940 KB Output is correct
21 Correct 5 ms 4940 KB Output is correct
22 Correct 4 ms 4940 KB Output is correct
23 Correct 1130 ms 108640 KB Output is correct
24 Correct 5 ms 4940 KB Output is correct
25 Correct 7 ms 5580 KB Output is correct
26 Correct 7 ms 5708 KB Output is correct
27 Correct 7 ms 5452 KB Output is correct
28 Correct 359 ms 46316 KB Output is correct
29 Correct 588 ms 67088 KB Output is correct
30 Correct 826 ms 88024 KB Output is correct
31 Correct 1043 ms 108620 KB Output is correct
32 Correct 4 ms 4940 KB Output is correct
33 Correct 4 ms 4940 KB Output is correct
34 Correct 6 ms 4940 KB Output is correct
35 Correct 5 ms 4940 KB Output is correct
36 Correct 4 ms 4940 KB Output is correct
37 Correct 5 ms 4940 KB Output is correct
38 Correct 4 ms 4940 KB Output is correct
39 Correct 4 ms 4940 KB Output is correct
40 Correct 4 ms 4940 KB Output is correct
41 Correct 4 ms 4940 KB Output is correct
42 Correct 3 ms 4940 KB Output is correct
43 Correct 5 ms 5452 KB Output is correct
44 Correct 9 ms 5452 KB Output is correct
45 Correct 508 ms 60212 KB Output is correct
46 Correct 763 ms 85032 KB Output is correct
47 Correct 755 ms 84924 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4940 KB Output is correct
2 Correct 4 ms 4940 KB Output is correct
3 Correct 4 ms 4940 KB Output is correct
4 Correct 4 ms 4940 KB Output is correct
5 Correct 4 ms 4940 KB Output is correct
6 Correct 4 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 527 ms 76292 KB Output is correct
10 Correct 51 ms 12100 KB Output is correct
11 Correct 276 ms 43392 KB Output is correct
12 Correct 69 ms 15664 KB Output is correct
13 Correct 79 ms 20544 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5284 KB Output is correct
16 Correct 564 ms 76208 KB Output is correct
17 Correct 4 ms 4940 KB Output is correct
18 Correct 4 ms 4940 KB Output is correct
19 Correct 4 ms 4940 KB Output is correct
20 Correct 5 ms 4940 KB Output is correct
21 Correct 5 ms 4940 KB Output is correct
22 Correct 4 ms 4940 KB Output is correct
23 Correct 1130 ms 108640 KB Output is correct
24 Correct 5 ms 4940 KB Output is correct
25 Correct 7 ms 5580 KB Output is correct
26 Correct 7 ms 5708 KB Output is correct
27 Correct 7 ms 5452 KB Output is correct
28 Correct 359 ms 46316 KB Output is correct
29 Correct 588 ms 67088 KB Output is correct
30 Correct 826 ms 88024 KB Output is correct
31 Correct 1043 ms 108620 KB Output is correct
32 Correct 4 ms 4940 KB Output is correct
33 Correct 4 ms 4940 KB Output is correct
34 Correct 6 ms 4940 KB Output is correct
35 Correct 5 ms 4940 KB Output is correct
36 Correct 4 ms 4940 KB Output is correct
37 Correct 5 ms 4940 KB Output is correct
38 Correct 4 ms 4940 KB Output is correct
39 Correct 4 ms 4940 KB Output is correct
40 Correct 4 ms 4940 KB Output is correct
41 Correct 4 ms 4940 KB Output is correct
42 Correct 3 ms 4940 KB Output is correct
43 Correct 5 ms 5452 KB Output is correct
44 Correct 9 ms 5452 KB Output is correct
45 Correct 508 ms 60212 KB Output is correct
46 Correct 763 ms 85032 KB Output is correct
47 Correct 755 ms 84924 KB Output is correct
48 Correct 4 ms 4940 KB Output is correct
49 Correct 4 ms 4940 KB Output is correct
50 Correct 3 ms 4940 KB Output is correct
51 Correct 4 ms 4940 KB Output is correct
52 Correct 4 ms 4940 KB Output is correct
53 Correct 4 ms 4940 KB Output is correct
54 Correct 5 ms 4996 KB Output is correct
55 Correct 1183 ms 106976 KB Output is correct
56 Correct 4 ms 4940 KB Output is correct
57 Correct 11 ms 5820 KB Output is correct
58 Correct 24 ms 7984 KB Output is correct
59 Correct 12 ms 6360 KB Output is correct
60 Correct 535 ms 55844 KB Output is correct
61 Correct 680 ms 73744 KB Output is correct
62 Correct 978 ms 89280 KB Output is correct
63 Correct 1139 ms 107108 KB Output is correct
64 Correct 4 ms 4940 KB Output is correct
65 Correct 4 ms 4948 KB Output is correct
66 Correct 4 ms 4940 KB Output is correct
67 Correct 1203 ms 147820 KB Output is correct
68 Correct 1182 ms 135236 KB Output is correct
69 Correct 1137 ms 141000 KB Output is correct
70 Correct 8 ms 5836 KB Output is correct
71 Correct 13 ms 6220 KB Output is correct
72 Correct 553 ms 55428 KB Output is correct
73 Correct 809 ms 80468 KB Output is correct
74 Correct 1135 ms 105620 KB Output is correct
75 Correct 1201 ms 116448 KB Output is correct
76 Correct 1286 ms 147768 KB Output is correct
77 Correct 12 ms 6092 KB Output is correct
78 Correct 15 ms 6220 KB Output is correct
79 Correct 602 ms 56876 KB Output is correct
80 Correct 908 ms 82908 KB Output is correct
81 Correct 1189 ms 108908 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4940 KB Output is correct
2 Correct 4 ms 4940 KB Output is correct
3 Correct 4 ms 4940 KB Output is correct
4 Correct 4 ms 4940 KB Output is correct
5 Correct 4 ms 4940 KB Output is correct
6 Correct 4 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 527 ms 76292 KB Output is correct
10 Correct 51 ms 12100 KB Output is correct
11 Correct 276 ms 43392 KB Output is correct
12 Correct 69 ms 15664 KB Output is correct
13 Correct 79 ms 20544 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5284 KB Output is correct
16 Correct 564 ms 76208 KB Output is correct
17 Correct 4 ms 4940 KB Output is correct
18 Correct 6 ms 4940 KB Output is correct
19 Correct 3 ms 4940 KB Output is correct
20 Correct 944 ms 104808 KB Output is correct
21 Correct 1069 ms 92052 KB Output is correct
22 Correct 1079 ms 104620 KB Output is correct
23 Correct 970 ms 121612 KB Output is correct
24 Correct 282 ms 22904 KB Output is correct
25 Correct 223 ms 23072 KB Output is correct
26 Correct 216 ms 23108 KB Output is correct
27 Correct 1122 ms 122688 KB Output is correct
28 Correct 994 ms 122676 KB Output is correct
29 Correct 1359 ms 122688 KB Output is correct
30 Correct 1308 ms 122788 KB Output is correct
31 Correct 4 ms 4940 KB Output is correct
32 Correct 62 ms 11912 KB Output is correct
33 Correct 78 ms 13924 KB Output is correct
34 Correct 954 ms 104932 KB Output is correct
35 Correct 15 ms 6716 KB Output is correct
36 Correct 73 ms 11244 KB Output is correct
37 Correct 110 ms 15776 KB Output is correct
38 Correct 378 ms 38280 KB Output is correct
39 Correct 565 ms 50656 KB Output is correct
40 Correct 760 ms 63080 KB Output is correct
41 Correct 879 ms 75652 KB Output is correct
42 Correct 1122 ms 88204 KB Output is correct
43 Correct 4 ms 4940 KB Output is correct
44 Correct 4 ms 4940 KB Output is correct
45 Correct 3 ms 4940 KB Output is correct
46 Correct 3 ms 4940 KB Output is correct
47 Correct 4 ms 4940 KB Output is correct
48 Correct 3 ms 4940 KB Output is correct
49 Correct 4 ms 4940 KB Output is correct
50 Correct 4 ms 4940 KB Output is correct
51 Correct 4 ms 4940 KB Output is correct
52 Correct 4 ms 4940 KB Output is correct
53 Correct 4 ms 4940 KB Output is correct
54 Correct 6 ms 5420 KB Output is correct
55 Correct 6 ms 5452 KB Output is correct
56 Correct 531 ms 60140 KB Output is correct
57 Correct 798 ms 84948 KB Output is correct
58 Correct 766 ms 84924 KB Output is correct
59 Correct 4 ms 4940 KB Output is correct
60 Correct 8 ms 4940 KB Output is correct
61 Correct 4 ms 4940 KB Output is correct
62 Correct 1136 ms 147768 KB Output is correct
63 Correct 1189 ms 135236 KB Output is correct
64 Correct 1166 ms 140912 KB Output is correct
65 Correct 9 ms 5836 KB Output is correct
66 Correct 10 ms 6252 KB Output is correct
67 Correct 530 ms 55348 KB Output is correct
68 Correct 865 ms 80520 KB Output is correct
69 Correct 1229 ms 105844 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4940 KB Output is correct
2 Correct 4 ms 4940 KB Output is correct
3 Correct 4 ms 4940 KB Output is correct
4 Correct 4 ms 4940 KB Output is correct
5 Correct 4 ms 4940 KB Output is correct
6 Correct 4 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 527 ms 76292 KB Output is correct
10 Correct 51 ms 12100 KB Output is correct
11 Correct 276 ms 43392 KB Output is correct
12 Correct 69 ms 15664 KB Output is correct
13 Correct 79 ms 20544 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5284 KB Output is correct
16 Correct 564 ms 76208 KB Output is correct
17 Correct 1150 ms 148156 KB Output is correct
18 Correct 1177 ms 142056 KB Output is correct
19 Correct 986 ms 104608 KB Output is correct
20 Correct 1151 ms 108140 KB Output is correct
21 Correct 1153 ms 112008 KB Output is correct
22 Correct 7 ms 4940 KB Output is correct
23 Correct 150 ms 19384 KB Output is correct
24 Correct 33 ms 8840 KB Output is correct
25 Correct 95 ms 13764 KB Output is correct
26 Correct 126 ms 18500 KB Output is correct
27 Correct 517 ms 52868 KB Output is correct
28 Correct 731 ms 64680 KB Output is correct
29 Correct 859 ms 77072 KB Output is correct
30 Correct 1016 ms 89136 KB Output is correct
31 Correct 1236 ms 101048 KB Output is correct
32 Correct 1254 ms 116532 KB Output is correct
33 Correct 1202 ms 147772 KB Output is correct
34 Correct 9 ms 6092 KB Output is correct
35 Correct 11 ms 6220 KB Output is correct
36 Correct 542 ms 56772 KB Output is correct
37 Correct 872 ms 82988 KB Output is correct
38 Correct 1168 ms 108796 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 4940 KB Output is correct
2 Correct 4 ms 4940 KB Output is correct
3 Correct 4 ms 4940 KB Output is correct
4 Correct 4 ms 4940 KB Output is correct
5 Correct 4 ms 4940 KB Output is correct
6 Correct 4 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 3 ms 4940 KB Output is correct
9 Correct 527 ms 76292 KB Output is correct
10 Correct 51 ms 12100 KB Output is correct
11 Correct 276 ms 43392 KB Output is correct
12 Correct 69 ms 15664 KB Output is correct
13 Correct 79 ms 20544 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5284 KB Output is correct
16 Correct 564 ms 76208 KB Output is correct
17 Correct 4 ms 4940 KB Output is correct
18 Correct 4 ms 4940 KB Output is correct
19 Correct 4 ms 4940 KB Output is correct
20 Correct 5 ms 4940 KB Output is correct
21 Correct 5 ms 4940 KB Output is correct
22 Correct 4 ms 4940 KB Output is correct
23 Correct 1130 ms 108640 KB Output is correct
24 Correct 5 ms 4940 KB Output is correct
25 Correct 7 ms 5580 KB Output is correct
26 Correct 7 ms 5708 KB Output is correct
27 Correct 7 ms 5452 KB Output is correct
28 Correct 359 ms 46316 KB Output is correct
29 Correct 588 ms 67088 KB Output is correct
30 Correct 826 ms 88024 KB Output is correct
31 Correct 1043 ms 108620 KB Output is correct
32 Correct 4 ms 4940 KB Output is correct
33 Correct 4 ms 4940 KB Output is correct
34 Correct 6 ms 4940 KB Output is correct
35 Correct 5 ms 4940 KB Output is correct
36 Correct 4 ms 4940 KB Output is correct
37 Correct 5 ms 4940 KB Output is correct
38 Correct 4 ms 4940 KB Output is correct
39 Correct 4 ms 4940 KB Output is correct
40 Correct 4 ms 4940 KB Output is correct
41 Correct 4 ms 4940 KB Output is correct
42 Correct 3 ms 4940 KB Output is correct
43 Correct 5 ms 5452 KB Output is correct
44 Correct 9 ms 5452 KB Output is correct
45 Correct 508 ms 60212 KB Output is correct
46 Correct 763 ms 85032 KB Output is correct
47 Correct 755 ms 84924 KB Output is correct
48 Correct 4 ms 4940 KB Output is correct
49 Correct 4 ms 4940 KB Output is correct
50 Correct 3 ms 4940 KB Output is correct
51 Correct 4 ms 4940 KB Output is correct
52 Correct 4 ms 4940 KB Output is correct
53 Correct 4 ms 4940 KB Output is correct
54 Correct 5 ms 4996 KB Output is correct
55 Correct 1183 ms 106976 KB Output is correct
56 Correct 4 ms 4940 KB Output is correct
57 Correct 11 ms 5820 KB Output is correct
58 Correct 24 ms 7984 KB Output is correct
59 Correct 12 ms 6360 KB Output is correct
60 Correct 535 ms 55844 KB Output is correct
61 Correct 680 ms 73744 KB Output is correct
62 Correct 978 ms 89280 KB Output is correct
63 Correct 1139 ms 107108 KB Output is correct
64 Correct 4 ms 4940 KB Output is correct
65 Correct 4 ms 4948 KB Output is correct
66 Correct 4 ms 4940 KB Output is correct
67 Correct 1203 ms 147820 KB Output is correct
68 Correct 1182 ms 135236 KB Output is correct
69 Correct 1137 ms 141000 KB Output is correct
70 Correct 8 ms 5836 KB Output is correct
71 Correct 13 ms 6220 KB Output is correct
72 Correct 553 ms 55428 KB Output is correct
73 Correct 809 ms 80468 KB Output is correct
74 Correct 1135 ms 105620 KB Output is correct
75 Correct 1201 ms 116448 KB Output is correct
76 Correct 1286 ms 147768 KB Output is correct
77 Correct 12 ms 6092 KB Output is correct
78 Correct 15 ms 6220 KB Output is correct
79 Correct 602 ms 56876 KB Output is correct
80 Correct 908 ms 82908 KB Output is correct
81 Correct 1189 ms 108908 KB Output is correct
82 Correct 4 ms 4940 KB Output is correct
83 Correct 6 ms 4940 KB Output is correct
84 Correct 3 ms 4940 KB Output is correct
85 Correct 944 ms 104808 KB Output is correct
86 Correct 1069 ms 92052 KB Output is correct
87 Correct 1079 ms 104620 KB Output is correct
88 Correct 970 ms 121612 KB Output is correct
89 Correct 282 ms 22904 KB Output is correct
90 Correct 223 ms 23072 KB Output is correct
91 Correct 216 ms 23108 KB Output is correct
92 Correct 1122 ms 122688 KB Output is correct
93 Correct 994 ms 122676 KB Output is correct
94 Correct 1359 ms 122688 KB Output is correct
95 Correct 1308 ms 122788 KB Output is correct
96 Correct 4 ms 4940 KB Output is correct
97 Correct 62 ms 11912 KB Output is correct
98 Correct 78 ms 13924 KB Output is correct
99 Correct 954 ms 104932 KB Output is correct
100 Correct 15 ms 6716 KB Output is correct
101 Correct 73 ms 11244 KB Output is correct
102 Correct 110 ms 15776 KB Output is correct
103 Correct 378 ms 38280 KB Output is correct
104 Correct 565 ms 50656 KB Output is correct
105 Correct 760 ms 63080 KB Output is correct
106 Correct 879 ms 75652 KB Output is correct
107 Correct 1122 ms 88204 KB Output is correct
108 Correct 4 ms 4940 KB Output is correct
109 Correct 4 ms 4940 KB Output is correct
110 Correct 3 ms 4940 KB Output is correct
111 Correct 3 ms 4940 KB Output is correct
112 Correct 4 ms 4940 KB Output is correct
113 Correct 3 ms 4940 KB Output is correct
114 Correct 4 ms 4940 KB Output is correct
115 Correct 4 ms 4940 KB Output is correct
116 Correct 4 ms 4940 KB Output is correct
117 Correct 4 ms 4940 KB Output is correct
118 Correct 4 ms 4940 KB Output is correct
119 Correct 6 ms 5420 KB Output is correct
120 Correct 6 ms 5452 KB Output is correct
121 Correct 531 ms 60140 KB Output is correct
122 Correct 798 ms 84948 KB Output is correct
123 Correct 766 ms 84924 KB Output is correct
124 Correct 4 ms 4940 KB Output is correct
125 Correct 8 ms 4940 KB Output is correct
126 Correct 4 ms 4940 KB Output is correct
127 Correct 1136 ms 147768 KB Output is correct
128 Correct 1189 ms 135236 KB Output is correct
129 Correct 1166 ms 140912 KB Output is correct
130 Correct 9 ms 5836 KB Output is correct
131 Correct 10 ms 6252 KB Output is correct
132 Correct 530 ms 55348 KB Output is correct
133 Correct 865 ms 80520 KB Output is correct
134 Correct 1229 ms 105844 KB Output is correct
135 Correct 1150 ms 148156 KB Output is correct
136 Correct 1177 ms 142056 KB Output is correct
137 Correct 986 ms 104608 KB Output is correct
138 Correct 1151 ms 108140 KB Output is correct
139 Correct 1153 ms 112008 KB Output is correct
140 Correct 7 ms 4940 KB Output is correct
141 Correct 150 ms 19384 KB Output is correct
142 Correct 33 ms 8840 KB Output is correct
143 Correct 95 ms 13764 KB Output is correct
144 Correct 126 ms 18500 KB Output is correct
145 Correct 517 ms 52868 KB Output is correct
146 Correct 731 ms 64680 KB Output is correct
147 Correct 859 ms 77072 KB Output is correct
148 Correct 1016 ms 89136 KB Output is correct
149 Correct 1236 ms 101048 KB Output is correct
150 Correct 1254 ms 116532 KB Output is correct
151 Correct 1202 ms 147772 KB Output is correct
152 Correct 9 ms 6092 KB Output is correct
153 Correct 11 ms 6220 KB Output is correct
154 Correct 542 ms 56772 KB Output is correct
155 Correct 872 ms 82988 KB Output is correct
156 Correct 1168 ms 108796 KB Output is correct
157 Correct 4 ms 4940 KB Output is correct
158 Correct 4 ms 4940 KB Output is correct
159 Correct 4 ms 4940 KB Output is correct
160 Correct 4 ms 4996 KB Output is correct
161 Correct 1166 ms 104292 KB Output is correct
162 Correct 925 ms 104896 KB Output is correct
163 Correct 1044 ms 99500 KB Output is correct
164 Correct 1041 ms 99520 KB Output is correct
165 Correct 1127 ms 102944 KB Output is correct
166 Correct 1058 ms 103840 KB Output is correct
167 Incorrect 219 ms 24068 KB a[17303] = 0 is not an odd integer
168 Halted 0 ms 0 KB -