Submission #896381

# Submission time Handle Problem Language Result Execution time Memory
896381 2024-01-01T10:53:47 Z abcvuitunggio Fountain Parks (IOI21_parks) C++17
100 / 100
353 ms 53764 KB
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;
int n,p[200001],s[200001],cnt;
map <int, int> mp[300001];
vector <int> order;
int f(int i){
    return (p[i]==i?i:p[i]=f(p[i]));
}
bool unite(int i, int j){
    i=f(i);
    j=f(j);
    if (i==j)
        return false;
    p[j]=i;
    return true;
}
int construct_roads(vector <int> x, vector <int> y){
    vector <int32_t> u,v,a,b;
    n=x.size();
    for (int i=0;i<n;i++){
        mp[x[i]][y[i]]=i;
        order.push_back(i);
        s[i]=x[i]+y[i];
    }
    iota(p,p+n,0);
    sort(order.begin(),order.end(),[](int i, int j){return s[i]<s[j];});
    for (int i:order){
        if (mp[x[i]].count(y[i]-2)){
            int j=mp[x[i]][y[i]-2],X=x[i]+(x[i]+y[i])%4-1,Y=y[i]-1;
            if (!mp[X].count(Y)){
                u.push_back(i);
                v.push_back(j);
                cnt+=unite(i,j);
                a.push_back(X);
                b.push_back(Y);
                mp[X][Y]=1;
            }
        }
        if (mp[x[i]-2].count(y[i])){
            int j=mp[x[i]-2][y[i]],X=x[i]-1,Y=y[i]+1-(x[i]+y[i])%4;
            if (!mp[X].count(Y)){
                u.push_back(i);
                v.push_back(j);
                cnt+=unite(i,j);
                a.push_back(X);
                b.push_back(Y);
                mp[X][Y]=1;
            }
        }
    }
    if (cnt<n-1)
        return 0;
    build(u,v,a,b);
    return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 4 ms 14936 KB Output is correct
2 Correct 3 ms 15192 KB Output is correct
3 Correct 3 ms 14940 KB Output is correct
4 Correct 3 ms 14936 KB Output is correct
5 Correct 3 ms 14940 KB Output is correct
6 Correct 5 ms 14948 KB Output is correct
7 Correct 3 ms 14940 KB Output is correct
8 Correct 3 ms 14940 KB Output is correct
9 Correct 114 ms 31496 KB Output is correct
10 Correct 11 ms 16732 KB Output is correct
11 Correct 49 ms 23768 KB Output is correct
12 Correct 15 ms 17496 KB Output is correct
13 Correct 28 ms 20836 KB Output is correct
14 Correct 3 ms 14940 KB Output is correct
15 Correct 4 ms 15196 KB Output is correct
16 Correct 124 ms 31392 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 14936 KB Output is correct
2 Correct 3 ms 15192 KB Output is correct
3 Correct 3 ms 14940 KB Output is correct
4 Correct 3 ms 14936 KB Output is correct
5 Correct 3 ms 14940 KB Output is correct
6 Correct 5 ms 14948 KB Output is correct
7 Correct 3 ms 14940 KB Output is correct
8 Correct 3 ms 14940 KB Output is correct
9 Correct 114 ms 31496 KB Output is correct
10 Correct 11 ms 16732 KB Output is correct
11 Correct 49 ms 23768 KB Output is correct
12 Correct 15 ms 17496 KB Output is correct
13 Correct 28 ms 20836 KB Output is correct
14 Correct 3 ms 14940 KB Output is correct
15 Correct 4 ms 15196 KB Output is correct
16 Correct 124 ms 31392 KB Output is correct
17 Correct 3 ms 14936 KB Output is correct
18 Correct 4 ms 14936 KB Output is correct
19 Correct 3 ms 14940 KB Output is correct
20 Correct 3 ms 14940 KB Output is correct
21 Correct 3 ms 14948 KB Output is correct
22 Correct 3 ms 14940 KB Output is correct
23 Correct 285 ms 48392 KB Output is correct
24 Correct 3 ms 14936 KB Output is correct
25 Correct 4 ms 15196 KB Output is correct
26 Correct 5 ms 15196 KB Output is correct
27 Correct 5 ms 15452 KB Output is correct
28 Correct 96 ms 28160 KB Output is correct
29 Correct 160 ms 35036 KB Output is correct
30 Correct 217 ms 41712 KB Output is correct
31 Correct 287 ms 48232 KB Output is correct
32 Correct 3 ms 14940 KB Output is correct
33 Correct 3 ms 14940 KB Output is correct
34 Correct 3 ms 14940 KB Output is correct
35 Correct 3 ms 14940 KB Output is correct
36 Correct 3 ms 14940 KB Output is correct
37 Correct 3 ms 14940 KB Output is correct
38 Correct 3 ms 15136 KB Output is correct
39 Correct 3 ms 14940 KB Output is correct
40 Correct 3 ms 14940 KB Output is correct
41 Correct 3 ms 14940 KB Output is correct
42 Correct 3 ms 14940 KB Output is correct
43 Correct 5 ms 15196 KB Output is correct
44 Correct 5 ms 15208 KB Output is correct
45 Correct 121 ms 31352 KB Output is correct
46 Correct 179 ms 39656 KB Output is correct
47 Correct 179 ms 39660 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 14936 KB Output is correct
2 Correct 3 ms 15192 KB Output is correct
3 Correct 3 ms 14940 KB Output is correct
4 Correct 3 ms 14936 KB Output is correct
5 Correct 3 ms 14940 KB Output is correct
6 Correct 5 ms 14948 KB Output is correct
7 Correct 3 ms 14940 KB Output is correct
8 Correct 3 ms 14940 KB Output is correct
9 Correct 114 ms 31496 KB Output is correct
10 Correct 11 ms 16732 KB Output is correct
11 Correct 49 ms 23768 KB Output is correct
12 Correct 15 ms 17496 KB Output is correct
13 Correct 28 ms 20836 KB Output is correct
14 Correct 3 ms 14940 KB Output is correct
15 Correct 4 ms 15196 KB Output is correct
16 Correct 124 ms 31392 KB Output is correct
17 Correct 3 ms 14936 KB Output is correct
18 Correct 4 ms 14936 KB Output is correct
19 Correct 3 ms 14940 KB Output is correct
20 Correct 3 ms 14940 KB Output is correct
21 Correct 3 ms 14948 KB Output is correct
22 Correct 3 ms 14940 KB Output is correct
23 Correct 285 ms 48392 KB Output is correct
24 Correct 3 ms 14936 KB Output is correct
25 Correct 4 ms 15196 KB Output is correct
26 Correct 5 ms 15196 KB Output is correct
27 Correct 5 ms 15452 KB Output is correct
28 Correct 96 ms 28160 KB Output is correct
29 Correct 160 ms 35036 KB Output is correct
30 Correct 217 ms 41712 KB Output is correct
31 Correct 287 ms 48232 KB Output is correct
32 Correct 3 ms 14940 KB Output is correct
33 Correct 3 ms 14940 KB Output is correct
34 Correct 3 ms 14940 KB Output is correct
35 Correct 3 ms 14940 KB Output is correct
36 Correct 3 ms 14940 KB Output is correct
37 Correct 3 ms 14940 KB Output is correct
38 Correct 3 ms 15136 KB Output is correct
39 Correct 3 ms 14940 KB Output is correct
40 Correct 3 ms 14940 KB Output is correct
41 Correct 3 ms 14940 KB Output is correct
42 Correct 3 ms 14940 KB Output is correct
43 Correct 5 ms 15196 KB Output is correct
44 Correct 5 ms 15208 KB Output is correct
45 Correct 121 ms 31352 KB Output is correct
46 Correct 179 ms 39656 KB Output is correct
47 Correct 179 ms 39660 KB Output is correct
48 Correct 3 ms 14940 KB Output is correct
49 Correct 3 ms 14940 KB Output is correct
50 Correct 3 ms 14940 KB Output is correct
51 Correct 3 ms 14940 KB Output is correct
52 Correct 3 ms 14936 KB Output is correct
53 Correct 3 ms 14936 KB Output is correct
54 Correct 3 ms 14940 KB Output is correct
55 Correct 275 ms 48300 KB Output is correct
56 Correct 4 ms 14940 KB Output is correct
57 Correct 4 ms 15196 KB Output is correct
58 Correct 8 ms 16076 KB Output is correct
59 Correct 10 ms 16220 KB Output is correct
60 Correct 121 ms 31436 KB Output is correct
61 Correct 168 ms 38380 KB Output is correct
62 Correct 214 ms 42696 KB Output is correct
63 Correct 282 ms 48260 KB Output is correct
64 Correct 3 ms 14940 KB Output is correct
65 Correct 3 ms 14940 KB Output is correct
66 Correct 3 ms 14940 KB Output is correct
67 Correct 289 ms 48364 KB Output is correct
68 Correct 255 ms 48328 KB Output is correct
69 Correct 257 ms 48332 KB Output is correct
70 Correct 5 ms 15452 KB Output is correct
71 Correct 8 ms 15964 KB Output is correct
72 Correct 116 ms 31436 KB Output is correct
73 Correct 186 ms 40136 KB Output is correct
74 Correct 256 ms 48468 KB Output is correct
75 Correct 289 ms 51924 KB Output is correct
76 Correct 276 ms 48504 KB Output is correct
77 Correct 6 ms 15708 KB Output is correct
78 Correct 9 ms 16220 KB Output is correct
79 Correct 118 ms 32460 KB Output is correct
80 Correct 200 ms 41672 KB Output is correct
81 Correct 292 ms 50168 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 14936 KB Output is correct
2 Correct 3 ms 15192 KB Output is correct
3 Correct 3 ms 14940 KB Output is correct
4 Correct 3 ms 14936 KB Output is correct
5 Correct 3 ms 14940 KB Output is correct
6 Correct 5 ms 14948 KB Output is correct
7 Correct 3 ms 14940 KB Output is correct
8 Correct 3 ms 14940 KB Output is correct
9 Correct 114 ms 31496 KB Output is correct
10 Correct 11 ms 16732 KB Output is correct
11 Correct 49 ms 23768 KB Output is correct
12 Correct 15 ms 17496 KB Output is correct
13 Correct 28 ms 20836 KB Output is correct
14 Correct 3 ms 14940 KB Output is correct
15 Correct 4 ms 15196 KB Output is correct
16 Correct 124 ms 31392 KB Output is correct
17 Correct 3 ms 14936 KB Output is correct
18 Correct 3 ms 14940 KB Output is correct
19 Correct 3 ms 14940 KB Output is correct
20 Correct 228 ms 48464 KB Output is correct
21 Correct 177 ms 48348 KB Output is correct
22 Correct 265 ms 48248 KB Output is correct
23 Correct 175 ms 43420 KB Output is correct
24 Correct 125 ms 29400 KB Output is correct
25 Correct 246 ms 41928 KB Output is correct
26 Correct 203 ms 42036 KB Output is correct
27 Correct 289 ms 48324 KB Output is correct
28 Correct 261 ms 48332 KB Output is correct
29 Correct 300 ms 48328 KB Output is correct
30 Correct 305 ms 48260 KB Output is correct
31 Correct 3 ms 14940 KB Output is correct
32 Correct 15 ms 17500 KB Output is correct
33 Correct 50 ms 22220 KB Output is correct
34 Correct 175 ms 48448 KB Output is correct
35 Correct 9 ms 16220 KB Output is correct
36 Correct 39 ms 21436 KB Output is correct
37 Correct 79 ms 28360 KB Output is correct
38 Correct 98 ms 28364 KB Output is correct
39 Correct 140 ms 33056 KB Output is correct
40 Correct 188 ms 38964 KB Output is correct
41 Correct 258 ms 43412 KB Output is correct
42 Correct 304 ms 48328 KB Output is correct
43 Correct 3 ms 14940 KB Output is correct
44 Correct 3 ms 14940 KB Output is correct
45 Correct 3 ms 14940 KB Output is correct
46 Correct 3 ms 14940 KB Output is correct
47 Correct 4 ms 14936 KB Output is correct
48 Correct 3 ms 14940 KB Output is correct
49 Correct 3 ms 14940 KB Output is correct
50 Correct 3 ms 14940 KB Output is correct
51 Correct 3 ms 14940 KB Output is correct
52 Correct 3 ms 14964 KB Output is correct
53 Correct 3 ms 14964 KB Output is correct
54 Correct 5 ms 15192 KB Output is correct
55 Correct 5 ms 15196 KB Output is correct
56 Correct 118 ms 31512 KB Output is correct
57 Correct 190 ms 39700 KB Output is correct
58 Correct 171 ms 39880 KB Output is correct
59 Correct 3 ms 14936 KB Output is correct
60 Correct 3 ms 14936 KB Output is correct
61 Correct 3 ms 14940 KB Output is correct
62 Correct 254 ms 48332 KB Output is correct
63 Correct 269 ms 48328 KB Output is correct
64 Correct 303 ms 48216 KB Output is correct
65 Correct 5 ms 15452 KB Output is correct
66 Correct 10 ms 16012 KB Output is correct
67 Correct 114 ms 31436 KB Output is correct
68 Correct 193 ms 40648 KB Output is correct
69 Correct 266 ms 48324 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 14936 KB Output is correct
2 Correct 3 ms 15192 KB Output is correct
3 Correct 3 ms 14940 KB Output is correct
4 Correct 3 ms 14936 KB Output is correct
5 Correct 3 ms 14940 KB Output is correct
6 Correct 5 ms 14948 KB Output is correct
7 Correct 3 ms 14940 KB Output is correct
8 Correct 3 ms 14940 KB Output is correct
9 Correct 114 ms 31496 KB Output is correct
10 Correct 11 ms 16732 KB Output is correct
11 Correct 49 ms 23768 KB Output is correct
12 Correct 15 ms 17496 KB Output is correct
13 Correct 28 ms 20836 KB Output is correct
14 Correct 3 ms 14940 KB Output is correct
15 Correct 4 ms 15196 KB Output is correct
16 Correct 124 ms 31392 KB Output is correct
17 Correct 238 ms 48328 KB Output is correct
18 Correct 254 ms 48332 KB Output is correct
19 Correct 201 ms 48328 KB Output is correct
20 Correct 346 ms 53764 KB Output is correct
21 Correct 273 ms 46024 KB Output is correct
22 Correct 3 ms 14940 KB Output is correct
23 Correct 33 ms 20356 KB Output is correct
24 Correct 18 ms 17756 KB Output is correct
25 Correct 60 ms 25228 KB Output is correct
26 Correct 111 ms 32892 KB Output is correct
27 Correct 149 ms 33224 KB Output is correct
28 Correct 186 ms 37816 KB Output is correct
29 Correct 227 ms 42840 KB Output is correct
30 Correct 286 ms 47308 KB Output is correct
31 Correct 353 ms 51908 KB Output is correct
32 Correct 293 ms 51908 KB Output is correct
33 Correct 252 ms 48444 KB Output is correct
34 Correct 6 ms 15704 KB Output is correct
35 Correct 9 ms 16220 KB Output is correct
36 Correct 119 ms 32268 KB Output is correct
37 Correct 201 ms 41668 KB Output is correct
38 Correct 312 ms 50116 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 14936 KB Output is correct
2 Correct 3 ms 15192 KB Output is correct
3 Correct 3 ms 14940 KB Output is correct
4 Correct 3 ms 14936 KB Output is correct
5 Correct 3 ms 14940 KB Output is correct
6 Correct 5 ms 14948 KB Output is correct
7 Correct 3 ms 14940 KB Output is correct
8 Correct 3 ms 14940 KB Output is correct
9 Correct 114 ms 31496 KB Output is correct
10 Correct 11 ms 16732 KB Output is correct
11 Correct 49 ms 23768 KB Output is correct
12 Correct 15 ms 17496 KB Output is correct
13 Correct 28 ms 20836 KB Output is correct
14 Correct 3 ms 14940 KB Output is correct
15 Correct 4 ms 15196 KB Output is correct
16 Correct 124 ms 31392 KB Output is correct
17 Correct 3 ms 14936 KB Output is correct
18 Correct 4 ms 14936 KB Output is correct
19 Correct 3 ms 14940 KB Output is correct
20 Correct 3 ms 14940 KB Output is correct
21 Correct 3 ms 14948 KB Output is correct
22 Correct 3 ms 14940 KB Output is correct
23 Correct 285 ms 48392 KB Output is correct
24 Correct 3 ms 14936 KB Output is correct
25 Correct 4 ms 15196 KB Output is correct
26 Correct 5 ms 15196 KB Output is correct
27 Correct 5 ms 15452 KB Output is correct
28 Correct 96 ms 28160 KB Output is correct
29 Correct 160 ms 35036 KB Output is correct
30 Correct 217 ms 41712 KB Output is correct
31 Correct 287 ms 48232 KB Output is correct
32 Correct 3 ms 14940 KB Output is correct
33 Correct 3 ms 14940 KB Output is correct
34 Correct 3 ms 14940 KB Output is correct
35 Correct 3 ms 14940 KB Output is correct
36 Correct 3 ms 14940 KB Output is correct
37 Correct 3 ms 14940 KB Output is correct
38 Correct 3 ms 15136 KB Output is correct
39 Correct 3 ms 14940 KB Output is correct
40 Correct 3 ms 14940 KB Output is correct
41 Correct 3 ms 14940 KB Output is correct
42 Correct 3 ms 14940 KB Output is correct
43 Correct 5 ms 15196 KB Output is correct
44 Correct 5 ms 15208 KB Output is correct
45 Correct 121 ms 31352 KB Output is correct
46 Correct 179 ms 39656 KB Output is correct
47 Correct 179 ms 39660 KB Output is correct
48 Correct 3 ms 14940 KB Output is correct
49 Correct 3 ms 14940 KB Output is correct
50 Correct 3 ms 14940 KB Output is correct
51 Correct 3 ms 14940 KB Output is correct
52 Correct 3 ms 14936 KB Output is correct
53 Correct 3 ms 14936 KB Output is correct
54 Correct 3 ms 14940 KB Output is correct
55 Correct 275 ms 48300 KB Output is correct
56 Correct 4 ms 14940 KB Output is correct
57 Correct 4 ms 15196 KB Output is correct
58 Correct 8 ms 16076 KB Output is correct
59 Correct 10 ms 16220 KB Output is correct
60 Correct 121 ms 31436 KB Output is correct
61 Correct 168 ms 38380 KB Output is correct
62 Correct 214 ms 42696 KB Output is correct
63 Correct 282 ms 48260 KB Output is correct
64 Correct 3 ms 14940 KB Output is correct
65 Correct 3 ms 14940 KB Output is correct
66 Correct 3 ms 14940 KB Output is correct
67 Correct 289 ms 48364 KB Output is correct
68 Correct 255 ms 48328 KB Output is correct
69 Correct 257 ms 48332 KB Output is correct
70 Correct 5 ms 15452 KB Output is correct
71 Correct 8 ms 15964 KB Output is correct
72 Correct 116 ms 31436 KB Output is correct
73 Correct 186 ms 40136 KB Output is correct
74 Correct 256 ms 48468 KB Output is correct
75 Correct 289 ms 51924 KB Output is correct
76 Correct 276 ms 48504 KB Output is correct
77 Correct 6 ms 15708 KB Output is correct
78 Correct 9 ms 16220 KB Output is correct
79 Correct 118 ms 32460 KB Output is correct
80 Correct 200 ms 41672 KB Output is correct
81 Correct 292 ms 50168 KB Output is correct
82 Correct 3 ms 14936 KB Output is correct
83 Correct 3 ms 14940 KB Output is correct
84 Correct 3 ms 14940 KB Output is correct
85 Correct 228 ms 48464 KB Output is correct
86 Correct 177 ms 48348 KB Output is correct
87 Correct 265 ms 48248 KB Output is correct
88 Correct 175 ms 43420 KB Output is correct
89 Correct 125 ms 29400 KB Output is correct
90 Correct 246 ms 41928 KB Output is correct
91 Correct 203 ms 42036 KB Output is correct
92 Correct 289 ms 48324 KB Output is correct
93 Correct 261 ms 48332 KB Output is correct
94 Correct 300 ms 48328 KB Output is correct
95 Correct 305 ms 48260 KB Output is correct
96 Correct 3 ms 14940 KB Output is correct
97 Correct 15 ms 17500 KB Output is correct
98 Correct 50 ms 22220 KB Output is correct
99 Correct 175 ms 48448 KB Output is correct
100 Correct 9 ms 16220 KB Output is correct
101 Correct 39 ms 21436 KB Output is correct
102 Correct 79 ms 28360 KB Output is correct
103 Correct 98 ms 28364 KB Output is correct
104 Correct 140 ms 33056 KB Output is correct
105 Correct 188 ms 38964 KB Output is correct
106 Correct 258 ms 43412 KB Output is correct
107 Correct 304 ms 48328 KB Output is correct
108 Correct 3 ms 14940 KB Output is correct
109 Correct 3 ms 14940 KB Output is correct
110 Correct 3 ms 14940 KB Output is correct
111 Correct 3 ms 14940 KB Output is correct
112 Correct 4 ms 14936 KB Output is correct
113 Correct 3 ms 14940 KB Output is correct
114 Correct 3 ms 14940 KB Output is correct
115 Correct 3 ms 14940 KB Output is correct
116 Correct 3 ms 14940 KB Output is correct
117 Correct 3 ms 14964 KB Output is correct
118 Correct 3 ms 14964 KB Output is correct
119 Correct 5 ms 15192 KB Output is correct
120 Correct 5 ms 15196 KB Output is correct
121 Correct 118 ms 31512 KB Output is correct
122 Correct 190 ms 39700 KB Output is correct
123 Correct 171 ms 39880 KB Output is correct
124 Correct 3 ms 14936 KB Output is correct
125 Correct 3 ms 14936 KB Output is correct
126 Correct 3 ms 14940 KB Output is correct
127 Correct 254 ms 48332 KB Output is correct
128 Correct 269 ms 48328 KB Output is correct
129 Correct 303 ms 48216 KB Output is correct
130 Correct 5 ms 15452 KB Output is correct
131 Correct 10 ms 16012 KB Output is correct
132 Correct 114 ms 31436 KB Output is correct
133 Correct 193 ms 40648 KB Output is correct
134 Correct 266 ms 48324 KB Output is correct
135 Correct 238 ms 48328 KB Output is correct
136 Correct 254 ms 48332 KB Output is correct
137 Correct 201 ms 48328 KB Output is correct
138 Correct 346 ms 53764 KB Output is correct
139 Correct 273 ms 46024 KB Output is correct
140 Correct 3 ms 14940 KB Output is correct
141 Correct 33 ms 20356 KB Output is correct
142 Correct 18 ms 17756 KB Output is correct
143 Correct 60 ms 25228 KB Output is correct
144 Correct 111 ms 32892 KB Output is correct
145 Correct 149 ms 33224 KB Output is correct
146 Correct 186 ms 37816 KB Output is correct
147 Correct 227 ms 42840 KB Output is correct
148 Correct 286 ms 47308 KB Output is correct
149 Correct 353 ms 51908 KB Output is correct
150 Correct 293 ms 51908 KB Output is correct
151 Correct 252 ms 48444 KB Output is correct
152 Correct 6 ms 15704 KB Output is correct
153 Correct 9 ms 16220 KB Output is correct
154 Correct 119 ms 32268 KB Output is correct
155 Correct 201 ms 41668 KB Output is correct
156 Correct 312 ms 50116 KB Output is correct
157 Correct 3 ms 14940 KB Output is correct
158 Correct 3 ms 14940 KB Output is correct
159 Correct 3 ms 14940 KB Output is correct
160 Correct 3 ms 14940 KB Output is correct
161 Correct 344 ms 48408 KB Output is correct
162 Correct 187 ms 48344 KB Output is correct
163 Correct 198 ms 48324 KB Output is correct
164 Correct 206 ms 48404 KB Output is correct
165 Correct 188 ms 48464 KB Output is correct
166 Correct 203 ms 48248 KB Output is correct
167 Correct 54 ms 22736 KB Output is correct
168 Correct 28 ms 18780 KB Output is correct
169 Correct 69 ms 25808 KB Output is correct
170 Correct 160 ms 35488 KB Output is correct
171 Correct 217 ms 42184 KB Output is correct
172 Correct 138 ms 31520 KB Output is correct
173 Correct 175 ms 34760 KB Output is correct
174 Correct 211 ms 39180 KB Output is correct
175 Correct 244 ms 41896 KB Output is correct
176 Correct 299 ms 45176 KB Output is correct
177 Correct 347 ms 48384 KB Output is correct