Submission #990900

# Submission time Handle Problem Language Result Execution time Memory
990900 2024-05-31T18:34:20 Z AdamGS Fountain Parks (IOI21_parks) C++17
100 / 100
425 ms 46012 KB
#include "parks.h"
#include<bits/stdc++.h>
using namespace std;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
const int LIM=2e5+7;
int F[LIM], n, dx[]={1, 0, -1, 0}, dy[]={0, 1, 0, -1};
map<pair<int,int>,int>mp, odw;
int fnd(int x) {
  if(F[x]==x) return x;
  return F[x]=fnd(F[x]);
}
bool uni(int a, int b) {
  if(fnd(a)==fnd(b)) return false;
  F[fnd(b)]=fnd(a);
  return true;
}
int construct_roads(vector<int>x, vector<int>y) {
  n=x.size();
  rep(i, n) mp[{x[i], y[i]}]=i;
  rep(i, n) F[i]=i;
  vector<pair<int,pair<int,int>>>V;
  vector<int>u, v, a, b;
  rep(i, n) if(mp.find({x[i], y[i]+2})!=mp.end()) V.pb({x[i], {i, mp[{x[i], y[i]+2}]}});
  sort(all(V));
  for(auto i : V) {
    pair<int,int>p={x[i.nd.st], y[i.nd.st]+1};
    if(abs((p.st+p.nd+1)/2)%2==0) ++p.st; else --p.st;
    if(odw[p]) continue;
    if(uni(i.nd.st, i.nd.nd)) {
      u.pb(i.nd.st);
      v.pb(i.nd.nd);
      a.pb(p.st);
      b.pb(p.nd);
      odw[p]=1;
    }
  }
  V.clear();
  rep(i, n) if(mp.find({x[i]+2, y[i]})!=mp.end()) V.pb({y[i], {i, mp[{x[i]+2, y[i]}]}});
  sort(all(V));
  for(auto i : V) {
    pair<int,int>p={x[i.nd.st]+1, y[i.nd.st]};
    if(abs((p.st+p.nd+1)/2)%2==1) ++p.nd; else --p.nd;
    if(odw[p]) continue;
    if(uni(i.nd.st, i.nd.nd)) {
      u.pb(i.nd.st);
      v.pb(i.nd.nd);
      a.pb(p.st);
      b.pb(p.nd);
      odw[p]=1;
    }
  }
  rep(i, n) if(fnd(i)!=fnd(0)) return 0;
  build(u, v, a, b);
  return 1;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 344 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 145 ms 21796 KB Output is correct
10 Correct 9 ms 2592 KB Output is correct
11 Correct 53 ms 11812 KB Output is correct
12 Correct 13 ms 3692 KB Output is correct
13 Correct 35 ms 8396 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 2 ms 736 KB Output is correct
16 Correct 149 ms 21824 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 344 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 145 ms 21796 KB Output is correct
10 Correct 9 ms 2592 KB Output is correct
11 Correct 53 ms 11812 KB Output is correct
12 Correct 13 ms 3692 KB Output is correct
13 Correct 35 ms 8396 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 2 ms 736 KB Output is correct
16 Correct 149 ms 21824 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 448 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 404 ms 43240 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 3 ms 860 KB Output is correct
27 Correct 4 ms 1116 KB Output is correct
28 Correct 125 ms 17572 KB Output is correct
29 Correct 208 ms 26000 KB Output is correct
30 Correct 282 ms 35264 KB Output is correct
31 Correct 370 ms 43368 KB Output is correct
32 Correct 1 ms 600 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 2 ms 604 KB Output is correct
44 Correct 3 ms 860 KB Output is correct
45 Correct 148 ms 21888 KB Output is correct
46 Correct 228 ms 31328 KB Output is correct
47 Correct 230 ms 31172 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 344 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 145 ms 21796 KB Output is correct
10 Correct 9 ms 2592 KB Output is correct
11 Correct 53 ms 11812 KB Output is correct
12 Correct 13 ms 3692 KB Output is correct
13 Correct 35 ms 8396 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 2 ms 736 KB Output is correct
16 Correct 149 ms 21824 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 448 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 404 ms 43240 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 3 ms 860 KB Output is correct
27 Correct 4 ms 1116 KB Output is correct
28 Correct 125 ms 17572 KB Output is correct
29 Correct 208 ms 26000 KB Output is correct
30 Correct 282 ms 35264 KB Output is correct
31 Correct 370 ms 43368 KB Output is correct
32 Correct 1 ms 600 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 2 ms 604 KB Output is correct
44 Correct 3 ms 860 KB Output is correct
45 Correct 148 ms 21888 KB Output is correct
46 Correct 228 ms 31328 KB Output is correct
47 Correct 230 ms 31172 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 444 KB Output is correct
51 Correct 0 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 348 KB Output is correct
55 Correct 404 ms 43200 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 2 ms 860 KB Output is correct
58 Correct 7 ms 1628 KB Output is correct
59 Correct 11 ms 2272 KB Output is correct
60 Correct 167 ms 21584 KB Output is correct
61 Correct 242 ms 30312 KB Output is correct
62 Correct 312 ms 36232 KB Output is correct
63 Correct 383 ms 43424 KB Output is correct
64 Correct 1 ms 344 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 322 ms 43284 KB Output is correct
68 Correct 314 ms 43376 KB Output is correct
69 Correct 324 ms 43216 KB Output is correct
70 Correct 4 ms 1116 KB Output is correct
71 Correct 7 ms 1628 KB Output is correct
72 Correct 148 ms 21232 KB Output is correct
73 Correct 232 ms 32200 KB Output is correct
74 Correct 364 ms 42432 KB Output is correct
75 Correct 355 ms 45632 KB Output is correct
76 Correct 315 ms 43396 KB Output is correct
77 Correct 5 ms 1368 KB Output is correct
78 Correct 9 ms 2140 KB Output is correct
79 Correct 152 ms 22204 KB Output is correct
80 Correct 260 ms 33220 KB Output is correct
81 Correct 358 ms 44808 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 344 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 145 ms 21796 KB Output is correct
10 Correct 9 ms 2592 KB Output is correct
11 Correct 53 ms 11812 KB Output is correct
12 Correct 13 ms 3692 KB Output is correct
13 Correct 35 ms 8396 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 2 ms 736 KB Output is correct
16 Correct 149 ms 21824 KB Output is correct
17 Correct 0 ms 344 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 340 ms 43872 KB Output is correct
21 Correct 339 ms 42376 KB Output is correct
22 Correct 330 ms 42948 KB Output is correct
23 Correct 292 ms 36300 KB Output is correct
24 Correct 167 ms 18500 KB Output is correct
25 Correct 337 ms 36544 KB Output is correct
26 Correct 277 ms 36800 KB Output is correct
27 Correct 304 ms 43124 KB Output is correct
28 Correct 313 ms 43208 KB Output is correct
29 Correct 389 ms 43536 KB Output is correct
30 Correct 361 ms 43152 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 18 ms 3656 KB Output is correct
33 Correct 85 ms 9812 KB Output is correct
34 Correct 326 ms 42692 KB Output is correct
35 Correct 11 ms 2140 KB Output is correct
36 Correct 62 ms 9196 KB Output is correct
37 Correct 137 ms 18380 KB Output is correct
38 Correct 125 ms 17372 KB Output is correct
39 Correct 183 ms 23620 KB Output is correct
40 Correct 229 ms 30672 KB Output is correct
41 Correct 297 ms 36552 KB Output is correct
42 Correct 381 ms 42696 KB Output is correct
43 Correct 0 ms 344 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 0 ms 444 KB Output is correct
47 Correct 0 ms 440 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 1 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 0 ms 348 KB Output is correct
53 Correct 0 ms 444 KB Output is correct
54 Correct 2 ms 664 KB Output is correct
55 Correct 3 ms 860 KB Output is correct
56 Correct 143 ms 21892 KB Output is correct
57 Correct 229 ms 31180 KB Output is correct
58 Correct 219 ms 31176 KB Output is correct
59 Correct 0 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 0 ms 348 KB Output is correct
62 Correct 318 ms 43240 KB Output is correct
63 Correct 313 ms 43324 KB Output is correct
64 Correct 300 ms 43132 KB Output is correct
65 Correct 5 ms 1112 KB Output is correct
66 Correct 7 ms 1628 KB Output is correct
67 Correct 147 ms 21224 KB Output is correct
68 Correct 233 ms 32196 KB Output is correct
69 Correct 322 ms 42440 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 344 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 145 ms 21796 KB Output is correct
10 Correct 9 ms 2592 KB Output is correct
11 Correct 53 ms 11812 KB Output is correct
12 Correct 13 ms 3692 KB Output is correct
13 Correct 35 ms 8396 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 2 ms 736 KB Output is correct
16 Correct 149 ms 21824 KB Output is correct
17 Correct 349 ms 42200 KB Output is correct
18 Correct 335 ms 42180 KB Output is correct
19 Correct 313 ms 42692 KB Output is correct
20 Correct 380 ms 45244 KB Output is correct
21 Correct 330 ms 38000 KB Output is correct
22 Correct 0 ms 344 KB Output is correct
23 Correct 43 ms 7716 KB Output is correct
24 Correct 25 ms 4388 KB Output is correct
25 Correct 92 ms 14028 KB Output is correct
26 Correct 167 ms 23240 KB Output is correct
27 Correct 164 ms 22728 KB Output is correct
28 Correct 216 ms 29824 KB Output is correct
29 Correct 267 ms 34572 KB Output is correct
30 Correct 319 ms 39628 KB Output is correct
31 Correct 375 ms 45300 KB Output is correct
32 Correct 355 ms 46012 KB Output is correct
33 Correct 296 ms 43376 KB Output is correct
34 Correct 4 ms 1372 KB Output is correct
35 Correct 8 ms 2132 KB Output is correct
36 Correct 143 ms 22384 KB Output is correct
37 Correct 224 ms 33216 KB Output is correct
38 Correct 326 ms 44808 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 344 KB Output is correct
5 Correct 1 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 344 KB Output is correct
8 Correct 1 ms 344 KB Output is correct
9 Correct 145 ms 21796 KB Output is correct
10 Correct 9 ms 2592 KB Output is correct
11 Correct 53 ms 11812 KB Output is correct
12 Correct 13 ms 3692 KB Output is correct
13 Correct 35 ms 8396 KB Output is correct
14 Correct 1 ms 604 KB Output is correct
15 Correct 2 ms 736 KB Output is correct
16 Correct 149 ms 21824 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 448 KB Output is correct
19 Correct 1 ms 348 KB Output is correct
20 Correct 0 ms 348 KB Output is correct
21 Correct 0 ms 348 KB Output is correct
22 Correct 1 ms 348 KB Output is correct
23 Correct 404 ms 43240 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 1 ms 604 KB Output is correct
26 Correct 3 ms 860 KB Output is correct
27 Correct 4 ms 1116 KB Output is correct
28 Correct 125 ms 17572 KB Output is correct
29 Correct 208 ms 26000 KB Output is correct
30 Correct 282 ms 35264 KB Output is correct
31 Correct 370 ms 43368 KB Output is correct
32 Correct 1 ms 600 KB Output is correct
33 Correct 0 ms 348 KB Output is correct
34 Correct 0 ms 348 KB Output is correct
35 Correct 0 ms 348 KB Output is correct
36 Correct 0 ms 348 KB Output is correct
37 Correct 0 ms 348 KB Output is correct
38 Correct 0 ms 348 KB Output is correct
39 Correct 0 ms 348 KB Output is correct
40 Correct 0 ms 344 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 2 ms 604 KB Output is correct
44 Correct 3 ms 860 KB Output is correct
45 Correct 148 ms 21888 KB Output is correct
46 Correct 228 ms 31328 KB Output is correct
47 Correct 230 ms 31172 KB Output is correct
48 Correct 1 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 444 KB Output is correct
51 Correct 0 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 348 KB Output is correct
55 Correct 404 ms 43200 KB Output is correct
56 Correct 0 ms 344 KB Output is correct
57 Correct 2 ms 860 KB Output is correct
58 Correct 7 ms 1628 KB Output is correct
59 Correct 11 ms 2272 KB Output is correct
60 Correct 167 ms 21584 KB Output is correct
61 Correct 242 ms 30312 KB Output is correct
62 Correct 312 ms 36232 KB Output is correct
63 Correct 383 ms 43424 KB Output is correct
64 Correct 1 ms 344 KB Output is correct
65 Correct 0 ms 348 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 322 ms 43284 KB Output is correct
68 Correct 314 ms 43376 KB Output is correct
69 Correct 324 ms 43216 KB Output is correct
70 Correct 4 ms 1116 KB Output is correct
71 Correct 7 ms 1628 KB Output is correct
72 Correct 148 ms 21232 KB Output is correct
73 Correct 232 ms 32200 KB Output is correct
74 Correct 364 ms 42432 KB Output is correct
75 Correct 355 ms 45632 KB Output is correct
76 Correct 315 ms 43396 KB Output is correct
77 Correct 5 ms 1368 KB Output is correct
78 Correct 9 ms 2140 KB Output is correct
79 Correct 152 ms 22204 KB Output is correct
80 Correct 260 ms 33220 KB Output is correct
81 Correct 358 ms 44808 KB Output is correct
82 Correct 0 ms 344 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 340 ms 43872 KB Output is correct
86 Correct 339 ms 42376 KB Output is correct
87 Correct 330 ms 42948 KB Output is correct
88 Correct 292 ms 36300 KB Output is correct
89 Correct 167 ms 18500 KB Output is correct
90 Correct 337 ms 36544 KB Output is correct
91 Correct 277 ms 36800 KB Output is correct
92 Correct 304 ms 43124 KB Output is correct
93 Correct 313 ms 43208 KB Output is correct
94 Correct 389 ms 43536 KB Output is correct
95 Correct 361 ms 43152 KB Output is correct
96 Correct 0 ms 348 KB Output is correct
97 Correct 18 ms 3656 KB Output is correct
98 Correct 85 ms 9812 KB Output is correct
99 Correct 326 ms 42692 KB Output is correct
100 Correct 11 ms 2140 KB Output is correct
101 Correct 62 ms 9196 KB Output is correct
102 Correct 137 ms 18380 KB Output is correct
103 Correct 125 ms 17372 KB Output is correct
104 Correct 183 ms 23620 KB Output is correct
105 Correct 229 ms 30672 KB Output is correct
106 Correct 297 ms 36552 KB Output is correct
107 Correct 381 ms 42696 KB Output is correct
108 Correct 0 ms 344 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 0 ms 348 KB Output is correct
111 Correct 0 ms 444 KB Output is correct
112 Correct 0 ms 440 KB Output is correct
113 Correct 0 ms 348 KB Output is correct
114 Correct 0 ms 348 KB Output is correct
115 Correct 1 ms 348 KB Output is correct
116 Correct 0 ms 348 KB Output is correct
117 Correct 0 ms 348 KB Output is correct
118 Correct 0 ms 444 KB Output is correct
119 Correct 2 ms 664 KB Output is correct
120 Correct 3 ms 860 KB Output is correct
121 Correct 143 ms 21892 KB Output is correct
122 Correct 229 ms 31180 KB Output is correct
123 Correct 219 ms 31176 KB Output is correct
124 Correct 0 ms 348 KB Output is correct
125 Correct 0 ms 348 KB Output is correct
126 Correct 0 ms 348 KB Output is correct
127 Correct 318 ms 43240 KB Output is correct
128 Correct 313 ms 43324 KB Output is correct
129 Correct 300 ms 43132 KB Output is correct
130 Correct 5 ms 1112 KB Output is correct
131 Correct 7 ms 1628 KB Output is correct
132 Correct 147 ms 21224 KB Output is correct
133 Correct 233 ms 32196 KB Output is correct
134 Correct 322 ms 42440 KB Output is correct
135 Correct 349 ms 42200 KB Output is correct
136 Correct 335 ms 42180 KB Output is correct
137 Correct 313 ms 42692 KB Output is correct
138 Correct 380 ms 45244 KB Output is correct
139 Correct 330 ms 38000 KB Output is correct
140 Correct 0 ms 344 KB Output is correct
141 Correct 43 ms 7716 KB Output is correct
142 Correct 25 ms 4388 KB Output is correct
143 Correct 92 ms 14028 KB Output is correct
144 Correct 167 ms 23240 KB Output is correct
145 Correct 164 ms 22728 KB Output is correct
146 Correct 216 ms 29824 KB Output is correct
147 Correct 267 ms 34572 KB Output is correct
148 Correct 319 ms 39628 KB Output is correct
149 Correct 375 ms 45300 KB Output is correct
150 Correct 355 ms 46012 KB Output is correct
151 Correct 296 ms 43376 KB Output is correct
152 Correct 4 ms 1372 KB Output is correct
153 Correct 8 ms 2132 KB Output is correct
154 Correct 143 ms 22384 KB Output is correct
155 Correct 224 ms 33216 KB Output is correct
156 Correct 326 ms 44808 KB Output is correct
157 Correct 0 ms 348 KB Output is correct
158 Correct 0 ms 452 KB Output is correct
159 Correct 0 ms 348 KB Output is correct
160 Correct 0 ms 348 KB Output is correct
161 Correct 425 ms 43908 KB Output is correct
162 Correct 313 ms 42696 KB Output is correct
163 Correct 310 ms 44796 KB Output is correct
164 Correct 328 ms 44900 KB Output is correct
165 Correct 347 ms 44612 KB Output is correct
166 Correct 364 ms 43956 KB Output is correct
167 Correct 71 ms 10620 KB Output is correct
168 Correct 40 ms 5920 KB Output is correct
169 Correct 121 ms 15300 KB Output is correct
170 Correct 246 ms 28488 KB Output is correct
171 Correct 340 ms 37424 KB Output is correct
172 Correct 181 ms 22828 KB Output is correct
173 Correct 220 ms 27048 KB Output is correct
174 Correct 285 ms 32304 KB Output is correct
175 Correct 313 ms 35980 KB Output is correct
176 Correct 350 ms 40716 KB Output is correct
177 Correct 406 ms 45184 KB Output is correct