Submission #435639

# Submission time Handle Problem Language Result Execution time Memory
435639 2021-06-23T13:57:12 Z 79brue Fountain Parks (IOI21_parks) C++17
70 / 100
1542 ms 148232 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, 0, -1, 0}, yy[]={0, 1, 0, -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 5008 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 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 4 ms 4940 KB Output is correct
9 Correct 550 ms 76276 KB Output is correct
10 Correct 57 ms 12280 KB Output is correct
11 Correct 267 ms 43292 KB Output is correct
12 Correct 77 ms 15724 KB Output is correct
13 Correct 80 ms 20524 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5324 KB Output is correct
16 Correct 527 ms 76296 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 5008 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 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 4 ms 4940 KB Output is correct
9 Correct 550 ms 76276 KB Output is correct
10 Correct 57 ms 12280 KB Output is correct
11 Correct 267 ms 43292 KB Output is correct
12 Correct 77 ms 15724 KB Output is correct
13 Correct 80 ms 20524 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5324 KB Output is correct
16 Correct 527 ms 76296 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 4 ms 4940 KB Output is correct
21 Correct 4 ms 4940 KB Output is correct
22 Correct 4 ms 4940 KB Output is correct
23 Correct 1219 ms 126088 KB Output is correct
24 Correct 4 ms 4940 KB Output is correct
25 Correct 8 ms 5708 KB Output is correct
26 Correct 10 ms 5708 KB Output is correct
27 Correct 9 ms 5524 KB Output is correct
28 Correct 424 ms 53152 KB Output is correct
29 Correct 639 ms 77428 KB Output is correct
30 Correct 911 ms 101644 KB Output is correct
31 Correct 1193 ms 125920 KB Output is correct
32 Correct 4 ms 4940 KB Output is correct
33 Correct 4 ms 4940 KB Output is correct
34 Correct 4 ms 4940 KB Output is correct
35 Correct 4 ms 4940 KB Output is correct
36 Correct 4 ms 4940 KB Output is correct
37 Correct 4 ms 4940 KB Output is correct
38 Correct 4 ms 4940 KB Output is correct
39 Correct 7 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 4 ms 4940 KB Output is correct
43 Correct 5 ms 5452 KB Output is correct
44 Correct 6 ms 5452 KB Output is correct
45 Correct 520 ms 60216 KB Output is correct
46 Correct 753 ms 84936 KB Output is correct
47 Correct 781 ms 84940 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 5008 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 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 4 ms 4940 KB Output is correct
9 Correct 550 ms 76276 KB Output is correct
10 Correct 57 ms 12280 KB Output is correct
11 Correct 267 ms 43292 KB Output is correct
12 Correct 77 ms 15724 KB Output is correct
13 Correct 80 ms 20524 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5324 KB Output is correct
16 Correct 527 ms 76296 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 4 ms 4940 KB Output is correct
21 Correct 4 ms 4940 KB Output is correct
22 Correct 4 ms 4940 KB Output is correct
23 Correct 1219 ms 126088 KB Output is correct
24 Correct 4 ms 4940 KB Output is correct
25 Correct 8 ms 5708 KB Output is correct
26 Correct 10 ms 5708 KB Output is correct
27 Correct 9 ms 5524 KB Output is correct
28 Correct 424 ms 53152 KB Output is correct
29 Correct 639 ms 77428 KB Output is correct
30 Correct 911 ms 101644 KB Output is correct
31 Correct 1193 ms 125920 KB Output is correct
32 Correct 4 ms 4940 KB Output is correct
33 Correct 4 ms 4940 KB Output is correct
34 Correct 4 ms 4940 KB Output is correct
35 Correct 4 ms 4940 KB Output is correct
36 Correct 4 ms 4940 KB Output is correct
37 Correct 4 ms 4940 KB Output is correct
38 Correct 4 ms 4940 KB Output is correct
39 Correct 7 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 4 ms 4940 KB Output is correct
43 Correct 5 ms 5452 KB Output is correct
44 Correct 6 ms 5452 KB Output is correct
45 Correct 520 ms 60216 KB Output is correct
46 Correct 753 ms 84936 KB Output is correct
47 Correct 781 ms 84940 KB Output is correct
48 Correct 4 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 4 ms 4940 KB Output is correct
55 Correct 1176 ms 114344 KB Output is correct
56 Correct 4 ms 4940 KB Output is correct
57 Correct 10 ms 5896 KB Output is correct
58 Correct 24 ms 8292 KB Output is correct
59 Correct 11 ms 6456 KB Output is correct
60 Correct 525 ms 59568 KB Output is correct
61 Correct 779 ms 78884 KB Output is correct
62 Correct 902 ms 95444 KB Output is correct
63 Correct 1166 ms 114460 KB Output is correct
64 Correct 5 ms 4940 KB Output is correct
65 Correct 4 ms 4940 KB Output is correct
66 Correct 4 ms 4980 KB Output is correct
67 Correct 1178 ms 147752 KB Output is correct
68 Correct 1154 ms 135236 KB Output is correct
69 Correct 1158 ms 140852 KB Output is correct
70 Correct 8 ms 5836 KB Output is correct
71 Correct 10 ms 6220 KB Output is correct
72 Correct 533 ms 55348 KB Output is correct
73 Correct 793 ms 80580 KB Output is correct
74 Correct 1163 ms 105716 KB Output is correct
75 Correct 1272 ms 125196 KB Output is correct
76 Correct 1204 ms 147876 KB Output is correct
77 Correct 11 ms 6092 KB Output is correct
78 Correct 11 ms 6252 KB Output is correct
79 Correct 556 ms 56636 KB Output is correct
80 Correct 913 ms 82604 KB Output is correct
81 Correct 1194 ms 108408 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 5008 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 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 4 ms 4940 KB Output is correct
9 Correct 550 ms 76276 KB Output is correct
10 Correct 57 ms 12280 KB Output is correct
11 Correct 267 ms 43292 KB Output is correct
12 Correct 77 ms 15724 KB Output is correct
13 Correct 80 ms 20524 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5324 KB Output is correct
16 Correct 527 ms 76296 KB Output is correct
17 Correct 3 ms 4940 KB Output is correct
18 Correct 5 ms 4940 KB Output is correct
19 Correct 5 ms 4940 KB Output is correct
20 Correct 1135 ms 104808 KB Output is correct
21 Correct 1184 ms 92060 KB Output is correct
22 Correct 1127 ms 104580 KB Output is correct
23 Correct 1094 ms 121660 KB Output is correct
24 Correct 238 ms 22984 KB Output is correct
25 Correct 214 ms 23136 KB Output is correct
26 Correct 220 ms 23128 KB Output is correct
27 Correct 1051 ms 122692 KB Output is correct
28 Correct 1178 ms 122636 KB Output is correct
29 Correct 1476 ms 122616 KB Output is correct
30 Correct 1542 ms 122760 KB Output is correct
31 Correct 4 ms 4940 KB Output is correct
32 Correct 67 ms 11856 KB Output is correct
33 Correct 119 ms 14000 KB Output is correct
34 Correct 1029 ms 104816 KB Output is correct
35 Correct 18 ms 6692 KB Output is correct
36 Correct 54 ms 11224 KB Output is correct
37 Correct 136 ms 15756 KB Output is correct
38 Correct 459 ms 38320 KB Output is correct
39 Correct 574 ms 50576 KB Output is correct
40 Correct 730 ms 63092 KB Output is correct
41 Correct 935 ms 75712 KB Output is correct
42 Correct 1151 ms 88188 KB Output is correct
43 Correct 4 ms 4940 KB Output is correct
44 Correct 4 ms 4940 KB Output is correct
45 Correct 4 ms 4940 KB Output is correct
46 Correct 5 ms 4940 KB Output is correct
47 Correct 5 ms 4940 KB Output is correct
48 Correct 5 ms 4940 KB Output is correct
49 Correct 4 ms 4944 KB Output is correct
50 Correct 4 ms 4940 KB Output is correct
51 Correct 3 ms 4940 KB Output is correct
52 Correct 5 ms 4940 KB Output is correct
53 Correct 5 ms 4940 KB Output is correct
54 Correct 7 ms 5452 KB Output is correct
55 Correct 7 ms 5324 KB Output is correct
56 Correct 564 ms 60116 KB Output is correct
57 Correct 758 ms 85036 KB Output is correct
58 Correct 808 ms 84912 KB Output is correct
59 Correct 4 ms 4908 KB Output is correct
60 Correct 4 ms 4940 KB Output is correct
61 Correct 4 ms 4940 KB Output is correct
62 Correct 1237 ms 147768 KB Output is correct
63 Correct 1294 ms 135188 KB Output is correct
64 Correct 1217 ms 140848 KB Output is correct
65 Correct 8 ms 5836 KB Output is correct
66 Correct 10 ms 6216 KB Output is correct
67 Correct 577 ms 55352 KB Output is correct
68 Correct 874 ms 80384 KB Output is correct
69 Correct 1358 ms 105628 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 5008 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 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 4 ms 4940 KB Output is correct
9 Correct 550 ms 76276 KB Output is correct
10 Correct 57 ms 12280 KB Output is correct
11 Correct 267 ms 43292 KB Output is correct
12 Correct 77 ms 15724 KB Output is correct
13 Correct 80 ms 20524 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5324 KB Output is correct
16 Correct 527 ms 76296 KB Output is correct
17 Correct 1227 ms 148232 KB Output is correct
18 Correct 1360 ms 142084 KB Output is correct
19 Correct 1051 ms 104644 KB Output is correct
20 Correct 1335 ms 108140 KB Output is correct
21 Correct 1141 ms 111856 KB Output is correct
22 Correct 4 ms 4940 KB Output is correct
23 Correct 149 ms 19308 KB Output is correct
24 Correct 46 ms 8916 KB Output is correct
25 Correct 79 ms 13704 KB Output is correct
26 Correct 156 ms 18620 KB Output is correct
27 Correct 734 ms 54048 KB Output is correct
28 Correct 796 ms 66048 KB Output is correct
29 Correct 888 ms 77224 KB Output is correct
30 Correct 1175 ms 89700 KB Output is correct
31 Correct 1265 ms 103052 KB Output is correct
32 Correct 1232 ms 125164 KB Output is correct
33 Correct 1241 ms 147732 KB Output is correct
34 Correct 10 ms 6092 KB Output is correct
35 Correct 11 ms 6296 KB Output is correct
36 Correct 624 ms 56644 KB Output is correct
37 Correct 835 ms 82600 KB Output is correct
38 Correct 1246 ms 108404 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 5008 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 3 ms 4940 KB Output is correct
7 Correct 4 ms 4940 KB Output is correct
8 Correct 4 ms 4940 KB Output is correct
9 Correct 550 ms 76276 KB Output is correct
10 Correct 57 ms 12280 KB Output is correct
11 Correct 267 ms 43292 KB Output is correct
12 Correct 77 ms 15724 KB Output is correct
13 Correct 80 ms 20524 KB Output is correct
14 Correct 5 ms 5196 KB Output is correct
15 Correct 5 ms 5324 KB Output is correct
16 Correct 527 ms 76296 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 4 ms 4940 KB Output is correct
21 Correct 4 ms 4940 KB Output is correct
22 Correct 4 ms 4940 KB Output is correct
23 Correct 1219 ms 126088 KB Output is correct
24 Correct 4 ms 4940 KB Output is correct
25 Correct 8 ms 5708 KB Output is correct
26 Correct 10 ms 5708 KB Output is correct
27 Correct 9 ms 5524 KB Output is correct
28 Correct 424 ms 53152 KB Output is correct
29 Correct 639 ms 77428 KB Output is correct
30 Correct 911 ms 101644 KB Output is correct
31 Correct 1193 ms 125920 KB Output is correct
32 Correct 4 ms 4940 KB Output is correct
33 Correct 4 ms 4940 KB Output is correct
34 Correct 4 ms 4940 KB Output is correct
35 Correct 4 ms 4940 KB Output is correct
36 Correct 4 ms 4940 KB Output is correct
37 Correct 4 ms 4940 KB Output is correct
38 Correct 4 ms 4940 KB Output is correct
39 Correct 7 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 4 ms 4940 KB Output is correct
43 Correct 5 ms 5452 KB Output is correct
44 Correct 6 ms 5452 KB Output is correct
45 Correct 520 ms 60216 KB Output is correct
46 Correct 753 ms 84936 KB Output is correct
47 Correct 781 ms 84940 KB Output is correct
48 Correct 4 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 4 ms 4940 KB Output is correct
55 Correct 1176 ms 114344 KB Output is correct
56 Correct 4 ms 4940 KB Output is correct
57 Correct 10 ms 5896 KB Output is correct
58 Correct 24 ms 8292 KB Output is correct
59 Correct 11 ms 6456 KB Output is correct
60 Correct 525 ms 59568 KB Output is correct
61 Correct 779 ms 78884 KB Output is correct
62 Correct 902 ms 95444 KB Output is correct
63 Correct 1166 ms 114460 KB Output is correct
64 Correct 5 ms 4940 KB Output is correct
65 Correct 4 ms 4940 KB Output is correct
66 Correct 4 ms 4980 KB Output is correct
67 Correct 1178 ms 147752 KB Output is correct
68 Correct 1154 ms 135236 KB Output is correct
69 Correct 1158 ms 140852 KB Output is correct
70 Correct 8 ms 5836 KB Output is correct
71 Correct 10 ms 6220 KB Output is correct
72 Correct 533 ms 55348 KB Output is correct
73 Correct 793 ms 80580 KB Output is correct
74 Correct 1163 ms 105716 KB Output is correct
75 Correct 1272 ms 125196 KB Output is correct
76 Correct 1204 ms 147876 KB Output is correct
77 Correct 11 ms 6092 KB Output is correct
78 Correct 11 ms 6252 KB Output is correct
79 Correct 556 ms 56636 KB Output is correct
80 Correct 913 ms 82604 KB Output is correct
81 Correct 1194 ms 108408 KB Output is correct
82 Correct 3 ms 4940 KB Output is correct
83 Correct 5 ms 4940 KB Output is correct
84 Correct 5 ms 4940 KB Output is correct
85 Correct 1135 ms 104808 KB Output is correct
86 Correct 1184 ms 92060 KB Output is correct
87 Correct 1127 ms 104580 KB Output is correct
88 Correct 1094 ms 121660 KB Output is correct
89 Correct 238 ms 22984 KB Output is correct
90 Correct 214 ms 23136 KB Output is correct
91 Correct 220 ms 23128 KB Output is correct
92 Correct 1051 ms 122692 KB Output is correct
93 Correct 1178 ms 122636 KB Output is correct
94 Correct 1476 ms 122616 KB Output is correct
95 Correct 1542 ms 122760 KB Output is correct
96 Correct 4 ms 4940 KB Output is correct
97 Correct 67 ms 11856 KB Output is correct
98 Correct 119 ms 14000 KB Output is correct
99 Correct 1029 ms 104816 KB Output is correct
100 Correct 18 ms 6692 KB Output is correct
101 Correct 54 ms 11224 KB Output is correct
102 Correct 136 ms 15756 KB Output is correct
103 Correct 459 ms 38320 KB Output is correct
104 Correct 574 ms 50576 KB Output is correct
105 Correct 730 ms 63092 KB Output is correct
106 Correct 935 ms 75712 KB Output is correct
107 Correct 1151 ms 88188 KB Output is correct
108 Correct 4 ms 4940 KB Output is correct
109 Correct 4 ms 4940 KB Output is correct
110 Correct 4 ms 4940 KB Output is correct
111 Correct 5 ms 4940 KB Output is correct
112 Correct 5 ms 4940 KB Output is correct
113 Correct 5 ms 4940 KB Output is correct
114 Correct 4 ms 4944 KB Output is correct
115 Correct 4 ms 4940 KB Output is correct
116 Correct 3 ms 4940 KB Output is correct
117 Correct 5 ms 4940 KB Output is correct
118 Correct 5 ms 4940 KB Output is correct
119 Correct 7 ms 5452 KB Output is correct
120 Correct 7 ms 5324 KB Output is correct
121 Correct 564 ms 60116 KB Output is correct
122 Correct 758 ms 85036 KB Output is correct
123 Correct 808 ms 84912 KB Output is correct
124 Correct 4 ms 4908 KB Output is correct
125 Correct 4 ms 4940 KB Output is correct
126 Correct 4 ms 4940 KB Output is correct
127 Correct 1237 ms 147768 KB Output is correct
128 Correct 1294 ms 135188 KB Output is correct
129 Correct 1217 ms 140848 KB Output is correct
130 Correct 8 ms 5836 KB Output is correct
131 Correct 10 ms 6216 KB Output is correct
132 Correct 577 ms 55352 KB Output is correct
133 Correct 874 ms 80384 KB Output is correct
134 Correct 1358 ms 105628 KB Output is correct
135 Correct 1227 ms 148232 KB Output is correct
136 Correct 1360 ms 142084 KB Output is correct
137 Correct 1051 ms 104644 KB Output is correct
138 Correct 1335 ms 108140 KB Output is correct
139 Correct 1141 ms 111856 KB Output is correct
140 Correct 4 ms 4940 KB Output is correct
141 Correct 149 ms 19308 KB Output is correct
142 Correct 46 ms 8916 KB Output is correct
143 Correct 79 ms 13704 KB Output is correct
144 Correct 156 ms 18620 KB Output is correct
145 Correct 734 ms 54048 KB Output is correct
146 Correct 796 ms 66048 KB Output is correct
147 Correct 888 ms 77224 KB Output is correct
148 Correct 1175 ms 89700 KB Output is correct
149 Correct 1265 ms 103052 KB Output is correct
150 Correct 1232 ms 125164 KB Output is correct
151 Correct 1241 ms 147732 KB Output is correct
152 Correct 10 ms 6092 KB Output is correct
153 Correct 11 ms 6296 KB Output is correct
154 Correct 624 ms 56644 KB Output is correct
155 Correct 835 ms 82600 KB Output is correct
156 Correct 1246 ms 108404 KB Output is correct
157 Correct 4 ms 4940 KB Output is correct
158 Correct 5 ms 4940 KB Output is correct
159 Correct 4 ms 4940 KB Output is correct
160 Correct 4 ms 4940 KB Output is correct
161 Correct 1205 ms 104348 KB Output is correct
162 Correct 992 ms 104808 KB Output is correct
163 Correct 1129 ms 99444 KB Output is correct
164 Correct 1067 ms 99544 KB Output is correct
165 Correct 1207 ms 102796 KB Output is correct
166 Correct 1150 ms 103760 KB Output is correct
167 Incorrect 227 ms 25088 KB a[36051] = 0 is not an odd integer
168 Halted 0 ms 0 KB -