#include <bits/stdc++.h>
using namespace std;
const int MAX_M = 300;
int MAX_S;
int MIN_S;
const long long INF = 1e18;
int m;
unordered_map<int, long long> taken, untaken;
unordered_map<int, long long> dpCrt, dpPrv;
void add( int x, int k ) {
swap( dpCrt, dpPrv );
if ( x > 0 ) {
for ( int r = 0; r < x; r++ ) {
deque<pair<int, int>> d;
for ( int i = 0, s = MIN_S + r; s <= MAX_S; i++, s += x ) {
if ( !d.empty() && i - d.front().second > k )
d.pop_front();
while ( !d.empty() && dpPrv[s] - i >= dpPrv[d.back().first] - d.back().second )
d.pop_back();
d.push_back( { s, i } );
dpCrt[s] = dpPrv[d.front().first] + i - d.front().second;
}
}
} else {
x = -x;
for ( int r = 0; r < x; r++ ) {
deque<pair<int, int>> d;
for ( int i = 0, s = MAX_S - r; s >= MIN_S; i++, s -= x ) {
if ( !d.empty() && i - d.front().second > k )
d.pop_front();
while ( !d.empty() && dpPrv[s] - i >= dpPrv[d.back().first] - d.back().second )
d.pop_back();
d.push_back( { s, i } );
dpCrt[s] = dpPrv[d.front().first] + i - d.front().second;
}
}
}
for ( int s = MIN_S; s <= MAX_S; s++ )
dpCrt[s] = (dpCrt[s] <= -INF + m ? -INF : dpCrt[s]);
}
void substract( int x, int k ) {
swap( dpCrt, dpPrv );
if ( x < 0 ) {
x = -x;
for ( int r = 0; r < x; r++ ) {
deque<pair<int, int>> d;
for ( int i = 0, s = MIN_S + r; s <= MAX_S; i++, s += x ) {
if ( !d.empty() && i - d.front().second > k )
d.pop_front();
while ( !d.empty() && dpPrv[s] + i >= dpPrv[d.back().first] + d.back().second )
d.pop_back();
d.push_back( { s, i } );
dpCrt[s] = dpPrv[d.front().first] - i + d.front().second;
}
}
} else {
for ( int r = 0; r < x; r++ ) {
deque<pair<int, int>> d;
for ( int i = 0, s = MAX_S - r; s >= MIN_S; i++, s -= x ) {
if ( !d.empty() && i - d.front().second > k )
d.pop_front();
while ( !d.empty() && dpPrv[s] + i >= dpPrv[d.back().first] + d.back().second )
d.pop_back();
d.push_back( { s, i } );
dpCrt[s] = dpPrv[d.front().first] - i + d.front().second;
}
}
}
for ( int s = MIN_S; s <= MAX_S; s++ )
dpCrt[s] = (dpCrt[s] <= -INF + m ? -INF : dpCrt[s]);
}
int main() {
long long l, u = 0, t = 0;
cin >> m >> l;
MIN_S = -m * m;
MAX_S = m * m;
for ( int i = -m; i <= m; i++ ) {
cin >> untaken[i];
u += untaken[i];
}
if ( l < 0 ) {
for ( int i = 1; i <= m; i++ )
swap( untaken[i], untaken[-i] );
l = -l;
}
long long s = 0;
for ( int i = -m; i <= 0; i++ ) {
long long x = untaken[i];
s += i * x;
taken[i] += x;
untaken[i] -= x;
t += x;
u -= x;
}
for ( int i = 1; i <= m; i++ ) {
long long x = min( untaken[i], (l - s) / i );
s += i * x;
taken[i] += x;
untaken[i] -= x;
t += x;
u -= x;
}
if ( s + m < l ) {
for ( int i = -m; i < 0; i++ ) {
long long x = min( taken[i], (l - s) / (-i) );
s -= i * x;
taken[i] -= x;
untaken[i] += x;
t -= x;
u += x;
}
}
/*cout << s << "\n";
for ( int i = -m; i <= m; i++ )
cout << i << " " << taken[i] << " " << untaken[i] << "\n";*/
for ( int s = MIN_S; s <= MAX_S; s++ )
dpCrt[s] = -INF;
dpCrt[0] = 0;
for ( int i = -m; i <= m; i++ ) {
add( i, min( (long long)m, untaken[i] ) );
substract( i, min( (long long)m, taken[i] ) );
}
if ( l - s > MAX_S || dpCrt[l - s] == -INF )
cout << "impossible\n";
else
cout << t + dpCrt[l - s] << "\n";
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
356 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
82 ms |
604 KB |
Output is correct |
6 |
Correct |
76 ms |
848 KB |
Output is correct |
7 |
Correct |
72 ms |
604 KB |
Output is correct |
8 |
Correct |
77 ms |
604 KB |
Output is correct |
9 |
Correct |
80 ms |
600 KB |
Output is correct |
10 |
Correct |
59 ms |
812 KB |
Output is correct |
11 |
Correct |
67 ms |
816 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
356 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
82 ms |
604 KB |
Output is correct |
6 |
Correct |
76 ms |
848 KB |
Output is correct |
7 |
Correct |
72 ms |
604 KB |
Output is correct |
8 |
Correct |
77 ms |
604 KB |
Output is correct |
9 |
Correct |
80 ms |
600 KB |
Output is correct |
10 |
Correct |
59 ms |
812 KB |
Output is correct |
11 |
Correct |
67 ms |
816 KB |
Output is correct |
12 |
Correct |
0 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
432 KB |
Output is correct |
14 |
Correct |
0 ms |
344 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
77 ms |
816 KB |
Output is correct |
17 |
Correct |
75 ms |
604 KB |
Output is correct |
18 |
Correct |
72 ms |
600 KB |
Output is correct |
19 |
Correct |
77 ms |
816 KB |
Output is correct |
20 |
Correct |
80 ms |
600 KB |
Output is correct |
21 |
Correct |
60 ms |
820 KB |
Output is correct |
22 |
Correct |
61 ms |
604 KB |
Output is correct |
23 |
Correct |
595 ms |
2028 KB |
Output is correct |
24 |
Correct |
585 ms |
2028 KB |
Output is correct |
25 |
Correct |
574 ms |
2024 KB |
Output is correct |
26 |
Correct |
608 ms |
2024 KB |
Output is correct |
27 |
Correct |
613 ms |
2032 KB |
Output is correct |
28 |
Correct |
507 ms |
2128 KB |
Output is correct |
29 |
Correct |
503 ms |
1972 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
16 ms |
592 KB |
Output is correct |
3 |
Correct |
14 ms |
344 KB |
Output is correct |
4 |
Correct |
15 ms |
344 KB |
Output is correct |
5 |
Correct |
15 ms |
596 KB |
Output is correct |
6 |
Correct |
14 ms |
592 KB |
Output is correct |
7 |
Correct |
13 ms |
348 KB |
Output is correct |
8 |
Correct |
13 ms |
600 KB |
Output is correct |
9 |
Correct |
14 ms |
600 KB |
Output is correct |
10 |
Correct |
14 ms |
344 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
16 ms |
592 KB |
Output is correct |
3 |
Correct |
14 ms |
344 KB |
Output is correct |
4 |
Correct |
15 ms |
344 KB |
Output is correct |
5 |
Correct |
15 ms |
596 KB |
Output is correct |
6 |
Correct |
14 ms |
592 KB |
Output is correct |
7 |
Correct |
13 ms |
348 KB |
Output is correct |
8 |
Correct |
13 ms |
600 KB |
Output is correct |
9 |
Correct |
14 ms |
600 KB |
Output is correct |
10 |
Correct |
14 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
348 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
348 KB |
Output is correct |
15 |
Correct |
15 ms |
600 KB |
Output is correct |
16 |
Correct |
14 ms |
600 KB |
Output is correct |
17 |
Correct |
15 ms |
348 KB |
Output is correct |
18 |
Correct |
16 ms |
604 KB |
Output is correct |
19 |
Correct |
15 ms |
348 KB |
Output is correct |
20 |
Correct |
13 ms |
596 KB |
Output is correct |
21 |
Correct |
13 ms |
348 KB |
Output is correct |
22 |
Correct |
14 ms |
432 KB |
Output is correct |
23 |
Correct |
15 ms |
604 KB |
Output is correct |
24 |
Correct |
17 ms |
348 KB |
Output is correct |
25 |
Correct |
16 ms |
344 KB |
Output is correct |
26 |
Correct |
18 ms |
348 KB |
Output is correct |
27 |
Correct |
16 ms |
604 KB |
Output is correct |
28 |
Correct |
17 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
16 ms |
592 KB |
Output is correct |
3 |
Correct |
14 ms |
344 KB |
Output is correct |
4 |
Correct |
15 ms |
344 KB |
Output is correct |
5 |
Correct |
15 ms |
596 KB |
Output is correct |
6 |
Correct |
14 ms |
592 KB |
Output is correct |
7 |
Correct |
13 ms |
348 KB |
Output is correct |
8 |
Correct |
13 ms |
600 KB |
Output is correct |
9 |
Correct |
14 ms |
600 KB |
Output is correct |
10 |
Correct |
14 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
15 ms |
348 KB |
Output is correct |
13 |
Correct |
14 ms |
604 KB |
Output is correct |
14 |
Correct |
15 ms |
436 KB |
Output is correct |
15 |
Correct |
16 ms |
348 KB |
Output is correct |
16 |
Correct |
14 ms |
436 KB |
Output is correct |
17 |
Correct |
13 ms |
344 KB |
Output is correct |
18 |
Correct |
13 ms |
604 KB |
Output is correct |
19 |
Correct |
15 ms |
348 KB |
Output is correct |
20 |
Correct |
15 ms |
592 KB |
Output is correct |
21 |
Correct |
60 ms |
604 KB |
Output is correct |
22 |
Correct |
60 ms |
604 KB |
Output is correct |
23 |
Correct |
71 ms |
600 KB |
Output is correct |
24 |
Correct |
65 ms |
816 KB |
Output is correct |
25 |
Correct |
68 ms |
820 KB |
Output is correct |
26 |
Correct |
68 ms |
600 KB |
Output is correct |
27 |
Correct |
67 ms |
600 KB |
Output is correct |
28 |
Correct |
72 ms |
852 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
356 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
82 ms |
604 KB |
Output is correct |
6 |
Correct |
76 ms |
848 KB |
Output is correct |
7 |
Correct |
72 ms |
604 KB |
Output is correct |
8 |
Correct |
77 ms |
604 KB |
Output is correct |
9 |
Correct |
80 ms |
600 KB |
Output is correct |
10 |
Correct |
59 ms |
812 KB |
Output is correct |
11 |
Correct |
67 ms |
816 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
16 ms |
592 KB |
Output is correct |
14 |
Correct |
14 ms |
344 KB |
Output is correct |
15 |
Correct |
15 ms |
344 KB |
Output is correct |
16 |
Correct |
15 ms |
596 KB |
Output is correct |
17 |
Correct |
14 ms |
592 KB |
Output is correct |
18 |
Correct |
13 ms |
348 KB |
Output is correct |
19 |
Correct |
13 ms |
600 KB |
Output is correct |
20 |
Correct |
14 ms |
600 KB |
Output is correct |
21 |
Correct |
14 ms |
344 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
344 KB |
Output is correct |
24 |
Correct |
0 ms |
344 KB |
Output is correct |
25 |
Correct |
1 ms |
348 KB |
Output is correct |
26 |
Correct |
15 ms |
600 KB |
Output is correct |
27 |
Correct |
14 ms |
600 KB |
Output is correct |
28 |
Correct |
15 ms |
348 KB |
Output is correct |
29 |
Correct |
16 ms |
604 KB |
Output is correct |
30 |
Correct |
15 ms |
348 KB |
Output is correct |
31 |
Correct |
13 ms |
596 KB |
Output is correct |
32 |
Correct |
13 ms |
348 KB |
Output is correct |
33 |
Correct |
14 ms |
432 KB |
Output is correct |
34 |
Correct |
15 ms |
604 KB |
Output is correct |
35 |
Correct |
17 ms |
348 KB |
Output is correct |
36 |
Correct |
16 ms |
344 KB |
Output is correct |
37 |
Correct |
18 ms |
348 KB |
Output is correct |
38 |
Correct |
16 ms |
604 KB |
Output is correct |
39 |
Correct |
17 ms |
348 KB |
Output is correct |
40 |
Correct |
1 ms |
344 KB |
Output is correct |
41 |
Correct |
15 ms |
348 KB |
Output is correct |
42 |
Correct |
14 ms |
604 KB |
Output is correct |
43 |
Correct |
15 ms |
436 KB |
Output is correct |
44 |
Correct |
16 ms |
348 KB |
Output is correct |
45 |
Correct |
14 ms |
436 KB |
Output is correct |
46 |
Correct |
13 ms |
344 KB |
Output is correct |
47 |
Correct |
13 ms |
604 KB |
Output is correct |
48 |
Correct |
15 ms |
348 KB |
Output is correct |
49 |
Correct |
15 ms |
592 KB |
Output is correct |
50 |
Correct |
60 ms |
604 KB |
Output is correct |
51 |
Correct |
60 ms |
604 KB |
Output is correct |
52 |
Correct |
71 ms |
600 KB |
Output is correct |
53 |
Correct |
65 ms |
816 KB |
Output is correct |
54 |
Correct |
68 ms |
820 KB |
Output is correct |
55 |
Correct |
68 ms |
600 KB |
Output is correct |
56 |
Correct |
67 ms |
600 KB |
Output is correct |
57 |
Correct |
72 ms |
852 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 |
81 ms |
604 KB |
Output is correct |
63 |
Correct |
77 ms |
604 KB |
Output is correct |
64 |
Correct |
72 ms |
604 KB |
Output is correct |
65 |
Correct |
80 ms |
820 KB |
Output is correct |
66 |
Correct |
80 ms |
856 KB |
Output is correct |
67 |
Correct |
59 ms |
604 KB |
Output is correct |
68 |
Correct |
60 ms |
604 KB |
Output is correct |
69 |
Correct |
15 ms |
348 KB |
Output is correct |
70 |
Correct |
14 ms |
600 KB |
Output is correct |
71 |
Correct |
15 ms |
348 KB |
Output is correct |
72 |
Correct |
17 ms |
348 KB |
Output is correct |
73 |
Correct |
14 ms |
596 KB |
Output is correct |
74 |
Correct |
13 ms |
344 KB |
Output is correct |
75 |
Correct |
13 ms |
588 KB |
Output is correct |
76 |
Correct |
15 ms |
348 KB |
Output is correct |
77 |
Correct |
15 ms |
344 KB |
Output is correct |
78 |
Correct |
16 ms |
596 KB |
Output is correct |
79 |
Correct |
15 ms |
592 KB |
Output is correct |
80 |
Correct |
19 ms |
592 KB |
Output is correct |
81 |
Correct |
16 ms |
592 KB |
Output is correct |
82 |
Correct |
17 ms |
604 KB |
Output is correct |
83 |
Correct |
73 ms |
832 KB |
Output is correct |
84 |
Correct |
65 ms |
604 KB |
Output is correct |
85 |
Correct |
69 ms |
604 KB |
Output is correct |
86 |
Correct |
68 ms |
816 KB |
Output is correct |
87 |
Correct |
67 ms |
604 KB |
Output is correct |
88 |
Correct |
68 ms |
604 KB |
Output is correct |
89 |
Correct |
75 ms |
812 KB |
Output is correct |
90 |
Correct |
77 ms |
604 KB |
Output is correct |
91 |
Correct |
78 ms |
820 KB |
Output is correct |
92 |
Correct |
79 ms |
816 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
16 ms |
592 KB |
Output is correct |
3 |
Correct |
14 ms |
344 KB |
Output is correct |
4 |
Correct |
15 ms |
344 KB |
Output is correct |
5 |
Correct |
15 ms |
596 KB |
Output is correct |
6 |
Correct |
14 ms |
592 KB |
Output is correct |
7 |
Correct |
13 ms |
348 KB |
Output is correct |
8 |
Correct |
13 ms |
600 KB |
Output is correct |
9 |
Correct |
14 ms |
600 KB |
Output is correct |
10 |
Correct |
14 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
15 ms |
348 KB |
Output is correct |
13 |
Correct |
14 ms |
604 KB |
Output is correct |
14 |
Correct |
15 ms |
436 KB |
Output is correct |
15 |
Correct |
16 ms |
348 KB |
Output is correct |
16 |
Correct |
14 ms |
436 KB |
Output is correct |
17 |
Correct |
13 ms |
344 KB |
Output is correct |
18 |
Correct |
13 ms |
604 KB |
Output is correct |
19 |
Correct |
15 ms |
348 KB |
Output is correct |
20 |
Correct |
15 ms |
592 KB |
Output is correct |
21 |
Correct |
60 ms |
604 KB |
Output is correct |
22 |
Correct |
60 ms |
604 KB |
Output is correct |
23 |
Correct |
71 ms |
600 KB |
Output is correct |
24 |
Correct |
65 ms |
816 KB |
Output is correct |
25 |
Correct |
68 ms |
820 KB |
Output is correct |
26 |
Correct |
68 ms |
600 KB |
Output is correct |
27 |
Correct |
67 ms |
600 KB |
Output is correct |
28 |
Correct |
72 ms |
852 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
15 ms |
600 KB |
Output is correct |
31 |
Correct |
14 ms |
348 KB |
Output is correct |
32 |
Correct |
15 ms |
348 KB |
Output is correct |
33 |
Correct |
15 ms |
592 KB |
Output is correct |
34 |
Correct |
14 ms |
344 KB |
Output is correct |
35 |
Correct |
13 ms |
592 KB |
Output is correct |
36 |
Correct |
13 ms |
348 KB |
Output is correct |
37 |
Correct |
14 ms |
600 KB |
Output is correct |
38 |
Correct |
15 ms |
604 KB |
Output is correct |
39 |
Correct |
60 ms |
604 KB |
Output is correct |
40 |
Correct |
63 ms |
812 KB |
Output is correct |
41 |
Correct |
71 ms |
824 KB |
Output is correct |
42 |
Correct |
64 ms |
604 KB |
Output is correct |
43 |
Correct |
67 ms |
604 KB |
Output is correct |
44 |
Correct |
70 ms |
604 KB |
Output is correct |
45 |
Correct |
71 ms |
604 KB |
Output is correct |
46 |
Correct |
67 ms |
812 KB |
Output is correct |
47 |
Correct |
509 ms |
2024 KB |
Output is correct |
48 |
Correct |
504 ms |
2028 KB |
Output is correct |
49 |
Correct |
570 ms |
2024 KB |
Output is correct |
50 |
Correct |
552 ms |
1880 KB |
Output is correct |
51 |
Correct |
548 ms |
1884 KB |
Output is correct |
52 |
Correct |
574 ms |
2024 KB |
Output is correct |
53 |
Correct |
583 ms |
2280 KB |
Output is correct |
54 |
Correct |
530 ms |
2028 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
356 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
82 ms |
604 KB |
Output is correct |
6 |
Correct |
76 ms |
848 KB |
Output is correct |
7 |
Correct |
72 ms |
604 KB |
Output is correct |
8 |
Correct |
77 ms |
604 KB |
Output is correct |
9 |
Correct |
80 ms |
600 KB |
Output is correct |
10 |
Correct |
59 ms |
812 KB |
Output is correct |
11 |
Correct |
67 ms |
816 KB |
Output is correct |
12 |
Correct |
0 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
432 KB |
Output is correct |
14 |
Correct |
0 ms |
344 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
77 ms |
816 KB |
Output is correct |
17 |
Correct |
75 ms |
604 KB |
Output is correct |
18 |
Correct |
72 ms |
600 KB |
Output is correct |
19 |
Correct |
77 ms |
816 KB |
Output is correct |
20 |
Correct |
80 ms |
600 KB |
Output is correct |
21 |
Correct |
60 ms |
820 KB |
Output is correct |
22 |
Correct |
61 ms |
604 KB |
Output is correct |
23 |
Correct |
595 ms |
2028 KB |
Output is correct |
24 |
Correct |
585 ms |
2028 KB |
Output is correct |
25 |
Correct |
574 ms |
2024 KB |
Output is correct |
26 |
Correct |
608 ms |
2024 KB |
Output is correct |
27 |
Correct |
613 ms |
2032 KB |
Output is correct |
28 |
Correct |
507 ms |
2128 KB |
Output is correct |
29 |
Correct |
503 ms |
1972 KB |
Output is correct |
30 |
Correct |
1 ms |
344 KB |
Output is correct |
31 |
Correct |
16 ms |
592 KB |
Output is correct |
32 |
Correct |
14 ms |
344 KB |
Output is correct |
33 |
Correct |
15 ms |
344 KB |
Output is correct |
34 |
Correct |
15 ms |
596 KB |
Output is correct |
35 |
Correct |
14 ms |
592 KB |
Output is correct |
36 |
Correct |
13 ms |
348 KB |
Output is correct |
37 |
Correct |
13 ms |
600 KB |
Output is correct |
38 |
Correct |
14 ms |
600 KB |
Output is correct |
39 |
Correct |
14 ms |
344 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
1 ms |
344 KB |
Output is correct |
42 |
Correct |
0 ms |
344 KB |
Output is correct |
43 |
Correct |
1 ms |
348 KB |
Output is correct |
44 |
Correct |
15 ms |
600 KB |
Output is correct |
45 |
Correct |
14 ms |
600 KB |
Output is correct |
46 |
Correct |
15 ms |
348 KB |
Output is correct |
47 |
Correct |
16 ms |
604 KB |
Output is correct |
48 |
Correct |
15 ms |
348 KB |
Output is correct |
49 |
Correct |
13 ms |
596 KB |
Output is correct |
50 |
Correct |
13 ms |
348 KB |
Output is correct |
51 |
Correct |
14 ms |
432 KB |
Output is correct |
52 |
Correct |
15 ms |
604 KB |
Output is correct |
53 |
Correct |
17 ms |
348 KB |
Output is correct |
54 |
Correct |
16 ms |
344 KB |
Output is correct |
55 |
Correct |
18 ms |
348 KB |
Output is correct |
56 |
Correct |
16 ms |
604 KB |
Output is correct |
57 |
Correct |
17 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
344 KB |
Output is correct |
59 |
Correct |
15 ms |
348 KB |
Output is correct |
60 |
Correct |
14 ms |
604 KB |
Output is correct |
61 |
Correct |
15 ms |
436 KB |
Output is correct |
62 |
Correct |
16 ms |
348 KB |
Output is correct |
63 |
Correct |
14 ms |
436 KB |
Output is correct |
64 |
Correct |
13 ms |
344 KB |
Output is correct |
65 |
Correct |
13 ms |
604 KB |
Output is correct |
66 |
Correct |
15 ms |
348 KB |
Output is correct |
67 |
Correct |
15 ms |
592 KB |
Output is correct |
68 |
Correct |
60 ms |
604 KB |
Output is correct |
69 |
Correct |
60 ms |
604 KB |
Output is correct |
70 |
Correct |
71 ms |
600 KB |
Output is correct |
71 |
Correct |
65 ms |
816 KB |
Output is correct |
72 |
Correct |
68 ms |
820 KB |
Output is correct |
73 |
Correct |
68 ms |
600 KB |
Output is correct |
74 |
Correct |
67 ms |
600 KB |
Output is correct |
75 |
Correct |
72 ms |
852 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 |
1 ms |
344 KB |
Output is correct |
80 |
Correct |
81 ms |
604 KB |
Output is correct |
81 |
Correct |
77 ms |
604 KB |
Output is correct |
82 |
Correct |
72 ms |
604 KB |
Output is correct |
83 |
Correct |
80 ms |
820 KB |
Output is correct |
84 |
Correct |
80 ms |
856 KB |
Output is correct |
85 |
Correct |
59 ms |
604 KB |
Output is correct |
86 |
Correct |
60 ms |
604 KB |
Output is correct |
87 |
Correct |
15 ms |
348 KB |
Output is correct |
88 |
Correct |
14 ms |
600 KB |
Output is correct |
89 |
Correct |
15 ms |
348 KB |
Output is correct |
90 |
Correct |
17 ms |
348 KB |
Output is correct |
91 |
Correct |
14 ms |
596 KB |
Output is correct |
92 |
Correct |
13 ms |
344 KB |
Output is correct |
93 |
Correct |
13 ms |
588 KB |
Output is correct |
94 |
Correct |
15 ms |
348 KB |
Output is correct |
95 |
Correct |
15 ms |
344 KB |
Output is correct |
96 |
Correct |
16 ms |
596 KB |
Output is correct |
97 |
Correct |
15 ms |
592 KB |
Output is correct |
98 |
Correct |
19 ms |
592 KB |
Output is correct |
99 |
Correct |
16 ms |
592 KB |
Output is correct |
100 |
Correct |
17 ms |
604 KB |
Output is correct |
101 |
Correct |
73 ms |
832 KB |
Output is correct |
102 |
Correct |
65 ms |
604 KB |
Output is correct |
103 |
Correct |
69 ms |
604 KB |
Output is correct |
104 |
Correct |
68 ms |
816 KB |
Output is correct |
105 |
Correct |
67 ms |
604 KB |
Output is correct |
106 |
Correct |
68 ms |
604 KB |
Output is correct |
107 |
Correct |
75 ms |
812 KB |
Output is correct |
108 |
Correct |
77 ms |
604 KB |
Output is correct |
109 |
Correct |
78 ms |
820 KB |
Output is correct |
110 |
Correct |
79 ms |
816 KB |
Output is correct |
111 |
Correct |
1 ms |
348 KB |
Output is correct |
112 |
Correct |
15 ms |
600 KB |
Output is correct |
113 |
Correct |
14 ms |
348 KB |
Output is correct |
114 |
Correct |
15 ms |
348 KB |
Output is correct |
115 |
Correct |
15 ms |
592 KB |
Output is correct |
116 |
Correct |
14 ms |
344 KB |
Output is correct |
117 |
Correct |
13 ms |
592 KB |
Output is correct |
118 |
Correct |
13 ms |
348 KB |
Output is correct |
119 |
Correct |
14 ms |
600 KB |
Output is correct |
120 |
Correct |
15 ms |
604 KB |
Output is correct |
121 |
Correct |
60 ms |
604 KB |
Output is correct |
122 |
Correct |
63 ms |
812 KB |
Output is correct |
123 |
Correct |
71 ms |
824 KB |
Output is correct |
124 |
Correct |
64 ms |
604 KB |
Output is correct |
125 |
Correct |
67 ms |
604 KB |
Output is correct |
126 |
Correct |
70 ms |
604 KB |
Output is correct |
127 |
Correct |
71 ms |
604 KB |
Output is correct |
128 |
Correct |
67 ms |
812 KB |
Output is correct |
129 |
Correct |
509 ms |
2024 KB |
Output is correct |
130 |
Correct |
504 ms |
2028 KB |
Output is correct |
131 |
Correct |
570 ms |
2024 KB |
Output is correct |
132 |
Correct |
552 ms |
1880 KB |
Output is correct |
133 |
Correct |
548 ms |
1884 KB |
Output is correct |
134 |
Correct |
574 ms |
2024 KB |
Output is correct |
135 |
Correct |
583 ms |
2280 KB |
Output is correct |
136 |
Correct |
530 ms |
2028 KB |
Output is correct |
137 |
Correct |
1 ms |
344 KB |
Output is correct |
138 |
Correct |
1 ms |
348 KB |
Output is correct |
139 |
Correct |
1 ms |
348 KB |
Output is correct |
140 |
Correct |
2 ms |
432 KB |
Output is correct |
141 |
Correct |
76 ms |
816 KB |
Output is correct |
142 |
Correct |
80 ms |
816 KB |
Output is correct |
143 |
Correct |
72 ms |
816 KB |
Output is correct |
144 |
Correct |
81 ms |
816 KB |
Output is correct |
145 |
Correct |
80 ms |
600 KB |
Output is correct |
146 |
Correct |
71 ms |
600 KB |
Output is correct |
147 |
Correct |
78 ms |
820 KB |
Output is correct |
148 |
Correct |
598 ms |
2024 KB |
Output is correct |
149 |
Correct |
585 ms |
2024 KB |
Output is correct |
150 |
Correct |
568 ms |
2028 KB |
Output is correct |
151 |
Correct |
604 ms |
2024 KB |
Output is correct |
152 |
Correct |
599 ms |
2032 KB |
Output is correct |
153 |
Correct |
499 ms |
2024 KB |
Output is correct |
154 |
Correct |
492 ms |
1884 KB |
Output is correct |
155 |
Correct |
15 ms |
348 KB |
Output is correct |
156 |
Correct |
15 ms |
604 KB |
Output is correct |
157 |
Correct |
15 ms |
604 KB |
Output is correct |
158 |
Correct |
15 ms |
348 KB |
Output is correct |
159 |
Correct |
14 ms |
592 KB |
Output is correct |
160 |
Correct |
13 ms |
348 KB |
Output is correct |
161 |
Correct |
13 ms |
600 KB |
Output is correct |
162 |
Correct |
15 ms |
348 KB |
Output is correct |
163 |
Correct |
15 ms |
348 KB |
Output is correct |
164 |
Correct |
69 ms |
812 KB |
Output is correct |
165 |
Correct |
67 ms |
812 KB |
Output is correct |
166 |
Correct |
68 ms |
848 KB |
Output is correct |
167 |
Correct |
68 ms |
816 KB |
Output is correct |
168 |
Correct |
66 ms |
604 KB |
Output is correct |
169 |
Correct |
71 ms |
604 KB |
Output is correct |
170 |
Correct |
16 ms |
344 KB |
Output is correct |
171 |
Correct |
15 ms |
348 KB |
Output is correct |
172 |
Correct |
18 ms |
600 KB |
Output is correct |
173 |
Correct |
18 ms |
600 KB |
Output is correct |
174 |
Correct |
17 ms |
604 KB |
Output is correct |
175 |
Correct |
76 ms |
604 KB |
Output is correct |
176 |
Correct |
80 ms |
600 KB |
Output is correct |
177 |
Correct |
80 ms |
820 KB |
Output is correct |
178 |
Correct |
78 ms |
820 KB |
Output is correct |
179 |
Correct |
545 ms |
2020 KB |
Output is correct |
180 |
Correct |
518 ms |
2132 KB |
Output is correct |
181 |
Correct |
538 ms |
1884 KB |
Output is correct |
182 |
Correct |
551 ms |
2020 KB |
Output is correct |
183 |
Correct |
543 ms |
2132 KB |
Output is correct |
184 |
Correct |
569 ms |
2276 KB |
Output is correct |
185 |
Correct |
565 ms |
1884 KB |
Output is correct |
186 |
Correct |
586 ms |
2132 KB |
Output is correct |
187 |
Correct |
609 ms |
2132 KB |
Output is correct |
188 |
Correct |
592 ms |
2032 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
16 ms |
592 KB |
Output is correct |
3 |
Correct |
14 ms |
344 KB |
Output is correct |
4 |
Correct |
15 ms |
344 KB |
Output is correct |
5 |
Correct |
15 ms |
596 KB |
Output is correct |
6 |
Correct |
14 ms |
592 KB |
Output is correct |
7 |
Correct |
13 ms |
348 KB |
Output is correct |
8 |
Correct |
13 ms |
600 KB |
Output is correct |
9 |
Correct |
14 ms |
600 KB |
Output is correct |
10 |
Correct |
14 ms |
344 KB |
Output is correct |
11 |
Correct |
1 ms |
344 KB |
Output is correct |
12 |
Correct |
15 ms |
348 KB |
Output is correct |
13 |
Correct |
14 ms |
604 KB |
Output is correct |
14 |
Correct |
15 ms |
436 KB |
Output is correct |
15 |
Correct |
16 ms |
348 KB |
Output is correct |
16 |
Correct |
14 ms |
436 KB |
Output is correct |
17 |
Correct |
13 ms |
344 KB |
Output is correct |
18 |
Correct |
13 ms |
604 KB |
Output is correct |
19 |
Correct |
15 ms |
348 KB |
Output is correct |
20 |
Correct |
15 ms |
592 KB |
Output is correct |
21 |
Correct |
60 ms |
604 KB |
Output is correct |
22 |
Correct |
60 ms |
604 KB |
Output is correct |
23 |
Correct |
71 ms |
600 KB |
Output is correct |
24 |
Correct |
65 ms |
816 KB |
Output is correct |
25 |
Correct |
68 ms |
820 KB |
Output is correct |
26 |
Correct |
68 ms |
600 KB |
Output is correct |
27 |
Correct |
67 ms |
600 KB |
Output is correct |
28 |
Correct |
72 ms |
852 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
15 ms |
600 KB |
Output is correct |
31 |
Correct |
14 ms |
348 KB |
Output is correct |
32 |
Correct |
15 ms |
348 KB |
Output is correct |
33 |
Correct |
15 ms |
592 KB |
Output is correct |
34 |
Correct |
14 ms |
344 KB |
Output is correct |
35 |
Correct |
13 ms |
592 KB |
Output is correct |
36 |
Correct |
13 ms |
348 KB |
Output is correct |
37 |
Correct |
14 ms |
600 KB |
Output is correct |
38 |
Correct |
15 ms |
604 KB |
Output is correct |
39 |
Correct |
60 ms |
604 KB |
Output is correct |
40 |
Correct |
63 ms |
812 KB |
Output is correct |
41 |
Correct |
71 ms |
824 KB |
Output is correct |
42 |
Correct |
64 ms |
604 KB |
Output is correct |
43 |
Correct |
67 ms |
604 KB |
Output is correct |
44 |
Correct |
70 ms |
604 KB |
Output is correct |
45 |
Correct |
71 ms |
604 KB |
Output is correct |
46 |
Correct |
67 ms |
812 KB |
Output is correct |
47 |
Correct |
509 ms |
2024 KB |
Output is correct |
48 |
Correct |
504 ms |
2028 KB |
Output is correct |
49 |
Correct |
570 ms |
2024 KB |
Output is correct |
50 |
Correct |
552 ms |
1880 KB |
Output is correct |
51 |
Correct |
548 ms |
1884 KB |
Output is correct |
52 |
Correct |
574 ms |
2024 KB |
Output is correct |
53 |
Correct |
583 ms |
2280 KB |
Output is correct |
54 |
Correct |
530 ms |
2028 KB |
Output is correct |
55 |
Correct |
1 ms |
348 KB |
Output is correct |
56 |
Correct |
15 ms |
592 KB |
Output is correct |
57 |
Correct |
14 ms |
348 KB |
Output is correct |
58 |
Correct |
15 ms |
604 KB |
Output is correct |
59 |
Correct |
15 ms |
348 KB |
Output is correct |
60 |
Correct |
15 ms |
592 KB |
Output is correct |
61 |
Correct |
14 ms |
348 KB |
Output is correct |
62 |
Correct |
14 ms |
604 KB |
Output is correct |
63 |
Correct |
14 ms |
348 KB |
Output is correct |
64 |
Correct |
14 ms |
572 KB |
Output is correct |
65 |
Correct |
60 ms |
604 KB |
Output is correct |
66 |
Correct |
60 ms |
812 KB |
Output is correct |
67 |
Correct |
68 ms |
600 KB |
Output is correct |
68 |
Correct |
65 ms |
604 KB |
Output is correct |
69 |
Correct |
67 ms |
604 KB |
Output is correct |
70 |
Correct |
68 ms |
604 KB |
Output is correct |
71 |
Correct |
66 ms |
604 KB |
Output is correct |
72 |
Correct |
69 ms |
604 KB |
Output is correct |
73 |
Correct |
492 ms |
2036 KB |
Output is correct |
74 |
Correct |
490 ms |
1884 KB |
Output is correct |
75 |
Correct |
552 ms |
2132 KB |
Output is correct |
76 |
Correct |
520 ms |
1884 KB |
Output is correct |
77 |
Correct |
540 ms |
2028 KB |
Output is correct |
78 |
Correct |
550 ms |
1880 KB |
Output is correct |
79 |
Correct |
554 ms |
1884 KB |
Output is correct |
80 |
Correct |
537 ms |
2024 KB |
Output is correct |
81 |
Execution timed out |
5087 ms |
18300 KB |
Time limit exceeded |
82 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
356 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
82 ms |
604 KB |
Output is correct |
6 |
Correct |
76 ms |
848 KB |
Output is correct |
7 |
Correct |
72 ms |
604 KB |
Output is correct |
8 |
Correct |
77 ms |
604 KB |
Output is correct |
9 |
Correct |
80 ms |
600 KB |
Output is correct |
10 |
Correct |
59 ms |
812 KB |
Output is correct |
11 |
Correct |
67 ms |
816 KB |
Output is correct |
12 |
Correct |
0 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
432 KB |
Output is correct |
14 |
Correct |
0 ms |
344 KB |
Output is correct |
15 |
Correct |
1 ms |
348 KB |
Output is correct |
16 |
Correct |
77 ms |
816 KB |
Output is correct |
17 |
Correct |
75 ms |
604 KB |
Output is correct |
18 |
Correct |
72 ms |
600 KB |
Output is correct |
19 |
Correct |
77 ms |
816 KB |
Output is correct |
20 |
Correct |
80 ms |
600 KB |
Output is correct |
21 |
Correct |
60 ms |
820 KB |
Output is correct |
22 |
Correct |
61 ms |
604 KB |
Output is correct |
23 |
Correct |
595 ms |
2028 KB |
Output is correct |
24 |
Correct |
585 ms |
2028 KB |
Output is correct |
25 |
Correct |
574 ms |
2024 KB |
Output is correct |
26 |
Correct |
608 ms |
2024 KB |
Output is correct |
27 |
Correct |
613 ms |
2032 KB |
Output is correct |
28 |
Correct |
507 ms |
2128 KB |
Output is correct |
29 |
Correct |
503 ms |
1972 KB |
Output is correct |
30 |
Correct |
1 ms |
344 KB |
Output is correct |
31 |
Correct |
16 ms |
592 KB |
Output is correct |
32 |
Correct |
14 ms |
344 KB |
Output is correct |
33 |
Correct |
15 ms |
344 KB |
Output is correct |
34 |
Correct |
15 ms |
596 KB |
Output is correct |
35 |
Correct |
14 ms |
592 KB |
Output is correct |
36 |
Correct |
13 ms |
348 KB |
Output is correct |
37 |
Correct |
13 ms |
600 KB |
Output is correct |
38 |
Correct |
14 ms |
600 KB |
Output is correct |
39 |
Correct |
14 ms |
344 KB |
Output is correct |
40 |
Correct |
1 ms |
348 KB |
Output is correct |
41 |
Correct |
1 ms |
344 KB |
Output is correct |
42 |
Correct |
0 ms |
344 KB |
Output is correct |
43 |
Correct |
1 ms |
348 KB |
Output is correct |
44 |
Correct |
15 ms |
600 KB |
Output is correct |
45 |
Correct |
14 ms |
600 KB |
Output is correct |
46 |
Correct |
15 ms |
348 KB |
Output is correct |
47 |
Correct |
16 ms |
604 KB |
Output is correct |
48 |
Correct |
15 ms |
348 KB |
Output is correct |
49 |
Correct |
13 ms |
596 KB |
Output is correct |
50 |
Correct |
13 ms |
348 KB |
Output is correct |
51 |
Correct |
14 ms |
432 KB |
Output is correct |
52 |
Correct |
15 ms |
604 KB |
Output is correct |
53 |
Correct |
17 ms |
348 KB |
Output is correct |
54 |
Correct |
16 ms |
344 KB |
Output is correct |
55 |
Correct |
18 ms |
348 KB |
Output is correct |
56 |
Correct |
16 ms |
604 KB |
Output is correct |
57 |
Correct |
17 ms |
348 KB |
Output is correct |
58 |
Correct |
1 ms |
344 KB |
Output is correct |
59 |
Correct |
15 ms |
348 KB |
Output is correct |
60 |
Correct |
14 ms |
604 KB |
Output is correct |
61 |
Correct |
15 ms |
436 KB |
Output is correct |
62 |
Correct |
16 ms |
348 KB |
Output is correct |
63 |
Correct |
14 ms |
436 KB |
Output is correct |
64 |
Correct |
13 ms |
344 KB |
Output is correct |
65 |
Correct |
13 ms |
604 KB |
Output is correct |
66 |
Correct |
15 ms |
348 KB |
Output is correct |
67 |
Correct |
15 ms |
592 KB |
Output is correct |
68 |
Correct |
60 ms |
604 KB |
Output is correct |
69 |
Correct |
60 ms |
604 KB |
Output is correct |
70 |
Correct |
71 ms |
600 KB |
Output is correct |
71 |
Correct |
65 ms |
816 KB |
Output is correct |
72 |
Correct |
68 ms |
820 KB |
Output is correct |
73 |
Correct |
68 ms |
600 KB |
Output is correct |
74 |
Correct |
67 ms |
600 KB |
Output is correct |
75 |
Correct |
72 ms |
852 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 |
1 ms |
344 KB |
Output is correct |
80 |
Correct |
81 ms |
604 KB |
Output is correct |
81 |
Correct |
77 ms |
604 KB |
Output is correct |
82 |
Correct |
72 ms |
604 KB |
Output is correct |
83 |
Correct |
80 ms |
820 KB |
Output is correct |
84 |
Correct |
80 ms |
856 KB |
Output is correct |
85 |
Correct |
59 ms |
604 KB |
Output is correct |
86 |
Correct |
60 ms |
604 KB |
Output is correct |
87 |
Correct |
15 ms |
348 KB |
Output is correct |
88 |
Correct |
14 ms |
600 KB |
Output is correct |
89 |
Correct |
15 ms |
348 KB |
Output is correct |
90 |
Correct |
17 ms |
348 KB |
Output is correct |
91 |
Correct |
14 ms |
596 KB |
Output is correct |
92 |
Correct |
13 ms |
344 KB |
Output is correct |
93 |
Correct |
13 ms |
588 KB |
Output is correct |
94 |
Correct |
15 ms |
348 KB |
Output is correct |
95 |
Correct |
15 ms |
344 KB |
Output is correct |
96 |
Correct |
16 ms |
596 KB |
Output is correct |
97 |
Correct |
15 ms |
592 KB |
Output is correct |
98 |
Correct |
19 ms |
592 KB |
Output is correct |
99 |
Correct |
16 ms |
592 KB |
Output is correct |
100 |
Correct |
17 ms |
604 KB |
Output is correct |
101 |
Correct |
73 ms |
832 KB |
Output is correct |
102 |
Correct |
65 ms |
604 KB |
Output is correct |
103 |
Correct |
69 ms |
604 KB |
Output is correct |
104 |
Correct |
68 ms |
816 KB |
Output is correct |
105 |
Correct |
67 ms |
604 KB |
Output is correct |
106 |
Correct |
68 ms |
604 KB |
Output is correct |
107 |
Correct |
75 ms |
812 KB |
Output is correct |
108 |
Correct |
77 ms |
604 KB |
Output is correct |
109 |
Correct |
78 ms |
820 KB |
Output is correct |
110 |
Correct |
79 ms |
816 KB |
Output is correct |
111 |
Correct |
1 ms |
348 KB |
Output is correct |
112 |
Correct |
15 ms |
600 KB |
Output is correct |
113 |
Correct |
14 ms |
348 KB |
Output is correct |
114 |
Correct |
15 ms |
348 KB |
Output is correct |
115 |
Correct |
15 ms |
592 KB |
Output is correct |
116 |
Correct |
14 ms |
344 KB |
Output is correct |
117 |
Correct |
13 ms |
592 KB |
Output is correct |
118 |
Correct |
13 ms |
348 KB |
Output is correct |
119 |
Correct |
14 ms |
600 KB |
Output is correct |
120 |
Correct |
15 ms |
604 KB |
Output is correct |
121 |
Correct |
60 ms |
604 KB |
Output is correct |
122 |
Correct |
63 ms |
812 KB |
Output is correct |
123 |
Correct |
71 ms |
824 KB |
Output is correct |
124 |
Correct |
64 ms |
604 KB |
Output is correct |
125 |
Correct |
67 ms |
604 KB |
Output is correct |
126 |
Correct |
70 ms |
604 KB |
Output is correct |
127 |
Correct |
71 ms |
604 KB |
Output is correct |
128 |
Correct |
67 ms |
812 KB |
Output is correct |
129 |
Correct |
509 ms |
2024 KB |
Output is correct |
130 |
Correct |
504 ms |
2028 KB |
Output is correct |
131 |
Correct |
570 ms |
2024 KB |
Output is correct |
132 |
Correct |
552 ms |
1880 KB |
Output is correct |
133 |
Correct |
548 ms |
1884 KB |
Output is correct |
134 |
Correct |
574 ms |
2024 KB |
Output is correct |
135 |
Correct |
583 ms |
2280 KB |
Output is correct |
136 |
Correct |
530 ms |
2028 KB |
Output is correct |
137 |
Correct |
1 ms |
344 KB |
Output is correct |
138 |
Correct |
1 ms |
348 KB |
Output is correct |
139 |
Correct |
1 ms |
348 KB |
Output is correct |
140 |
Correct |
2 ms |
432 KB |
Output is correct |
141 |
Correct |
76 ms |
816 KB |
Output is correct |
142 |
Correct |
80 ms |
816 KB |
Output is correct |
143 |
Correct |
72 ms |
816 KB |
Output is correct |
144 |
Correct |
81 ms |
816 KB |
Output is correct |
145 |
Correct |
80 ms |
600 KB |
Output is correct |
146 |
Correct |
71 ms |
600 KB |
Output is correct |
147 |
Correct |
78 ms |
820 KB |
Output is correct |
148 |
Correct |
598 ms |
2024 KB |
Output is correct |
149 |
Correct |
585 ms |
2024 KB |
Output is correct |
150 |
Correct |
568 ms |
2028 KB |
Output is correct |
151 |
Correct |
604 ms |
2024 KB |
Output is correct |
152 |
Correct |
599 ms |
2032 KB |
Output is correct |
153 |
Correct |
499 ms |
2024 KB |
Output is correct |
154 |
Correct |
492 ms |
1884 KB |
Output is correct |
155 |
Correct |
15 ms |
348 KB |
Output is correct |
156 |
Correct |
15 ms |
604 KB |
Output is correct |
157 |
Correct |
15 ms |
604 KB |
Output is correct |
158 |
Correct |
15 ms |
348 KB |
Output is correct |
159 |
Correct |
14 ms |
592 KB |
Output is correct |
160 |
Correct |
13 ms |
348 KB |
Output is correct |
161 |
Correct |
13 ms |
600 KB |
Output is correct |
162 |
Correct |
15 ms |
348 KB |
Output is correct |
163 |
Correct |
15 ms |
348 KB |
Output is correct |
164 |
Correct |
69 ms |
812 KB |
Output is correct |
165 |
Correct |
67 ms |
812 KB |
Output is correct |
166 |
Correct |
68 ms |
848 KB |
Output is correct |
167 |
Correct |
68 ms |
816 KB |
Output is correct |
168 |
Correct |
66 ms |
604 KB |
Output is correct |
169 |
Correct |
71 ms |
604 KB |
Output is correct |
170 |
Correct |
16 ms |
344 KB |
Output is correct |
171 |
Correct |
15 ms |
348 KB |
Output is correct |
172 |
Correct |
18 ms |
600 KB |
Output is correct |
173 |
Correct |
18 ms |
600 KB |
Output is correct |
174 |
Correct |
17 ms |
604 KB |
Output is correct |
175 |
Correct |
76 ms |
604 KB |
Output is correct |
176 |
Correct |
80 ms |
600 KB |
Output is correct |
177 |
Correct |
80 ms |
820 KB |
Output is correct |
178 |
Correct |
78 ms |
820 KB |
Output is correct |
179 |
Correct |
545 ms |
2020 KB |
Output is correct |
180 |
Correct |
518 ms |
2132 KB |
Output is correct |
181 |
Correct |
538 ms |
1884 KB |
Output is correct |
182 |
Correct |
551 ms |
2020 KB |
Output is correct |
183 |
Correct |
543 ms |
2132 KB |
Output is correct |
184 |
Correct |
569 ms |
2276 KB |
Output is correct |
185 |
Correct |
565 ms |
1884 KB |
Output is correct |
186 |
Correct |
586 ms |
2132 KB |
Output is correct |
187 |
Correct |
609 ms |
2132 KB |
Output is correct |
188 |
Correct |
592 ms |
2032 KB |
Output is correct |
189 |
Correct |
1 ms |
348 KB |
Output is correct |
190 |
Correct |
15 ms |
592 KB |
Output is correct |
191 |
Correct |
14 ms |
348 KB |
Output is correct |
192 |
Correct |
15 ms |
604 KB |
Output is correct |
193 |
Correct |
15 ms |
348 KB |
Output is correct |
194 |
Correct |
15 ms |
592 KB |
Output is correct |
195 |
Correct |
14 ms |
348 KB |
Output is correct |
196 |
Correct |
14 ms |
604 KB |
Output is correct |
197 |
Correct |
14 ms |
348 KB |
Output is correct |
198 |
Correct |
14 ms |
572 KB |
Output is correct |
199 |
Correct |
60 ms |
604 KB |
Output is correct |
200 |
Correct |
60 ms |
812 KB |
Output is correct |
201 |
Correct |
68 ms |
600 KB |
Output is correct |
202 |
Correct |
65 ms |
604 KB |
Output is correct |
203 |
Correct |
67 ms |
604 KB |
Output is correct |
204 |
Correct |
68 ms |
604 KB |
Output is correct |
205 |
Correct |
66 ms |
604 KB |
Output is correct |
206 |
Correct |
69 ms |
604 KB |
Output is correct |
207 |
Correct |
492 ms |
2036 KB |
Output is correct |
208 |
Correct |
490 ms |
1884 KB |
Output is correct |
209 |
Correct |
552 ms |
2132 KB |
Output is correct |
210 |
Correct |
520 ms |
1884 KB |
Output is correct |
211 |
Correct |
540 ms |
2028 KB |
Output is correct |
212 |
Correct |
550 ms |
1880 KB |
Output is correct |
213 |
Correct |
554 ms |
1884 KB |
Output is correct |
214 |
Correct |
537 ms |
2024 KB |
Output is correct |
215 |
Execution timed out |
5087 ms |
18300 KB |
Time limit exceeded |
216 |
Halted |
0 ms |
0 KB |
- |