#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=1e6+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;
int ile=1;
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/ile, 0ll));
A[i]-=p;
if(A[i]) ++ile;
dp[0]+=p;
m-=p*i;
}
}
if(m>=LIM) {
cout << "impossible\n";
return 0;
}
rep(xd, 2) {
for(ll i=1; i<=n; ++i) if(A[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:51: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]
51 | while(l[p]<V[p].size() && (j-V[p][l[p]])/i>A[i]) ++l[p];
vault.cpp:57: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]
57 | if(l[p]<V[p].size()) {
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
43 ms |
19036 KB |
Output is correct |
2 |
Correct |
29 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19276 KB |
Output is correct |
4 |
Correct |
90 ms |
19248 KB |
Output is correct |
5 |
Correct |
2 ms |
10840 KB |
Output is correct |
6 |
Correct |
955 ms |
19540 KB |
Output is correct |
7 |
Correct |
437 ms |
19408 KB |
Output is correct |
8 |
Correct |
919 ms |
19476 KB |
Output is correct |
9 |
Correct |
919 ms |
19588 KB |
Output is correct |
10 |
Correct |
21 ms |
19036 KB |
Output is correct |
11 |
Correct |
45 ms |
19036 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
43 ms |
19036 KB |
Output is correct |
2 |
Correct |
29 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19276 KB |
Output is correct |
4 |
Correct |
90 ms |
19248 KB |
Output is correct |
5 |
Correct |
2 ms |
10840 KB |
Output is correct |
6 |
Correct |
955 ms |
19540 KB |
Output is correct |
7 |
Correct |
437 ms |
19408 KB |
Output is correct |
8 |
Correct |
919 ms |
19476 KB |
Output is correct |
9 |
Correct |
919 ms |
19588 KB |
Output is correct |
10 |
Correct |
21 ms |
19036 KB |
Output is correct |
11 |
Correct |
45 ms |
19036 KB |
Output is correct |
12 |
Correct |
38 ms |
19032 KB |
Output is correct |
13 |
Correct |
29 ms |
19036 KB |
Output is correct |
14 |
Correct |
12 ms |
19036 KB |
Output is correct |
15 |
Correct |
88 ms |
19036 KB |
Output is correct |
16 |
Correct |
2 ms |
10844 KB |
Output is correct |
17 |
Correct |
924 ms |
19492 KB |
Output is correct |
18 |
Correct |
407 ms |
19280 KB |
Output is correct |
19 |
Correct |
918 ms |
19484 KB |
Output is correct |
20 |
Correct |
951 ms |
19596 KB |
Output is correct |
21 |
Correct |
21 ms |
19032 KB |
Output is correct |
22 |
Correct |
47 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10844 KB |
Output is correct |
24 |
Correct |
1966 ms |
20860 KB |
Output is correct |
25 |
Correct |
770 ms |
19696 KB |
Output is correct |
26 |
Correct |
1976 ms |
22284 KB |
Output is correct |
27 |
Correct |
1994 ms |
22120 KB |
Output is correct |
28 |
Correct |
22 ms |
19032 KB |
Output is correct |
29 |
Correct |
45 ms |
19032 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19036 KB |
Output is correct |
2 |
Correct |
411 ms |
23124 KB |
Output is correct |
3 |
Correct |
117 ms |
26008 KB |
Output is correct |
4 |
Correct |
445 ms |
31756 KB |
Output is correct |
5 |
Correct |
434 ms |
31528 KB |
Output is correct |
6 |
Correct |
535 ms |
35236 KB |
Output is correct |
7 |
Correct |
23 ms |
19548 KB |
Output is correct |
8 |
Correct |
51 ms |
19268 KB |
Output is correct |
9 |
Correct |
287 ms |
35684 KB |
Output is correct |
10 |
Correct |
292 ms |
26188 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19036 KB |
Output is correct |
2 |
Correct |
411 ms |
23124 KB |
Output is correct |
3 |
Correct |
117 ms |
26008 KB |
Output is correct |
4 |
Correct |
445 ms |
31756 KB |
Output is correct |
5 |
Correct |
434 ms |
31528 KB |
Output is correct |
6 |
Correct |
535 ms |
35236 KB |
Output is correct |
7 |
Correct |
23 ms |
19548 KB |
Output is correct |
8 |
Correct |
51 ms |
19268 KB |
Output is correct |
9 |
Correct |
287 ms |
35684 KB |
Output is correct |
10 |
Correct |
292 ms |
26188 KB |
Output is correct |
11 |
Correct |
43 ms |
19036 KB |
Output is correct |
12 |
Correct |
29 ms |
19036 KB |
Output is correct |
13 |
Correct |
13 ms |
19036 KB |
Output is correct |
14 |
Correct |
91 ms |
19160 KB |
Output is correct |
15 |
Correct |
418 ms |
23140 KB |
Output is correct |
16 |
Correct |
124 ms |
26252 KB |
Output is correct |
17 |
Correct |
472 ms |
31740 KB |
Output is correct |
18 |
Correct |
435 ms |
31472 KB |
Output is correct |
19 |
Correct |
534 ms |
33828 KB |
Output is correct |
20 |
Correct |
23 ms |
19524 KB |
Output is correct |
21 |
Correct |
54 ms |
19252 KB |
Output is correct |
22 |
Correct |
297 ms |
32548 KB |
Output is correct |
23 |
Correct |
291 ms |
26188 KB |
Output is correct |
24 |
Correct |
641 ms |
25276 KB |
Output is correct |
25 |
Correct |
247 ms |
25480 KB |
Output is correct |
26 |
Correct |
759 ms |
31952 KB |
Output is correct |
27 |
Correct |
680 ms |
31360 KB |
Output is correct |
28 |
Correct |
770 ms |
32536 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19036 KB |
Output is correct |
2 |
Correct |
411 ms |
23124 KB |
Output is correct |
3 |
Correct |
117 ms |
26008 KB |
Output is correct |
4 |
Correct |
445 ms |
31756 KB |
Output is correct |
5 |
Correct |
434 ms |
31528 KB |
Output is correct |
6 |
Correct |
535 ms |
35236 KB |
Output is correct |
7 |
Correct |
23 ms |
19548 KB |
Output is correct |
8 |
Correct |
51 ms |
19268 KB |
Output is correct |
9 |
Correct |
287 ms |
35684 KB |
Output is correct |
10 |
Correct |
292 ms |
26188 KB |
Output is correct |
11 |
Correct |
94 ms |
19268 KB |
Output is correct |
12 |
Correct |
420 ms |
23056 KB |
Output is correct |
13 |
Correct |
117 ms |
26232 KB |
Output is correct |
14 |
Correct |
470 ms |
31688 KB |
Output is correct |
15 |
Correct |
438 ms |
31652 KB |
Output is correct |
16 |
Correct |
548 ms |
32632 KB |
Output is correct |
17 |
Correct |
24 ms |
19516 KB |
Output is correct |
18 |
Correct |
48 ms |
19036 KB |
Output is correct |
19 |
Correct |
310 ms |
33324 KB |
Output is correct |
20 |
Correct |
300 ms |
26256 KB |
Output is correct |
21 |
Correct |
23 ms |
19036 KB |
Output is correct |
22 |
Correct |
48 ms |
19036 KB |
Output is correct |
23 |
Correct |
704 ms |
28852 KB |
Output is correct |
24 |
Correct |
298 ms |
31608 KB |
Output is correct |
25 |
Correct |
739 ms |
32656 KB |
Output is correct |
26 |
Correct |
732 ms |
31792 KB |
Output is correct |
27 |
Correct |
846 ms |
32540 KB |
Output is correct |
28 |
Correct |
534 ms |
25040 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
43 ms |
19036 KB |
Output is correct |
2 |
Correct |
29 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19276 KB |
Output is correct |
4 |
Correct |
90 ms |
19248 KB |
Output is correct |
5 |
Correct |
2 ms |
10840 KB |
Output is correct |
6 |
Correct |
955 ms |
19540 KB |
Output is correct |
7 |
Correct |
437 ms |
19408 KB |
Output is correct |
8 |
Correct |
919 ms |
19476 KB |
Output is correct |
9 |
Correct |
919 ms |
19588 KB |
Output is correct |
10 |
Correct |
21 ms |
19036 KB |
Output is correct |
11 |
Correct |
45 ms |
19036 KB |
Output is correct |
12 |
Correct |
91 ms |
19036 KB |
Output is correct |
13 |
Correct |
411 ms |
23124 KB |
Output is correct |
14 |
Correct |
117 ms |
26008 KB |
Output is correct |
15 |
Correct |
445 ms |
31756 KB |
Output is correct |
16 |
Correct |
434 ms |
31528 KB |
Output is correct |
17 |
Correct |
535 ms |
35236 KB |
Output is correct |
18 |
Correct |
23 ms |
19548 KB |
Output is correct |
19 |
Correct |
51 ms |
19268 KB |
Output is correct |
20 |
Correct |
287 ms |
35684 KB |
Output is correct |
21 |
Correct |
292 ms |
26188 KB |
Output is correct |
22 |
Correct |
43 ms |
19036 KB |
Output is correct |
23 |
Correct |
29 ms |
19036 KB |
Output is correct |
24 |
Correct |
13 ms |
19036 KB |
Output is correct |
25 |
Correct |
91 ms |
19160 KB |
Output is correct |
26 |
Correct |
418 ms |
23140 KB |
Output is correct |
27 |
Correct |
124 ms |
26252 KB |
Output is correct |
28 |
Correct |
472 ms |
31740 KB |
Output is correct |
29 |
Correct |
435 ms |
31472 KB |
Output is correct |
30 |
Correct |
534 ms |
33828 KB |
Output is correct |
31 |
Correct |
23 ms |
19524 KB |
Output is correct |
32 |
Correct |
54 ms |
19252 KB |
Output is correct |
33 |
Correct |
297 ms |
32548 KB |
Output is correct |
34 |
Correct |
291 ms |
26188 KB |
Output is correct |
35 |
Correct |
641 ms |
25276 KB |
Output is correct |
36 |
Correct |
247 ms |
25480 KB |
Output is correct |
37 |
Correct |
759 ms |
31952 KB |
Output is correct |
38 |
Correct |
680 ms |
31360 KB |
Output is correct |
39 |
Correct |
770 ms |
32536 KB |
Output is correct |
40 |
Correct |
94 ms |
19268 KB |
Output is correct |
41 |
Correct |
420 ms |
23056 KB |
Output is correct |
42 |
Correct |
117 ms |
26232 KB |
Output is correct |
43 |
Correct |
470 ms |
31688 KB |
Output is correct |
44 |
Correct |
438 ms |
31652 KB |
Output is correct |
45 |
Correct |
548 ms |
32632 KB |
Output is correct |
46 |
Correct |
24 ms |
19516 KB |
Output is correct |
47 |
Correct |
48 ms |
19036 KB |
Output is correct |
48 |
Correct |
310 ms |
33324 KB |
Output is correct |
49 |
Correct |
300 ms |
26256 KB |
Output is correct |
50 |
Correct |
23 ms |
19036 KB |
Output is correct |
51 |
Correct |
48 ms |
19036 KB |
Output is correct |
52 |
Correct |
704 ms |
28852 KB |
Output is correct |
53 |
Correct |
298 ms |
31608 KB |
Output is correct |
54 |
Correct |
739 ms |
32656 KB |
Output is correct |
55 |
Correct |
732 ms |
31792 KB |
Output is correct |
56 |
Correct |
846 ms |
32540 KB |
Output is correct |
57 |
Correct |
534 ms |
25040 KB |
Output is correct |
58 |
Correct |
39 ms |
19032 KB |
Output is correct |
59 |
Correct |
29 ms |
19036 KB |
Output is correct |
60 |
Correct |
13 ms |
19032 KB |
Output is correct |
61 |
Correct |
89 ms |
19264 KB |
Output is correct |
62 |
Correct |
3 ms |
10840 KB |
Output is correct |
63 |
Correct |
929 ms |
19508 KB |
Output is correct |
64 |
Correct |
408 ms |
19272 KB |
Output is correct |
65 |
Correct |
934 ms |
19492 KB |
Output is correct |
66 |
Correct |
937 ms |
19576 KB |
Output is correct |
67 |
Correct |
22 ms |
19036 KB |
Output is correct |
68 |
Correct |
47 ms |
19280 KB |
Output is correct |
69 |
Correct |
409 ms |
23140 KB |
Output is correct |
70 |
Correct |
117 ms |
26244 KB |
Output is correct |
71 |
Correct |
455 ms |
32004 KB |
Output is correct |
72 |
Correct |
422 ms |
31532 KB |
Output is correct |
73 |
Correct |
520 ms |
35120 KB |
Output is correct |
74 |
Correct |
24 ms |
19548 KB |
Output is correct |
75 |
Correct |
50 ms |
19036 KB |
Output is correct |
76 |
Correct |
293 ms |
35108 KB |
Output is correct |
77 |
Correct |
292 ms |
26236 KB |
Output is correct |
78 |
Correct |
632 ms |
25288 KB |
Output is correct |
79 |
Correct |
230 ms |
25472 KB |
Output is correct |
80 |
Correct |
714 ms |
31956 KB |
Output is correct |
81 |
Correct |
677 ms |
31636 KB |
Output is correct |
82 |
Correct |
742 ms |
33052 KB |
Output is correct |
83 |
Correct |
692 ms |
29440 KB |
Output is correct |
84 |
Correct |
298 ms |
31592 KB |
Output is correct |
85 |
Correct |
734 ms |
33572 KB |
Output is correct |
86 |
Correct |
730 ms |
31920 KB |
Output is correct |
87 |
Correct |
879 ms |
32796 KB |
Output is correct |
88 |
Correct |
531 ms |
25024 KB |
Output is correct |
89 |
Correct |
1075 ms |
25956 KB |
Output is correct |
90 |
Correct |
1080 ms |
29052 KB |
Output is correct |
91 |
Correct |
1065 ms |
33060 KB |
Output is correct |
92 |
Correct |
1261 ms |
35108 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19036 KB |
Output is correct |
2 |
Correct |
411 ms |
23124 KB |
Output is correct |
3 |
Correct |
117 ms |
26008 KB |
Output is correct |
4 |
Correct |
445 ms |
31756 KB |
Output is correct |
5 |
Correct |
434 ms |
31528 KB |
Output is correct |
6 |
Correct |
535 ms |
35236 KB |
Output is correct |
7 |
Correct |
23 ms |
19548 KB |
Output is correct |
8 |
Correct |
51 ms |
19268 KB |
Output is correct |
9 |
Correct |
287 ms |
35684 KB |
Output is correct |
10 |
Correct |
292 ms |
26188 KB |
Output is correct |
11 |
Correct |
94 ms |
19268 KB |
Output is correct |
12 |
Correct |
420 ms |
23056 KB |
Output is correct |
13 |
Correct |
117 ms |
26232 KB |
Output is correct |
14 |
Correct |
470 ms |
31688 KB |
Output is correct |
15 |
Correct |
438 ms |
31652 KB |
Output is correct |
16 |
Correct |
548 ms |
32632 KB |
Output is correct |
17 |
Correct |
24 ms |
19516 KB |
Output is correct |
18 |
Correct |
48 ms |
19036 KB |
Output is correct |
19 |
Correct |
310 ms |
33324 KB |
Output is correct |
20 |
Correct |
300 ms |
26256 KB |
Output is correct |
21 |
Correct |
23 ms |
19036 KB |
Output is correct |
22 |
Correct |
48 ms |
19036 KB |
Output is correct |
23 |
Correct |
704 ms |
28852 KB |
Output is correct |
24 |
Correct |
298 ms |
31608 KB |
Output is correct |
25 |
Correct |
739 ms |
32656 KB |
Output is correct |
26 |
Correct |
732 ms |
31792 KB |
Output is correct |
27 |
Correct |
846 ms |
32540 KB |
Output is correct |
28 |
Correct |
534 ms |
25040 KB |
Output is correct |
29 |
Correct |
92 ms |
19036 KB |
Output is correct |
30 |
Correct |
406 ms |
23120 KB |
Output is correct |
31 |
Correct |
116 ms |
26248 KB |
Output is correct |
32 |
Correct |
471 ms |
31752 KB |
Output is correct |
33 |
Correct |
431 ms |
31512 KB |
Output is correct |
34 |
Correct |
540 ms |
32800 KB |
Output is correct |
35 |
Correct |
24 ms |
19544 KB |
Output is correct |
36 |
Correct |
50 ms |
19036 KB |
Output is correct |
37 |
Correct |
301 ms |
34292 KB |
Output is correct |
38 |
Correct |
299 ms |
26272 KB |
Output is correct |
39 |
Correct |
21 ms |
19032 KB |
Output is correct |
40 |
Correct |
47 ms |
19280 KB |
Output is correct |
41 |
Correct |
696 ms |
28888 KB |
Output is correct |
42 |
Correct |
311 ms |
31684 KB |
Output is correct |
43 |
Correct |
724 ms |
34568 KB |
Output is correct |
44 |
Correct |
745 ms |
31864 KB |
Output is correct |
45 |
Correct |
848 ms |
35108 KB |
Output is correct |
46 |
Correct |
547 ms |
24992 KB |
Output is correct |
47 |
Correct |
23 ms |
19032 KB |
Output is correct |
48 |
Correct |
49 ms |
19032 KB |
Output is correct |
49 |
Correct |
1402 ms |
32544 KB |
Output is correct |
50 |
Correct |
590 ms |
23460 KB |
Output is correct |
51 |
Correct |
1392 ms |
32628 KB |
Output is correct |
52 |
Correct |
1454 ms |
31720 KB |
Output is correct |
53 |
Correct |
952 ms |
35604 KB |
Output is correct |
54 |
Correct |
1202 ms |
26280 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
43 ms |
19036 KB |
Output is correct |
2 |
Correct |
29 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19276 KB |
Output is correct |
4 |
Correct |
90 ms |
19248 KB |
Output is correct |
5 |
Correct |
2 ms |
10840 KB |
Output is correct |
6 |
Correct |
955 ms |
19540 KB |
Output is correct |
7 |
Correct |
437 ms |
19408 KB |
Output is correct |
8 |
Correct |
919 ms |
19476 KB |
Output is correct |
9 |
Correct |
919 ms |
19588 KB |
Output is correct |
10 |
Correct |
21 ms |
19036 KB |
Output is correct |
11 |
Correct |
45 ms |
19036 KB |
Output is correct |
12 |
Correct |
38 ms |
19032 KB |
Output is correct |
13 |
Correct |
29 ms |
19036 KB |
Output is correct |
14 |
Correct |
12 ms |
19036 KB |
Output is correct |
15 |
Correct |
88 ms |
19036 KB |
Output is correct |
16 |
Correct |
2 ms |
10844 KB |
Output is correct |
17 |
Correct |
924 ms |
19492 KB |
Output is correct |
18 |
Correct |
407 ms |
19280 KB |
Output is correct |
19 |
Correct |
918 ms |
19484 KB |
Output is correct |
20 |
Correct |
951 ms |
19596 KB |
Output is correct |
21 |
Correct |
21 ms |
19032 KB |
Output is correct |
22 |
Correct |
47 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10844 KB |
Output is correct |
24 |
Correct |
1966 ms |
20860 KB |
Output is correct |
25 |
Correct |
770 ms |
19696 KB |
Output is correct |
26 |
Correct |
1976 ms |
22284 KB |
Output is correct |
27 |
Correct |
1994 ms |
22120 KB |
Output is correct |
28 |
Correct |
22 ms |
19032 KB |
Output is correct |
29 |
Correct |
45 ms |
19032 KB |
Output is correct |
30 |
Correct |
91 ms |
19036 KB |
Output is correct |
31 |
Correct |
411 ms |
23124 KB |
Output is correct |
32 |
Correct |
117 ms |
26008 KB |
Output is correct |
33 |
Correct |
445 ms |
31756 KB |
Output is correct |
34 |
Correct |
434 ms |
31528 KB |
Output is correct |
35 |
Correct |
535 ms |
35236 KB |
Output is correct |
36 |
Correct |
23 ms |
19548 KB |
Output is correct |
37 |
Correct |
51 ms |
19268 KB |
Output is correct |
38 |
Correct |
287 ms |
35684 KB |
Output is correct |
39 |
Correct |
292 ms |
26188 KB |
Output is correct |
40 |
Correct |
43 ms |
19036 KB |
Output is correct |
41 |
Correct |
29 ms |
19036 KB |
Output is correct |
42 |
Correct |
13 ms |
19036 KB |
Output is correct |
43 |
Correct |
91 ms |
19160 KB |
Output is correct |
44 |
Correct |
418 ms |
23140 KB |
Output is correct |
45 |
Correct |
124 ms |
26252 KB |
Output is correct |
46 |
Correct |
472 ms |
31740 KB |
Output is correct |
47 |
Correct |
435 ms |
31472 KB |
Output is correct |
48 |
Correct |
534 ms |
33828 KB |
Output is correct |
49 |
Correct |
23 ms |
19524 KB |
Output is correct |
50 |
Correct |
54 ms |
19252 KB |
Output is correct |
51 |
Correct |
297 ms |
32548 KB |
Output is correct |
52 |
Correct |
291 ms |
26188 KB |
Output is correct |
53 |
Correct |
641 ms |
25276 KB |
Output is correct |
54 |
Correct |
247 ms |
25480 KB |
Output is correct |
55 |
Correct |
759 ms |
31952 KB |
Output is correct |
56 |
Correct |
680 ms |
31360 KB |
Output is correct |
57 |
Correct |
770 ms |
32536 KB |
Output is correct |
58 |
Correct |
94 ms |
19268 KB |
Output is correct |
59 |
Correct |
420 ms |
23056 KB |
Output is correct |
60 |
Correct |
117 ms |
26232 KB |
Output is correct |
61 |
Correct |
470 ms |
31688 KB |
Output is correct |
62 |
Correct |
438 ms |
31652 KB |
Output is correct |
63 |
Correct |
548 ms |
32632 KB |
Output is correct |
64 |
Correct |
24 ms |
19516 KB |
Output is correct |
65 |
Correct |
48 ms |
19036 KB |
Output is correct |
66 |
Correct |
310 ms |
33324 KB |
Output is correct |
67 |
Correct |
300 ms |
26256 KB |
Output is correct |
68 |
Correct |
23 ms |
19036 KB |
Output is correct |
69 |
Correct |
48 ms |
19036 KB |
Output is correct |
70 |
Correct |
704 ms |
28852 KB |
Output is correct |
71 |
Correct |
298 ms |
31608 KB |
Output is correct |
72 |
Correct |
739 ms |
32656 KB |
Output is correct |
73 |
Correct |
732 ms |
31792 KB |
Output is correct |
74 |
Correct |
846 ms |
32540 KB |
Output is correct |
75 |
Correct |
534 ms |
25040 KB |
Output is correct |
76 |
Correct |
39 ms |
19032 KB |
Output is correct |
77 |
Correct |
29 ms |
19036 KB |
Output is correct |
78 |
Correct |
13 ms |
19032 KB |
Output is correct |
79 |
Correct |
89 ms |
19264 KB |
Output is correct |
80 |
Correct |
3 ms |
10840 KB |
Output is correct |
81 |
Correct |
929 ms |
19508 KB |
Output is correct |
82 |
Correct |
408 ms |
19272 KB |
Output is correct |
83 |
Correct |
934 ms |
19492 KB |
Output is correct |
84 |
Correct |
937 ms |
19576 KB |
Output is correct |
85 |
Correct |
22 ms |
19036 KB |
Output is correct |
86 |
Correct |
47 ms |
19280 KB |
Output is correct |
87 |
Correct |
409 ms |
23140 KB |
Output is correct |
88 |
Correct |
117 ms |
26244 KB |
Output is correct |
89 |
Correct |
455 ms |
32004 KB |
Output is correct |
90 |
Correct |
422 ms |
31532 KB |
Output is correct |
91 |
Correct |
520 ms |
35120 KB |
Output is correct |
92 |
Correct |
24 ms |
19548 KB |
Output is correct |
93 |
Correct |
50 ms |
19036 KB |
Output is correct |
94 |
Correct |
293 ms |
35108 KB |
Output is correct |
95 |
Correct |
292 ms |
26236 KB |
Output is correct |
96 |
Correct |
632 ms |
25288 KB |
Output is correct |
97 |
Correct |
230 ms |
25472 KB |
Output is correct |
98 |
Correct |
714 ms |
31956 KB |
Output is correct |
99 |
Correct |
677 ms |
31636 KB |
Output is correct |
100 |
Correct |
742 ms |
33052 KB |
Output is correct |
101 |
Correct |
692 ms |
29440 KB |
Output is correct |
102 |
Correct |
298 ms |
31592 KB |
Output is correct |
103 |
Correct |
734 ms |
33572 KB |
Output is correct |
104 |
Correct |
730 ms |
31920 KB |
Output is correct |
105 |
Correct |
879 ms |
32796 KB |
Output is correct |
106 |
Correct |
531 ms |
25024 KB |
Output is correct |
107 |
Correct |
1075 ms |
25956 KB |
Output is correct |
108 |
Correct |
1080 ms |
29052 KB |
Output is correct |
109 |
Correct |
1065 ms |
33060 KB |
Output is correct |
110 |
Correct |
1261 ms |
35108 KB |
Output is correct |
111 |
Correct |
92 ms |
19036 KB |
Output is correct |
112 |
Correct |
406 ms |
23120 KB |
Output is correct |
113 |
Correct |
116 ms |
26248 KB |
Output is correct |
114 |
Correct |
471 ms |
31752 KB |
Output is correct |
115 |
Correct |
431 ms |
31512 KB |
Output is correct |
116 |
Correct |
540 ms |
32800 KB |
Output is correct |
117 |
Correct |
24 ms |
19544 KB |
Output is correct |
118 |
Correct |
50 ms |
19036 KB |
Output is correct |
119 |
Correct |
301 ms |
34292 KB |
Output is correct |
120 |
Correct |
299 ms |
26272 KB |
Output is correct |
121 |
Correct |
21 ms |
19032 KB |
Output is correct |
122 |
Correct |
47 ms |
19280 KB |
Output is correct |
123 |
Correct |
696 ms |
28888 KB |
Output is correct |
124 |
Correct |
311 ms |
31684 KB |
Output is correct |
125 |
Correct |
724 ms |
34568 KB |
Output is correct |
126 |
Correct |
745 ms |
31864 KB |
Output is correct |
127 |
Correct |
848 ms |
35108 KB |
Output is correct |
128 |
Correct |
547 ms |
24992 KB |
Output is correct |
129 |
Correct |
23 ms |
19032 KB |
Output is correct |
130 |
Correct |
49 ms |
19032 KB |
Output is correct |
131 |
Correct |
1402 ms |
32544 KB |
Output is correct |
132 |
Correct |
590 ms |
23460 KB |
Output is correct |
133 |
Correct |
1392 ms |
32628 KB |
Output is correct |
134 |
Correct |
1454 ms |
31720 KB |
Output is correct |
135 |
Correct |
952 ms |
35604 KB |
Output is correct |
136 |
Correct |
1202 ms |
26280 KB |
Output is correct |
137 |
Correct |
40 ms |
19036 KB |
Output is correct |
138 |
Correct |
29 ms |
19036 KB |
Output is correct |
139 |
Correct |
13 ms |
19036 KB |
Output is correct |
140 |
Correct |
90 ms |
19268 KB |
Output is correct |
141 |
Correct |
2 ms |
10844 KB |
Output is correct |
142 |
Correct |
932 ms |
19476 KB |
Output is correct |
143 |
Correct |
425 ms |
19280 KB |
Output is correct |
144 |
Correct |
920 ms |
19480 KB |
Output is correct |
145 |
Correct |
937 ms |
19588 KB |
Output is correct |
146 |
Correct |
22 ms |
19032 KB |
Output is correct |
147 |
Correct |
47 ms |
19036 KB |
Output is correct |
148 |
Correct |
2 ms |
10844 KB |
Output is correct |
149 |
Correct |
1928 ms |
20852 KB |
Output is correct |
150 |
Correct |
768 ms |
19672 KB |
Output is correct |
151 |
Correct |
1994 ms |
22164 KB |
Output is correct |
152 |
Correct |
1994 ms |
22168 KB |
Output is correct |
153 |
Correct |
23 ms |
19032 KB |
Output is correct |
154 |
Correct |
45 ms |
19036 KB |
Output is correct |
155 |
Correct |
409 ms |
23124 KB |
Output is correct |
156 |
Correct |
120 ms |
25992 KB |
Output is correct |
157 |
Correct |
450 ms |
31836 KB |
Output is correct |
158 |
Correct |
422 ms |
31516 KB |
Output is correct |
159 |
Correct |
508 ms |
34852 KB |
Output is correct |
160 |
Correct |
23 ms |
19544 KB |
Output is correct |
161 |
Correct |
48 ms |
19036 KB |
Output is correct |
162 |
Correct |
296 ms |
35624 KB |
Output is correct |
163 |
Correct |
290 ms |
26200 KB |
Output is correct |
164 |
Correct |
695 ms |
28892 KB |
Output is correct |
165 |
Correct |
308 ms |
31704 KB |
Output is correct |
166 |
Correct |
736 ms |
35112 KB |
Output is correct |
167 |
Correct |
738 ms |
32000 KB |
Output is correct |
168 |
Correct |
829 ms |
32800 KB |
Output is correct |
169 |
Correct |
515 ms |
25020 KB |
Output is correct |
170 |
Correct |
628 ms |
25292 KB |
Output is correct |
171 |
Correct |
235 ms |
25480 KB |
Output is correct |
172 |
Correct |
710 ms |
31976 KB |
Output is correct |
173 |
Correct |
626 ms |
31404 KB |
Output is correct |
174 |
Correct |
725 ms |
32692 KB |
Output is correct |
175 |
Correct |
1048 ms |
25948 KB |
Output is correct |
176 |
Correct |
1048 ms |
29048 KB |
Output is correct |
177 |
Correct |
1016 ms |
32760 KB |
Output is correct |
178 |
Correct |
1190 ms |
34592 KB |
Output is correct |
179 |
Correct |
1365 ms |
34080 KB |
Output is correct |
180 |
Correct |
571 ms |
23652 KB |
Output is correct |
181 |
Correct |
1397 ms |
32800 KB |
Output is correct |
182 |
Correct |
1432 ms |
31076 KB |
Output is correct |
183 |
Correct |
943 ms |
34704 KB |
Output is correct |
184 |
Correct |
1167 ms |
26312 KB |
Output is correct |
185 |
Correct |
2120 ms |
31740 KB |
Output is correct |
186 |
Correct |
2166 ms |
31080 KB |
Output is correct |
187 |
Correct |
1898 ms |
31728 KB |
Output is correct |
188 |
Correct |
1766 ms |
33672 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19036 KB |
Output is correct |
2 |
Correct |
411 ms |
23124 KB |
Output is correct |
3 |
Correct |
117 ms |
26008 KB |
Output is correct |
4 |
Correct |
445 ms |
31756 KB |
Output is correct |
5 |
Correct |
434 ms |
31528 KB |
Output is correct |
6 |
Correct |
535 ms |
35236 KB |
Output is correct |
7 |
Correct |
23 ms |
19548 KB |
Output is correct |
8 |
Correct |
51 ms |
19268 KB |
Output is correct |
9 |
Correct |
287 ms |
35684 KB |
Output is correct |
10 |
Correct |
292 ms |
26188 KB |
Output is correct |
11 |
Correct |
94 ms |
19268 KB |
Output is correct |
12 |
Correct |
420 ms |
23056 KB |
Output is correct |
13 |
Correct |
117 ms |
26232 KB |
Output is correct |
14 |
Correct |
470 ms |
31688 KB |
Output is correct |
15 |
Correct |
438 ms |
31652 KB |
Output is correct |
16 |
Correct |
548 ms |
32632 KB |
Output is correct |
17 |
Correct |
24 ms |
19516 KB |
Output is correct |
18 |
Correct |
48 ms |
19036 KB |
Output is correct |
19 |
Correct |
310 ms |
33324 KB |
Output is correct |
20 |
Correct |
300 ms |
26256 KB |
Output is correct |
21 |
Correct |
23 ms |
19036 KB |
Output is correct |
22 |
Correct |
48 ms |
19036 KB |
Output is correct |
23 |
Correct |
704 ms |
28852 KB |
Output is correct |
24 |
Correct |
298 ms |
31608 KB |
Output is correct |
25 |
Correct |
739 ms |
32656 KB |
Output is correct |
26 |
Correct |
732 ms |
31792 KB |
Output is correct |
27 |
Correct |
846 ms |
32540 KB |
Output is correct |
28 |
Correct |
534 ms |
25040 KB |
Output is correct |
29 |
Correct |
92 ms |
19036 KB |
Output is correct |
30 |
Correct |
406 ms |
23120 KB |
Output is correct |
31 |
Correct |
116 ms |
26248 KB |
Output is correct |
32 |
Correct |
471 ms |
31752 KB |
Output is correct |
33 |
Correct |
431 ms |
31512 KB |
Output is correct |
34 |
Correct |
540 ms |
32800 KB |
Output is correct |
35 |
Correct |
24 ms |
19544 KB |
Output is correct |
36 |
Correct |
50 ms |
19036 KB |
Output is correct |
37 |
Correct |
301 ms |
34292 KB |
Output is correct |
38 |
Correct |
299 ms |
26272 KB |
Output is correct |
39 |
Correct |
21 ms |
19032 KB |
Output is correct |
40 |
Correct |
47 ms |
19280 KB |
Output is correct |
41 |
Correct |
696 ms |
28888 KB |
Output is correct |
42 |
Correct |
311 ms |
31684 KB |
Output is correct |
43 |
Correct |
724 ms |
34568 KB |
Output is correct |
44 |
Correct |
745 ms |
31864 KB |
Output is correct |
45 |
Correct |
848 ms |
35108 KB |
Output is correct |
46 |
Correct |
547 ms |
24992 KB |
Output is correct |
47 |
Correct |
23 ms |
19032 KB |
Output is correct |
48 |
Correct |
49 ms |
19032 KB |
Output is correct |
49 |
Correct |
1402 ms |
32544 KB |
Output is correct |
50 |
Correct |
590 ms |
23460 KB |
Output is correct |
51 |
Correct |
1392 ms |
32628 KB |
Output is correct |
52 |
Correct |
1454 ms |
31720 KB |
Output is correct |
53 |
Correct |
952 ms |
35604 KB |
Output is correct |
54 |
Correct |
1202 ms |
26280 KB |
Output is correct |
55 |
Correct |
90 ms |
19036 KB |
Output is correct |
56 |
Correct |
398 ms |
23132 KB |
Output is correct |
57 |
Correct |
113 ms |
26244 KB |
Output is correct |
58 |
Correct |
449 ms |
31756 KB |
Output is correct |
59 |
Correct |
419 ms |
31504 KB |
Output is correct |
60 |
Correct |
518 ms |
34752 KB |
Output is correct |
61 |
Correct |
24 ms |
19548 KB |
Output is correct |
62 |
Correct |
48 ms |
19032 KB |
Output is correct |
63 |
Correct |
296 ms |
35680 KB |
Output is correct |
64 |
Correct |
290 ms |
26200 KB |
Output is correct |
65 |
Correct |
21 ms |
19036 KB |
Output is correct |
66 |
Correct |
46 ms |
19032 KB |
Output is correct |
67 |
Correct |
694 ms |
28876 KB |
Output is correct |
68 |
Correct |
312 ms |
31704 KB |
Output is correct |
69 |
Correct |
723 ms |
34596 KB |
Output is correct |
70 |
Correct |
773 ms |
35616 KB |
Output is correct |
71 |
Correct |
854 ms |
34072 KB |
Output is correct |
72 |
Correct |
533 ms |
25040 KB |
Output is correct |
73 |
Correct |
22 ms |
19032 KB |
Output is correct |
74 |
Correct |
45 ms |
19036 KB |
Output is correct |
75 |
Correct |
1366 ms |
33820 KB |
Output is correct |
76 |
Correct |
589 ms |
23656 KB |
Output is correct |
77 |
Correct |
1380 ms |
35144 KB |
Output is correct |
78 |
Correct |
1457 ms |
31272 KB |
Output is correct |
79 |
Correct |
982 ms |
32664 KB |
Output is correct |
80 |
Correct |
1211 ms |
26300 KB |
Output is correct |
81 |
Correct |
4308 ms |
30280 KB |
Output is correct |
82 |
Correct |
1974 ms |
23084 KB |
Output is correct |
83 |
Correct |
4334 ms |
33296 KB |
Output is correct |
84 |
Correct |
3362 ms |
32544 KB |
Output is correct |
85 |
Incorrect |
24 ms |
19292 KB |
Output isn't correct |
86 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
43 ms |
19036 KB |
Output is correct |
2 |
Correct |
29 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19276 KB |
Output is correct |
4 |
Correct |
90 ms |
19248 KB |
Output is correct |
5 |
Correct |
2 ms |
10840 KB |
Output is correct |
6 |
Correct |
955 ms |
19540 KB |
Output is correct |
7 |
Correct |
437 ms |
19408 KB |
Output is correct |
8 |
Correct |
919 ms |
19476 KB |
Output is correct |
9 |
Correct |
919 ms |
19588 KB |
Output is correct |
10 |
Correct |
21 ms |
19036 KB |
Output is correct |
11 |
Correct |
45 ms |
19036 KB |
Output is correct |
12 |
Correct |
38 ms |
19032 KB |
Output is correct |
13 |
Correct |
29 ms |
19036 KB |
Output is correct |
14 |
Correct |
12 ms |
19036 KB |
Output is correct |
15 |
Correct |
88 ms |
19036 KB |
Output is correct |
16 |
Correct |
2 ms |
10844 KB |
Output is correct |
17 |
Correct |
924 ms |
19492 KB |
Output is correct |
18 |
Correct |
407 ms |
19280 KB |
Output is correct |
19 |
Correct |
918 ms |
19484 KB |
Output is correct |
20 |
Correct |
951 ms |
19596 KB |
Output is correct |
21 |
Correct |
21 ms |
19032 KB |
Output is correct |
22 |
Correct |
47 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10844 KB |
Output is correct |
24 |
Correct |
1966 ms |
20860 KB |
Output is correct |
25 |
Correct |
770 ms |
19696 KB |
Output is correct |
26 |
Correct |
1976 ms |
22284 KB |
Output is correct |
27 |
Correct |
1994 ms |
22120 KB |
Output is correct |
28 |
Correct |
22 ms |
19032 KB |
Output is correct |
29 |
Correct |
45 ms |
19032 KB |
Output is correct |
30 |
Correct |
91 ms |
19036 KB |
Output is correct |
31 |
Correct |
411 ms |
23124 KB |
Output is correct |
32 |
Correct |
117 ms |
26008 KB |
Output is correct |
33 |
Correct |
445 ms |
31756 KB |
Output is correct |
34 |
Correct |
434 ms |
31528 KB |
Output is correct |
35 |
Correct |
535 ms |
35236 KB |
Output is correct |
36 |
Correct |
23 ms |
19548 KB |
Output is correct |
37 |
Correct |
51 ms |
19268 KB |
Output is correct |
38 |
Correct |
287 ms |
35684 KB |
Output is correct |
39 |
Correct |
292 ms |
26188 KB |
Output is correct |
40 |
Correct |
43 ms |
19036 KB |
Output is correct |
41 |
Correct |
29 ms |
19036 KB |
Output is correct |
42 |
Correct |
13 ms |
19036 KB |
Output is correct |
43 |
Correct |
91 ms |
19160 KB |
Output is correct |
44 |
Correct |
418 ms |
23140 KB |
Output is correct |
45 |
Correct |
124 ms |
26252 KB |
Output is correct |
46 |
Correct |
472 ms |
31740 KB |
Output is correct |
47 |
Correct |
435 ms |
31472 KB |
Output is correct |
48 |
Correct |
534 ms |
33828 KB |
Output is correct |
49 |
Correct |
23 ms |
19524 KB |
Output is correct |
50 |
Correct |
54 ms |
19252 KB |
Output is correct |
51 |
Correct |
297 ms |
32548 KB |
Output is correct |
52 |
Correct |
291 ms |
26188 KB |
Output is correct |
53 |
Correct |
641 ms |
25276 KB |
Output is correct |
54 |
Correct |
247 ms |
25480 KB |
Output is correct |
55 |
Correct |
759 ms |
31952 KB |
Output is correct |
56 |
Correct |
680 ms |
31360 KB |
Output is correct |
57 |
Correct |
770 ms |
32536 KB |
Output is correct |
58 |
Correct |
94 ms |
19268 KB |
Output is correct |
59 |
Correct |
420 ms |
23056 KB |
Output is correct |
60 |
Correct |
117 ms |
26232 KB |
Output is correct |
61 |
Correct |
470 ms |
31688 KB |
Output is correct |
62 |
Correct |
438 ms |
31652 KB |
Output is correct |
63 |
Correct |
548 ms |
32632 KB |
Output is correct |
64 |
Correct |
24 ms |
19516 KB |
Output is correct |
65 |
Correct |
48 ms |
19036 KB |
Output is correct |
66 |
Correct |
310 ms |
33324 KB |
Output is correct |
67 |
Correct |
300 ms |
26256 KB |
Output is correct |
68 |
Correct |
23 ms |
19036 KB |
Output is correct |
69 |
Correct |
48 ms |
19036 KB |
Output is correct |
70 |
Correct |
704 ms |
28852 KB |
Output is correct |
71 |
Correct |
298 ms |
31608 KB |
Output is correct |
72 |
Correct |
739 ms |
32656 KB |
Output is correct |
73 |
Correct |
732 ms |
31792 KB |
Output is correct |
74 |
Correct |
846 ms |
32540 KB |
Output is correct |
75 |
Correct |
534 ms |
25040 KB |
Output is correct |
76 |
Correct |
39 ms |
19032 KB |
Output is correct |
77 |
Correct |
29 ms |
19036 KB |
Output is correct |
78 |
Correct |
13 ms |
19032 KB |
Output is correct |
79 |
Correct |
89 ms |
19264 KB |
Output is correct |
80 |
Correct |
3 ms |
10840 KB |
Output is correct |
81 |
Correct |
929 ms |
19508 KB |
Output is correct |
82 |
Correct |
408 ms |
19272 KB |
Output is correct |
83 |
Correct |
934 ms |
19492 KB |
Output is correct |
84 |
Correct |
937 ms |
19576 KB |
Output is correct |
85 |
Correct |
22 ms |
19036 KB |
Output is correct |
86 |
Correct |
47 ms |
19280 KB |
Output is correct |
87 |
Correct |
409 ms |
23140 KB |
Output is correct |
88 |
Correct |
117 ms |
26244 KB |
Output is correct |
89 |
Correct |
455 ms |
32004 KB |
Output is correct |
90 |
Correct |
422 ms |
31532 KB |
Output is correct |
91 |
Correct |
520 ms |
35120 KB |
Output is correct |
92 |
Correct |
24 ms |
19548 KB |
Output is correct |
93 |
Correct |
50 ms |
19036 KB |
Output is correct |
94 |
Correct |
293 ms |
35108 KB |
Output is correct |
95 |
Correct |
292 ms |
26236 KB |
Output is correct |
96 |
Correct |
632 ms |
25288 KB |
Output is correct |
97 |
Correct |
230 ms |
25472 KB |
Output is correct |
98 |
Correct |
714 ms |
31956 KB |
Output is correct |
99 |
Correct |
677 ms |
31636 KB |
Output is correct |
100 |
Correct |
742 ms |
33052 KB |
Output is correct |
101 |
Correct |
692 ms |
29440 KB |
Output is correct |
102 |
Correct |
298 ms |
31592 KB |
Output is correct |
103 |
Correct |
734 ms |
33572 KB |
Output is correct |
104 |
Correct |
730 ms |
31920 KB |
Output is correct |
105 |
Correct |
879 ms |
32796 KB |
Output is correct |
106 |
Correct |
531 ms |
25024 KB |
Output is correct |
107 |
Correct |
1075 ms |
25956 KB |
Output is correct |
108 |
Correct |
1080 ms |
29052 KB |
Output is correct |
109 |
Correct |
1065 ms |
33060 KB |
Output is correct |
110 |
Correct |
1261 ms |
35108 KB |
Output is correct |
111 |
Correct |
92 ms |
19036 KB |
Output is correct |
112 |
Correct |
406 ms |
23120 KB |
Output is correct |
113 |
Correct |
116 ms |
26248 KB |
Output is correct |
114 |
Correct |
471 ms |
31752 KB |
Output is correct |
115 |
Correct |
431 ms |
31512 KB |
Output is correct |
116 |
Correct |
540 ms |
32800 KB |
Output is correct |
117 |
Correct |
24 ms |
19544 KB |
Output is correct |
118 |
Correct |
50 ms |
19036 KB |
Output is correct |
119 |
Correct |
301 ms |
34292 KB |
Output is correct |
120 |
Correct |
299 ms |
26272 KB |
Output is correct |
121 |
Correct |
21 ms |
19032 KB |
Output is correct |
122 |
Correct |
47 ms |
19280 KB |
Output is correct |
123 |
Correct |
696 ms |
28888 KB |
Output is correct |
124 |
Correct |
311 ms |
31684 KB |
Output is correct |
125 |
Correct |
724 ms |
34568 KB |
Output is correct |
126 |
Correct |
745 ms |
31864 KB |
Output is correct |
127 |
Correct |
848 ms |
35108 KB |
Output is correct |
128 |
Correct |
547 ms |
24992 KB |
Output is correct |
129 |
Correct |
23 ms |
19032 KB |
Output is correct |
130 |
Correct |
49 ms |
19032 KB |
Output is correct |
131 |
Correct |
1402 ms |
32544 KB |
Output is correct |
132 |
Correct |
590 ms |
23460 KB |
Output is correct |
133 |
Correct |
1392 ms |
32628 KB |
Output is correct |
134 |
Correct |
1454 ms |
31720 KB |
Output is correct |
135 |
Correct |
952 ms |
35604 KB |
Output is correct |
136 |
Correct |
1202 ms |
26280 KB |
Output is correct |
137 |
Correct |
40 ms |
19036 KB |
Output is correct |
138 |
Correct |
29 ms |
19036 KB |
Output is correct |
139 |
Correct |
13 ms |
19036 KB |
Output is correct |
140 |
Correct |
90 ms |
19268 KB |
Output is correct |
141 |
Correct |
2 ms |
10844 KB |
Output is correct |
142 |
Correct |
932 ms |
19476 KB |
Output is correct |
143 |
Correct |
425 ms |
19280 KB |
Output is correct |
144 |
Correct |
920 ms |
19480 KB |
Output is correct |
145 |
Correct |
937 ms |
19588 KB |
Output is correct |
146 |
Correct |
22 ms |
19032 KB |
Output is correct |
147 |
Correct |
47 ms |
19036 KB |
Output is correct |
148 |
Correct |
2 ms |
10844 KB |
Output is correct |
149 |
Correct |
1928 ms |
20852 KB |
Output is correct |
150 |
Correct |
768 ms |
19672 KB |
Output is correct |
151 |
Correct |
1994 ms |
22164 KB |
Output is correct |
152 |
Correct |
1994 ms |
22168 KB |
Output is correct |
153 |
Correct |
23 ms |
19032 KB |
Output is correct |
154 |
Correct |
45 ms |
19036 KB |
Output is correct |
155 |
Correct |
409 ms |
23124 KB |
Output is correct |
156 |
Correct |
120 ms |
25992 KB |
Output is correct |
157 |
Correct |
450 ms |
31836 KB |
Output is correct |
158 |
Correct |
422 ms |
31516 KB |
Output is correct |
159 |
Correct |
508 ms |
34852 KB |
Output is correct |
160 |
Correct |
23 ms |
19544 KB |
Output is correct |
161 |
Correct |
48 ms |
19036 KB |
Output is correct |
162 |
Correct |
296 ms |
35624 KB |
Output is correct |
163 |
Correct |
290 ms |
26200 KB |
Output is correct |
164 |
Correct |
695 ms |
28892 KB |
Output is correct |
165 |
Correct |
308 ms |
31704 KB |
Output is correct |
166 |
Correct |
736 ms |
35112 KB |
Output is correct |
167 |
Correct |
738 ms |
32000 KB |
Output is correct |
168 |
Correct |
829 ms |
32800 KB |
Output is correct |
169 |
Correct |
515 ms |
25020 KB |
Output is correct |
170 |
Correct |
628 ms |
25292 KB |
Output is correct |
171 |
Correct |
235 ms |
25480 KB |
Output is correct |
172 |
Correct |
710 ms |
31976 KB |
Output is correct |
173 |
Correct |
626 ms |
31404 KB |
Output is correct |
174 |
Correct |
725 ms |
32692 KB |
Output is correct |
175 |
Correct |
1048 ms |
25948 KB |
Output is correct |
176 |
Correct |
1048 ms |
29048 KB |
Output is correct |
177 |
Correct |
1016 ms |
32760 KB |
Output is correct |
178 |
Correct |
1190 ms |
34592 KB |
Output is correct |
179 |
Correct |
1365 ms |
34080 KB |
Output is correct |
180 |
Correct |
571 ms |
23652 KB |
Output is correct |
181 |
Correct |
1397 ms |
32800 KB |
Output is correct |
182 |
Correct |
1432 ms |
31076 KB |
Output is correct |
183 |
Correct |
943 ms |
34704 KB |
Output is correct |
184 |
Correct |
1167 ms |
26312 KB |
Output is correct |
185 |
Correct |
2120 ms |
31740 KB |
Output is correct |
186 |
Correct |
2166 ms |
31080 KB |
Output is correct |
187 |
Correct |
1898 ms |
31728 KB |
Output is correct |
188 |
Correct |
1766 ms |
33672 KB |
Output is correct |
189 |
Correct |
90 ms |
19036 KB |
Output is correct |
190 |
Correct |
398 ms |
23132 KB |
Output is correct |
191 |
Correct |
113 ms |
26244 KB |
Output is correct |
192 |
Correct |
449 ms |
31756 KB |
Output is correct |
193 |
Correct |
419 ms |
31504 KB |
Output is correct |
194 |
Correct |
518 ms |
34752 KB |
Output is correct |
195 |
Correct |
24 ms |
19548 KB |
Output is correct |
196 |
Correct |
48 ms |
19032 KB |
Output is correct |
197 |
Correct |
296 ms |
35680 KB |
Output is correct |
198 |
Correct |
290 ms |
26200 KB |
Output is correct |
199 |
Correct |
21 ms |
19036 KB |
Output is correct |
200 |
Correct |
46 ms |
19032 KB |
Output is correct |
201 |
Correct |
694 ms |
28876 KB |
Output is correct |
202 |
Correct |
312 ms |
31704 KB |
Output is correct |
203 |
Correct |
723 ms |
34596 KB |
Output is correct |
204 |
Correct |
773 ms |
35616 KB |
Output is correct |
205 |
Correct |
854 ms |
34072 KB |
Output is correct |
206 |
Correct |
533 ms |
25040 KB |
Output is correct |
207 |
Correct |
22 ms |
19032 KB |
Output is correct |
208 |
Correct |
45 ms |
19036 KB |
Output is correct |
209 |
Correct |
1366 ms |
33820 KB |
Output is correct |
210 |
Correct |
589 ms |
23656 KB |
Output is correct |
211 |
Correct |
1380 ms |
35144 KB |
Output is correct |
212 |
Correct |
1457 ms |
31272 KB |
Output is correct |
213 |
Correct |
982 ms |
32664 KB |
Output is correct |
214 |
Correct |
1211 ms |
26300 KB |
Output is correct |
215 |
Correct |
4308 ms |
30280 KB |
Output is correct |
216 |
Correct |
1974 ms |
23084 KB |
Output is correct |
217 |
Correct |
4334 ms |
33296 KB |
Output is correct |
218 |
Correct |
3362 ms |
32544 KB |
Output is correct |
219 |
Incorrect |
24 ms |
19292 KB |
Output isn't correct |
220 |
Halted |
0 ms |
0 KB |
- |