답안 #974510

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
974510 2024-05-03T11:57:50 Z onlk97 분수 공원 (IOI21_parks) C++17
70 / 100
360 ms 65844 KB
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;
int dsu[200010],L,R;
vector <int> g[200010],match1,match2,dist;
int prt(int n){
    if (dsu[n]==n) return n;
    return dsu[n]=prt(dsu[n]);
}
void unn(int u,int v){
    dsu[prt(u)]=dsu[prt(v)];
}
map <pair <int,int>,int> mp;
vector <pair <int,int> > vmp;
int gt(int u,int v){
    if (mp.find({u,v})==mp.end()){
        mp[{u,v}]=mp.size()+1;
        vmp.push_back({u,v});
    }
    return mp[{u,v}];
}
void bfs(){
    dist.clear();
    for (int i=0; i<L; i++) dist.push_back(-1);
    queue <int> q;
    for (int i=0; i<L; i++){
        if (match1[i]==-1){
            dist[i]=0;
            q.push(i);
        }
    }
    while (!q.empty()){
        int tp=q.front(); q.pop();
        for (int i:g[tp]){
            if (match2[i]!=-1&&dist[match2[i]]==-1){
                dist[match2[i]]=dist[tp]+1;
                q.push(match2[i]);
            }
        }
    }
}
int dfs(int cur){
    for (int i:g[cur]){
        if (match2[i]==-1){
            match1[cur]=i;
            match2[i]=cur;
            return 1;
        }
    }
    for (int i:g[cur]){
        if (dist[match2[i]]==dist[cur]+1&&dfs(match2[i])){
            match1[cur]=i;
            match2[i]=cur;
            return 1;
        }
    }
    return 0;
}
bool cmp(pair <pair <int,int>,int> u,pair <pair <int,int>,int> v){
    if (u.first.second!=v.first.second) return u.first.second<v.first.second;
    return u.first.first<v.first.first;
}
int construct_roads(vector <int> x,vector <int> y){
    int n=x.size();
    pair <pair <int,int>,int> a[n];
    for (int i=0; i<n; i++) a[i]={{x[i],y[i]},i};
    sort(a,a+n);
    for (int i=0; i<n; i++) dsu[i]=i;
    vector <int> u,v,A,B;
    int cnt=0;
    vmp.push_back({-1,-1});
    for (int i=1; i<n; i++){
        if (a[i-1].first.first==a[i].first.first&&a[i-1].first.second+2==a[i].first.second&&prt(a[i-1].second)!=prt(a[i].second)){
            u.push_back(a[i-1].second);
            v.push_back(a[i].second);
            unn(a[i-1].second,a[i].second);
            int tp=gt(a[i].first.first-1,a[i].first.second-1);
            g[cnt].push_back(tp);
            tp=gt(a[i].first.first+1,a[i].first.second-1);
            g[cnt].push_back(tp);
            cnt++;
        }
    }
    sort(a,a+n,cmp);
    for (int i=1; i<n; i++){
        if (a[i-1].first.first+2==a[i].first.first&&a[i-1].first.second==a[i].first.second&&prt(a[i-1].second)!=prt(a[i].second)){
            u.push_back(a[i-1].second);
            v.push_back(a[i].second);
            unn(a[i-1].second,a[i].second);
            int tp=gt(a[i].first.first-1,a[i].first.second-1);
            g[cnt].push_back(tp);
            tp=gt(a[i].first.first-1,a[i].first.second+1);
            g[cnt].push_back(tp);
            cnt++;
        }
    }
    for (int i=1; i<n; i++){
        if (prt(a[i].second)!=prt(a[0].second)) return 0;
    }
    for (int i=0; i<n-1; i++) match1.push_back(-1);
    for (int i=0; i<=vmp.size(); i++) match2.push_back(-1);
    L=match1.size(); R=match2.size();
    while (1){
        bfs();
        int aug=0;
        for (int i=0; i<L; i++){
            if (match1[i]==-1) aug+=dfs(i);
        }
        if (!aug) break;
    }
    for (int i=0; i<L; i++){
        int tp=match1[i];
        A.push_back(vmp[tp].first);
        B.push_back(vmp[tp].second);
    }
    build(u,v,A,B);
    return 1;
}

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:101:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  101 |     for (int i=0; i<=vmp.size(); i++) match2.push_back(-1);
      |                   ~^~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 5144 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 168 ms 35488 KB Output is correct
10 Correct 13 ms 8132 KB Output is correct
11 Correct 79 ms 21228 KB Output is correct
12 Correct 20 ms 9664 KB Output is correct
13 Correct 48 ms 15104 KB Output is correct
14 Correct 2 ms 5172 KB Output is correct
15 Correct 4 ms 5480 KB Output is correct
16 Correct 164 ms 35484 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 5144 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 168 ms 35488 KB Output is correct
10 Correct 13 ms 8132 KB Output is correct
11 Correct 79 ms 21228 KB Output is correct
12 Correct 20 ms 9664 KB Output is correct
13 Correct 48 ms 15104 KB Output is correct
14 Correct 2 ms 5172 KB Output is correct
15 Correct 4 ms 5480 KB Output is correct
16 Correct 164 ms 35484 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 2 ms 5140 KB Output is correct
19 Correct 2 ms 4956 KB Output is correct
20 Correct 2 ms 5144 KB Output is correct
21 Correct 1 ms 4956 KB Output is correct
22 Correct 2 ms 5144 KB Output is correct
23 Correct 322 ms 58540 KB Output is correct
24 Correct 2 ms 4956 KB Output is correct
25 Correct 3 ms 5468 KB Output is correct
26 Correct 5 ms 5464 KB Output is correct
27 Correct 4 ms 5720 KB Output is correct
28 Correct 119 ms 25992 KB Output is correct
29 Correct 180 ms 36372 KB Output is correct
30 Correct 250 ms 47216 KB Output is correct
31 Correct 310 ms 57920 KB Output is correct
32 Correct 1 ms 4956 KB Output is correct
33 Correct 2 ms 5116 KB Output is correct
34 Correct 1 ms 4956 KB Output is correct
35 Correct 2 ms 4952 KB Output is correct
36 Correct 2 ms 4956 KB Output is correct
37 Correct 2 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 2 ms 5148 KB Output is correct
40 Correct 1 ms 4956 KB Output is correct
41 Correct 2 ms 5144 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 3 ms 5464 KB Output is correct
44 Correct 4 ms 5468 KB Output is correct
45 Correct 144 ms 29892 KB Output is correct
46 Correct 242 ms 41300 KB Output is correct
47 Correct 234 ms 41420 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 5144 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 168 ms 35488 KB Output is correct
10 Correct 13 ms 8132 KB Output is correct
11 Correct 79 ms 21228 KB Output is correct
12 Correct 20 ms 9664 KB Output is correct
13 Correct 48 ms 15104 KB Output is correct
14 Correct 2 ms 5172 KB Output is correct
15 Correct 4 ms 5480 KB Output is correct
16 Correct 164 ms 35484 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 2 ms 5140 KB Output is correct
19 Correct 2 ms 4956 KB Output is correct
20 Correct 2 ms 5144 KB Output is correct
21 Correct 1 ms 4956 KB Output is correct
22 Correct 2 ms 5144 KB Output is correct
23 Correct 322 ms 58540 KB Output is correct
24 Correct 2 ms 4956 KB Output is correct
25 Correct 3 ms 5468 KB Output is correct
26 Correct 5 ms 5464 KB Output is correct
27 Correct 4 ms 5720 KB Output is correct
28 Correct 119 ms 25992 KB Output is correct
29 Correct 180 ms 36372 KB Output is correct
30 Correct 250 ms 47216 KB Output is correct
31 Correct 310 ms 57920 KB Output is correct
32 Correct 1 ms 4956 KB Output is correct
33 Correct 2 ms 5116 KB Output is correct
34 Correct 1 ms 4956 KB Output is correct
35 Correct 2 ms 4952 KB Output is correct
36 Correct 2 ms 4956 KB Output is correct
37 Correct 2 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 2 ms 5148 KB Output is correct
40 Correct 1 ms 4956 KB Output is correct
41 Correct 2 ms 5144 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 3 ms 5464 KB Output is correct
44 Correct 4 ms 5468 KB Output is correct
45 Correct 144 ms 29892 KB Output is correct
46 Correct 242 ms 41300 KB Output is correct
47 Correct 234 ms 41420 KB Output is correct
48 Correct 2 ms 4952 KB Output is correct
49 Correct 2 ms 4952 KB Output is correct
50 Correct 1 ms 4956 KB Output is correct
51 Correct 2 ms 4956 KB Output is correct
52 Correct 2 ms 4956 KB Output is correct
53 Correct 1 ms 4956 KB Output is correct
54 Correct 1 ms 5140 KB Output is correct
55 Correct 294 ms 54524 KB Output is correct
56 Correct 1 ms 4956 KB Output is correct
57 Correct 3 ms 5468 KB Output is correct
58 Correct 7 ms 6516 KB Output is correct
59 Correct 8 ms 6748 KB Output is correct
60 Correct 139 ms 29580 KB Output is correct
61 Correct 175 ms 38728 KB Output is correct
62 Correct 220 ms 45996 KB Output is correct
63 Correct 317 ms 54816 KB Output is correct
64 Correct 1 ms 4956 KB Output is correct
65 Correct 1 ms 4956 KB Output is correct
66 Correct 2 ms 5212 KB Output is correct
67 Correct 357 ms 65276 KB Output is correct
68 Correct 351 ms 65844 KB Output is correct
69 Correct 344 ms 63980 KB Output is correct
70 Correct 4 ms 5724 KB Output is correct
71 Correct 7 ms 6492 KB Output is correct
72 Correct 130 ms 29400 KB Output is correct
73 Correct 216 ms 41772 KB Output is correct
74 Correct 284 ms 55192 KB Output is correct
75 Correct 295 ms 58780 KB Output is correct
76 Correct 360 ms 64916 KB Output is correct
77 Correct 5 ms 5976 KB Output is correct
78 Correct 8 ms 6748 KB Output is correct
79 Correct 133 ms 29932 KB Output is correct
80 Correct 213 ms 43184 KB Output is correct
81 Correct 292 ms 57636 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 5144 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 168 ms 35488 KB Output is correct
10 Correct 13 ms 8132 KB Output is correct
11 Correct 79 ms 21228 KB Output is correct
12 Correct 20 ms 9664 KB Output is correct
13 Correct 48 ms 15104 KB Output is correct
14 Correct 2 ms 5172 KB Output is correct
15 Correct 4 ms 5480 KB Output is correct
16 Correct 164 ms 35484 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 5144 KB Output is correct
20 Correct 236 ms 50340 KB Output is correct
21 Correct 240 ms 51140 KB Output is correct
22 Correct 244 ms 49940 KB Output is correct
23 Correct 227 ms 57764 KB Output is correct
24 Correct 70 ms 12880 KB Output is correct
25 Correct 231 ms 48772 KB Output is correct
26 Correct 187 ms 49704 KB Output is correct
27 Correct 287 ms 64412 KB Output is correct
28 Correct 261 ms 64112 KB Output is correct
29 Correct 309 ms 63744 KB Output is correct
30 Correct 303 ms 63380 KB Output is correct
31 Correct 2 ms 5120 KB Output is correct
32 Correct 19 ms 8552 KB Output is correct
33 Correct 28 ms 9296 KB Output is correct
34 Correct 245 ms 51456 KB Output is correct
35 Correct 10 ms 6744 KB Output is correct
36 Correct 50 ms 13304 KB Output is correct
37 Correct 104 ms 21704 KB Output is correct
38 Correct 116 ms 24552 KB Output is correct
39 Correct 166 ms 31332 KB Output is correct
40 Correct 225 ms 39832 KB Output is correct
41 Correct 272 ms 46196 KB Output is correct
42 Correct 327 ms 53152 KB Output is correct
43 Correct 1 ms 5136 KB Output is correct
44 Correct 2 ms 4956 KB Output is correct
45 Correct 2 ms 4956 KB Output is correct
46 Correct 1 ms 4956 KB Output is correct
47 Correct 1 ms 4956 KB Output is correct
48 Correct 1 ms 4956 KB Output is correct
49 Correct 1 ms 4952 KB Output is correct
50 Correct 1 ms 4956 KB Output is correct
51 Correct 1 ms 4956 KB Output is correct
52 Correct 1 ms 4956 KB Output is correct
53 Correct 1 ms 4956 KB Output is correct
54 Correct 3 ms 5468 KB Output is correct
55 Correct 4 ms 5468 KB Output is correct
56 Correct 137 ms 29820 KB Output is correct
57 Correct 211 ms 41292 KB Output is correct
58 Correct 214 ms 41292 KB Output is correct
59 Correct 2 ms 4956 KB Output is correct
60 Correct 2 ms 4956 KB Output is correct
61 Correct 3 ms 4952 KB Output is correct
62 Correct 339 ms 65564 KB Output is correct
63 Correct 337 ms 65700 KB Output is correct
64 Correct 325 ms 64256 KB Output is correct
65 Correct 5 ms 5820 KB Output is correct
66 Correct 8 ms 6488 KB Output is correct
67 Correct 131 ms 29288 KB Output is correct
68 Correct 205 ms 41732 KB Output is correct
69 Correct 298 ms 55448 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 5144 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 168 ms 35488 KB Output is correct
10 Correct 13 ms 8132 KB Output is correct
11 Correct 79 ms 21228 KB Output is correct
12 Correct 20 ms 9664 KB Output is correct
13 Correct 48 ms 15104 KB Output is correct
14 Correct 2 ms 5172 KB Output is correct
15 Correct 4 ms 5480 KB Output is correct
16 Correct 164 ms 35484 KB Output is correct
17 Correct 303 ms 65036 KB Output is correct
18 Correct 294 ms 65428 KB Output is correct
19 Correct 269 ms 57680 KB Output is correct
20 Correct 275 ms 52412 KB Output is correct
21 Correct 248 ms 55132 KB Output is correct
22 Correct 1 ms 4952 KB Output is correct
23 Correct 41 ms 13156 KB Output is correct
24 Correct 19 ms 8404 KB Output is correct
25 Correct 79 ms 17640 KB Output is correct
26 Correct 130 ms 25796 KB Output is correct
27 Correct 149 ms 29628 KB Output is correct
28 Correct 195 ms 36004 KB Output is correct
29 Correct 238 ms 43028 KB Output is correct
30 Correct 275 ms 48232 KB Output is correct
31 Correct 338 ms 54752 KB Output is correct
32 Correct 303 ms 59508 KB Output is correct
33 Correct 349 ms 65688 KB Output is correct
34 Correct 5 ms 5976 KB Output is correct
35 Correct 8 ms 6748 KB Output is correct
36 Correct 133 ms 29844 KB Output is correct
37 Correct 206 ms 43048 KB Output is correct
38 Correct 302 ms 57240 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 5144 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 168 ms 35488 KB Output is correct
10 Correct 13 ms 8132 KB Output is correct
11 Correct 79 ms 21228 KB Output is correct
12 Correct 20 ms 9664 KB Output is correct
13 Correct 48 ms 15104 KB Output is correct
14 Correct 2 ms 5172 KB Output is correct
15 Correct 4 ms 5480 KB Output is correct
16 Correct 164 ms 35484 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 2 ms 5140 KB Output is correct
19 Correct 2 ms 4956 KB Output is correct
20 Correct 2 ms 5144 KB Output is correct
21 Correct 1 ms 4956 KB Output is correct
22 Correct 2 ms 5144 KB Output is correct
23 Correct 322 ms 58540 KB Output is correct
24 Correct 2 ms 4956 KB Output is correct
25 Correct 3 ms 5468 KB Output is correct
26 Correct 5 ms 5464 KB Output is correct
27 Correct 4 ms 5720 KB Output is correct
28 Correct 119 ms 25992 KB Output is correct
29 Correct 180 ms 36372 KB Output is correct
30 Correct 250 ms 47216 KB Output is correct
31 Correct 310 ms 57920 KB Output is correct
32 Correct 1 ms 4956 KB Output is correct
33 Correct 2 ms 5116 KB Output is correct
34 Correct 1 ms 4956 KB Output is correct
35 Correct 2 ms 4952 KB Output is correct
36 Correct 2 ms 4956 KB Output is correct
37 Correct 2 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 2 ms 5148 KB Output is correct
40 Correct 1 ms 4956 KB Output is correct
41 Correct 2 ms 5144 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 3 ms 5464 KB Output is correct
44 Correct 4 ms 5468 KB Output is correct
45 Correct 144 ms 29892 KB Output is correct
46 Correct 242 ms 41300 KB Output is correct
47 Correct 234 ms 41420 KB Output is correct
48 Correct 2 ms 4952 KB Output is correct
49 Correct 2 ms 4952 KB Output is correct
50 Correct 1 ms 4956 KB Output is correct
51 Correct 2 ms 4956 KB Output is correct
52 Correct 2 ms 4956 KB Output is correct
53 Correct 1 ms 4956 KB Output is correct
54 Correct 1 ms 5140 KB Output is correct
55 Correct 294 ms 54524 KB Output is correct
56 Correct 1 ms 4956 KB Output is correct
57 Correct 3 ms 5468 KB Output is correct
58 Correct 7 ms 6516 KB Output is correct
59 Correct 8 ms 6748 KB Output is correct
60 Correct 139 ms 29580 KB Output is correct
61 Correct 175 ms 38728 KB Output is correct
62 Correct 220 ms 45996 KB Output is correct
63 Correct 317 ms 54816 KB Output is correct
64 Correct 1 ms 4956 KB Output is correct
65 Correct 1 ms 4956 KB Output is correct
66 Correct 2 ms 5212 KB Output is correct
67 Correct 357 ms 65276 KB Output is correct
68 Correct 351 ms 65844 KB Output is correct
69 Correct 344 ms 63980 KB Output is correct
70 Correct 4 ms 5724 KB Output is correct
71 Correct 7 ms 6492 KB Output is correct
72 Correct 130 ms 29400 KB Output is correct
73 Correct 216 ms 41772 KB Output is correct
74 Correct 284 ms 55192 KB Output is correct
75 Correct 295 ms 58780 KB Output is correct
76 Correct 360 ms 64916 KB Output is correct
77 Correct 5 ms 5976 KB Output is correct
78 Correct 8 ms 6748 KB Output is correct
79 Correct 133 ms 29932 KB Output is correct
80 Correct 213 ms 43184 KB Output is correct
81 Correct 292 ms 57636 KB Output is correct
82 Correct 1 ms 4956 KB Output is correct
83 Correct 1 ms 4956 KB Output is correct
84 Correct 1 ms 5144 KB Output is correct
85 Correct 236 ms 50340 KB Output is correct
86 Correct 240 ms 51140 KB Output is correct
87 Correct 244 ms 49940 KB Output is correct
88 Correct 227 ms 57764 KB Output is correct
89 Correct 70 ms 12880 KB Output is correct
90 Correct 231 ms 48772 KB Output is correct
91 Correct 187 ms 49704 KB Output is correct
92 Correct 287 ms 64412 KB Output is correct
93 Correct 261 ms 64112 KB Output is correct
94 Correct 309 ms 63744 KB Output is correct
95 Correct 303 ms 63380 KB Output is correct
96 Correct 2 ms 5120 KB Output is correct
97 Correct 19 ms 8552 KB Output is correct
98 Correct 28 ms 9296 KB Output is correct
99 Correct 245 ms 51456 KB Output is correct
100 Correct 10 ms 6744 KB Output is correct
101 Correct 50 ms 13304 KB Output is correct
102 Correct 104 ms 21704 KB Output is correct
103 Correct 116 ms 24552 KB Output is correct
104 Correct 166 ms 31332 KB Output is correct
105 Correct 225 ms 39832 KB Output is correct
106 Correct 272 ms 46196 KB Output is correct
107 Correct 327 ms 53152 KB Output is correct
108 Correct 1 ms 5136 KB Output is correct
109 Correct 2 ms 4956 KB Output is correct
110 Correct 2 ms 4956 KB Output is correct
111 Correct 1 ms 4956 KB Output is correct
112 Correct 1 ms 4956 KB Output is correct
113 Correct 1 ms 4956 KB Output is correct
114 Correct 1 ms 4952 KB Output is correct
115 Correct 1 ms 4956 KB Output is correct
116 Correct 1 ms 4956 KB Output is correct
117 Correct 1 ms 4956 KB Output is correct
118 Correct 1 ms 4956 KB Output is correct
119 Correct 3 ms 5468 KB Output is correct
120 Correct 4 ms 5468 KB Output is correct
121 Correct 137 ms 29820 KB Output is correct
122 Correct 211 ms 41292 KB Output is correct
123 Correct 214 ms 41292 KB Output is correct
124 Correct 2 ms 4956 KB Output is correct
125 Correct 2 ms 4956 KB Output is correct
126 Correct 3 ms 4952 KB Output is correct
127 Correct 339 ms 65564 KB Output is correct
128 Correct 337 ms 65700 KB Output is correct
129 Correct 325 ms 64256 KB Output is correct
130 Correct 5 ms 5820 KB Output is correct
131 Correct 8 ms 6488 KB Output is correct
132 Correct 131 ms 29288 KB Output is correct
133 Correct 205 ms 41732 KB Output is correct
134 Correct 298 ms 55448 KB Output is correct
135 Correct 303 ms 65036 KB Output is correct
136 Correct 294 ms 65428 KB Output is correct
137 Correct 269 ms 57680 KB Output is correct
138 Correct 275 ms 52412 KB Output is correct
139 Correct 248 ms 55132 KB Output is correct
140 Correct 1 ms 4952 KB Output is correct
141 Correct 41 ms 13156 KB Output is correct
142 Correct 19 ms 8404 KB Output is correct
143 Correct 79 ms 17640 KB Output is correct
144 Correct 130 ms 25796 KB Output is correct
145 Correct 149 ms 29628 KB Output is correct
146 Correct 195 ms 36004 KB Output is correct
147 Correct 238 ms 43028 KB Output is correct
148 Correct 275 ms 48232 KB Output is correct
149 Correct 338 ms 54752 KB Output is correct
150 Correct 303 ms 59508 KB Output is correct
151 Correct 349 ms 65688 KB Output is correct
152 Correct 5 ms 5976 KB Output is correct
153 Correct 8 ms 6748 KB Output is correct
154 Correct 133 ms 29844 KB Output is correct
155 Correct 206 ms 43048 KB Output is correct
156 Correct 302 ms 57240 KB Output is correct
157 Correct 1 ms 4952 KB Output is correct
158 Correct 1 ms 4952 KB Output is correct
159 Correct 1 ms 5140 KB Output is correct
160 Correct 1 ms 4956 KB Output is correct
161 Correct 262 ms 49052 KB Output is correct
162 Correct 251 ms 51896 KB Output is correct
163 Correct 213 ms 50844 KB Output is correct
164 Correct 218 ms 51056 KB Output is correct
165 Correct 244 ms 49896 KB Output is correct
166 Correct 237 ms 49296 KB Output is correct
167 Incorrect 56 ms 15784 KB a[40465] = 528386 is not an odd integer
168 Halted 0 ms 0 KB -