#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]-300/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:50:19: 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]
50 | while(l[p]<V[p].size() && (j-V[p][l[p]])/i>A[i]) ++l[p];
vault.cpp:56:16: 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]
56 | if(l[p]<V[p].size()) {
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
19036 KB |
Output is correct |
2 |
Correct |
30 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19036 KB |
Output is correct |
4 |
Correct |
90 ms |
19272 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
937 ms |
19464 KB |
Output is correct |
7 |
Correct |
418 ms |
19264 KB |
Output is correct |
8 |
Correct |
941 ms |
19480 KB |
Output is correct |
9 |
Correct |
980 ms |
19592 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
47 ms |
19284 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
19036 KB |
Output is correct |
2 |
Correct |
30 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19036 KB |
Output is correct |
4 |
Correct |
90 ms |
19272 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
937 ms |
19464 KB |
Output is correct |
7 |
Correct |
418 ms |
19264 KB |
Output is correct |
8 |
Correct |
941 ms |
19480 KB |
Output is correct |
9 |
Correct |
980 ms |
19592 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
47 ms |
19284 KB |
Output is correct |
12 |
Correct |
41 ms |
19036 KB |
Output is correct |
13 |
Correct |
32 ms |
19032 KB |
Output is correct |
14 |
Correct |
13 ms |
19260 KB |
Output is correct |
15 |
Correct |
95 ms |
19248 KB |
Output is correct |
16 |
Correct |
2 ms |
10840 KB |
Output is correct |
17 |
Correct |
946 ms |
19464 KB |
Output is correct |
18 |
Correct |
417 ms |
19280 KB |
Output is correct |
19 |
Correct |
941 ms |
19508 KB |
Output is correct |
20 |
Correct |
935 ms |
19588 KB |
Output is correct |
21 |
Correct |
22 ms |
19036 KB |
Output is correct |
22 |
Correct |
45 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10844 KB |
Output is correct |
24 |
Correct |
1954 ms |
20888 KB |
Output is correct |
25 |
Correct |
781 ms |
19696 KB |
Output is correct |
26 |
Correct |
2040 ms |
22184 KB |
Output is correct |
27 |
Correct |
2043 ms |
22156 KB |
Output is correct |
28 |
Correct |
24 ms |
19036 KB |
Output is correct |
29 |
Correct |
52 ms |
19036 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19032 KB |
Output is correct |
2 |
Correct |
417 ms |
23136 KB |
Output is correct |
3 |
Correct |
121 ms |
26248 KB |
Output is correct |
4 |
Correct |
471 ms |
31800 KB |
Output is correct |
5 |
Correct |
468 ms |
31504 KB |
Output is correct |
6 |
Correct |
576 ms |
34584 KB |
Output is correct |
7 |
Correct |
26 ms |
19528 KB |
Output is correct |
8 |
Correct |
79 ms |
19032 KB |
Output is correct |
9 |
Correct |
321 ms |
33384 KB |
Output is correct |
10 |
Correct |
312 ms |
26248 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19032 KB |
Output is correct |
2 |
Correct |
417 ms |
23136 KB |
Output is correct |
3 |
Correct |
121 ms |
26248 KB |
Output is correct |
4 |
Correct |
471 ms |
31800 KB |
Output is correct |
5 |
Correct |
468 ms |
31504 KB |
Output is correct |
6 |
Correct |
576 ms |
34584 KB |
Output is correct |
7 |
Correct |
26 ms |
19528 KB |
Output is correct |
8 |
Correct |
79 ms |
19032 KB |
Output is correct |
9 |
Correct |
321 ms |
33384 KB |
Output is correct |
10 |
Correct |
312 ms |
26248 KB |
Output is correct |
11 |
Correct |
44 ms |
19032 KB |
Output is correct |
12 |
Correct |
32 ms |
19036 KB |
Output is correct |
13 |
Correct |
25 ms |
19032 KB |
Output is correct |
14 |
Correct |
99 ms |
19032 KB |
Output is correct |
15 |
Correct |
440 ms |
23120 KB |
Output is correct |
16 |
Correct |
123 ms |
26004 KB |
Output is correct |
17 |
Correct |
517 ms |
31772 KB |
Output is correct |
18 |
Correct |
457 ms |
31488 KB |
Output is correct |
19 |
Correct |
581 ms |
35536 KB |
Output is correct |
20 |
Correct |
27 ms |
19548 KB |
Output is correct |
21 |
Correct |
91 ms |
19268 KB |
Output is correct |
22 |
Correct |
321 ms |
32544 KB |
Output is correct |
23 |
Correct |
314 ms |
26260 KB |
Output is correct |
24 |
Correct |
680 ms |
25288 KB |
Output is correct |
25 |
Correct |
255 ms |
25328 KB |
Output is correct |
26 |
Correct |
806 ms |
32204 KB |
Output is correct |
27 |
Correct |
694 ms |
31384 KB |
Output is correct |
28 |
Correct |
822 ms |
35616 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19032 KB |
Output is correct |
2 |
Correct |
417 ms |
23136 KB |
Output is correct |
3 |
Correct |
121 ms |
26248 KB |
Output is correct |
4 |
Correct |
471 ms |
31800 KB |
Output is correct |
5 |
Correct |
468 ms |
31504 KB |
Output is correct |
6 |
Correct |
576 ms |
34584 KB |
Output is correct |
7 |
Correct |
26 ms |
19528 KB |
Output is correct |
8 |
Correct |
79 ms |
19032 KB |
Output is correct |
9 |
Correct |
321 ms |
33384 KB |
Output is correct |
10 |
Correct |
312 ms |
26248 KB |
Output is correct |
11 |
Correct |
107 ms |
19268 KB |
Output is correct |
12 |
Correct |
436 ms |
23128 KB |
Output is correct |
13 |
Correct |
134 ms |
26252 KB |
Output is correct |
14 |
Correct |
503 ms |
31828 KB |
Output is correct |
15 |
Correct |
475 ms |
31500 KB |
Output is correct |
16 |
Correct |
600 ms |
33896 KB |
Output is correct |
17 |
Correct |
43 ms |
19348 KB |
Output is correct |
18 |
Correct |
56 ms |
19032 KB |
Output is correct |
19 |
Correct |
363 ms |
35776 KB |
Output is correct |
20 |
Correct |
324 ms |
26240 KB |
Output is correct |
21 |
Correct |
24 ms |
19036 KB |
Output is correct |
22 |
Correct |
52 ms |
19036 KB |
Output is correct |
23 |
Correct |
736 ms |
29088 KB |
Output is correct |
24 |
Correct |
313 ms |
31700 KB |
Output is correct |
25 |
Correct |
785 ms |
35716 KB |
Output is correct |
26 |
Correct |
799 ms |
31796 KB |
Output is correct |
27 |
Correct |
984 ms |
34252 KB |
Output is correct |
28 |
Correct |
558 ms |
25020 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
19036 KB |
Output is correct |
2 |
Correct |
30 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19036 KB |
Output is correct |
4 |
Correct |
90 ms |
19272 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
937 ms |
19464 KB |
Output is correct |
7 |
Correct |
418 ms |
19264 KB |
Output is correct |
8 |
Correct |
941 ms |
19480 KB |
Output is correct |
9 |
Correct |
980 ms |
19592 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
47 ms |
19284 KB |
Output is correct |
12 |
Correct |
93 ms |
19032 KB |
Output is correct |
13 |
Correct |
417 ms |
23136 KB |
Output is correct |
14 |
Correct |
121 ms |
26248 KB |
Output is correct |
15 |
Correct |
471 ms |
31800 KB |
Output is correct |
16 |
Correct |
468 ms |
31504 KB |
Output is correct |
17 |
Correct |
576 ms |
34584 KB |
Output is correct |
18 |
Correct |
26 ms |
19528 KB |
Output is correct |
19 |
Correct |
79 ms |
19032 KB |
Output is correct |
20 |
Correct |
321 ms |
33384 KB |
Output is correct |
21 |
Correct |
312 ms |
26248 KB |
Output is correct |
22 |
Correct |
44 ms |
19032 KB |
Output is correct |
23 |
Correct |
32 ms |
19036 KB |
Output is correct |
24 |
Correct |
25 ms |
19032 KB |
Output is correct |
25 |
Correct |
99 ms |
19032 KB |
Output is correct |
26 |
Correct |
440 ms |
23120 KB |
Output is correct |
27 |
Correct |
123 ms |
26004 KB |
Output is correct |
28 |
Correct |
517 ms |
31772 KB |
Output is correct |
29 |
Correct |
457 ms |
31488 KB |
Output is correct |
30 |
Correct |
581 ms |
35536 KB |
Output is correct |
31 |
Correct |
27 ms |
19548 KB |
Output is correct |
32 |
Correct |
91 ms |
19268 KB |
Output is correct |
33 |
Correct |
321 ms |
32544 KB |
Output is correct |
34 |
Correct |
314 ms |
26260 KB |
Output is correct |
35 |
Correct |
680 ms |
25288 KB |
Output is correct |
36 |
Correct |
255 ms |
25328 KB |
Output is correct |
37 |
Correct |
806 ms |
32204 KB |
Output is correct |
38 |
Correct |
694 ms |
31384 KB |
Output is correct |
39 |
Correct |
822 ms |
35616 KB |
Output is correct |
40 |
Correct |
107 ms |
19268 KB |
Output is correct |
41 |
Correct |
436 ms |
23128 KB |
Output is correct |
42 |
Correct |
134 ms |
26252 KB |
Output is correct |
43 |
Correct |
503 ms |
31828 KB |
Output is correct |
44 |
Correct |
475 ms |
31500 KB |
Output is correct |
45 |
Correct |
600 ms |
33896 KB |
Output is correct |
46 |
Correct |
43 ms |
19348 KB |
Output is correct |
47 |
Correct |
56 ms |
19032 KB |
Output is correct |
48 |
Correct |
363 ms |
35776 KB |
Output is correct |
49 |
Correct |
324 ms |
26240 KB |
Output is correct |
50 |
Correct |
24 ms |
19036 KB |
Output is correct |
51 |
Correct |
52 ms |
19036 KB |
Output is correct |
52 |
Correct |
736 ms |
29088 KB |
Output is correct |
53 |
Correct |
313 ms |
31700 KB |
Output is correct |
54 |
Correct |
785 ms |
35716 KB |
Output is correct |
55 |
Correct |
799 ms |
31796 KB |
Output is correct |
56 |
Correct |
984 ms |
34252 KB |
Output is correct |
57 |
Correct |
558 ms |
25020 KB |
Output is correct |
58 |
Correct |
43 ms |
19032 KB |
Output is correct |
59 |
Correct |
55 ms |
19268 KB |
Output is correct |
60 |
Correct |
15 ms |
19036 KB |
Output is correct |
61 |
Correct |
94 ms |
19032 KB |
Output is correct |
62 |
Correct |
2 ms |
10844 KB |
Output is correct |
63 |
Correct |
978 ms |
19520 KB |
Output is correct |
64 |
Correct |
461 ms |
19552 KB |
Output is correct |
65 |
Correct |
1002 ms |
19488 KB |
Output is correct |
66 |
Correct |
1031 ms |
19592 KB |
Output is correct |
67 |
Correct |
21 ms |
19036 KB |
Output is correct |
68 |
Correct |
52 ms |
19268 KB |
Output is correct |
69 |
Correct |
455 ms |
23136 KB |
Output is correct |
70 |
Correct |
129 ms |
26240 KB |
Output is correct |
71 |
Correct |
469 ms |
31800 KB |
Output is correct |
72 |
Correct |
437 ms |
31660 KB |
Output is correct |
73 |
Correct |
572 ms |
35644 KB |
Output is correct |
74 |
Correct |
25 ms |
19544 KB |
Output is correct |
75 |
Correct |
54 ms |
19036 KB |
Output is correct |
76 |
Correct |
324 ms |
32608 KB |
Output is correct |
77 |
Correct |
307 ms |
26220 KB |
Output is correct |
78 |
Correct |
676 ms |
25212 KB |
Output is correct |
79 |
Correct |
254 ms |
25344 KB |
Output is correct |
80 |
Correct |
855 ms |
32368 KB |
Output is correct |
81 |
Correct |
701 ms |
31376 KB |
Output is correct |
82 |
Correct |
818 ms |
32544 KB |
Output is correct |
83 |
Correct |
745 ms |
28904 KB |
Output is correct |
84 |
Correct |
340 ms |
31688 KB |
Output is correct |
85 |
Correct |
796 ms |
32548 KB |
Output is correct |
86 |
Correct |
833 ms |
31968 KB |
Output is correct |
87 |
Correct |
920 ms |
34768 KB |
Output is correct |
88 |
Correct |
553 ms |
25036 KB |
Output is correct |
89 |
Correct |
1110 ms |
25948 KB |
Output is correct |
90 |
Correct |
1133 ms |
29020 KB |
Output is correct |
91 |
Correct |
1189 ms |
32540 KB |
Output is correct |
92 |
Correct |
1351 ms |
35260 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19032 KB |
Output is correct |
2 |
Correct |
417 ms |
23136 KB |
Output is correct |
3 |
Correct |
121 ms |
26248 KB |
Output is correct |
4 |
Correct |
471 ms |
31800 KB |
Output is correct |
5 |
Correct |
468 ms |
31504 KB |
Output is correct |
6 |
Correct |
576 ms |
34584 KB |
Output is correct |
7 |
Correct |
26 ms |
19528 KB |
Output is correct |
8 |
Correct |
79 ms |
19032 KB |
Output is correct |
9 |
Correct |
321 ms |
33384 KB |
Output is correct |
10 |
Correct |
312 ms |
26248 KB |
Output is correct |
11 |
Correct |
107 ms |
19268 KB |
Output is correct |
12 |
Correct |
436 ms |
23128 KB |
Output is correct |
13 |
Correct |
134 ms |
26252 KB |
Output is correct |
14 |
Correct |
503 ms |
31828 KB |
Output is correct |
15 |
Correct |
475 ms |
31500 KB |
Output is correct |
16 |
Correct |
600 ms |
33896 KB |
Output is correct |
17 |
Correct |
43 ms |
19348 KB |
Output is correct |
18 |
Correct |
56 ms |
19032 KB |
Output is correct |
19 |
Correct |
363 ms |
35776 KB |
Output is correct |
20 |
Correct |
324 ms |
26240 KB |
Output is correct |
21 |
Correct |
24 ms |
19036 KB |
Output is correct |
22 |
Correct |
52 ms |
19036 KB |
Output is correct |
23 |
Correct |
736 ms |
29088 KB |
Output is correct |
24 |
Correct |
313 ms |
31700 KB |
Output is correct |
25 |
Correct |
785 ms |
35716 KB |
Output is correct |
26 |
Correct |
799 ms |
31796 KB |
Output is correct |
27 |
Correct |
984 ms |
34252 KB |
Output is correct |
28 |
Correct |
558 ms |
25020 KB |
Output is correct |
29 |
Correct |
94 ms |
19036 KB |
Output is correct |
30 |
Correct |
426 ms |
23156 KB |
Output is correct |
31 |
Correct |
124 ms |
26276 KB |
Output is correct |
32 |
Correct |
515 ms |
31804 KB |
Output is correct |
33 |
Correct |
443 ms |
31528 KB |
Output is correct |
34 |
Correct |
639 ms |
32508 KB |
Output is correct |
35 |
Correct |
26 ms |
19548 KB |
Output is correct |
36 |
Correct |
82 ms |
19252 KB |
Output is correct |
37 |
Correct |
310 ms |
32800 KB |
Output is correct |
38 |
Correct |
308 ms |
26256 KB |
Output is correct |
39 |
Correct |
24 ms |
19036 KB |
Output is correct |
40 |
Correct |
55 ms |
19276 KB |
Output is correct |
41 |
Correct |
796 ms |
28864 KB |
Output is correct |
42 |
Correct |
317 ms |
31700 KB |
Output is correct |
43 |
Correct |
778 ms |
33568 KB |
Output is correct |
44 |
Correct |
791 ms |
31792 KB |
Output is correct |
45 |
Correct |
926 ms |
33116 KB |
Output is correct |
46 |
Correct |
561 ms |
25008 KB |
Output is correct |
47 |
Correct |
22 ms |
19036 KB |
Output is correct |
48 |
Correct |
46 ms |
19036 KB |
Output is correct |
49 |
Correct |
1456 ms |
32544 KB |
Output is correct |
50 |
Correct |
581 ms |
23656 KB |
Output is correct |
51 |
Correct |
1448 ms |
32612 KB |
Output is correct |
52 |
Correct |
1548 ms |
31060 KB |
Output is correct |
53 |
Correct |
1833 ms |
33576 KB |
Output is correct |
54 |
Correct |
1268 ms |
26296 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
19036 KB |
Output is correct |
2 |
Correct |
30 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19036 KB |
Output is correct |
4 |
Correct |
90 ms |
19272 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
937 ms |
19464 KB |
Output is correct |
7 |
Correct |
418 ms |
19264 KB |
Output is correct |
8 |
Correct |
941 ms |
19480 KB |
Output is correct |
9 |
Correct |
980 ms |
19592 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
47 ms |
19284 KB |
Output is correct |
12 |
Correct |
41 ms |
19036 KB |
Output is correct |
13 |
Correct |
32 ms |
19032 KB |
Output is correct |
14 |
Correct |
13 ms |
19260 KB |
Output is correct |
15 |
Correct |
95 ms |
19248 KB |
Output is correct |
16 |
Correct |
2 ms |
10840 KB |
Output is correct |
17 |
Correct |
946 ms |
19464 KB |
Output is correct |
18 |
Correct |
417 ms |
19280 KB |
Output is correct |
19 |
Correct |
941 ms |
19508 KB |
Output is correct |
20 |
Correct |
935 ms |
19588 KB |
Output is correct |
21 |
Correct |
22 ms |
19036 KB |
Output is correct |
22 |
Correct |
45 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10844 KB |
Output is correct |
24 |
Correct |
1954 ms |
20888 KB |
Output is correct |
25 |
Correct |
781 ms |
19696 KB |
Output is correct |
26 |
Correct |
2040 ms |
22184 KB |
Output is correct |
27 |
Correct |
2043 ms |
22156 KB |
Output is correct |
28 |
Correct |
24 ms |
19036 KB |
Output is correct |
29 |
Correct |
52 ms |
19036 KB |
Output is correct |
30 |
Correct |
93 ms |
19032 KB |
Output is correct |
31 |
Correct |
417 ms |
23136 KB |
Output is correct |
32 |
Correct |
121 ms |
26248 KB |
Output is correct |
33 |
Correct |
471 ms |
31800 KB |
Output is correct |
34 |
Correct |
468 ms |
31504 KB |
Output is correct |
35 |
Correct |
576 ms |
34584 KB |
Output is correct |
36 |
Correct |
26 ms |
19528 KB |
Output is correct |
37 |
Correct |
79 ms |
19032 KB |
Output is correct |
38 |
Correct |
321 ms |
33384 KB |
Output is correct |
39 |
Correct |
312 ms |
26248 KB |
Output is correct |
40 |
Correct |
44 ms |
19032 KB |
Output is correct |
41 |
Correct |
32 ms |
19036 KB |
Output is correct |
42 |
Correct |
25 ms |
19032 KB |
Output is correct |
43 |
Correct |
99 ms |
19032 KB |
Output is correct |
44 |
Correct |
440 ms |
23120 KB |
Output is correct |
45 |
Correct |
123 ms |
26004 KB |
Output is correct |
46 |
Correct |
517 ms |
31772 KB |
Output is correct |
47 |
Correct |
457 ms |
31488 KB |
Output is correct |
48 |
Correct |
581 ms |
35536 KB |
Output is correct |
49 |
Correct |
27 ms |
19548 KB |
Output is correct |
50 |
Correct |
91 ms |
19268 KB |
Output is correct |
51 |
Correct |
321 ms |
32544 KB |
Output is correct |
52 |
Correct |
314 ms |
26260 KB |
Output is correct |
53 |
Correct |
680 ms |
25288 KB |
Output is correct |
54 |
Correct |
255 ms |
25328 KB |
Output is correct |
55 |
Correct |
806 ms |
32204 KB |
Output is correct |
56 |
Correct |
694 ms |
31384 KB |
Output is correct |
57 |
Correct |
822 ms |
35616 KB |
Output is correct |
58 |
Correct |
107 ms |
19268 KB |
Output is correct |
59 |
Correct |
436 ms |
23128 KB |
Output is correct |
60 |
Correct |
134 ms |
26252 KB |
Output is correct |
61 |
Correct |
503 ms |
31828 KB |
Output is correct |
62 |
Correct |
475 ms |
31500 KB |
Output is correct |
63 |
Correct |
600 ms |
33896 KB |
Output is correct |
64 |
Correct |
43 ms |
19348 KB |
Output is correct |
65 |
Correct |
56 ms |
19032 KB |
Output is correct |
66 |
Correct |
363 ms |
35776 KB |
Output is correct |
67 |
Correct |
324 ms |
26240 KB |
Output is correct |
68 |
Correct |
24 ms |
19036 KB |
Output is correct |
69 |
Correct |
52 ms |
19036 KB |
Output is correct |
70 |
Correct |
736 ms |
29088 KB |
Output is correct |
71 |
Correct |
313 ms |
31700 KB |
Output is correct |
72 |
Correct |
785 ms |
35716 KB |
Output is correct |
73 |
Correct |
799 ms |
31796 KB |
Output is correct |
74 |
Correct |
984 ms |
34252 KB |
Output is correct |
75 |
Correct |
558 ms |
25020 KB |
Output is correct |
76 |
Correct |
43 ms |
19032 KB |
Output is correct |
77 |
Correct |
55 ms |
19268 KB |
Output is correct |
78 |
Correct |
15 ms |
19036 KB |
Output is correct |
79 |
Correct |
94 ms |
19032 KB |
Output is correct |
80 |
Correct |
2 ms |
10844 KB |
Output is correct |
81 |
Correct |
978 ms |
19520 KB |
Output is correct |
82 |
Correct |
461 ms |
19552 KB |
Output is correct |
83 |
Correct |
1002 ms |
19488 KB |
Output is correct |
84 |
Correct |
1031 ms |
19592 KB |
Output is correct |
85 |
Correct |
21 ms |
19036 KB |
Output is correct |
86 |
Correct |
52 ms |
19268 KB |
Output is correct |
87 |
Correct |
455 ms |
23136 KB |
Output is correct |
88 |
Correct |
129 ms |
26240 KB |
Output is correct |
89 |
Correct |
469 ms |
31800 KB |
Output is correct |
90 |
Correct |
437 ms |
31660 KB |
Output is correct |
91 |
Correct |
572 ms |
35644 KB |
Output is correct |
92 |
Correct |
25 ms |
19544 KB |
Output is correct |
93 |
Correct |
54 ms |
19036 KB |
Output is correct |
94 |
Correct |
324 ms |
32608 KB |
Output is correct |
95 |
Correct |
307 ms |
26220 KB |
Output is correct |
96 |
Correct |
676 ms |
25212 KB |
Output is correct |
97 |
Correct |
254 ms |
25344 KB |
Output is correct |
98 |
Correct |
855 ms |
32368 KB |
Output is correct |
99 |
Correct |
701 ms |
31376 KB |
Output is correct |
100 |
Correct |
818 ms |
32544 KB |
Output is correct |
101 |
Correct |
745 ms |
28904 KB |
Output is correct |
102 |
Correct |
340 ms |
31688 KB |
Output is correct |
103 |
Correct |
796 ms |
32548 KB |
Output is correct |
104 |
Correct |
833 ms |
31968 KB |
Output is correct |
105 |
Correct |
920 ms |
34768 KB |
Output is correct |
106 |
Correct |
553 ms |
25036 KB |
Output is correct |
107 |
Correct |
1110 ms |
25948 KB |
Output is correct |
108 |
Correct |
1133 ms |
29020 KB |
Output is correct |
109 |
Correct |
1189 ms |
32540 KB |
Output is correct |
110 |
Correct |
1351 ms |
35260 KB |
Output is correct |
111 |
Correct |
94 ms |
19036 KB |
Output is correct |
112 |
Correct |
426 ms |
23156 KB |
Output is correct |
113 |
Correct |
124 ms |
26276 KB |
Output is correct |
114 |
Correct |
515 ms |
31804 KB |
Output is correct |
115 |
Correct |
443 ms |
31528 KB |
Output is correct |
116 |
Correct |
639 ms |
32508 KB |
Output is correct |
117 |
Correct |
26 ms |
19548 KB |
Output is correct |
118 |
Correct |
82 ms |
19252 KB |
Output is correct |
119 |
Correct |
310 ms |
32800 KB |
Output is correct |
120 |
Correct |
308 ms |
26256 KB |
Output is correct |
121 |
Correct |
24 ms |
19036 KB |
Output is correct |
122 |
Correct |
55 ms |
19276 KB |
Output is correct |
123 |
Correct |
796 ms |
28864 KB |
Output is correct |
124 |
Correct |
317 ms |
31700 KB |
Output is correct |
125 |
Correct |
778 ms |
33568 KB |
Output is correct |
126 |
Correct |
791 ms |
31792 KB |
Output is correct |
127 |
Correct |
926 ms |
33116 KB |
Output is correct |
128 |
Correct |
561 ms |
25008 KB |
Output is correct |
129 |
Correct |
22 ms |
19036 KB |
Output is correct |
130 |
Correct |
46 ms |
19036 KB |
Output is correct |
131 |
Correct |
1456 ms |
32544 KB |
Output is correct |
132 |
Correct |
581 ms |
23656 KB |
Output is correct |
133 |
Correct |
1448 ms |
32612 KB |
Output is correct |
134 |
Correct |
1548 ms |
31060 KB |
Output is correct |
135 |
Correct |
1833 ms |
33576 KB |
Output is correct |
136 |
Correct |
1268 ms |
26296 KB |
Output is correct |
137 |
Correct |
42 ms |
19036 KB |
Output is correct |
138 |
Correct |
30 ms |
19036 KB |
Output is correct |
139 |
Correct |
14 ms |
19032 KB |
Output is correct |
140 |
Correct |
96 ms |
19252 KB |
Output is correct |
141 |
Correct |
2 ms |
10844 KB |
Output is correct |
142 |
Correct |
965 ms |
19464 KB |
Output is correct |
143 |
Correct |
454 ms |
19404 KB |
Output is correct |
144 |
Correct |
985 ms |
19480 KB |
Output is correct |
145 |
Correct |
1008 ms |
19560 KB |
Output is correct |
146 |
Correct |
23 ms |
19036 KB |
Output is correct |
147 |
Correct |
47 ms |
19272 KB |
Output is correct |
148 |
Correct |
2 ms |
10844 KB |
Output is correct |
149 |
Correct |
2098 ms |
20828 KB |
Output is correct |
150 |
Correct |
837 ms |
19748 KB |
Output is correct |
151 |
Correct |
2098 ms |
22232 KB |
Output is correct |
152 |
Correct |
2104 ms |
22092 KB |
Output is correct |
153 |
Correct |
22 ms |
19268 KB |
Output is correct |
154 |
Correct |
48 ms |
19036 KB |
Output is correct |
155 |
Correct |
428 ms |
23152 KB |
Output is correct |
156 |
Correct |
121 ms |
25992 KB |
Output is correct |
157 |
Correct |
468 ms |
31768 KB |
Output is correct |
158 |
Correct |
463 ms |
31484 KB |
Output is correct |
159 |
Correct |
586 ms |
32488 KB |
Output is correct |
160 |
Correct |
41 ms |
19288 KB |
Output is correct |
161 |
Correct |
48 ms |
19048 KB |
Output is correct |
162 |
Correct |
328 ms |
35644 KB |
Output is correct |
163 |
Correct |
321 ms |
26236 KB |
Output is correct |
164 |
Correct |
742 ms |
28904 KB |
Output is correct |
165 |
Correct |
336 ms |
31696 KB |
Output is correct |
166 |
Correct |
820 ms |
34848 KB |
Output is correct |
167 |
Correct |
791 ms |
31808 KB |
Output is correct |
168 |
Correct |
948 ms |
34084 KB |
Output is correct |
169 |
Correct |
565 ms |
25028 KB |
Output is correct |
170 |
Correct |
665 ms |
25288 KB |
Output is correct |
171 |
Correct |
235 ms |
25340 KB |
Output is correct |
172 |
Correct |
729 ms |
32336 KB |
Output is correct |
173 |
Correct |
701 ms |
31412 KB |
Output is correct |
174 |
Correct |
761 ms |
35632 KB |
Output is correct |
175 |
Correct |
1080 ms |
25948 KB |
Output is correct |
176 |
Correct |
1083 ms |
29040 KB |
Output is correct |
177 |
Correct |
1114 ms |
32644 KB |
Output is correct |
178 |
Correct |
1331 ms |
35104 KB |
Output is correct |
179 |
Correct |
1442 ms |
35620 KB |
Output is correct |
180 |
Correct |
602 ms |
23652 KB |
Output is correct |
181 |
Correct |
1513 ms |
35268 KB |
Output is correct |
182 |
Correct |
1593 ms |
31288 KB |
Output is correct |
183 |
Correct |
1858 ms |
35596 KB |
Output is correct |
184 |
Correct |
1296 ms |
26564 KB |
Output is correct |
185 |
Correct |
2271 ms |
31804 KB |
Output is correct |
186 |
Correct |
2376 ms |
31080 KB |
Output is correct |
187 |
Correct |
2707 ms |
31952 KB |
Output is correct |
188 |
Correct |
2713 ms |
35624 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19032 KB |
Output is correct |
2 |
Correct |
417 ms |
23136 KB |
Output is correct |
3 |
Correct |
121 ms |
26248 KB |
Output is correct |
4 |
Correct |
471 ms |
31800 KB |
Output is correct |
5 |
Correct |
468 ms |
31504 KB |
Output is correct |
6 |
Correct |
576 ms |
34584 KB |
Output is correct |
7 |
Correct |
26 ms |
19528 KB |
Output is correct |
8 |
Correct |
79 ms |
19032 KB |
Output is correct |
9 |
Correct |
321 ms |
33384 KB |
Output is correct |
10 |
Correct |
312 ms |
26248 KB |
Output is correct |
11 |
Correct |
107 ms |
19268 KB |
Output is correct |
12 |
Correct |
436 ms |
23128 KB |
Output is correct |
13 |
Correct |
134 ms |
26252 KB |
Output is correct |
14 |
Correct |
503 ms |
31828 KB |
Output is correct |
15 |
Correct |
475 ms |
31500 KB |
Output is correct |
16 |
Correct |
600 ms |
33896 KB |
Output is correct |
17 |
Correct |
43 ms |
19348 KB |
Output is correct |
18 |
Correct |
56 ms |
19032 KB |
Output is correct |
19 |
Correct |
363 ms |
35776 KB |
Output is correct |
20 |
Correct |
324 ms |
26240 KB |
Output is correct |
21 |
Correct |
24 ms |
19036 KB |
Output is correct |
22 |
Correct |
52 ms |
19036 KB |
Output is correct |
23 |
Correct |
736 ms |
29088 KB |
Output is correct |
24 |
Correct |
313 ms |
31700 KB |
Output is correct |
25 |
Correct |
785 ms |
35716 KB |
Output is correct |
26 |
Correct |
799 ms |
31796 KB |
Output is correct |
27 |
Correct |
984 ms |
34252 KB |
Output is correct |
28 |
Correct |
558 ms |
25020 KB |
Output is correct |
29 |
Correct |
94 ms |
19036 KB |
Output is correct |
30 |
Correct |
426 ms |
23156 KB |
Output is correct |
31 |
Correct |
124 ms |
26276 KB |
Output is correct |
32 |
Correct |
515 ms |
31804 KB |
Output is correct |
33 |
Correct |
443 ms |
31528 KB |
Output is correct |
34 |
Correct |
639 ms |
32508 KB |
Output is correct |
35 |
Correct |
26 ms |
19548 KB |
Output is correct |
36 |
Correct |
82 ms |
19252 KB |
Output is correct |
37 |
Correct |
310 ms |
32800 KB |
Output is correct |
38 |
Correct |
308 ms |
26256 KB |
Output is correct |
39 |
Correct |
24 ms |
19036 KB |
Output is correct |
40 |
Correct |
55 ms |
19276 KB |
Output is correct |
41 |
Correct |
796 ms |
28864 KB |
Output is correct |
42 |
Correct |
317 ms |
31700 KB |
Output is correct |
43 |
Correct |
778 ms |
33568 KB |
Output is correct |
44 |
Correct |
791 ms |
31792 KB |
Output is correct |
45 |
Correct |
926 ms |
33116 KB |
Output is correct |
46 |
Correct |
561 ms |
25008 KB |
Output is correct |
47 |
Correct |
22 ms |
19036 KB |
Output is correct |
48 |
Correct |
46 ms |
19036 KB |
Output is correct |
49 |
Correct |
1456 ms |
32544 KB |
Output is correct |
50 |
Correct |
581 ms |
23656 KB |
Output is correct |
51 |
Correct |
1448 ms |
32612 KB |
Output is correct |
52 |
Correct |
1548 ms |
31060 KB |
Output is correct |
53 |
Correct |
1833 ms |
33576 KB |
Output is correct |
54 |
Correct |
1268 ms |
26296 KB |
Output is correct |
55 |
Correct |
93 ms |
19252 KB |
Output is correct |
56 |
Correct |
431 ms |
23156 KB |
Output is correct |
57 |
Correct |
127 ms |
26252 KB |
Output is correct |
58 |
Correct |
475 ms |
31848 KB |
Output is correct |
59 |
Correct |
442 ms |
31500 KB |
Output is correct |
60 |
Correct |
555 ms |
35612 KB |
Output is correct |
61 |
Correct |
26 ms |
19544 KB |
Output is correct |
62 |
Correct |
86 ms |
19032 KB |
Output is correct |
63 |
Correct |
303 ms |
33312 KB |
Output is correct |
64 |
Correct |
306 ms |
26128 KB |
Output is correct |
65 |
Correct |
24 ms |
19268 KB |
Output is correct |
66 |
Correct |
84 ms |
19276 KB |
Output is correct |
67 |
Correct |
753 ms |
28884 KB |
Output is correct |
68 |
Correct |
325 ms |
31704 KB |
Output is correct |
69 |
Correct |
849 ms |
34676 KB |
Output is correct |
70 |
Correct |
804 ms |
31872 KB |
Output is correct |
71 |
Correct |
1006 ms |
35488 KB |
Output is correct |
72 |
Correct |
572 ms |
24996 KB |
Output is correct |
73 |
Correct |
25 ms |
19032 KB |
Output is correct |
74 |
Correct |
85 ms |
19272 KB |
Output is correct |
75 |
Correct |
1571 ms |
34576 KB |
Output is correct |
76 |
Correct |
632 ms |
23644 KB |
Output is correct |
77 |
Correct |
1545 ms |
35172 KB |
Output is correct |
78 |
Correct |
1639 ms |
31284 KB |
Output is correct |
79 |
Correct |
1874 ms |
34316 KB |
Output is correct |
80 |
Correct |
1387 ms |
26344 KB |
Output is correct |
81 |
Correct |
4526 ms |
30012 KB |
Output is correct |
82 |
Correct |
2021 ms |
23016 KB |
Output is correct |
83 |
Correct |
4462 ms |
33464 KB |
Output is correct |
84 |
Correct |
4816 ms |
34296 KB |
Output is correct |
85 |
Correct |
23 ms |
19292 KB |
Output is correct |
86 |
Correct |
45 ms |
19292 KB |
Output is correct |
87 |
Correct |
3880 ms |
29036 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
39 ms |
19036 KB |
Output is correct |
2 |
Correct |
30 ms |
19036 KB |
Output is correct |
3 |
Correct |
14 ms |
19036 KB |
Output is correct |
4 |
Correct |
90 ms |
19272 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
937 ms |
19464 KB |
Output is correct |
7 |
Correct |
418 ms |
19264 KB |
Output is correct |
8 |
Correct |
941 ms |
19480 KB |
Output is correct |
9 |
Correct |
980 ms |
19592 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
47 ms |
19284 KB |
Output is correct |
12 |
Correct |
41 ms |
19036 KB |
Output is correct |
13 |
Correct |
32 ms |
19032 KB |
Output is correct |
14 |
Correct |
13 ms |
19260 KB |
Output is correct |
15 |
Correct |
95 ms |
19248 KB |
Output is correct |
16 |
Correct |
2 ms |
10840 KB |
Output is correct |
17 |
Correct |
946 ms |
19464 KB |
Output is correct |
18 |
Correct |
417 ms |
19280 KB |
Output is correct |
19 |
Correct |
941 ms |
19508 KB |
Output is correct |
20 |
Correct |
935 ms |
19588 KB |
Output is correct |
21 |
Correct |
22 ms |
19036 KB |
Output is correct |
22 |
Correct |
45 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10844 KB |
Output is correct |
24 |
Correct |
1954 ms |
20888 KB |
Output is correct |
25 |
Correct |
781 ms |
19696 KB |
Output is correct |
26 |
Correct |
2040 ms |
22184 KB |
Output is correct |
27 |
Correct |
2043 ms |
22156 KB |
Output is correct |
28 |
Correct |
24 ms |
19036 KB |
Output is correct |
29 |
Correct |
52 ms |
19036 KB |
Output is correct |
30 |
Correct |
93 ms |
19032 KB |
Output is correct |
31 |
Correct |
417 ms |
23136 KB |
Output is correct |
32 |
Correct |
121 ms |
26248 KB |
Output is correct |
33 |
Correct |
471 ms |
31800 KB |
Output is correct |
34 |
Correct |
468 ms |
31504 KB |
Output is correct |
35 |
Correct |
576 ms |
34584 KB |
Output is correct |
36 |
Correct |
26 ms |
19528 KB |
Output is correct |
37 |
Correct |
79 ms |
19032 KB |
Output is correct |
38 |
Correct |
321 ms |
33384 KB |
Output is correct |
39 |
Correct |
312 ms |
26248 KB |
Output is correct |
40 |
Correct |
44 ms |
19032 KB |
Output is correct |
41 |
Correct |
32 ms |
19036 KB |
Output is correct |
42 |
Correct |
25 ms |
19032 KB |
Output is correct |
43 |
Correct |
99 ms |
19032 KB |
Output is correct |
44 |
Correct |
440 ms |
23120 KB |
Output is correct |
45 |
Correct |
123 ms |
26004 KB |
Output is correct |
46 |
Correct |
517 ms |
31772 KB |
Output is correct |
47 |
Correct |
457 ms |
31488 KB |
Output is correct |
48 |
Correct |
581 ms |
35536 KB |
Output is correct |
49 |
Correct |
27 ms |
19548 KB |
Output is correct |
50 |
Correct |
91 ms |
19268 KB |
Output is correct |
51 |
Correct |
321 ms |
32544 KB |
Output is correct |
52 |
Correct |
314 ms |
26260 KB |
Output is correct |
53 |
Correct |
680 ms |
25288 KB |
Output is correct |
54 |
Correct |
255 ms |
25328 KB |
Output is correct |
55 |
Correct |
806 ms |
32204 KB |
Output is correct |
56 |
Correct |
694 ms |
31384 KB |
Output is correct |
57 |
Correct |
822 ms |
35616 KB |
Output is correct |
58 |
Correct |
107 ms |
19268 KB |
Output is correct |
59 |
Correct |
436 ms |
23128 KB |
Output is correct |
60 |
Correct |
134 ms |
26252 KB |
Output is correct |
61 |
Correct |
503 ms |
31828 KB |
Output is correct |
62 |
Correct |
475 ms |
31500 KB |
Output is correct |
63 |
Correct |
600 ms |
33896 KB |
Output is correct |
64 |
Correct |
43 ms |
19348 KB |
Output is correct |
65 |
Correct |
56 ms |
19032 KB |
Output is correct |
66 |
Correct |
363 ms |
35776 KB |
Output is correct |
67 |
Correct |
324 ms |
26240 KB |
Output is correct |
68 |
Correct |
24 ms |
19036 KB |
Output is correct |
69 |
Correct |
52 ms |
19036 KB |
Output is correct |
70 |
Correct |
736 ms |
29088 KB |
Output is correct |
71 |
Correct |
313 ms |
31700 KB |
Output is correct |
72 |
Correct |
785 ms |
35716 KB |
Output is correct |
73 |
Correct |
799 ms |
31796 KB |
Output is correct |
74 |
Correct |
984 ms |
34252 KB |
Output is correct |
75 |
Correct |
558 ms |
25020 KB |
Output is correct |
76 |
Correct |
43 ms |
19032 KB |
Output is correct |
77 |
Correct |
55 ms |
19268 KB |
Output is correct |
78 |
Correct |
15 ms |
19036 KB |
Output is correct |
79 |
Correct |
94 ms |
19032 KB |
Output is correct |
80 |
Correct |
2 ms |
10844 KB |
Output is correct |
81 |
Correct |
978 ms |
19520 KB |
Output is correct |
82 |
Correct |
461 ms |
19552 KB |
Output is correct |
83 |
Correct |
1002 ms |
19488 KB |
Output is correct |
84 |
Correct |
1031 ms |
19592 KB |
Output is correct |
85 |
Correct |
21 ms |
19036 KB |
Output is correct |
86 |
Correct |
52 ms |
19268 KB |
Output is correct |
87 |
Correct |
455 ms |
23136 KB |
Output is correct |
88 |
Correct |
129 ms |
26240 KB |
Output is correct |
89 |
Correct |
469 ms |
31800 KB |
Output is correct |
90 |
Correct |
437 ms |
31660 KB |
Output is correct |
91 |
Correct |
572 ms |
35644 KB |
Output is correct |
92 |
Correct |
25 ms |
19544 KB |
Output is correct |
93 |
Correct |
54 ms |
19036 KB |
Output is correct |
94 |
Correct |
324 ms |
32608 KB |
Output is correct |
95 |
Correct |
307 ms |
26220 KB |
Output is correct |
96 |
Correct |
676 ms |
25212 KB |
Output is correct |
97 |
Correct |
254 ms |
25344 KB |
Output is correct |
98 |
Correct |
855 ms |
32368 KB |
Output is correct |
99 |
Correct |
701 ms |
31376 KB |
Output is correct |
100 |
Correct |
818 ms |
32544 KB |
Output is correct |
101 |
Correct |
745 ms |
28904 KB |
Output is correct |
102 |
Correct |
340 ms |
31688 KB |
Output is correct |
103 |
Correct |
796 ms |
32548 KB |
Output is correct |
104 |
Correct |
833 ms |
31968 KB |
Output is correct |
105 |
Correct |
920 ms |
34768 KB |
Output is correct |
106 |
Correct |
553 ms |
25036 KB |
Output is correct |
107 |
Correct |
1110 ms |
25948 KB |
Output is correct |
108 |
Correct |
1133 ms |
29020 KB |
Output is correct |
109 |
Correct |
1189 ms |
32540 KB |
Output is correct |
110 |
Correct |
1351 ms |
35260 KB |
Output is correct |
111 |
Correct |
94 ms |
19036 KB |
Output is correct |
112 |
Correct |
426 ms |
23156 KB |
Output is correct |
113 |
Correct |
124 ms |
26276 KB |
Output is correct |
114 |
Correct |
515 ms |
31804 KB |
Output is correct |
115 |
Correct |
443 ms |
31528 KB |
Output is correct |
116 |
Correct |
639 ms |
32508 KB |
Output is correct |
117 |
Correct |
26 ms |
19548 KB |
Output is correct |
118 |
Correct |
82 ms |
19252 KB |
Output is correct |
119 |
Correct |
310 ms |
32800 KB |
Output is correct |
120 |
Correct |
308 ms |
26256 KB |
Output is correct |
121 |
Correct |
24 ms |
19036 KB |
Output is correct |
122 |
Correct |
55 ms |
19276 KB |
Output is correct |
123 |
Correct |
796 ms |
28864 KB |
Output is correct |
124 |
Correct |
317 ms |
31700 KB |
Output is correct |
125 |
Correct |
778 ms |
33568 KB |
Output is correct |
126 |
Correct |
791 ms |
31792 KB |
Output is correct |
127 |
Correct |
926 ms |
33116 KB |
Output is correct |
128 |
Correct |
561 ms |
25008 KB |
Output is correct |
129 |
Correct |
22 ms |
19036 KB |
Output is correct |
130 |
Correct |
46 ms |
19036 KB |
Output is correct |
131 |
Correct |
1456 ms |
32544 KB |
Output is correct |
132 |
Correct |
581 ms |
23656 KB |
Output is correct |
133 |
Correct |
1448 ms |
32612 KB |
Output is correct |
134 |
Correct |
1548 ms |
31060 KB |
Output is correct |
135 |
Correct |
1833 ms |
33576 KB |
Output is correct |
136 |
Correct |
1268 ms |
26296 KB |
Output is correct |
137 |
Correct |
42 ms |
19036 KB |
Output is correct |
138 |
Correct |
30 ms |
19036 KB |
Output is correct |
139 |
Correct |
14 ms |
19032 KB |
Output is correct |
140 |
Correct |
96 ms |
19252 KB |
Output is correct |
141 |
Correct |
2 ms |
10844 KB |
Output is correct |
142 |
Correct |
965 ms |
19464 KB |
Output is correct |
143 |
Correct |
454 ms |
19404 KB |
Output is correct |
144 |
Correct |
985 ms |
19480 KB |
Output is correct |
145 |
Correct |
1008 ms |
19560 KB |
Output is correct |
146 |
Correct |
23 ms |
19036 KB |
Output is correct |
147 |
Correct |
47 ms |
19272 KB |
Output is correct |
148 |
Correct |
2 ms |
10844 KB |
Output is correct |
149 |
Correct |
2098 ms |
20828 KB |
Output is correct |
150 |
Correct |
837 ms |
19748 KB |
Output is correct |
151 |
Correct |
2098 ms |
22232 KB |
Output is correct |
152 |
Correct |
2104 ms |
22092 KB |
Output is correct |
153 |
Correct |
22 ms |
19268 KB |
Output is correct |
154 |
Correct |
48 ms |
19036 KB |
Output is correct |
155 |
Correct |
428 ms |
23152 KB |
Output is correct |
156 |
Correct |
121 ms |
25992 KB |
Output is correct |
157 |
Correct |
468 ms |
31768 KB |
Output is correct |
158 |
Correct |
463 ms |
31484 KB |
Output is correct |
159 |
Correct |
586 ms |
32488 KB |
Output is correct |
160 |
Correct |
41 ms |
19288 KB |
Output is correct |
161 |
Correct |
48 ms |
19048 KB |
Output is correct |
162 |
Correct |
328 ms |
35644 KB |
Output is correct |
163 |
Correct |
321 ms |
26236 KB |
Output is correct |
164 |
Correct |
742 ms |
28904 KB |
Output is correct |
165 |
Correct |
336 ms |
31696 KB |
Output is correct |
166 |
Correct |
820 ms |
34848 KB |
Output is correct |
167 |
Correct |
791 ms |
31808 KB |
Output is correct |
168 |
Correct |
948 ms |
34084 KB |
Output is correct |
169 |
Correct |
565 ms |
25028 KB |
Output is correct |
170 |
Correct |
665 ms |
25288 KB |
Output is correct |
171 |
Correct |
235 ms |
25340 KB |
Output is correct |
172 |
Correct |
729 ms |
32336 KB |
Output is correct |
173 |
Correct |
701 ms |
31412 KB |
Output is correct |
174 |
Correct |
761 ms |
35632 KB |
Output is correct |
175 |
Correct |
1080 ms |
25948 KB |
Output is correct |
176 |
Correct |
1083 ms |
29040 KB |
Output is correct |
177 |
Correct |
1114 ms |
32644 KB |
Output is correct |
178 |
Correct |
1331 ms |
35104 KB |
Output is correct |
179 |
Correct |
1442 ms |
35620 KB |
Output is correct |
180 |
Correct |
602 ms |
23652 KB |
Output is correct |
181 |
Correct |
1513 ms |
35268 KB |
Output is correct |
182 |
Correct |
1593 ms |
31288 KB |
Output is correct |
183 |
Correct |
1858 ms |
35596 KB |
Output is correct |
184 |
Correct |
1296 ms |
26564 KB |
Output is correct |
185 |
Correct |
2271 ms |
31804 KB |
Output is correct |
186 |
Correct |
2376 ms |
31080 KB |
Output is correct |
187 |
Correct |
2707 ms |
31952 KB |
Output is correct |
188 |
Correct |
2713 ms |
35624 KB |
Output is correct |
189 |
Correct |
93 ms |
19252 KB |
Output is correct |
190 |
Correct |
431 ms |
23156 KB |
Output is correct |
191 |
Correct |
127 ms |
26252 KB |
Output is correct |
192 |
Correct |
475 ms |
31848 KB |
Output is correct |
193 |
Correct |
442 ms |
31500 KB |
Output is correct |
194 |
Correct |
555 ms |
35612 KB |
Output is correct |
195 |
Correct |
26 ms |
19544 KB |
Output is correct |
196 |
Correct |
86 ms |
19032 KB |
Output is correct |
197 |
Correct |
303 ms |
33312 KB |
Output is correct |
198 |
Correct |
306 ms |
26128 KB |
Output is correct |
199 |
Correct |
24 ms |
19268 KB |
Output is correct |
200 |
Correct |
84 ms |
19276 KB |
Output is correct |
201 |
Correct |
753 ms |
28884 KB |
Output is correct |
202 |
Correct |
325 ms |
31704 KB |
Output is correct |
203 |
Correct |
849 ms |
34676 KB |
Output is correct |
204 |
Correct |
804 ms |
31872 KB |
Output is correct |
205 |
Correct |
1006 ms |
35488 KB |
Output is correct |
206 |
Correct |
572 ms |
24996 KB |
Output is correct |
207 |
Correct |
25 ms |
19032 KB |
Output is correct |
208 |
Correct |
85 ms |
19272 KB |
Output is correct |
209 |
Correct |
1571 ms |
34576 KB |
Output is correct |
210 |
Correct |
632 ms |
23644 KB |
Output is correct |
211 |
Correct |
1545 ms |
35172 KB |
Output is correct |
212 |
Correct |
1639 ms |
31284 KB |
Output is correct |
213 |
Correct |
1874 ms |
34316 KB |
Output is correct |
214 |
Correct |
1387 ms |
26344 KB |
Output is correct |
215 |
Correct |
4526 ms |
30012 KB |
Output is correct |
216 |
Correct |
2021 ms |
23016 KB |
Output is correct |
217 |
Correct |
4462 ms |
33464 KB |
Output is correct |
218 |
Correct |
4816 ms |
34296 KB |
Output is correct |
219 |
Correct |
23 ms |
19292 KB |
Output is correct |
220 |
Correct |
45 ms |
19292 KB |
Output is correct |
221 |
Correct |
3880 ms |
29036 KB |
Output is correct |
222 |
Correct |
94 ms |
19032 KB |
Output is correct |
223 |
Correct |
414 ms |
23072 KB |
Output is correct |
224 |
Correct |
151 ms |
26260 KB |
Output is correct |
225 |
Correct |
469 ms |
31872 KB |
Output is correct |
226 |
Correct |
440 ms |
31580 KB |
Output is correct |
227 |
Correct |
586 ms |
32540 KB |
Output is correct |
228 |
Correct |
24 ms |
19548 KB |
Output is correct |
229 |
Correct |
50 ms |
19036 KB |
Output is correct |
230 |
Correct |
286 ms |
32716 KB |
Output is correct |
231 |
Correct |
303 ms |
26296 KB |
Output is correct |
232 |
Correct |
24 ms |
19280 KB |
Output is correct |
233 |
Correct |
51 ms |
19276 KB |
Output is correct |
234 |
Correct |
795 ms |
28924 KB |
Output is correct |
235 |
Correct |
308 ms |
31696 KB |
Output is correct |
236 |
Correct |
799 ms |
33172 KB |
Output is correct |
237 |
Correct |
795 ms |
31780 KB |
Output is correct |
238 |
Correct |
981 ms |
33296 KB |
Output is correct |
239 |
Correct |
550 ms |
24976 KB |
Output is correct |
240 |
Correct |
41 ms |
19036 KB |
Output is correct |
241 |
Correct |
46 ms |
19036 KB |
Output is correct |
242 |
Correct |
1472 ms |
32544 KB |
Output is correct |
243 |
Correct |
642 ms |
23624 KB |
Output is correct |
244 |
Correct |
1539 ms |
34084 KB |
Output is correct |
245 |
Correct |
1638 ms |
31064 KB |
Output is correct |
246 |
Correct |
1957 ms |
32904 KB |
Output is correct |
247 |
Correct |
1289 ms |
26260 KB |
Output is correct |
248 |
Correct |
66 ms |
19032 KB |
Output is correct |
249 |
Correct |
36 ms |
19256 KB |
Output is correct |
250 |
Correct |
14 ms |
19272 KB |
Output is correct |
251 |
Correct |
2 ms |
10844 KB |
Output is correct |
252 |
Correct |
1020 ms |
19456 KB |
Output is correct |
253 |
Correct |
449 ms |
19284 KB |
Output is correct |
254 |
Correct |
1070 ms |
19500 KB |
Output is correct |
255 |
Correct |
1025 ms |
19636 KB |
Output is correct |
256 |
Correct |
3 ms |
10840 KB |
Output is correct |
257 |
Correct |
2101 ms |
20960 KB |
Output is correct |
258 |
Correct |
852 ms |
19708 KB |
Output is correct |
259 |
Correct |
2270 ms |
22192 KB |
Output is correct |
260 |
Correct |
2209 ms |
22172 KB |
Output is correct |
261 |
Correct |
671 ms |
25256 KB |
Output is correct |
262 |
Correct |
250 ms |
25336 KB |
Output is correct |
263 |
Correct |
799 ms |
32352 KB |
Output is correct |
264 |
Correct |
786 ms |
31388 KB |
Output is correct |
265 |
Correct |
826 ms |
34336 KB |
Output is correct |
266 |
Correct |
1211 ms |
25944 KB |
Output is correct |
267 |
Correct |
1179 ms |
29032 KB |
Output is correct |
268 |
Correct |
1166 ms |
32540 KB |
Output is correct |
269 |
Correct |
1341 ms |
35356 KB |
Output is correct |
270 |
Correct |
2198 ms |
31984 KB |
Output is correct |
271 |
Correct |
2291 ms |
31076 KB |
Output is correct |
272 |
Correct |
2620 ms |
32084 KB |
Output is correct |
273 |
Correct |
2721 ms |
35108 KB |
Output is correct |
274 |
Correct |
4470 ms |
30252 KB |
Output is correct |
275 |
Correct |
2068 ms |
23068 KB |
Output is correct |
276 |
Correct |
4575 ms |
33336 KB |
Output is correct |
277 |
Correct |
4941 ms |
34784 KB |
Output is correct |
278 |
Correct |
24 ms |
19288 KB |
Output is correct |
279 |
Correct |
50 ms |
19032 KB |
Output is correct |
280 |
Correct |
4003 ms |
29120 KB |
Output is correct |
281 |
Execution timed out |
5036 ms |
27216 KB |
Time limit exceeded |
282 |
Halted |
0 ms |
0 KB |
- |