# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
991232 |
2024-06-01T15:33:04 Z |
model_code |
Tiles (BOI24_tiles) |
C++17 |
|
228 ms |
30416 KB |
/* TASK: Tiles (tiles)
* Task proposal by: Mikkel Abrahamsen (DNK)
* Task prepared by: Mikkel Abrahamsen (DNK), Dovydas Vadišius (LTU SC), Daumilas Ardickas (LTU SC)
*/
#include <bits/stdc++.h>
using namespace std;
int max_line(int N, int M, std::vector<int> X, std::vector<int> Y)
{
X.push_back(X[0]);
X.push_back(X[1]);
Y.push_back(Y[0]);
Y.push_back(Y[1]);
map<int, set<int>> points; //sets of y coordinates sorted by x coordinates
for (int i = 1; i <= N; i++)
{
//only interesting points are when direction changes
if ((X[i - 1] != X[i] && X[i] == X[i + 1]) || (X[i - 1] == X[i] && X[i] != X[i + 1]))
{
points[X[i]].insert(Y[i]);
}
}
int best = 0; //z
int even_count = 0;
int odd_count = 0;
map<int, int> current; //intervals y coordinates mapped to interval type above it: -1 - empty, 0 - even, 1 - odd interval
for (auto &line : points) //sweep from left to right
{
int x = line.first;
if (even_count == 0)
{
best = max(best, (x - 1) | 1);
}
if (odd_count == 0)
{
best = max(best, x & ~1);
}
int shift = -1; //start of previous interval if it has odd size
auto l = line.second.begin();
while (l != line.second.end()) //check each vertical edge from bottom to top
{
int y1 = *l++;
int y2 = *l++;
auto it = current.upper_bound(y1);
if (it != current.end() && it->first < y2) //edge is contained in more than one interval
return best;
if (it == current.begin() || prev(it)->second == -1) //interior of P is to the right of the edge
{
if (shift >= 0)
{
if (prev(prev(it))->first != shift) //not continuing odd length interval
return best;
}
if (it == current.begin() || prev(it)->first != y1 || prev(prev(it))->second != x % 2) //start new interval
{
current[y1] = x % 2;
(x % 2 ? odd_count : even_count)++;
}
else //merge with previous interval
{
current.erase(prev(it));
}
if ((y1 % 2 == y2 % 2) ^ (shift >= 0)) //if together with previous interval have even size
{
if (it == current.end() || it->first > y2) //close interval
{
current[y2] = -1;
}
else if (it->second == x % 2) //merge with next interval
{
current.erase(it);
(x % 2 ? odd_count : even_count)--;
}
shift = -1;
}
else
{
if (it == current.end() || it->first != y2 || it->second != x % 2) //have odd length interval
return best;
//merge with next interval
current.erase(it);
(x % 2 ? odd_count : even_count)--;
shift = y1;
}
}
else //interior of P is to the left of the edge
{
if (shift >= 0)
{
if (prev(it)->first != shift || y1 % 2 != shift % 2) //have odd length interval
return best;
}
else if (prev(it)->second != x % 2 || prev(it)->first % 2 != y1 % 2) //have odd length interval
{
return best;
}
if (prev(it)->first == y1) //edge's bottom coincides with an interval's end
{
if (prev(it) != current.begin() && prev(prev(it))->second != -1) //previous interval is empty
{
current[y1] = -1;
}
else
{
current.erase(prev(it));
}
(x % 2 ? odd_count : even_count)--;
}
else
{
current[y1] = -1;
}
if (it->first % 2 == y2 % 2) //next interval has even length
{
if (it->first != y2) //edge's top is not on interval's end
{
current[y2] = x % 2;
(x % 2 ? odd_count : even_count)++;
}
else if (it->second == -1) //next interval is empty
{
current.erase(it);
}
shift = -1;
}
else
{
current[y2] = x % 2;
(x % 2 ? odd_count : even_count)++;
shift = y2;
}
}
}
if (shift >= 0)
return best;
}
return best;
}
int main() {
int N, M, x, y, k;
vector<int> X, Y;
cin >> N >> M;
for (int i = 0; i < N; i++) {
cin >> x >> y;
X.push_back(x);
Y.push_back(y);
}
k = max_line(N, M, X, Y);
cout << k << endl;
}
# |
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 |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 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 |
1 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 |
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 |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 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 |
1 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 |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
1 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 |
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 |
25 ms |
4160 KB |
Output is correct |
3 |
Correct |
140 ms |
21476 KB |
Output is correct |
4 |
Correct |
70 ms |
11192 KB |
Output is correct |
5 |
Correct |
83 ms |
11184 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
143 ms |
22156 KB |
Output is correct |
9 |
Correct |
112 ms |
12864 KB |
Output is correct |
10 |
Correct |
141 ms |
22172 KB |
Output is correct |
11 |
Correct |
65 ms |
10240 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
142 ms |
22180 KB |
Output is correct |
14 |
Correct |
0 ms |
344 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 |
# |
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 |
73 ms |
12896 KB |
Output is correct |
6 |
Correct |
86 ms |
13032 KB |
Output is correct |
7 |
Correct |
1 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 |
3 ms |
600 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 |
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 |
83 ms |
12972 KB |
Output is correct |
18 |
Correct |
84 ms |
12920 KB |
Output is correct |
19 |
Correct |
2 ms |
600 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
344 KB |
Output is correct |
24 |
Correct |
1 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 |
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 |
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 |
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 |
344 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
0 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 |
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 |
348 KB |
Output is correct |
49 |
Correct |
76 ms |
12924 KB |
Output is correct |
50 |
Correct |
94 ms |
12972 KB |
Output is correct |
51 |
Correct |
128 ms |
12956 KB |
Output is correct |
52 |
Correct |
146 ms |
12808 KB |
Output is correct |
53 |
Correct |
0 ms |
344 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
4 ms |
604 KB |
Output is correct |
56 |
Correct |
4 ms |
604 KB |
Output is correct |
57 |
Correct |
1 ms |
604 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 |
1 ms |
344 KB |
Output is correct |
62 |
Correct |
1 ms |
344 KB |
Output is correct |
63 |
Correct |
5 ms |
604 KB |
Output is correct |
64 |
Correct |
3 ms |
604 KB |
Output is correct |
65 |
Correct |
1 ms |
348 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
0 ms |
344 KB |
Output is correct |
68 |
Correct |
1 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 |
604 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Correct |
84 ms |
11348 KB |
Output is correct |
3 |
Correct |
80 ms |
11196 KB |
Output is correct |
4 |
Correct |
72 ms |
12932 KB |
Output is correct |
5 |
Correct |
94 ms |
12960 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
165 ms |
12864 KB |
Output is correct |
9 |
Correct |
121 ms |
12728 KB |
Output is correct |
10 |
Correct |
144 ms |
12956 KB |
Output is correct |
11 |
Correct |
151 ms |
12972 KB |
Output is correct |
12 |
Correct |
141 ms |
22940 KB |
Output is correct |
13 |
Correct |
152 ms |
23192 KB |
Output is correct |
14 |
Correct |
203 ms |
22168 KB |
Output is correct |
15 |
Correct |
126 ms |
16736 KB |
Output is correct |
16 |
Correct |
125 ms |
20028 KB |
Output is correct |
17 |
Correct |
144 ms |
14492 KB |
Output is correct |
18 |
Correct |
188 ms |
25248 KB |
Output is correct |
19 |
Correct |
147 ms |
16800 KB |
Output is correct |
20 |
Correct |
166 ms |
15516 KB |
Output is correct |
21 |
Correct |
137 ms |
14424 KB |
Output is correct |
22 |
Correct |
145 ms |
16232 KB |
Output is correct |
23 |
Correct |
163 ms |
27556 KB |
Output is correct |
24 |
Correct |
148 ms |
30364 KB |
Output is correct |
25 |
Correct |
147 ms |
29892 KB |
Output is correct |
26 |
Correct |
183 ms |
29280 KB |
Output is correct |
27 |
Correct |
131 ms |
29324 KB |
Output is correct |
28 |
Correct |
160 ms |
30112 KB |
Output is correct |
29 |
Correct |
125 ms |
15128 KB |
Output is correct |
30 |
Correct |
134 ms |
16856 KB |
Output is correct |
31 |
Correct |
113 ms |
15772 KB |
Output is correct |
32 |
Correct |
143 ms |
16024 KB |
Output is correct |
33 |
Correct |
133 ms |
26096 KB |
Output is correct |
34 |
Correct |
60 ms |
11772 KB |
Output is correct |
35 |
Correct |
0 ms |
348 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 |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
0 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 |
1 ms |
344 KB |
Output is correct |
45 |
Correct |
0 ms |
344 KB |
Output is correct |
46 |
Correct |
0 ms |
344 KB |
Output is correct |
47 |
Correct |
1 ms |
348 KB |
Output is correct |
48 |
Correct |
1 ms |
348 KB |
Output is correct |
49 |
Correct |
212 ms |
26748 KB |
Output is correct |
50 |
Correct |
1 ms |
348 KB |
Output is correct |
51 |
Correct |
0 ms |
344 KB |
Output is correct |
52 |
Correct |
97 ms |
19040 KB |
Output is correct |
53 |
Correct |
75 ms |
13732 KB |
Output is correct |
54 |
Correct |
115 ms |
14488 KB |
Output is correct |
55 |
Correct |
94 ms |
14420 KB |
Output is correct |
56 |
Correct |
105 ms |
14236 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
0 ms |
440 KB |
Output is correct |
59 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
157 ms |
25096 KB |
Output is correct |
2 |
Correct |
83 ms |
13316 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
160 ms |
26000 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
141 ms |
17052 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
178 ms |
27540 KB |
Output is correct |
9 |
Correct |
159 ms |
16820 KB |
Output is correct |
10 |
Correct |
142 ms |
21352 KB |
Output is correct |
11 |
Correct |
153 ms |
26096 KB |
Output is correct |
12 |
Correct |
141 ms |
25996 KB |
Output is correct |
13 |
Correct |
148 ms |
16552 KB |
Output is correct |
14 |
Correct |
148 ms |
16800 KB |
Output is correct |
15 |
Correct |
175 ms |
16604 KB |
Output is correct |
16 |
Correct |
152 ms |
30316 KB |
Output is correct |
17 |
Correct |
158 ms |
30332 KB |
Output is correct |
18 |
Correct |
154 ms |
30416 KB |
Output is correct |
19 |
Correct |
73 ms |
10848 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
150 ms |
26032 KB |
Output is correct |
22 |
Correct |
81 ms |
15060 KB |
Output is correct |
23 |
Correct |
0 ms |
440 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
1 ms |
348 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 |
348 KB |
Output is correct |
30 |
Correct |
0 ms |
432 KB |
Output is correct |
31 |
Correct |
0 ms |
604 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 |
436 KB |
Output is correct |
35 |
Correct |
0 ms |
348 KB |
Output is correct |
36 |
Correct |
71 ms |
10876 KB |
Output is correct |
37 |
Correct |
90 ms |
14528 KB |
Output is correct |
38 |
Correct |
82 ms |
14468 KB |
Output is correct |
39 |
Correct |
83 ms |
14492 KB |
Output is correct |
40 |
Correct |
82 ms |
14500 KB |
Output is correct |
41 |
Correct |
0 ms |
352 KB |
Output is correct |
42 |
Correct |
0 ms |
348 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
1 ms |
352 KB |
Output is correct |
45 |
Correct |
0 ms |
352 KB |
Output is correct |
46 |
Correct |
1 ms |
608 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 |
0 ms |
348 KB |
Output is correct |
5 |
Correct |
0 ms |
348 KB |
Output is correct |
6 |
Correct |
1 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 |
1 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 |
348 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
1 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 |
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 |
25 ms |
4160 KB |
Output is correct |
34 |
Correct |
140 ms |
21476 KB |
Output is correct |
35 |
Correct |
70 ms |
11192 KB |
Output is correct |
36 |
Correct |
83 ms |
11184 KB |
Output is correct |
37 |
Correct |
1 ms |
348 KB |
Output is correct |
38 |
Correct |
1 ms |
348 KB |
Output is correct |
39 |
Correct |
143 ms |
22156 KB |
Output is correct |
40 |
Correct |
112 ms |
12864 KB |
Output is correct |
41 |
Correct |
141 ms |
22172 KB |
Output is correct |
42 |
Correct |
65 ms |
10240 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
142 ms |
22180 KB |
Output is correct |
45 |
Correct |
0 ms |
344 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 |
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 |
73 ms |
12896 KB |
Output is correct |
54 |
Correct |
86 ms |
13032 KB |
Output is correct |
55 |
Correct |
1 ms |
348 KB |
Output is correct |
56 |
Correct |
0 ms |
348 KB |
Output is correct |
57 |
Correct |
0 ms |
348 KB |
Output is correct |
58 |
Correct |
3 ms |
600 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 |
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 |
83 ms |
12972 KB |
Output is correct |
66 |
Correct |
84 ms |
12920 KB |
Output is correct |
67 |
Correct |
2 ms |
600 KB |
Output is correct |
68 |
Correct |
1 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 |
344 KB |
Output is correct |
72 |
Correct |
1 ms |
348 KB |
Output is correct |
73 |
Correct |
0 ms |
348 KB |
Output is correct |
74 |
Correct |
0 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 |
348 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 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 |
0 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 |
344 KB |
Output is correct |
88 |
Correct |
0 ms |
348 KB |
Output is correct |
89 |
Correct |
0 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 |
0 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 |
348 KB |
Output is correct |
97 |
Correct |
76 ms |
12924 KB |
Output is correct |
98 |
Correct |
94 ms |
12972 KB |
Output is correct |
99 |
Correct |
128 ms |
12956 KB |
Output is correct |
100 |
Correct |
146 ms |
12808 KB |
Output is correct |
101 |
Correct |
0 ms |
344 KB |
Output is correct |
102 |
Correct |
0 ms |
348 KB |
Output is correct |
103 |
Correct |
4 ms |
604 KB |
Output is correct |
104 |
Correct |
4 ms |
604 KB |
Output is correct |
105 |
Correct |
1 ms |
604 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 |
1 ms |
344 KB |
Output is correct |
110 |
Correct |
1 ms |
344 KB |
Output is correct |
111 |
Correct |
5 ms |
604 KB |
Output is correct |
112 |
Correct |
3 ms |
604 KB |
Output is correct |
113 |
Correct |
1 ms |
348 KB |
Output is correct |
114 |
Correct |
1 ms |
348 KB |
Output is correct |
115 |
Correct |
0 ms |
344 KB |
Output is correct |
116 |
Correct |
1 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 |
604 KB |
Output is correct |
120 |
Correct |
1 ms |
348 KB |
Output is correct |
121 |
Correct |
1 ms |
364 KB |
Output is correct |
122 |
Correct |
84 ms |
11348 KB |
Output is correct |
123 |
Correct |
80 ms |
11196 KB |
Output is correct |
124 |
Correct |
72 ms |
12932 KB |
Output is correct |
125 |
Correct |
94 ms |
12960 KB |
Output is correct |
126 |
Correct |
1 ms |
348 KB |
Output is correct |
127 |
Correct |
0 ms |
348 KB |
Output is correct |
128 |
Correct |
165 ms |
12864 KB |
Output is correct |
129 |
Correct |
121 ms |
12728 KB |
Output is correct |
130 |
Correct |
144 ms |
12956 KB |
Output is correct |
131 |
Correct |
151 ms |
12972 KB |
Output is correct |
132 |
Correct |
141 ms |
22940 KB |
Output is correct |
133 |
Correct |
152 ms |
23192 KB |
Output is correct |
134 |
Correct |
203 ms |
22168 KB |
Output is correct |
135 |
Correct |
126 ms |
16736 KB |
Output is correct |
136 |
Correct |
125 ms |
20028 KB |
Output is correct |
137 |
Correct |
144 ms |
14492 KB |
Output is correct |
138 |
Correct |
188 ms |
25248 KB |
Output is correct |
139 |
Correct |
147 ms |
16800 KB |
Output is correct |
140 |
Correct |
166 ms |
15516 KB |
Output is correct |
141 |
Correct |
137 ms |
14424 KB |
Output is correct |
142 |
Correct |
145 ms |
16232 KB |
Output is correct |
143 |
Correct |
163 ms |
27556 KB |
Output is correct |
144 |
Correct |
148 ms |
30364 KB |
Output is correct |
145 |
Correct |
147 ms |
29892 KB |
Output is correct |
146 |
Correct |
183 ms |
29280 KB |
Output is correct |
147 |
Correct |
131 ms |
29324 KB |
Output is correct |
148 |
Correct |
160 ms |
30112 KB |
Output is correct |
149 |
Correct |
125 ms |
15128 KB |
Output is correct |
150 |
Correct |
134 ms |
16856 KB |
Output is correct |
151 |
Correct |
113 ms |
15772 KB |
Output is correct |
152 |
Correct |
143 ms |
16024 KB |
Output is correct |
153 |
Correct |
133 ms |
26096 KB |
Output is correct |
154 |
Correct |
60 ms |
11772 KB |
Output is correct |
155 |
Correct |
0 ms |
348 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 |
1 ms |
348 KB |
Output is correct |
160 |
Correct |
0 ms |
348 KB |
Output is correct |
161 |
Correct |
0 ms |
348 KB |
Output is correct |
162 |
Correct |
0 ms |
348 KB |
Output is correct |
163 |
Correct |
0 ms |
348 KB |
Output is correct |
164 |
Correct |
1 ms |
344 KB |
Output is correct |
165 |
Correct |
0 ms |
344 KB |
Output is correct |
166 |
Correct |
0 ms |
344 KB |
Output is correct |
167 |
Correct |
1 ms |
348 KB |
Output is correct |
168 |
Correct |
1 ms |
348 KB |
Output is correct |
169 |
Correct |
212 ms |
26748 KB |
Output is correct |
170 |
Correct |
1 ms |
348 KB |
Output is correct |
171 |
Correct |
0 ms |
344 KB |
Output is correct |
172 |
Correct |
97 ms |
19040 KB |
Output is correct |
173 |
Correct |
75 ms |
13732 KB |
Output is correct |
174 |
Correct |
115 ms |
14488 KB |
Output is correct |
175 |
Correct |
94 ms |
14420 KB |
Output is correct |
176 |
Correct |
105 ms |
14236 KB |
Output is correct |
177 |
Correct |
0 ms |
348 KB |
Output is correct |
178 |
Correct |
0 ms |
440 KB |
Output is correct |
179 |
Correct |
0 ms |
348 KB |
Output is correct |
180 |
Correct |
157 ms |
25096 KB |
Output is correct |
181 |
Correct |
83 ms |
13316 KB |
Output is correct |
182 |
Correct |
1 ms |
348 KB |
Output is correct |
183 |
Correct |
160 ms |
26000 KB |
Output is correct |
184 |
Correct |
1 ms |
348 KB |
Output is correct |
185 |
Correct |
141 ms |
17052 KB |
Output is correct |
186 |
Correct |
1 ms |
348 KB |
Output is correct |
187 |
Correct |
178 ms |
27540 KB |
Output is correct |
188 |
Correct |
159 ms |
16820 KB |
Output is correct |
189 |
Correct |
142 ms |
21352 KB |
Output is correct |
190 |
Correct |
153 ms |
26096 KB |
Output is correct |
191 |
Correct |
141 ms |
25996 KB |
Output is correct |
192 |
Correct |
148 ms |
16552 KB |
Output is correct |
193 |
Correct |
148 ms |
16800 KB |
Output is correct |
194 |
Correct |
175 ms |
16604 KB |
Output is correct |
195 |
Correct |
152 ms |
30316 KB |
Output is correct |
196 |
Correct |
158 ms |
30332 KB |
Output is correct |
197 |
Correct |
154 ms |
30416 KB |
Output is correct |
198 |
Correct |
73 ms |
10848 KB |
Output is correct |
199 |
Correct |
1 ms |
348 KB |
Output is correct |
200 |
Correct |
150 ms |
26032 KB |
Output is correct |
201 |
Correct |
81 ms |
15060 KB |
Output is correct |
202 |
Correct |
0 ms |
440 KB |
Output is correct |
203 |
Correct |
0 ms |
348 KB |
Output is correct |
204 |
Correct |
1 ms |
348 KB |
Output is correct |
205 |
Correct |
1 ms |
348 KB |
Output is correct |
206 |
Correct |
0 ms |
348 KB |
Output is correct |
207 |
Correct |
0 ms |
348 KB |
Output is correct |
208 |
Correct |
0 ms |
348 KB |
Output is correct |
209 |
Correct |
0 ms |
432 KB |
Output is correct |
210 |
Correct |
0 ms |
604 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 |
436 KB |
Output is correct |
214 |
Correct |
0 ms |
348 KB |
Output is correct |
215 |
Correct |
71 ms |
10876 KB |
Output is correct |
216 |
Correct |
90 ms |
14528 KB |
Output is correct |
217 |
Correct |
82 ms |
14468 KB |
Output is correct |
218 |
Correct |
83 ms |
14492 KB |
Output is correct |
219 |
Correct |
82 ms |
14500 KB |
Output is correct |
220 |
Correct |
0 ms |
352 KB |
Output is correct |
221 |
Correct |
0 ms |
348 KB |
Output is correct |
222 |
Correct |
0 ms |
348 KB |
Output is correct |
223 |
Correct |
1 ms |
352 KB |
Output is correct |
224 |
Correct |
0 ms |
352 KB |
Output is correct |
225 |
Correct |
1 ms |
608 KB |
Output is correct |
226 |
Correct |
155 ms |
16688 KB |
Output is correct |
227 |
Correct |
131 ms |
26008 KB |
Output is correct |
228 |
Correct |
156 ms |
21400 KB |
Output is correct |
229 |
Correct |
121 ms |
16796 KB |
Output is correct |
230 |
Correct |
202 ms |
27860 KB |
Output is correct |
231 |
Correct |
148 ms |
25756 KB |
Output is correct |
232 |
Correct |
168 ms |
16312 KB |
Output is correct |
233 |
Correct |
86 ms |
10892 KB |
Output is correct |
234 |
Correct |
151 ms |
26084 KB |
Output is correct |
235 |
Correct |
146 ms |
26012 KB |
Output is correct |
236 |
Correct |
215 ms |
27864 KB |
Output is correct |
237 |
Correct |
173 ms |
25868 KB |
Output is correct |
238 |
Correct |
100 ms |
19720 KB |
Output is correct |
239 |
Correct |
228 ms |
27800 KB |
Output is correct |
240 |
Correct |
141 ms |
21372 KB |
Output is correct |
241 |
Correct |
147 ms |
26204 KB |
Output is correct |
242 |
Correct |
94 ms |
10768 KB |
Output is correct |