답안 #434988

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
434988 2021-06-22T17:34:44 Z model_code 분수 공원 (IOI21_parks) C++17
100 / 100
423 ms 29468 KB
/**
 * Task: parks
 * Author: Kian Mirjalali
 * Solution: Solution based on chessboard coloring of cells (trees)
 *  Time: O(n*log(n)+n) where n*log(n) is for just 2 sorts
 *  It computes and keeps the adjacent vertices for each vertex on each direction.
 */
#include "parks.h"
#include <complex>
#include <algorithm>
#include <iostream>
using namespace std;


#define tpc(C) template<class C>
#define allOf(c) ((c).begin()), ((c).end())
#define fori(i, a, b) for (int i = (a); i < int(b); i++)
#define forn(i, n) fori(i, 0, (n))
#define dbg(x) #x << "=" << (x)
#define show(x) cerr << dbg(x) << endl
#define cmpret(a, b) do { if ((a) != (b)) return ((a) < (b)); } while (false)

tpc(C) inline int sz(const C& c) { return c.size(); }

typedef vector<int> VI;

typedef complex<int> Point;
#define X real()
#define Y imag()

/////////////////////////

const vector<Point> MOVES = {
	{-2, 0},
	{+2, 0},
	{0, -2},
	{0, +2},
};
const int LEFT = 0;
const int RIGHT = 1;
const int DOWN = 2;
const int UP = 3;

/////////////////////////

vector<Point> vertex;

inline bool cmp_x_then_y(int i, int j) {
	const Point& a = vertex[i];
	const Point& b = vertex[j];
	cmpret(a.X, b.X);
	return a.Y < b.Y;
}

inline bool cmp_y_then_x(int i, int j) {
	const Point& a = vertex[i];
	const Point& b = vertex[j];
	cmpret(a.Y, b.Y);
	return a.X < b.X;
}

/////////////////////////

VI q, mark;

inline void enq(int x) {
	if (mark[x])
		return;
	mark[x] = true;
	q.push_back(x);
}

/////////////////////////


int construct_roads(VI x, VI y) {
	int n = x.size();
	vertex.resize(n);
	forn(i, n)
		vertex[i] = Point(x[i], y[i]);

	vector<VI> adj(n, VI(sz(MOVES), -1));
	{// Fill adj
		VI index(n);
		forn(i, n)
			index[i] = i;
		sort(allOf(index), cmp_x_then_y);
		forn(t, n-1) {
			int i = index[t];
			int j = index[t+1];
			if (vertex[i]+MOVES[UP] == vertex[j]) {
				adj[i][UP] = j;
				adj[j][DOWN] = i;
			}
		}
		sort(allOf(index), cmp_y_then_x);
		forn(t, n-1) {
			int i = index[t];
			int j = index[t+1];
			if (vertex[i]+MOVES[RIGHT] == vertex[j]) {
				adj[i][RIGHT] = j;
				adj[j][LEFT] = i;
			}
		}
	}

	{// Check connectivity
		q.clear();
		q.reserve(n);
		mark.assign(n, false);
		enq(0);
		for (int tail = 0; tail < sz(q); tail++)
			for (int nei : adj[q[tail]])
				if (nei >= 0)
					enq(nei);
		if (sz(q) != n)
			return 0;
	}

	VI u, v, a, b;
	forn(i, n) {
		Point pi = vertex[i];
		bool is_white_cell = (((pi.X+pi.Y)&2) == 0);
		{
			int j = adj[i][RIGHT];
			if ((j >= 0) && !((adj[i][UP] >= 0) && (adj[j][UP] >= 0) && is_white_cell)) {
				u.push_back(i);
				v.push_back(j);
				a.push_back(pi.X+1);
				b.push_back(pi.Y+(is_white_cell?+1:-1));
			}
		}
		{
			int j = adj[i][UP];
			if ((j >= 0) && !((adj[i][LEFT] >= 0) && (adj[j][LEFT] >= 0) && is_white_cell)) {
				u.push_back(i);
				v.push_back(j);
				a.push_back(pi.X+(is_white_cell?-1:+1));
				b.push_back(pi.Y+1);
			}
		}
	}
	build(u, v, a, b);
	return 1;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 134 ms 13812 KB Output is correct
10 Correct 8 ms 1632 KB Output is correct
11 Correct 42 ms 7460 KB Output is correct
12 Correct 12 ms 2292 KB Output is correct
13 Correct 19 ms 4060 KB Output is correct
14 Correct 1 ms 332 KB Output is correct
15 Correct 1 ms 332 KB Output is correct
16 Correct 121 ms 13740 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 134 ms 13812 KB Output is correct
10 Correct 8 ms 1632 KB Output is correct
11 Correct 42 ms 7460 KB Output is correct
12 Correct 12 ms 2292 KB Output is correct
13 Correct 19 ms 4060 KB Output is correct
14 Correct 1 ms 332 KB Output is correct
15 Correct 1 ms 332 KB Output is correct
16 Correct 121 ms 13740 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 356 ms 27324 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 2 ms 460 KB Output is correct
26 Correct 2 ms 460 KB Output is correct
27 Correct 4 ms 588 KB Output is correct
28 Correct 117 ms 11292 KB Output is correct
29 Correct 167 ms 16344 KB Output is correct
30 Correct 286 ms 22344 KB Output is correct
31 Correct 356 ms 27372 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 1 ms 204 KB Output is correct
36 Correct 1 ms 204 KB Output is correct
37 Correct 1 ms 256 KB Output is correct
38 Correct 1 ms 208 KB Output is correct
39 Correct 1 ms 204 KB Output is correct
40 Correct 1 ms 208 KB Output is correct
41 Correct 1 ms 204 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 2 ms 332 KB Output is correct
44 Correct 2 ms 460 KB Output is correct
45 Correct 134 ms 13740 KB Output is correct
46 Correct 222 ms 20440 KB Output is correct
47 Correct 201 ms 20476 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 134 ms 13812 KB Output is correct
10 Correct 8 ms 1632 KB Output is correct
11 Correct 42 ms 7460 KB Output is correct
12 Correct 12 ms 2292 KB Output is correct
13 Correct 19 ms 4060 KB Output is correct
14 Correct 1 ms 332 KB Output is correct
15 Correct 1 ms 332 KB Output is correct
16 Correct 121 ms 13740 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 356 ms 27324 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 2 ms 460 KB Output is correct
26 Correct 2 ms 460 KB Output is correct
27 Correct 4 ms 588 KB Output is correct
28 Correct 117 ms 11292 KB Output is correct
29 Correct 167 ms 16344 KB Output is correct
30 Correct 286 ms 22344 KB Output is correct
31 Correct 356 ms 27372 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 1 ms 204 KB Output is correct
36 Correct 1 ms 204 KB Output is correct
37 Correct 1 ms 256 KB Output is correct
38 Correct 1 ms 208 KB Output is correct
39 Correct 1 ms 204 KB Output is correct
40 Correct 1 ms 208 KB Output is correct
41 Correct 1 ms 204 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 2 ms 332 KB Output is correct
44 Correct 2 ms 460 KB Output is correct
45 Correct 134 ms 13740 KB Output is correct
46 Correct 222 ms 20440 KB Output is correct
47 Correct 201 ms 20476 KB Output is correct
48 Correct 1 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 ms 252 KB Output is correct
51 Correct 1 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 1 ms 204 KB Output is correct
55 Correct 312 ms 27372 KB Output is correct
56 Correct 1 ms 204 KB Output is correct
57 Correct 2 ms 460 KB Output is correct
58 Correct 6 ms 1100 KB Output is correct
59 Correct 6 ms 1100 KB Output is correct
60 Correct 122 ms 13760 KB Output is correct
61 Correct 182 ms 19124 KB Output is correct
62 Correct 293 ms 23060 KB Output is correct
63 Correct 311 ms 27316 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 324 ms 27308 KB Output is correct
68 Correct 327 ms 27340 KB Output is correct
69 Correct 338 ms 27316 KB Output is correct
70 Correct 3 ms 588 KB Output is correct
71 Correct 7 ms 972 KB Output is correct
72 Correct 153 ms 13740 KB Output is correct
73 Correct 197 ms 21112 KB Output is correct
74 Correct 306 ms 27332 KB Output is correct
75 Correct 296 ms 28980 KB Output is correct
76 Correct 335 ms 27344 KB Output is correct
77 Correct 5 ms 588 KB Output is correct
78 Correct 7 ms 972 KB Output is correct
79 Correct 182 ms 14296 KB Output is correct
80 Correct 199 ms 22140 KB Output is correct
81 Correct 312 ms 28364 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 134 ms 13812 KB Output is correct
10 Correct 8 ms 1632 KB Output is correct
11 Correct 42 ms 7460 KB Output is correct
12 Correct 12 ms 2292 KB Output is correct
13 Correct 19 ms 4060 KB Output is correct
14 Correct 1 ms 332 KB Output is correct
15 Correct 1 ms 332 KB Output is correct
16 Correct 121 ms 13740 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 315 ms 27316 KB Output is correct
21 Correct 334 ms 27340 KB Output is correct
22 Correct 313 ms 27368 KB Output is correct
23 Correct 265 ms 23584 KB Output is correct
24 Correct 158 ms 16704 KB Output is correct
25 Correct 163 ms 16704 KB Output is correct
26 Correct 197 ms 16732 KB Output is correct
27 Correct 317 ms 27336 KB Output is correct
28 Correct 299 ms 27368 KB Output is correct
29 Correct 343 ms 27320 KB Output is correct
30 Correct 303 ms 27340 KB Output is correct
31 Correct 1 ms 256 KB Output is correct
32 Correct 19 ms 2176 KB Output is correct
33 Correct 71 ms 8500 KB Output is correct
34 Correct 396 ms 27488 KB Output is correct
35 Correct 7 ms 1116 KB Output is correct
36 Correct 34 ms 4352 KB Output is correct
37 Correct 82 ms 8460 KB Output is correct
38 Correct 106 ms 11328 KB Output is correct
39 Correct 157 ms 15080 KB Output is correct
40 Correct 206 ms 19868 KB Output is correct
41 Correct 304 ms 23588 KB Output is correct
42 Correct 385 ms 27344 KB Output is correct
43 Correct 1 ms 204 KB Output is correct
44 Correct 1 ms 204 KB Output is correct
45 Correct 1 ms 204 KB Output is correct
46 Correct 1 ms 204 KB Output is correct
47 Correct 1 ms 204 KB Output is correct
48 Correct 1 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 1 ms 204 KB Output is correct
53 Correct 1 ms 204 KB Output is correct
54 Correct 2 ms 332 KB Output is correct
55 Correct 2 ms 460 KB Output is correct
56 Correct 181 ms 13752 KB Output is correct
57 Correct 239 ms 20492 KB Output is correct
58 Correct 245 ms 20496 KB Output is correct
59 Correct 1 ms 204 KB Output is correct
60 Correct 1 ms 204 KB Output is correct
61 Correct 1 ms 256 KB Output is correct
62 Correct 318 ms 27344 KB Output is correct
63 Correct 361 ms 27372 KB Output is correct
64 Correct 355 ms 27268 KB Output is correct
65 Correct 4 ms 644 KB Output is correct
66 Correct 7 ms 948 KB Output is correct
67 Correct 151 ms 13828 KB Output is correct
68 Correct 207 ms 21052 KB Output is correct
69 Correct 314 ms 27336 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 134 ms 13812 KB Output is correct
10 Correct 8 ms 1632 KB Output is correct
11 Correct 42 ms 7460 KB Output is correct
12 Correct 12 ms 2292 KB Output is correct
13 Correct 19 ms 4060 KB Output is correct
14 Correct 1 ms 332 KB Output is correct
15 Correct 1 ms 332 KB Output is correct
16 Correct 121 ms 13740 KB Output is correct
17 Correct 344 ms 27360 KB Output is correct
18 Correct 318 ms 27364 KB Output is correct
19 Correct 327 ms 27380 KB Output is correct
20 Correct 398 ms 29468 KB Output is correct
21 Correct 292 ms 25256 KB Output is correct
22 Correct 1 ms 204 KB Output is correct
23 Correct 45 ms 4632 KB Output is correct
24 Correct 17 ms 1976 KB Output is correct
25 Correct 60 ms 6020 KB Output is correct
26 Correct 107 ms 10200 KB Output is correct
27 Correct 154 ms 14640 KB Output is correct
28 Correct 245 ms 18228 KB Output is correct
29 Correct 276 ms 22520 KB Output is correct
30 Correct 323 ms 25792 KB Output is correct
31 Correct 396 ms 28912 KB Output is correct
32 Correct 423 ms 29044 KB Output is correct
33 Correct 383 ms 27340 KB Output is correct
34 Correct 3 ms 588 KB Output is correct
35 Correct 5 ms 972 KB Output is correct
36 Correct 124 ms 14312 KB Output is correct
37 Correct 254 ms 22140 KB Output is correct
38 Correct 357 ms 28376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 1 ms 204 KB Output is correct
7 Correct 1 ms 204 KB Output is correct
8 Correct 1 ms 204 KB Output is correct
9 Correct 134 ms 13812 KB Output is correct
10 Correct 8 ms 1632 KB Output is correct
11 Correct 42 ms 7460 KB Output is correct
12 Correct 12 ms 2292 KB Output is correct
13 Correct 19 ms 4060 KB Output is correct
14 Correct 1 ms 332 KB Output is correct
15 Correct 1 ms 332 KB Output is correct
16 Correct 121 ms 13740 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 356 ms 27324 KB Output is correct
24 Correct 1 ms 204 KB Output is correct
25 Correct 2 ms 460 KB Output is correct
26 Correct 2 ms 460 KB Output is correct
27 Correct 4 ms 588 KB Output is correct
28 Correct 117 ms 11292 KB Output is correct
29 Correct 167 ms 16344 KB Output is correct
30 Correct 286 ms 22344 KB Output is correct
31 Correct 356 ms 27372 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 1 ms 204 KB Output is correct
36 Correct 1 ms 204 KB Output is correct
37 Correct 1 ms 256 KB Output is correct
38 Correct 1 ms 208 KB Output is correct
39 Correct 1 ms 204 KB Output is correct
40 Correct 1 ms 208 KB Output is correct
41 Correct 1 ms 204 KB Output is correct
42 Correct 1 ms 204 KB Output is correct
43 Correct 2 ms 332 KB Output is correct
44 Correct 2 ms 460 KB Output is correct
45 Correct 134 ms 13740 KB Output is correct
46 Correct 222 ms 20440 KB Output is correct
47 Correct 201 ms 20476 KB Output is correct
48 Correct 1 ms 204 KB Output is correct
49 Correct 1 ms 204 KB Output is correct
50 Correct 1 ms 252 KB Output is correct
51 Correct 1 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 1 ms 204 KB Output is correct
55 Correct 312 ms 27372 KB Output is correct
56 Correct 1 ms 204 KB Output is correct
57 Correct 2 ms 460 KB Output is correct
58 Correct 6 ms 1100 KB Output is correct
59 Correct 6 ms 1100 KB Output is correct
60 Correct 122 ms 13760 KB Output is correct
61 Correct 182 ms 19124 KB Output is correct
62 Correct 293 ms 23060 KB Output is correct
63 Correct 311 ms 27316 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 324 ms 27308 KB Output is correct
68 Correct 327 ms 27340 KB Output is correct
69 Correct 338 ms 27316 KB Output is correct
70 Correct 3 ms 588 KB Output is correct
71 Correct 7 ms 972 KB Output is correct
72 Correct 153 ms 13740 KB Output is correct
73 Correct 197 ms 21112 KB Output is correct
74 Correct 306 ms 27332 KB Output is correct
75 Correct 296 ms 28980 KB Output is correct
76 Correct 335 ms 27344 KB Output is correct
77 Correct 5 ms 588 KB Output is correct
78 Correct 7 ms 972 KB Output is correct
79 Correct 182 ms 14296 KB Output is correct
80 Correct 199 ms 22140 KB Output is correct
81 Correct 312 ms 28364 KB Output is correct
82 Correct 1 ms 204 KB Output is correct
83 Correct 1 ms 204 KB Output is correct
84 Correct 1 ms 204 KB Output is correct
85 Correct 315 ms 27316 KB Output is correct
86 Correct 334 ms 27340 KB Output is correct
87 Correct 313 ms 27368 KB Output is correct
88 Correct 265 ms 23584 KB Output is correct
89 Correct 158 ms 16704 KB Output is correct
90 Correct 163 ms 16704 KB Output is correct
91 Correct 197 ms 16732 KB Output is correct
92 Correct 317 ms 27336 KB Output is correct
93 Correct 299 ms 27368 KB Output is correct
94 Correct 343 ms 27320 KB Output is correct
95 Correct 303 ms 27340 KB Output is correct
96 Correct 1 ms 256 KB Output is correct
97 Correct 19 ms 2176 KB Output is correct
98 Correct 71 ms 8500 KB Output is correct
99 Correct 396 ms 27488 KB Output is correct
100 Correct 7 ms 1116 KB Output is correct
101 Correct 34 ms 4352 KB Output is correct
102 Correct 82 ms 8460 KB Output is correct
103 Correct 106 ms 11328 KB Output is correct
104 Correct 157 ms 15080 KB Output is correct
105 Correct 206 ms 19868 KB Output is correct
106 Correct 304 ms 23588 KB Output is correct
107 Correct 385 ms 27344 KB Output is correct
108 Correct 1 ms 204 KB Output is correct
109 Correct 1 ms 204 KB Output is correct
110 Correct 1 ms 204 KB Output is correct
111 Correct 1 ms 204 KB Output is correct
112 Correct 1 ms 204 KB Output is correct
113 Correct 1 ms 204 KB Output is correct
114 Correct 1 ms 204 KB Output is correct
115 Correct 1 ms 204 KB Output is correct
116 Correct 1 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 2 ms 332 KB Output is correct
120 Correct 2 ms 460 KB Output is correct
121 Correct 181 ms 13752 KB Output is correct
122 Correct 239 ms 20492 KB Output is correct
123 Correct 245 ms 20496 KB Output is correct
124 Correct 1 ms 204 KB Output is correct
125 Correct 1 ms 204 KB Output is correct
126 Correct 1 ms 256 KB Output is correct
127 Correct 318 ms 27344 KB Output is correct
128 Correct 361 ms 27372 KB Output is correct
129 Correct 355 ms 27268 KB Output is correct
130 Correct 4 ms 644 KB Output is correct
131 Correct 7 ms 948 KB Output is correct
132 Correct 151 ms 13828 KB Output is correct
133 Correct 207 ms 21052 KB Output is correct
134 Correct 314 ms 27336 KB Output is correct
135 Correct 344 ms 27360 KB Output is correct
136 Correct 318 ms 27364 KB Output is correct
137 Correct 327 ms 27380 KB Output is correct
138 Correct 398 ms 29468 KB Output is correct
139 Correct 292 ms 25256 KB Output is correct
140 Correct 1 ms 204 KB Output is correct
141 Correct 45 ms 4632 KB Output is correct
142 Correct 17 ms 1976 KB Output is correct
143 Correct 60 ms 6020 KB Output is correct
144 Correct 107 ms 10200 KB Output is correct
145 Correct 154 ms 14640 KB Output is correct
146 Correct 245 ms 18228 KB Output is correct
147 Correct 276 ms 22520 KB Output is correct
148 Correct 323 ms 25792 KB Output is correct
149 Correct 396 ms 28912 KB Output is correct
150 Correct 423 ms 29044 KB Output is correct
151 Correct 383 ms 27340 KB Output is correct
152 Correct 3 ms 588 KB Output is correct
153 Correct 5 ms 972 KB Output is correct
154 Correct 124 ms 14312 KB Output is correct
155 Correct 254 ms 22140 KB Output is correct
156 Correct 357 ms 28376 KB Output is correct
157 Correct 2 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 2 ms 204 KB Output is correct
161 Correct 366 ms 27304 KB Output is correct
162 Correct 338 ms 27332 KB Output is correct
163 Correct 356 ms 27336 KB Output is correct
164 Correct 383 ms 27340 KB Output is correct
165 Correct 337 ms 27304 KB Output is correct
166 Correct 330 ms 27336 KB Output is correct
167 Correct 65 ms 6740 KB Output is correct
168 Correct 20 ms 2768 KB Output is correct
169 Correct 58 ms 6880 KB Output is correct
170 Correct 129 ms 12672 KB Output is correct
171 Correct 197 ms 16748 KB Output is correct
172 Correct 152 ms 13724 KB Output is correct
173 Correct 206 ms 16344 KB Output is correct
174 Correct 219 ms 20004 KB Output is correct
175 Correct 254 ms 22292 KB Output is correct
176 Correct 295 ms 25140 KB Output is correct
177 Correct 387 ms 27360 KB Output is correct