Submission #572037

# Submission time Handle Problem Language Result Execution time Memory
572037 2022-06-03T11:53:40 Z grt L-triominoes (CEOI21_ltriominoes) C++17
100 / 100
1297 ms 14784 KB
#include <bits/stdc++.h>
#define PB push_back
#define ST first
#define ND second

//#pragma GCC optimize ("O3")
//#pragma GCC target("tune=native")

//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds;
//typedef tree<int, null_type, less_equal<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;

using namespace std;
using ll = long long;
using pi = pair<int, int>;
using vi = vector<int>;

int w, h, k;
vi g[(1 << 14)][14];
map<int, int>state;
int vis[(1 << 14)][14], cur;
int hsh[(1 << 14)];
vi masks;

void dfs(int mask, int row) {
	vis[mask][row] = cur;
	for(int m : g[mask][row]) {
		if(vis[m][row + 1] != cur) {
			dfs(m, row + 1);
		}
	}
}

map<int, vi>achieve;

void rozwaz(int ww) {
	cur++;
	int hs = 0;
	for(int m : masks) {
		hs ^= hsh[m];
	}
	vi good = {};
	if(achieve.count(hs)) {
		good = achieve[hs];
	} else {
		for(int m : masks) {
			if(vis[m << 1][0] != cur)
				dfs(m << 1, 0);
		}
		vi tmp = {};
		for(int i = 0; i < (1 << w); ++i) {
			if(vis[i << 1][w]==cur) {
				tmp.PB(i);
			}
		}
		achieve[hs] = tmp;
		good = tmp;
	}
	masks = {};
	for(int i : good) {
		if((i & ww) == ww) {
			masks.PB(i ^ ww);
		}
	}
}

int period[13] = {0, 3, 2, 3, 6, 6, 6, 3, 20, 3, 6, 6, 6};

void zeroes(int cnt) {
	int ile = 0;
	for(int i = 0; i < min(12, cnt); ++i) {
		rozwaz(0);
		ile++;
	}
	cnt -= ile;
	cnt %= period[w - 1];
	for(int i = 0; i < cnt; ++i) {
		rozwaz(0);
	}
}

mt19937 rng(19024910);

int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cin >> w >> h >> k;
	for(int i = 0; i < (1 << w); ++i) hsh[i] = rng() % 1000000000;
	for(int row = 0; row < w; ++row) {
		for(int mask = 0; mask < (1 << (w + 1)); ++mask) {
			if((mask & 1) == 0) g[mask][row].PB((mask >> 1) | (1 << w));
			int m = (mask >> 1);
			if(row < w - 1) {
				if((m&3)==3 && (mask & 1) == 0) {
					g[mask][row].PB(m^3);
				}
			}
			if(row > 0) {
				if((m&1) && (m & (1 << (w-1))) && (mask & 1) == 0) {
					m ^= 1;
					m ^= (1 << (w - 1));
					g[mask][row].PB(m);
					m ^= 1;
					m ^= (1 << (w - 1));
				}
			}
			if(row > 0) {
				if((mask & 3)==3) {
					g[mask][row].PB((mask^3) >> 1);
				}
			}
			if(row > 0) {
				if((mask & 1) && (mask & (1 << w))) {
					g[mask][row].PB((mask^1^(1<<w))>>1);
				}
			}
		}
	}
	for(int x, y, i = 0; i < k; ++i) {
		cin >> x >> y;
		state[y] += (1 << ((x - 1)));
	}
	masks = {0};
	int last = 0;
	for(auto it : state) {
		int cnt = it.ST - last - 1;
		zeroes(cnt);
		rozwaz(it.ND);
		last = it.ST;
	}
	int cnt = h - last;
	if(cnt > 0) zeroes(cnt);
	bool exist = false;
	for(int m : masks) if(!m) exist = true;
	if(!exist) cout << "NO";
	else cout << "YES";
	
}
# Verdict Execution time Memory Grader output
1 Correct 3 ms 5716 KB Output is correct
2 Correct 3 ms 5716 KB Output is correct
3 Correct 3 ms 5724 KB Output is correct
4 Correct 4 ms 5716 KB Output is correct
5 Correct 4 ms 5716 KB Output is correct
6 Correct 4 ms 5716 KB Output is correct
7 Correct 3 ms 5716 KB Output is correct
8 Correct 15 ms 8776 KB Output is correct
9 Correct 6 ms 6876 KB Output is correct
10 Correct 4 ms 5972 KB Output is correct
11 Correct 14 ms 8788 KB Output is correct
12 Correct 5 ms 6340 KB Output is correct
13 Correct 3 ms 5716 KB Output is correct
14 Correct 3 ms 5716 KB Output is correct
15 Correct 15 ms 8836 KB Output is correct
16 Correct 1012 ms 14420 KB Output is correct
17 Correct 12 ms 6356 KB Output is correct
18 Correct 179 ms 9516 KB Output is correct
19 Correct 4 ms 5812 KB Output is correct
20 Correct 959 ms 14160 KB Output is correct
21 Correct 129 ms 9424 KB Output is correct
22 Correct 3 ms 5716 KB Output is correct
23 Correct 7 ms 5716 KB Output is correct
24 Correct 4 ms 5716 KB Output is correct
25 Correct 515 ms 13440 KB Output is correct
26 Correct 463 ms 12992 KB Output is correct
27 Correct 3 ms 5716 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 5716 KB Output is correct
2 Correct 3 ms 5716 KB Output is correct
3 Correct 4 ms 5588 KB Output is correct
4 Correct 3 ms 5716 KB Output is correct
5 Correct 11 ms 8788 KB Output is correct
6 Correct 10 ms 7144 KB Output is correct
7 Correct 5 ms 6356 KB Output is correct
8 Correct 3 ms 5844 KB Output is correct
9 Correct 3 ms 5716 KB Output is correct
10 Correct 3 ms 5716 KB Output is correct
11 Correct 3 ms 5716 KB Output is correct
12 Correct 3 ms 5716 KB Output is correct
13 Correct 3 ms 5716 KB Output is correct
14 Correct 3 ms 5716 KB Output is correct
15 Correct 3 ms 5716 KB Output is correct
16 Correct 3 ms 5716 KB Output is correct
17 Correct 3 ms 5716 KB Output is correct
18 Correct 50 ms 12360 KB Output is correct
19 Correct 51 ms 12300 KB Output is correct
20 Correct 3 ms 5716 KB Output is correct
21 Correct 3 ms 5716 KB Output is correct
22 Correct 4 ms 5972 KB Output is correct
23 Correct 4 ms 5972 KB Output is correct
24 Correct 5 ms 5972 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 5716 KB Output is correct
2 Correct 3 ms 5716 KB Output is correct
3 Correct 3 ms 5716 KB Output is correct
4 Correct 3 ms 5716 KB Output is correct
5 Correct 3 ms 5716 KB Output is correct
6 Correct 2 ms 5716 KB Output is correct
7 Correct 3 ms 5716 KB Output is correct
8 Correct 3 ms 5716 KB Output is correct
9 Correct 3 ms 5716 KB Output is correct
10 Correct 4 ms 5716 KB Output is correct
11 Correct 3 ms 5716 KB Output is correct
12 Correct 3 ms 5716 KB Output is correct
13 Correct 3 ms 5716 KB Output is correct
14 Correct 3 ms 5716 KB Output is correct
15 Correct 3 ms 5716 KB Output is correct
16 Correct 4 ms 5716 KB Output is correct
17 Correct 4 ms 5716 KB Output is correct
18 Correct 4 ms 5716 KB Output is correct
19 Correct 3 ms 5716 KB Output is correct
20 Correct 3 ms 5716 KB Output is correct
21 Correct 3 ms 5716 KB Output is correct
22 Correct 4 ms 5620 KB Output is correct
23 Correct 3 ms 5716 KB Output is correct
24 Correct 3 ms 5716 KB Output is correct
25 Correct 3 ms 5716 KB Output is correct
26 Correct 3 ms 5716 KB Output is correct
27 Correct 3 ms 5716 KB Output is correct
28 Correct 3 ms 5588 KB Output is correct
29 Correct 3 ms 5840 KB Output is correct
30 Correct 3 ms 5716 KB Output is correct
31 Correct 3 ms 5716 KB Output is correct
32 Correct 4 ms 5716 KB Output is correct
33 Correct 3 ms 5716 KB Output is correct
34 Correct 3 ms 5704 KB Output is correct
35 Correct 3 ms 5716 KB Output is correct
36 Correct 4 ms 5716 KB Output is correct
37 Correct 3 ms 5716 KB Output is correct
38 Correct 3 ms 5716 KB Output is correct
39 Correct 3 ms 5716 KB Output is correct
40 Correct 3 ms 5716 KB Output is correct
41 Correct 3 ms 5716 KB Output is correct
42 Correct 3 ms 5716 KB Output is correct
43 Correct 3 ms 5716 KB Output is correct
44 Correct 4 ms 5716 KB Output is correct
45 Correct 4 ms 5716 KB Output is correct
46 Correct 3 ms 5716 KB Output is correct
47 Correct 3 ms 5716 KB Output is correct
48 Correct 3 ms 5716 KB Output is correct
49 Correct 4 ms 5696 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 5716 KB Output is correct
2 Correct 4 ms 5716 KB Output is correct
3 Correct 3 ms 5716 KB Output is correct
4 Correct 3 ms 5716 KB Output is correct
5 Correct 3 ms 5716 KB Output is correct
6 Correct 3 ms 5716 KB Output is correct
7 Correct 3 ms 5716 KB Output is correct
8 Correct 3 ms 5660 KB Output is correct
9 Correct 3 ms 5716 KB Output is correct
10 Correct 3 ms 5716 KB Output is correct
11 Correct 3 ms 5716 KB Output is correct
12 Correct 4 ms 5716 KB Output is correct
13 Correct 3 ms 5748 KB Output is correct
14 Correct 4 ms 5716 KB Output is correct
15 Correct 3 ms 5716 KB Output is correct
16 Correct 4 ms 5716 KB Output is correct
17 Correct 3 ms 5716 KB Output is correct
18 Correct 3 ms 5716 KB Output is correct
19 Correct 4 ms 5716 KB Output is correct
20 Correct 4 ms 5716 KB Output is correct
21 Correct 5 ms 5716 KB Output is correct
22 Correct 4 ms 5780 KB Output is correct
23 Correct 4 ms 5716 KB Output is correct
24 Correct 4 ms 5716 KB Output is correct
25 Correct 3 ms 5716 KB Output is correct
26 Correct 3 ms 5716 KB Output is correct
27 Correct 3 ms 5716 KB Output is correct
28 Correct 3 ms 5716 KB Output is correct
29 Correct 3 ms 5716 KB Output is correct
30 Correct 3 ms 5716 KB Output is correct
31 Correct 3 ms 5716 KB Output is correct
32 Correct 4 ms 5716 KB Output is correct
33 Correct 4 ms 5716 KB Output is correct
34 Correct 4 ms 5716 KB Output is correct
35 Correct 4 ms 5716 KB Output is correct
36 Correct 3 ms 5716 KB Output is correct
37 Correct 3 ms 5716 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 5716 KB Output is correct
2 Correct 4 ms 5716 KB Output is correct
3 Correct 4 ms 5844 KB Output is correct
4 Correct 87 ms 9172 KB Output is correct
5 Correct 41 ms 7336 KB Output is correct
6 Correct 49 ms 7412 KB Output is correct
7 Correct 17 ms 6484 KB Output is correct
8 Correct 19 ms 6488 KB Output is correct
9 Correct 12 ms 6356 KB Output is correct
10 Correct 21 ms 6528 KB Output is correct
11 Correct 13 ms 8816 KB Output is correct
12 Correct 11 ms 7124 KB Output is correct
13 Correct 4 ms 5972 KB Output is correct
14 Correct 15 ms 8820 KB Output is correct
15 Correct 4 ms 5716 KB Output is correct
16 Correct 5 ms 5716 KB Output is correct
17 Correct 9 ms 6360 KB Output is correct
18 Correct 6 ms 5892 KB Output is correct
19 Correct 10 ms 6036 KB Output is correct
20 Correct 200 ms 9464 KB Output is correct
21 Correct 56 ms 7528 KB Output is correct
22 Correct 5 ms 5716 KB Output is correct
23 Correct 11 ms 6068 KB Output is correct
24 Correct 629 ms 13276 KB Output is correct
25 Correct 96 ms 9116 KB Output is correct
26 Correct 532 ms 13184 KB Output is correct
27 Correct 533 ms 13264 KB Output is correct
28 Correct 169 ms 12480 KB Output is correct
29 Correct 627 ms 13548 KB Output is correct
30 Correct 729 ms 13800 KB Output is correct
31 Correct 265 ms 12616 KB Output is correct
32 Correct 765 ms 14028 KB Output is correct
33 Correct 180 ms 9804 KB Output is correct
34 Correct 1284 ms 14576 KB Output is correct
35 Correct 534 ms 13256 KB Output is correct
36 Correct 293 ms 12684 KB Output is correct
37 Correct 88 ms 9216 KB Output is correct
38 Correct 149 ms 9548 KB Output is correct
39 Correct 55 ms 7424 KB Output is correct
40 Correct 583 ms 13288 KB Output is correct
41 Correct 51 ms 7436 KB Output is correct
42 Correct 670 ms 13564 KB Output is correct
43 Correct 787 ms 13812 KB Output is correct
44 Correct 890 ms 13860 KB Output is correct
45 Correct 921 ms 13880 KB Output is correct
46 Correct 23 ms 8788 KB Output is correct
47 Correct 207 ms 12664 KB Output is correct
48 Correct 523 ms 13344 KB Output is correct
49 Correct 995 ms 14640 KB Output is correct
50 Correct 71 ms 7632 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 5716 KB Output is correct
2 Correct 3 ms 5716 KB Output is correct
3 Correct 3 ms 5724 KB Output is correct
4 Correct 4 ms 5716 KB Output is correct
5 Correct 4 ms 5716 KB Output is correct
6 Correct 4 ms 5716 KB Output is correct
7 Correct 3 ms 5716 KB Output is correct
8 Correct 15 ms 8776 KB Output is correct
9 Correct 6 ms 6876 KB Output is correct
10 Correct 4 ms 5972 KB Output is correct
11 Correct 14 ms 8788 KB Output is correct
12 Correct 5 ms 6340 KB Output is correct
13 Correct 3 ms 5716 KB Output is correct
14 Correct 3 ms 5716 KB Output is correct
15 Correct 15 ms 8836 KB Output is correct
16 Correct 1012 ms 14420 KB Output is correct
17 Correct 12 ms 6356 KB Output is correct
18 Correct 179 ms 9516 KB Output is correct
19 Correct 4 ms 5812 KB Output is correct
20 Correct 959 ms 14160 KB Output is correct
21 Correct 129 ms 9424 KB Output is correct
22 Correct 3 ms 5716 KB Output is correct
23 Correct 7 ms 5716 KB Output is correct
24 Correct 4 ms 5716 KB Output is correct
25 Correct 515 ms 13440 KB Output is correct
26 Correct 463 ms 12992 KB Output is correct
27 Correct 3 ms 5716 KB Output is correct
28 Correct 3 ms 5716 KB Output is correct
29 Correct 3 ms 5716 KB Output is correct
30 Correct 4 ms 5588 KB Output is correct
31 Correct 3 ms 5716 KB Output is correct
32 Correct 11 ms 8788 KB Output is correct
33 Correct 10 ms 7144 KB Output is correct
34 Correct 5 ms 6356 KB Output is correct
35 Correct 3 ms 5844 KB Output is correct
36 Correct 3 ms 5716 KB Output is correct
37 Correct 3 ms 5716 KB Output is correct
38 Correct 3 ms 5716 KB Output is correct
39 Correct 3 ms 5716 KB Output is correct
40 Correct 3 ms 5716 KB Output is correct
41 Correct 3 ms 5716 KB Output is correct
42 Correct 3 ms 5716 KB Output is correct
43 Correct 3 ms 5716 KB Output is correct
44 Correct 3 ms 5716 KB Output is correct
45 Correct 50 ms 12360 KB Output is correct
46 Correct 51 ms 12300 KB Output is correct
47 Correct 3 ms 5716 KB Output is correct
48 Correct 3 ms 5716 KB Output is correct
49 Correct 4 ms 5972 KB Output is correct
50 Correct 4 ms 5972 KB Output is correct
51 Correct 5 ms 5972 KB Output is correct
52 Correct 3 ms 5716 KB Output is correct
53 Correct 3 ms 5716 KB Output is correct
54 Correct 3 ms 5716 KB Output is correct
55 Correct 3 ms 5716 KB Output is correct
56 Correct 3 ms 5716 KB Output is correct
57 Correct 2 ms 5716 KB Output is correct
58 Correct 3 ms 5716 KB Output is correct
59 Correct 3 ms 5716 KB Output is correct
60 Correct 3 ms 5716 KB Output is correct
61 Correct 4 ms 5716 KB Output is correct
62 Correct 3 ms 5716 KB Output is correct
63 Correct 3 ms 5716 KB Output is correct
64 Correct 3 ms 5716 KB Output is correct
65 Correct 3 ms 5716 KB Output is correct
66 Correct 3 ms 5716 KB Output is correct
67 Correct 4 ms 5716 KB Output is correct
68 Correct 4 ms 5716 KB Output is correct
69 Correct 4 ms 5716 KB Output is correct
70 Correct 3 ms 5716 KB Output is correct
71 Correct 3 ms 5716 KB Output is correct
72 Correct 3 ms 5716 KB Output is correct
73 Correct 4 ms 5620 KB Output is correct
74 Correct 3 ms 5716 KB Output is correct
75 Correct 3 ms 5716 KB Output is correct
76 Correct 3 ms 5716 KB Output is correct
77 Correct 3 ms 5716 KB Output is correct
78 Correct 3 ms 5716 KB Output is correct
79 Correct 3 ms 5588 KB Output is correct
80 Correct 3 ms 5840 KB Output is correct
81 Correct 3 ms 5716 KB Output is correct
82 Correct 3 ms 5716 KB Output is correct
83 Correct 4 ms 5716 KB Output is correct
84 Correct 3 ms 5716 KB Output is correct
85 Correct 3 ms 5704 KB Output is correct
86 Correct 3 ms 5716 KB Output is correct
87 Correct 4 ms 5716 KB Output is correct
88 Correct 3 ms 5716 KB Output is correct
89 Correct 3 ms 5716 KB Output is correct
90 Correct 3 ms 5716 KB Output is correct
91 Correct 3 ms 5716 KB Output is correct
92 Correct 3 ms 5716 KB Output is correct
93 Correct 3 ms 5716 KB Output is correct
94 Correct 3 ms 5716 KB Output is correct
95 Correct 4 ms 5716 KB Output is correct
96 Correct 4 ms 5716 KB Output is correct
97 Correct 3 ms 5716 KB Output is correct
98 Correct 3 ms 5716 KB Output is correct
99 Correct 3 ms 5716 KB Output is correct
100 Correct 4 ms 5696 KB Output is correct
101 Correct 3 ms 5716 KB Output is correct
102 Correct 4 ms 5716 KB Output is correct
103 Correct 3 ms 5716 KB Output is correct
104 Correct 3 ms 5716 KB Output is correct
105 Correct 3 ms 5716 KB Output is correct
106 Correct 3 ms 5716 KB Output is correct
107 Correct 3 ms 5716 KB Output is correct
108 Correct 3 ms 5660 KB Output is correct
109 Correct 3 ms 5716 KB Output is correct
110 Correct 3 ms 5716 KB Output is correct
111 Correct 3 ms 5716 KB Output is correct
112 Correct 4 ms 5716 KB Output is correct
113 Correct 3 ms 5748 KB Output is correct
114 Correct 4 ms 5716 KB Output is correct
115 Correct 3 ms 5716 KB Output is correct
116 Correct 4 ms 5716 KB Output is correct
117 Correct 3 ms 5716 KB Output is correct
118 Correct 3 ms 5716 KB Output is correct
119 Correct 4 ms 5716 KB Output is correct
120 Correct 4 ms 5716 KB Output is correct
121 Correct 5 ms 5716 KB Output is correct
122 Correct 4 ms 5780 KB Output is correct
123 Correct 4 ms 5716 KB Output is correct
124 Correct 4 ms 5716 KB Output is correct
125 Correct 3 ms 5716 KB Output is correct
126 Correct 3 ms 5716 KB Output is correct
127 Correct 3 ms 5716 KB Output is correct
128 Correct 3 ms 5716 KB Output is correct
129 Correct 3 ms 5716 KB Output is correct
130 Correct 3 ms 5716 KB Output is correct
131 Correct 3 ms 5716 KB Output is correct
132 Correct 4 ms 5716 KB Output is correct
133 Correct 4 ms 5716 KB Output is correct
134 Correct 4 ms 5716 KB Output is correct
135 Correct 4 ms 5716 KB Output is correct
136 Correct 3 ms 5716 KB Output is correct
137 Correct 3 ms 5716 KB Output is correct
138 Correct 4 ms 5716 KB Output is correct
139 Correct 4 ms 5716 KB Output is correct
140 Correct 4 ms 5844 KB Output is correct
141 Correct 87 ms 9172 KB Output is correct
142 Correct 41 ms 7336 KB Output is correct
143 Correct 49 ms 7412 KB Output is correct
144 Correct 17 ms 6484 KB Output is correct
145 Correct 19 ms 6488 KB Output is correct
146 Correct 12 ms 6356 KB Output is correct
147 Correct 21 ms 6528 KB Output is correct
148 Correct 13 ms 8816 KB Output is correct
149 Correct 11 ms 7124 KB Output is correct
150 Correct 4 ms 5972 KB Output is correct
151 Correct 15 ms 8820 KB Output is correct
152 Correct 4 ms 5716 KB Output is correct
153 Correct 5 ms 5716 KB Output is correct
154 Correct 9 ms 6360 KB Output is correct
155 Correct 6 ms 5892 KB Output is correct
156 Correct 10 ms 6036 KB Output is correct
157 Correct 200 ms 9464 KB Output is correct
158 Correct 56 ms 7528 KB Output is correct
159 Correct 5 ms 5716 KB Output is correct
160 Correct 11 ms 6068 KB Output is correct
161 Correct 629 ms 13276 KB Output is correct
162 Correct 96 ms 9116 KB Output is correct
163 Correct 532 ms 13184 KB Output is correct
164 Correct 533 ms 13264 KB Output is correct
165 Correct 169 ms 12480 KB Output is correct
166 Correct 627 ms 13548 KB Output is correct
167 Correct 729 ms 13800 KB Output is correct
168 Correct 265 ms 12616 KB Output is correct
169 Correct 765 ms 14028 KB Output is correct
170 Correct 180 ms 9804 KB Output is correct
171 Correct 1284 ms 14576 KB Output is correct
172 Correct 534 ms 13256 KB Output is correct
173 Correct 293 ms 12684 KB Output is correct
174 Correct 88 ms 9216 KB Output is correct
175 Correct 149 ms 9548 KB Output is correct
176 Correct 55 ms 7424 KB Output is correct
177 Correct 583 ms 13288 KB Output is correct
178 Correct 51 ms 7436 KB Output is correct
179 Correct 670 ms 13564 KB Output is correct
180 Correct 787 ms 13812 KB Output is correct
181 Correct 890 ms 13860 KB Output is correct
182 Correct 921 ms 13880 KB Output is correct
183 Correct 23 ms 8788 KB Output is correct
184 Correct 207 ms 12664 KB Output is correct
185 Correct 523 ms 13344 KB Output is correct
186 Correct 995 ms 14640 KB Output is correct
187 Correct 71 ms 7632 KB Output is correct
188 Correct 917 ms 13860 KB Output is correct
189 Correct 3 ms 5716 KB Output is correct
190 Correct 3 ms 5716 KB Output is correct
191 Correct 3 ms 5716 KB Output is correct
192 Correct 5 ms 5844 KB Output is correct
193 Correct 3 ms 5724 KB Output is correct
194 Correct 4 ms 5724 KB Output is correct
195 Correct 4 ms 5716 KB Output is correct
196 Correct 3 ms 5716 KB Output is correct
197 Correct 3 ms 5716 KB Output is correct
198 Correct 3 ms 5716 KB Output is correct
199 Correct 43 ms 7360 KB Output is correct
200 Correct 3 ms 5716 KB Output is correct
201 Correct 19 ms 6484 KB Output is correct
202 Correct 15 ms 6356 KB Output is correct
203 Correct 3 ms 5716 KB Output is correct
204 Correct 3 ms 5716 KB Output is correct
205 Correct 4 ms 5712 KB Output is correct
206 Correct 4 ms 5716 KB Output is correct
207 Correct 3 ms 5716 KB Output is correct
208 Correct 537 ms 13188 KB Output is correct
209 Correct 1235 ms 14696 KB Output is correct
210 Correct 4 ms 5716 KB Output is correct
211 Correct 6 ms 5844 KB Output is correct
212 Correct 177 ms 9568 KB Output is correct
213 Correct 3 ms 5716 KB Output is correct
214 Correct 11 ms 6096 KB Output is correct
215 Correct 3 ms 5716 KB Output is correct
216 Correct 501 ms 13372 KB Output is correct
217 Correct 570 ms 13260 KB Output is correct
218 Correct 3 ms 5724 KB Output is correct
219 Correct 4 ms 5720 KB Output is correct
220 Correct 3 ms 5716 KB Output is correct
221 Correct 4 ms 5716 KB Output is correct
222 Correct 3 ms 5716 KB Output is correct
223 Correct 4 ms 5716 KB Output is correct
224 Correct 196 ms 12616 KB Output is correct
225 Correct 3 ms 5716 KB Output is correct
226 Correct 5 ms 5716 KB Output is correct
227 Correct 3 ms 5716 KB Output is correct
228 Correct 667 ms 13528 KB Output is correct
229 Correct 270 ms 12620 KB Output is correct
230 Correct 1297 ms 14664 KB Output is correct
231 Correct 1294 ms 14784 KB Output is correct
232 Correct 3 ms 5716 KB Output is correct
233 Correct 4 ms 5724 KB Output is correct
234 Correct 618 ms 13248 KB Output is correct
235 Correct 3 ms 5716 KB Output is correct
236 Correct 173 ms 9508 KB Output is correct
237 Correct 3 ms 5716 KB Output is correct
238 Correct 4 ms 5832 KB Output is correct
239 Correct 62 ms 7368 KB Output is correct
240 Correct 658 ms 13520 KB Output is correct
241 Correct 4 ms 5716 KB Output is correct
242 Correct 4 ms 5700 KB Output is correct
243 Correct 3 ms 5716 KB Output is correct
244 Correct 3 ms 5716 KB Output is correct
245 Correct 18 ms 8792 KB Output is correct