#include<bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const int maxn = 305;
long long A[2*maxn], inp[2*maxn];
int bs_A[2*maxn][65];
vector<pair<int, long long>> g[65][maxn];
long long dp[2][4*maxn*maxn];
long long tmp[4*maxn*maxn];
long long mx(const long long &a, const long long &b){return a > b ? a : b;}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int m;
long long L;
cin >> m >> L;
for(int i = 0; i <= 2*m; i++)cin >> A[i];
if(L < 0){
L*=-1;
for(int i = 1; i <= m; i++)swap(A[m-i], A[m+i]);
}
for(int i = 0; i <= 2*m; i++){
if(i == m)continue;
for(int j = 0; j <= 60; j++){
if(A[i] == 0)break;
bs_A[i][j] = A[i]&1 ? 1 : 2;
A[i] = (A[i]-1)/2;
}
}
for(int b = 0; b <= 60; b++){
for(int i = 1; i <= m; i++){
map<int, long long> mp;
for(int p_val = 0; p_val <= bs_A[m+i][b]; p_val++){
for(int n_val = 0; n_val <= bs_A[m-i][b]; n_val++){
mp[(p_val - n_val)*i] = max<long long>(mp[(p_val - n_val)*i], p_val + n_val);
}
}
for(auto v: mp)g[b][i].push_back({v.first, v.second<<b});
}
}
int sum = m*(m+1)*2;
for(int i = 0; i <= 2*sum; i++)dp[0][i] = dp[1][i] = -INF;
dp[0][sum] = 0;
for(int b = 0; b <= 50; b++){
for(int i = 0; i <= 2*m; i++){
for(int j = 0; j <= 2*sum; j++)dp[i&1][j] = max(dp[i&1][j], dp[(i&1)^1][j]);
for(int l = 1; l <= bs_A[i][b]; l++){
int val = (m-i)*l;
}
for(auto v: g[b][i])for(int j = (v.first > 0 ? 0 : -v.first); j <= (v.first > 0 ? 2*sum - v.first : 2*sum); j++)dp[i&1][j + v.first] = mx(dp[i&1][j + v.first], dp[(i&1)^1][j] + v.second);
}
for(int j = 0; j <= 2*sum; j++)tmp[j] = -INF;
for(int i = 0; i <= 2*sum; i++){
if(((i&1)^(sum&1)) != ((L>>b)&1))continue;
int ri = i - sum, pos;
if(ri < 0)pos = (ri-1)/2 + sum;
else pos = ri/2 + sum;
assert(pos >= 0 && pos <= 2*sum);
tmp[pos] = max(tmp[pos], dp[0][i]);
}
for(int i = 0; i <= 2*sum; i++){
dp[0][i] = tmp[i];
dp[1][i] = -INF;
}
}
if(dp[0][sum] < 0)cout << "impossible";
else cout << dp[0][sum] + A[m];
}
Compilation message
vault.cpp: In function 'int main()':
vault.cpp:55:9: warning: unused variable 'val' [-Wunused-variable]
55 | int val = (m-i)*l;
| ^~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
860 KB |
Output is correct |
2 |
Correct |
1 ms |
860 KB |
Output is correct |
3 |
Correct |
0 ms |
860 KB |
Output is correct |
4 |
Correct |
1 ms |
856 KB |
Output is correct |
5 |
Correct |
59 ms |
1308 KB |
Output is correct |
6 |
Correct |
70 ms |
1304 KB |
Output is correct |
7 |
Correct |
67 ms |
1304 KB |
Output is correct |
8 |
Correct |
63 ms |
1116 KB |
Output is correct |
9 |
Correct |
70 ms |
1116 KB |
Output is correct |
10 |
Correct |
62 ms |
1272 KB |
Output is correct |
11 |
Correct |
54 ms |
1112 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
860 KB |
Output is correct |
2 |
Correct |
1 ms |
860 KB |
Output is correct |
3 |
Correct |
0 ms |
860 KB |
Output is correct |
4 |
Correct |
1 ms |
856 KB |
Output is correct |
5 |
Correct |
59 ms |
1308 KB |
Output is correct |
6 |
Correct |
70 ms |
1304 KB |
Output is correct |
7 |
Correct |
67 ms |
1304 KB |
Output is correct |
8 |
Correct |
63 ms |
1116 KB |
Output is correct |
9 |
Correct |
70 ms |
1116 KB |
Output is correct |
10 |
Correct |
62 ms |
1272 KB |
Output is correct |
11 |
Correct |
54 ms |
1112 KB |
Output is correct |
12 |
Correct |
1 ms |
860 KB |
Output is correct |
13 |
Correct |
1 ms |
860 KB |
Output is correct |
14 |
Correct |
1 ms |
860 KB |
Output is correct |
15 |
Correct |
1 ms |
860 KB |
Output is correct |
16 |
Correct |
61 ms |
1116 KB |
Output is correct |
17 |
Correct |
59 ms |
1112 KB |
Output is correct |
18 |
Correct |
57 ms |
1116 KB |
Output is correct |
19 |
Correct |
57 ms |
1112 KB |
Output is correct |
20 |
Correct |
59 ms |
1116 KB |
Output is correct |
21 |
Correct |
54 ms |
1116 KB |
Output is correct |
22 |
Correct |
55 ms |
1116 KB |
Output is correct |
23 |
Correct |
500 ms |
2152 KB |
Output is correct |
24 |
Correct |
489 ms |
2120 KB |
Output is correct |
25 |
Correct |
449 ms |
2140 KB |
Output is correct |
26 |
Correct |
475 ms |
2164 KB |
Output is correct |
27 |
Correct |
495 ms |
2140 KB |
Output is correct |
28 |
Correct |
441 ms |
2076 KB |
Output is correct |
29 |
Correct |
431 ms |
1884 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
860 KB |
Output is correct |
2 |
Correct |
18 ms |
1136 KB |
Output is correct |
3 |
Correct |
14 ms |
1116 KB |
Output is correct |
4 |
Correct |
16 ms |
1124 KB |
Output is correct |
5 |
Correct |
27 ms |
1116 KB |
Output is correct |
6 |
Correct |
15 ms |
1112 KB |
Output is correct |
7 |
Correct |
15 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
860 KB |
Output is correct |
9 |
Correct |
14 ms |
1116 KB |
Output is correct |
10 |
Correct |
14 ms |
1116 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
860 KB |
Output is correct |
2 |
Correct |
18 ms |
1136 KB |
Output is correct |
3 |
Correct |
14 ms |
1116 KB |
Output is correct |
4 |
Correct |
16 ms |
1124 KB |
Output is correct |
5 |
Correct |
27 ms |
1116 KB |
Output is correct |
6 |
Correct |
15 ms |
1112 KB |
Output is correct |
7 |
Correct |
15 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
860 KB |
Output is correct |
9 |
Correct |
14 ms |
1116 KB |
Output is correct |
10 |
Correct |
14 ms |
1116 KB |
Output is correct |
11 |
Correct |
1 ms |
860 KB |
Output is correct |
12 |
Correct |
1 ms |
860 KB |
Output is correct |
13 |
Correct |
0 ms |
860 KB |
Output is correct |
14 |
Correct |
1 ms |
860 KB |
Output is correct |
15 |
Correct |
15 ms |
1112 KB |
Output is correct |
16 |
Correct |
15 ms |
860 KB |
Output is correct |
17 |
Correct |
15 ms |
1112 KB |
Output is correct |
18 |
Correct |
15 ms |
1116 KB |
Output is correct |
19 |
Correct |
19 ms |
1112 KB |
Output is correct |
20 |
Correct |
13 ms |
1112 KB |
Output is correct |
21 |
Correct |
13 ms |
1112 KB |
Output is correct |
22 |
Correct |
13 ms |
860 KB |
Output is correct |
23 |
Correct |
14 ms |
1116 KB |
Output is correct |
24 |
Correct |
18 ms |
1112 KB |
Output is correct |
25 |
Correct |
14 ms |
1116 KB |
Output is correct |
26 |
Correct |
17 ms |
1156 KB |
Output is correct |
27 |
Correct |
15 ms |
1136 KB |
Output is correct |
28 |
Correct |
16 ms |
1116 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
860 KB |
Output is correct |
2 |
Correct |
18 ms |
1136 KB |
Output is correct |
3 |
Correct |
14 ms |
1116 KB |
Output is correct |
4 |
Correct |
16 ms |
1124 KB |
Output is correct |
5 |
Correct |
27 ms |
1116 KB |
Output is correct |
6 |
Correct |
15 ms |
1112 KB |
Output is correct |
7 |
Correct |
15 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
860 KB |
Output is correct |
9 |
Correct |
14 ms |
1116 KB |
Output is correct |
10 |
Correct |
14 ms |
1116 KB |
Output is correct |
11 |
Correct |
1 ms |
860 KB |
Output is correct |
12 |
Correct |
15 ms |
1116 KB |
Output is correct |
13 |
Correct |
13 ms |
1116 KB |
Output is correct |
14 |
Correct |
21 ms |
1116 KB |
Output is correct |
15 |
Correct |
15 ms |
1124 KB |
Output is correct |
16 |
Correct |
25 ms |
1116 KB |
Output is correct |
17 |
Correct |
14 ms |
860 KB |
Output is correct |
18 |
Correct |
13 ms |
860 KB |
Output is correct |
19 |
Correct |
13 ms |
1112 KB |
Output is correct |
20 |
Correct |
13 ms |
1124 KB |
Output is correct |
21 |
Correct |
53 ms |
1116 KB |
Output is correct |
22 |
Correct |
61 ms |
1372 KB |
Output is correct |
23 |
Correct |
61 ms |
1116 KB |
Output is correct |
24 |
Correct |
58 ms |
1116 KB |
Output is correct |
25 |
Correct |
61 ms |
1116 KB |
Output is correct |
26 |
Correct |
64 ms |
1112 KB |
Output is correct |
27 |
Correct |
75 ms |
1116 KB |
Output is correct |
28 |
Correct |
78 ms |
1116 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
860 KB |
Output is correct |
2 |
Correct |
1 ms |
860 KB |
Output is correct |
3 |
Correct |
0 ms |
860 KB |
Output is correct |
4 |
Correct |
1 ms |
856 KB |
Output is correct |
5 |
Correct |
59 ms |
1308 KB |
Output is correct |
6 |
Correct |
70 ms |
1304 KB |
Output is correct |
7 |
Correct |
67 ms |
1304 KB |
Output is correct |
8 |
Correct |
63 ms |
1116 KB |
Output is correct |
9 |
Correct |
70 ms |
1116 KB |
Output is correct |
10 |
Correct |
62 ms |
1272 KB |
Output is correct |
11 |
Correct |
54 ms |
1112 KB |
Output is correct |
12 |
Correct |
2 ms |
860 KB |
Output is correct |
13 |
Correct |
18 ms |
1136 KB |
Output is correct |
14 |
Correct |
14 ms |
1116 KB |
Output is correct |
15 |
Correct |
16 ms |
1124 KB |
Output is correct |
16 |
Correct |
27 ms |
1116 KB |
Output is correct |
17 |
Correct |
15 ms |
1112 KB |
Output is correct |
18 |
Correct |
15 ms |
856 KB |
Output is correct |
19 |
Correct |
13 ms |
860 KB |
Output is correct |
20 |
Correct |
14 ms |
1116 KB |
Output is correct |
21 |
Correct |
14 ms |
1116 KB |
Output is correct |
22 |
Correct |
1 ms |
860 KB |
Output is correct |
23 |
Correct |
1 ms |
860 KB |
Output is correct |
24 |
Correct |
0 ms |
860 KB |
Output is correct |
25 |
Correct |
1 ms |
860 KB |
Output is correct |
26 |
Correct |
15 ms |
1112 KB |
Output is correct |
27 |
Correct |
15 ms |
860 KB |
Output is correct |
28 |
Correct |
15 ms |
1112 KB |
Output is correct |
29 |
Correct |
15 ms |
1116 KB |
Output is correct |
30 |
Correct |
19 ms |
1112 KB |
Output is correct |
31 |
Correct |
13 ms |
1112 KB |
Output is correct |
32 |
Correct |
13 ms |
1112 KB |
Output is correct |
33 |
Correct |
13 ms |
860 KB |
Output is correct |
34 |
Correct |
14 ms |
1116 KB |
Output is correct |
35 |
Correct |
18 ms |
1112 KB |
Output is correct |
36 |
Correct |
14 ms |
1116 KB |
Output is correct |
37 |
Correct |
17 ms |
1156 KB |
Output is correct |
38 |
Correct |
15 ms |
1136 KB |
Output is correct |
39 |
Correct |
16 ms |
1116 KB |
Output is correct |
40 |
Correct |
1 ms |
860 KB |
Output is correct |
41 |
Correct |
15 ms |
1116 KB |
Output is correct |
42 |
Correct |
13 ms |
1116 KB |
Output is correct |
43 |
Correct |
21 ms |
1116 KB |
Output is correct |
44 |
Correct |
15 ms |
1124 KB |
Output is correct |
45 |
Correct |
25 ms |
1116 KB |
Output is correct |
46 |
Correct |
14 ms |
860 KB |
Output is correct |
47 |
Correct |
13 ms |
860 KB |
Output is correct |
48 |
Correct |
13 ms |
1112 KB |
Output is correct |
49 |
Correct |
13 ms |
1124 KB |
Output is correct |
50 |
Correct |
53 ms |
1116 KB |
Output is correct |
51 |
Correct |
61 ms |
1372 KB |
Output is correct |
52 |
Correct |
61 ms |
1116 KB |
Output is correct |
53 |
Correct |
58 ms |
1116 KB |
Output is correct |
54 |
Correct |
61 ms |
1116 KB |
Output is correct |
55 |
Correct |
64 ms |
1112 KB |
Output is correct |
56 |
Correct |
75 ms |
1116 KB |
Output is correct |
57 |
Correct |
78 ms |
1116 KB |
Output is correct |
58 |
Correct |
1 ms |
860 KB |
Output is correct |
59 |
Correct |
0 ms |
860 KB |
Output is correct |
60 |
Correct |
1 ms |
860 KB |
Output is correct |
61 |
Correct |
1 ms |
860 KB |
Output is correct |
62 |
Correct |
58 ms |
1116 KB |
Output is correct |
63 |
Correct |
57 ms |
1116 KB |
Output is correct |
64 |
Correct |
56 ms |
1116 KB |
Output is correct |
65 |
Correct |
61 ms |
1248 KB |
Output is correct |
66 |
Correct |
58 ms |
1316 KB |
Output is correct |
67 |
Correct |
58 ms |
1276 KB |
Output is correct |
68 |
Correct |
54 ms |
1116 KB |
Output is correct |
69 |
Correct |
17 ms |
1116 KB |
Output is correct |
70 |
Correct |
13 ms |
1116 KB |
Output is correct |
71 |
Correct |
15 ms |
1116 KB |
Output is correct |
72 |
Correct |
14 ms |
1124 KB |
Output is correct |
73 |
Correct |
13 ms |
1116 KB |
Output is correct |
74 |
Correct |
19 ms |
1116 KB |
Output is correct |
75 |
Correct |
13 ms |
860 KB |
Output is correct |
76 |
Correct |
13 ms |
884 KB |
Output is correct |
77 |
Correct |
14 ms |
1124 KB |
Output is correct |
78 |
Correct |
17 ms |
1116 KB |
Output is correct |
79 |
Correct |
14 ms |
1116 KB |
Output is correct |
80 |
Correct |
16 ms |
1148 KB |
Output is correct |
81 |
Correct |
16 ms |
1116 KB |
Output is correct |
82 |
Correct |
18 ms |
1116 KB |
Output is correct |
83 |
Correct |
60 ms |
1304 KB |
Output is correct |
84 |
Correct |
57 ms |
1276 KB |
Output is correct |
85 |
Correct |
61 ms |
1112 KB |
Output is correct |
86 |
Correct |
62 ms |
1112 KB |
Output is correct |
87 |
Correct |
61 ms |
1308 KB |
Output is correct |
88 |
Correct |
61 ms |
1116 KB |
Output is correct |
89 |
Correct |
67 ms |
1116 KB |
Output is correct |
90 |
Correct |
70 ms |
1112 KB |
Output is correct |
91 |
Correct |
68 ms |
1336 KB |
Output is correct |
92 |
Correct |
75 ms |
1116 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
860 KB |
Output is correct |
2 |
Correct |
18 ms |
1136 KB |
Output is correct |
3 |
Correct |
14 ms |
1116 KB |
Output is correct |
4 |
Correct |
16 ms |
1124 KB |
Output is correct |
5 |
Correct |
27 ms |
1116 KB |
Output is correct |
6 |
Correct |
15 ms |
1112 KB |
Output is correct |
7 |
Correct |
15 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
860 KB |
Output is correct |
9 |
Correct |
14 ms |
1116 KB |
Output is correct |
10 |
Correct |
14 ms |
1116 KB |
Output is correct |
11 |
Correct |
1 ms |
860 KB |
Output is correct |
12 |
Correct |
15 ms |
1116 KB |
Output is correct |
13 |
Correct |
13 ms |
1116 KB |
Output is correct |
14 |
Correct |
21 ms |
1116 KB |
Output is correct |
15 |
Correct |
15 ms |
1124 KB |
Output is correct |
16 |
Correct |
25 ms |
1116 KB |
Output is correct |
17 |
Correct |
14 ms |
860 KB |
Output is correct |
18 |
Correct |
13 ms |
860 KB |
Output is correct |
19 |
Correct |
13 ms |
1112 KB |
Output is correct |
20 |
Correct |
13 ms |
1124 KB |
Output is correct |
21 |
Correct |
53 ms |
1116 KB |
Output is correct |
22 |
Correct |
61 ms |
1372 KB |
Output is correct |
23 |
Correct |
61 ms |
1116 KB |
Output is correct |
24 |
Correct |
58 ms |
1116 KB |
Output is correct |
25 |
Correct |
61 ms |
1116 KB |
Output is correct |
26 |
Correct |
64 ms |
1112 KB |
Output is correct |
27 |
Correct |
75 ms |
1116 KB |
Output is correct |
28 |
Correct |
78 ms |
1116 KB |
Output is correct |
29 |
Correct |
1 ms |
856 KB |
Output is correct |
30 |
Correct |
15 ms |
1132 KB |
Output is correct |
31 |
Correct |
13 ms |
1116 KB |
Output is correct |
32 |
Correct |
14 ms |
1136 KB |
Output is correct |
33 |
Correct |
15 ms |
1112 KB |
Output is correct |
34 |
Correct |
14 ms |
1116 KB |
Output is correct |
35 |
Correct |
16 ms |
1108 KB |
Output is correct |
36 |
Correct |
13 ms |
860 KB |
Output is correct |
37 |
Correct |
13 ms |
1120 KB |
Output is correct |
38 |
Correct |
14 ms |
1124 KB |
Output is correct |
39 |
Correct |
53 ms |
1116 KB |
Output is correct |
40 |
Correct |
53 ms |
1116 KB |
Output is correct |
41 |
Correct |
61 ms |
1116 KB |
Output is correct |
42 |
Correct |
59 ms |
1116 KB |
Output is correct |
43 |
Correct |
64 ms |
1116 KB |
Output is correct |
44 |
Correct |
74 ms |
1316 KB |
Output is correct |
45 |
Correct |
79 ms |
1116 KB |
Output is correct |
46 |
Correct |
63 ms |
1112 KB |
Output is correct |
47 |
Correct |
425 ms |
2132 KB |
Output is correct |
48 |
Correct |
423 ms |
1880 KB |
Output is correct |
49 |
Correct |
481 ms |
2144 KB |
Output is correct |
50 |
Correct |
451 ms |
2136 KB |
Output is correct |
51 |
Correct |
501 ms |
2136 KB |
Output is correct |
52 |
Correct |
499 ms |
2388 KB |
Output is correct |
53 |
Correct |
493 ms |
2136 KB |
Output is correct |
54 |
Correct |
477 ms |
2136 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
860 KB |
Output is correct |
2 |
Correct |
1 ms |
860 KB |
Output is correct |
3 |
Correct |
0 ms |
860 KB |
Output is correct |
4 |
Correct |
1 ms |
856 KB |
Output is correct |
5 |
Correct |
59 ms |
1308 KB |
Output is correct |
6 |
Correct |
70 ms |
1304 KB |
Output is correct |
7 |
Correct |
67 ms |
1304 KB |
Output is correct |
8 |
Correct |
63 ms |
1116 KB |
Output is correct |
9 |
Correct |
70 ms |
1116 KB |
Output is correct |
10 |
Correct |
62 ms |
1272 KB |
Output is correct |
11 |
Correct |
54 ms |
1112 KB |
Output is correct |
12 |
Correct |
1 ms |
860 KB |
Output is correct |
13 |
Correct |
1 ms |
860 KB |
Output is correct |
14 |
Correct |
1 ms |
860 KB |
Output is correct |
15 |
Correct |
1 ms |
860 KB |
Output is correct |
16 |
Correct |
61 ms |
1116 KB |
Output is correct |
17 |
Correct |
59 ms |
1112 KB |
Output is correct |
18 |
Correct |
57 ms |
1116 KB |
Output is correct |
19 |
Correct |
57 ms |
1112 KB |
Output is correct |
20 |
Correct |
59 ms |
1116 KB |
Output is correct |
21 |
Correct |
54 ms |
1116 KB |
Output is correct |
22 |
Correct |
55 ms |
1116 KB |
Output is correct |
23 |
Correct |
500 ms |
2152 KB |
Output is correct |
24 |
Correct |
489 ms |
2120 KB |
Output is correct |
25 |
Correct |
449 ms |
2140 KB |
Output is correct |
26 |
Correct |
475 ms |
2164 KB |
Output is correct |
27 |
Correct |
495 ms |
2140 KB |
Output is correct |
28 |
Correct |
441 ms |
2076 KB |
Output is correct |
29 |
Correct |
431 ms |
1884 KB |
Output is correct |
30 |
Correct |
2 ms |
860 KB |
Output is correct |
31 |
Correct |
18 ms |
1136 KB |
Output is correct |
32 |
Correct |
14 ms |
1116 KB |
Output is correct |
33 |
Correct |
16 ms |
1124 KB |
Output is correct |
34 |
Correct |
27 ms |
1116 KB |
Output is correct |
35 |
Correct |
15 ms |
1112 KB |
Output is correct |
36 |
Correct |
15 ms |
856 KB |
Output is correct |
37 |
Correct |
13 ms |
860 KB |
Output is correct |
38 |
Correct |
14 ms |
1116 KB |
Output is correct |
39 |
Correct |
14 ms |
1116 KB |
Output is correct |
40 |
Correct |
1 ms |
860 KB |
Output is correct |
41 |
Correct |
1 ms |
860 KB |
Output is correct |
42 |
Correct |
0 ms |
860 KB |
Output is correct |
43 |
Correct |
1 ms |
860 KB |
Output is correct |
44 |
Correct |
15 ms |
1112 KB |
Output is correct |
45 |
Correct |
15 ms |
860 KB |
Output is correct |
46 |
Correct |
15 ms |
1112 KB |
Output is correct |
47 |
Correct |
15 ms |
1116 KB |
Output is correct |
48 |
Correct |
19 ms |
1112 KB |
Output is correct |
49 |
Correct |
13 ms |
1112 KB |
Output is correct |
50 |
Correct |
13 ms |
1112 KB |
Output is correct |
51 |
Correct |
13 ms |
860 KB |
Output is correct |
52 |
Correct |
14 ms |
1116 KB |
Output is correct |
53 |
Correct |
18 ms |
1112 KB |
Output is correct |
54 |
Correct |
14 ms |
1116 KB |
Output is correct |
55 |
Correct |
17 ms |
1156 KB |
Output is correct |
56 |
Correct |
15 ms |
1136 KB |
Output is correct |
57 |
Correct |
16 ms |
1116 KB |
Output is correct |
58 |
Correct |
1 ms |
860 KB |
Output is correct |
59 |
Correct |
15 ms |
1116 KB |
Output is correct |
60 |
Correct |
13 ms |
1116 KB |
Output is correct |
61 |
Correct |
21 ms |
1116 KB |
Output is correct |
62 |
Correct |
15 ms |
1124 KB |
Output is correct |
63 |
Correct |
25 ms |
1116 KB |
Output is correct |
64 |
Correct |
14 ms |
860 KB |
Output is correct |
65 |
Correct |
13 ms |
860 KB |
Output is correct |
66 |
Correct |
13 ms |
1112 KB |
Output is correct |
67 |
Correct |
13 ms |
1124 KB |
Output is correct |
68 |
Correct |
53 ms |
1116 KB |
Output is correct |
69 |
Correct |
61 ms |
1372 KB |
Output is correct |
70 |
Correct |
61 ms |
1116 KB |
Output is correct |
71 |
Correct |
58 ms |
1116 KB |
Output is correct |
72 |
Correct |
61 ms |
1116 KB |
Output is correct |
73 |
Correct |
64 ms |
1112 KB |
Output is correct |
74 |
Correct |
75 ms |
1116 KB |
Output is correct |
75 |
Correct |
78 ms |
1116 KB |
Output is correct |
76 |
Correct |
1 ms |
860 KB |
Output is correct |
77 |
Correct |
0 ms |
860 KB |
Output is correct |
78 |
Correct |
1 ms |
860 KB |
Output is correct |
79 |
Correct |
1 ms |
860 KB |
Output is correct |
80 |
Correct |
58 ms |
1116 KB |
Output is correct |
81 |
Correct |
57 ms |
1116 KB |
Output is correct |
82 |
Correct |
56 ms |
1116 KB |
Output is correct |
83 |
Correct |
61 ms |
1248 KB |
Output is correct |
84 |
Correct |
58 ms |
1316 KB |
Output is correct |
85 |
Correct |
58 ms |
1276 KB |
Output is correct |
86 |
Correct |
54 ms |
1116 KB |
Output is correct |
87 |
Correct |
17 ms |
1116 KB |
Output is correct |
88 |
Correct |
13 ms |
1116 KB |
Output is correct |
89 |
Correct |
15 ms |
1116 KB |
Output is correct |
90 |
Correct |
14 ms |
1124 KB |
Output is correct |
91 |
Correct |
13 ms |
1116 KB |
Output is correct |
92 |
Correct |
19 ms |
1116 KB |
Output is correct |
93 |
Correct |
13 ms |
860 KB |
Output is correct |
94 |
Correct |
13 ms |
884 KB |
Output is correct |
95 |
Correct |
14 ms |
1124 KB |
Output is correct |
96 |
Correct |
17 ms |
1116 KB |
Output is correct |
97 |
Correct |
14 ms |
1116 KB |
Output is correct |
98 |
Correct |
16 ms |
1148 KB |
Output is correct |
99 |
Correct |
16 ms |
1116 KB |
Output is correct |
100 |
Correct |
18 ms |
1116 KB |
Output is correct |
101 |
Correct |
60 ms |
1304 KB |
Output is correct |
102 |
Correct |
57 ms |
1276 KB |
Output is correct |
103 |
Correct |
61 ms |
1112 KB |
Output is correct |
104 |
Correct |
62 ms |
1112 KB |
Output is correct |
105 |
Correct |
61 ms |
1308 KB |
Output is correct |
106 |
Correct |
61 ms |
1116 KB |
Output is correct |
107 |
Correct |
67 ms |
1116 KB |
Output is correct |
108 |
Correct |
70 ms |
1112 KB |
Output is correct |
109 |
Correct |
68 ms |
1336 KB |
Output is correct |
110 |
Correct |
75 ms |
1116 KB |
Output is correct |
111 |
Correct |
1 ms |
856 KB |
Output is correct |
112 |
Correct |
15 ms |
1132 KB |
Output is correct |
113 |
Correct |
13 ms |
1116 KB |
Output is correct |
114 |
Correct |
14 ms |
1136 KB |
Output is correct |
115 |
Correct |
15 ms |
1112 KB |
Output is correct |
116 |
Correct |
14 ms |
1116 KB |
Output is correct |
117 |
Correct |
16 ms |
1108 KB |
Output is correct |
118 |
Correct |
13 ms |
860 KB |
Output is correct |
119 |
Correct |
13 ms |
1120 KB |
Output is correct |
120 |
Correct |
14 ms |
1124 KB |
Output is correct |
121 |
Correct |
53 ms |
1116 KB |
Output is correct |
122 |
Correct |
53 ms |
1116 KB |
Output is correct |
123 |
Correct |
61 ms |
1116 KB |
Output is correct |
124 |
Correct |
59 ms |
1116 KB |
Output is correct |
125 |
Correct |
64 ms |
1116 KB |
Output is correct |
126 |
Correct |
74 ms |
1316 KB |
Output is correct |
127 |
Correct |
79 ms |
1116 KB |
Output is correct |
128 |
Correct |
63 ms |
1112 KB |
Output is correct |
129 |
Correct |
425 ms |
2132 KB |
Output is correct |
130 |
Correct |
423 ms |
1880 KB |
Output is correct |
131 |
Correct |
481 ms |
2144 KB |
Output is correct |
132 |
Correct |
451 ms |
2136 KB |
Output is correct |
133 |
Correct |
501 ms |
2136 KB |
Output is correct |
134 |
Correct |
499 ms |
2388 KB |
Output is correct |
135 |
Correct |
493 ms |
2136 KB |
Output is correct |
136 |
Correct |
477 ms |
2136 KB |
Output is correct |
137 |
Correct |
1 ms |
860 KB |
Output is correct |
138 |
Correct |
1 ms |
860 KB |
Output is correct |
139 |
Correct |
1 ms |
860 KB |
Output is correct |
140 |
Correct |
1 ms |
860 KB |
Output is correct |
141 |
Correct |
67 ms |
1116 KB |
Output is correct |
142 |
Correct |
63 ms |
1372 KB |
Output is correct |
143 |
Correct |
55 ms |
1116 KB |
Output is correct |
144 |
Correct |
57 ms |
1312 KB |
Output is correct |
145 |
Correct |
59 ms |
1312 KB |
Output is correct |
146 |
Correct |
69 ms |
1268 KB |
Output is correct |
147 |
Correct |
58 ms |
1116 KB |
Output is correct |
148 |
Correct |
464 ms |
2140 KB |
Output is correct |
149 |
Correct |
469 ms |
2156 KB |
Output is correct |
150 |
Correct |
486 ms |
2140 KB |
Output is correct |
151 |
Correct |
474 ms |
2164 KB |
Output is correct |
152 |
Correct |
480 ms |
2176 KB |
Output is correct |
153 |
Correct |
432 ms |
1880 KB |
Output is correct |
154 |
Correct |
432 ms |
1884 KB |
Output is correct |
155 |
Correct |
15 ms |
1112 KB |
Output is correct |
156 |
Correct |
13 ms |
860 KB |
Output is correct |
157 |
Correct |
15 ms |
1116 KB |
Output is correct |
158 |
Correct |
14 ms |
1116 KB |
Output is correct |
159 |
Correct |
13 ms |
936 KB |
Output is correct |
160 |
Correct |
13 ms |
856 KB |
Output is correct |
161 |
Correct |
12 ms |
860 KB |
Output is correct |
162 |
Correct |
16 ms |
1116 KB |
Output is correct |
163 |
Correct |
14 ms |
1116 KB |
Output is correct |
164 |
Correct |
60 ms |
1116 KB |
Output is correct |
165 |
Correct |
57 ms |
1116 KB |
Output is correct |
166 |
Correct |
62 ms |
1300 KB |
Output is correct |
167 |
Correct |
79 ms |
1112 KB |
Output is correct |
168 |
Correct |
69 ms |
1116 KB |
Output is correct |
169 |
Correct |
67 ms |
1116 KB |
Output is correct |
170 |
Correct |
17 ms |
1116 KB |
Output is correct |
171 |
Correct |
13 ms |
1116 KB |
Output is correct |
172 |
Correct |
16 ms |
1116 KB |
Output is correct |
173 |
Correct |
15 ms |
1116 KB |
Output is correct |
174 |
Correct |
17 ms |
1148 KB |
Output is correct |
175 |
Correct |
66 ms |
1116 KB |
Output is correct |
176 |
Correct |
71 ms |
1116 KB |
Output is correct |
177 |
Correct |
67 ms |
1112 KB |
Output is correct |
178 |
Correct |
70 ms |
1112 KB |
Output is correct |
179 |
Correct |
527 ms |
2384 KB |
Output is correct |
180 |
Correct |
436 ms |
2140 KB |
Output is correct |
181 |
Correct |
488 ms |
2164 KB |
Output is correct |
182 |
Correct |
542 ms |
2152 KB |
Output is correct |
183 |
Correct |
503 ms |
2116 KB |
Output is correct |
184 |
Correct |
467 ms |
2096 KB |
Output is correct |
185 |
Correct |
558 ms |
2136 KB |
Output is correct |
186 |
Correct |
600 ms |
2140 KB |
Output is correct |
187 |
Correct |
548 ms |
2176 KB |
Output is correct |
188 |
Correct |
530 ms |
2392 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
860 KB |
Output is correct |
2 |
Correct |
18 ms |
1136 KB |
Output is correct |
3 |
Correct |
14 ms |
1116 KB |
Output is correct |
4 |
Correct |
16 ms |
1124 KB |
Output is correct |
5 |
Correct |
27 ms |
1116 KB |
Output is correct |
6 |
Correct |
15 ms |
1112 KB |
Output is correct |
7 |
Correct |
15 ms |
856 KB |
Output is correct |
8 |
Correct |
13 ms |
860 KB |
Output is correct |
9 |
Correct |
14 ms |
1116 KB |
Output is correct |
10 |
Correct |
14 ms |
1116 KB |
Output is correct |
11 |
Correct |
1 ms |
860 KB |
Output is correct |
12 |
Correct |
15 ms |
1116 KB |
Output is correct |
13 |
Correct |
13 ms |
1116 KB |
Output is correct |
14 |
Correct |
21 ms |
1116 KB |
Output is correct |
15 |
Correct |
15 ms |
1124 KB |
Output is correct |
16 |
Correct |
25 ms |
1116 KB |
Output is correct |
17 |
Correct |
14 ms |
860 KB |
Output is correct |
18 |
Correct |
13 ms |
860 KB |
Output is correct |
19 |
Correct |
13 ms |
1112 KB |
Output is correct |
20 |
Correct |
13 ms |
1124 KB |
Output is correct |
21 |
Correct |
53 ms |
1116 KB |
Output is correct |
22 |
Correct |
61 ms |
1372 KB |
Output is correct |
23 |
Correct |
61 ms |
1116 KB |
Output is correct |
24 |
Correct |
58 ms |
1116 KB |
Output is correct |
25 |
Correct |
61 ms |
1116 KB |
Output is correct |
26 |
Correct |
64 ms |
1112 KB |
Output is correct |
27 |
Correct |
75 ms |
1116 KB |
Output is correct |
28 |
Correct |
78 ms |
1116 KB |
Output is correct |
29 |
Correct |
1 ms |
856 KB |
Output is correct |
30 |
Correct |
15 ms |
1132 KB |
Output is correct |
31 |
Correct |
13 ms |
1116 KB |
Output is correct |
32 |
Correct |
14 ms |
1136 KB |
Output is correct |
33 |
Correct |
15 ms |
1112 KB |
Output is correct |
34 |
Correct |
14 ms |
1116 KB |
Output is correct |
35 |
Correct |
16 ms |
1108 KB |
Output is correct |
36 |
Correct |
13 ms |
860 KB |
Output is correct |
37 |
Correct |
13 ms |
1120 KB |
Output is correct |
38 |
Correct |
14 ms |
1124 KB |
Output is correct |
39 |
Correct |
53 ms |
1116 KB |
Output is correct |
40 |
Correct |
53 ms |
1116 KB |
Output is correct |
41 |
Correct |
61 ms |
1116 KB |
Output is correct |
42 |
Correct |
59 ms |
1116 KB |
Output is correct |
43 |
Correct |
64 ms |
1116 KB |
Output is correct |
44 |
Correct |
74 ms |
1316 KB |
Output is correct |
45 |
Correct |
79 ms |
1116 KB |
Output is correct |
46 |
Correct |
63 ms |
1112 KB |
Output is correct |
47 |
Correct |
425 ms |
2132 KB |
Output is correct |
48 |
Correct |
423 ms |
1880 KB |
Output is correct |
49 |
Correct |
481 ms |
2144 KB |
Output is correct |
50 |
Correct |
451 ms |
2136 KB |
Output is correct |
51 |
Correct |
501 ms |
2136 KB |
Output is correct |
52 |
Correct |
499 ms |
2388 KB |
Output is correct |
53 |
Correct |
493 ms |
2136 KB |
Output is correct |
54 |
Correct |
477 ms |
2136 KB |
Output is correct |
55 |
Correct |
1 ms |
856 KB |
Output is correct |
56 |
Correct |
14 ms |
1128 KB |
Output is correct |
57 |
Correct |
13 ms |
1116 KB |
Output is correct |
58 |
Correct |
15 ms |
1112 KB |
Output is correct |
59 |
Correct |
15 ms |
1116 KB |
Output is correct |
60 |
Correct |
13 ms |
1120 KB |
Output is correct |
61 |
Correct |
14 ms |
1104 KB |
Output is correct |
62 |
Correct |
13 ms |
860 KB |
Output is correct |
63 |
Correct |
17 ms |
1116 KB |
Output is correct |
64 |
Correct |
14 ms |
1120 KB |
Output is correct |
65 |
Correct |
71 ms |
1212 KB |
Output is correct |
66 |
Correct |
53 ms |
1112 KB |
Output is correct |
67 |
Correct |
61 ms |
1116 KB |
Output is correct |
68 |
Correct |
57 ms |
1116 KB |
Output is correct |
69 |
Correct |
60 ms |
1112 KB |
Output is correct |
70 |
Correct |
63 ms |
1112 KB |
Output is correct |
71 |
Correct |
62 ms |
1112 KB |
Output is correct |
72 |
Correct |
62 ms |
1112 KB |
Output is correct |
73 |
Correct |
435 ms |
1880 KB |
Output is correct |
74 |
Correct |
420 ms |
2136 KB |
Output is correct |
75 |
Correct |
472 ms |
2148 KB |
Output is correct |
76 |
Correct |
449 ms |
2140 KB |
Output is correct |
77 |
Correct |
513 ms |
2152 KB |
Output is correct |
78 |
Correct |
488 ms |
2136 KB |
Output is correct |
79 |
Correct |
475 ms |
2156 KB |
Output is correct |
80 |
Correct |
480 ms |
2140 KB |
Output is correct |
81 |
Execution timed out |
5035 ms |
10064 KB |
Time limit exceeded |
82 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
860 KB |
Output is correct |
2 |
Correct |
1 ms |
860 KB |
Output is correct |
3 |
Correct |
0 ms |
860 KB |
Output is correct |
4 |
Correct |
1 ms |
856 KB |
Output is correct |
5 |
Correct |
59 ms |
1308 KB |
Output is correct |
6 |
Correct |
70 ms |
1304 KB |
Output is correct |
7 |
Correct |
67 ms |
1304 KB |
Output is correct |
8 |
Correct |
63 ms |
1116 KB |
Output is correct |
9 |
Correct |
70 ms |
1116 KB |
Output is correct |
10 |
Correct |
62 ms |
1272 KB |
Output is correct |
11 |
Correct |
54 ms |
1112 KB |
Output is correct |
12 |
Correct |
1 ms |
860 KB |
Output is correct |
13 |
Correct |
1 ms |
860 KB |
Output is correct |
14 |
Correct |
1 ms |
860 KB |
Output is correct |
15 |
Correct |
1 ms |
860 KB |
Output is correct |
16 |
Correct |
61 ms |
1116 KB |
Output is correct |
17 |
Correct |
59 ms |
1112 KB |
Output is correct |
18 |
Correct |
57 ms |
1116 KB |
Output is correct |
19 |
Correct |
57 ms |
1112 KB |
Output is correct |
20 |
Correct |
59 ms |
1116 KB |
Output is correct |
21 |
Correct |
54 ms |
1116 KB |
Output is correct |
22 |
Correct |
55 ms |
1116 KB |
Output is correct |
23 |
Correct |
500 ms |
2152 KB |
Output is correct |
24 |
Correct |
489 ms |
2120 KB |
Output is correct |
25 |
Correct |
449 ms |
2140 KB |
Output is correct |
26 |
Correct |
475 ms |
2164 KB |
Output is correct |
27 |
Correct |
495 ms |
2140 KB |
Output is correct |
28 |
Correct |
441 ms |
2076 KB |
Output is correct |
29 |
Correct |
431 ms |
1884 KB |
Output is correct |
30 |
Correct |
2 ms |
860 KB |
Output is correct |
31 |
Correct |
18 ms |
1136 KB |
Output is correct |
32 |
Correct |
14 ms |
1116 KB |
Output is correct |
33 |
Correct |
16 ms |
1124 KB |
Output is correct |
34 |
Correct |
27 ms |
1116 KB |
Output is correct |
35 |
Correct |
15 ms |
1112 KB |
Output is correct |
36 |
Correct |
15 ms |
856 KB |
Output is correct |
37 |
Correct |
13 ms |
860 KB |
Output is correct |
38 |
Correct |
14 ms |
1116 KB |
Output is correct |
39 |
Correct |
14 ms |
1116 KB |
Output is correct |
40 |
Correct |
1 ms |
860 KB |
Output is correct |
41 |
Correct |
1 ms |
860 KB |
Output is correct |
42 |
Correct |
0 ms |
860 KB |
Output is correct |
43 |
Correct |
1 ms |
860 KB |
Output is correct |
44 |
Correct |
15 ms |
1112 KB |
Output is correct |
45 |
Correct |
15 ms |
860 KB |
Output is correct |
46 |
Correct |
15 ms |
1112 KB |
Output is correct |
47 |
Correct |
15 ms |
1116 KB |
Output is correct |
48 |
Correct |
19 ms |
1112 KB |
Output is correct |
49 |
Correct |
13 ms |
1112 KB |
Output is correct |
50 |
Correct |
13 ms |
1112 KB |
Output is correct |
51 |
Correct |
13 ms |
860 KB |
Output is correct |
52 |
Correct |
14 ms |
1116 KB |
Output is correct |
53 |
Correct |
18 ms |
1112 KB |
Output is correct |
54 |
Correct |
14 ms |
1116 KB |
Output is correct |
55 |
Correct |
17 ms |
1156 KB |
Output is correct |
56 |
Correct |
15 ms |
1136 KB |
Output is correct |
57 |
Correct |
16 ms |
1116 KB |
Output is correct |
58 |
Correct |
1 ms |
860 KB |
Output is correct |
59 |
Correct |
15 ms |
1116 KB |
Output is correct |
60 |
Correct |
13 ms |
1116 KB |
Output is correct |
61 |
Correct |
21 ms |
1116 KB |
Output is correct |
62 |
Correct |
15 ms |
1124 KB |
Output is correct |
63 |
Correct |
25 ms |
1116 KB |
Output is correct |
64 |
Correct |
14 ms |
860 KB |
Output is correct |
65 |
Correct |
13 ms |
860 KB |
Output is correct |
66 |
Correct |
13 ms |
1112 KB |
Output is correct |
67 |
Correct |
13 ms |
1124 KB |
Output is correct |
68 |
Correct |
53 ms |
1116 KB |
Output is correct |
69 |
Correct |
61 ms |
1372 KB |
Output is correct |
70 |
Correct |
61 ms |
1116 KB |
Output is correct |
71 |
Correct |
58 ms |
1116 KB |
Output is correct |
72 |
Correct |
61 ms |
1116 KB |
Output is correct |
73 |
Correct |
64 ms |
1112 KB |
Output is correct |
74 |
Correct |
75 ms |
1116 KB |
Output is correct |
75 |
Correct |
78 ms |
1116 KB |
Output is correct |
76 |
Correct |
1 ms |
860 KB |
Output is correct |
77 |
Correct |
0 ms |
860 KB |
Output is correct |
78 |
Correct |
1 ms |
860 KB |
Output is correct |
79 |
Correct |
1 ms |
860 KB |
Output is correct |
80 |
Correct |
58 ms |
1116 KB |
Output is correct |
81 |
Correct |
57 ms |
1116 KB |
Output is correct |
82 |
Correct |
56 ms |
1116 KB |
Output is correct |
83 |
Correct |
61 ms |
1248 KB |
Output is correct |
84 |
Correct |
58 ms |
1316 KB |
Output is correct |
85 |
Correct |
58 ms |
1276 KB |
Output is correct |
86 |
Correct |
54 ms |
1116 KB |
Output is correct |
87 |
Correct |
17 ms |
1116 KB |
Output is correct |
88 |
Correct |
13 ms |
1116 KB |
Output is correct |
89 |
Correct |
15 ms |
1116 KB |
Output is correct |
90 |
Correct |
14 ms |
1124 KB |
Output is correct |
91 |
Correct |
13 ms |
1116 KB |
Output is correct |
92 |
Correct |
19 ms |
1116 KB |
Output is correct |
93 |
Correct |
13 ms |
860 KB |
Output is correct |
94 |
Correct |
13 ms |
884 KB |
Output is correct |
95 |
Correct |
14 ms |
1124 KB |
Output is correct |
96 |
Correct |
17 ms |
1116 KB |
Output is correct |
97 |
Correct |
14 ms |
1116 KB |
Output is correct |
98 |
Correct |
16 ms |
1148 KB |
Output is correct |
99 |
Correct |
16 ms |
1116 KB |
Output is correct |
100 |
Correct |
18 ms |
1116 KB |
Output is correct |
101 |
Correct |
60 ms |
1304 KB |
Output is correct |
102 |
Correct |
57 ms |
1276 KB |
Output is correct |
103 |
Correct |
61 ms |
1112 KB |
Output is correct |
104 |
Correct |
62 ms |
1112 KB |
Output is correct |
105 |
Correct |
61 ms |
1308 KB |
Output is correct |
106 |
Correct |
61 ms |
1116 KB |
Output is correct |
107 |
Correct |
67 ms |
1116 KB |
Output is correct |
108 |
Correct |
70 ms |
1112 KB |
Output is correct |
109 |
Correct |
68 ms |
1336 KB |
Output is correct |
110 |
Correct |
75 ms |
1116 KB |
Output is correct |
111 |
Correct |
1 ms |
856 KB |
Output is correct |
112 |
Correct |
15 ms |
1132 KB |
Output is correct |
113 |
Correct |
13 ms |
1116 KB |
Output is correct |
114 |
Correct |
14 ms |
1136 KB |
Output is correct |
115 |
Correct |
15 ms |
1112 KB |
Output is correct |
116 |
Correct |
14 ms |
1116 KB |
Output is correct |
117 |
Correct |
16 ms |
1108 KB |
Output is correct |
118 |
Correct |
13 ms |
860 KB |
Output is correct |
119 |
Correct |
13 ms |
1120 KB |
Output is correct |
120 |
Correct |
14 ms |
1124 KB |
Output is correct |
121 |
Correct |
53 ms |
1116 KB |
Output is correct |
122 |
Correct |
53 ms |
1116 KB |
Output is correct |
123 |
Correct |
61 ms |
1116 KB |
Output is correct |
124 |
Correct |
59 ms |
1116 KB |
Output is correct |
125 |
Correct |
64 ms |
1116 KB |
Output is correct |
126 |
Correct |
74 ms |
1316 KB |
Output is correct |
127 |
Correct |
79 ms |
1116 KB |
Output is correct |
128 |
Correct |
63 ms |
1112 KB |
Output is correct |
129 |
Correct |
425 ms |
2132 KB |
Output is correct |
130 |
Correct |
423 ms |
1880 KB |
Output is correct |
131 |
Correct |
481 ms |
2144 KB |
Output is correct |
132 |
Correct |
451 ms |
2136 KB |
Output is correct |
133 |
Correct |
501 ms |
2136 KB |
Output is correct |
134 |
Correct |
499 ms |
2388 KB |
Output is correct |
135 |
Correct |
493 ms |
2136 KB |
Output is correct |
136 |
Correct |
477 ms |
2136 KB |
Output is correct |
137 |
Correct |
1 ms |
860 KB |
Output is correct |
138 |
Correct |
1 ms |
860 KB |
Output is correct |
139 |
Correct |
1 ms |
860 KB |
Output is correct |
140 |
Correct |
1 ms |
860 KB |
Output is correct |
141 |
Correct |
67 ms |
1116 KB |
Output is correct |
142 |
Correct |
63 ms |
1372 KB |
Output is correct |
143 |
Correct |
55 ms |
1116 KB |
Output is correct |
144 |
Correct |
57 ms |
1312 KB |
Output is correct |
145 |
Correct |
59 ms |
1312 KB |
Output is correct |
146 |
Correct |
69 ms |
1268 KB |
Output is correct |
147 |
Correct |
58 ms |
1116 KB |
Output is correct |
148 |
Correct |
464 ms |
2140 KB |
Output is correct |
149 |
Correct |
469 ms |
2156 KB |
Output is correct |
150 |
Correct |
486 ms |
2140 KB |
Output is correct |
151 |
Correct |
474 ms |
2164 KB |
Output is correct |
152 |
Correct |
480 ms |
2176 KB |
Output is correct |
153 |
Correct |
432 ms |
1880 KB |
Output is correct |
154 |
Correct |
432 ms |
1884 KB |
Output is correct |
155 |
Correct |
15 ms |
1112 KB |
Output is correct |
156 |
Correct |
13 ms |
860 KB |
Output is correct |
157 |
Correct |
15 ms |
1116 KB |
Output is correct |
158 |
Correct |
14 ms |
1116 KB |
Output is correct |
159 |
Correct |
13 ms |
936 KB |
Output is correct |
160 |
Correct |
13 ms |
856 KB |
Output is correct |
161 |
Correct |
12 ms |
860 KB |
Output is correct |
162 |
Correct |
16 ms |
1116 KB |
Output is correct |
163 |
Correct |
14 ms |
1116 KB |
Output is correct |
164 |
Correct |
60 ms |
1116 KB |
Output is correct |
165 |
Correct |
57 ms |
1116 KB |
Output is correct |
166 |
Correct |
62 ms |
1300 KB |
Output is correct |
167 |
Correct |
79 ms |
1112 KB |
Output is correct |
168 |
Correct |
69 ms |
1116 KB |
Output is correct |
169 |
Correct |
67 ms |
1116 KB |
Output is correct |
170 |
Correct |
17 ms |
1116 KB |
Output is correct |
171 |
Correct |
13 ms |
1116 KB |
Output is correct |
172 |
Correct |
16 ms |
1116 KB |
Output is correct |
173 |
Correct |
15 ms |
1116 KB |
Output is correct |
174 |
Correct |
17 ms |
1148 KB |
Output is correct |
175 |
Correct |
66 ms |
1116 KB |
Output is correct |
176 |
Correct |
71 ms |
1116 KB |
Output is correct |
177 |
Correct |
67 ms |
1112 KB |
Output is correct |
178 |
Correct |
70 ms |
1112 KB |
Output is correct |
179 |
Correct |
527 ms |
2384 KB |
Output is correct |
180 |
Correct |
436 ms |
2140 KB |
Output is correct |
181 |
Correct |
488 ms |
2164 KB |
Output is correct |
182 |
Correct |
542 ms |
2152 KB |
Output is correct |
183 |
Correct |
503 ms |
2116 KB |
Output is correct |
184 |
Correct |
467 ms |
2096 KB |
Output is correct |
185 |
Correct |
558 ms |
2136 KB |
Output is correct |
186 |
Correct |
600 ms |
2140 KB |
Output is correct |
187 |
Correct |
548 ms |
2176 KB |
Output is correct |
188 |
Correct |
530 ms |
2392 KB |
Output is correct |
189 |
Correct |
1 ms |
856 KB |
Output is correct |
190 |
Correct |
14 ms |
1128 KB |
Output is correct |
191 |
Correct |
13 ms |
1116 KB |
Output is correct |
192 |
Correct |
15 ms |
1112 KB |
Output is correct |
193 |
Correct |
15 ms |
1116 KB |
Output is correct |
194 |
Correct |
13 ms |
1120 KB |
Output is correct |
195 |
Correct |
14 ms |
1104 KB |
Output is correct |
196 |
Correct |
13 ms |
860 KB |
Output is correct |
197 |
Correct |
17 ms |
1116 KB |
Output is correct |
198 |
Correct |
14 ms |
1120 KB |
Output is correct |
199 |
Correct |
71 ms |
1212 KB |
Output is correct |
200 |
Correct |
53 ms |
1112 KB |
Output is correct |
201 |
Correct |
61 ms |
1116 KB |
Output is correct |
202 |
Correct |
57 ms |
1116 KB |
Output is correct |
203 |
Correct |
60 ms |
1112 KB |
Output is correct |
204 |
Correct |
63 ms |
1112 KB |
Output is correct |
205 |
Correct |
62 ms |
1112 KB |
Output is correct |
206 |
Correct |
62 ms |
1112 KB |
Output is correct |
207 |
Correct |
435 ms |
1880 KB |
Output is correct |
208 |
Correct |
420 ms |
2136 KB |
Output is correct |
209 |
Correct |
472 ms |
2148 KB |
Output is correct |
210 |
Correct |
449 ms |
2140 KB |
Output is correct |
211 |
Correct |
513 ms |
2152 KB |
Output is correct |
212 |
Correct |
488 ms |
2136 KB |
Output is correct |
213 |
Correct |
475 ms |
2156 KB |
Output is correct |
214 |
Correct |
480 ms |
2140 KB |
Output is correct |
215 |
Execution timed out |
5035 ms |
10064 KB |
Time limit exceeded |
216 |
Halted |
0 ms |
0 KB |
- |