답안 #1033984

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1033984 2024-07-25T08:22:18 Z hotboy2703 분수 공원 (IOI21_parks) C++17
100 / 100
239 ms 39336 KB
#include "parks.h"

#include<bits/stdc++.h>
using ll = int;
using namespace std;
#define pll pair <ll,ll>
#define fi first
#define se second
#define MP make_pair
#define sz(a) (ll((a).size()))
#define MASK(i) (1LL<<(i))
#define BIT(mask,i) (((mask) >> (i))&1)
struct point{
    ll x,y,id;
    point(ll x1 = 0,ll y1 = 0,ll id1 = 0):x(x1),y(y1),id(id1){}
    bool operator < (const point &p)const {
        return MP(x,y) < MP(p.x,p.y);
    }
};
const ll MAXN = 2e5+100;
ll dsu[MAXN];
ll f(ll x){
    if (dsu[x] < 0)return x;
    return (dsu[x] = f(dsu[x]));
}
bool join(ll x,ll y){
    x = f(x),y = f(y);
    if (x==y)return 0;
    dsu[x] += dsu[y];
    dsu[y] = x;
    return 1;
}
int construct_roads(std::vector<int> x, std::vector<int> y) {
    ll n = sz(x);
    vector <point> a(n);
    
    for (ll i = 0;i < n;i ++){
        dsu[i] = -1;
        a[i] = {x[i],y[i],i};
    }
    sort(a.begin(),a.end());
    vector <int> U, V, A, B;
    set <pll> bench;
    auto add = [&](ll u,ll v, ll x,ll y){
        if (join(u,v)==0)return;
        U.push_back(u);
        V.push_back(v);
        A.push_back(x);
        B.push_back(y);
        bench.insert(MP(x,y));
    };
    auto id = [&](pll x){
        auto tmp = lower_bound(a.begin(),a.end(),point(x.fi,x.se,0));
        if (tmp != a.end() && (*tmp).x==x.fi&&(*tmp).y==x.se)return (*tmp).id;
        else return -1;
    };
    for (ll i = 0;i < n;i ++){
        // cout<<i<<endl;
        if (((a[i].x + a[i].y)/2)&1){
            if (bench.find(MP(a[i].x + 1,a[i].y - 1)) == bench.end() && id(MP(a[i].x,a[i].y-2)) != -1){
                add(a[i].id,id(MP(a[i].x,a[i].y-2)),a[i].x+1,a[i].y-1);
            }
            if (bench.find(MP(a[i].x - 1,a[i].y - 1)) == bench.end() && id(MP(a[i].x-2,a[i].y)) != -1){
                add(a[i].id,id(MP(a[i].x-2,a[i].y)),a[i].x-1,a[i].y-1);
            }
        }
        else{
            // cout<<i<<endl;
            if (bench.find(MP(a[i].x - 1,a[i].y - 1)) == bench.end() && id(MP(a[i].x,a[i].y-2)) != -1){
                add(a[i].id,id(MP(a[i].x,a[i].y-2)),a[i].x-1,a[i].y-1);
            }
            if (bench.find(MP(a[i].x - 1,a[i].y + 1)) == bench.end() && id(MP(a[i].x-2,a[i].y)) != -1){
                add(a[i].id,id(MP(a[i].x-2,a[i].y)),a[i].x-1,a[i].y+1);
            }
        }
    }
    {
        vector <vector <ll > > g(n);
        for (ll i = 0;i < sz(U);i ++){
            g[U[i]].push_back(V[i]);
            g[V[i]].push_back(U[i]);
        }
        vector <bool> in(n);
        queue <ll> q;
        q.push(0);
        in[0] = 1;
        while (!q.empty()){
            ll u = q.front();
            q.pop();
            for (auto v:g[u]){
                if (!in[v]){
                    in[v] = 1;
                    q.push(v);
                }
            }
        }
        for (ll i = 0;i < n;i ++)if (!in[i])return 0;
        build(U, V, A, B);
        return 1;
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 90 ms 19104 KB Output is correct
10 Correct 8 ms 2412 KB Output is correct
11 Correct 50 ms 10452 KB Output is correct
12 Correct 11 ms 3164 KB Output is correct
13 Correct 27 ms 7364 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 712 KB Output is correct
16 Correct 89 ms 19128 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 90 ms 19104 KB Output is correct
10 Correct 8 ms 2412 KB Output is correct
11 Correct 50 ms 10452 KB Output is correct
12 Correct 11 ms 3164 KB Output is correct
13 Correct 27 ms 7364 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 712 KB Output is correct
16 Correct 89 ms 19128 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 195 ms 39336 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 2 ms 856 KB Output is correct
27 Correct 2 ms 1020 KB Output is correct
28 Correct 72 ms 15832 KB Output is correct
29 Correct 99 ms 23692 KB Output is correct
30 Correct 146 ms 31652 KB Output is correct
31 Correct 184 ms 39332 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 344 KB Output is correct
34 Correct 0 ms 604 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 1 ms 600 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 448 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 1 ms 524 KB Output is correct
44 Correct 2 ms 860 KB Output is correct
45 Correct 88 ms 19128 KB Output is correct
46 Correct 132 ms 27696 KB Output is correct
47 Correct 130 ms 27560 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 90 ms 19104 KB Output is correct
10 Correct 8 ms 2412 KB Output is correct
11 Correct 50 ms 10452 KB Output is correct
12 Correct 11 ms 3164 KB Output is correct
13 Correct 27 ms 7364 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 712 KB Output is correct
16 Correct 89 ms 19128 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 195 ms 39336 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 2 ms 856 KB Output is correct
27 Correct 2 ms 1020 KB Output is correct
28 Correct 72 ms 15832 KB Output is correct
29 Correct 99 ms 23692 KB Output is correct
30 Correct 146 ms 31652 KB Output is correct
31 Correct 184 ms 39332 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 344 KB Output is correct
34 Correct 0 ms 604 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 1 ms 600 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 448 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 1 ms 524 KB Output is correct
44 Correct 2 ms 860 KB Output is correct
45 Correct 88 ms 19128 KB Output is correct
46 Correct 132 ms 27696 KB Output is correct
47 Correct 130 ms 27560 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 1 ms 344 KB Output is correct
50 Correct 1 ms 344 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 444 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 187 ms 38768 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 1 ms 604 KB Output is correct
58 Correct 4 ms 1628 KB Output is correct
59 Correct 6 ms 1888 KB Output is correct
60 Correct 90 ms 19540 KB Output is correct
61 Correct 120 ms 26152 KB Output is correct
62 Correct 151 ms 32164 KB Output is correct
63 Correct 181 ms 38820 KB Output is correct
64 Correct 0 ms 440 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 448 KB Output is correct
67 Correct 191 ms 37920 KB Output is correct
68 Correct 198 ms 39336 KB Output is correct
69 Correct 202 ms 38504 KB Output is correct
70 Correct 3 ms 856 KB Output is correct
71 Correct 5 ms 1692 KB Output is correct
72 Correct 85 ms 19008 KB Output is correct
73 Correct 136 ms 28612 KB Output is correct
74 Correct 182 ms 38052 KB Output is correct
75 Correct 214 ms 39012 KB Output is correct
76 Correct 198 ms 39332 KB Output is correct
77 Correct 3 ms 1116 KB Output is correct
78 Correct 6 ms 1884 KB Output is correct
79 Correct 89 ms 19232 KB Output is correct
80 Correct 132 ms 28536 KB Output is correct
81 Correct 182 ms 38056 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 90 ms 19104 KB Output is correct
10 Correct 8 ms 2412 KB Output is correct
11 Correct 50 ms 10452 KB Output is correct
12 Correct 11 ms 3164 KB Output is correct
13 Correct 27 ms 7364 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 712 KB Output is correct
16 Correct 89 ms 19128 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 348 KB Output is correct
20 Correct 197 ms 38948 KB Output is correct
21 Correct 199 ms 38564 KB Output is correct
22 Correct 208 ms 38568 KB Output is correct
23 Correct 163 ms 32932 KB Output is correct
24 Correct 55 ms 13012 KB Output is correct
25 Correct 158 ms 31644 KB Output is correct
26 Correct 133 ms 31652 KB Output is correct
27 Correct 173 ms 38088 KB Output is correct
28 Correct 178 ms 38076 KB Output is correct
29 Correct 195 ms 38052 KB Output is correct
30 Correct 203 ms 38060 KB Output is correct
31 Correct 1 ms 600 KB Output is correct
32 Correct 13 ms 3176 KB Output is correct
33 Correct 35 ms 6992 KB Output is correct
34 Correct 239 ms 39004 KB Output is correct
35 Correct 7 ms 1880 KB Output is correct
36 Correct 37 ms 8392 KB Output is correct
37 Correct 98 ms 16348 KB Output is correct
38 Correct 78 ms 15888 KB Output is correct
39 Correct 108 ms 21480 KB Output is correct
40 Correct 155 ms 27300 KB Output is correct
41 Correct 177 ms 33192 KB Output is correct
42 Correct 226 ms 39044 KB Output is correct
43 Correct 1 ms 344 KB Output is correct
44 Correct 0 ms 344 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 1 ms 344 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 1 ms 348 KB Output is correct
51 Correct 1 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 1 ms 604 KB Output is correct
55 Correct 2 ms 860 KB Output is correct
56 Correct 86 ms 19260 KB Output is correct
57 Correct 136 ms 27556 KB Output is correct
58 Correct 127 ms 27560 KB Output is correct
59 Correct 1 ms 344 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 203 ms 38048 KB Output is correct
63 Correct 205 ms 39336 KB Output is correct
64 Correct 197 ms 38572 KB Output is correct
65 Correct 3 ms 860 KB Output is correct
66 Correct 5 ms 1488 KB Output is correct
67 Correct 86 ms 19240 KB Output is correct
68 Correct 148 ms 28580 KB Output is correct
69 Correct 185 ms 38056 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 90 ms 19104 KB Output is correct
10 Correct 8 ms 2412 KB Output is correct
11 Correct 50 ms 10452 KB Output is correct
12 Correct 11 ms 3164 KB Output is correct
13 Correct 27 ms 7364 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 712 KB Output is correct
16 Correct 89 ms 19128 KB Output is correct
17 Correct 198 ms 39076 KB Output is correct
18 Correct 206 ms 38912 KB Output is correct
19 Correct 202 ms 38784 KB Output is correct
20 Correct 188 ms 37284 KB Output is correct
21 Correct 161 ms 33444 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 30 ms 6472 KB Output is correct
24 Correct 14 ms 3676 KB Output is correct
25 Correct 57 ms 11608 KB Output is correct
26 Correct 98 ms 19780 KB Output is correct
27 Correct 101 ms 19640 KB Output is correct
28 Correct 128 ms 24680 KB Output is correct
29 Correct 156 ms 29496 KB Output is correct
30 Correct 174 ms 33960 KB Output is correct
31 Correct 193 ms 39040 KB Output is correct
32 Correct 204 ms 39080 KB Output is correct
33 Correct 195 ms 39332 KB Output is correct
34 Correct 4 ms 1116 KB Output is correct
35 Correct 6 ms 1884 KB Output is correct
36 Correct 85 ms 19160 KB Output is correct
37 Correct 136 ms 28580 KB Output is correct
38 Correct 181 ms 38052 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 90 ms 19104 KB Output is correct
10 Correct 8 ms 2412 KB Output is correct
11 Correct 50 ms 10452 KB Output is correct
12 Correct 11 ms 3164 KB Output is correct
13 Correct 27 ms 7364 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 1 ms 712 KB Output is correct
16 Correct 89 ms 19128 KB Output is correct
17 Correct 1 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 ms 344 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 0 ms 348 KB Output is correct
23 Correct 195 ms 39336 KB Output is correct
24 Correct 1 ms 344 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 2 ms 856 KB Output is correct
27 Correct 2 ms 1020 KB Output is correct
28 Correct 72 ms 15832 KB Output is correct
29 Correct 99 ms 23692 KB Output is correct
30 Correct 146 ms 31652 KB Output is correct
31 Correct 184 ms 39332 KB Output is correct
32 Correct 0 ms 344 KB Output is correct
33 Correct 0 ms 344 KB Output is correct
34 Correct 0 ms 604 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 1 ms 344 KB Output is correct
37 Correct 1 ms 600 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 1 ms 448 KB Output is correct
40 Correct 0 ms 348 KB Output is correct
41 Correct 0 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 1 ms 524 KB Output is correct
44 Correct 2 ms 860 KB Output is correct
45 Correct 88 ms 19128 KB Output is correct
46 Correct 132 ms 27696 KB Output is correct
47 Correct 130 ms 27560 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 1 ms 344 KB Output is correct
50 Correct 1 ms 344 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 444 KB Output is correct
53 Correct 0 ms 348 KB Output is correct
54 Correct 0 ms 348 KB Output is correct
55 Correct 187 ms 38768 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 1 ms 604 KB Output is correct
58 Correct 4 ms 1628 KB Output is correct
59 Correct 6 ms 1888 KB Output is correct
60 Correct 90 ms 19540 KB Output is correct
61 Correct 120 ms 26152 KB Output is correct
62 Correct 151 ms 32164 KB Output is correct
63 Correct 181 ms 38820 KB Output is correct
64 Correct 0 ms 440 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 0 ms 448 KB Output is correct
67 Correct 191 ms 37920 KB Output is correct
68 Correct 198 ms 39336 KB Output is correct
69 Correct 202 ms 38504 KB Output is correct
70 Correct 3 ms 856 KB Output is correct
71 Correct 5 ms 1692 KB Output is correct
72 Correct 85 ms 19008 KB Output is correct
73 Correct 136 ms 28612 KB Output is correct
74 Correct 182 ms 38052 KB Output is correct
75 Correct 214 ms 39012 KB Output is correct
76 Correct 198 ms 39332 KB Output is correct
77 Correct 3 ms 1116 KB Output is correct
78 Correct 6 ms 1884 KB Output is correct
79 Correct 89 ms 19232 KB Output is correct
80 Correct 132 ms 28536 KB Output is correct
81 Correct 182 ms 38056 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 0 ms 348 KB Output is correct
85 Correct 197 ms 38948 KB Output is correct
86 Correct 199 ms 38564 KB Output is correct
87 Correct 208 ms 38568 KB Output is correct
88 Correct 163 ms 32932 KB Output is correct
89 Correct 55 ms 13012 KB Output is correct
90 Correct 158 ms 31644 KB Output is correct
91 Correct 133 ms 31652 KB Output is correct
92 Correct 173 ms 38088 KB Output is correct
93 Correct 178 ms 38076 KB Output is correct
94 Correct 195 ms 38052 KB Output is correct
95 Correct 203 ms 38060 KB Output is correct
96 Correct 1 ms 600 KB Output is correct
97 Correct 13 ms 3176 KB Output is correct
98 Correct 35 ms 6992 KB Output is correct
99 Correct 239 ms 39004 KB Output is correct
100 Correct 7 ms 1880 KB Output is correct
101 Correct 37 ms 8392 KB Output is correct
102 Correct 98 ms 16348 KB Output is correct
103 Correct 78 ms 15888 KB Output is correct
104 Correct 108 ms 21480 KB Output is correct
105 Correct 155 ms 27300 KB Output is correct
106 Correct 177 ms 33192 KB Output is correct
107 Correct 226 ms 39044 KB Output is correct
108 Correct 1 ms 344 KB Output is correct
109 Correct 0 ms 344 KB Output is correct
110 Correct 0 ms 348 KB Output is correct
111 Correct 1 ms 348 KB Output is correct
112 Correct 0 ms 348 KB Output is correct
113 Correct 1 ms 344 KB Output is correct
114 Correct 0 ms 348 KB Output is correct
115 Correct 1 ms 348 KB Output is correct
116 Correct 1 ms 348 KB Output is correct
117 Correct 0 ms 348 KB Output is correct
118 Correct 0 ms 348 KB Output is correct
119 Correct 1 ms 604 KB Output is correct
120 Correct 2 ms 860 KB Output is correct
121 Correct 86 ms 19260 KB Output is correct
122 Correct 136 ms 27556 KB Output is correct
123 Correct 127 ms 27560 KB Output is correct
124 Correct 1 ms 344 KB Output is correct
125 Correct 0 ms 348 KB Output is correct
126 Correct 0 ms 348 KB Output is correct
127 Correct 203 ms 38048 KB Output is correct
128 Correct 205 ms 39336 KB Output is correct
129 Correct 197 ms 38572 KB Output is correct
130 Correct 3 ms 860 KB Output is correct
131 Correct 5 ms 1488 KB Output is correct
132 Correct 86 ms 19240 KB Output is correct
133 Correct 148 ms 28580 KB Output is correct
134 Correct 185 ms 38056 KB Output is correct
135 Correct 198 ms 39076 KB Output is correct
136 Correct 206 ms 38912 KB Output is correct
137 Correct 202 ms 38784 KB Output is correct
138 Correct 188 ms 37284 KB Output is correct
139 Correct 161 ms 33444 KB Output is correct
140 Correct 0 ms 348 KB Output is correct
141 Correct 30 ms 6472 KB Output is correct
142 Correct 14 ms 3676 KB Output is correct
143 Correct 57 ms 11608 KB Output is correct
144 Correct 98 ms 19780 KB Output is correct
145 Correct 101 ms 19640 KB Output is correct
146 Correct 128 ms 24680 KB Output is correct
147 Correct 156 ms 29496 KB Output is correct
148 Correct 174 ms 33960 KB Output is correct
149 Correct 193 ms 39040 KB Output is correct
150 Correct 204 ms 39080 KB Output is correct
151 Correct 195 ms 39332 KB Output is correct
152 Correct 4 ms 1116 KB Output is correct
153 Correct 6 ms 1884 KB Output is correct
154 Correct 85 ms 19160 KB Output is correct
155 Correct 136 ms 28580 KB Output is correct
156 Correct 181 ms 38052 KB Output is correct
157 Correct 0 ms 348 KB Output is correct
158 Correct 0 ms 444 KB Output is correct
159 Correct 1 ms 348 KB Output is correct
160 Correct 0 ms 348 KB Output is correct
161 Correct 184 ms 38312 KB Output is correct
162 Correct 193 ms 38820 KB Output is correct
163 Correct 182 ms 38816 KB Output is correct
164 Correct 193 ms 38828 KB Output is correct
165 Correct 178 ms 38684 KB Output is correct
166 Correct 189 ms 38432 KB Output is correct
167 Correct 41 ms 9416 KB Output is correct
168 Correct 20 ms 5148 KB Output is correct
169 Correct 55 ms 13356 KB Output is correct
170 Correct 104 ms 24484 KB Output is correct
171 Correct 143 ms 32560 KB Output is correct
172 Correct 87 ms 19540 KB Output is correct
173 Correct 108 ms 23548 KB Output is correct
174 Correct 125 ms 27300 KB Output is correct
175 Correct 143 ms 31040 KB Output is correct
176 Correct 159 ms 34944 KB Output is correct
177 Correct 174 ms 39076 KB Output is correct