답안 #975579

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
975579 2024-05-05T13:45:22 Z onlk97 분수 공원 (IOI21_parks) C++17
100 / 100
452 ms 55536 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)];
}
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;
}
map <pair <int,int>,int> mp;
int gt(int x,int y){
    if (mp.find({x,y})==mp.end()) return -1;
    return mp[{x,y}];
}
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};
    for (int i=0; i<n; i++) mp[{x[i],y[i]}]=i;
    sort(a,a+n);
    for (int i=0; i<n; i++) dsu[i]=i;
    set <pair <int,int> > s;
    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){
            s.insert({a[i-1].first.first-1,a[i].first.second-1});
            s.insert({a[i-1].first.first+1,a[i].first.second-1});
        }
    }
    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){
            s.insert({a[i].first.first-1,a[i].first.second-1});
            s.insert({a[i].first.first-1,a[i].first.second+1});
        }
    }
    vector <int> u,v,A,B;
    for (auto i:s){
        if ((i.first+i.second)%4==0){
            int tx=gt(i.first-1,i.second+1),ty=gt(i.first+1,i.second+1);
            if (tx!=-1&&ty!=-1){
                u.push_back(tx); v.push_back(ty); A.push_back(i.first); B.push_back(i.second);
                unn(tx,ty);
            } else {
                tx=gt(i.first-1,i.second-1),ty=gt(i.first+1,i.second-1);
                if (tx!=-1&&ty!=-1){
                    u.push_back(tx); v.push_back(ty); A.push_back(i.first); B.push_back(i.second);
                    unn(tx,ty);
                }
            }
        } else {
            int tx=gt(i.first-1,i.second+1),ty=gt(i.first-1,i.second-1);
            if (tx!=-1&&ty!=-1){
                u.push_back(tx); v.push_back(ty); A.push_back(i.first); B.push_back(i.second);
                unn(tx,ty);
            } else {
                tx=gt(i.first+1,i.second+1),ty=gt(i.first+1,i.second-1);
                if (tx!=-1&&ty!=-1){
                    u.push_back(tx); v.push_back(ty); A.push_back(i.first); B.push_back(i.second);
                    unn(tx,ty);
                }
            }
        }
    }
    for (int i=0; i<n; i++){
        if (prt(i)!=prt(0)) return 0;
    }
    build(u,v,A,B);
    return 1;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4956 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 5212 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 183 ms 29396 KB Output is correct
10 Correct 18 ms 7772 KB Output is correct
11 Correct 99 ms 18116 KB Output is correct
12 Correct 23 ms 9052 KB Output is correct
13 Correct 68 ms 14604 KB Output is correct
14 Correct 2 ms 5212 KB Output is correct
15 Correct 4 ms 5468 KB Output is correct
16 Correct 205 ms 29568 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4956 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 5212 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 183 ms 29396 KB Output is correct
10 Correct 18 ms 7772 KB Output is correct
11 Correct 99 ms 18116 KB Output is correct
12 Correct 23 ms 9052 KB Output is correct
13 Correct 68 ms 14604 KB Output is correct
14 Correct 2 ms 5212 KB Output is correct
15 Correct 4 ms 5468 KB Output is correct
16 Correct 205 ms 29568 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 1 ms 5140 KB Output is correct
19 Correct 1 ms 4956 KB Output is correct
20 Correct 2 ms 4956 KB Output is correct
21 Correct 1 ms 4956 KB Output is correct
22 Correct 2 ms 4956 KB Output is correct
23 Correct 404 ms 49708 KB Output is correct
24 Correct 1 ms 4952 KB Output is correct
25 Correct 3 ms 5208 KB Output is correct
26 Correct 5 ms 5724 KB Output is correct
27 Correct 6 ms 5724 KB Output is correct
28 Correct 143 ms 23044 KB Output is correct
29 Correct 226 ms 32036 KB Output is correct
30 Correct 305 ms 40808 KB Output is correct
31 Correct 403 ms 49764 KB Output is correct
32 Correct 1 ms 4952 KB Output is correct
33 Correct 1 ms 4956 KB Output is correct
34 Correct 2 ms 4956 KB Output is correct
35 Correct 1 ms 4956 KB Output is correct
36 Correct 1 ms 4956 KB Output is correct
37 Correct 1 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 1 ms 5152 KB Output is correct
40 Correct 2 ms 4956 KB Output is correct
41 Correct 1 ms 4956 KB Output is correct
42 Correct 1 ms 4956 KB Output is correct
43 Correct 4 ms 5524 KB Output is correct
44 Correct 5 ms 5724 KB Output is correct
45 Correct 184 ms 26456 KB Output is correct
46 Correct 289 ms 36188 KB Output is correct
47 Correct 274 ms 36196 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4956 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 5212 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 183 ms 29396 KB Output is correct
10 Correct 18 ms 7772 KB Output is correct
11 Correct 99 ms 18116 KB Output is correct
12 Correct 23 ms 9052 KB Output is correct
13 Correct 68 ms 14604 KB Output is correct
14 Correct 2 ms 5212 KB Output is correct
15 Correct 4 ms 5468 KB Output is correct
16 Correct 205 ms 29568 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 1 ms 5140 KB Output is correct
19 Correct 1 ms 4956 KB Output is correct
20 Correct 2 ms 4956 KB Output is correct
21 Correct 1 ms 4956 KB Output is correct
22 Correct 2 ms 4956 KB Output is correct
23 Correct 404 ms 49708 KB Output is correct
24 Correct 1 ms 4952 KB Output is correct
25 Correct 3 ms 5208 KB Output is correct
26 Correct 5 ms 5724 KB Output is correct
27 Correct 6 ms 5724 KB Output is correct
28 Correct 143 ms 23044 KB Output is correct
29 Correct 226 ms 32036 KB Output is correct
30 Correct 305 ms 40808 KB Output is correct
31 Correct 403 ms 49764 KB Output is correct
32 Correct 1 ms 4952 KB Output is correct
33 Correct 1 ms 4956 KB Output is correct
34 Correct 2 ms 4956 KB Output is correct
35 Correct 1 ms 4956 KB Output is correct
36 Correct 1 ms 4956 KB Output is correct
37 Correct 1 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 1 ms 5152 KB Output is correct
40 Correct 2 ms 4956 KB Output is correct
41 Correct 1 ms 4956 KB Output is correct
42 Correct 1 ms 4956 KB Output is correct
43 Correct 4 ms 5524 KB Output is correct
44 Correct 5 ms 5724 KB Output is correct
45 Correct 184 ms 26456 KB Output is correct
46 Correct 289 ms 36188 KB Output is correct
47 Correct 274 ms 36196 KB Output is correct
48 Correct 1 ms 4952 KB Output is correct
49 Correct 1 ms 4956 KB Output is correct
50 Correct 2 ms 4952 KB Output is correct
51 Correct 1 ms 5144 KB Output is correct
52 Correct 2 ms 4956 KB Output is correct
53 Correct 2 ms 4952 KB Output is correct
54 Correct 1 ms 4956 KB Output is correct
55 Correct 373 ms 47960 KB Output is correct
56 Correct 2 ms 5208 KB Output is correct
57 Correct 4 ms 5468 KB Output is correct
58 Correct 9 ms 6492 KB Output is correct
59 Correct 12 ms 7004 KB Output is correct
60 Correct 167 ms 26532 KB Output is correct
61 Correct 243 ms 34036 KB Output is correct
62 Correct 323 ms 40624 KB Output is correct
63 Correct 372 ms 47936 KB Output is correct
64 Correct 1 ms 5212 KB Output is correct
65 Correct 2 ms 4956 KB Output is correct
66 Correct 1 ms 4956 KB Output is correct
67 Correct 422 ms 53860 KB Output is correct
68 Correct 420 ms 53896 KB Output is correct
69 Correct 430 ms 53968 KB Output is correct
70 Correct 6 ms 5724 KB Output is correct
71 Correct 10 ms 6448 KB Output is correct
72 Correct 169 ms 26320 KB Output is correct
73 Correct 274 ms 36940 KB Output is correct
74 Correct 368 ms 47608 KB Output is correct
75 Correct 416 ms 52668 KB Output is correct
76 Correct 426 ms 53776 KB Output is correct
77 Correct 7 ms 5976 KB Output is correct
78 Correct 12 ms 6748 KB Output is correct
79 Correct 189 ms 27296 KB Output is correct
80 Correct 294 ms 38384 KB Output is correct
81 Correct 405 ms 49384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4956 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 5212 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 183 ms 29396 KB Output is correct
10 Correct 18 ms 7772 KB Output is correct
11 Correct 99 ms 18116 KB Output is correct
12 Correct 23 ms 9052 KB Output is correct
13 Correct 68 ms 14604 KB Output is correct
14 Correct 2 ms 5212 KB Output is correct
15 Correct 4 ms 5468 KB Output is correct
16 Correct 205 ms 29568 KB Output is correct
17 Correct 1 ms 4952 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 4956 KB Output is correct
20 Correct 342 ms 46188 KB Output is correct
21 Correct 351 ms 45784 KB Output is correct
22 Correct 322 ms 45440 KB Output is correct
23 Correct 333 ms 47780 KB Output is correct
24 Correct 144 ms 25424 KB Output is correct
25 Correct 388 ms 47336 KB Output is correct
26 Correct 327 ms 47280 KB Output is correct
27 Correct 382 ms 53792 KB Output is correct
28 Correct 391 ms 54124 KB Output is correct
29 Correct 441 ms 53824 KB Output is correct
30 Correct 452 ms 53668 KB Output is correct
31 Correct 1 ms 4956 KB Output is correct
32 Correct 22 ms 8324 KB Output is correct
33 Correct 57 ms 15704 KB Output is correct
34 Correct 329 ms 46372 KB Output is correct
35 Correct 13 ms 6848 KB Output is correct
36 Correct 68 ms 14072 KB Output is correct
37 Correct 149 ms 22976 KB Output is correct
38 Correct 137 ms 21948 KB Output is correct
39 Correct 236 ms 28240 KB Output is correct
40 Correct 262 ms 34508 KB Output is correct
41 Correct 332 ms 40764 KB Output is correct
42 Correct 391 ms 47024 KB Output is correct
43 Correct 2 ms 4952 KB Output is correct
44 Correct 2 ms 4956 KB Output is correct
45 Correct 2 ms 5148 KB Output is correct
46 Correct 1 ms 4956 KB Output is correct
47 Correct 1 ms 4956 KB Output is correct
48 Correct 2 ms 5144 KB Output is correct
49 Correct 2 ms 5208 KB Output is correct
50 Correct 1 ms 4956 KB Output is correct
51 Correct 1 ms 4952 KB Output is correct
52 Correct 1 ms 5144 KB Output is correct
53 Correct 1 ms 4956 KB Output is correct
54 Correct 3 ms 5468 KB Output is correct
55 Correct 5 ms 5720 KB Output is correct
56 Correct 187 ms 26552 KB Output is correct
57 Correct 261 ms 36180 KB Output is correct
58 Correct 290 ms 36116 KB Output is correct
59 Correct 2 ms 4952 KB Output is correct
60 Correct 1 ms 4956 KB Output is correct
61 Correct 2 ms 4956 KB Output is correct
62 Correct 434 ms 53672 KB Output is correct
63 Correct 422 ms 53712 KB Output is correct
64 Correct 431 ms 53560 KB Output is correct
65 Correct 5 ms 5720 KB Output is correct
66 Correct 11 ms 6492 KB Output is correct
67 Correct 186 ms 26140 KB Output is correct
68 Correct 278 ms 37052 KB Output is correct
69 Correct 369 ms 47532 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4956 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 5212 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 183 ms 29396 KB Output is correct
10 Correct 18 ms 7772 KB Output is correct
11 Correct 99 ms 18116 KB Output is correct
12 Correct 23 ms 9052 KB Output is correct
13 Correct 68 ms 14604 KB Output is correct
14 Correct 2 ms 5212 KB Output is correct
15 Correct 4 ms 5468 KB Output is correct
16 Correct 205 ms 29568 KB Output is correct
17 Correct 394 ms 55040 KB Output is correct
18 Correct 397 ms 55536 KB Output is correct
19 Correct 325 ms 45732 KB Output is correct
20 Correct 380 ms 49748 KB Output is correct
21 Correct 362 ms 46764 KB Output is correct
22 Correct 1 ms 4952 KB Output is correct
23 Correct 53 ms 11944 KB Output is correct
24 Correct 28 ms 9040 KB Output is correct
25 Correct 112 ms 18416 KB Output is correct
26 Correct 207 ms 27740 KB Output is correct
27 Correct 197 ms 27556 KB Output is correct
28 Correct 251 ms 33308 KB Output is correct
29 Correct 304 ms 38948 KB Output is correct
30 Correct 358 ms 44308 KB Output is correct
31 Correct 413 ms 50044 KB Output is correct
32 Correct 419 ms 52392 KB Output is correct
33 Correct 413 ms 53708 KB Output is correct
34 Correct 7 ms 5980 KB Output is correct
35 Correct 12 ms 6744 KB Output is correct
36 Correct 195 ms 27068 KB Output is correct
37 Correct 279 ms 38312 KB Output is correct
38 Correct 406 ms 49328 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4956 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 5212 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 183 ms 29396 KB Output is correct
10 Correct 18 ms 7772 KB Output is correct
11 Correct 99 ms 18116 KB Output is correct
12 Correct 23 ms 9052 KB Output is correct
13 Correct 68 ms 14604 KB Output is correct
14 Correct 2 ms 5212 KB Output is correct
15 Correct 4 ms 5468 KB Output is correct
16 Correct 205 ms 29568 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 1 ms 5140 KB Output is correct
19 Correct 1 ms 4956 KB Output is correct
20 Correct 2 ms 4956 KB Output is correct
21 Correct 1 ms 4956 KB Output is correct
22 Correct 2 ms 4956 KB Output is correct
23 Correct 404 ms 49708 KB Output is correct
24 Correct 1 ms 4952 KB Output is correct
25 Correct 3 ms 5208 KB Output is correct
26 Correct 5 ms 5724 KB Output is correct
27 Correct 6 ms 5724 KB Output is correct
28 Correct 143 ms 23044 KB Output is correct
29 Correct 226 ms 32036 KB Output is correct
30 Correct 305 ms 40808 KB Output is correct
31 Correct 403 ms 49764 KB Output is correct
32 Correct 1 ms 4952 KB Output is correct
33 Correct 1 ms 4956 KB Output is correct
34 Correct 2 ms 4956 KB Output is correct
35 Correct 1 ms 4956 KB Output is correct
36 Correct 1 ms 4956 KB Output is correct
37 Correct 1 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 1 ms 5152 KB Output is correct
40 Correct 2 ms 4956 KB Output is correct
41 Correct 1 ms 4956 KB Output is correct
42 Correct 1 ms 4956 KB Output is correct
43 Correct 4 ms 5524 KB Output is correct
44 Correct 5 ms 5724 KB Output is correct
45 Correct 184 ms 26456 KB Output is correct
46 Correct 289 ms 36188 KB Output is correct
47 Correct 274 ms 36196 KB Output is correct
48 Correct 1 ms 4952 KB Output is correct
49 Correct 1 ms 4956 KB Output is correct
50 Correct 2 ms 4952 KB Output is correct
51 Correct 1 ms 5144 KB Output is correct
52 Correct 2 ms 4956 KB Output is correct
53 Correct 2 ms 4952 KB Output is correct
54 Correct 1 ms 4956 KB Output is correct
55 Correct 373 ms 47960 KB Output is correct
56 Correct 2 ms 5208 KB Output is correct
57 Correct 4 ms 5468 KB Output is correct
58 Correct 9 ms 6492 KB Output is correct
59 Correct 12 ms 7004 KB Output is correct
60 Correct 167 ms 26532 KB Output is correct
61 Correct 243 ms 34036 KB Output is correct
62 Correct 323 ms 40624 KB Output is correct
63 Correct 372 ms 47936 KB Output is correct
64 Correct 1 ms 5212 KB Output is correct
65 Correct 2 ms 4956 KB Output is correct
66 Correct 1 ms 4956 KB Output is correct
67 Correct 422 ms 53860 KB Output is correct
68 Correct 420 ms 53896 KB Output is correct
69 Correct 430 ms 53968 KB Output is correct
70 Correct 6 ms 5724 KB Output is correct
71 Correct 10 ms 6448 KB Output is correct
72 Correct 169 ms 26320 KB Output is correct
73 Correct 274 ms 36940 KB Output is correct
74 Correct 368 ms 47608 KB Output is correct
75 Correct 416 ms 52668 KB Output is correct
76 Correct 426 ms 53776 KB Output is correct
77 Correct 7 ms 5976 KB Output is correct
78 Correct 12 ms 6748 KB Output is correct
79 Correct 189 ms 27296 KB Output is correct
80 Correct 294 ms 38384 KB Output is correct
81 Correct 405 ms 49384 KB Output is correct
82 Correct 1 ms 4952 KB Output is correct
83 Correct 1 ms 4956 KB Output is correct
84 Correct 1 ms 4956 KB Output is correct
85 Correct 342 ms 46188 KB Output is correct
86 Correct 351 ms 45784 KB Output is correct
87 Correct 322 ms 45440 KB Output is correct
88 Correct 333 ms 47780 KB Output is correct
89 Correct 144 ms 25424 KB Output is correct
90 Correct 388 ms 47336 KB Output is correct
91 Correct 327 ms 47280 KB Output is correct
92 Correct 382 ms 53792 KB Output is correct
93 Correct 391 ms 54124 KB Output is correct
94 Correct 441 ms 53824 KB Output is correct
95 Correct 452 ms 53668 KB Output is correct
96 Correct 1 ms 4956 KB Output is correct
97 Correct 22 ms 8324 KB Output is correct
98 Correct 57 ms 15704 KB Output is correct
99 Correct 329 ms 46372 KB Output is correct
100 Correct 13 ms 6848 KB Output is correct
101 Correct 68 ms 14072 KB Output is correct
102 Correct 149 ms 22976 KB Output is correct
103 Correct 137 ms 21948 KB Output is correct
104 Correct 236 ms 28240 KB Output is correct
105 Correct 262 ms 34508 KB Output is correct
106 Correct 332 ms 40764 KB Output is correct
107 Correct 391 ms 47024 KB Output is correct
108 Correct 2 ms 4952 KB Output is correct
109 Correct 2 ms 4956 KB Output is correct
110 Correct 2 ms 5148 KB Output is correct
111 Correct 1 ms 4956 KB Output is correct
112 Correct 1 ms 4956 KB Output is correct
113 Correct 2 ms 5144 KB Output is correct
114 Correct 2 ms 5208 KB Output is correct
115 Correct 1 ms 4956 KB Output is correct
116 Correct 1 ms 4952 KB Output is correct
117 Correct 1 ms 5144 KB Output is correct
118 Correct 1 ms 4956 KB Output is correct
119 Correct 3 ms 5468 KB Output is correct
120 Correct 5 ms 5720 KB Output is correct
121 Correct 187 ms 26552 KB Output is correct
122 Correct 261 ms 36180 KB Output is correct
123 Correct 290 ms 36116 KB Output is correct
124 Correct 2 ms 4952 KB Output is correct
125 Correct 1 ms 4956 KB Output is correct
126 Correct 2 ms 4956 KB Output is correct
127 Correct 434 ms 53672 KB Output is correct
128 Correct 422 ms 53712 KB Output is correct
129 Correct 431 ms 53560 KB Output is correct
130 Correct 5 ms 5720 KB Output is correct
131 Correct 11 ms 6492 KB Output is correct
132 Correct 186 ms 26140 KB Output is correct
133 Correct 278 ms 37052 KB Output is correct
134 Correct 369 ms 47532 KB Output is correct
135 Correct 394 ms 55040 KB Output is correct
136 Correct 397 ms 55536 KB Output is correct
137 Correct 325 ms 45732 KB Output is correct
138 Correct 380 ms 49748 KB Output is correct
139 Correct 362 ms 46764 KB Output is correct
140 Correct 1 ms 4952 KB Output is correct
141 Correct 53 ms 11944 KB Output is correct
142 Correct 28 ms 9040 KB Output is correct
143 Correct 112 ms 18416 KB Output is correct
144 Correct 207 ms 27740 KB Output is correct
145 Correct 197 ms 27556 KB Output is correct
146 Correct 251 ms 33308 KB Output is correct
147 Correct 304 ms 38948 KB Output is correct
148 Correct 358 ms 44308 KB Output is correct
149 Correct 413 ms 50044 KB Output is correct
150 Correct 419 ms 52392 KB Output is correct
151 Correct 413 ms 53708 KB Output is correct
152 Correct 7 ms 5980 KB Output is correct
153 Correct 12 ms 6744 KB Output is correct
154 Correct 195 ms 27068 KB Output is correct
155 Correct 279 ms 38312 KB Output is correct
156 Correct 406 ms 49328 KB Output is correct
157 Correct 1 ms 4956 KB Output is correct
158 Correct 2 ms 4956 KB Output is correct
159 Correct 1 ms 4956 KB Output is correct
160 Correct 1 ms 4956 KB Output is correct
161 Correct 388 ms 44716 KB Output is correct
162 Correct 364 ms 46104 KB Output is correct
163 Correct 317 ms 46452 KB Output is correct
164 Correct 330 ms 46252 KB Output is correct
165 Correct 327 ms 45376 KB Output is correct
166 Correct 344 ms 44792 KB Output is correct
167 Correct 79 ms 14852 KB Output is correct
168 Correct 38 ms 10524 KB Output is correct
169 Correct 107 ms 18892 KB Output is correct
170 Correct 217 ms 30856 KB Output is correct
171 Correct 297 ms 39312 KB Output is correct
172 Correct 175 ms 25144 KB Output is correct
173 Correct 210 ms 29284 KB Output is correct
174 Correct 264 ms 33404 KB Output is correct
175 Correct 314 ms 37304 KB Output is correct
176 Correct 329 ms 41828 KB Output is correct
177 Correct 387 ms 45264 KB Output is correct