Submission #1005126

# Submission time Handle Problem Language Result Execution time Memory
1005126 2024-06-22T07:35:09 Z pavement Tiles (BOI24_tiles) C++17
100 / 100
270 ms 27896 KB
#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using ii = pair<int, int>;
using iii = tuple<int, int, int>;

#define pb push_back
#define eb emplace_back
#define mt make_tuple

int N, M, ans, odd_len, x[200005], y[200005], cnt[2];
map<int, vector<ii> > vec;
vector<int> dist_x;
set<iii> s;

int main() {
	//~ ios::sync_with_stdio(0);
	//~ cin.tie(0);
	cin >> N >> M;
	for (int i = 1; i <= N; i++) {
		cin >> x[i] >> y[i];
	}
	for (int i = 1; i <= N; i++) {
		int j = (i % N) + 1;
		if (x[i] == x[j]) {
			vec[x[i]].eb(min(y[i], y[j]), max(y[i], y[j]));
		}
		dist_x.pb(x[i]);
		if (x[i] > 0) {
			dist_x.pb(x[i] - 1);
		}
	}
	sort(dist_x.begin(), dist_x.end());
	dist_x.erase(unique(dist_x.begin(), dist_x.end()), dist_x.end());
	for (auto x : dist_x) {
		if (cnt[!(x % 2)] == 0) {
			ans = x;
		}
		for (auto [l, r] : vec[x]) {
			vector<set<iii>::iterator> to_erase;
			vector<iii> to_insert;
			// insert (x % 2, l, r)
			auto it = s.lower_bound(mt(l, -1, -1));
			if (it != s.begin()) {
				--it;
				auto [l2, r2, p2] = *it;
				assert(l2 < l);
				if (l < r2) {
					to_erase.pb(it);
					to_insert.eb(l2, l, p2);
					to_insert.eb(l, r2, p2);
				}
			}
			for (auto it : to_erase) {
				if (s.find(*it) == s.end()) {
					continue;
				}
				cnt[get<2>(*it)]--;
				if ((get<1>(*it) - get<0>(*it)) % 2 == 1) {
					odd_len--;
				}
				s.erase(it);
			}
			for (auto v : to_insert) {
				cnt[get<2>(v)]++;
				if ((get<1>(v) - get<0>(v)) % 2 == 1) {
					odd_len++;
				}
				s.insert(v);
			}
			to_erase.clear();
			to_insert.clear();
			it = s.lower_bound(mt(r, -1, -1));
			if (it != s.begin()) {
				--it;
				auto [l2, r2, p2] = *it;
				assert(l2 < r);
				if (r < r2) {
					to_erase.pb(it);
					to_insert.eb(l2, r, p2);
					to_insert.eb(r, r2, p2);
				}
			}
			for (auto it : to_erase) {
				if (s.find(*it) == s.end()) {
					continue;
				}
				cnt[get<2>(*it)]--;
				if ((get<1>(*it) - get<0>(*it)) % 2 == 1) {
					odd_len--;
				}
				s.erase(it);
			}
			for (auto v : to_insert) {
				cnt[get<2>(v)]++;
				if ((get<1>(v) - get<0>(v)) % 2 == 1) {
					odd_len++;
				}
				s.insert(v);
			}
			to_erase.clear();
			for (auto it = s.lower_bound(mt(l, -1, -1)); it != s.end() && get<1>(*it) <= r; it++) {
				auto [l2, r2, p2] = *it;
				if (p2 != (x % 2)) {
					cout << ans << '\n';
					return 0;
				}
				to_erase.pb(it);
			}
			for (auto it : to_erase) {
				if (s.find(*it) == s.end()) {
					continue;
				}
				cnt[get<2>(*it)]--;
				if ((get<1>(*it) - get<0>(*it)) % 2 == 1) {
					odd_len--;
				}
				s.erase(it);
			}
			bool should_insert = to_erase.empty();
			if (should_insert) {
				to_erase.clear();
				int lef = l, rig = r;
				it = s.lower_bound(mt(l, -1, -1));
				if (it != s.begin()) {
					--it;
					auto [l2, r2, p2] = *it;
					if (l == r2 && (x % 2) == p2) {
						to_erase.pb(it);
						lef = l2;
					}
				}
				it = s.lower_bound(mt(r, -1, -1));
				if (it != s.end()) {
					auto [l2, r2, p2] = *it;
					if (r == l2 && (x % 2) == p2) {
						to_erase.pb(it);
						rig = r2;
					}
				}
				for (auto it : to_erase) {
					if (s.find(*it) == s.end()) {
						continue;
					}
					cnt[get<2>(*it)]--;
					if ((get<1>(*it) - get<0>(*it)) % 2 == 1) {
						odd_len--;
					}
					s.erase(it);
				}
				cnt[x % 2]++;
				if ((rig - lef) % 2 == 1) {
					odd_len++;
				}
				s.emplace(lef, rig, x % 2);
			}
		}
		if (odd_len) {
			cout << ans << '\n';
			return 0;
		}
	}
	cout << ans << '\n';
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 600 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 600 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 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 0 ms 392 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 23 ms 2956 KB Output is correct
3 Correct 158 ms 20412 KB Output is correct
4 Correct 84 ms 11364 KB Output is correct
5 Correct 77 ms 9928 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 1 ms 512 KB Output is correct
8 Correct 151 ms 18184 KB Output is correct
9 Correct 97 ms 12996 KB Output is correct
10 Correct 134 ms 14276 KB Output is correct
11 Correct 104 ms 10188 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 191 ms 22124 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 1 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 59 ms 4928 KB Output is correct
6 Correct 92 ms 4960 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 1 ms 348 KB Output is correct
9 Correct 1 ms 348 KB Output is correct
10 Correct 4 ms 600 KB Output is correct
11 Correct 1 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 1 ms 348 KB Output is correct
14 Correct 1 ms 348 KB Output is correct
15 Correct 1 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 69 ms 4616 KB Output is correct
18 Correct 94 ms 4808 KB Output is correct
19 Correct 3 ms 604 KB Output is correct
20 Correct 1 ms 348 KB Output is correct
21 Correct 1 ms 452 KB Output is correct
22 Correct 0 ms 344 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 1 ms 348 KB Output is correct
25 Correct 0 ms 344 KB Output is correct
26 Correct 1 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 344 KB Output is correct
30 Correct 0 ms 344 KB Output is correct
31 Correct 1 ms 348 KB Output is correct
32 Correct 0 ms 348 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 1 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 348 KB Output is correct
41 Correct 1 ms 348 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 1 ms 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 ms 444 KB Output is correct
49 Correct 75 ms 6088 KB Output is correct
50 Correct 74 ms 6180 KB Output is correct
51 Correct 81 ms 6344 KB Output is correct
52 Correct 91 ms 6228 KB Output is correct
53 Correct 0 ms 344 KB Output is correct
54 Correct 1 ms 348 KB Output is correct
55 Correct 4 ms 604 KB Output is correct
56 Correct 3 ms 720 KB Output is correct
57 Correct 1 ms 348 KB Output is correct
58 Correct 0 ms 348 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 0 ms 348 KB Output is correct
63 Correct 4 ms 804 KB Output is correct
64 Correct 4 ms 604 KB Output is correct
65 Correct 0 ms 444 KB Output is correct
66 Correct 1 ms 348 KB Output is correct
67 Correct 0 ms 348 KB Output is correct
68 Correct 0 ms 348 KB Output is correct
69 Correct 1 ms 348 KB Output is correct
70 Correct 0 ms 348 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 0 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 85 ms 12488 KB Output is correct
3 Correct 79 ms 11192 KB Output is correct
4 Correct 63 ms 5800 KB Output is correct
5 Correct 91 ms 5808 KB Output is correct
6 Correct 1 ms 344 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 105 ms 8644 KB Output is correct
9 Correct 103 ms 8648 KB Output is correct
10 Correct 140 ms 8368 KB Output is correct
11 Correct 143 ms 8564 KB Output is correct
12 Correct 151 ms 26896 KB Output is correct
13 Correct 190 ms 27324 KB Output is correct
14 Correct 158 ms 20156 KB Output is correct
15 Correct 111 ms 8900 KB Output is correct
16 Correct 141 ms 14880 KB Output is correct
17 Correct 130 ms 8620 KB Output is correct
18 Correct 231 ms 26504 KB Output is correct
19 Correct 128 ms 8644 KB Output is correct
20 Correct 117 ms 8644 KB Output is correct
21 Correct 104 ms 8388 KB Output is correct
22 Correct 129 ms 8608 KB Output is correct
23 Correct 169 ms 27540 KB Output is correct
24 Correct 231 ms 27896 KB Output is correct
25 Correct 167 ms 27328 KB Output is correct
26 Correct 246 ms 22972 KB Output is correct
27 Correct 180 ms 22976 KB Output is correct
28 Correct 223 ms 23740 KB Output is correct
29 Correct 118 ms 9144 KB Output is correct
30 Correct 128 ms 8516 KB Output is correct
31 Correct 117 ms 8896 KB Output is correct
32 Correct 134 ms 8540 KB Output is correct
33 Correct 140 ms 18368 KB Output is correct
34 Correct 72 ms 11976 KB Output is correct
35 Correct 0 ms 344 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 348 KB Output is correct
41 Correct 0 ms 344 KB Output is correct
42 Correct 0 ms 348 KB Output is correct
43 Correct 0 ms 348 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 348 KB Output is correct
47 Correct 0 ms 348 KB Output is correct
48 Correct 0 ms 344 KB Output is correct
49 Correct 270 ms 27700 KB Output is correct
50 Correct 0 ms 344 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 109 ms 11204 KB Output is correct
53 Correct 70 ms 6096 KB Output is correct
54 Correct 70 ms 6244 KB Output is correct
55 Correct 74 ms 6344 KB Output is correct
56 Correct 91 ms 6340 KB Output is correct
57 Correct 0 ms 344 KB Output is correct
58 Correct 1 ms 344 KB Output is correct
59 Correct 0 ms 344 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 156 ms 22284 KB Output is correct
2 Correct 84 ms 13256 KB Output is correct
3 Correct 1 ms 344 KB Output is correct
4 Correct 140 ms 18112 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 137 ms 8988 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 175 ms 22208 KB Output is correct
9 Correct 124 ms 8648 KB Output is correct
10 Correct 125 ms 13248 KB Output is correct
11 Correct 121 ms 18368 KB Output is correct
12 Correct 125 ms 20564 KB Output is correct
13 Correct 127 ms 8388 KB Output is correct
14 Correct 124 ms 8644 KB Output is correct
15 Correct 124 ms 8600 KB Output is correct
16 Correct 180 ms 27456 KB Output is correct
17 Correct 182 ms 27324 KB Output is correct
18 Correct 169 ms 27544 KB Output is correct
19 Correct 65 ms 8644 KB Output is correct
20 Correct 1 ms 344 KB Output is correct
21 Correct 160 ms 21952 KB Output is correct
22 Correct 99 ms 15048 KB Output is correct
23 Correct 1 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 348 KB Output is correct
28 Correct 1 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 344 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 0 ms 348 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 78 ms 8488 KB Output is correct
37 Correct 70 ms 6084 KB Output is correct
38 Correct 71 ms 6084 KB Output is correct
39 Correct 76 ms 6344 KB Output is correct
40 Correct 89 ms 6348 KB Output is correct
41 Correct 0 ms 344 KB Output is correct
42 Correct 0 ms 344 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 0 ms 348 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 1 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 600 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Correct 0 ms 348 KB Output is correct
10 Correct 0 ms 348 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Correct 0 ms 348 KB Output is correct
13 Correct 0 ms 348 KB Output is correct
14 Correct 0 ms 348 KB Output is correct
15 Correct 0 ms 348 KB Output is correct
16 Correct 0 ms 348 KB Output is correct
17 Correct 0 ms 348 KB Output is correct
18 Correct 0 ms 348 KB Output is correct
19 Correct 0 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 0 ms 392 KB Output is correct
23 Correct 0 ms 348 KB Output is correct
24 Correct 0 ms 348 KB Output is correct
25 Correct 0 ms 348 KB Output is correct
26 Correct 0 ms 348 KB Output is correct
27 Correct 0 ms 344 KB Output is correct
28 Correct 0 ms 348 KB Output is correct
29 Correct 0 ms 348 KB Output is correct
30 Correct 0 ms 348 KB Output is correct
31 Correct 0 ms 348 KB Output is correct
32 Correct 1 ms 344 KB Output is correct
33 Correct 23 ms 2956 KB Output is correct
34 Correct 158 ms 20412 KB Output is correct
35 Correct 84 ms 11364 KB Output is correct
36 Correct 77 ms 9928 KB Output is correct
37 Correct 1 ms 348 KB Output is correct
38 Correct 1 ms 512 KB Output is correct
39 Correct 151 ms 18184 KB Output is correct
40 Correct 97 ms 12996 KB Output is correct
41 Correct 134 ms 14276 KB Output is correct
42 Correct 104 ms 10188 KB Output is correct
43 Correct 0 ms 348 KB Output is correct
44 Correct 191 ms 22124 KB Output is correct
45 Correct 0 ms 348 KB Output is correct
46 Correct 0 ms 348 KB Output is correct
47 Correct 1 ms 348 KB Output is correct
48 Correct 0 ms 348 KB Output is correct
49 Correct 0 ms 348 KB Output is correct
50 Correct 0 ms 348 KB Output is correct
51 Correct 0 ms 348 KB Output is correct
52 Correct 1 ms 348 KB Output is correct
53 Correct 59 ms 4928 KB Output is correct
54 Correct 92 ms 4960 KB Output is correct
55 Correct 1 ms 348 KB Output is correct
56 Correct 1 ms 348 KB Output is correct
57 Correct 1 ms 348 KB Output is correct
58 Correct 4 ms 600 KB Output is correct
59 Correct 1 ms 348 KB Output is correct
60 Correct 0 ms 348 KB Output is correct
61 Correct 1 ms 348 KB Output is correct
62 Correct 1 ms 348 KB Output is correct
63 Correct 1 ms 348 KB Output is correct
64 Correct 0 ms 348 KB Output is correct
65 Correct 69 ms 4616 KB Output is correct
66 Correct 94 ms 4808 KB Output is correct
67 Correct 3 ms 604 KB Output is correct
68 Correct 1 ms 348 KB Output is correct
69 Correct 1 ms 452 KB Output is correct
70 Correct 0 ms 344 KB Output is correct
71 Correct 1 ms 348 KB Output is correct
72 Correct 1 ms 348 KB Output is correct
73 Correct 0 ms 344 KB Output is correct
74 Correct 1 ms 348 KB Output is correct
75 Correct 0 ms 348 KB Output is correct
76 Correct 0 ms 348 KB Output is correct
77 Correct 0 ms 344 KB Output is correct
78 Correct 0 ms 344 KB Output is correct
79 Correct 1 ms 348 KB Output is correct
80 Correct 0 ms 348 KB Output is correct
81 Correct 0 ms 348 KB Output is correct
82 Correct 0 ms 348 KB Output is correct
83 Correct 0 ms 348 KB Output is correct
84 Correct 1 ms 348 KB Output is correct
85 Correct 0 ms 348 KB Output is correct
86 Correct 0 ms 348 KB Output is correct
87 Correct 0 ms 348 KB Output is correct
88 Correct 0 ms 348 KB Output is correct
89 Correct 1 ms 348 KB Output is correct
90 Correct 0 ms 348 KB Output is correct
91 Correct 0 ms 348 KB Output is correct
92 Correct 0 ms 348 KB Output is correct
93 Correct 1 ms 348 KB Output is correct
94 Correct 0 ms 348 KB Output is correct
95 Correct 0 ms 348 KB Output is correct
96 Correct 0 ms 444 KB Output is correct
97 Correct 75 ms 6088 KB Output is correct
98 Correct 74 ms 6180 KB Output is correct
99 Correct 81 ms 6344 KB Output is correct
100 Correct 91 ms 6228 KB Output is correct
101 Correct 0 ms 344 KB Output is correct
102 Correct 1 ms 348 KB Output is correct
103 Correct 4 ms 604 KB Output is correct
104 Correct 3 ms 720 KB Output is correct
105 Correct 1 ms 348 KB Output is correct
106 Correct 0 ms 348 KB Output is correct
107 Correct 0 ms 348 KB Output is correct
108 Correct 0 ms 348 KB Output is correct
109 Correct 0 ms 348 KB Output is correct
110 Correct 0 ms 348 KB Output is correct
111 Correct 4 ms 804 KB Output is correct
112 Correct 4 ms 604 KB Output is correct
113 Correct 0 ms 444 KB Output is correct
114 Correct 1 ms 348 KB Output is correct
115 Correct 0 ms 348 KB Output is correct
116 Correct 0 ms 348 KB Output is correct
117 Correct 1 ms 348 KB Output is correct
118 Correct 0 ms 348 KB Output is correct
119 Correct 1 ms 348 KB Output is correct
120 Correct 0 ms 348 KB Output is correct
121 Correct 1 ms 348 KB Output is correct
122 Correct 85 ms 12488 KB Output is correct
123 Correct 79 ms 11192 KB Output is correct
124 Correct 63 ms 5800 KB Output is correct
125 Correct 91 ms 5808 KB Output is correct
126 Correct 1 ms 344 KB Output is correct
127 Correct 1 ms 348 KB Output is correct
128 Correct 105 ms 8644 KB Output is correct
129 Correct 103 ms 8648 KB Output is correct
130 Correct 140 ms 8368 KB Output is correct
131 Correct 143 ms 8564 KB Output is correct
132 Correct 151 ms 26896 KB Output is correct
133 Correct 190 ms 27324 KB Output is correct
134 Correct 158 ms 20156 KB Output is correct
135 Correct 111 ms 8900 KB Output is correct
136 Correct 141 ms 14880 KB Output is correct
137 Correct 130 ms 8620 KB Output is correct
138 Correct 231 ms 26504 KB Output is correct
139 Correct 128 ms 8644 KB Output is correct
140 Correct 117 ms 8644 KB Output is correct
141 Correct 104 ms 8388 KB Output is correct
142 Correct 129 ms 8608 KB Output is correct
143 Correct 169 ms 27540 KB Output is correct
144 Correct 231 ms 27896 KB Output is correct
145 Correct 167 ms 27328 KB Output is correct
146 Correct 246 ms 22972 KB Output is correct
147 Correct 180 ms 22976 KB Output is correct
148 Correct 223 ms 23740 KB Output is correct
149 Correct 118 ms 9144 KB Output is correct
150 Correct 128 ms 8516 KB Output is correct
151 Correct 117 ms 8896 KB Output is correct
152 Correct 134 ms 8540 KB Output is correct
153 Correct 140 ms 18368 KB Output is correct
154 Correct 72 ms 11976 KB Output is correct
155 Correct 0 ms 344 KB Output is correct
156 Correct 0 ms 348 KB Output is correct
157 Correct 0 ms 348 KB Output is correct
158 Correct 0 ms 348 KB Output is correct
159 Correct 0 ms 348 KB Output is correct
160 Correct 0 ms 348 KB Output is correct
161 Correct 0 ms 344 KB Output is correct
162 Correct 0 ms 348 KB Output is correct
163 Correct 0 ms 348 KB Output is correct
164 Correct 0 ms 348 KB Output is correct
165 Correct 0 ms 348 KB Output is correct
166 Correct 0 ms 348 KB Output is correct
167 Correct 0 ms 348 KB Output is correct
168 Correct 0 ms 344 KB Output is correct
169 Correct 270 ms 27700 KB Output is correct
170 Correct 0 ms 344 KB Output is correct
171 Correct 0 ms 348 KB Output is correct
172 Correct 109 ms 11204 KB Output is correct
173 Correct 70 ms 6096 KB Output is correct
174 Correct 70 ms 6244 KB Output is correct
175 Correct 74 ms 6344 KB Output is correct
176 Correct 91 ms 6340 KB Output is correct
177 Correct 0 ms 344 KB Output is correct
178 Correct 1 ms 344 KB Output is correct
179 Correct 0 ms 344 KB Output is correct
180 Correct 156 ms 22284 KB Output is correct
181 Correct 84 ms 13256 KB Output is correct
182 Correct 1 ms 344 KB Output is correct
183 Correct 140 ms 18112 KB Output is correct
184 Correct 0 ms 348 KB Output is correct
185 Correct 137 ms 8988 KB Output is correct
186 Correct 1 ms 348 KB Output is correct
187 Correct 175 ms 22208 KB Output is correct
188 Correct 124 ms 8648 KB Output is correct
189 Correct 125 ms 13248 KB Output is correct
190 Correct 121 ms 18368 KB Output is correct
191 Correct 125 ms 20564 KB Output is correct
192 Correct 127 ms 8388 KB Output is correct
193 Correct 124 ms 8644 KB Output is correct
194 Correct 124 ms 8600 KB Output is correct
195 Correct 180 ms 27456 KB Output is correct
196 Correct 182 ms 27324 KB Output is correct
197 Correct 169 ms 27544 KB Output is correct
198 Correct 65 ms 8644 KB Output is correct
199 Correct 1 ms 344 KB Output is correct
200 Correct 160 ms 21952 KB Output is correct
201 Correct 99 ms 15048 KB Output is correct
202 Correct 1 ms 348 KB Output is correct
203 Correct 0 ms 348 KB Output is correct
204 Correct 0 ms 348 KB Output is correct
205 Correct 0 ms 348 KB Output is correct
206 Correct 0 ms 348 KB Output is correct
207 Correct 1 ms 348 KB Output is correct
208 Correct 0 ms 348 KB Output is correct
209 Correct 0 ms 344 KB Output is correct
210 Correct 0 ms 348 KB Output is correct
211 Correct 0 ms 348 KB Output is correct
212 Correct 0 ms 348 KB Output is correct
213 Correct 0 ms 348 KB Output is correct
214 Correct 0 ms 348 KB Output is correct
215 Correct 78 ms 8488 KB Output is correct
216 Correct 70 ms 6084 KB Output is correct
217 Correct 71 ms 6084 KB Output is correct
218 Correct 76 ms 6344 KB Output is correct
219 Correct 89 ms 6348 KB Output is correct
220 Correct 0 ms 344 KB Output is correct
221 Correct 0 ms 344 KB Output is correct
222 Correct 0 ms 348 KB Output is correct
223 Correct 0 ms 348 KB Output is correct
224 Correct 0 ms 348 KB Output is correct
225 Correct 1 ms 348 KB Output is correct
226 Correct 135 ms 8392 KB Output is correct
227 Correct 124 ms 18304 KB Output is correct
228 Correct 150 ms 16772 KB Output is correct
229 Correct 114 ms 8948 KB Output is correct
230 Correct 225 ms 27588 KB Output is correct
231 Correct 140 ms 24508 KB Output is correct
232 Correct 140 ms 8312 KB Output is correct
233 Correct 73 ms 8404 KB Output is correct
234 Correct 164 ms 25788 KB Output is correct
235 Correct 137 ms 26052 KB Output is correct
236 Correct 248 ms 27300 KB Output is correct
237 Correct 139 ms 25752 KB Output is correct
238 Correct 96 ms 11716 KB Output is correct
239 Correct 235 ms 27584 KB Output is correct
240 Correct 127 ms 16688 KB Output is correct
241 Correct 187 ms 26048 KB Output is correct
242 Correct 62 ms 6860 KB Output is correct