#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[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[i] = -INF;
dp[sum] = 0;
for(int b = 0; b <= 60; b++){
for(int i = 1; i <= m; i++){
for(int j = 0; j <= 2*sum; j++)tmp[j] = -INF;
for(auto v: g[b][i])for(int j = 0; j <= 2*sum; j++)tmp[j + v.first] = mx(tmp[j + v.first], dp[j] + v.second);
memcpy(dp, tmp, sizeof(dp));
}
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[i]);
}
for(int i = 0; i <= 2*sum; i++)dp[i] = tmp[i];
}
if(dp[sum] < 0)cout << "impossible";
else cout << dp[sum] + A[m];
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
15 ms |
4440 KB |
Output is correct |
2 |
Correct |
24 ms |
4444 KB |
Output is correct |
3 |
Correct |
9 ms |
4444 KB |
Output is correct |
4 |
Correct |
76 ms |
4576 KB |
Output is correct |
5 |
Correct |
411 ms |
4696 KB |
Output is correct |
6 |
Correct |
375 ms |
4696 KB |
Output is correct |
7 |
Correct |
424 ms |
4696 KB |
Output is correct |
8 |
Correct |
377 ms |
4700 KB |
Output is correct |
9 |
Correct |
400 ms |
4696 KB |
Output is correct |
10 |
Correct |
406 ms |
4700 KB |
Output is correct |
11 |
Correct |
388 ms |
4696 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
15 ms |
4440 KB |
Output is correct |
2 |
Correct |
24 ms |
4444 KB |
Output is correct |
3 |
Correct |
9 ms |
4444 KB |
Output is correct |
4 |
Correct |
76 ms |
4576 KB |
Output is correct |
5 |
Correct |
411 ms |
4696 KB |
Output is correct |
6 |
Correct |
375 ms |
4696 KB |
Output is correct |
7 |
Correct |
424 ms |
4696 KB |
Output is correct |
8 |
Correct |
377 ms |
4700 KB |
Output is correct |
9 |
Correct |
400 ms |
4696 KB |
Output is correct |
10 |
Correct |
406 ms |
4700 KB |
Output is correct |
11 |
Correct |
388 ms |
4696 KB |
Output is correct |
12 |
Correct |
16 ms |
4440 KB |
Output is correct |
13 |
Correct |
23 ms |
4444 KB |
Output is correct |
14 |
Correct |
9 ms |
4444 KB |
Output is correct |
15 |
Correct |
77 ms |
4576 KB |
Output is correct |
16 |
Correct |
380 ms |
4700 KB |
Output is correct |
17 |
Correct |
440 ms |
4740 KB |
Output is correct |
18 |
Correct |
395 ms |
4700 KB |
Output is correct |
19 |
Correct |
446 ms |
4740 KB |
Output is correct |
20 |
Correct |
442 ms |
4696 KB |
Output is correct |
21 |
Correct |
409 ms |
4700 KB |
Output is correct |
22 |
Correct |
412 ms |
4700 KB |
Output is correct |
23 |
Correct |
1006 ms |
7004 KB |
Output is correct |
24 |
Correct |
1044 ms |
7004 KB |
Output is correct |
25 |
Correct |
1039 ms |
7000 KB |
Output is correct |
26 |
Correct |
1063 ms |
7016 KB |
Output is correct |
27 |
Correct |
1058 ms |
7012 KB |
Output is correct |
28 |
Correct |
1002 ms |
6964 KB |
Output is correct |
29 |
Correct |
883 ms |
6744 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
65 ms |
4444 KB |
Output is correct |
2 |
Correct |
203 ms |
4656 KB |
Output is correct |
3 |
Correct |
206 ms |
4444 KB |
Output is correct |
4 |
Correct |
235 ms |
4692 KB |
Output is correct |
5 |
Correct |
226 ms |
4652 KB |
Output is correct |
6 |
Correct |
215 ms |
4644 KB |
Output is correct |
7 |
Correct |
210 ms |
4648 KB |
Output is correct |
8 |
Correct |
228 ms |
4636 KB |
Output is correct |
9 |
Correct |
213 ms |
4640 KB |
Output is correct |
10 |
Correct |
221 ms |
4696 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
65 ms |
4444 KB |
Output is correct |
2 |
Correct |
203 ms |
4656 KB |
Output is correct |
3 |
Correct |
206 ms |
4444 KB |
Output is correct |
4 |
Correct |
235 ms |
4692 KB |
Output is correct |
5 |
Correct |
226 ms |
4652 KB |
Output is correct |
6 |
Correct |
215 ms |
4644 KB |
Output is correct |
7 |
Correct |
210 ms |
4648 KB |
Output is correct |
8 |
Correct |
228 ms |
4636 KB |
Output is correct |
9 |
Correct |
213 ms |
4640 KB |
Output is correct |
10 |
Correct |
221 ms |
4696 KB |
Output is correct |
11 |
Correct |
17 ms |
4440 KB |
Output is correct |
12 |
Correct |
22 ms |
4444 KB |
Output is correct |
13 |
Correct |
9 ms |
4444 KB |
Output is correct |
14 |
Correct |
72 ms |
4444 KB |
Output is correct |
15 |
Correct |
227 ms |
4444 KB |
Output is correct |
16 |
Correct |
200 ms |
4696 KB |
Output is correct |
17 |
Correct |
216 ms |
4652 KB |
Output is correct |
18 |
Correct |
206 ms |
4652 KB |
Output is correct |
19 |
Correct |
199 ms |
4636 KB |
Output is correct |
20 |
Correct |
211 ms |
4440 KB |
Output is correct |
21 |
Correct |
203 ms |
4444 KB |
Output is correct |
22 |
Correct |
215 ms |
4444 KB |
Output is correct |
23 |
Correct |
235 ms |
4440 KB |
Output is correct |
24 |
Correct |
217 ms |
4696 KB |
Output is correct |
25 |
Correct |
229 ms |
4440 KB |
Output is correct |
26 |
Correct |
213 ms |
4444 KB |
Output is correct |
27 |
Correct |
227 ms |
4656 KB |
Output is correct |
28 |
Correct |
219 ms |
4444 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
65 ms |
4444 KB |
Output is correct |
2 |
Correct |
203 ms |
4656 KB |
Output is correct |
3 |
Correct |
206 ms |
4444 KB |
Output is correct |
4 |
Correct |
235 ms |
4692 KB |
Output is correct |
5 |
Correct |
226 ms |
4652 KB |
Output is correct |
6 |
Correct |
215 ms |
4644 KB |
Output is correct |
7 |
Correct |
210 ms |
4648 KB |
Output is correct |
8 |
Correct |
228 ms |
4636 KB |
Output is correct |
9 |
Correct |
213 ms |
4640 KB |
Output is correct |
10 |
Correct |
221 ms |
4696 KB |
Output is correct |
11 |
Correct |
65 ms |
4572 KB |
Output is correct |
12 |
Correct |
217 ms |
4444 KB |
Output is correct |
13 |
Correct |
221 ms |
4440 KB |
Output is correct |
14 |
Correct |
231 ms |
4444 KB |
Output is correct |
15 |
Correct |
225 ms |
4648 KB |
Output is correct |
16 |
Correct |
222 ms |
4440 KB |
Output is correct |
17 |
Correct |
227 ms |
4644 KB |
Output is correct |
18 |
Correct |
215 ms |
4640 KB |
Output is correct |
19 |
Correct |
227 ms |
4444 KB |
Output is correct |
20 |
Correct |
213 ms |
4440 KB |
Output is correct |
21 |
Correct |
396 ms |
4696 KB |
Output is correct |
22 |
Correct |
376 ms |
4728 KB |
Output is correct |
23 |
Correct |
404 ms |
4748 KB |
Output is correct |
24 |
Correct |
388 ms |
4696 KB |
Output is correct |
25 |
Correct |
422 ms |
4696 KB |
Output is correct |
26 |
Correct |
387 ms |
4696 KB |
Output is correct |
27 |
Correct |
388 ms |
4696 KB |
Output is correct |
28 |
Correct |
405 ms |
4696 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
15 ms |
4440 KB |
Output is correct |
2 |
Correct |
24 ms |
4444 KB |
Output is correct |
3 |
Correct |
9 ms |
4444 KB |
Output is correct |
4 |
Correct |
76 ms |
4576 KB |
Output is correct |
5 |
Correct |
411 ms |
4696 KB |
Output is correct |
6 |
Correct |
375 ms |
4696 KB |
Output is correct |
7 |
Correct |
424 ms |
4696 KB |
Output is correct |
8 |
Correct |
377 ms |
4700 KB |
Output is correct |
9 |
Correct |
400 ms |
4696 KB |
Output is correct |
10 |
Correct |
406 ms |
4700 KB |
Output is correct |
11 |
Correct |
388 ms |
4696 KB |
Output is correct |
12 |
Correct |
65 ms |
4444 KB |
Output is correct |
13 |
Correct |
203 ms |
4656 KB |
Output is correct |
14 |
Correct |
206 ms |
4444 KB |
Output is correct |
15 |
Correct |
235 ms |
4692 KB |
Output is correct |
16 |
Correct |
226 ms |
4652 KB |
Output is correct |
17 |
Correct |
215 ms |
4644 KB |
Output is correct |
18 |
Correct |
210 ms |
4648 KB |
Output is correct |
19 |
Correct |
228 ms |
4636 KB |
Output is correct |
20 |
Correct |
213 ms |
4640 KB |
Output is correct |
21 |
Correct |
221 ms |
4696 KB |
Output is correct |
22 |
Correct |
17 ms |
4440 KB |
Output is correct |
23 |
Correct |
22 ms |
4444 KB |
Output is correct |
24 |
Correct |
9 ms |
4444 KB |
Output is correct |
25 |
Correct |
72 ms |
4444 KB |
Output is correct |
26 |
Correct |
227 ms |
4444 KB |
Output is correct |
27 |
Correct |
200 ms |
4696 KB |
Output is correct |
28 |
Correct |
216 ms |
4652 KB |
Output is correct |
29 |
Correct |
206 ms |
4652 KB |
Output is correct |
30 |
Correct |
199 ms |
4636 KB |
Output is correct |
31 |
Correct |
211 ms |
4440 KB |
Output is correct |
32 |
Correct |
203 ms |
4444 KB |
Output is correct |
33 |
Correct |
215 ms |
4444 KB |
Output is correct |
34 |
Correct |
235 ms |
4440 KB |
Output is correct |
35 |
Correct |
217 ms |
4696 KB |
Output is correct |
36 |
Correct |
229 ms |
4440 KB |
Output is correct |
37 |
Correct |
213 ms |
4444 KB |
Output is correct |
38 |
Correct |
227 ms |
4656 KB |
Output is correct |
39 |
Correct |
219 ms |
4444 KB |
Output is correct |
40 |
Correct |
65 ms |
4572 KB |
Output is correct |
41 |
Correct |
217 ms |
4444 KB |
Output is correct |
42 |
Correct |
221 ms |
4440 KB |
Output is correct |
43 |
Correct |
231 ms |
4444 KB |
Output is correct |
44 |
Correct |
225 ms |
4648 KB |
Output is correct |
45 |
Correct |
222 ms |
4440 KB |
Output is correct |
46 |
Correct |
227 ms |
4644 KB |
Output is correct |
47 |
Correct |
215 ms |
4640 KB |
Output is correct |
48 |
Correct |
227 ms |
4444 KB |
Output is correct |
49 |
Correct |
213 ms |
4440 KB |
Output is correct |
50 |
Correct |
396 ms |
4696 KB |
Output is correct |
51 |
Correct |
376 ms |
4728 KB |
Output is correct |
52 |
Correct |
404 ms |
4748 KB |
Output is correct |
53 |
Correct |
388 ms |
4696 KB |
Output is correct |
54 |
Correct |
422 ms |
4696 KB |
Output is correct |
55 |
Correct |
387 ms |
4696 KB |
Output is correct |
56 |
Correct |
388 ms |
4696 KB |
Output is correct |
57 |
Correct |
405 ms |
4696 KB |
Output is correct |
58 |
Correct |
16 ms |
4440 KB |
Output is correct |
59 |
Correct |
22 ms |
4444 KB |
Output is correct |
60 |
Correct |
8 ms |
4444 KB |
Output is correct |
61 |
Correct |
69 ms |
4444 KB |
Output is correct |
62 |
Correct |
376 ms |
4740 KB |
Output is correct |
63 |
Correct |
358 ms |
4696 KB |
Output is correct |
64 |
Correct |
376 ms |
4732 KB |
Output is correct |
65 |
Correct |
366 ms |
4696 KB |
Output is correct |
66 |
Correct |
381 ms |
4948 KB |
Output is correct |
67 |
Correct |
354 ms |
4700 KB |
Output is correct |
68 |
Correct |
385 ms |
4696 KB |
Output is correct |
69 |
Correct |
208 ms |
4440 KB |
Output is correct |
70 |
Correct |
217 ms |
4440 KB |
Output is correct |
71 |
Correct |
231 ms |
4688 KB |
Output is correct |
72 |
Correct |
223 ms |
4656 KB |
Output is correct |
73 |
Correct |
224 ms |
4644 KB |
Output is correct |
74 |
Correct |
219 ms |
4440 KB |
Output is correct |
75 |
Correct |
210 ms |
4644 KB |
Output is correct |
76 |
Correct |
218 ms |
4444 KB |
Output is correct |
77 |
Correct |
226 ms |
4440 KB |
Output is correct |
78 |
Correct |
217 ms |
4440 KB |
Output is correct |
79 |
Correct |
212 ms |
4440 KB |
Output is correct |
80 |
Correct |
213 ms |
4444 KB |
Output is correct |
81 |
Correct |
225 ms |
4444 KB |
Output is correct |
82 |
Correct |
232 ms |
4444 KB |
Output is correct |
83 |
Correct |
385 ms |
4696 KB |
Output is correct |
84 |
Correct |
382 ms |
4696 KB |
Output is correct |
85 |
Correct |
369 ms |
4748 KB |
Output is correct |
86 |
Correct |
404 ms |
4756 KB |
Output is correct |
87 |
Correct |
391 ms |
4752 KB |
Output is correct |
88 |
Correct |
388 ms |
4700 KB |
Output is correct |
89 |
Correct |
398 ms |
4700 KB |
Output is correct |
90 |
Correct |
402 ms |
4700 KB |
Output is correct |
91 |
Correct |
396 ms |
4948 KB |
Output is correct |
92 |
Correct |
416 ms |
4700 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
65 ms |
4444 KB |
Output is correct |
2 |
Correct |
203 ms |
4656 KB |
Output is correct |
3 |
Correct |
206 ms |
4444 KB |
Output is correct |
4 |
Correct |
235 ms |
4692 KB |
Output is correct |
5 |
Correct |
226 ms |
4652 KB |
Output is correct |
6 |
Correct |
215 ms |
4644 KB |
Output is correct |
7 |
Correct |
210 ms |
4648 KB |
Output is correct |
8 |
Correct |
228 ms |
4636 KB |
Output is correct |
9 |
Correct |
213 ms |
4640 KB |
Output is correct |
10 |
Correct |
221 ms |
4696 KB |
Output is correct |
11 |
Correct |
65 ms |
4572 KB |
Output is correct |
12 |
Correct |
217 ms |
4444 KB |
Output is correct |
13 |
Correct |
221 ms |
4440 KB |
Output is correct |
14 |
Correct |
231 ms |
4444 KB |
Output is correct |
15 |
Correct |
225 ms |
4648 KB |
Output is correct |
16 |
Correct |
222 ms |
4440 KB |
Output is correct |
17 |
Correct |
227 ms |
4644 KB |
Output is correct |
18 |
Correct |
215 ms |
4640 KB |
Output is correct |
19 |
Correct |
227 ms |
4444 KB |
Output is correct |
20 |
Correct |
213 ms |
4440 KB |
Output is correct |
21 |
Correct |
396 ms |
4696 KB |
Output is correct |
22 |
Correct |
376 ms |
4728 KB |
Output is correct |
23 |
Correct |
404 ms |
4748 KB |
Output is correct |
24 |
Correct |
388 ms |
4696 KB |
Output is correct |
25 |
Correct |
422 ms |
4696 KB |
Output is correct |
26 |
Correct |
387 ms |
4696 KB |
Output is correct |
27 |
Correct |
388 ms |
4696 KB |
Output is correct |
28 |
Correct |
405 ms |
4696 KB |
Output is correct |
29 |
Correct |
78 ms |
4440 KB |
Output is correct |
30 |
Correct |
211 ms |
4440 KB |
Output is correct |
31 |
Correct |
216 ms |
4696 KB |
Output is correct |
32 |
Correct |
216 ms |
4440 KB |
Output is correct |
33 |
Correct |
221 ms |
4652 KB |
Output is correct |
34 |
Correct |
217 ms |
4640 KB |
Output is correct |
35 |
Correct |
212 ms |
4444 KB |
Output is correct |
36 |
Correct |
216 ms |
4640 KB |
Output is correct |
37 |
Correct |
207 ms |
4440 KB |
Output is correct |
38 |
Correct |
233 ms |
4644 KB |
Output is correct |
39 |
Correct |
393 ms |
4700 KB |
Output is correct |
40 |
Correct |
372 ms |
4728 KB |
Output is correct |
41 |
Correct |
395 ms |
4744 KB |
Output is correct |
42 |
Correct |
423 ms |
4696 KB |
Output is correct |
43 |
Correct |
415 ms |
4700 KB |
Output is correct |
44 |
Correct |
413 ms |
4700 KB |
Output is correct |
45 |
Correct |
419 ms |
4752 KB |
Output is correct |
46 |
Correct |
423 ms |
4752 KB |
Output is correct |
47 |
Correct |
1004 ms |
6748 KB |
Output is correct |
48 |
Correct |
1018 ms |
6968 KB |
Output is correct |
49 |
Correct |
1067 ms |
7024 KB |
Output is correct |
50 |
Correct |
1036 ms |
7004 KB |
Output is correct |
51 |
Correct |
1108 ms |
7024 KB |
Output is correct |
52 |
Correct |
1102 ms |
7032 KB |
Output is correct |
53 |
Correct |
1091 ms |
7004 KB |
Output is correct |
54 |
Correct |
1039 ms |
7004 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
15 ms |
4440 KB |
Output is correct |
2 |
Correct |
24 ms |
4444 KB |
Output is correct |
3 |
Correct |
9 ms |
4444 KB |
Output is correct |
4 |
Correct |
76 ms |
4576 KB |
Output is correct |
5 |
Correct |
411 ms |
4696 KB |
Output is correct |
6 |
Correct |
375 ms |
4696 KB |
Output is correct |
7 |
Correct |
424 ms |
4696 KB |
Output is correct |
8 |
Correct |
377 ms |
4700 KB |
Output is correct |
9 |
Correct |
400 ms |
4696 KB |
Output is correct |
10 |
Correct |
406 ms |
4700 KB |
Output is correct |
11 |
Correct |
388 ms |
4696 KB |
Output is correct |
12 |
Correct |
16 ms |
4440 KB |
Output is correct |
13 |
Correct |
23 ms |
4444 KB |
Output is correct |
14 |
Correct |
9 ms |
4444 KB |
Output is correct |
15 |
Correct |
77 ms |
4576 KB |
Output is correct |
16 |
Correct |
380 ms |
4700 KB |
Output is correct |
17 |
Correct |
440 ms |
4740 KB |
Output is correct |
18 |
Correct |
395 ms |
4700 KB |
Output is correct |
19 |
Correct |
446 ms |
4740 KB |
Output is correct |
20 |
Correct |
442 ms |
4696 KB |
Output is correct |
21 |
Correct |
409 ms |
4700 KB |
Output is correct |
22 |
Correct |
412 ms |
4700 KB |
Output is correct |
23 |
Correct |
1006 ms |
7004 KB |
Output is correct |
24 |
Correct |
1044 ms |
7004 KB |
Output is correct |
25 |
Correct |
1039 ms |
7000 KB |
Output is correct |
26 |
Correct |
1063 ms |
7016 KB |
Output is correct |
27 |
Correct |
1058 ms |
7012 KB |
Output is correct |
28 |
Correct |
1002 ms |
6964 KB |
Output is correct |
29 |
Correct |
883 ms |
6744 KB |
Output is correct |
30 |
Correct |
65 ms |
4444 KB |
Output is correct |
31 |
Correct |
203 ms |
4656 KB |
Output is correct |
32 |
Correct |
206 ms |
4444 KB |
Output is correct |
33 |
Correct |
235 ms |
4692 KB |
Output is correct |
34 |
Correct |
226 ms |
4652 KB |
Output is correct |
35 |
Correct |
215 ms |
4644 KB |
Output is correct |
36 |
Correct |
210 ms |
4648 KB |
Output is correct |
37 |
Correct |
228 ms |
4636 KB |
Output is correct |
38 |
Correct |
213 ms |
4640 KB |
Output is correct |
39 |
Correct |
221 ms |
4696 KB |
Output is correct |
40 |
Correct |
17 ms |
4440 KB |
Output is correct |
41 |
Correct |
22 ms |
4444 KB |
Output is correct |
42 |
Correct |
9 ms |
4444 KB |
Output is correct |
43 |
Correct |
72 ms |
4444 KB |
Output is correct |
44 |
Correct |
227 ms |
4444 KB |
Output is correct |
45 |
Correct |
200 ms |
4696 KB |
Output is correct |
46 |
Correct |
216 ms |
4652 KB |
Output is correct |
47 |
Correct |
206 ms |
4652 KB |
Output is correct |
48 |
Correct |
199 ms |
4636 KB |
Output is correct |
49 |
Correct |
211 ms |
4440 KB |
Output is correct |
50 |
Correct |
203 ms |
4444 KB |
Output is correct |
51 |
Correct |
215 ms |
4444 KB |
Output is correct |
52 |
Correct |
235 ms |
4440 KB |
Output is correct |
53 |
Correct |
217 ms |
4696 KB |
Output is correct |
54 |
Correct |
229 ms |
4440 KB |
Output is correct |
55 |
Correct |
213 ms |
4444 KB |
Output is correct |
56 |
Correct |
227 ms |
4656 KB |
Output is correct |
57 |
Correct |
219 ms |
4444 KB |
Output is correct |
58 |
Correct |
65 ms |
4572 KB |
Output is correct |
59 |
Correct |
217 ms |
4444 KB |
Output is correct |
60 |
Correct |
221 ms |
4440 KB |
Output is correct |
61 |
Correct |
231 ms |
4444 KB |
Output is correct |
62 |
Correct |
225 ms |
4648 KB |
Output is correct |
63 |
Correct |
222 ms |
4440 KB |
Output is correct |
64 |
Correct |
227 ms |
4644 KB |
Output is correct |
65 |
Correct |
215 ms |
4640 KB |
Output is correct |
66 |
Correct |
227 ms |
4444 KB |
Output is correct |
67 |
Correct |
213 ms |
4440 KB |
Output is correct |
68 |
Correct |
396 ms |
4696 KB |
Output is correct |
69 |
Correct |
376 ms |
4728 KB |
Output is correct |
70 |
Correct |
404 ms |
4748 KB |
Output is correct |
71 |
Correct |
388 ms |
4696 KB |
Output is correct |
72 |
Correct |
422 ms |
4696 KB |
Output is correct |
73 |
Correct |
387 ms |
4696 KB |
Output is correct |
74 |
Correct |
388 ms |
4696 KB |
Output is correct |
75 |
Correct |
405 ms |
4696 KB |
Output is correct |
76 |
Correct |
16 ms |
4440 KB |
Output is correct |
77 |
Correct |
22 ms |
4444 KB |
Output is correct |
78 |
Correct |
8 ms |
4444 KB |
Output is correct |
79 |
Correct |
69 ms |
4444 KB |
Output is correct |
80 |
Correct |
376 ms |
4740 KB |
Output is correct |
81 |
Correct |
358 ms |
4696 KB |
Output is correct |
82 |
Correct |
376 ms |
4732 KB |
Output is correct |
83 |
Correct |
366 ms |
4696 KB |
Output is correct |
84 |
Correct |
381 ms |
4948 KB |
Output is correct |
85 |
Correct |
354 ms |
4700 KB |
Output is correct |
86 |
Correct |
385 ms |
4696 KB |
Output is correct |
87 |
Correct |
208 ms |
4440 KB |
Output is correct |
88 |
Correct |
217 ms |
4440 KB |
Output is correct |
89 |
Correct |
231 ms |
4688 KB |
Output is correct |
90 |
Correct |
223 ms |
4656 KB |
Output is correct |
91 |
Correct |
224 ms |
4644 KB |
Output is correct |
92 |
Correct |
219 ms |
4440 KB |
Output is correct |
93 |
Correct |
210 ms |
4644 KB |
Output is correct |
94 |
Correct |
218 ms |
4444 KB |
Output is correct |
95 |
Correct |
226 ms |
4440 KB |
Output is correct |
96 |
Correct |
217 ms |
4440 KB |
Output is correct |
97 |
Correct |
212 ms |
4440 KB |
Output is correct |
98 |
Correct |
213 ms |
4444 KB |
Output is correct |
99 |
Correct |
225 ms |
4444 KB |
Output is correct |
100 |
Correct |
232 ms |
4444 KB |
Output is correct |
101 |
Correct |
385 ms |
4696 KB |
Output is correct |
102 |
Correct |
382 ms |
4696 KB |
Output is correct |
103 |
Correct |
369 ms |
4748 KB |
Output is correct |
104 |
Correct |
404 ms |
4756 KB |
Output is correct |
105 |
Correct |
391 ms |
4752 KB |
Output is correct |
106 |
Correct |
388 ms |
4700 KB |
Output is correct |
107 |
Correct |
398 ms |
4700 KB |
Output is correct |
108 |
Correct |
402 ms |
4700 KB |
Output is correct |
109 |
Correct |
396 ms |
4948 KB |
Output is correct |
110 |
Correct |
416 ms |
4700 KB |
Output is correct |
111 |
Correct |
78 ms |
4440 KB |
Output is correct |
112 |
Correct |
211 ms |
4440 KB |
Output is correct |
113 |
Correct |
216 ms |
4696 KB |
Output is correct |
114 |
Correct |
216 ms |
4440 KB |
Output is correct |
115 |
Correct |
221 ms |
4652 KB |
Output is correct |
116 |
Correct |
217 ms |
4640 KB |
Output is correct |
117 |
Correct |
212 ms |
4444 KB |
Output is correct |
118 |
Correct |
216 ms |
4640 KB |
Output is correct |
119 |
Correct |
207 ms |
4440 KB |
Output is correct |
120 |
Correct |
233 ms |
4644 KB |
Output is correct |
121 |
Correct |
393 ms |
4700 KB |
Output is correct |
122 |
Correct |
372 ms |
4728 KB |
Output is correct |
123 |
Correct |
395 ms |
4744 KB |
Output is correct |
124 |
Correct |
423 ms |
4696 KB |
Output is correct |
125 |
Correct |
415 ms |
4700 KB |
Output is correct |
126 |
Correct |
413 ms |
4700 KB |
Output is correct |
127 |
Correct |
419 ms |
4752 KB |
Output is correct |
128 |
Correct |
423 ms |
4752 KB |
Output is correct |
129 |
Correct |
1004 ms |
6748 KB |
Output is correct |
130 |
Correct |
1018 ms |
6968 KB |
Output is correct |
131 |
Correct |
1067 ms |
7024 KB |
Output is correct |
132 |
Correct |
1036 ms |
7004 KB |
Output is correct |
133 |
Correct |
1108 ms |
7024 KB |
Output is correct |
134 |
Correct |
1102 ms |
7032 KB |
Output is correct |
135 |
Correct |
1091 ms |
7004 KB |
Output is correct |
136 |
Correct |
1039 ms |
7004 KB |
Output is correct |
137 |
Correct |
15 ms |
4580 KB |
Output is correct |
138 |
Correct |
21 ms |
4596 KB |
Output is correct |
139 |
Correct |
8 ms |
4580 KB |
Output is correct |
140 |
Correct |
71 ms |
4576 KB |
Output is correct |
141 |
Correct |
397 ms |
4704 KB |
Output is correct |
142 |
Correct |
383 ms |
4744 KB |
Output is correct |
143 |
Correct |
395 ms |
4700 KB |
Output is correct |
144 |
Correct |
382 ms |
4700 KB |
Output is correct |
145 |
Correct |
377 ms |
4952 KB |
Output is correct |
146 |
Correct |
399 ms |
4724 KB |
Output is correct |
147 |
Correct |
383 ms |
4720 KB |
Output is correct |
148 |
Correct |
988 ms |
7000 KB |
Output is correct |
149 |
Correct |
962 ms |
7004 KB |
Output is correct |
150 |
Correct |
996 ms |
7004 KB |
Output is correct |
151 |
Correct |
939 ms |
7008 KB |
Output is correct |
152 |
Correct |
1018 ms |
7000 KB |
Output is correct |
153 |
Correct |
955 ms |
6968 KB |
Output is correct |
154 |
Correct |
1004 ms |
6748 KB |
Output is correct |
155 |
Correct |
224 ms |
4440 KB |
Output is correct |
156 |
Correct |
225 ms |
4644 KB |
Output is correct |
157 |
Correct |
224 ms |
4652 KB |
Output is correct |
158 |
Correct |
217 ms |
4656 KB |
Output is correct |
159 |
Correct |
217 ms |
4640 KB |
Output is correct |
160 |
Correct |
230 ms |
4444 KB |
Output is correct |
161 |
Correct |
226 ms |
4444 KB |
Output is correct |
162 |
Correct |
237 ms |
4648 KB |
Output is correct |
163 |
Correct |
222 ms |
4444 KB |
Output is correct |
164 |
Correct |
377 ms |
4700 KB |
Output is correct |
165 |
Correct |
372 ms |
4700 KB |
Output is correct |
166 |
Correct |
391 ms |
4696 KB |
Output is correct |
167 |
Correct |
407 ms |
4752 KB |
Output is correct |
168 |
Correct |
392 ms |
4696 KB |
Output is correct |
169 |
Correct |
402 ms |
4748 KB |
Output is correct |
170 |
Correct |
213 ms |
4444 KB |
Output is correct |
171 |
Correct |
220 ms |
4656 KB |
Output is correct |
172 |
Correct |
224 ms |
4440 KB |
Output is correct |
173 |
Correct |
218 ms |
4444 KB |
Output is correct |
174 |
Correct |
223 ms |
4668 KB |
Output is correct |
175 |
Correct |
434 ms |
4696 KB |
Output is correct |
176 |
Correct |
404 ms |
4700 KB |
Output is correct |
177 |
Correct |
383 ms |
4772 KB |
Output is correct |
178 |
Correct |
408 ms |
4696 KB |
Output is correct |
179 |
Correct |
981 ms |
7004 KB |
Output is correct |
180 |
Correct |
985 ms |
7004 KB |
Output is correct |
181 |
Correct |
1080 ms |
7028 KB |
Output is correct |
182 |
Correct |
1030 ms |
7032 KB |
Output is correct |
183 |
Correct |
1118 ms |
7032 KB |
Output is correct |
184 |
Correct |
1037 ms |
7004 KB |
Output is correct |
185 |
Correct |
1151 ms |
7076 KB |
Output is correct |
186 |
Correct |
1072 ms |
7084 KB |
Output is correct |
187 |
Correct |
1112 ms |
7064 KB |
Output is correct |
188 |
Correct |
1071 ms |
7064 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
65 ms |
4444 KB |
Output is correct |
2 |
Correct |
203 ms |
4656 KB |
Output is correct |
3 |
Correct |
206 ms |
4444 KB |
Output is correct |
4 |
Correct |
235 ms |
4692 KB |
Output is correct |
5 |
Correct |
226 ms |
4652 KB |
Output is correct |
6 |
Correct |
215 ms |
4644 KB |
Output is correct |
7 |
Correct |
210 ms |
4648 KB |
Output is correct |
8 |
Correct |
228 ms |
4636 KB |
Output is correct |
9 |
Correct |
213 ms |
4640 KB |
Output is correct |
10 |
Correct |
221 ms |
4696 KB |
Output is correct |
11 |
Correct |
65 ms |
4572 KB |
Output is correct |
12 |
Correct |
217 ms |
4444 KB |
Output is correct |
13 |
Correct |
221 ms |
4440 KB |
Output is correct |
14 |
Correct |
231 ms |
4444 KB |
Output is correct |
15 |
Correct |
225 ms |
4648 KB |
Output is correct |
16 |
Correct |
222 ms |
4440 KB |
Output is correct |
17 |
Correct |
227 ms |
4644 KB |
Output is correct |
18 |
Correct |
215 ms |
4640 KB |
Output is correct |
19 |
Correct |
227 ms |
4444 KB |
Output is correct |
20 |
Correct |
213 ms |
4440 KB |
Output is correct |
21 |
Correct |
396 ms |
4696 KB |
Output is correct |
22 |
Correct |
376 ms |
4728 KB |
Output is correct |
23 |
Correct |
404 ms |
4748 KB |
Output is correct |
24 |
Correct |
388 ms |
4696 KB |
Output is correct |
25 |
Correct |
422 ms |
4696 KB |
Output is correct |
26 |
Correct |
387 ms |
4696 KB |
Output is correct |
27 |
Correct |
388 ms |
4696 KB |
Output is correct |
28 |
Correct |
405 ms |
4696 KB |
Output is correct |
29 |
Correct |
78 ms |
4440 KB |
Output is correct |
30 |
Correct |
211 ms |
4440 KB |
Output is correct |
31 |
Correct |
216 ms |
4696 KB |
Output is correct |
32 |
Correct |
216 ms |
4440 KB |
Output is correct |
33 |
Correct |
221 ms |
4652 KB |
Output is correct |
34 |
Correct |
217 ms |
4640 KB |
Output is correct |
35 |
Correct |
212 ms |
4444 KB |
Output is correct |
36 |
Correct |
216 ms |
4640 KB |
Output is correct |
37 |
Correct |
207 ms |
4440 KB |
Output is correct |
38 |
Correct |
233 ms |
4644 KB |
Output is correct |
39 |
Correct |
393 ms |
4700 KB |
Output is correct |
40 |
Correct |
372 ms |
4728 KB |
Output is correct |
41 |
Correct |
395 ms |
4744 KB |
Output is correct |
42 |
Correct |
423 ms |
4696 KB |
Output is correct |
43 |
Correct |
415 ms |
4700 KB |
Output is correct |
44 |
Correct |
413 ms |
4700 KB |
Output is correct |
45 |
Correct |
419 ms |
4752 KB |
Output is correct |
46 |
Correct |
423 ms |
4752 KB |
Output is correct |
47 |
Correct |
1004 ms |
6748 KB |
Output is correct |
48 |
Correct |
1018 ms |
6968 KB |
Output is correct |
49 |
Correct |
1067 ms |
7024 KB |
Output is correct |
50 |
Correct |
1036 ms |
7004 KB |
Output is correct |
51 |
Correct |
1108 ms |
7024 KB |
Output is correct |
52 |
Correct |
1102 ms |
7032 KB |
Output is correct |
53 |
Correct |
1091 ms |
7004 KB |
Output is correct |
54 |
Correct |
1039 ms |
7004 KB |
Output is correct |
55 |
Correct |
75 ms |
4440 KB |
Output is correct |
56 |
Correct |
218 ms |
4444 KB |
Output is correct |
57 |
Correct |
220 ms |
4656 KB |
Output is correct |
58 |
Correct |
236 ms |
4440 KB |
Output is correct |
59 |
Correct |
234 ms |
4440 KB |
Output is correct |
60 |
Correct |
241 ms |
4648 KB |
Output is correct |
61 |
Correct |
241 ms |
4444 KB |
Output is correct |
62 |
Correct |
234 ms |
4444 KB |
Output is correct |
63 |
Correct |
207 ms |
4444 KB |
Output is correct |
64 |
Correct |
221 ms |
4440 KB |
Output is correct |
65 |
Correct |
393 ms |
4728 KB |
Output is correct |
66 |
Correct |
409 ms |
4700 KB |
Output is correct |
67 |
Correct |
432 ms |
4696 KB |
Output is correct |
68 |
Correct |
394 ms |
4736 KB |
Output is correct |
69 |
Correct |
381 ms |
4748 KB |
Output is correct |
70 |
Correct |
388 ms |
4752 KB |
Output is correct |
71 |
Correct |
400 ms |
4700 KB |
Output is correct |
72 |
Correct |
388 ms |
4760 KB |
Output is correct |
73 |
Correct |
978 ms |
6964 KB |
Output is correct |
74 |
Correct |
996 ms |
6748 KB |
Output is correct |
75 |
Correct |
1044 ms |
7016 KB |
Output is correct |
76 |
Correct |
934 ms |
7000 KB |
Output is correct |
77 |
Correct |
975 ms |
7028 KB |
Output is correct |
78 |
Correct |
1041 ms |
7024 KB |
Output is correct |
79 |
Correct |
1057 ms |
7256 KB |
Output is correct |
80 |
Correct |
997 ms |
7008 KB |
Output is correct |
81 |
Execution timed out |
5077 ms |
7516 KB |
Time limit exceeded |
82 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
15 ms |
4440 KB |
Output is correct |
2 |
Correct |
24 ms |
4444 KB |
Output is correct |
3 |
Correct |
9 ms |
4444 KB |
Output is correct |
4 |
Correct |
76 ms |
4576 KB |
Output is correct |
5 |
Correct |
411 ms |
4696 KB |
Output is correct |
6 |
Correct |
375 ms |
4696 KB |
Output is correct |
7 |
Correct |
424 ms |
4696 KB |
Output is correct |
8 |
Correct |
377 ms |
4700 KB |
Output is correct |
9 |
Correct |
400 ms |
4696 KB |
Output is correct |
10 |
Correct |
406 ms |
4700 KB |
Output is correct |
11 |
Correct |
388 ms |
4696 KB |
Output is correct |
12 |
Correct |
16 ms |
4440 KB |
Output is correct |
13 |
Correct |
23 ms |
4444 KB |
Output is correct |
14 |
Correct |
9 ms |
4444 KB |
Output is correct |
15 |
Correct |
77 ms |
4576 KB |
Output is correct |
16 |
Correct |
380 ms |
4700 KB |
Output is correct |
17 |
Correct |
440 ms |
4740 KB |
Output is correct |
18 |
Correct |
395 ms |
4700 KB |
Output is correct |
19 |
Correct |
446 ms |
4740 KB |
Output is correct |
20 |
Correct |
442 ms |
4696 KB |
Output is correct |
21 |
Correct |
409 ms |
4700 KB |
Output is correct |
22 |
Correct |
412 ms |
4700 KB |
Output is correct |
23 |
Correct |
1006 ms |
7004 KB |
Output is correct |
24 |
Correct |
1044 ms |
7004 KB |
Output is correct |
25 |
Correct |
1039 ms |
7000 KB |
Output is correct |
26 |
Correct |
1063 ms |
7016 KB |
Output is correct |
27 |
Correct |
1058 ms |
7012 KB |
Output is correct |
28 |
Correct |
1002 ms |
6964 KB |
Output is correct |
29 |
Correct |
883 ms |
6744 KB |
Output is correct |
30 |
Correct |
65 ms |
4444 KB |
Output is correct |
31 |
Correct |
203 ms |
4656 KB |
Output is correct |
32 |
Correct |
206 ms |
4444 KB |
Output is correct |
33 |
Correct |
235 ms |
4692 KB |
Output is correct |
34 |
Correct |
226 ms |
4652 KB |
Output is correct |
35 |
Correct |
215 ms |
4644 KB |
Output is correct |
36 |
Correct |
210 ms |
4648 KB |
Output is correct |
37 |
Correct |
228 ms |
4636 KB |
Output is correct |
38 |
Correct |
213 ms |
4640 KB |
Output is correct |
39 |
Correct |
221 ms |
4696 KB |
Output is correct |
40 |
Correct |
17 ms |
4440 KB |
Output is correct |
41 |
Correct |
22 ms |
4444 KB |
Output is correct |
42 |
Correct |
9 ms |
4444 KB |
Output is correct |
43 |
Correct |
72 ms |
4444 KB |
Output is correct |
44 |
Correct |
227 ms |
4444 KB |
Output is correct |
45 |
Correct |
200 ms |
4696 KB |
Output is correct |
46 |
Correct |
216 ms |
4652 KB |
Output is correct |
47 |
Correct |
206 ms |
4652 KB |
Output is correct |
48 |
Correct |
199 ms |
4636 KB |
Output is correct |
49 |
Correct |
211 ms |
4440 KB |
Output is correct |
50 |
Correct |
203 ms |
4444 KB |
Output is correct |
51 |
Correct |
215 ms |
4444 KB |
Output is correct |
52 |
Correct |
235 ms |
4440 KB |
Output is correct |
53 |
Correct |
217 ms |
4696 KB |
Output is correct |
54 |
Correct |
229 ms |
4440 KB |
Output is correct |
55 |
Correct |
213 ms |
4444 KB |
Output is correct |
56 |
Correct |
227 ms |
4656 KB |
Output is correct |
57 |
Correct |
219 ms |
4444 KB |
Output is correct |
58 |
Correct |
65 ms |
4572 KB |
Output is correct |
59 |
Correct |
217 ms |
4444 KB |
Output is correct |
60 |
Correct |
221 ms |
4440 KB |
Output is correct |
61 |
Correct |
231 ms |
4444 KB |
Output is correct |
62 |
Correct |
225 ms |
4648 KB |
Output is correct |
63 |
Correct |
222 ms |
4440 KB |
Output is correct |
64 |
Correct |
227 ms |
4644 KB |
Output is correct |
65 |
Correct |
215 ms |
4640 KB |
Output is correct |
66 |
Correct |
227 ms |
4444 KB |
Output is correct |
67 |
Correct |
213 ms |
4440 KB |
Output is correct |
68 |
Correct |
396 ms |
4696 KB |
Output is correct |
69 |
Correct |
376 ms |
4728 KB |
Output is correct |
70 |
Correct |
404 ms |
4748 KB |
Output is correct |
71 |
Correct |
388 ms |
4696 KB |
Output is correct |
72 |
Correct |
422 ms |
4696 KB |
Output is correct |
73 |
Correct |
387 ms |
4696 KB |
Output is correct |
74 |
Correct |
388 ms |
4696 KB |
Output is correct |
75 |
Correct |
405 ms |
4696 KB |
Output is correct |
76 |
Correct |
16 ms |
4440 KB |
Output is correct |
77 |
Correct |
22 ms |
4444 KB |
Output is correct |
78 |
Correct |
8 ms |
4444 KB |
Output is correct |
79 |
Correct |
69 ms |
4444 KB |
Output is correct |
80 |
Correct |
376 ms |
4740 KB |
Output is correct |
81 |
Correct |
358 ms |
4696 KB |
Output is correct |
82 |
Correct |
376 ms |
4732 KB |
Output is correct |
83 |
Correct |
366 ms |
4696 KB |
Output is correct |
84 |
Correct |
381 ms |
4948 KB |
Output is correct |
85 |
Correct |
354 ms |
4700 KB |
Output is correct |
86 |
Correct |
385 ms |
4696 KB |
Output is correct |
87 |
Correct |
208 ms |
4440 KB |
Output is correct |
88 |
Correct |
217 ms |
4440 KB |
Output is correct |
89 |
Correct |
231 ms |
4688 KB |
Output is correct |
90 |
Correct |
223 ms |
4656 KB |
Output is correct |
91 |
Correct |
224 ms |
4644 KB |
Output is correct |
92 |
Correct |
219 ms |
4440 KB |
Output is correct |
93 |
Correct |
210 ms |
4644 KB |
Output is correct |
94 |
Correct |
218 ms |
4444 KB |
Output is correct |
95 |
Correct |
226 ms |
4440 KB |
Output is correct |
96 |
Correct |
217 ms |
4440 KB |
Output is correct |
97 |
Correct |
212 ms |
4440 KB |
Output is correct |
98 |
Correct |
213 ms |
4444 KB |
Output is correct |
99 |
Correct |
225 ms |
4444 KB |
Output is correct |
100 |
Correct |
232 ms |
4444 KB |
Output is correct |
101 |
Correct |
385 ms |
4696 KB |
Output is correct |
102 |
Correct |
382 ms |
4696 KB |
Output is correct |
103 |
Correct |
369 ms |
4748 KB |
Output is correct |
104 |
Correct |
404 ms |
4756 KB |
Output is correct |
105 |
Correct |
391 ms |
4752 KB |
Output is correct |
106 |
Correct |
388 ms |
4700 KB |
Output is correct |
107 |
Correct |
398 ms |
4700 KB |
Output is correct |
108 |
Correct |
402 ms |
4700 KB |
Output is correct |
109 |
Correct |
396 ms |
4948 KB |
Output is correct |
110 |
Correct |
416 ms |
4700 KB |
Output is correct |
111 |
Correct |
78 ms |
4440 KB |
Output is correct |
112 |
Correct |
211 ms |
4440 KB |
Output is correct |
113 |
Correct |
216 ms |
4696 KB |
Output is correct |
114 |
Correct |
216 ms |
4440 KB |
Output is correct |
115 |
Correct |
221 ms |
4652 KB |
Output is correct |
116 |
Correct |
217 ms |
4640 KB |
Output is correct |
117 |
Correct |
212 ms |
4444 KB |
Output is correct |
118 |
Correct |
216 ms |
4640 KB |
Output is correct |
119 |
Correct |
207 ms |
4440 KB |
Output is correct |
120 |
Correct |
233 ms |
4644 KB |
Output is correct |
121 |
Correct |
393 ms |
4700 KB |
Output is correct |
122 |
Correct |
372 ms |
4728 KB |
Output is correct |
123 |
Correct |
395 ms |
4744 KB |
Output is correct |
124 |
Correct |
423 ms |
4696 KB |
Output is correct |
125 |
Correct |
415 ms |
4700 KB |
Output is correct |
126 |
Correct |
413 ms |
4700 KB |
Output is correct |
127 |
Correct |
419 ms |
4752 KB |
Output is correct |
128 |
Correct |
423 ms |
4752 KB |
Output is correct |
129 |
Correct |
1004 ms |
6748 KB |
Output is correct |
130 |
Correct |
1018 ms |
6968 KB |
Output is correct |
131 |
Correct |
1067 ms |
7024 KB |
Output is correct |
132 |
Correct |
1036 ms |
7004 KB |
Output is correct |
133 |
Correct |
1108 ms |
7024 KB |
Output is correct |
134 |
Correct |
1102 ms |
7032 KB |
Output is correct |
135 |
Correct |
1091 ms |
7004 KB |
Output is correct |
136 |
Correct |
1039 ms |
7004 KB |
Output is correct |
137 |
Correct |
15 ms |
4580 KB |
Output is correct |
138 |
Correct |
21 ms |
4596 KB |
Output is correct |
139 |
Correct |
8 ms |
4580 KB |
Output is correct |
140 |
Correct |
71 ms |
4576 KB |
Output is correct |
141 |
Correct |
397 ms |
4704 KB |
Output is correct |
142 |
Correct |
383 ms |
4744 KB |
Output is correct |
143 |
Correct |
395 ms |
4700 KB |
Output is correct |
144 |
Correct |
382 ms |
4700 KB |
Output is correct |
145 |
Correct |
377 ms |
4952 KB |
Output is correct |
146 |
Correct |
399 ms |
4724 KB |
Output is correct |
147 |
Correct |
383 ms |
4720 KB |
Output is correct |
148 |
Correct |
988 ms |
7000 KB |
Output is correct |
149 |
Correct |
962 ms |
7004 KB |
Output is correct |
150 |
Correct |
996 ms |
7004 KB |
Output is correct |
151 |
Correct |
939 ms |
7008 KB |
Output is correct |
152 |
Correct |
1018 ms |
7000 KB |
Output is correct |
153 |
Correct |
955 ms |
6968 KB |
Output is correct |
154 |
Correct |
1004 ms |
6748 KB |
Output is correct |
155 |
Correct |
224 ms |
4440 KB |
Output is correct |
156 |
Correct |
225 ms |
4644 KB |
Output is correct |
157 |
Correct |
224 ms |
4652 KB |
Output is correct |
158 |
Correct |
217 ms |
4656 KB |
Output is correct |
159 |
Correct |
217 ms |
4640 KB |
Output is correct |
160 |
Correct |
230 ms |
4444 KB |
Output is correct |
161 |
Correct |
226 ms |
4444 KB |
Output is correct |
162 |
Correct |
237 ms |
4648 KB |
Output is correct |
163 |
Correct |
222 ms |
4444 KB |
Output is correct |
164 |
Correct |
377 ms |
4700 KB |
Output is correct |
165 |
Correct |
372 ms |
4700 KB |
Output is correct |
166 |
Correct |
391 ms |
4696 KB |
Output is correct |
167 |
Correct |
407 ms |
4752 KB |
Output is correct |
168 |
Correct |
392 ms |
4696 KB |
Output is correct |
169 |
Correct |
402 ms |
4748 KB |
Output is correct |
170 |
Correct |
213 ms |
4444 KB |
Output is correct |
171 |
Correct |
220 ms |
4656 KB |
Output is correct |
172 |
Correct |
224 ms |
4440 KB |
Output is correct |
173 |
Correct |
218 ms |
4444 KB |
Output is correct |
174 |
Correct |
223 ms |
4668 KB |
Output is correct |
175 |
Correct |
434 ms |
4696 KB |
Output is correct |
176 |
Correct |
404 ms |
4700 KB |
Output is correct |
177 |
Correct |
383 ms |
4772 KB |
Output is correct |
178 |
Correct |
408 ms |
4696 KB |
Output is correct |
179 |
Correct |
981 ms |
7004 KB |
Output is correct |
180 |
Correct |
985 ms |
7004 KB |
Output is correct |
181 |
Correct |
1080 ms |
7028 KB |
Output is correct |
182 |
Correct |
1030 ms |
7032 KB |
Output is correct |
183 |
Correct |
1118 ms |
7032 KB |
Output is correct |
184 |
Correct |
1037 ms |
7004 KB |
Output is correct |
185 |
Correct |
1151 ms |
7076 KB |
Output is correct |
186 |
Correct |
1072 ms |
7084 KB |
Output is correct |
187 |
Correct |
1112 ms |
7064 KB |
Output is correct |
188 |
Correct |
1071 ms |
7064 KB |
Output is correct |
189 |
Correct |
75 ms |
4440 KB |
Output is correct |
190 |
Correct |
218 ms |
4444 KB |
Output is correct |
191 |
Correct |
220 ms |
4656 KB |
Output is correct |
192 |
Correct |
236 ms |
4440 KB |
Output is correct |
193 |
Correct |
234 ms |
4440 KB |
Output is correct |
194 |
Correct |
241 ms |
4648 KB |
Output is correct |
195 |
Correct |
241 ms |
4444 KB |
Output is correct |
196 |
Correct |
234 ms |
4444 KB |
Output is correct |
197 |
Correct |
207 ms |
4444 KB |
Output is correct |
198 |
Correct |
221 ms |
4440 KB |
Output is correct |
199 |
Correct |
393 ms |
4728 KB |
Output is correct |
200 |
Correct |
409 ms |
4700 KB |
Output is correct |
201 |
Correct |
432 ms |
4696 KB |
Output is correct |
202 |
Correct |
394 ms |
4736 KB |
Output is correct |
203 |
Correct |
381 ms |
4748 KB |
Output is correct |
204 |
Correct |
388 ms |
4752 KB |
Output is correct |
205 |
Correct |
400 ms |
4700 KB |
Output is correct |
206 |
Correct |
388 ms |
4760 KB |
Output is correct |
207 |
Correct |
978 ms |
6964 KB |
Output is correct |
208 |
Correct |
996 ms |
6748 KB |
Output is correct |
209 |
Correct |
1044 ms |
7016 KB |
Output is correct |
210 |
Correct |
934 ms |
7000 KB |
Output is correct |
211 |
Correct |
975 ms |
7028 KB |
Output is correct |
212 |
Correct |
1041 ms |
7024 KB |
Output is correct |
213 |
Correct |
1057 ms |
7256 KB |
Output is correct |
214 |
Correct |
997 ms |
7008 KB |
Output is correct |
215 |
Execution timed out |
5077 ms |
7516 KB |
Time limit exceeded |
216 |
Halted |
0 ms |
0 KB |
- |