답안 #773970

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
773970 2023-07-05T10:07:21 Z SanguineChameleon 분수 공원 (IOI21_parks) C++17
100 / 100
899 ms 64588 KB
#include "parks.h"
#include <bits/stdc++.h>
using namespace std;

const int maxn = 2e5 + 20;
vector<int> adj[maxn];
bool flag[maxn];
map<pair<int, int>, int> evens;

int get(int x, int y) {
	auto it = evens.find(make_pair(x, y));
	if (it == evens.end()) {
		return -1;
	}
	else {
		return it->second;
	}
}

void dfs(int u) {
	flag[u] = true;
	for (auto v: adj[u]) {
		if (!flag[v]) {
			dfs(v);
		}
	}
}

int construct_roads(vector<int> x, vector<int> y) {
	int n = x.size();
	for (int i = 0; i < n; i++) {
		evens[make_pair(x[i], y[i])] = i;
	}
	vector<pair<int, int>> roads;
	set<pair<int, int>> odds;
	for (int u = 0; u < n; u++) {
		int v = get(x[u] + 2, y[u]);
		if (v != -1) {
			odds.emplace(x[u] + 1, y[u] - 1);
			odds.emplace(x[u] + 1, y[u] + 1);
			roads.emplace_back(u, v);
			adj[u].push_back(v);
			adj[v].push_back(u);
		}
		v = get(x[u], y[u] + 2);
		if (v != -1) {
			odds.emplace(x[u] - 1, y[u] + 1);
			odds.emplace(x[u] + 1, y[u] + 1);
			roads.emplace_back(u, v);
			adj[u].push_back(v);
			adj[v].push_back(u);
		}
	}
	dfs(0);
	for (int i = 0; i < n; i++) {
		if (!flag[i]) {
			return 0;
		}
	}
	vector<int> _u, _v, _a, _b;
	for (auto p: odds) {
		int a = p.first;
		int b = p.second;
		int u = -1;
		int v = -1;
		if ((a + b) & 2) {
			u = get(a - 1, b - 1);
			v = get(a + 1, b - 1);
			if (u != -1 && v != -1) {
				_u.push_back(u);
				_v.push_back(v);
				_a.push_back(a);
				_b.push_back(b);
			}
			else {
				u = get(a - 1, b + 1);
				v = get(a + 1, b + 1);
				if (u != -1 && v != -1) {
					_u.push_back(u);
					_v.push_back(v);
					_a.push_back(a);
					_b.push_back(b);
				}
			}
		}
		else {
			u = get(a - 1, b - 1);
			v = get(a - 1, b + 1);
			if (u != -1 && v != -1) {
				_u.push_back(u);
				_v.push_back(v);
				_a.push_back(a);
				_b.push_back(b);
			}
			else {
				u = get(a + 1, b - 1);
				v = get(a + 1, b + 1);
				if (u != -1 && v != -1) {
					_u.push_back(u);
					_v.push_back(v);
					_a.push_back(a);
					_b.push_back(b);
				}
			}
		}
	}
	build(_u, _v, _a, _b);
	return 1;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 5000 KB Output is correct
8 Correct 3 ms 4948 KB Output is correct
9 Correct 323 ms 34108 KB Output is correct
10 Correct 16 ms 7940 KB Output is correct
11 Correct 93 ms 20672 KB Output is correct
12 Correct 23 ms 9364 KB Output is correct
13 Correct 40 ms 15224 KB Output is correct
14 Correct 3 ms 5204 KB Output is correct
15 Correct 4 ms 5332 KB Output is correct
16 Correct 280 ms 33388 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 5000 KB Output is correct
8 Correct 3 ms 4948 KB Output is correct
9 Correct 323 ms 34108 KB Output is correct
10 Correct 16 ms 7940 KB Output is correct
11 Correct 93 ms 20672 KB Output is correct
12 Correct 23 ms 9364 KB Output is correct
13 Correct 40 ms 15224 KB Output is correct
14 Correct 3 ms 5204 KB Output is correct
15 Correct 4 ms 5332 KB Output is correct
16 Correct 280 ms 33388 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 5004 KB Output is correct
20 Correct 3 ms 5004 KB Output is correct
21 Correct 3 ms 5004 KB Output is correct
22 Correct 2 ms 5000 KB Output is correct
23 Correct 899 ms 57912 KB Output is correct
24 Correct 2 ms 4948 KB Output is correct
25 Correct 4 ms 5272 KB Output is correct
26 Correct 5 ms 5528 KB Output is correct
27 Correct 7 ms 5716 KB Output is correct
28 Correct 234 ms 26432 KB Output is correct
29 Correct 380 ms 36448 KB Output is correct
30 Correct 570 ms 48232 KB Output is correct
31 Correct 872 ms 57784 KB Output is correct
32 Correct 2 ms 4948 KB Output is correct
33 Correct 3 ms 5008 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 2 ms 4948 KB Output is correct
36 Correct 2 ms 5004 KB Output is correct
37 Correct 3 ms 5008 KB Output is correct
38 Correct 2 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 4948 KB Output is correct
41 Correct 3 ms 4948 KB Output is correct
42 Correct 3 ms 4948 KB Output is correct
43 Correct 4 ms 5264 KB Output is correct
44 Correct 5 ms 5532 KB Output is correct
45 Correct 251 ms 30720 KB Output is correct
46 Correct 462 ms 43300 KB Output is correct
47 Correct 481 ms 43204 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 5000 KB Output is correct
8 Correct 3 ms 4948 KB Output is correct
9 Correct 323 ms 34108 KB Output is correct
10 Correct 16 ms 7940 KB Output is correct
11 Correct 93 ms 20672 KB Output is correct
12 Correct 23 ms 9364 KB Output is correct
13 Correct 40 ms 15224 KB Output is correct
14 Correct 3 ms 5204 KB Output is correct
15 Correct 4 ms 5332 KB Output is correct
16 Correct 280 ms 33388 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 5004 KB Output is correct
20 Correct 3 ms 5004 KB Output is correct
21 Correct 3 ms 5004 KB Output is correct
22 Correct 2 ms 5000 KB Output is correct
23 Correct 899 ms 57912 KB Output is correct
24 Correct 2 ms 4948 KB Output is correct
25 Correct 4 ms 5272 KB Output is correct
26 Correct 5 ms 5528 KB Output is correct
27 Correct 7 ms 5716 KB Output is correct
28 Correct 234 ms 26432 KB Output is correct
29 Correct 380 ms 36448 KB Output is correct
30 Correct 570 ms 48232 KB Output is correct
31 Correct 872 ms 57784 KB Output is correct
32 Correct 2 ms 4948 KB Output is correct
33 Correct 3 ms 5008 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 2 ms 4948 KB Output is correct
36 Correct 2 ms 5004 KB Output is correct
37 Correct 3 ms 5008 KB Output is correct
38 Correct 2 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 4948 KB Output is correct
41 Correct 3 ms 4948 KB Output is correct
42 Correct 3 ms 4948 KB Output is correct
43 Correct 4 ms 5264 KB Output is correct
44 Correct 5 ms 5532 KB Output is correct
45 Correct 251 ms 30720 KB Output is correct
46 Correct 462 ms 43300 KB Output is correct
47 Correct 481 ms 43204 KB Output is correct
48 Correct 2 ms 5008 KB Output is correct
49 Correct 2 ms 4948 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
51 Correct 3 ms 5004 KB Output is correct
52 Correct 3 ms 5000 KB Output is correct
53 Correct 2 ms 5004 KB Output is correct
54 Correct 3 ms 4948 KB Output is correct
55 Correct 857 ms 55624 KB Output is correct
56 Correct 3 ms 4948 KB Output is correct
57 Correct 5 ms 5408 KB Output is correct
58 Correct 12 ms 6596 KB Output is correct
59 Correct 15 ms 6956 KB Output is correct
60 Correct 315 ms 30480 KB Output is correct
61 Correct 473 ms 40300 KB Output is correct
62 Correct 636 ms 47500 KB Output is correct
63 Correct 891 ms 55688 KB Output is correct
64 Correct 2 ms 4948 KB Output is correct
65 Correct 2 ms 4948 KB Output is correct
66 Correct 2 ms 4960 KB Output is correct
67 Correct 768 ms 62920 KB Output is correct
68 Correct 735 ms 62976 KB Output is correct
69 Correct 707 ms 62972 KB Output is correct
70 Correct 6 ms 5716 KB Output is correct
71 Correct 10 ms 6484 KB Output is correct
72 Correct 247 ms 29848 KB Output is correct
73 Correct 466 ms 43948 KB Output is correct
74 Correct 723 ms 55252 KB Output is correct
75 Correct 864 ms 61092 KB Output is correct
76 Correct 738 ms 63836 KB Output is correct
77 Correct 7 ms 5972 KB Output is correct
78 Correct 12 ms 6740 KB Output is correct
79 Correct 320 ms 31048 KB Output is correct
80 Correct 505 ms 45460 KB Output is correct
81 Correct 791 ms 58192 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 5000 KB Output is correct
8 Correct 3 ms 4948 KB Output is correct
9 Correct 323 ms 34108 KB Output is correct
10 Correct 16 ms 7940 KB Output is correct
11 Correct 93 ms 20672 KB Output is correct
12 Correct 23 ms 9364 KB Output is correct
13 Correct 40 ms 15224 KB Output is correct
14 Correct 3 ms 5204 KB Output is correct
15 Correct 4 ms 5332 KB Output is correct
16 Correct 280 ms 33388 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 4948 KB Output is correct
20 Correct 548 ms 56068 KB Output is correct
21 Correct 648 ms 55016 KB Output is correct
22 Correct 554 ms 54640 KB Output is correct
23 Correct 579 ms 55104 KB Output is correct
24 Correct 182 ms 22348 KB Output is correct
25 Correct 573 ms 49028 KB Output is correct
26 Correct 558 ms 48968 KB Output is correct
27 Correct 711 ms 60212 KB Output is correct
28 Correct 703 ms 60220 KB Output is correct
29 Correct 792 ms 60280 KB Output is correct
30 Correct 788 ms 60292 KB Output is correct
31 Correct 3 ms 4948 KB Output is correct
32 Correct 26 ms 8680 KB Output is correct
33 Correct 75 ms 14028 KB Output is correct
34 Correct 593 ms 55512 KB Output is correct
35 Correct 13 ms 6868 KB Output is correct
36 Correct 79 ms 14232 KB Output is correct
37 Correct 180 ms 23604 KB Output is correct
38 Correct 193 ms 25128 KB Output is correct
39 Correct 364 ms 32004 KB Output is correct
40 Correct 428 ms 40532 KB Output is correct
41 Correct 561 ms 47488 KB Output is correct
42 Correct 673 ms 54584 KB Output is correct
43 Correct 4 ms 4892 KB Output is correct
44 Correct 3 ms 4948 KB Output is correct
45 Correct 2 ms 4948 KB Output is correct
46 Correct 2 ms 5008 KB Output is correct
47 Correct 2 ms 4948 KB Output is correct
48 Correct 2 ms 4948 KB Output is correct
49 Correct 3 ms 4948 KB Output is correct
50 Correct 3 ms 5000 KB Output is correct
51 Correct 2 ms 5004 KB Output is correct
52 Correct 2 ms 4948 KB Output is correct
53 Correct 2 ms 5004 KB Output is correct
54 Correct 5 ms 5332 KB Output is correct
55 Correct 6 ms 5568 KB Output is correct
56 Correct 263 ms 30704 KB Output is correct
57 Correct 434 ms 43352 KB Output is correct
58 Correct 446 ms 43300 KB Output is correct
59 Correct 2 ms 4948 KB Output is correct
60 Correct 2 ms 4948 KB Output is correct
61 Correct 2 ms 4948 KB Output is correct
62 Correct 734 ms 62864 KB Output is correct
63 Correct 765 ms 63032 KB Output is correct
64 Correct 692 ms 63020 KB Output is correct
65 Correct 7 ms 5716 KB Output is correct
66 Correct 12 ms 6416 KB Output is correct
67 Correct 258 ms 29872 KB Output is correct
68 Correct 542 ms 43860 KB Output is correct
69 Correct 689 ms 55260 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 5000 KB Output is correct
8 Correct 3 ms 4948 KB Output is correct
9 Correct 323 ms 34108 KB Output is correct
10 Correct 16 ms 7940 KB Output is correct
11 Correct 93 ms 20672 KB Output is correct
12 Correct 23 ms 9364 KB Output is correct
13 Correct 40 ms 15224 KB Output is correct
14 Correct 3 ms 5204 KB Output is correct
15 Correct 4 ms 5332 KB Output is correct
16 Correct 280 ms 33388 KB Output is correct
17 Correct 774 ms 64588 KB Output is correct
18 Correct 728 ms 63428 KB Output is correct
19 Correct 604 ms 55732 KB Output is correct
20 Correct 795 ms 57664 KB Output is correct
21 Correct 702 ms 54068 KB Output is correct
22 Correct 2 ms 4948 KB Output is correct
23 Correct 63 ms 13620 KB Output is correct
24 Correct 28 ms 8812 KB Output is correct
25 Correct 115 ms 18588 KB Output is correct
26 Correct 262 ms 28736 KB Output is correct
27 Correct 276 ms 31928 KB Output is correct
28 Correct 390 ms 40044 KB Output is correct
29 Correct 554 ms 46720 KB Output is correct
30 Correct 650 ms 52352 KB Output is correct
31 Correct 755 ms 59024 KB Output is correct
32 Correct 755 ms 61108 KB Output is correct
33 Correct 703 ms 63812 KB Output is correct
34 Correct 7 ms 5972 KB Output is correct
35 Correct 15 ms 6792 KB Output is correct
36 Correct 307 ms 31100 KB Output is correct
37 Correct 520 ms 45428 KB Output is correct
38 Correct 806 ms 58044 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4948 KB Output is correct
2 Correct 2 ms 4948 KB Output is correct
3 Correct 2 ms 4948 KB Output is correct
4 Correct 2 ms 4948 KB Output is correct
5 Correct 2 ms 4948 KB Output is correct
6 Correct 2 ms 4948 KB Output is correct
7 Correct 2 ms 5000 KB Output is correct
8 Correct 3 ms 4948 KB Output is correct
9 Correct 323 ms 34108 KB Output is correct
10 Correct 16 ms 7940 KB Output is correct
11 Correct 93 ms 20672 KB Output is correct
12 Correct 23 ms 9364 KB Output is correct
13 Correct 40 ms 15224 KB Output is correct
14 Correct 3 ms 5204 KB Output is correct
15 Correct 4 ms 5332 KB Output is correct
16 Correct 280 ms 33388 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4948 KB Output is correct
19 Correct 2 ms 5004 KB Output is correct
20 Correct 3 ms 5004 KB Output is correct
21 Correct 3 ms 5004 KB Output is correct
22 Correct 2 ms 5000 KB Output is correct
23 Correct 899 ms 57912 KB Output is correct
24 Correct 2 ms 4948 KB Output is correct
25 Correct 4 ms 5272 KB Output is correct
26 Correct 5 ms 5528 KB Output is correct
27 Correct 7 ms 5716 KB Output is correct
28 Correct 234 ms 26432 KB Output is correct
29 Correct 380 ms 36448 KB Output is correct
30 Correct 570 ms 48232 KB Output is correct
31 Correct 872 ms 57784 KB Output is correct
32 Correct 2 ms 4948 KB Output is correct
33 Correct 3 ms 5008 KB Output is correct
34 Correct 2 ms 4948 KB Output is correct
35 Correct 2 ms 4948 KB Output is correct
36 Correct 2 ms 5004 KB Output is correct
37 Correct 3 ms 5008 KB Output is correct
38 Correct 2 ms 4948 KB Output is correct
39 Correct 2 ms 4948 KB Output is correct
40 Correct 2 ms 4948 KB Output is correct
41 Correct 3 ms 4948 KB Output is correct
42 Correct 3 ms 4948 KB Output is correct
43 Correct 4 ms 5264 KB Output is correct
44 Correct 5 ms 5532 KB Output is correct
45 Correct 251 ms 30720 KB Output is correct
46 Correct 462 ms 43300 KB Output is correct
47 Correct 481 ms 43204 KB Output is correct
48 Correct 2 ms 5008 KB Output is correct
49 Correct 2 ms 4948 KB Output is correct
50 Correct 2 ms 4948 KB Output is correct
51 Correct 3 ms 5004 KB Output is correct
52 Correct 3 ms 5000 KB Output is correct
53 Correct 2 ms 5004 KB Output is correct
54 Correct 3 ms 4948 KB Output is correct
55 Correct 857 ms 55624 KB Output is correct
56 Correct 3 ms 4948 KB Output is correct
57 Correct 5 ms 5408 KB Output is correct
58 Correct 12 ms 6596 KB Output is correct
59 Correct 15 ms 6956 KB Output is correct
60 Correct 315 ms 30480 KB Output is correct
61 Correct 473 ms 40300 KB Output is correct
62 Correct 636 ms 47500 KB Output is correct
63 Correct 891 ms 55688 KB Output is correct
64 Correct 2 ms 4948 KB Output is correct
65 Correct 2 ms 4948 KB Output is correct
66 Correct 2 ms 4960 KB Output is correct
67 Correct 768 ms 62920 KB Output is correct
68 Correct 735 ms 62976 KB Output is correct
69 Correct 707 ms 62972 KB Output is correct
70 Correct 6 ms 5716 KB Output is correct
71 Correct 10 ms 6484 KB Output is correct
72 Correct 247 ms 29848 KB Output is correct
73 Correct 466 ms 43948 KB Output is correct
74 Correct 723 ms 55252 KB Output is correct
75 Correct 864 ms 61092 KB Output is correct
76 Correct 738 ms 63836 KB Output is correct
77 Correct 7 ms 5972 KB Output is correct
78 Correct 12 ms 6740 KB Output is correct
79 Correct 320 ms 31048 KB Output is correct
80 Correct 505 ms 45460 KB Output is correct
81 Correct 791 ms 58192 KB Output is correct
82 Correct 2 ms 4948 KB Output is correct
83 Correct 2 ms 4948 KB Output is correct
84 Correct 2 ms 4948 KB Output is correct
85 Correct 548 ms 56068 KB Output is correct
86 Correct 648 ms 55016 KB Output is correct
87 Correct 554 ms 54640 KB Output is correct
88 Correct 579 ms 55104 KB Output is correct
89 Correct 182 ms 22348 KB Output is correct
90 Correct 573 ms 49028 KB Output is correct
91 Correct 558 ms 48968 KB Output is correct
92 Correct 711 ms 60212 KB Output is correct
93 Correct 703 ms 60220 KB Output is correct
94 Correct 792 ms 60280 KB Output is correct
95 Correct 788 ms 60292 KB Output is correct
96 Correct 3 ms 4948 KB Output is correct
97 Correct 26 ms 8680 KB Output is correct
98 Correct 75 ms 14028 KB Output is correct
99 Correct 593 ms 55512 KB Output is correct
100 Correct 13 ms 6868 KB Output is correct
101 Correct 79 ms 14232 KB Output is correct
102 Correct 180 ms 23604 KB Output is correct
103 Correct 193 ms 25128 KB Output is correct
104 Correct 364 ms 32004 KB Output is correct
105 Correct 428 ms 40532 KB Output is correct
106 Correct 561 ms 47488 KB Output is correct
107 Correct 673 ms 54584 KB Output is correct
108 Correct 4 ms 4892 KB Output is correct
109 Correct 3 ms 4948 KB Output is correct
110 Correct 2 ms 4948 KB Output is correct
111 Correct 2 ms 5008 KB Output is correct
112 Correct 2 ms 4948 KB Output is correct
113 Correct 2 ms 4948 KB Output is correct
114 Correct 3 ms 4948 KB Output is correct
115 Correct 3 ms 5000 KB Output is correct
116 Correct 2 ms 5004 KB Output is correct
117 Correct 2 ms 4948 KB Output is correct
118 Correct 2 ms 5004 KB Output is correct
119 Correct 5 ms 5332 KB Output is correct
120 Correct 6 ms 5568 KB Output is correct
121 Correct 263 ms 30704 KB Output is correct
122 Correct 434 ms 43352 KB Output is correct
123 Correct 446 ms 43300 KB Output is correct
124 Correct 2 ms 4948 KB Output is correct
125 Correct 2 ms 4948 KB Output is correct
126 Correct 2 ms 4948 KB Output is correct
127 Correct 734 ms 62864 KB Output is correct
128 Correct 765 ms 63032 KB Output is correct
129 Correct 692 ms 63020 KB Output is correct
130 Correct 7 ms 5716 KB Output is correct
131 Correct 12 ms 6416 KB Output is correct
132 Correct 258 ms 29872 KB Output is correct
133 Correct 542 ms 43860 KB Output is correct
134 Correct 689 ms 55260 KB Output is correct
135 Correct 774 ms 64588 KB Output is correct
136 Correct 728 ms 63428 KB Output is correct
137 Correct 604 ms 55732 KB Output is correct
138 Correct 795 ms 57664 KB Output is correct
139 Correct 702 ms 54068 KB Output is correct
140 Correct 2 ms 4948 KB Output is correct
141 Correct 63 ms 13620 KB Output is correct
142 Correct 28 ms 8812 KB Output is correct
143 Correct 115 ms 18588 KB Output is correct
144 Correct 262 ms 28736 KB Output is correct
145 Correct 276 ms 31928 KB Output is correct
146 Correct 390 ms 40044 KB Output is correct
147 Correct 554 ms 46720 KB Output is correct
148 Correct 650 ms 52352 KB Output is correct
149 Correct 755 ms 59024 KB Output is correct
150 Correct 755 ms 61108 KB Output is correct
151 Correct 703 ms 63812 KB Output is correct
152 Correct 7 ms 5972 KB Output is correct
153 Correct 15 ms 6792 KB Output is correct
154 Correct 307 ms 31100 KB Output is correct
155 Correct 520 ms 45428 KB Output is correct
156 Correct 806 ms 58044 KB Output is correct
157 Correct 3 ms 4948 KB Output is correct
158 Correct 3 ms 5008 KB Output is correct
159 Correct 2 ms 5008 KB Output is correct
160 Correct 2 ms 4948 KB Output is correct
161 Correct 829 ms 52988 KB Output is correct
162 Correct 653 ms 54980 KB Output is correct
163 Correct 636 ms 53928 KB Output is correct
164 Correct 646 ms 53788 KB Output is correct
165 Correct 754 ms 53672 KB Output is correct
166 Correct 799 ms 52788 KB Output is correct
167 Correct 102 ms 16472 KB Output is correct
168 Correct 48 ms 10680 KB Output is correct
169 Correct 152 ms 20600 KB Output is correct
170 Correct 453 ms 34492 KB Output is correct
171 Correct 657 ms 42388 KB Output is correct
172 Correct 274 ms 29584 KB Output is correct
173 Correct 414 ms 34256 KB Output is correct
174 Correct 515 ms 40296 KB Output is correct
175 Correct 634 ms 44756 KB Output is correct
176 Correct 685 ms 49540 KB Output is correct
177 Correct 845 ms 54372 KB Output is correct