/**
____ ____ ____ ____ ____
||a |||t |||o |||d |||o ||
||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|
**/
#include <bits/stdc++.h>
#pragma GCC optimize("unroll-loops")
using namespace std;
typedef long long ll;
const int BITS = 56;
const ll INF = LLONG_MAX / 2;
int M;
ll L;
int* A[BITS];
int mx[BITS], mn[BITS];
int S, Sl, Sr;
ll* maxTake[BITS];
ll* maxTakeBit;
void init () {
for (int bit = 0; bit < BITS; bit++) {
A[bit] = new int[M * 2 + 1] + M;
maxTake[bit] = new ll[S * 2 + 1] + S;
fill(A[bit] - M, A[bit] + M + 1, 0);
fill(maxTake[bit] - S, maxTake[bit] + S + 1, -INF);
}
maxTakeBit = new ll[S * 2 + 1] + S;
}
void solveBit (int bit) {
fill(maxTakeBit - Sl, maxTakeBit + Sr + 1, -INF);
maxTakeBit[0] = 0;
for (int l = -M; l <= M; l++) {
if (l < 0) {
for (int i = 1; i <= A[bit][l]; i++) {
for (int s = mn[bit] - l; s <= mx[bit]; s++) {
if (maxTakeBit[s] != -INF) {
maxTakeBit[s + l] = max(maxTakeBit[s + l], maxTakeBit[s] + 1);
}
}
}
} else {
for (int i = 1; i <= A[bit][l]; i++) {
for (int s = mx[bit] - l; s >= mn[bit]; s--) {
if (maxTakeBit[s] != -INF) {
maxTakeBit[s + l] = max(maxTakeBit[s + l], maxTakeBit[s] + 1);
}
}
}
}
}
}
void update (ll &x, const ll &y) {
if (y > x) {
x = y;
}
}
mt19937_64 rnd(0);
int main () {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cin >> M >> L;
S = M * (M + 1);
init();
ll sumNeg = 0, sumPos = 0;
for (int l = -M; l <= +M; l++) {
ll cnt; cin >> cnt;
if (l > 0) {
sumPos += cnt * l;
} else {
sumNeg += cnt * l;
}
int bit = 0;
while (((ll) 1 << bit) <= cnt) {
cnt -= ((ll) 1 << bit);
A[bit][l]++;
bit++;
}
for (int bit = 0; bit < BITS; bit++) {
if ((cnt >> bit) & 1) {
A[bit][l]++;
}
}
}
if (L < sumNeg || sumPos < L) {
cout << "impossible\n";
return 0;
}
if (L < 0) {
L = -L;
for (int bit = 0; bit < BITS; bit++) {
reverse(A[bit] - M, A[bit] + M + 1);
}
}
Sl = Sr = 1;
for (int bit = 0; bit < BITS; bit++) {
for (int l = +1; l <= +M; l++) {
mx[bit] += A[bit][l] * l;
}
for (int l = -1; l >= -M; l--) {
mn[bit] += A[bit][l] * l;
}
Sr = max(Sr, mx[bit]);
Sl = max(Sl, -mn[bit]);
}
solveBit(0);
for (int here = -Sl; here <= +Sr; here++) {
int sum = here - (L & 1);
if ((sum & 1) == 0) {
update(maxTake[0][sum >> 1], maxTakeBit[here]);
}
}
for (int bit = 1; bit < BITS; bit++) {
solveBit(bit);
vector <int> carries;
for (int carry = -Sl; carry <= +Sr; carry++) {
if (maxTake[bit - 1][carry] != -INF) {
carries.push_back(carry);
}
}
for (int here = mn[bit]; here <= mx[bit]; here++) {
if (maxTakeBit[here] != -INF) {
for (int carry : carries) {
int sum = carry + here - ((L >> bit) & 1);
if ((sum & 1) == 0) {
update(maxTake[bit][sum >> 1], maxTake[bit - 1][carry] + (maxTakeBit[here] << bit));
}
}
}
}
}
ll answer = maxTake[BITS - 1][0];
if (answer != -INF) {
cout << answer << "\n";
} else {
cout << "impossible\n";
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
2516 KB |
Output is correct |
6 |
Correct |
39 ms |
2632 KB |
Output is correct |
7 |
Correct |
10 ms |
2516 KB |
Output is correct |
8 |
Correct |
36 ms |
2632 KB |
Output is correct |
9 |
Correct |
60 ms |
2644 KB |
Output is correct |
10 |
Correct |
1 ms |
2516 KB |
Output is correct |
11 |
Correct |
2 ms |
2516 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
2516 KB |
Output is correct |
6 |
Correct |
39 ms |
2632 KB |
Output is correct |
7 |
Correct |
10 ms |
2516 KB |
Output is correct |
8 |
Correct |
36 ms |
2632 KB |
Output is correct |
9 |
Correct |
60 ms |
2644 KB |
Output is correct |
10 |
Correct |
1 ms |
2516 KB |
Output is correct |
11 |
Correct |
2 ms |
2516 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
2516 KB |
Output is correct |
17 |
Correct |
41 ms |
2632 KB |
Output is correct |
18 |
Correct |
10 ms |
2516 KB |
Output is correct |
19 |
Correct |
39 ms |
2648 KB |
Output is correct |
20 |
Correct |
69 ms |
2644 KB |
Output is correct |
21 |
Correct |
2 ms |
2516 KB |
Output is correct |
22 |
Correct |
1 ms |
2516 KB |
Output is correct |
23 |
Correct |
4 ms |
9300 KB |
Output is correct |
24 |
Correct |
781 ms |
9692 KB |
Output is correct |
25 |
Correct |
165 ms |
9452 KB |
Output is correct |
26 |
Correct |
893 ms |
9612 KB |
Output is correct |
27 |
Correct |
880 ms |
9612 KB |
Output is correct |
28 |
Correct |
4 ms |
9300 KB |
Output is correct |
29 |
Correct |
4 ms |
9300 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
5 ms |
1172 KB |
Output is correct |
3 |
Correct |
1 ms |
1108 KB |
Output is correct |
4 |
Correct |
4 ms |
1172 KB |
Output is correct |
5 |
Correct |
6 ms |
1108 KB |
Output is correct |
6 |
Correct |
2 ms |
1108 KB |
Output is correct |
7 |
Correct |
1 ms |
1108 KB |
Output is correct |
8 |
Correct |
1 ms |
1108 KB |
Output is correct |
9 |
Correct |
1 ms |
1108 KB |
Output is correct |
10 |
Correct |
2 ms |
1108 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
5 ms |
1172 KB |
Output is correct |
3 |
Correct |
1 ms |
1108 KB |
Output is correct |
4 |
Correct |
4 ms |
1172 KB |
Output is correct |
5 |
Correct |
6 ms |
1108 KB |
Output is correct |
6 |
Correct |
2 ms |
1108 KB |
Output is correct |
7 |
Correct |
1 ms |
1108 KB |
Output is correct |
8 |
Correct |
1 ms |
1108 KB |
Output is correct |
9 |
Correct |
1 ms |
1108 KB |
Output is correct |
10 |
Correct |
2 ms |
1108 KB |
Output is correct |
11 |
Correct |
0 ms |
212 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
1 ms |
340 KB |
Output is correct |
15 |
Correct |
4 ms |
1108 KB |
Output is correct |
16 |
Correct |
1 ms |
1108 KB |
Output is correct |
17 |
Correct |
4 ms |
1108 KB |
Output is correct |
18 |
Correct |
6 ms |
1108 KB |
Output is correct |
19 |
Correct |
2 ms |
1108 KB |
Output is correct |
20 |
Correct |
1 ms |
1108 KB |
Output is correct |
21 |
Correct |
1 ms |
1108 KB |
Output is correct |
22 |
Correct |
1 ms |
1108 KB |
Output is correct |
23 |
Correct |
2 ms |
1108 KB |
Output is correct |
24 |
Correct |
29 ms |
1176 KB |
Output is correct |
25 |
Correct |
4 ms |
1108 KB |
Output is correct |
26 |
Correct |
25 ms |
1108 KB |
Output is correct |
27 |
Correct |
12 ms |
1176 KB |
Output is correct |
28 |
Correct |
22 ms |
1180 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
5 ms |
1172 KB |
Output is correct |
3 |
Correct |
1 ms |
1108 KB |
Output is correct |
4 |
Correct |
4 ms |
1172 KB |
Output is correct |
5 |
Correct |
6 ms |
1108 KB |
Output is correct |
6 |
Correct |
2 ms |
1108 KB |
Output is correct |
7 |
Correct |
1 ms |
1108 KB |
Output is correct |
8 |
Correct |
1 ms |
1108 KB |
Output is correct |
9 |
Correct |
1 ms |
1108 KB |
Output is correct |
10 |
Correct |
2 ms |
1108 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
5 ms |
1108 KB |
Output is correct |
13 |
Correct |
1 ms |
1108 KB |
Output is correct |
14 |
Correct |
4 ms |
1168 KB |
Output is correct |
15 |
Correct |
6 ms |
1108 KB |
Output is correct |
16 |
Correct |
2 ms |
1108 KB |
Output is correct |
17 |
Correct |
1 ms |
1108 KB |
Output is correct |
18 |
Correct |
1 ms |
1108 KB |
Output is correct |
19 |
Correct |
1 ms |
1108 KB |
Output is correct |
20 |
Correct |
2 ms |
1108 KB |
Output is correct |
21 |
Correct |
2 ms |
2516 KB |
Output is correct |
22 |
Correct |
1 ms |
2516 KB |
Output is correct |
23 |
Correct |
24 ms |
2516 KB |
Output is correct |
24 |
Correct |
13 ms |
2516 KB |
Output is correct |
25 |
Correct |
28 ms |
2516 KB |
Output is correct |
26 |
Correct |
43 ms |
2516 KB |
Output is correct |
27 |
Correct |
25 ms |
2516 KB |
Output is correct |
28 |
Correct |
19 ms |
2516 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
2516 KB |
Output is correct |
6 |
Correct |
39 ms |
2632 KB |
Output is correct |
7 |
Correct |
10 ms |
2516 KB |
Output is correct |
8 |
Correct |
36 ms |
2632 KB |
Output is correct |
9 |
Correct |
60 ms |
2644 KB |
Output is correct |
10 |
Correct |
1 ms |
2516 KB |
Output is correct |
11 |
Correct |
2 ms |
2516 KB |
Output is correct |
12 |
Correct |
0 ms |
340 KB |
Output is correct |
13 |
Correct |
5 ms |
1172 KB |
Output is correct |
14 |
Correct |
1 ms |
1108 KB |
Output is correct |
15 |
Correct |
4 ms |
1172 KB |
Output is correct |
16 |
Correct |
6 ms |
1108 KB |
Output is correct |
17 |
Correct |
2 ms |
1108 KB |
Output is correct |
18 |
Correct |
1 ms |
1108 KB |
Output is correct |
19 |
Correct |
1 ms |
1108 KB |
Output is correct |
20 |
Correct |
1 ms |
1108 KB |
Output is correct |
21 |
Correct |
2 ms |
1108 KB |
Output is correct |
22 |
Correct |
0 ms |
212 KB |
Output is correct |
23 |
Correct |
0 ms |
340 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
1 ms |
340 KB |
Output is correct |
26 |
Correct |
4 ms |
1108 KB |
Output is correct |
27 |
Correct |
1 ms |
1108 KB |
Output is correct |
28 |
Correct |
4 ms |
1108 KB |
Output is correct |
29 |
Correct |
6 ms |
1108 KB |
Output is correct |
30 |
Correct |
2 ms |
1108 KB |
Output is correct |
31 |
Correct |
1 ms |
1108 KB |
Output is correct |
32 |
Correct |
1 ms |
1108 KB |
Output is correct |
33 |
Correct |
1 ms |
1108 KB |
Output is correct |
34 |
Correct |
2 ms |
1108 KB |
Output is correct |
35 |
Correct |
29 ms |
1176 KB |
Output is correct |
36 |
Correct |
4 ms |
1108 KB |
Output is correct |
37 |
Correct |
25 ms |
1108 KB |
Output is correct |
38 |
Correct |
12 ms |
1176 KB |
Output is correct |
39 |
Correct |
22 ms |
1180 KB |
Output is correct |
40 |
Correct |
1 ms |
340 KB |
Output is correct |
41 |
Correct |
5 ms |
1108 KB |
Output is correct |
42 |
Correct |
1 ms |
1108 KB |
Output is correct |
43 |
Correct |
4 ms |
1168 KB |
Output is correct |
44 |
Correct |
6 ms |
1108 KB |
Output is correct |
45 |
Correct |
2 ms |
1108 KB |
Output is correct |
46 |
Correct |
1 ms |
1108 KB |
Output is correct |
47 |
Correct |
1 ms |
1108 KB |
Output is correct |
48 |
Correct |
1 ms |
1108 KB |
Output is correct |
49 |
Correct |
2 ms |
1108 KB |
Output is correct |
50 |
Correct |
2 ms |
2516 KB |
Output is correct |
51 |
Correct |
1 ms |
2516 KB |
Output is correct |
52 |
Correct |
24 ms |
2516 KB |
Output is correct |
53 |
Correct |
13 ms |
2516 KB |
Output is correct |
54 |
Correct |
28 ms |
2516 KB |
Output is correct |
55 |
Correct |
43 ms |
2516 KB |
Output is correct |
56 |
Correct |
25 ms |
2516 KB |
Output is correct |
57 |
Correct |
19 ms |
2516 KB |
Output is correct |
58 |
Correct |
0 ms |
212 KB |
Output is correct |
59 |
Correct |
0 ms |
212 KB |
Output is correct |
60 |
Correct |
0 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
340 KB |
Output is correct |
62 |
Correct |
1 ms |
2516 KB |
Output is correct |
63 |
Correct |
39 ms |
2644 KB |
Output is correct |
64 |
Correct |
10 ms |
2516 KB |
Output is correct |
65 |
Correct |
36 ms |
2516 KB |
Output is correct |
66 |
Correct |
61 ms |
2644 KB |
Output is correct |
67 |
Correct |
1 ms |
2516 KB |
Output is correct |
68 |
Correct |
2 ms |
2516 KB |
Output is correct |
69 |
Correct |
6 ms |
1108 KB |
Output is correct |
70 |
Correct |
1 ms |
1108 KB |
Output is correct |
71 |
Correct |
4 ms |
1108 KB |
Output is correct |
72 |
Correct |
6 ms |
1160 KB |
Output is correct |
73 |
Correct |
2 ms |
1108 KB |
Output is correct |
74 |
Correct |
1 ms |
1108 KB |
Output is correct |
75 |
Correct |
1 ms |
1108 KB |
Output is correct |
76 |
Correct |
1 ms |
1108 KB |
Output is correct |
77 |
Correct |
2 ms |
1108 KB |
Output is correct |
78 |
Correct |
31 ms |
1164 KB |
Output is correct |
79 |
Correct |
3 ms |
1108 KB |
Output is correct |
80 |
Correct |
24 ms |
1160 KB |
Output is correct |
81 |
Correct |
14 ms |
1180 KB |
Output is correct |
82 |
Correct |
22 ms |
1184 KB |
Output is correct |
83 |
Correct |
32 ms |
2516 KB |
Output is correct |
84 |
Correct |
13 ms |
2516 KB |
Output is correct |
85 |
Correct |
28 ms |
2612 KB |
Output is correct |
86 |
Correct |
43 ms |
2516 KB |
Output is correct |
87 |
Correct |
25 ms |
2516 KB |
Output is correct |
88 |
Correct |
18 ms |
2516 KB |
Output is correct |
89 |
Correct |
103 ms |
2628 KB |
Output is correct |
90 |
Correct |
160 ms |
2644 KB |
Output is correct |
91 |
Correct |
110 ms |
2516 KB |
Output is correct |
92 |
Correct |
175 ms |
2516 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
5 ms |
1172 KB |
Output is correct |
3 |
Correct |
1 ms |
1108 KB |
Output is correct |
4 |
Correct |
4 ms |
1172 KB |
Output is correct |
5 |
Correct |
6 ms |
1108 KB |
Output is correct |
6 |
Correct |
2 ms |
1108 KB |
Output is correct |
7 |
Correct |
1 ms |
1108 KB |
Output is correct |
8 |
Correct |
1 ms |
1108 KB |
Output is correct |
9 |
Correct |
1 ms |
1108 KB |
Output is correct |
10 |
Correct |
2 ms |
1108 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
5 ms |
1108 KB |
Output is correct |
13 |
Correct |
1 ms |
1108 KB |
Output is correct |
14 |
Correct |
4 ms |
1168 KB |
Output is correct |
15 |
Correct |
6 ms |
1108 KB |
Output is correct |
16 |
Correct |
2 ms |
1108 KB |
Output is correct |
17 |
Correct |
1 ms |
1108 KB |
Output is correct |
18 |
Correct |
1 ms |
1108 KB |
Output is correct |
19 |
Correct |
1 ms |
1108 KB |
Output is correct |
20 |
Correct |
2 ms |
1108 KB |
Output is correct |
21 |
Correct |
2 ms |
2516 KB |
Output is correct |
22 |
Correct |
1 ms |
2516 KB |
Output is correct |
23 |
Correct |
24 ms |
2516 KB |
Output is correct |
24 |
Correct |
13 ms |
2516 KB |
Output is correct |
25 |
Correct |
28 ms |
2516 KB |
Output is correct |
26 |
Correct |
43 ms |
2516 KB |
Output is correct |
27 |
Correct |
25 ms |
2516 KB |
Output is correct |
28 |
Correct |
19 ms |
2516 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
5 ms |
1172 KB |
Output is correct |
31 |
Correct |
1 ms |
1108 KB |
Output is correct |
32 |
Correct |
4 ms |
1108 KB |
Output is correct |
33 |
Correct |
6 ms |
1056 KB |
Output is correct |
34 |
Correct |
2 ms |
1108 KB |
Output is correct |
35 |
Correct |
1 ms |
1108 KB |
Output is correct |
36 |
Correct |
1 ms |
1108 KB |
Output is correct |
37 |
Correct |
1 ms |
1108 KB |
Output is correct |
38 |
Correct |
2 ms |
1108 KB |
Output is correct |
39 |
Correct |
2 ms |
2516 KB |
Output is correct |
40 |
Correct |
1 ms |
2516 KB |
Output is correct |
41 |
Correct |
25 ms |
2620 KB |
Output is correct |
42 |
Correct |
14 ms |
2608 KB |
Output is correct |
43 |
Correct |
28 ms |
2612 KB |
Output is correct |
44 |
Correct |
47 ms |
2596 KB |
Output is correct |
45 |
Correct |
25 ms |
2516 KB |
Output is correct |
46 |
Correct |
18 ms |
2516 KB |
Output is correct |
47 |
Correct |
4 ms |
9300 KB |
Output is correct |
48 |
Correct |
4 ms |
9300 KB |
Output is correct |
49 |
Correct |
371 ms |
9572 KB |
Output is correct |
50 |
Correct |
92 ms |
9400 KB |
Output is correct |
51 |
Correct |
526 ms |
9464 KB |
Output is correct |
52 |
Correct |
484 ms |
9428 KB |
Output is correct |
53 |
Correct |
434 ms |
9464 KB |
Output is correct |
54 |
Correct |
184 ms |
9552 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
2516 KB |
Output is correct |
6 |
Correct |
39 ms |
2632 KB |
Output is correct |
7 |
Correct |
10 ms |
2516 KB |
Output is correct |
8 |
Correct |
36 ms |
2632 KB |
Output is correct |
9 |
Correct |
60 ms |
2644 KB |
Output is correct |
10 |
Correct |
1 ms |
2516 KB |
Output is correct |
11 |
Correct |
2 ms |
2516 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
2516 KB |
Output is correct |
17 |
Correct |
41 ms |
2632 KB |
Output is correct |
18 |
Correct |
10 ms |
2516 KB |
Output is correct |
19 |
Correct |
39 ms |
2648 KB |
Output is correct |
20 |
Correct |
69 ms |
2644 KB |
Output is correct |
21 |
Correct |
2 ms |
2516 KB |
Output is correct |
22 |
Correct |
1 ms |
2516 KB |
Output is correct |
23 |
Correct |
4 ms |
9300 KB |
Output is correct |
24 |
Correct |
781 ms |
9692 KB |
Output is correct |
25 |
Correct |
165 ms |
9452 KB |
Output is correct |
26 |
Correct |
893 ms |
9612 KB |
Output is correct |
27 |
Correct |
880 ms |
9612 KB |
Output is correct |
28 |
Correct |
4 ms |
9300 KB |
Output is correct |
29 |
Correct |
4 ms |
9300 KB |
Output is correct |
30 |
Correct |
0 ms |
340 KB |
Output is correct |
31 |
Correct |
5 ms |
1172 KB |
Output is correct |
32 |
Correct |
1 ms |
1108 KB |
Output is correct |
33 |
Correct |
4 ms |
1172 KB |
Output is correct |
34 |
Correct |
6 ms |
1108 KB |
Output is correct |
35 |
Correct |
2 ms |
1108 KB |
Output is correct |
36 |
Correct |
1 ms |
1108 KB |
Output is correct |
37 |
Correct |
1 ms |
1108 KB |
Output is correct |
38 |
Correct |
1 ms |
1108 KB |
Output is correct |
39 |
Correct |
2 ms |
1108 KB |
Output is correct |
40 |
Correct |
0 ms |
212 KB |
Output is correct |
41 |
Correct |
0 ms |
340 KB |
Output is correct |
42 |
Correct |
0 ms |
212 KB |
Output is correct |
43 |
Correct |
1 ms |
340 KB |
Output is correct |
44 |
Correct |
4 ms |
1108 KB |
Output is correct |
45 |
Correct |
1 ms |
1108 KB |
Output is correct |
46 |
Correct |
4 ms |
1108 KB |
Output is correct |
47 |
Correct |
6 ms |
1108 KB |
Output is correct |
48 |
Correct |
2 ms |
1108 KB |
Output is correct |
49 |
Correct |
1 ms |
1108 KB |
Output is correct |
50 |
Correct |
1 ms |
1108 KB |
Output is correct |
51 |
Correct |
1 ms |
1108 KB |
Output is correct |
52 |
Correct |
2 ms |
1108 KB |
Output is correct |
53 |
Correct |
29 ms |
1176 KB |
Output is correct |
54 |
Correct |
4 ms |
1108 KB |
Output is correct |
55 |
Correct |
25 ms |
1108 KB |
Output is correct |
56 |
Correct |
12 ms |
1176 KB |
Output is correct |
57 |
Correct |
22 ms |
1180 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
59 |
Correct |
5 ms |
1108 KB |
Output is correct |
60 |
Correct |
1 ms |
1108 KB |
Output is correct |
61 |
Correct |
4 ms |
1168 KB |
Output is correct |
62 |
Correct |
6 ms |
1108 KB |
Output is correct |
63 |
Correct |
2 ms |
1108 KB |
Output is correct |
64 |
Correct |
1 ms |
1108 KB |
Output is correct |
65 |
Correct |
1 ms |
1108 KB |
Output is correct |
66 |
Correct |
1 ms |
1108 KB |
Output is correct |
67 |
Correct |
2 ms |
1108 KB |
Output is correct |
68 |
Correct |
2 ms |
2516 KB |
Output is correct |
69 |
Correct |
1 ms |
2516 KB |
Output is correct |
70 |
Correct |
24 ms |
2516 KB |
Output is correct |
71 |
Correct |
13 ms |
2516 KB |
Output is correct |
72 |
Correct |
28 ms |
2516 KB |
Output is correct |
73 |
Correct |
43 ms |
2516 KB |
Output is correct |
74 |
Correct |
25 ms |
2516 KB |
Output is correct |
75 |
Correct |
19 ms |
2516 KB |
Output is correct |
76 |
Correct |
0 ms |
212 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
0 ms |
212 KB |
Output is correct |
79 |
Correct |
0 ms |
340 KB |
Output is correct |
80 |
Correct |
1 ms |
2516 KB |
Output is correct |
81 |
Correct |
39 ms |
2644 KB |
Output is correct |
82 |
Correct |
10 ms |
2516 KB |
Output is correct |
83 |
Correct |
36 ms |
2516 KB |
Output is correct |
84 |
Correct |
61 ms |
2644 KB |
Output is correct |
85 |
Correct |
1 ms |
2516 KB |
Output is correct |
86 |
Correct |
2 ms |
2516 KB |
Output is correct |
87 |
Correct |
6 ms |
1108 KB |
Output is correct |
88 |
Correct |
1 ms |
1108 KB |
Output is correct |
89 |
Correct |
4 ms |
1108 KB |
Output is correct |
90 |
Correct |
6 ms |
1160 KB |
Output is correct |
91 |
Correct |
2 ms |
1108 KB |
Output is correct |
92 |
Correct |
1 ms |
1108 KB |
Output is correct |
93 |
Correct |
1 ms |
1108 KB |
Output is correct |
94 |
Correct |
1 ms |
1108 KB |
Output is correct |
95 |
Correct |
2 ms |
1108 KB |
Output is correct |
96 |
Correct |
31 ms |
1164 KB |
Output is correct |
97 |
Correct |
3 ms |
1108 KB |
Output is correct |
98 |
Correct |
24 ms |
1160 KB |
Output is correct |
99 |
Correct |
14 ms |
1180 KB |
Output is correct |
100 |
Correct |
22 ms |
1184 KB |
Output is correct |
101 |
Correct |
32 ms |
2516 KB |
Output is correct |
102 |
Correct |
13 ms |
2516 KB |
Output is correct |
103 |
Correct |
28 ms |
2612 KB |
Output is correct |
104 |
Correct |
43 ms |
2516 KB |
Output is correct |
105 |
Correct |
25 ms |
2516 KB |
Output is correct |
106 |
Correct |
18 ms |
2516 KB |
Output is correct |
107 |
Correct |
103 ms |
2628 KB |
Output is correct |
108 |
Correct |
160 ms |
2644 KB |
Output is correct |
109 |
Correct |
110 ms |
2516 KB |
Output is correct |
110 |
Correct |
175 ms |
2516 KB |
Output is correct |
111 |
Correct |
0 ms |
340 KB |
Output is correct |
112 |
Correct |
5 ms |
1172 KB |
Output is correct |
113 |
Correct |
1 ms |
1108 KB |
Output is correct |
114 |
Correct |
4 ms |
1108 KB |
Output is correct |
115 |
Correct |
6 ms |
1056 KB |
Output is correct |
116 |
Correct |
2 ms |
1108 KB |
Output is correct |
117 |
Correct |
1 ms |
1108 KB |
Output is correct |
118 |
Correct |
1 ms |
1108 KB |
Output is correct |
119 |
Correct |
1 ms |
1108 KB |
Output is correct |
120 |
Correct |
2 ms |
1108 KB |
Output is correct |
121 |
Correct |
2 ms |
2516 KB |
Output is correct |
122 |
Correct |
1 ms |
2516 KB |
Output is correct |
123 |
Correct |
25 ms |
2620 KB |
Output is correct |
124 |
Correct |
14 ms |
2608 KB |
Output is correct |
125 |
Correct |
28 ms |
2612 KB |
Output is correct |
126 |
Correct |
47 ms |
2596 KB |
Output is correct |
127 |
Correct |
25 ms |
2516 KB |
Output is correct |
128 |
Correct |
18 ms |
2516 KB |
Output is correct |
129 |
Correct |
4 ms |
9300 KB |
Output is correct |
130 |
Correct |
4 ms |
9300 KB |
Output is correct |
131 |
Correct |
371 ms |
9572 KB |
Output is correct |
132 |
Correct |
92 ms |
9400 KB |
Output is correct |
133 |
Correct |
526 ms |
9464 KB |
Output is correct |
134 |
Correct |
484 ms |
9428 KB |
Output is correct |
135 |
Correct |
434 ms |
9464 KB |
Output is correct |
136 |
Correct |
184 ms |
9552 KB |
Output is correct |
137 |
Correct |
1 ms |
212 KB |
Output is correct |
138 |
Correct |
1 ms |
212 KB |
Output is correct |
139 |
Correct |
0 ms |
212 KB |
Output is correct |
140 |
Correct |
0 ms |
340 KB |
Output is correct |
141 |
Correct |
1 ms |
2516 KB |
Output is correct |
142 |
Correct |
45 ms |
2640 KB |
Output is correct |
143 |
Correct |
13 ms |
2620 KB |
Output is correct |
144 |
Correct |
37 ms |
2644 KB |
Output is correct |
145 |
Correct |
60 ms |
2636 KB |
Output is correct |
146 |
Correct |
1 ms |
2516 KB |
Output is correct |
147 |
Correct |
2 ms |
2516 KB |
Output is correct |
148 |
Correct |
4 ms |
9300 KB |
Output is correct |
149 |
Correct |
776 ms |
9596 KB |
Output is correct |
150 |
Correct |
157 ms |
9572 KB |
Output is correct |
151 |
Correct |
962 ms |
9684 KB |
Output is correct |
152 |
Correct |
887 ms |
9556 KB |
Output is correct |
153 |
Correct |
4 ms |
9300 KB |
Output is correct |
154 |
Correct |
4 ms |
9300 KB |
Output is correct |
155 |
Correct |
5 ms |
1108 KB |
Output is correct |
156 |
Correct |
1 ms |
1108 KB |
Output is correct |
157 |
Correct |
4 ms |
1108 KB |
Output is correct |
158 |
Correct |
6 ms |
1176 KB |
Output is correct |
159 |
Correct |
2 ms |
1108 KB |
Output is correct |
160 |
Correct |
1 ms |
1108 KB |
Output is correct |
161 |
Correct |
1 ms |
1108 KB |
Output is correct |
162 |
Correct |
1 ms |
1108 KB |
Output is correct |
163 |
Correct |
2 ms |
1124 KB |
Output is correct |
164 |
Correct |
24 ms |
2516 KB |
Output is correct |
165 |
Correct |
13 ms |
2516 KB |
Output is correct |
166 |
Correct |
30 ms |
2616 KB |
Output is correct |
167 |
Correct |
42 ms |
2516 KB |
Output is correct |
168 |
Correct |
26 ms |
2644 KB |
Output is correct |
169 |
Correct |
18 ms |
2604 KB |
Output is correct |
170 |
Correct |
32 ms |
1108 KB |
Output is correct |
171 |
Correct |
4 ms |
1108 KB |
Output is correct |
172 |
Correct |
23 ms |
1188 KB |
Output is correct |
173 |
Correct |
12 ms |
1176 KB |
Output is correct |
174 |
Correct |
22 ms |
1180 KB |
Output is correct |
175 |
Correct |
98 ms |
2648 KB |
Output is correct |
176 |
Correct |
168 ms |
2636 KB |
Output is correct |
177 |
Correct |
110 ms |
2644 KB |
Output is correct |
178 |
Correct |
178 ms |
2644 KB |
Output is correct |
179 |
Correct |
367 ms |
9464 KB |
Output is correct |
180 |
Correct |
97 ms |
9404 KB |
Output is correct |
181 |
Correct |
527 ms |
9456 KB |
Output is correct |
182 |
Correct |
499 ms |
9472 KB |
Output is correct |
183 |
Correct |
435 ms |
9592 KB |
Output is correct |
184 |
Correct |
187 ms |
9544 KB |
Output is correct |
185 |
Correct |
2246 ms |
9664 KB |
Output is correct |
186 |
Correct |
2478 ms |
9804 KB |
Output is correct |
187 |
Correct |
1892 ms |
9584 KB |
Output is correct |
188 |
Correct |
1803 ms |
9588 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
5 ms |
1172 KB |
Output is correct |
3 |
Correct |
1 ms |
1108 KB |
Output is correct |
4 |
Correct |
4 ms |
1172 KB |
Output is correct |
5 |
Correct |
6 ms |
1108 KB |
Output is correct |
6 |
Correct |
2 ms |
1108 KB |
Output is correct |
7 |
Correct |
1 ms |
1108 KB |
Output is correct |
8 |
Correct |
1 ms |
1108 KB |
Output is correct |
9 |
Correct |
1 ms |
1108 KB |
Output is correct |
10 |
Correct |
2 ms |
1108 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
5 ms |
1108 KB |
Output is correct |
13 |
Correct |
1 ms |
1108 KB |
Output is correct |
14 |
Correct |
4 ms |
1168 KB |
Output is correct |
15 |
Correct |
6 ms |
1108 KB |
Output is correct |
16 |
Correct |
2 ms |
1108 KB |
Output is correct |
17 |
Correct |
1 ms |
1108 KB |
Output is correct |
18 |
Correct |
1 ms |
1108 KB |
Output is correct |
19 |
Correct |
1 ms |
1108 KB |
Output is correct |
20 |
Correct |
2 ms |
1108 KB |
Output is correct |
21 |
Correct |
2 ms |
2516 KB |
Output is correct |
22 |
Correct |
1 ms |
2516 KB |
Output is correct |
23 |
Correct |
24 ms |
2516 KB |
Output is correct |
24 |
Correct |
13 ms |
2516 KB |
Output is correct |
25 |
Correct |
28 ms |
2516 KB |
Output is correct |
26 |
Correct |
43 ms |
2516 KB |
Output is correct |
27 |
Correct |
25 ms |
2516 KB |
Output is correct |
28 |
Correct |
19 ms |
2516 KB |
Output is correct |
29 |
Correct |
0 ms |
340 KB |
Output is correct |
30 |
Correct |
5 ms |
1172 KB |
Output is correct |
31 |
Correct |
1 ms |
1108 KB |
Output is correct |
32 |
Correct |
4 ms |
1108 KB |
Output is correct |
33 |
Correct |
6 ms |
1056 KB |
Output is correct |
34 |
Correct |
2 ms |
1108 KB |
Output is correct |
35 |
Correct |
1 ms |
1108 KB |
Output is correct |
36 |
Correct |
1 ms |
1108 KB |
Output is correct |
37 |
Correct |
1 ms |
1108 KB |
Output is correct |
38 |
Correct |
2 ms |
1108 KB |
Output is correct |
39 |
Correct |
2 ms |
2516 KB |
Output is correct |
40 |
Correct |
1 ms |
2516 KB |
Output is correct |
41 |
Correct |
25 ms |
2620 KB |
Output is correct |
42 |
Correct |
14 ms |
2608 KB |
Output is correct |
43 |
Correct |
28 ms |
2612 KB |
Output is correct |
44 |
Correct |
47 ms |
2596 KB |
Output is correct |
45 |
Correct |
25 ms |
2516 KB |
Output is correct |
46 |
Correct |
18 ms |
2516 KB |
Output is correct |
47 |
Correct |
4 ms |
9300 KB |
Output is correct |
48 |
Correct |
4 ms |
9300 KB |
Output is correct |
49 |
Correct |
371 ms |
9572 KB |
Output is correct |
50 |
Correct |
92 ms |
9400 KB |
Output is correct |
51 |
Correct |
526 ms |
9464 KB |
Output is correct |
52 |
Correct |
484 ms |
9428 KB |
Output is correct |
53 |
Correct |
434 ms |
9464 KB |
Output is correct |
54 |
Correct |
184 ms |
9552 KB |
Output is correct |
55 |
Correct |
0 ms |
340 KB |
Output is correct |
56 |
Correct |
5 ms |
1108 KB |
Output is correct |
57 |
Correct |
1 ms |
1108 KB |
Output is correct |
58 |
Correct |
4 ms |
1108 KB |
Output is correct |
59 |
Correct |
6 ms |
1108 KB |
Output is correct |
60 |
Correct |
2 ms |
1108 KB |
Output is correct |
61 |
Correct |
1 ms |
1108 KB |
Output is correct |
62 |
Correct |
1 ms |
1108 KB |
Output is correct |
63 |
Correct |
1 ms |
1108 KB |
Output is correct |
64 |
Correct |
2 ms |
1108 KB |
Output is correct |
65 |
Correct |
1 ms |
2564 KB |
Output is correct |
66 |
Correct |
2 ms |
2516 KB |
Output is correct |
67 |
Correct |
24 ms |
2608 KB |
Output is correct |
68 |
Correct |
13 ms |
2600 KB |
Output is correct |
69 |
Correct |
28 ms |
2516 KB |
Output is correct |
70 |
Correct |
43 ms |
2516 KB |
Output is correct |
71 |
Correct |
25 ms |
2516 KB |
Output is correct |
72 |
Correct |
19 ms |
2516 KB |
Output is correct |
73 |
Correct |
4 ms |
9300 KB |
Output is correct |
74 |
Correct |
4 ms |
9300 KB |
Output is correct |
75 |
Correct |
364 ms |
9460 KB |
Output is correct |
76 |
Correct |
91 ms |
9404 KB |
Output is correct |
77 |
Correct |
526 ms |
9472 KB |
Output is correct |
78 |
Correct |
489 ms |
9584 KB |
Output is correct |
79 |
Correct |
429 ms |
9452 KB |
Output is correct |
80 |
Correct |
206 ms |
9428 KB |
Output is correct |
81 |
Execution timed out |
5018 ms |
80624 KB |
Time limit exceeded |
82 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
1 ms |
340 KB |
Output is correct |
5 |
Correct |
1 ms |
2516 KB |
Output is correct |
6 |
Correct |
39 ms |
2632 KB |
Output is correct |
7 |
Correct |
10 ms |
2516 KB |
Output is correct |
8 |
Correct |
36 ms |
2632 KB |
Output is correct |
9 |
Correct |
60 ms |
2644 KB |
Output is correct |
10 |
Correct |
1 ms |
2516 KB |
Output is correct |
11 |
Correct |
2 ms |
2516 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
0 ms |
212 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
0 ms |
340 KB |
Output is correct |
16 |
Correct |
1 ms |
2516 KB |
Output is correct |
17 |
Correct |
41 ms |
2632 KB |
Output is correct |
18 |
Correct |
10 ms |
2516 KB |
Output is correct |
19 |
Correct |
39 ms |
2648 KB |
Output is correct |
20 |
Correct |
69 ms |
2644 KB |
Output is correct |
21 |
Correct |
2 ms |
2516 KB |
Output is correct |
22 |
Correct |
1 ms |
2516 KB |
Output is correct |
23 |
Correct |
4 ms |
9300 KB |
Output is correct |
24 |
Correct |
781 ms |
9692 KB |
Output is correct |
25 |
Correct |
165 ms |
9452 KB |
Output is correct |
26 |
Correct |
893 ms |
9612 KB |
Output is correct |
27 |
Correct |
880 ms |
9612 KB |
Output is correct |
28 |
Correct |
4 ms |
9300 KB |
Output is correct |
29 |
Correct |
4 ms |
9300 KB |
Output is correct |
30 |
Correct |
0 ms |
340 KB |
Output is correct |
31 |
Correct |
5 ms |
1172 KB |
Output is correct |
32 |
Correct |
1 ms |
1108 KB |
Output is correct |
33 |
Correct |
4 ms |
1172 KB |
Output is correct |
34 |
Correct |
6 ms |
1108 KB |
Output is correct |
35 |
Correct |
2 ms |
1108 KB |
Output is correct |
36 |
Correct |
1 ms |
1108 KB |
Output is correct |
37 |
Correct |
1 ms |
1108 KB |
Output is correct |
38 |
Correct |
1 ms |
1108 KB |
Output is correct |
39 |
Correct |
2 ms |
1108 KB |
Output is correct |
40 |
Correct |
0 ms |
212 KB |
Output is correct |
41 |
Correct |
0 ms |
340 KB |
Output is correct |
42 |
Correct |
0 ms |
212 KB |
Output is correct |
43 |
Correct |
1 ms |
340 KB |
Output is correct |
44 |
Correct |
4 ms |
1108 KB |
Output is correct |
45 |
Correct |
1 ms |
1108 KB |
Output is correct |
46 |
Correct |
4 ms |
1108 KB |
Output is correct |
47 |
Correct |
6 ms |
1108 KB |
Output is correct |
48 |
Correct |
2 ms |
1108 KB |
Output is correct |
49 |
Correct |
1 ms |
1108 KB |
Output is correct |
50 |
Correct |
1 ms |
1108 KB |
Output is correct |
51 |
Correct |
1 ms |
1108 KB |
Output is correct |
52 |
Correct |
2 ms |
1108 KB |
Output is correct |
53 |
Correct |
29 ms |
1176 KB |
Output is correct |
54 |
Correct |
4 ms |
1108 KB |
Output is correct |
55 |
Correct |
25 ms |
1108 KB |
Output is correct |
56 |
Correct |
12 ms |
1176 KB |
Output is correct |
57 |
Correct |
22 ms |
1180 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
59 |
Correct |
5 ms |
1108 KB |
Output is correct |
60 |
Correct |
1 ms |
1108 KB |
Output is correct |
61 |
Correct |
4 ms |
1168 KB |
Output is correct |
62 |
Correct |
6 ms |
1108 KB |
Output is correct |
63 |
Correct |
2 ms |
1108 KB |
Output is correct |
64 |
Correct |
1 ms |
1108 KB |
Output is correct |
65 |
Correct |
1 ms |
1108 KB |
Output is correct |
66 |
Correct |
1 ms |
1108 KB |
Output is correct |
67 |
Correct |
2 ms |
1108 KB |
Output is correct |
68 |
Correct |
2 ms |
2516 KB |
Output is correct |
69 |
Correct |
1 ms |
2516 KB |
Output is correct |
70 |
Correct |
24 ms |
2516 KB |
Output is correct |
71 |
Correct |
13 ms |
2516 KB |
Output is correct |
72 |
Correct |
28 ms |
2516 KB |
Output is correct |
73 |
Correct |
43 ms |
2516 KB |
Output is correct |
74 |
Correct |
25 ms |
2516 KB |
Output is correct |
75 |
Correct |
19 ms |
2516 KB |
Output is correct |
76 |
Correct |
0 ms |
212 KB |
Output is correct |
77 |
Correct |
0 ms |
212 KB |
Output is correct |
78 |
Correct |
0 ms |
212 KB |
Output is correct |
79 |
Correct |
0 ms |
340 KB |
Output is correct |
80 |
Correct |
1 ms |
2516 KB |
Output is correct |
81 |
Correct |
39 ms |
2644 KB |
Output is correct |
82 |
Correct |
10 ms |
2516 KB |
Output is correct |
83 |
Correct |
36 ms |
2516 KB |
Output is correct |
84 |
Correct |
61 ms |
2644 KB |
Output is correct |
85 |
Correct |
1 ms |
2516 KB |
Output is correct |
86 |
Correct |
2 ms |
2516 KB |
Output is correct |
87 |
Correct |
6 ms |
1108 KB |
Output is correct |
88 |
Correct |
1 ms |
1108 KB |
Output is correct |
89 |
Correct |
4 ms |
1108 KB |
Output is correct |
90 |
Correct |
6 ms |
1160 KB |
Output is correct |
91 |
Correct |
2 ms |
1108 KB |
Output is correct |
92 |
Correct |
1 ms |
1108 KB |
Output is correct |
93 |
Correct |
1 ms |
1108 KB |
Output is correct |
94 |
Correct |
1 ms |
1108 KB |
Output is correct |
95 |
Correct |
2 ms |
1108 KB |
Output is correct |
96 |
Correct |
31 ms |
1164 KB |
Output is correct |
97 |
Correct |
3 ms |
1108 KB |
Output is correct |
98 |
Correct |
24 ms |
1160 KB |
Output is correct |
99 |
Correct |
14 ms |
1180 KB |
Output is correct |
100 |
Correct |
22 ms |
1184 KB |
Output is correct |
101 |
Correct |
32 ms |
2516 KB |
Output is correct |
102 |
Correct |
13 ms |
2516 KB |
Output is correct |
103 |
Correct |
28 ms |
2612 KB |
Output is correct |
104 |
Correct |
43 ms |
2516 KB |
Output is correct |
105 |
Correct |
25 ms |
2516 KB |
Output is correct |
106 |
Correct |
18 ms |
2516 KB |
Output is correct |
107 |
Correct |
103 ms |
2628 KB |
Output is correct |
108 |
Correct |
160 ms |
2644 KB |
Output is correct |
109 |
Correct |
110 ms |
2516 KB |
Output is correct |
110 |
Correct |
175 ms |
2516 KB |
Output is correct |
111 |
Correct |
0 ms |
340 KB |
Output is correct |
112 |
Correct |
5 ms |
1172 KB |
Output is correct |
113 |
Correct |
1 ms |
1108 KB |
Output is correct |
114 |
Correct |
4 ms |
1108 KB |
Output is correct |
115 |
Correct |
6 ms |
1056 KB |
Output is correct |
116 |
Correct |
2 ms |
1108 KB |
Output is correct |
117 |
Correct |
1 ms |
1108 KB |
Output is correct |
118 |
Correct |
1 ms |
1108 KB |
Output is correct |
119 |
Correct |
1 ms |
1108 KB |
Output is correct |
120 |
Correct |
2 ms |
1108 KB |
Output is correct |
121 |
Correct |
2 ms |
2516 KB |
Output is correct |
122 |
Correct |
1 ms |
2516 KB |
Output is correct |
123 |
Correct |
25 ms |
2620 KB |
Output is correct |
124 |
Correct |
14 ms |
2608 KB |
Output is correct |
125 |
Correct |
28 ms |
2612 KB |
Output is correct |
126 |
Correct |
47 ms |
2596 KB |
Output is correct |
127 |
Correct |
25 ms |
2516 KB |
Output is correct |
128 |
Correct |
18 ms |
2516 KB |
Output is correct |
129 |
Correct |
4 ms |
9300 KB |
Output is correct |
130 |
Correct |
4 ms |
9300 KB |
Output is correct |
131 |
Correct |
371 ms |
9572 KB |
Output is correct |
132 |
Correct |
92 ms |
9400 KB |
Output is correct |
133 |
Correct |
526 ms |
9464 KB |
Output is correct |
134 |
Correct |
484 ms |
9428 KB |
Output is correct |
135 |
Correct |
434 ms |
9464 KB |
Output is correct |
136 |
Correct |
184 ms |
9552 KB |
Output is correct |
137 |
Correct |
1 ms |
212 KB |
Output is correct |
138 |
Correct |
1 ms |
212 KB |
Output is correct |
139 |
Correct |
0 ms |
212 KB |
Output is correct |
140 |
Correct |
0 ms |
340 KB |
Output is correct |
141 |
Correct |
1 ms |
2516 KB |
Output is correct |
142 |
Correct |
45 ms |
2640 KB |
Output is correct |
143 |
Correct |
13 ms |
2620 KB |
Output is correct |
144 |
Correct |
37 ms |
2644 KB |
Output is correct |
145 |
Correct |
60 ms |
2636 KB |
Output is correct |
146 |
Correct |
1 ms |
2516 KB |
Output is correct |
147 |
Correct |
2 ms |
2516 KB |
Output is correct |
148 |
Correct |
4 ms |
9300 KB |
Output is correct |
149 |
Correct |
776 ms |
9596 KB |
Output is correct |
150 |
Correct |
157 ms |
9572 KB |
Output is correct |
151 |
Correct |
962 ms |
9684 KB |
Output is correct |
152 |
Correct |
887 ms |
9556 KB |
Output is correct |
153 |
Correct |
4 ms |
9300 KB |
Output is correct |
154 |
Correct |
4 ms |
9300 KB |
Output is correct |
155 |
Correct |
5 ms |
1108 KB |
Output is correct |
156 |
Correct |
1 ms |
1108 KB |
Output is correct |
157 |
Correct |
4 ms |
1108 KB |
Output is correct |
158 |
Correct |
6 ms |
1176 KB |
Output is correct |
159 |
Correct |
2 ms |
1108 KB |
Output is correct |
160 |
Correct |
1 ms |
1108 KB |
Output is correct |
161 |
Correct |
1 ms |
1108 KB |
Output is correct |
162 |
Correct |
1 ms |
1108 KB |
Output is correct |
163 |
Correct |
2 ms |
1124 KB |
Output is correct |
164 |
Correct |
24 ms |
2516 KB |
Output is correct |
165 |
Correct |
13 ms |
2516 KB |
Output is correct |
166 |
Correct |
30 ms |
2616 KB |
Output is correct |
167 |
Correct |
42 ms |
2516 KB |
Output is correct |
168 |
Correct |
26 ms |
2644 KB |
Output is correct |
169 |
Correct |
18 ms |
2604 KB |
Output is correct |
170 |
Correct |
32 ms |
1108 KB |
Output is correct |
171 |
Correct |
4 ms |
1108 KB |
Output is correct |
172 |
Correct |
23 ms |
1188 KB |
Output is correct |
173 |
Correct |
12 ms |
1176 KB |
Output is correct |
174 |
Correct |
22 ms |
1180 KB |
Output is correct |
175 |
Correct |
98 ms |
2648 KB |
Output is correct |
176 |
Correct |
168 ms |
2636 KB |
Output is correct |
177 |
Correct |
110 ms |
2644 KB |
Output is correct |
178 |
Correct |
178 ms |
2644 KB |
Output is correct |
179 |
Correct |
367 ms |
9464 KB |
Output is correct |
180 |
Correct |
97 ms |
9404 KB |
Output is correct |
181 |
Correct |
527 ms |
9456 KB |
Output is correct |
182 |
Correct |
499 ms |
9472 KB |
Output is correct |
183 |
Correct |
435 ms |
9592 KB |
Output is correct |
184 |
Correct |
187 ms |
9544 KB |
Output is correct |
185 |
Correct |
2246 ms |
9664 KB |
Output is correct |
186 |
Correct |
2478 ms |
9804 KB |
Output is correct |
187 |
Correct |
1892 ms |
9584 KB |
Output is correct |
188 |
Correct |
1803 ms |
9588 KB |
Output is correct |
189 |
Correct |
0 ms |
340 KB |
Output is correct |
190 |
Correct |
5 ms |
1108 KB |
Output is correct |
191 |
Correct |
1 ms |
1108 KB |
Output is correct |
192 |
Correct |
4 ms |
1108 KB |
Output is correct |
193 |
Correct |
6 ms |
1108 KB |
Output is correct |
194 |
Correct |
2 ms |
1108 KB |
Output is correct |
195 |
Correct |
1 ms |
1108 KB |
Output is correct |
196 |
Correct |
1 ms |
1108 KB |
Output is correct |
197 |
Correct |
1 ms |
1108 KB |
Output is correct |
198 |
Correct |
2 ms |
1108 KB |
Output is correct |
199 |
Correct |
1 ms |
2564 KB |
Output is correct |
200 |
Correct |
2 ms |
2516 KB |
Output is correct |
201 |
Correct |
24 ms |
2608 KB |
Output is correct |
202 |
Correct |
13 ms |
2600 KB |
Output is correct |
203 |
Correct |
28 ms |
2516 KB |
Output is correct |
204 |
Correct |
43 ms |
2516 KB |
Output is correct |
205 |
Correct |
25 ms |
2516 KB |
Output is correct |
206 |
Correct |
19 ms |
2516 KB |
Output is correct |
207 |
Correct |
4 ms |
9300 KB |
Output is correct |
208 |
Correct |
4 ms |
9300 KB |
Output is correct |
209 |
Correct |
364 ms |
9460 KB |
Output is correct |
210 |
Correct |
91 ms |
9404 KB |
Output is correct |
211 |
Correct |
526 ms |
9472 KB |
Output is correct |
212 |
Correct |
489 ms |
9584 KB |
Output is correct |
213 |
Correct |
429 ms |
9452 KB |
Output is correct |
214 |
Correct |
206 ms |
9428 KB |
Output is correct |
215 |
Execution timed out |
5018 ms |
80624 KB |
Time limit exceeded |
216 |
Halted |
0 ms |
0 KB |
- |