#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
const ll INF=1e18+7;
const ll LIM=5e5+7;
ll dp[LIM], dp2[LIM], A[LIM], B[LIM];
int main() {
ios_base::sync_with_stdio(0); cin.tie(0);
ll n, m;
cin >> n >> m;
rep(i, n) cin >> A[n-i];
rep(i, n+1) cin >> B[i];
ll ans=0;
rep(i, n+1) ans+=B[i];
rep(i, n+1) ans+=A[i];
rep(i, n+1) m+=A[i]*(ll)i;
rep(i, n+1) m-=B[i]*(ll)i;
if(m<0) {
m*=-1;
rep(i, n+1) swap(A[i], B[i]);
}
rep(i, LIM) dp[i]=INF;
dp[0]=0;
for(ll i=n; i; --i) {
if(m>=LIM/2) {
ll p=m-LIM/2;
p=(p+i-1)/i;
p=min(p, max(A[i]-50, 0ll));
A[i]-=p;
dp[0]+=p;
m-=p*i;
}
}
if(m>=LIM) {
cout << "impossible\n";
return 0;
}
rep(xd, 2) {
for(ll i=1; i<=n; ++i) {
vector<ll>V[i], l(i);
rep(j, LIM) {
ll p=j%i;
while(l[p]<V[p].size() && (j-V[p][l[p]])/i>A[i]) ++l[p];
while(V[p].size()>0 && dp[j]<=dp[V[p].back()]+(j-V[p].back())/i) {
V[p].pop_back();
l[p]=min(l[p], (ll)V[p].size());
}
dp2[j]=dp[j];
if(l[p]<V[p].size()) {
dp2[j]=min(dp2[j], dp[V[p][l[p]]]+(j-V[p][l[p]])/i);
}
V[p].pb(j);
}
rep(j, LIM) dp[j]=dp2[j];
}
rep(i, LIM/2) swap(dp[i], dp[LIM-i-1]);
rep(i, n+1) swap(A[i], B[i]);
}
if(dp[m]==INF) {
cout << "impossible\n";
return 0;
}
cout << ans-dp[m] << '\n';
}
Compilation message
vault.cpp: In function 'int main()':
vault.cpp:48:15: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(l[p]<V[p].size() && (j-V[p][l[p]])/i>A[i]) ++l[p];
vault.cpp:54:12: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | if(l[p]<V[p].size()) {
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
20 ms |
11608 KB |
Output is correct |
2 |
Correct |
32 ms |
11864 KB |
Output is correct |
3 |
Correct |
11 ms |
11612 KB |
Output is correct |
4 |
Correct |
95 ms |
11612 KB |
Output is correct |
5 |
Correct |
1 ms |
7516 KB |
Output is correct |
6 |
Correct |
472 ms |
12004 KB |
Output is correct |
7 |
Correct |
461 ms |
11808 KB |
Output is correct |
8 |
Correct |
467 ms |
12020 KB |
Output is correct |
9 |
Correct |
495 ms |
12260 KB |
Output is correct |
10 |
Correct |
414 ms |
11612 KB |
Output is correct |
11 |
Correct |
405 ms |
11612 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
20 ms |
11608 KB |
Output is correct |
2 |
Correct |
32 ms |
11864 KB |
Output is correct |
3 |
Correct |
11 ms |
11612 KB |
Output is correct |
4 |
Correct |
95 ms |
11612 KB |
Output is correct |
5 |
Correct |
1 ms |
7516 KB |
Output is correct |
6 |
Correct |
472 ms |
12004 KB |
Output is correct |
7 |
Correct |
461 ms |
11808 KB |
Output is correct |
8 |
Correct |
467 ms |
12020 KB |
Output is correct |
9 |
Correct |
495 ms |
12260 KB |
Output is correct |
10 |
Correct |
414 ms |
11612 KB |
Output is correct |
11 |
Correct |
405 ms |
11612 KB |
Output is correct |
12 |
Correct |
21 ms |
11828 KB |
Output is correct |
13 |
Correct |
29 ms |
11608 KB |
Output is correct |
14 |
Correct |
12 ms |
11608 KB |
Output is correct |
15 |
Correct |
99 ms |
11612 KB |
Output is correct |
16 |
Correct |
1 ms |
7512 KB |
Output is correct |
17 |
Correct |
471 ms |
12020 KB |
Output is correct |
18 |
Correct |
463 ms |
11856 KB |
Output is correct |
19 |
Correct |
472 ms |
12040 KB |
Output is correct |
20 |
Correct |
470 ms |
12136 KB |
Output is correct |
21 |
Correct |
411 ms |
11612 KB |
Output is correct |
22 |
Correct |
419 ms |
11612 KB |
Output is correct |
23 |
Correct |
2 ms |
7516 KB |
Output is correct |
24 |
Correct |
993 ms |
13436 KB |
Output is correct |
25 |
Correct |
954 ms |
12280 KB |
Output is correct |
26 |
Correct |
1028 ms |
14728 KB |
Output is correct |
27 |
Correct |
1036 ms |
13568 KB |
Output is correct |
28 |
Correct |
802 ms |
11612 KB |
Output is correct |
29 |
Correct |
813 ms |
11800 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
94 ms |
11824 KB |
Output is correct |
2 |
Correct |
323 ms |
13676 KB |
Output is correct |
3 |
Correct |
292 ms |
15104 KB |
Output is correct |
4 |
Correct |
343 ms |
18232 KB |
Output is correct |
5 |
Correct |
334 ms |
17736 KB |
Output is correct |
6 |
Correct |
367 ms |
18552 KB |
Output is correct |
7 |
Correct |
259 ms |
12052 KB |
Output is correct |
8 |
Correct |
252 ms |
11860 KB |
Output is correct |
9 |
Correct |
327 ms |
18548 KB |
Output is correct |
10 |
Correct |
328 ms |
15148 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
94 ms |
11824 KB |
Output is correct |
2 |
Correct |
323 ms |
13676 KB |
Output is correct |
3 |
Correct |
292 ms |
15104 KB |
Output is correct |
4 |
Correct |
343 ms |
18232 KB |
Output is correct |
5 |
Correct |
334 ms |
17736 KB |
Output is correct |
6 |
Correct |
367 ms |
18552 KB |
Output is correct |
7 |
Correct |
259 ms |
12052 KB |
Output is correct |
8 |
Correct |
252 ms |
11860 KB |
Output is correct |
9 |
Correct |
327 ms |
18548 KB |
Output is correct |
10 |
Correct |
328 ms |
15148 KB |
Output is correct |
11 |
Correct |
21 ms |
11612 KB |
Output is correct |
12 |
Correct |
28 ms |
11608 KB |
Output is correct |
13 |
Correct |
11 ms |
11832 KB |
Output is correct |
14 |
Correct |
95 ms |
11800 KB |
Output is correct |
15 |
Correct |
320 ms |
13736 KB |
Output is correct |
16 |
Correct |
285 ms |
15180 KB |
Output is correct |
17 |
Correct |
345 ms |
18120 KB |
Output is correct |
18 |
Correct |
338 ms |
17716 KB |
Output is correct |
19 |
Correct |
376 ms |
18572 KB |
Output is correct |
20 |
Correct |
253 ms |
11860 KB |
Output is correct |
21 |
Correct |
257 ms |
12116 KB |
Output is correct |
22 |
Correct |
327 ms |
18548 KB |
Output is correct |
23 |
Correct |
311 ms |
15256 KB |
Output is correct |
24 |
Correct |
327 ms |
14840 KB |
Output is correct |
25 |
Correct |
285 ms |
14960 KB |
Output is correct |
26 |
Correct |
357 ms |
18228 KB |
Output is correct |
27 |
Correct |
330 ms |
17932 KB |
Output is correct |
28 |
Correct |
374 ms |
18540 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
94 ms |
11824 KB |
Output is correct |
2 |
Correct |
323 ms |
13676 KB |
Output is correct |
3 |
Correct |
292 ms |
15104 KB |
Output is correct |
4 |
Correct |
343 ms |
18232 KB |
Output is correct |
5 |
Correct |
334 ms |
17736 KB |
Output is correct |
6 |
Correct |
367 ms |
18552 KB |
Output is correct |
7 |
Correct |
259 ms |
12052 KB |
Output is correct |
8 |
Correct |
252 ms |
11860 KB |
Output is correct |
9 |
Correct |
327 ms |
18548 KB |
Output is correct |
10 |
Correct |
328 ms |
15148 KB |
Output is correct |
11 |
Correct |
95 ms |
11612 KB |
Output is correct |
12 |
Correct |
324 ms |
13776 KB |
Output is correct |
13 |
Correct |
287 ms |
15088 KB |
Output is correct |
14 |
Correct |
342 ms |
18136 KB |
Output is correct |
15 |
Correct |
337 ms |
17984 KB |
Output is correct |
16 |
Correct |
375 ms |
18544 KB |
Output is correct |
17 |
Correct |
252 ms |
11860 KB |
Output is correct |
18 |
Correct |
256 ms |
11856 KB |
Output is correct |
19 |
Correct |
327 ms |
18540 KB |
Output is correct |
20 |
Correct |
309 ms |
15132 KB |
Output is correct |
21 |
Correct |
403 ms |
11816 KB |
Output is correct |
22 |
Correct |
401 ms |
11608 KB |
Output is correct |
23 |
Correct |
545 ms |
16872 KB |
Output is correct |
24 |
Correct |
498 ms |
18080 KB |
Output is correct |
25 |
Correct |
557 ms |
18540 KB |
Output is correct |
26 |
Correct |
572 ms |
18520 KB |
Output is correct |
27 |
Correct |
617 ms |
18512 KB |
Output is correct |
28 |
Correct |
537 ms |
14772 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
20 ms |
11608 KB |
Output is correct |
2 |
Correct |
32 ms |
11864 KB |
Output is correct |
3 |
Correct |
11 ms |
11612 KB |
Output is correct |
4 |
Correct |
95 ms |
11612 KB |
Output is correct |
5 |
Correct |
1 ms |
7516 KB |
Output is correct |
6 |
Correct |
472 ms |
12004 KB |
Output is correct |
7 |
Correct |
461 ms |
11808 KB |
Output is correct |
8 |
Correct |
467 ms |
12020 KB |
Output is correct |
9 |
Correct |
495 ms |
12260 KB |
Output is correct |
10 |
Correct |
414 ms |
11612 KB |
Output is correct |
11 |
Correct |
405 ms |
11612 KB |
Output is correct |
12 |
Correct |
94 ms |
11824 KB |
Output is correct |
13 |
Correct |
323 ms |
13676 KB |
Output is correct |
14 |
Correct |
292 ms |
15104 KB |
Output is correct |
15 |
Correct |
343 ms |
18232 KB |
Output is correct |
16 |
Correct |
334 ms |
17736 KB |
Output is correct |
17 |
Correct |
367 ms |
18552 KB |
Output is correct |
18 |
Correct |
259 ms |
12052 KB |
Output is correct |
19 |
Correct |
252 ms |
11860 KB |
Output is correct |
20 |
Correct |
327 ms |
18548 KB |
Output is correct |
21 |
Correct |
328 ms |
15148 KB |
Output is correct |
22 |
Correct |
21 ms |
11612 KB |
Output is correct |
23 |
Correct |
28 ms |
11608 KB |
Output is correct |
24 |
Correct |
11 ms |
11832 KB |
Output is correct |
25 |
Correct |
95 ms |
11800 KB |
Output is correct |
26 |
Correct |
320 ms |
13736 KB |
Output is correct |
27 |
Correct |
285 ms |
15180 KB |
Output is correct |
28 |
Correct |
345 ms |
18120 KB |
Output is correct |
29 |
Correct |
338 ms |
17716 KB |
Output is correct |
30 |
Correct |
376 ms |
18572 KB |
Output is correct |
31 |
Correct |
253 ms |
11860 KB |
Output is correct |
32 |
Correct |
257 ms |
12116 KB |
Output is correct |
33 |
Correct |
327 ms |
18548 KB |
Output is correct |
34 |
Correct |
311 ms |
15256 KB |
Output is correct |
35 |
Correct |
327 ms |
14840 KB |
Output is correct |
36 |
Correct |
285 ms |
14960 KB |
Output is correct |
37 |
Correct |
357 ms |
18228 KB |
Output is correct |
38 |
Correct |
330 ms |
17932 KB |
Output is correct |
39 |
Correct |
374 ms |
18540 KB |
Output is correct |
40 |
Correct |
95 ms |
11612 KB |
Output is correct |
41 |
Correct |
324 ms |
13776 KB |
Output is correct |
42 |
Correct |
287 ms |
15088 KB |
Output is correct |
43 |
Correct |
342 ms |
18136 KB |
Output is correct |
44 |
Correct |
337 ms |
17984 KB |
Output is correct |
45 |
Correct |
375 ms |
18544 KB |
Output is correct |
46 |
Correct |
252 ms |
11860 KB |
Output is correct |
47 |
Correct |
256 ms |
11856 KB |
Output is correct |
48 |
Correct |
327 ms |
18540 KB |
Output is correct |
49 |
Correct |
309 ms |
15132 KB |
Output is correct |
50 |
Correct |
403 ms |
11816 KB |
Output is correct |
51 |
Correct |
401 ms |
11608 KB |
Output is correct |
52 |
Correct |
545 ms |
16872 KB |
Output is correct |
53 |
Correct |
498 ms |
18080 KB |
Output is correct |
54 |
Correct |
557 ms |
18540 KB |
Output is correct |
55 |
Correct |
572 ms |
18520 KB |
Output is correct |
56 |
Correct |
617 ms |
18512 KB |
Output is correct |
57 |
Correct |
537 ms |
14772 KB |
Output is correct |
58 |
Correct |
22 ms |
11612 KB |
Output is correct |
59 |
Correct |
28 ms |
11612 KB |
Output is correct |
60 |
Correct |
11 ms |
11612 KB |
Output is correct |
61 |
Correct |
99 ms |
11828 KB |
Output is correct |
62 |
Correct |
1 ms |
7516 KB |
Output is correct |
63 |
Correct |
477 ms |
11996 KB |
Output is correct |
64 |
Correct |
473 ms |
11804 KB |
Output is correct |
65 |
Correct |
475 ms |
12052 KB |
Output is correct |
66 |
Correct |
483 ms |
12140 KB |
Output is correct |
67 |
Correct |
424 ms |
11860 KB |
Output is correct |
68 |
Correct |
408 ms |
11612 KB |
Output is correct |
69 |
Correct |
325 ms |
13672 KB |
Output is correct |
70 |
Correct |
284 ms |
15104 KB |
Output is correct |
71 |
Correct |
339 ms |
18100 KB |
Output is correct |
72 |
Correct |
332 ms |
17904 KB |
Output is correct |
73 |
Correct |
374 ms |
18552 KB |
Output is correct |
74 |
Correct |
256 ms |
12060 KB |
Output is correct |
75 |
Correct |
251 ms |
11860 KB |
Output is correct |
76 |
Correct |
336 ms |
18552 KB |
Output is correct |
77 |
Correct |
310 ms |
15216 KB |
Output is correct |
78 |
Correct |
325 ms |
14828 KB |
Output is correct |
79 |
Correct |
278 ms |
14916 KB |
Output is correct |
80 |
Correct |
362 ms |
18204 KB |
Output is correct |
81 |
Correct |
331 ms |
17872 KB |
Output is correct |
82 |
Correct |
373 ms |
18540 KB |
Output is correct |
83 |
Correct |
544 ms |
16684 KB |
Output is correct |
84 |
Correct |
515 ms |
17948 KB |
Output is correct |
85 |
Correct |
553 ms |
18540 KB |
Output is correct |
86 |
Correct |
568 ms |
18468 KB |
Output is correct |
87 |
Correct |
633 ms |
20088 KB |
Output is correct |
88 |
Correct |
531 ms |
14672 KB |
Output is correct |
89 |
Correct |
538 ms |
15052 KB |
Output is correct |
90 |
Correct |
541 ms |
16796 KB |
Output is correct |
91 |
Correct |
531 ms |
18552 KB |
Output is correct |
92 |
Correct |
617 ms |
19832 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
94 ms |
11824 KB |
Output is correct |
2 |
Correct |
323 ms |
13676 KB |
Output is correct |
3 |
Correct |
292 ms |
15104 KB |
Output is correct |
4 |
Correct |
343 ms |
18232 KB |
Output is correct |
5 |
Correct |
334 ms |
17736 KB |
Output is correct |
6 |
Correct |
367 ms |
18552 KB |
Output is correct |
7 |
Correct |
259 ms |
12052 KB |
Output is correct |
8 |
Correct |
252 ms |
11860 KB |
Output is correct |
9 |
Correct |
327 ms |
18548 KB |
Output is correct |
10 |
Correct |
328 ms |
15148 KB |
Output is correct |
11 |
Correct |
95 ms |
11612 KB |
Output is correct |
12 |
Correct |
324 ms |
13776 KB |
Output is correct |
13 |
Correct |
287 ms |
15088 KB |
Output is correct |
14 |
Correct |
342 ms |
18136 KB |
Output is correct |
15 |
Correct |
337 ms |
17984 KB |
Output is correct |
16 |
Correct |
375 ms |
18544 KB |
Output is correct |
17 |
Correct |
252 ms |
11860 KB |
Output is correct |
18 |
Correct |
256 ms |
11856 KB |
Output is correct |
19 |
Correct |
327 ms |
18540 KB |
Output is correct |
20 |
Correct |
309 ms |
15132 KB |
Output is correct |
21 |
Correct |
403 ms |
11816 KB |
Output is correct |
22 |
Correct |
401 ms |
11608 KB |
Output is correct |
23 |
Correct |
545 ms |
16872 KB |
Output is correct |
24 |
Correct |
498 ms |
18080 KB |
Output is correct |
25 |
Correct |
557 ms |
18540 KB |
Output is correct |
26 |
Correct |
572 ms |
18520 KB |
Output is correct |
27 |
Correct |
617 ms |
18512 KB |
Output is correct |
28 |
Correct |
537 ms |
14772 KB |
Output is correct |
29 |
Correct |
97 ms |
11612 KB |
Output is correct |
30 |
Correct |
326 ms |
13676 KB |
Output is correct |
31 |
Correct |
298 ms |
15100 KB |
Output is correct |
32 |
Correct |
365 ms |
18120 KB |
Output is correct |
33 |
Correct |
328 ms |
17740 KB |
Output is correct |
34 |
Correct |
379 ms |
18540 KB |
Output is correct |
35 |
Correct |
271 ms |
12060 KB |
Output is correct |
36 |
Correct |
262 ms |
11856 KB |
Output is correct |
37 |
Correct |
348 ms |
18540 KB |
Output is correct |
38 |
Correct |
328 ms |
15144 KB |
Output is correct |
39 |
Correct |
434 ms |
11612 KB |
Output is correct |
40 |
Correct |
421 ms |
11612 KB |
Output is correct |
41 |
Correct |
561 ms |
16644 KB |
Output is correct |
42 |
Correct |
524 ms |
17940 KB |
Output is correct |
43 |
Correct |
599 ms |
18552 KB |
Output is correct |
44 |
Correct |
578 ms |
18264 KB |
Output is correct |
45 |
Correct |
643 ms |
18404 KB |
Output is correct |
46 |
Correct |
550 ms |
14840 KB |
Output is correct |
47 |
Correct |
820 ms |
11824 KB |
Output is correct |
48 |
Correct |
833 ms |
11820 KB |
Output is correct |
49 |
Correct |
1120 ms |
18540 KB |
Output is correct |
50 |
Correct |
1026 ms |
14000 KB |
Output is correct |
51 |
Correct |
1180 ms |
18432 KB |
Output is correct |
52 |
Correct |
1184 ms |
17852 KB |
Output is correct |
53 |
Correct |
1265 ms |
18544 KB |
Output is correct |
54 |
Correct |
1060 ms |
15648 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
20 ms |
11608 KB |
Output is correct |
2 |
Correct |
32 ms |
11864 KB |
Output is correct |
3 |
Correct |
11 ms |
11612 KB |
Output is correct |
4 |
Correct |
95 ms |
11612 KB |
Output is correct |
5 |
Correct |
1 ms |
7516 KB |
Output is correct |
6 |
Correct |
472 ms |
12004 KB |
Output is correct |
7 |
Correct |
461 ms |
11808 KB |
Output is correct |
8 |
Correct |
467 ms |
12020 KB |
Output is correct |
9 |
Correct |
495 ms |
12260 KB |
Output is correct |
10 |
Correct |
414 ms |
11612 KB |
Output is correct |
11 |
Correct |
405 ms |
11612 KB |
Output is correct |
12 |
Correct |
21 ms |
11828 KB |
Output is correct |
13 |
Correct |
29 ms |
11608 KB |
Output is correct |
14 |
Correct |
12 ms |
11608 KB |
Output is correct |
15 |
Correct |
99 ms |
11612 KB |
Output is correct |
16 |
Correct |
1 ms |
7512 KB |
Output is correct |
17 |
Correct |
471 ms |
12020 KB |
Output is correct |
18 |
Correct |
463 ms |
11856 KB |
Output is correct |
19 |
Correct |
472 ms |
12040 KB |
Output is correct |
20 |
Correct |
470 ms |
12136 KB |
Output is correct |
21 |
Correct |
411 ms |
11612 KB |
Output is correct |
22 |
Correct |
419 ms |
11612 KB |
Output is correct |
23 |
Correct |
2 ms |
7516 KB |
Output is correct |
24 |
Correct |
993 ms |
13436 KB |
Output is correct |
25 |
Correct |
954 ms |
12280 KB |
Output is correct |
26 |
Correct |
1028 ms |
14728 KB |
Output is correct |
27 |
Correct |
1036 ms |
13568 KB |
Output is correct |
28 |
Correct |
802 ms |
11612 KB |
Output is correct |
29 |
Correct |
813 ms |
11800 KB |
Output is correct |
30 |
Correct |
94 ms |
11824 KB |
Output is correct |
31 |
Correct |
323 ms |
13676 KB |
Output is correct |
32 |
Correct |
292 ms |
15104 KB |
Output is correct |
33 |
Correct |
343 ms |
18232 KB |
Output is correct |
34 |
Correct |
334 ms |
17736 KB |
Output is correct |
35 |
Correct |
367 ms |
18552 KB |
Output is correct |
36 |
Correct |
259 ms |
12052 KB |
Output is correct |
37 |
Correct |
252 ms |
11860 KB |
Output is correct |
38 |
Correct |
327 ms |
18548 KB |
Output is correct |
39 |
Correct |
328 ms |
15148 KB |
Output is correct |
40 |
Correct |
21 ms |
11612 KB |
Output is correct |
41 |
Correct |
28 ms |
11608 KB |
Output is correct |
42 |
Correct |
11 ms |
11832 KB |
Output is correct |
43 |
Correct |
95 ms |
11800 KB |
Output is correct |
44 |
Correct |
320 ms |
13736 KB |
Output is correct |
45 |
Correct |
285 ms |
15180 KB |
Output is correct |
46 |
Correct |
345 ms |
18120 KB |
Output is correct |
47 |
Correct |
338 ms |
17716 KB |
Output is correct |
48 |
Correct |
376 ms |
18572 KB |
Output is correct |
49 |
Correct |
253 ms |
11860 KB |
Output is correct |
50 |
Correct |
257 ms |
12116 KB |
Output is correct |
51 |
Correct |
327 ms |
18548 KB |
Output is correct |
52 |
Correct |
311 ms |
15256 KB |
Output is correct |
53 |
Correct |
327 ms |
14840 KB |
Output is correct |
54 |
Correct |
285 ms |
14960 KB |
Output is correct |
55 |
Correct |
357 ms |
18228 KB |
Output is correct |
56 |
Correct |
330 ms |
17932 KB |
Output is correct |
57 |
Correct |
374 ms |
18540 KB |
Output is correct |
58 |
Correct |
95 ms |
11612 KB |
Output is correct |
59 |
Correct |
324 ms |
13776 KB |
Output is correct |
60 |
Correct |
287 ms |
15088 KB |
Output is correct |
61 |
Correct |
342 ms |
18136 KB |
Output is correct |
62 |
Correct |
337 ms |
17984 KB |
Output is correct |
63 |
Correct |
375 ms |
18544 KB |
Output is correct |
64 |
Correct |
252 ms |
11860 KB |
Output is correct |
65 |
Correct |
256 ms |
11856 KB |
Output is correct |
66 |
Correct |
327 ms |
18540 KB |
Output is correct |
67 |
Correct |
309 ms |
15132 KB |
Output is correct |
68 |
Correct |
403 ms |
11816 KB |
Output is correct |
69 |
Correct |
401 ms |
11608 KB |
Output is correct |
70 |
Correct |
545 ms |
16872 KB |
Output is correct |
71 |
Correct |
498 ms |
18080 KB |
Output is correct |
72 |
Correct |
557 ms |
18540 KB |
Output is correct |
73 |
Correct |
572 ms |
18520 KB |
Output is correct |
74 |
Correct |
617 ms |
18512 KB |
Output is correct |
75 |
Correct |
537 ms |
14772 KB |
Output is correct |
76 |
Correct |
22 ms |
11612 KB |
Output is correct |
77 |
Correct |
28 ms |
11612 KB |
Output is correct |
78 |
Correct |
11 ms |
11612 KB |
Output is correct |
79 |
Correct |
99 ms |
11828 KB |
Output is correct |
80 |
Correct |
1 ms |
7516 KB |
Output is correct |
81 |
Correct |
477 ms |
11996 KB |
Output is correct |
82 |
Correct |
473 ms |
11804 KB |
Output is correct |
83 |
Correct |
475 ms |
12052 KB |
Output is correct |
84 |
Correct |
483 ms |
12140 KB |
Output is correct |
85 |
Correct |
424 ms |
11860 KB |
Output is correct |
86 |
Correct |
408 ms |
11612 KB |
Output is correct |
87 |
Correct |
325 ms |
13672 KB |
Output is correct |
88 |
Correct |
284 ms |
15104 KB |
Output is correct |
89 |
Correct |
339 ms |
18100 KB |
Output is correct |
90 |
Correct |
332 ms |
17904 KB |
Output is correct |
91 |
Correct |
374 ms |
18552 KB |
Output is correct |
92 |
Correct |
256 ms |
12060 KB |
Output is correct |
93 |
Correct |
251 ms |
11860 KB |
Output is correct |
94 |
Correct |
336 ms |
18552 KB |
Output is correct |
95 |
Correct |
310 ms |
15216 KB |
Output is correct |
96 |
Correct |
325 ms |
14828 KB |
Output is correct |
97 |
Correct |
278 ms |
14916 KB |
Output is correct |
98 |
Correct |
362 ms |
18204 KB |
Output is correct |
99 |
Correct |
331 ms |
17872 KB |
Output is correct |
100 |
Correct |
373 ms |
18540 KB |
Output is correct |
101 |
Correct |
544 ms |
16684 KB |
Output is correct |
102 |
Correct |
515 ms |
17948 KB |
Output is correct |
103 |
Correct |
553 ms |
18540 KB |
Output is correct |
104 |
Correct |
568 ms |
18468 KB |
Output is correct |
105 |
Correct |
633 ms |
20088 KB |
Output is correct |
106 |
Correct |
531 ms |
14672 KB |
Output is correct |
107 |
Correct |
538 ms |
15052 KB |
Output is correct |
108 |
Correct |
541 ms |
16796 KB |
Output is correct |
109 |
Correct |
531 ms |
18552 KB |
Output is correct |
110 |
Correct |
617 ms |
19832 KB |
Output is correct |
111 |
Correct |
97 ms |
11612 KB |
Output is correct |
112 |
Correct |
326 ms |
13676 KB |
Output is correct |
113 |
Correct |
298 ms |
15100 KB |
Output is correct |
114 |
Correct |
365 ms |
18120 KB |
Output is correct |
115 |
Correct |
328 ms |
17740 KB |
Output is correct |
116 |
Correct |
379 ms |
18540 KB |
Output is correct |
117 |
Correct |
271 ms |
12060 KB |
Output is correct |
118 |
Correct |
262 ms |
11856 KB |
Output is correct |
119 |
Correct |
348 ms |
18540 KB |
Output is correct |
120 |
Correct |
328 ms |
15144 KB |
Output is correct |
121 |
Correct |
434 ms |
11612 KB |
Output is correct |
122 |
Correct |
421 ms |
11612 KB |
Output is correct |
123 |
Correct |
561 ms |
16644 KB |
Output is correct |
124 |
Correct |
524 ms |
17940 KB |
Output is correct |
125 |
Correct |
599 ms |
18552 KB |
Output is correct |
126 |
Correct |
578 ms |
18264 KB |
Output is correct |
127 |
Correct |
643 ms |
18404 KB |
Output is correct |
128 |
Correct |
550 ms |
14840 KB |
Output is correct |
129 |
Correct |
820 ms |
11824 KB |
Output is correct |
130 |
Correct |
833 ms |
11820 KB |
Output is correct |
131 |
Correct |
1120 ms |
18540 KB |
Output is correct |
132 |
Correct |
1026 ms |
14000 KB |
Output is correct |
133 |
Correct |
1180 ms |
18432 KB |
Output is correct |
134 |
Correct |
1184 ms |
17852 KB |
Output is correct |
135 |
Correct |
1265 ms |
18544 KB |
Output is correct |
136 |
Correct |
1060 ms |
15648 KB |
Output is correct |
137 |
Correct |
20 ms |
11612 KB |
Output is correct |
138 |
Correct |
29 ms |
11608 KB |
Output is correct |
139 |
Correct |
12 ms |
11612 KB |
Output is correct |
140 |
Correct |
97 ms |
11824 KB |
Output is correct |
141 |
Correct |
2 ms |
7512 KB |
Output is correct |
142 |
Correct |
471 ms |
12064 KB |
Output is correct |
143 |
Correct |
477 ms |
11860 KB |
Output is correct |
144 |
Correct |
471 ms |
12192 KB |
Output is correct |
145 |
Correct |
472 ms |
12132 KB |
Output is correct |
146 |
Correct |
409 ms |
11612 KB |
Output is correct |
147 |
Correct |
415 ms |
11612 KB |
Output is correct |
148 |
Correct |
2 ms |
7512 KB |
Output is correct |
149 |
Correct |
988 ms |
13536 KB |
Output is correct |
150 |
Correct |
963 ms |
12264 KB |
Output is correct |
151 |
Correct |
1025 ms |
14832 KB |
Output is correct |
152 |
Correct |
1012 ms |
13504 KB |
Output is correct |
153 |
Correct |
805 ms |
11856 KB |
Output is correct |
154 |
Correct |
810 ms |
11864 KB |
Output is correct |
155 |
Correct |
319 ms |
13684 KB |
Output is correct |
156 |
Correct |
281 ms |
15108 KB |
Output is correct |
157 |
Correct |
347 ms |
18232 KB |
Output is correct |
158 |
Correct |
334 ms |
17692 KB |
Output is correct |
159 |
Correct |
372 ms |
18544 KB |
Output is correct |
160 |
Correct |
249 ms |
11860 KB |
Output is correct |
161 |
Correct |
253 ms |
12084 KB |
Output is correct |
162 |
Correct |
327 ms |
18548 KB |
Output is correct |
163 |
Correct |
310 ms |
15184 KB |
Output is correct |
164 |
Correct |
534 ms |
16864 KB |
Output is correct |
165 |
Correct |
503 ms |
17972 KB |
Output is correct |
166 |
Correct |
565 ms |
18540 KB |
Output is correct |
167 |
Correct |
561 ms |
18320 KB |
Output is correct |
168 |
Correct |
607 ms |
18540 KB |
Output is correct |
169 |
Correct |
530 ms |
14704 KB |
Output is correct |
170 |
Correct |
323 ms |
14972 KB |
Output is correct |
171 |
Correct |
279 ms |
14912 KB |
Output is correct |
172 |
Correct |
347 ms |
18176 KB |
Output is correct |
173 |
Correct |
326 ms |
17976 KB |
Output is correct |
174 |
Correct |
362 ms |
18528 KB |
Output is correct |
175 |
Correct |
531 ms |
15004 KB |
Output is correct |
176 |
Correct |
538 ms |
16792 KB |
Output is correct |
177 |
Correct |
542 ms |
18552 KB |
Output is correct |
178 |
Correct |
630 ms |
18540 KB |
Output is correct |
179 |
Correct |
1083 ms |
18540 KB |
Output is correct |
180 |
Correct |
997 ms |
14060 KB |
Output is correct |
181 |
Correct |
1112 ms |
19824 KB |
Output is correct |
182 |
Correct |
1129 ms |
17692 KB |
Output is correct |
183 |
Correct |
1239 ms |
18540 KB |
Output is correct |
184 |
Correct |
1059 ms |
15648 KB |
Output is correct |
185 |
Correct |
1069 ms |
18380 KB |
Output is correct |
186 |
Correct |
1095 ms |
17772 KB |
Output is correct |
187 |
Correct |
1191 ms |
18088 KB |
Output is correct |
188 |
Correct |
1219 ms |
18796 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
94 ms |
11824 KB |
Output is correct |
2 |
Correct |
323 ms |
13676 KB |
Output is correct |
3 |
Correct |
292 ms |
15104 KB |
Output is correct |
4 |
Correct |
343 ms |
18232 KB |
Output is correct |
5 |
Correct |
334 ms |
17736 KB |
Output is correct |
6 |
Correct |
367 ms |
18552 KB |
Output is correct |
7 |
Correct |
259 ms |
12052 KB |
Output is correct |
8 |
Correct |
252 ms |
11860 KB |
Output is correct |
9 |
Correct |
327 ms |
18548 KB |
Output is correct |
10 |
Correct |
328 ms |
15148 KB |
Output is correct |
11 |
Correct |
95 ms |
11612 KB |
Output is correct |
12 |
Correct |
324 ms |
13776 KB |
Output is correct |
13 |
Correct |
287 ms |
15088 KB |
Output is correct |
14 |
Correct |
342 ms |
18136 KB |
Output is correct |
15 |
Correct |
337 ms |
17984 KB |
Output is correct |
16 |
Correct |
375 ms |
18544 KB |
Output is correct |
17 |
Correct |
252 ms |
11860 KB |
Output is correct |
18 |
Correct |
256 ms |
11856 KB |
Output is correct |
19 |
Correct |
327 ms |
18540 KB |
Output is correct |
20 |
Correct |
309 ms |
15132 KB |
Output is correct |
21 |
Correct |
403 ms |
11816 KB |
Output is correct |
22 |
Correct |
401 ms |
11608 KB |
Output is correct |
23 |
Correct |
545 ms |
16872 KB |
Output is correct |
24 |
Correct |
498 ms |
18080 KB |
Output is correct |
25 |
Correct |
557 ms |
18540 KB |
Output is correct |
26 |
Correct |
572 ms |
18520 KB |
Output is correct |
27 |
Correct |
617 ms |
18512 KB |
Output is correct |
28 |
Correct |
537 ms |
14772 KB |
Output is correct |
29 |
Correct |
97 ms |
11612 KB |
Output is correct |
30 |
Correct |
326 ms |
13676 KB |
Output is correct |
31 |
Correct |
298 ms |
15100 KB |
Output is correct |
32 |
Correct |
365 ms |
18120 KB |
Output is correct |
33 |
Correct |
328 ms |
17740 KB |
Output is correct |
34 |
Correct |
379 ms |
18540 KB |
Output is correct |
35 |
Correct |
271 ms |
12060 KB |
Output is correct |
36 |
Correct |
262 ms |
11856 KB |
Output is correct |
37 |
Correct |
348 ms |
18540 KB |
Output is correct |
38 |
Correct |
328 ms |
15144 KB |
Output is correct |
39 |
Correct |
434 ms |
11612 KB |
Output is correct |
40 |
Correct |
421 ms |
11612 KB |
Output is correct |
41 |
Correct |
561 ms |
16644 KB |
Output is correct |
42 |
Correct |
524 ms |
17940 KB |
Output is correct |
43 |
Correct |
599 ms |
18552 KB |
Output is correct |
44 |
Correct |
578 ms |
18264 KB |
Output is correct |
45 |
Correct |
643 ms |
18404 KB |
Output is correct |
46 |
Correct |
550 ms |
14840 KB |
Output is correct |
47 |
Correct |
820 ms |
11824 KB |
Output is correct |
48 |
Correct |
833 ms |
11820 KB |
Output is correct |
49 |
Correct |
1120 ms |
18540 KB |
Output is correct |
50 |
Correct |
1026 ms |
14000 KB |
Output is correct |
51 |
Correct |
1180 ms |
18432 KB |
Output is correct |
52 |
Correct |
1184 ms |
17852 KB |
Output is correct |
53 |
Correct |
1265 ms |
18544 KB |
Output is correct |
54 |
Correct |
1060 ms |
15648 KB |
Output is correct |
55 |
Correct |
95 ms |
11608 KB |
Output is correct |
56 |
Correct |
319 ms |
13676 KB |
Output is correct |
57 |
Correct |
287 ms |
15092 KB |
Output is correct |
58 |
Correct |
337 ms |
18136 KB |
Output is correct |
59 |
Correct |
328 ms |
17720 KB |
Output is correct |
60 |
Correct |
369 ms |
20076 KB |
Output is correct |
61 |
Correct |
246 ms |
12060 KB |
Output is correct |
62 |
Correct |
244 ms |
11824 KB |
Output is correct |
63 |
Correct |
320 ms |
18540 KB |
Output is correct |
64 |
Correct |
301 ms |
15392 KB |
Output is correct |
65 |
Correct |
399 ms |
11612 KB |
Output is correct |
66 |
Correct |
408 ms |
11860 KB |
Output is correct |
67 |
Correct |
547 ms |
16672 KB |
Output is correct |
68 |
Correct |
499 ms |
17944 KB |
Output is correct |
69 |
Correct |
557 ms |
18540 KB |
Output is correct |
70 |
Correct |
557 ms |
18276 KB |
Output is correct |
71 |
Correct |
622 ms |
18360 KB |
Output is correct |
72 |
Correct |
543 ms |
14748 KB |
Output is correct |
73 |
Correct |
799 ms |
11804 KB |
Output is correct |
74 |
Correct |
808 ms |
11812 KB |
Output is correct |
75 |
Correct |
1081 ms |
18540 KB |
Output is correct |
76 |
Correct |
998 ms |
13956 KB |
Output is correct |
77 |
Correct |
1104 ms |
18544 KB |
Output is correct |
78 |
Correct |
1141 ms |
17692 KB |
Output is correct |
79 |
Correct |
1242 ms |
18408 KB |
Output is correct |
80 |
Correct |
1080 ms |
15628 KB |
Output is correct |
81 |
Correct |
3235 ms |
16952 KB |
Output is correct |
82 |
Correct |
3077 ms |
13580 KB |
Output is correct |
83 |
Correct |
3257 ms |
18424 KB |
Output is correct |
84 |
Incorrect |
3337 ms |
18552 KB |
Output isn't correct |
85 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
20 ms |
11608 KB |
Output is correct |
2 |
Correct |
32 ms |
11864 KB |
Output is correct |
3 |
Correct |
11 ms |
11612 KB |
Output is correct |
4 |
Correct |
95 ms |
11612 KB |
Output is correct |
5 |
Correct |
1 ms |
7516 KB |
Output is correct |
6 |
Correct |
472 ms |
12004 KB |
Output is correct |
7 |
Correct |
461 ms |
11808 KB |
Output is correct |
8 |
Correct |
467 ms |
12020 KB |
Output is correct |
9 |
Correct |
495 ms |
12260 KB |
Output is correct |
10 |
Correct |
414 ms |
11612 KB |
Output is correct |
11 |
Correct |
405 ms |
11612 KB |
Output is correct |
12 |
Correct |
21 ms |
11828 KB |
Output is correct |
13 |
Correct |
29 ms |
11608 KB |
Output is correct |
14 |
Correct |
12 ms |
11608 KB |
Output is correct |
15 |
Correct |
99 ms |
11612 KB |
Output is correct |
16 |
Correct |
1 ms |
7512 KB |
Output is correct |
17 |
Correct |
471 ms |
12020 KB |
Output is correct |
18 |
Correct |
463 ms |
11856 KB |
Output is correct |
19 |
Correct |
472 ms |
12040 KB |
Output is correct |
20 |
Correct |
470 ms |
12136 KB |
Output is correct |
21 |
Correct |
411 ms |
11612 KB |
Output is correct |
22 |
Correct |
419 ms |
11612 KB |
Output is correct |
23 |
Correct |
2 ms |
7516 KB |
Output is correct |
24 |
Correct |
993 ms |
13436 KB |
Output is correct |
25 |
Correct |
954 ms |
12280 KB |
Output is correct |
26 |
Correct |
1028 ms |
14728 KB |
Output is correct |
27 |
Correct |
1036 ms |
13568 KB |
Output is correct |
28 |
Correct |
802 ms |
11612 KB |
Output is correct |
29 |
Correct |
813 ms |
11800 KB |
Output is correct |
30 |
Correct |
94 ms |
11824 KB |
Output is correct |
31 |
Correct |
323 ms |
13676 KB |
Output is correct |
32 |
Correct |
292 ms |
15104 KB |
Output is correct |
33 |
Correct |
343 ms |
18232 KB |
Output is correct |
34 |
Correct |
334 ms |
17736 KB |
Output is correct |
35 |
Correct |
367 ms |
18552 KB |
Output is correct |
36 |
Correct |
259 ms |
12052 KB |
Output is correct |
37 |
Correct |
252 ms |
11860 KB |
Output is correct |
38 |
Correct |
327 ms |
18548 KB |
Output is correct |
39 |
Correct |
328 ms |
15148 KB |
Output is correct |
40 |
Correct |
21 ms |
11612 KB |
Output is correct |
41 |
Correct |
28 ms |
11608 KB |
Output is correct |
42 |
Correct |
11 ms |
11832 KB |
Output is correct |
43 |
Correct |
95 ms |
11800 KB |
Output is correct |
44 |
Correct |
320 ms |
13736 KB |
Output is correct |
45 |
Correct |
285 ms |
15180 KB |
Output is correct |
46 |
Correct |
345 ms |
18120 KB |
Output is correct |
47 |
Correct |
338 ms |
17716 KB |
Output is correct |
48 |
Correct |
376 ms |
18572 KB |
Output is correct |
49 |
Correct |
253 ms |
11860 KB |
Output is correct |
50 |
Correct |
257 ms |
12116 KB |
Output is correct |
51 |
Correct |
327 ms |
18548 KB |
Output is correct |
52 |
Correct |
311 ms |
15256 KB |
Output is correct |
53 |
Correct |
327 ms |
14840 KB |
Output is correct |
54 |
Correct |
285 ms |
14960 KB |
Output is correct |
55 |
Correct |
357 ms |
18228 KB |
Output is correct |
56 |
Correct |
330 ms |
17932 KB |
Output is correct |
57 |
Correct |
374 ms |
18540 KB |
Output is correct |
58 |
Correct |
95 ms |
11612 KB |
Output is correct |
59 |
Correct |
324 ms |
13776 KB |
Output is correct |
60 |
Correct |
287 ms |
15088 KB |
Output is correct |
61 |
Correct |
342 ms |
18136 KB |
Output is correct |
62 |
Correct |
337 ms |
17984 KB |
Output is correct |
63 |
Correct |
375 ms |
18544 KB |
Output is correct |
64 |
Correct |
252 ms |
11860 KB |
Output is correct |
65 |
Correct |
256 ms |
11856 KB |
Output is correct |
66 |
Correct |
327 ms |
18540 KB |
Output is correct |
67 |
Correct |
309 ms |
15132 KB |
Output is correct |
68 |
Correct |
403 ms |
11816 KB |
Output is correct |
69 |
Correct |
401 ms |
11608 KB |
Output is correct |
70 |
Correct |
545 ms |
16872 KB |
Output is correct |
71 |
Correct |
498 ms |
18080 KB |
Output is correct |
72 |
Correct |
557 ms |
18540 KB |
Output is correct |
73 |
Correct |
572 ms |
18520 KB |
Output is correct |
74 |
Correct |
617 ms |
18512 KB |
Output is correct |
75 |
Correct |
537 ms |
14772 KB |
Output is correct |
76 |
Correct |
22 ms |
11612 KB |
Output is correct |
77 |
Correct |
28 ms |
11612 KB |
Output is correct |
78 |
Correct |
11 ms |
11612 KB |
Output is correct |
79 |
Correct |
99 ms |
11828 KB |
Output is correct |
80 |
Correct |
1 ms |
7516 KB |
Output is correct |
81 |
Correct |
477 ms |
11996 KB |
Output is correct |
82 |
Correct |
473 ms |
11804 KB |
Output is correct |
83 |
Correct |
475 ms |
12052 KB |
Output is correct |
84 |
Correct |
483 ms |
12140 KB |
Output is correct |
85 |
Correct |
424 ms |
11860 KB |
Output is correct |
86 |
Correct |
408 ms |
11612 KB |
Output is correct |
87 |
Correct |
325 ms |
13672 KB |
Output is correct |
88 |
Correct |
284 ms |
15104 KB |
Output is correct |
89 |
Correct |
339 ms |
18100 KB |
Output is correct |
90 |
Correct |
332 ms |
17904 KB |
Output is correct |
91 |
Correct |
374 ms |
18552 KB |
Output is correct |
92 |
Correct |
256 ms |
12060 KB |
Output is correct |
93 |
Correct |
251 ms |
11860 KB |
Output is correct |
94 |
Correct |
336 ms |
18552 KB |
Output is correct |
95 |
Correct |
310 ms |
15216 KB |
Output is correct |
96 |
Correct |
325 ms |
14828 KB |
Output is correct |
97 |
Correct |
278 ms |
14916 KB |
Output is correct |
98 |
Correct |
362 ms |
18204 KB |
Output is correct |
99 |
Correct |
331 ms |
17872 KB |
Output is correct |
100 |
Correct |
373 ms |
18540 KB |
Output is correct |
101 |
Correct |
544 ms |
16684 KB |
Output is correct |
102 |
Correct |
515 ms |
17948 KB |
Output is correct |
103 |
Correct |
553 ms |
18540 KB |
Output is correct |
104 |
Correct |
568 ms |
18468 KB |
Output is correct |
105 |
Correct |
633 ms |
20088 KB |
Output is correct |
106 |
Correct |
531 ms |
14672 KB |
Output is correct |
107 |
Correct |
538 ms |
15052 KB |
Output is correct |
108 |
Correct |
541 ms |
16796 KB |
Output is correct |
109 |
Correct |
531 ms |
18552 KB |
Output is correct |
110 |
Correct |
617 ms |
19832 KB |
Output is correct |
111 |
Correct |
97 ms |
11612 KB |
Output is correct |
112 |
Correct |
326 ms |
13676 KB |
Output is correct |
113 |
Correct |
298 ms |
15100 KB |
Output is correct |
114 |
Correct |
365 ms |
18120 KB |
Output is correct |
115 |
Correct |
328 ms |
17740 KB |
Output is correct |
116 |
Correct |
379 ms |
18540 KB |
Output is correct |
117 |
Correct |
271 ms |
12060 KB |
Output is correct |
118 |
Correct |
262 ms |
11856 KB |
Output is correct |
119 |
Correct |
348 ms |
18540 KB |
Output is correct |
120 |
Correct |
328 ms |
15144 KB |
Output is correct |
121 |
Correct |
434 ms |
11612 KB |
Output is correct |
122 |
Correct |
421 ms |
11612 KB |
Output is correct |
123 |
Correct |
561 ms |
16644 KB |
Output is correct |
124 |
Correct |
524 ms |
17940 KB |
Output is correct |
125 |
Correct |
599 ms |
18552 KB |
Output is correct |
126 |
Correct |
578 ms |
18264 KB |
Output is correct |
127 |
Correct |
643 ms |
18404 KB |
Output is correct |
128 |
Correct |
550 ms |
14840 KB |
Output is correct |
129 |
Correct |
820 ms |
11824 KB |
Output is correct |
130 |
Correct |
833 ms |
11820 KB |
Output is correct |
131 |
Correct |
1120 ms |
18540 KB |
Output is correct |
132 |
Correct |
1026 ms |
14000 KB |
Output is correct |
133 |
Correct |
1180 ms |
18432 KB |
Output is correct |
134 |
Correct |
1184 ms |
17852 KB |
Output is correct |
135 |
Correct |
1265 ms |
18544 KB |
Output is correct |
136 |
Correct |
1060 ms |
15648 KB |
Output is correct |
137 |
Correct |
20 ms |
11612 KB |
Output is correct |
138 |
Correct |
29 ms |
11608 KB |
Output is correct |
139 |
Correct |
12 ms |
11612 KB |
Output is correct |
140 |
Correct |
97 ms |
11824 KB |
Output is correct |
141 |
Correct |
2 ms |
7512 KB |
Output is correct |
142 |
Correct |
471 ms |
12064 KB |
Output is correct |
143 |
Correct |
477 ms |
11860 KB |
Output is correct |
144 |
Correct |
471 ms |
12192 KB |
Output is correct |
145 |
Correct |
472 ms |
12132 KB |
Output is correct |
146 |
Correct |
409 ms |
11612 KB |
Output is correct |
147 |
Correct |
415 ms |
11612 KB |
Output is correct |
148 |
Correct |
2 ms |
7512 KB |
Output is correct |
149 |
Correct |
988 ms |
13536 KB |
Output is correct |
150 |
Correct |
963 ms |
12264 KB |
Output is correct |
151 |
Correct |
1025 ms |
14832 KB |
Output is correct |
152 |
Correct |
1012 ms |
13504 KB |
Output is correct |
153 |
Correct |
805 ms |
11856 KB |
Output is correct |
154 |
Correct |
810 ms |
11864 KB |
Output is correct |
155 |
Correct |
319 ms |
13684 KB |
Output is correct |
156 |
Correct |
281 ms |
15108 KB |
Output is correct |
157 |
Correct |
347 ms |
18232 KB |
Output is correct |
158 |
Correct |
334 ms |
17692 KB |
Output is correct |
159 |
Correct |
372 ms |
18544 KB |
Output is correct |
160 |
Correct |
249 ms |
11860 KB |
Output is correct |
161 |
Correct |
253 ms |
12084 KB |
Output is correct |
162 |
Correct |
327 ms |
18548 KB |
Output is correct |
163 |
Correct |
310 ms |
15184 KB |
Output is correct |
164 |
Correct |
534 ms |
16864 KB |
Output is correct |
165 |
Correct |
503 ms |
17972 KB |
Output is correct |
166 |
Correct |
565 ms |
18540 KB |
Output is correct |
167 |
Correct |
561 ms |
18320 KB |
Output is correct |
168 |
Correct |
607 ms |
18540 KB |
Output is correct |
169 |
Correct |
530 ms |
14704 KB |
Output is correct |
170 |
Correct |
323 ms |
14972 KB |
Output is correct |
171 |
Correct |
279 ms |
14912 KB |
Output is correct |
172 |
Correct |
347 ms |
18176 KB |
Output is correct |
173 |
Correct |
326 ms |
17976 KB |
Output is correct |
174 |
Correct |
362 ms |
18528 KB |
Output is correct |
175 |
Correct |
531 ms |
15004 KB |
Output is correct |
176 |
Correct |
538 ms |
16792 KB |
Output is correct |
177 |
Correct |
542 ms |
18552 KB |
Output is correct |
178 |
Correct |
630 ms |
18540 KB |
Output is correct |
179 |
Correct |
1083 ms |
18540 KB |
Output is correct |
180 |
Correct |
997 ms |
14060 KB |
Output is correct |
181 |
Correct |
1112 ms |
19824 KB |
Output is correct |
182 |
Correct |
1129 ms |
17692 KB |
Output is correct |
183 |
Correct |
1239 ms |
18540 KB |
Output is correct |
184 |
Correct |
1059 ms |
15648 KB |
Output is correct |
185 |
Correct |
1069 ms |
18380 KB |
Output is correct |
186 |
Correct |
1095 ms |
17772 KB |
Output is correct |
187 |
Correct |
1191 ms |
18088 KB |
Output is correct |
188 |
Correct |
1219 ms |
18796 KB |
Output is correct |
189 |
Correct |
95 ms |
11608 KB |
Output is correct |
190 |
Correct |
319 ms |
13676 KB |
Output is correct |
191 |
Correct |
287 ms |
15092 KB |
Output is correct |
192 |
Correct |
337 ms |
18136 KB |
Output is correct |
193 |
Correct |
328 ms |
17720 KB |
Output is correct |
194 |
Correct |
369 ms |
20076 KB |
Output is correct |
195 |
Correct |
246 ms |
12060 KB |
Output is correct |
196 |
Correct |
244 ms |
11824 KB |
Output is correct |
197 |
Correct |
320 ms |
18540 KB |
Output is correct |
198 |
Correct |
301 ms |
15392 KB |
Output is correct |
199 |
Correct |
399 ms |
11612 KB |
Output is correct |
200 |
Correct |
408 ms |
11860 KB |
Output is correct |
201 |
Correct |
547 ms |
16672 KB |
Output is correct |
202 |
Correct |
499 ms |
17944 KB |
Output is correct |
203 |
Correct |
557 ms |
18540 KB |
Output is correct |
204 |
Correct |
557 ms |
18276 KB |
Output is correct |
205 |
Correct |
622 ms |
18360 KB |
Output is correct |
206 |
Correct |
543 ms |
14748 KB |
Output is correct |
207 |
Correct |
799 ms |
11804 KB |
Output is correct |
208 |
Correct |
808 ms |
11812 KB |
Output is correct |
209 |
Correct |
1081 ms |
18540 KB |
Output is correct |
210 |
Correct |
998 ms |
13956 KB |
Output is correct |
211 |
Correct |
1104 ms |
18544 KB |
Output is correct |
212 |
Correct |
1141 ms |
17692 KB |
Output is correct |
213 |
Correct |
1242 ms |
18408 KB |
Output is correct |
214 |
Correct |
1080 ms |
15628 KB |
Output is correct |
215 |
Correct |
3235 ms |
16952 KB |
Output is correct |
216 |
Correct |
3077 ms |
13580 KB |
Output is correct |
217 |
Correct |
3257 ms |
18424 KB |
Output is correct |
218 |
Incorrect |
3337 ms |
18552 KB |
Output isn't correct |
219 |
Halted |
0 ms |
0 KB |
- |