답안 #435013

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
435013 2021-06-22T19:26:53 Z frodakcin 분수 공원 (IOI21_parks) C++17
100 / 100
1294 ms 68040 KB
#include "parks.h"

#include <map>
#include <set>
#include <utility>

using pii = std::pair<int, int>;
#define ff first
#define ss second

const int dx[] = {1,0,-1,0}, dy[] = {0,1,0,-1};
const int MN = 2e5+10;

int ctr, N;
bool v[MN];
pii pt[MN];
std::map<pii, int> map;
std::set<pii> bloc;
void dfs(int n)
{
	if(v[n]) return;
	v[n]=1, ++ctr;
	pii x = pt[n];
	for(int i=0;i<4;++i)
	{
		pii o(x.ff+2*dx[i], x.ss+2*dy[i]);
		if(map.find(o) != map.end())
			dfs(map[o]);
	}
}

int construct_roads(std::vector<int> x, std::vector<int> y) {
	N = x.size();
	for(int i=0;i<N;++i)
	{
		pt[i]={x[i], y[i]};
		map[pt[i]]=i;
		bloc.insert({x[i]-1, y[i]-1});
		bloc.insert({x[i]+1, y[i]-1});
		bloc.insert({x[i]-1, y[i]+1});
		bloc.insert({x[i]+1, y[i]+1});
	}
	dfs(0);
	if(ctr < N) return 0;

	std::vector<int> u, v, a, b;
	for(auto x:bloc)
	{
		int d = x.ff+x.ss&3 ? 1 : -1;
		pii p1(x.ff+1, x.ss+d);
		pii p2(x.ff-d, x.ss+1);
		pii p3(x.ff-1, x.ss-d);
		pii p4(x.ff+d, x.ss-1);
		if(map.find(p1) != map.end() && map.find(p2) != map.end())
			u.push_back(map[p1]), v.push_back(map[p2]), a.push_back(x.ff), b.push_back(x.ss);
		else if(map.find(p3) != map.end() && map.find(p4) != map.end())
			u.push_back(map[p3]), v.push_back(map[p4]), a.push_back(x.ff), b.push_back(x.ss);
	}

	build(u, v, a, b);
	return 1;
}

Compilation message

parks.cpp: In function 'int construct_roads(std::vector<int>, std::vector<int>)':
parks.cpp:49:15: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses]
   49 |   int d = x.ff+x.ss&3 ? 1 : -1;
      |               ^
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 390 ms 33256 KB Output is correct
10 Correct 25 ms 3908 KB Output is correct
11 Correct 169 ms 18624 KB Output is correct
12 Correct 49 ms 5612 KB Output is correct
13 Correct 76 ms 11468 KB Output is correct
14 Correct 2 ms 460 KB Output is correct
15 Correct 3 ms 588 KB Output is correct
16 Correct 404 ms 28764 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 390 ms 33256 KB Output is correct
10 Correct 25 ms 3908 KB Output is correct
11 Correct 169 ms 18624 KB Output is correct
12 Correct 49 ms 5612 KB Output is correct
13 Correct 76 ms 11468 KB Output is correct
14 Correct 2 ms 460 KB Output is correct
15 Correct 3 ms 588 KB Output is correct
16 Correct 404 ms 28764 KB Output is correct
17 Correct 1 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 1 ms 204 KB Output is correct
20 Correct 1 ms 204 KB Output is correct
21 Correct 1 ms 204 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 1109 ms 63376 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 3 ms 588 KB Output is correct
26 Correct 4 ms 844 KB Output is correct
27 Correct 7 ms 844 KB Output is correct
28 Correct 311 ms 25264 KB Output is correct
29 Correct 540 ms 35032 KB Output is correct
30 Correct 844 ms 49344 KB Output is correct
31 Correct 1103 ms 63296 KB Output is correct
32 Correct 1 ms 204 KB Output is correct
33 Correct 1 ms 204 KB Output is correct
34 Correct 1 ms 204 KB Output is correct
35 Correct 0 ms 204 KB Output is correct
36 Correct 0 ms 204 KB Output is correct
37 Correct 0 ms 216 KB Output is correct
38 Correct 0 ms 204 KB Output is correct
39 Correct 0 ms 204 KB Output is correct
40 Correct 0 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 0 ms 204 KB Output is correct
43 Correct 3 ms 716 KB Output is correct
44 Correct 4 ms 844 KB Output is correct
45 Correct 497 ms 29952 KB Output is correct
46 Correct 728 ms 43888 KB Output is correct
47 Correct 772 ms 43272 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 390 ms 33256 KB Output is correct
10 Correct 25 ms 3908 KB Output is correct
11 Correct 169 ms 18624 KB Output is correct
12 Correct 49 ms 5612 KB Output is correct
13 Correct 76 ms 11468 KB Output is correct
14 Correct 2 ms 460 KB Output is correct
15 Correct 3 ms 588 KB Output is correct
16 Correct 404 ms 28764 KB Output is correct
17 Correct 1 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 1 ms 204 KB Output is correct
20 Correct 1 ms 204 KB Output is correct
21 Correct 1 ms 204 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 1109 ms 63376 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 3 ms 588 KB Output is correct
26 Correct 4 ms 844 KB Output is correct
27 Correct 7 ms 844 KB Output is correct
28 Correct 311 ms 25264 KB Output is correct
29 Correct 540 ms 35032 KB Output is correct
30 Correct 844 ms 49344 KB Output is correct
31 Correct 1103 ms 63296 KB Output is correct
32 Correct 1 ms 204 KB Output is correct
33 Correct 1 ms 204 KB Output is correct
34 Correct 1 ms 204 KB Output is correct
35 Correct 0 ms 204 KB Output is correct
36 Correct 0 ms 204 KB Output is correct
37 Correct 0 ms 216 KB Output is correct
38 Correct 0 ms 204 KB Output is correct
39 Correct 0 ms 204 KB Output is correct
40 Correct 0 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 0 ms 204 KB Output is correct
43 Correct 3 ms 716 KB Output is correct
44 Correct 4 ms 844 KB Output is correct
45 Correct 497 ms 29952 KB Output is correct
46 Correct 728 ms 43888 KB Output is correct
47 Correct 772 ms 43272 KB Output is correct
48 Correct 0 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 ms 204 KB Output is correct
51 Correct 1 ms 204 KB Output is correct
52 Correct 0 ms 204 KB Output is correct
53 Correct 0 ms 204 KB Output is correct
54 Correct 1 ms 204 KB Output is correct
55 Correct 1096 ms 61652 KB Output is correct
56 Correct 0 ms 204 KB Output is correct
57 Correct 6 ms 716 KB Output is correct
58 Correct 15 ms 2252 KB Output is correct
59 Correct 16 ms 1904 KB Output is correct
60 Correct 480 ms 31008 KB Output is correct
61 Correct 673 ms 41672 KB Output is correct
62 Correct 913 ms 50908 KB Output is correct
63 Correct 1033 ms 61672 KB Output is correct
64 Correct 1 ms 204 KB Output is correct
65 Correct 1 ms 204 KB Output is correct
66 Correct 1 ms 204 KB Output is correct
67 Correct 957 ms 61680 KB Output is correct
68 Correct 965 ms 61848 KB Output is correct
69 Correct 993 ms 64020 KB Output is correct
70 Correct 8 ms 1100 KB Output is correct
71 Correct 12 ms 1740 KB Output is correct
72 Correct 453 ms 26384 KB Output is correct
73 Correct 792 ms 42020 KB Output is correct
74 Correct 1167 ms 52640 KB Output is correct
75 Correct 1190 ms 61120 KB Output is correct
76 Correct 1010 ms 67952 KB Output is correct
77 Correct 7 ms 1228 KB Output is correct
78 Correct 16 ms 1996 KB Output is correct
79 Correct 532 ms 28308 KB Output is correct
80 Correct 798 ms 43020 KB Output is correct
81 Correct 1176 ms 54464 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 390 ms 33256 KB Output is correct
10 Correct 25 ms 3908 KB Output is correct
11 Correct 169 ms 18624 KB Output is correct
12 Correct 49 ms 5612 KB Output is correct
13 Correct 76 ms 11468 KB Output is correct
14 Correct 2 ms 460 KB Output is correct
15 Correct 3 ms 588 KB Output is correct
16 Correct 404 ms 28764 KB Output is correct
17 Correct 1 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 0 ms 204 KB Output is correct
20 Correct 1076 ms 67348 KB Output is correct
21 Correct 1071 ms 63188 KB Output is correct
22 Correct 1102 ms 60708 KB Output is correct
23 Correct 969 ms 51076 KB Output is correct
24 Correct 705 ms 55004 KB Output is correct
25 Correct 845 ms 36468 KB Output is correct
26 Correct 630 ms 36480 KB Output is correct
27 Correct 952 ms 46160 KB Output is correct
28 Correct 958 ms 46164 KB Output is correct
29 Correct 1247 ms 46128 KB Output is correct
30 Correct 1294 ms 46200 KB Output is correct
31 Correct 1 ms 204 KB Output is correct
32 Correct 51 ms 4384 KB Output is correct
33 Correct 300 ms 22864 KB Output is correct
34 Correct 980 ms 63896 KB Output is correct
35 Correct 17 ms 1868 KB Output is correct
36 Correct 108 ms 8620 KB Output is correct
37 Correct 286 ms 16948 KB Output is correct
38 Correct 317 ms 17456 KB Output is correct
39 Correct 548 ms 23812 KB Output is correct
40 Correct 672 ms 30304 KB Output is correct
41 Correct 849 ms 36612 KB Output is correct
42 Correct 1069 ms 43020 KB Output is correct
43 Correct 0 ms 204 KB Output is correct
44 Correct 0 ms 204 KB Output is correct
45 Correct 0 ms 204 KB Output is correct
46 Correct 1 ms 256 KB Output is correct
47 Correct 0 ms 204 KB Output is correct
48 Correct 0 ms 204 KB Output is correct
49 Correct 0 ms 204 KB Output is correct
50 Correct 1 ms 204 KB Output is correct
51 Correct 0 ms 204 KB Output is correct
52 Correct 1 ms 204 KB Output is correct
53 Correct 1 ms 204 KB Output is correct
54 Correct 3 ms 716 KB Output is correct
55 Correct 4 ms 844 KB Output is correct
56 Correct 479 ms 29920 KB Output is correct
57 Correct 856 ms 43920 KB Output is correct
58 Correct 736 ms 43264 KB Output is correct
59 Correct 0 ms 204 KB Output is correct
60 Correct 1 ms 204 KB Output is correct
61 Correct 1 ms 224 KB Output is correct
62 Correct 1018 ms 61516 KB Output is correct
63 Correct 992 ms 61924 KB Output is correct
64 Correct 994 ms 64180 KB Output is correct
65 Correct 6 ms 972 KB Output is correct
66 Correct 12 ms 1812 KB Output is correct
67 Correct 441 ms 26376 KB Output is correct
68 Correct 773 ms 42100 KB Output is correct
69 Correct 1086 ms 52632 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 390 ms 33256 KB Output is correct
10 Correct 25 ms 3908 KB Output is correct
11 Correct 169 ms 18624 KB Output is correct
12 Correct 49 ms 5612 KB Output is correct
13 Correct 76 ms 11468 KB Output is correct
14 Correct 2 ms 460 KB Output is correct
15 Correct 3 ms 588 KB Output is correct
16 Correct 404 ms 28764 KB Output is correct
17 Correct 1012 ms 68040 KB Output is correct
18 Correct 981 ms 59128 KB Output is correct
19 Correct 1062 ms 67924 KB Output is correct
20 Correct 1154 ms 56500 KB Output is correct
21 Correct 1039 ms 50144 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 121 ms 7952 KB Output is correct
24 Correct 38 ms 3952 KB Output is correct
25 Correct 159 ms 12036 KB Output is correct
26 Correct 352 ms 19888 KB Output is correct
27 Correct 506 ms 28252 KB Output is correct
28 Correct 611 ms 35232 KB Output is correct
29 Correct 797 ms 42052 KB Output is correct
30 Correct 956 ms 49148 KB Output is correct
31 Correct 1182 ms 55840 KB Output is correct
32 Correct 1055 ms 61200 KB Output is correct
33 Correct 954 ms 67960 KB Output is correct
34 Correct 8 ms 1228 KB Output is correct
35 Correct 14 ms 2004 KB Output is correct
36 Correct 522 ms 28248 KB Output is correct
37 Correct 785 ms 43160 KB Output is correct
38 Correct 1086 ms 54492 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 0 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 0 ms 204 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 390 ms 33256 KB Output is correct
10 Correct 25 ms 3908 KB Output is correct
11 Correct 169 ms 18624 KB Output is correct
12 Correct 49 ms 5612 KB Output is correct
13 Correct 76 ms 11468 KB Output is correct
14 Correct 2 ms 460 KB Output is correct
15 Correct 3 ms 588 KB Output is correct
16 Correct 404 ms 28764 KB Output is correct
17 Correct 1 ms 204 KB Output is correct
18 Correct 1 ms 204 KB Output is correct
19 Correct 1 ms 204 KB Output is correct
20 Correct 1 ms 204 KB Output is correct
21 Correct 1 ms 204 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 1109 ms 63376 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 3 ms 588 KB Output is correct
26 Correct 4 ms 844 KB Output is correct
27 Correct 7 ms 844 KB Output is correct
28 Correct 311 ms 25264 KB Output is correct
29 Correct 540 ms 35032 KB Output is correct
30 Correct 844 ms 49344 KB Output is correct
31 Correct 1103 ms 63296 KB Output is correct
32 Correct 1 ms 204 KB Output is correct
33 Correct 1 ms 204 KB Output is correct
34 Correct 1 ms 204 KB Output is correct
35 Correct 0 ms 204 KB Output is correct
36 Correct 0 ms 204 KB Output is correct
37 Correct 0 ms 216 KB Output is correct
38 Correct 0 ms 204 KB Output is correct
39 Correct 0 ms 204 KB Output is correct
40 Correct 0 ms 204 KB Output is correct
41 Correct 0 ms 204 KB Output is correct
42 Correct 0 ms 204 KB Output is correct
43 Correct 3 ms 716 KB Output is correct
44 Correct 4 ms 844 KB Output is correct
45 Correct 497 ms 29952 KB Output is correct
46 Correct 728 ms 43888 KB Output is correct
47 Correct 772 ms 43272 KB Output is correct
48 Correct 0 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 ms 204 KB Output is correct
51 Correct 1 ms 204 KB Output is correct
52 Correct 0 ms 204 KB Output is correct
53 Correct 0 ms 204 KB Output is correct
54 Correct 1 ms 204 KB Output is correct
55 Correct 1096 ms 61652 KB Output is correct
56 Correct 0 ms 204 KB Output is correct
57 Correct 6 ms 716 KB Output is correct
58 Correct 15 ms 2252 KB Output is correct
59 Correct 16 ms 1904 KB Output is correct
60 Correct 480 ms 31008 KB Output is correct
61 Correct 673 ms 41672 KB Output is correct
62 Correct 913 ms 50908 KB Output is correct
63 Correct 1033 ms 61672 KB Output is correct
64 Correct 1 ms 204 KB Output is correct
65 Correct 1 ms 204 KB Output is correct
66 Correct 1 ms 204 KB Output is correct
67 Correct 957 ms 61680 KB Output is correct
68 Correct 965 ms 61848 KB Output is correct
69 Correct 993 ms 64020 KB Output is correct
70 Correct 8 ms 1100 KB Output is correct
71 Correct 12 ms 1740 KB Output is correct
72 Correct 453 ms 26384 KB Output is correct
73 Correct 792 ms 42020 KB Output is correct
74 Correct 1167 ms 52640 KB Output is correct
75 Correct 1190 ms 61120 KB Output is correct
76 Correct 1010 ms 67952 KB Output is correct
77 Correct 7 ms 1228 KB Output is correct
78 Correct 16 ms 1996 KB Output is correct
79 Correct 532 ms 28308 KB Output is correct
80 Correct 798 ms 43020 KB Output is correct
81 Correct 1176 ms 54464 KB Output is correct
82 Correct 1 ms 204 KB Output is correct
83 Correct 1 ms 204 KB Output is correct
84 Correct 0 ms 204 KB Output is correct
85 Correct 1076 ms 67348 KB Output is correct
86 Correct 1071 ms 63188 KB Output is correct
87 Correct 1102 ms 60708 KB Output is correct
88 Correct 969 ms 51076 KB Output is correct
89 Correct 705 ms 55004 KB Output is correct
90 Correct 845 ms 36468 KB Output is correct
91 Correct 630 ms 36480 KB Output is correct
92 Correct 952 ms 46160 KB Output is correct
93 Correct 958 ms 46164 KB Output is correct
94 Correct 1247 ms 46128 KB Output is correct
95 Correct 1294 ms 46200 KB Output is correct
96 Correct 1 ms 204 KB Output is correct
97 Correct 51 ms 4384 KB Output is correct
98 Correct 300 ms 22864 KB Output is correct
99 Correct 980 ms 63896 KB Output is correct
100 Correct 17 ms 1868 KB Output is correct
101 Correct 108 ms 8620 KB Output is correct
102 Correct 286 ms 16948 KB Output is correct
103 Correct 317 ms 17456 KB Output is correct
104 Correct 548 ms 23812 KB Output is correct
105 Correct 672 ms 30304 KB Output is correct
106 Correct 849 ms 36612 KB Output is correct
107 Correct 1069 ms 43020 KB Output is correct
108 Correct 0 ms 204 KB Output is correct
109 Correct 0 ms 204 KB Output is correct
110 Correct 0 ms 204 KB Output is correct
111 Correct 1 ms 256 KB Output is correct
112 Correct 0 ms 204 KB Output is correct
113 Correct 0 ms 204 KB Output is correct
114 Correct 0 ms 204 KB Output is correct
115 Correct 1 ms 204 KB Output is correct
116 Correct 0 ms 204 KB Output is correct
117 Correct 1 ms 204 KB Output is correct
118 Correct 1 ms 204 KB Output is correct
119 Correct 3 ms 716 KB Output is correct
120 Correct 4 ms 844 KB Output is correct
121 Correct 479 ms 29920 KB Output is correct
122 Correct 856 ms 43920 KB Output is correct
123 Correct 736 ms 43264 KB Output is correct
124 Correct 0 ms 204 KB Output is correct
125 Correct 1 ms 204 KB Output is correct
126 Correct 1 ms 224 KB Output is correct
127 Correct 1018 ms 61516 KB Output is correct
128 Correct 992 ms 61924 KB Output is correct
129 Correct 994 ms 64180 KB Output is correct
130 Correct 6 ms 972 KB Output is correct
131 Correct 12 ms 1812 KB Output is correct
132 Correct 441 ms 26376 KB Output is correct
133 Correct 773 ms 42100 KB Output is correct
134 Correct 1086 ms 52632 KB Output is correct
135 Correct 1012 ms 68040 KB Output is correct
136 Correct 981 ms 59128 KB Output is correct
137 Correct 1062 ms 67924 KB Output is correct
138 Correct 1154 ms 56500 KB Output is correct
139 Correct 1039 ms 50144 KB Output is correct
140 Correct 1 ms 204 KB Output is correct
141 Correct 121 ms 7952 KB Output is correct
142 Correct 38 ms 3952 KB Output is correct
143 Correct 159 ms 12036 KB Output is correct
144 Correct 352 ms 19888 KB Output is correct
145 Correct 506 ms 28252 KB Output is correct
146 Correct 611 ms 35232 KB Output is correct
147 Correct 797 ms 42052 KB Output is correct
148 Correct 956 ms 49148 KB Output is correct
149 Correct 1182 ms 55840 KB Output is correct
150 Correct 1055 ms 61200 KB Output is correct
151 Correct 954 ms 67960 KB Output is correct
152 Correct 8 ms 1228 KB Output is correct
153 Correct 14 ms 2004 KB Output is correct
154 Correct 522 ms 28248 KB Output is correct
155 Correct 785 ms 43160 KB Output is correct
156 Correct 1086 ms 54492 KB Output is correct
157 Correct 1 ms 204 KB Output is correct
158 Correct 1 ms 204 KB Output is correct
159 Correct 1 ms 204 KB Output is correct
160 Correct 0 ms 204 KB Output is correct
161 Correct 1238 ms 58672 KB Output is correct
162 Correct 981 ms 60516 KB Output is correct
163 Correct 925 ms 52004 KB Output is correct
164 Correct 955 ms 51288 KB Output is correct
165 Correct 960 ms 57860 KB Output is correct
166 Correct 1069 ms 58540 KB Output is correct
167 Correct 156 ms 11072 KB Output is correct
168 Correct 56 ms 5772 KB Output is correct
169 Correct 187 ms 12380 KB Output is correct
170 Correct 427 ms 22144 KB Output is correct
171 Correct 624 ms 28280 KB Output is correct
172 Correct 490 ms 29296 KB Output is correct
173 Correct 595 ms 34976 KB Output is correct
174 Correct 740 ms 40952 KB Output is correct
175 Correct 954 ms 46492 KB Output is correct
176 Correct 1103 ms 52480 KB Output is correct
177 Correct 1214 ms 58244 KB Output is correct