#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=6e5+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+=3;
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 |
26 ms |
12892 KB |
Output is correct |
2 |
Correct |
17 ms |
12892 KB |
Output is correct |
3 |
Correct |
8 ms |
12892 KB |
Output is correct |
4 |
Correct |
53 ms |
12904 KB |
Output is correct |
5 |
Correct |
1 ms |
8792 KB |
Output is correct |
6 |
Correct |
587 ms |
13128 KB |
Output is correct |
7 |
Correct |
254 ms |
12892 KB |
Output is correct |
8 |
Correct |
573 ms |
13108 KB |
Output is correct |
9 |
Correct |
570 ms |
13200 KB |
Output is correct |
10 |
Correct |
14 ms |
12892 KB |
Output is correct |
11 |
Correct |
28 ms |
12912 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
12892 KB |
Output is correct |
2 |
Correct |
17 ms |
12892 KB |
Output is correct |
3 |
Correct |
8 ms |
12892 KB |
Output is correct |
4 |
Correct |
53 ms |
12904 KB |
Output is correct |
5 |
Correct |
1 ms |
8792 KB |
Output is correct |
6 |
Correct |
587 ms |
13128 KB |
Output is correct |
7 |
Correct |
254 ms |
12892 KB |
Output is correct |
8 |
Correct |
573 ms |
13108 KB |
Output is correct |
9 |
Correct |
570 ms |
13200 KB |
Output is correct |
10 |
Correct |
14 ms |
12892 KB |
Output is correct |
11 |
Correct |
28 ms |
12912 KB |
Output is correct |
12 |
Correct |
23 ms |
12892 KB |
Output is correct |
13 |
Correct |
19 ms |
12888 KB |
Output is correct |
14 |
Correct |
8 ms |
12892 KB |
Output is correct |
15 |
Correct |
55 ms |
12904 KB |
Output is correct |
16 |
Correct |
1 ms |
8796 KB |
Output is correct |
17 |
Correct |
564 ms |
13144 KB |
Output is correct |
18 |
Correct |
246 ms |
13144 KB |
Output is correct |
19 |
Correct |
587 ms |
13112 KB |
Output is correct |
20 |
Correct |
580 ms |
13188 KB |
Output is correct |
21 |
Correct |
13 ms |
12888 KB |
Output is correct |
22 |
Correct |
27 ms |
12892 KB |
Output is correct |
23 |
Correct |
1 ms |
8796 KB |
Output is correct |
24 |
Correct |
1213 ms |
14520 KB |
Output is correct |
25 |
Correct |
481 ms |
13312 KB |
Output is correct |
26 |
Correct |
1248 ms |
15832 KB |
Output is correct |
27 |
Correct |
1228 ms |
15792 KB |
Output is correct |
28 |
Correct |
14 ms |
12908 KB |
Output is correct |
29 |
Correct |
29 ms |
12892 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
12888 KB |
Output is correct |
2 |
Correct |
248 ms |
16060 KB |
Output is correct |
3 |
Correct |
71 ms |
16468 KB |
Output is correct |
4 |
Correct |
268 ms |
22152 KB |
Output is correct |
5 |
Correct |
260 ms |
19320 KB |
Output is correct |
6 |
Correct |
292 ms |
21948 KB |
Output is correct |
7 |
Correct |
17 ms |
12888 KB |
Output is correct |
8 |
Correct |
32 ms |
12892 KB |
Output is correct |
9 |
Correct |
166 ms |
22396 KB |
Output is correct |
10 |
Correct |
175 ms |
16536 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
12888 KB |
Output is correct |
2 |
Correct |
248 ms |
16060 KB |
Output is correct |
3 |
Correct |
71 ms |
16468 KB |
Output is correct |
4 |
Correct |
268 ms |
22152 KB |
Output is correct |
5 |
Correct |
260 ms |
19320 KB |
Output is correct |
6 |
Correct |
292 ms |
21948 KB |
Output is correct |
7 |
Correct |
17 ms |
12888 KB |
Output is correct |
8 |
Correct |
32 ms |
12892 KB |
Output is correct |
9 |
Correct |
166 ms |
22396 KB |
Output is correct |
10 |
Correct |
175 ms |
16536 KB |
Output is correct |
11 |
Correct |
23 ms |
12888 KB |
Output is correct |
12 |
Correct |
18 ms |
12904 KB |
Output is correct |
13 |
Correct |
8 ms |
12888 KB |
Output is correct |
14 |
Correct |
57 ms |
12892 KB |
Output is correct |
15 |
Correct |
260 ms |
16036 KB |
Output is correct |
16 |
Correct |
71 ms |
16656 KB |
Output is correct |
17 |
Correct |
280 ms |
22152 KB |
Output is correct |
18 |
Correct |
255 ms |
19384 KB |
Output is correct |
19 |
Correct |
282 ms |
21488 KB |
Output is correct |
20 |
Correct |
14 ms |
12888 KB |
Output is correct |
21 |
Correct |
30 ms |
12888 KB |
Output is correct |
22 |
Correct |
167 ms |
22468 KB |
Output is correct |
23 |
Correct |
174 ms |
16568 KB |
Output is correct |
24 |
Correct |
382 ms |
16100 KB |
Output is correct |
25 |
Correct |
145 ms |
16156 KB |
Output is correct |
26 |
Correct |
444 ms |
20668 KB |
Output is correct |
27 |
Correct |
383 ms |
21312 KB |
Output is correct |
28 |
Correct |
420 ms |
22460 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
12888 KB |
Output is correct |
2 |
Correct |
248 ms |
16060 KB |
Output is correct |
3 |
Correct |
71 ms |
16468 KB |
Output is correct |
4 |
Correct |
268 ms |
22152 KB |
Output is correct |
5 |
Correct |
260 ms |
19320 KB |
Output is correct |
6 |
Correct |
292 ms |
21948 KB |
Output is correct |
7 |
Correct |
17 ms |
12888 KB |
Output is correct |
8 |
Correct |
32 ms |
12892 KB |
Output is correct |
9 |
Correct |
166 ms |
22396 KB |
Output is correct |
10 |
Correct |
175 ms |
16536 KB |
Output is correct |
11 |
Correct |
54 ms |
12892 KB |
Output is correct |
12 |
Correct |
246 ms |
16016 KB |
Output is correct |
13 |
Correct |
74 ms |
16648 KB |
Output is correct |
14 |
Correct |
276 ms |
22152 KB |
Output is correct |
15 |
Correct |
254 ms |
19368 KB |
Output is correct |
16 |
Correct |
284 ms |
21400 KB |
Output is correct |
17 |
Correct |
14 ms |
12892 KB |
Output is correct |
18 |
Correct |
30 ms |
12908 KB |
Output is correct |
19 |
Correct |
162 ms |
22396 KB |
Output is correct |
20 |
Correct |
181 ms |
16560 KB |
Output is correct |
21 |
Correct |
15 ms |
12888 KB |
Output is correct |
22 |
Correct |
28 ms |
12916 KB |
Output is correct |
23 |
Correct |
410 ms |
20752 KB |
Output is correct |
24 |
Correct |
178 ms |
19552 KB |
Output is correct |
25 |
Correct |
419 ms |
22592 KB |
Output is correct |
26 |
Correct |
432 ms |
22152 KB |
Output is correct |
27 |
Correct |
472 ms |
22564 KB |
Output is correct |
28 |
Correct |
310 ms |
16144 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
12892 KB |
Output is correct |
2 |
Correct |
17 ms |
12892 KB |
Output is correct |
3 |
Correct |
8 ms |
12892 KB |
Output is correct |
4 |
Correct |
53 ms |
12904 KB |
Output is correct |
5 |
Correct |
1 ms |
8792 KB |
Output is correct |
6 |
Correct |
587 ms |
13128 KB |
Output is correct |
7 |
Correct |
254 ms |
12892 KB |
Output is correct |
8 |
Correct |
573 ms |
13108 KB |
Output is correct |
9 |
Correct |
570 ms |
13200 KB |
Output is correct |
10 |
Correct |
14 ms |
12892 KB |
Output is correct |
11 |
Correct |
28 ms |
12912 KB |
Output is correct |
12 |
Correct |
56 ms |
12888 KB |
Output is correct |
13 |
Correct |
248 ms |
16060 KB |
Output is correct |
14 |
Correct |
71 ms |
16468 KB |
Output is correct |
15 |
Correct |
268 ms |
22152 KB |
Output is correct |
16 |
Correct |
260 ms |
19320 KB |
Output is correct |
17 |
Correct |
292 ms |
21948 KB |
Output is correct |
18 |
Correct |
17 ms |
12888 KB |
Output is correct |
19 |
Correct |
32 ms |
12892 KB |
Output is correct |
20 |
Correct |
166 ms |
22396 KB |
Output is correct |
21 |
Correct |
175 ms |
16536 KB |
Output is correct |
22 |
Correct |
23 ms |
12888 KB |
Output is correct |
23 |
Correct |
18 ms |
12904 KB |
Output is correct |
24 |
Correct |
8 ms |
12888 KB |
Output is correct |
25 |
Correct |
57 ms |
12892 KB |
Output is correct |
26 |
Correct |
260 ms |
16036 KB |
Output is correct |
27 |
Correct |
71 ms |
16656 KB |
Output is correct |
28 |
Correct |
280 ms |
22152 KB |
Output is correct |
29 |
Correct |
255 ms |
19384 KB |
Output is correct |
30 |
Correct |
282 ms |
21488 KB |
Output is correct |
31 |
Correct |
14 ms |
12888 KB |
Output is correct |
32 |
Correct |
30 ms |
12888 KB |
Output is correct |
33 |
Correct |
167 ms |
22468 KB |
Output is correct |
34 |
Correct |
174 ms |
16568 KB |
Output is correct |
35 |
Correct |
382 ms |
16100 KB |
Output is correct |
36 |
Correct |
145 ms |
16156 KB |
Output is correct |
37 |
Correct |
444 ms |
20668 KB |
Output is correct |
38 |
Correct |
383 ms |
21312 KB |
Output is correct |
39 |
Correct |
420 ms |
22460 KB |
Output is correct |
40 |
Correct |
54 ms |
12892 KB |
Output is correct |
41 |
Correct |
246 ms |
16016 KB |
Output is correct |
42 |
Correct |
74 ms |
16648 KB |
Output is correct |
43 |
Correct |
276 ms |
22152 KB |
Output is correct |
44 |
Correct |
254 ms |
19368 KB |
Output is correct |
45 |
Correct |
284 ms |
21400 KB |
Output is correct |
46 |
Correct |
14 ms |
12892 KB |
Output is correct |
47 |
Correct |
30 ms |
12908 KB |
Output is correct |
48 |
Correct |
162 ms |
22396 KB |
Output is correct |
49 |
Correct |
181 ms |
16560 KB |
Output is correct |
50 |
Correct |
15 ms |
12888 KB |
Output is correct |
51 |
Correct |
28 ms |
12916 KB |
Output is correct |
52 |
Correct |
410 ms |
20752 KB |
Output is correct |
53 |
Correct |
178 ms |
19552 KB |
Output is correct |
54 |
Correct |
419 ms |
22592 KB |
Output is correct |
55 |
Correct |
432 ms |
22152 KB |
Output is correct |
56 |
Correct |
472 ms |
22564 KB |
Output is correct |
57 |
Correct |
310 ms |
16144 KB |
Output is correct |
58 |
Correct |
25 ms |
12892 KB |
Output is correct |
59 |
Correct |
20 ms |
12892 KB |
Output is correct |
60 |
Correct |
8 ms |
12908 KB |
Output is correct |
61 |
Correct |
54 ms |
12892 KB |
Output is correct |
62 |
Correct |
1 ms |
8796 KB |
Output is correct |
63 |
Correct |
549 ms |
13284 KB |
Output is correct |
64 |
Correct |
240 ms |
12936 KB |
Output is correct |
65 |
Correct |
553 ms |
13104 KB |
Output is correct |
66 |
Correct |
574 ms |
13200 KB |
Output is correct |
67 |
Correct |
13 ms |
12888 KB |
Output is correct |
68 |
Correct |
28 ms |
12892 KB |
Output is correct |
69 |
Correct |
241 ms |
16000 KB |
Output is correct |
70 |
Correct |
68 ms |
16636 KB |
Output is correct |
71 |
Correct |
264 ms |
22068 KB |
Output is correct |
72 |
Correct |
246 ms |
19328 KB |
Output is correct |
73 |
Correct |
282 ms |
21592 KB |
Output is correct |
74 |
Correct |
15 ms |
12888 KB |
Output is correct |
75 |
Correct |
29 ms |
12892 KB |
Output is correct |
76 |
Correct |
163 ms |
22560 KB |
Output is correct |
77 |
Correct |
171 ms |
16700 KB |
Output is correct |
78 |
Correct |
375 ms |
16556 KB |
Output is correct |
79 |
Correct |
138 ms |
16148 KB |
Output is correct |
80 |
Correct |
424 ms |
20744 KB |
Output is correct |
81 |
Correct |
393 ms |
21340 KB |
Output is correct |
82 |
Correct |
424 ms |
21356 KB |
Output is correct |
83 |
Correct |
429 ms |
20772 KB |
Output is correct |
84 |
Correct |
181 ms |
19940 KB |
Output is correct |
85 |
Correct |
429 ms |
22600 KB |
Output is correct |
86 |
Correct |
436 ms |
22156 KB |
Output is correct |
87 |
Correct |
477 ms |
22484 KB |
Output is correct |
88 |
Correct |
315 ms |
16216 KB |
Output is correct |
89 |
Correct |
643 ms |
18380 KB |
Output is correct |
90 |
Correct |
656 ms |
18072 KB |
Output is correct |
91 |
Correct |
638 ms |
22400 KB |
Output is correct |
92 |
Correct |
692 ms |
21688 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
12888 KB |
Output is correct |
2 |
Correct |
248 ms |
16060 KB |
Output is correct |
3 |
Correct |
71 ms |
16468 KB |
Output is correct |
4 |
Correct |
268 ms |
22152 KB |
Output is correct |
5 |
Correct |
260 ms |
19320 KB |
Output is correct |
6 |
Correct |
292 ms |
21948 KB |
Output is correct |
7 |
Correct |
17 ms |
12888 KB |
Output is correct |
8 |
Correct |
32 ms |
12892 KB |
Output is correct |
9 |
Correct |
166 ms |
22396 KB |
Output is correct |
10 |
Correct |
175 ms |
16536 KB |
Output is correct |
11 |
Correct |
54 ms |
12892 KB |
Output is correct |
12 |
Correct |
246 ms |
16016 KB |
Output is correct |
13 |
Correct |
74 ms |
16648 KB |
Output is correct |
14 |
Correct |
276 ms |
22152 KB |
Output is correct |
15 |
Correct |
254 ms |
19368 KB |
Output is correct |
16 |
Correct |
284 ms |
21400 KB |
Output is correct |
17 |
Correct |
14 ms |
12892 KB |
Output is correct |
18 |
Correct |
30 ms |
12908 KB |
Output is correct |
19 |
Correct |
162 ms |
22396 KB |
Output is correct |
20 |
Correct |
181 ms |
16560 KB |
Output is correct |
21 |
Correct |
15 ms |
12888 KB |
Output is correct |
22 |
Correct |
28 ms |
12916 KB |
Output is correct |
23 |
Correct |
410 ms |
20752 KB |
Output is correct |
24 |
Correct |
178 ms |
19552 KB |
Output is correct |
25 |
Correct |
419 ms |
22592 KB |
Output is correct |
26 |
Correct |
432 ms |
22152 KB |
Output is correct |
27 |
Correct |
472 ms |
22564 KB |
Output is correct |
28 |
Correct |
310 ms |
16144 KB |
Output is correct |
29 |
Correct |
56 ms |
12888 KB |
Output is correct |
30 |
Correct |
249 ms |
15916 KB |
Output is correct |
31 |
Correct |
76 ms |
16644 KB |
Output is correct |
32 |
Correct |
272 ms |
22152 KB |
Output is correct |
33 |
Correct |
250 ms |
19360 KB |
Output is correct |
34 |
Correct |
278 ms |
21452 KB |
Output is correct |
35 |
Correct |
14 ms |
12892 KB |
Output is correct |
36 |
Correct |
29 ms |
12892 KB |
Output is correct |
37 |
Correct |
172 ms |
22360 KB |
Output is correct |
38 |
Correct |
178 ms |
16552 KB |
Output is correct |
39 |
Correct |
16 ms |
12888 KB |
Output is correct |
40 |
Correct |
29 ms |
12888 KB |
Output is correct |
41 |
Correct |
420 ms |
20788 KB |
Output is correct |
42 |
Correct |
182 ms |
19668 KB |
Output is correct |
43 |
Correct |
434 ms |
22572 KB |
Output is correct |
44 |
Correct |
447 ms |
22164 KB |
Output is correct |
45 |
Correct |
472 ms |
22564 KB |
Output is correct |
46 |
Correct |
337 ms |
16208 KB |
Output is correct |
47 |
Correct |
14 ms |
12892 KB |
Output is correct |
48 |
Correct |
28 ms |
12892 KB |
Output is correct |
49 |
Correct |
831 ms |
22400 KB |
Output is correct |
50 |
Correct |
339 ms |
15248 KB |
Output is correct |
51 |
Correct |
822 ms |
22348 KB |
Output is correct |
52 |
Correct |
860 ms |
22164 KB |
Output is correct |
53 |
Correct |
938 ms |
22492 KB |
Output is correct |
54 |
Correct |
713 ms |
17120 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
12892 KB |
Output is correct |
2 |
Correct |
17 ms |
12892 KB |
Output is correct |
3 |
Correct |
8 ms |
12892 KB |
Output is correct |
4 |
Correct |
53 ms |
12904 KB |
Output is correct |
5 |
Correct |
1 ms |
8792 KB |
Output is correct |
6 |
Correct |
587 ms |
13128 KB |
Output is correct |
7 |
Correct |
254 ms |
12892 KB |
Output is correct |
8 |
Correct |
573 ms |
13108 KB |
Output is correct |
9 |
Correct |
570 ms |
13200 KB |
Output is correct |
10 |
Correct |
14 ms |
12892 KB |
Output is correct |
11 |
Correct |
28 ms |
12912 KB |
Output is correct |
12 |
Correct |
23 ms |
12892 KB |
Output is correct |
13 |
Correct |
19 ms |
12888 KB |
Output is correct |
14 |
Correct |
8 ms |
12892 KB |
Output is correct |
15 |
Correct |
55 ms |
12904 KB |
Output is correct |
16 |
Correct |
1 ms |
8796 KB |
Output is correct |
17 |
Correct |
564 ms |
13144 KB |
Output is correct |
18 |
Correct |
246 ms |
13144 KB |
Output is correct |
19 |
Correct |
587 ms |
13112 KB |
Output is correct |
20 |
Correct |
580 ms |
13188 KB |
Output is correct |
21 |
Correct |
13 ms |
12888 KB |
Output is correct |
22 |
Correct |
27 ms |
12892 KB |
Output is correct |
23 |
Correct |
1 ms |
8796 KB |
Output is correct |
24 |
Correct |
1213 ms |
14520 KB |
Output is correct |
25 |
Correct |
481 ms |
13312 KB |
Output is correct |
26 |
Correct |
1248 ms |
15832 KB |
Output is correct |
27 |
Correct |
1228 ms |
15792 KB |
Output is correct |
28 |
Correct |
14 ms |
12908 KB |
Output is correct |
29 |
Correct |
29 ms |
12892 KB |
Output is correct |
30 |
Correct |
56 ms |
12888 KB |
Output is correct |
31 |
Correct |
248 ms |
16060 KB |
Output is correct |
32 |
Correct |
71 ms |
16468 KB |
Output is correct |
33 |
Correct |
268 ms |
22152 KB |
Output is correct |
34 |
Correct |
260 ms |
19320 KB |
Output is correct |
35 |
Correct |
292 ms |
21948 KB |
Output is correct |
36 |
Correct |
17 ms |
12888 KB |
Output is correct |
37 |
Correct |
32 ms |
12892 KB |
Output is correct |
38 |
Correct |
166 ms |
22396 KB |
Output is correct |
39 |
Correct |
175 ms |
16536 KB |
Output is correct |
40 |
Correct |
23 ms |
12888 KB |
Output is correct |
41 |
Correct |
18 ms |
12904 KB |
Output is correct |
42 |
Correct |
8 ms |
12888 KB |
Output is correct |
43 |
Correct |
57 ms |
12892 KB |
Output is correct |
44 |
Correct |
260 ms |
16036 KB |
Output is correct |
45 |
Correct |
71 ms |
16656 KB |
Output is correct |
46 |
Correct |
280 ms |
22152 KB |
Output is correct |
47 |
Correct |
255 ms |
19384 KB |
Output is correct |
48 |
Correct |
282 ms |
21488 KB |
Output is correct |
49 |
Correct |
14 ms |
12888 KB |
Output is correct |
50 |
Correct |
30 ms |
12888 KB |
Output is correct |
51 |
Correct |
167 ms |
22468 KB |
Output is correct |
52 |
Correct |
174 ms |
16568 KB |
Output is correct |
53 |
Correct |
382 ms |
16100 KB |
Output is correct |
54 |
Correct |
145 ms |
16156 KB |
Output is correct |
55 |
Correct |
444 ms |
20668 KB |
Output is correct |
56 |
Correct |
383 ms |
21312 KB |
Output is correct |
57 |
Correct |
420 ms |
22460 KB |
Output is correct |
58 |
Correct |
54 ms |
12892 KB |
Output is correct |
59 |
Correct |
246 ms |
16016 KB |
Output is correct |
60 |
Correct |
74 ms |
16648 KB |
Output is correct |
61 |
Correct |
276 ms |
22152 KB |
Output is correct |
62 |
Correct |
254 ms |
19368 KB |
Output is correct |
63 |
Correct |
284 ms |
21400 KB |
Output is correct |
64 |
Correct |
14 ms |
12892 KB |
Output is correct |
65 |
Correct |
30 ms |
12908 KB |
Output is correct |
66 |
Correct |
162 ms |
22396 KB |
Output is correct |
67 |
Correct |
181 ms |
16560 KB |
Output is correct |
68 |
Correct |
15 ms |
12888 KB |
Output is correct |
69 |
Correct |
28 ms |
12916 KB |
Output is correct |
70 |
Correct |
410 ms |
20752 KB |
Output is correct |
71 |
Correct |
178 ms |
19552 KB |
Output is correct |
72 |
Correct |
419 ms |
22592 KB |
Output is correct |
73 |
Correct |
432 ms |
22152 KB |
Output is correct |
74 |
Correct |
472 ms |
22564 KB |
Output is correct |
75 |
Correct |
310 ms |
16144 KB |
Output is correct |
76 |
Correct |
25 ms |
12892 KB |
Output is correct |
77 |
Correct |
20 ms |
12892 KB |
Output is correct |
78 |
Correct |
8 ms |
12908 KB |
Output is correct |
79 |
Correct |
54 ms |
12892 KB |
Output is correct |
80 |
Correct |
1 ms |
8796 KB |
Output is correct |
81 |
Correct |
549 ms |
13284 KB |
Output is correct |
82 |
Correct |
240 ms |
12936 KB |
Output is correct |
83 |
Correct |
553 ms |
13104 KB |
Output is correct |
84 |
Correct |
574 ms |
13200 KB |
Output is correct |
85 |
Correct |
13 ms |
12888 KB |
Output is correct |
86 |
Correct |
28 ms |
12892 KB |
Output is correct |
87 |
Correct |
241 ms |
16000 KB |
Output is correct |
88 |
Correct |
68 ms |
16636 KB |
Output is correct |
89 |
Correct |
264 ms |
22068 KB |
Output is correct |
90 |
Correct |
246 ms |
19328 KB |
Output is correct |
91 |
Correct |
282 ms |
21592 KB |
Output is correct |
92 |
Correct |
15 ms |
12888 KB |
Output is correct |
93 |
Correct |
29 ms |
12892 KB |
Output is correct |
94 |
Correct |
163 ms |
22560 KB |
Output is correct |
95 |
Correct |
171 ms |
16700 KB |
Output is correct |
96 |
Correct |
375 ms |
16556 KB |
Output is correct |
97 |
Correct |
138 ms |
16148 KB |
Output is correct |
98 |
Correct |
424 ms |
20744 KB |
Output is correct |
99 |
Correct |
393 ms |
21340 KB |
Output is correct |
100 |
Correct |
424 ms |
21356 KB |
Output is correct |
101 |
Correct |
429 ms |
20772 KB |
Output is correct |
102 |
Correct |
181 ms |
19940 KB |
Output is correct |
103 |
Correct |
429 ms |
22600 KB |
Output is correct |
104 |
Correct |
436 ms |
22156 KB |
Output is correct |
105 |
Correct |
477 ms |
22484 KB |
Output is correct |
106 |
Correct |
315 ms |
16216 KB |
Output is correct |
107 |
Correct |
643 ms |
18380 KB |
Output is correct |
108 |
Correct |
656 ms |
18072 KB |
Output is correct |
109 |
Correct |
638 ms |
22400 KB |
Output is correct |
110 |
Correct |
692 ms |
21688 KB |
Output is correct |
111 |
Correct |
56 ms |
12888 KB |
Output is correct |
112 |
Correct |
249 ms |
15916 KB |
Output is correct |
113 |
Correct |
76 ms |
16644 KB |
Output is correct |
114 |
Correct |
272 ms |
22152 KB |
Output is correct |
115 |
Correct |
250 ms |
19360 KB |
Output is correct |
116 |
Correct |
278 ms |
21452 KB |
Output is correct |
117 |
Correct |
14 ms |
12892 KB |
Output is correct |
118 |
Correct |
29 ms |
12892 KB |
Output is correct |
119 |
Correct |
172 ms |
22360 KB |
Output is correct |
120 |
Correct |
178 ms |
16552 KB |
Output is correct |
121 |
Correct |
16 ms |
12888 KB |
Output is correct |
122 |
Correct |
29 ms |
12888 KB |
Output is correct |
123 |
Correct |
420 ms |
20788 KB |
Output is correct |
124 |
Correct |
182 ms |
19668 KB |
Output is correct |
125 |
Correct |
434 ms |
22572 KB |
Output is correct |
126 |
Correct |
447 ms |
22164 KB |
Output is correct |
127 |
Correct |
472 ms |
22564 KB |
Output is correct |
128 |
Correct |
337 ms |
16208 KB |
Output is correct |
129 |
Correct |
14 ms |
12892 KB |
Output is correct |
130 |
Correct |
28 ms |
12892 KB |
Output is correct |
131 |
Correct |
831 ms |
22400 KB |
Output is correct |
132 |
Correct |
339 ms |
15248 KB |
Output is correct |
133 |
Correct |
822 ms |
22348 KB |
Output is correct |
134 |
Correct |
860 ms |
22164 KB |
Output is correct |
135 |
Correct |
938 ms |
22492 KB |
Output is correct |
136 |
Correct |
713 ms |
17120 KB |
Output is correct |
137 |
Correct |
23 ms |
12888 KB |
Output is correct |
138 |
Correct |
18 ms |
12900 KB |
Output is correct |
139 |
Correct |
8 ms |
12888 KB |
Output is correct |
140 |
Correct |
54 ms |
12892 KB |
Output is correct |
141 |
Correct |
1 ms |
8792 KB |
Output is correct |
142 |
Correct |
558 ms |
13140 KB |
Output is correct |
143 |
Correct |
256 ms |
13148 KB |
Output is correct |
144 |
Correct |
559 ms |
13108 KB |
Output is correct |
145 |
Correct |
565 ms |
13188 KB |
Output is correct |
146 |
Correct |
13 ms |
12888 KB |
Output is correct |
147 |
Correct |
28 ms |
12892 KB |
Output is correct |
148 |
Correct |
1 ms |
8796 KB |
Output is correct |
149 |
Correct |
1173 ms |
14524 KB |
Output is correct |
150 |
Correct |
464 ms |
13304 KB |
Output is correct |
151 |
Correct |
1238 ms |
15776 KB |
Output is correct |
152 |
Correct |
1209 ms |
15856 KB |
Output is correct |
153 |
Correct |
13 ms |
12892 KB |
Output is correct |
154 |
Correct |
28 ms |
12892 KB |
Output is correct |
155 |
Correct |
251 ms |
16036 KB |
Output is correct |
156 |
Correct |
68 ms |
16648 KB |
Output is correct |
157 |
Correct |
283 ms |
22152 KB |
Output is correct |
158 |
Correct |
257 ms |
19264 KB |
Output is correct |
159 |
Correct |
296 ms |
21404 KB |
Output is correct |
160 |
Correct |
14 ms |
12888 KB |
Output is correct |
161 |
Correct |
30 ms |
12892 KB |
Output is correct |
162 |
Correct |
165 ms |
22596 KB |
Output is correct |
163 |
Correct |
173 ms |
16532 KB |
Output is correct |
164 |
Correct |
417 ms |
20792 KB |
Output is correct |
165 |
Correct |
178 ms |
19696 KB |
Output is correct |
166 |
Correct |
428 ms |
25140 KB |
Output is correct |
167 |
Correct |
431 ms |
22408 KB |
Output is correct |
168 |
Correct |
466 ms |
22488 KB |
Output is correct |
169 |
Correct |
321 ms |
16216 KB |
Output is correct |
170 |
Correct |
380 ms |
16240 KB |
Output is correct |
171 |
Correct |
143 ms |
16160 KB |
Output is correct |
172 |
Correct |
417 ms |
20712 KB |
Output is correct |
173 |
Correct |
383 ms |
21344 KB |
Output is correct |
174 |
Correct |
409 ms |
22204 KB |
Output is correct |
175 |
Correct |
639 ms |
18396 KB |
Output is correct |
176 |
Correct |
644 ms |
18076 KB |
Output is correct |
177 |
Correct |
617 ms |
22592 KB |
Output is correct |
178 |
Correct |
691 ms |
21532 KB |
Output is correct |
179 |
Correct |
799 ms |
22456 KB |
Output is correct |
180 |
Correct |
343 ms |
15260 KB |
Output is correct |
181 |
Correct |
829 ms |
20152 KB |
Output is correct |
182 |
Correct |
872 ms |
22156 KB |
Output is correct |
183 |
Correct |
924 ms |
22440 KB |
Output is correct |
184 |
Correct |
720 ms |
17124 KB |
Output is correct |
185 |
Correct |
1276 ms |
21264 KB |
Output is correct |
186 |
Correct |
1351 ms |
22152 KB |
Output is correct |
187 |
Correct |
1451 ms |
22136 KB |
Output is correct |
188 |
Correct |
1393 ms |
22416 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
56 ms |
12888 KB |
Output is correct |
2 |
Correct |
248 ms |
16060 KB |
Output is correct |
3 |
Correct |
71 ms |
16468 KB |
Output is correct |
4 |
Correct |
268 ms |
22152 KB |
Output is correct |
5 |
Correct |
260 ms |
19320 KB |
Output is correct |
6 |
Correct |
292 ms |
21948 KB |
Output is correct |
7 |
Correct |
17 ms |
12888 KB |
Output is correct |
8 |
Correct |
32 ms |
12892 KB |
Output is correct |
9 |
Correct |
166 ms |
22396 KB |
Output is correct |
10 |
Correct |
175 ms |
16536 KB |
Output is correct |
11 |
Correct |
54 ms |
12892 KB |
Output is correct |
12 |
Correct |
246 ms |
16016 KB |
Output is correct |
13 |
Correct |
74 ms |
16648 KB |
Output is correct |
14 |
Correct |
276 ms |
22152 KB |
Output is correct |
15 |
Correct |
254 ms |
19368 KB |
Output is correct |
16 |
Correct |
284 ms |
21400 KB |
Output is correct |
17 |
Correct |
14 ms |
12892 KB |
Output is correct |
18 |
Correct |
30 ms |
12908 KB |
Output is correct |
19 |
Correct |
162 ms |
22396 KB |
Output is correct |
20 |
Correct |
181 ms |
16560 KB |
Output is correct |
21 |
Correct |
15 ms |
12888 KB |
Output is correct |
22 |
Correct |
28 ms |
12916 KB |
Output is correct |
23 |
Correct |
410 ms |
20752 KB |
Output is correct |
24 |
Correct |
178 ms |
19552 KB |
Output is correct |
25 |
Correct |
419 ms |
22592 KB |
Output is correct |
26 |
Correct |
432 ms |
22152 KB |
Output is correct |
27 |
Correct |
472 ms |
22564 KB |
Output is correct |
28 |
Correct |
310 ms |
16144 KB |
Output is correct |
29 |
Correct |
56 ms |
12888 KB |
Output is correct |
30 |
Correct |
249 ms |
15916 KB |
Output is correct |
31 |
Correct |
76 ms |
16644 KB |
Output is correct |
32 |
Correct |
272 ms |
22152 KB |
Output is correct |
33 |
Correct |
250 ms |
19360 KB |
Output is correct |
34 |
Correct |
278 ms |
21452 KB |
Output is correct |
35 |
Correct |
14 ms |
12892 KB |
Output is correct |
36 |
Correct |
29 ms |
12892 KB |
Output is correct |
37 |
Correct |
172 ms |
22360 KB |
Output is correct |
38 |
Correct |
178 ms |
16552 KB |
Output is correct |
39 |
Correct |
16 ms |
12888 KB |
Output is correct |
40 |
Correct |
29 ms |
12888 KB |
Output is correct |
41 |
Correct |
420 ms |
20788 KB |
Output is correct |
42 |
Correct |
182 ms |
19668 KB |
Output is correct |
43 |
Correct |
434 ms |
22572 KB |
Output is correct |
44 |
Correct |
447 ms |
22164 KB |
Output is correct |
45 |
Correct |
472 ms |
22564 KB |
Output is correct |
46 |
Correct |
337 ms |
16208 KB |
Output is correct |
47 |
Correct |
14 ms |
12892 KB |
Output is correct |
48 |
Correct |
28 ms |
12892 KB |
Output is correct |
49 |
Correct |
831 ms |
22400 KB |
Output is correct |
50 |
Correct |
339 ms |
15248 KB |
Output is correct |
51 |
Correct |
822 ms |
22348 KB |
Output is correct |
52 |
Correct |
860 ms |
22164 KB |
Output is correct |
53 |
Correct |
938 ms |
22492 KB |
Output is correct |
54 |
Correct |
713 ms |
17120 KB |
Output is correct |
55 |
Correct |
58 ms |
12888 KB |
Output is correct |
56 |
Correct |
248 ms |
16016 KB |
Output is correct |
57 |
Correct |
77 ms |
16696 KB |
Output is correct |
58 |
Correct |
267 ms |
22160 KB |
Output is correct |
59 |
Correct |
247 ms |
19388 KB |
Output is correct |
60 |
Correct |
288 ms |
21524 KB |
Output is correct |
61 |
Correct |
14 ms |
12888 KB |
Output is correct |
62 |
Correct |
30 ms |
12892 KB |
Output is correct |
63 |
Correct |
166 ms |
22432 KB |
Output is correct |
64 |
Correct |
174 ms |
16540 KB |
Output is correct |
65 |
Correct |
13 ms |
12892 KB |
Output is correct |
66 |
Correct |
28 ms |
12892 KB |
Output is correct |
67 |
Correct |
411 ms |
20784 KB |
Output is correct |
68 |
Correct |
178 ms |
19684 KB |
Output is correct |
69 |
Correct |
420 ms |
22464 KB |
Output is correct |
70 |
Correct |
429 ms |
22152 KB |
Output is correct |
71 |
Correct |
463 ms |
22624 KB |
Output is correct |
72 |
Correct |
313 ms |
16276 KB |
Output is correct |
73 |
Correct |
16 ms |
12892 KB |
Output is correct |
74 |
Correct |
28 ms |
12892 KB |
Output is correct |
75 |
Correct |
824 ms |
22460 KB |
Output is correct |
76 |
Correct |
370 ms |
15184 KB |
Output is correct |
77 |
Correct |
838 ms |
22204 KB |
Output is correct |
78 |
Correct |
898 ms |
22156 KB |
Output is correct |
79 |
Correct |
944 ms |
22432 KB |
Output is correct |
80 |
Correct |
712 ms |
17024 KB |
Output is correct |
81 |
Correct |
2494 ms |
18444 KB |
Output is correct |
82 |
Correct |
1135 ms |
15284 KB |
Output is correct |
83 |
Correct |
2558 ms |
22156 KB |
Output is correct |
84 |
Correct |
2344 ms |
22464 KB |
Output is correct |
85 |
Correct |
17 ms |
12892 KB |
Output is correct |
86 |
Correct |
28 ms |
12892 KB |
Output is correct |
87 |
Correct |
2172 ms |
18304 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
26 ms |
12892 KB |
Output is correct |
2 |
Correct |
17 ms |
12892 KB |
Output is correct |
3 |
Correct |
8 ms |
12892 KB |
Output is correct |
4 |
Correct |
53 ms |
12904 KB |
Output is correct |
5 |
Correct |
1 ms |
8792 KB |
Output is correct |
6 |
Correct |
587 ms |
13128 KB |
Output is correct |
7 |
Correct |
254 ms |
12892 KB |
Output is correct |
8 |
Correct |
573 ms |
13108 KB |
Output is correct |
9 |
Correct |
570 ms |
13200 KB |
Output is correct |
10 |
Correct |
14 ms |
12892 KB |
Output is correct |
11 |
Correct |
28 ms |
12912 KB |
Output is correct |
12 |
Correct |
23 ms |
12892 KB |
Output is correct |
13 |
Correct |
19 ms |
12888 KB |
Output is correct |
14 |
Correct |
8 ms |
12892 KB |
Output is correct |
15 |
Correct |
55 ms |
12904 KB |
Output is correct |
16 |
Correct |
1 ms |
8796 KB |
Output is correct |
17 |
Correct |
564 ms |
13144 KB |
Output is correct |
18 |
Correct |
246 ms |
13144 KB |
Output is correct |
19 |
Correct |
587 ms |
13112 KB |
Output is correct |
20 |
Correct |
580 ms |
13188 KB |
Output is correct |
21 |
Correct |
13 ms |
12888 KB |
Output is correct |
22 |
Correct |
27 ms |
12892 KB |
Output is correct |
23 |
Correct |
1 ms |
8796 KB |
Output is correct |
24 |
Correct |
1213 ms |
14520 KB |
Output is correct |
25 |
Correct |
481 ms |
13312 KB |
Output is correct |
26 |
Correct |
1248 ms |
15832 KB |
Output is correct |
27 |
Correct |
1228 ms |
15792 KB |
Output is correct |
28 |
Correct |
14 ms |
12908 KB |
Output is correct |
29 |
Correct |
29 ms |
12892 KB |
Output is correct |
30 |
Correct |
56 ms |
12888 KB |
Output is correct |
31 |
Correct |
248 ms |
16060 KB |
Output is correct |
32 |
Correct |
71 ms |
16468 KB |
Output is correct |
33 |
Correct |
268 ms |
22152 KB |
Output is correct |
34 |
Correct |
260 ms |
19320 KB |
Output is correct |
35 |
Correct |
292 ms |
21948 KB |
Output is correct |
36 |
Correct |
17 ms |
12888 KB |
Output is correct |
37 |
Correct |
32 ms |
12892 KB |
Output is correct |
38 |
Correct |
166 ms |
22396 KB |
Output is correct |
39 |
Correct |
175 ms |
16536 KB |
Output is correct |
40 |
Correct |
23 ms |
12888 KB |
Output is correct |
41 |
Correct |
18 ms |
12904 KB |
Output is correct |
42 |
Correct |
8 ms |
12888 KB |
Output is correct |
43 |
Correct |
57 ms |
12892 KB |
Output is correct |
44 |
Correct |
260 ms |
16036 KB |
Output is correct |
45 |
Correct |
71 ms |
16656 KB |
Output is correct |
46 |
Correct |
280 ms |
22152 KB |
Output is correct |
47 |
Correct |
255 ms |
19384 KB |
Output is correct |
48 |
Correct |
282 ms |
21488 KB |
Output is correct |
49 |
Correct |
14 ms |
12888 KB |
Output is correct |
50 |
Correct |
30 ms |
12888 KB |
Output is correct |
51 |
Correct |
167 ms |
22468 KB |
Output is correct |
52 |
Correct |
174 ms |
16568 KB |
Output is correct |
53 |
Correct |
382 ms |
16100 KB |
Output is correct |
54 |
Correct |
145 ms |
16156 KB |
Output is correct |
55 |
Correct |
444 ms |
20668 KB |
Output is correct |
56 |
Correct |
383 ms |
21312 KB |
Output is correct |
57 |
Correct |
420 ms |
22460 KB |
Output is correct |
58 |
Correct |
54 ms |
12892 KB |
Output is correct |
59 |
Correct |
246 ms |
16016 KB |
Output is correct |
60 |
Correct |
74 ms |
16648 KB |
Output is correct |
61 |
Correct |
276 ms |
22152 KB |
Output is correct |
62 |
Correct |
254 ms |
19368 KB |
Output is correct |
63 |
Correct |
284 ms |
21400 KB |
Output is correct |
64 |
Correct |
14 ms |
12892 KB |
Output is correct |
65 |
Correct |
30 ms |
12908 KB |
Output is correct |
66 |
Correct |
162 ms |
22396 KB |
Output is correct |
67 |
Correct |
181 ms |
16560 KB |
Output is correct |
68 |
Correct |
15 ms |
12888 KB |
Output is correct |
69 |
Correct |
28 ms |
12916 KB |
Output is correct |
70 |
Correct |
410 ms |
20752 KB |
Output is correct |
71 |
Correct |
178 ms |
19552 KB |
Output is correct |
72 |
Correct |
419 ms |
22592 KB |
Output is correct |
73 |
Correct |
432 ms |
22152 KB |
Output is correct |
74 |
Correct |
472 ms |
22564 KB |
Output is correct |
75 |
Correct |
310 ms |
16144 KB |
Output is correct |
76 |
Correct |
25 ms |
12892 KB |
Output is correct |
77 |
Correct |
20 ms |
12892 KB |
Output is correct |
78 |
Correct |
8 ms |
12908 KB |
Output is correct |
79 |
Correct |
54 ms |
12892 KB |
Output is correct |
80 |
Correct |
1 ms |
8796 KB |
Output is correct |
81 |
Correct |
549 ms |
13284 KB |
Output is correct |
82 |
Correct |
240 ms |
12936 KB |
Output is correct |
83 |
Correct |
553 ms |
13104 KB |
Output is correct |
84 |
Correct |
574 ms |
13200 KB |
Output is correct |
85 |
Correct |
13 ms |
12888 KB |
Output is correct |
86 |
Correct |
28 ms |
12892 KB |
Output is correct |
87 |
Correct |
241 ms |
16000 KB |
Output is correct |
88 |
Correct |
68 ms |
16636 KB |
Output is correct |
89 |
Correct |
264 ms |
22068 KB |
Output is correct |
90 |
Correct |
246 ms |
19328 KB |
Output is correct |
91 |
Correct |
282 ms |
21592 KB |
Output is correct |
92 |
Correct |
15 ms |
12888 KB |
Output is correct |
93 |
Correct |
29 ms |
12892 KB |
Output is correct |
94 |
Correct |
163 ms |
22560 KB |
Output is correct |
95 |
Correct |
171 ms |
16700 KB |
Output is correct |
96 |
Correct |
375 ms |
16556 KB |
Output is correct |
97 |
Correct |
138 ms |
16148 KB |
Output is correct |
98 |
Correct |
424 ms |
20744 KB |
Output is correct |
99 |
Correct |
393 ms |
21340 KB |
Output is correct |
100 |
Correct |
424 ms |
21356 KB |
Output is correct |
101 |
Correct |
429 ms |
20772 KB |
Output is correct |
102 |
Correct |
181 ms |
19940 KB |
Output is correct |
103 |
Correct |
429 ms |
22600 KB |
Output is correct |
104 |
Correct |
436 ms |
22156 KB |
Output is correct |
105 |
Correct |
477 ms |
22484 KB |
Output is correct |
106 |
Correct |
315 ms |
16216 KB |
Output is correct |
107 |
Correct |
643 ms |
18380 KB |
Output is correct |
108 |
Correct |
656 ms |
18072 KB |
Output is correct |
109 |
Correct |
638 ms |
22400 KB |
Output is correct |
110 |
Correct |
692 ms |
21688 KB |
Output is correct |
111 |
Correct |
56 ms |
12888 KB |
Output is correct |
112 |
Correct |
249 ms |
15916 KB |
Output is correct |
113 |
Correct |
76 ms |
16644 KB |
Output is correct |
114 |
Correct |
272 ms |
22152 KB |
Output is correct |
115 |
Correct |
250 ms |
19360 KB |
Output is correct |
116 |
Correct |
278 ms |
21452 KB |
Output is correct |
117 |
Correct |
14 ms |
12892 KB |
Output is correct |
118 |
Correct |
29 ms |
12892 KB |
Output is correct |
119 |
Correct |
172 ms |
22360 KB |
Output is correct |
120 |
Correct |
178 ms |
16552 KB |
Output is correct |
121 |
Correct |
16 ms |
12888 KB |
Output is correct |
122 |
Correct |
29 ms |
12888 KB |
Output is correct |
123 |
Correct |
420 ms |
20788 KB |
Output is correct |
124 |
Correct |
182 ms |
19668 KB |
Output is correct |
125 |
Correct |
434 ms |
22572 KB |
Output is correct |
126 |
Correct |
447 ms |
22164 KB |
Output is correct |
127 |
Correct |
472 ms |
22564 KB |
Output is correct |
128 |
Correct |
337 ms |
16208 KB |
Output is correct |
129 |
Correct |
14 ms |
12892 KB |
Output is correct |
130 |
Correct |
28 ms |
12892 KB |
Output is correct |
131 |
Correct |
831 ms |
22400 KB |
Output is correct |
132 |
Correct |
339 ms |
15248 KB |
Output is correct |
133 |
Correct |
822 ms |
22348 KB |
Output is correct |
134 |
Correct |
860 ms |
22164 KB |
Output is correct |
135 |
Correct |
938 ms |
22492 KB |
Output is correct |
136 |
Correct |
713 ms |
17120 KB |
Output is correct |
137 |
Correct |
23 ms |
12888 KB |
Output is correct |
138 |
Correct |
18 ms |
12900 KB |
Output is correct |
139 |
Correct |
8 ms |
12888 KB |
Output is correct |
140 |
Correct |
54 ms |
12892 KB |
Output is correct |
141 |
Correct |
1 ms |
8792 KB |
Output is correct |
142 |
Correct |
558 ms |
13140 KB |
Output is correct |
143 |
Correct |
256 ms |
13148 KB |
Output is correct |
144 |
Correct |
559 ms |
13108 KB |
Output is correct |
145 |
Correct |
565 ms |
13188 KB |
Output is correct |
146 |
Correct |
13 ms |
12888 KB |
Output is correct |
147 |
Correct |
28 ms |
12892 KB |
Output is correct |
148 |
Correct |
1 ms |
8796 KB |
Output is correct |
149 |
Correct |
1173 ms |
14524 KB |
Output is correct |
150 |
Correct |
464 ms |
13304 KB |
Output is correct |
151 |
Correct |
1238 ms |
15776 KB |
Output is correct |
152 |
Correct |
1209 ms |
15856 KB |
Output is correct |
153 |
Correct |
13 ms |
12892 KB |
Output is correct |
154 |
Correct |
28 ms |
12892 KB |
Output is correct |
155 |
Correct |
251 ms |
16036 KB |
Output is correct |
156 |
Correct |
68 ms |
16648 KB |
Output is correct |
157 |
Correct |
283 ms |
22152 KB |
Output is correct |
158 |
Correct |
257 ms |
19264 KB |
Output is correct |
159 |
Correct |
296 ms |
21404 KB |
Output is correct |
160 |
Correct |
14 ms |
12888 KB |
Output is correct |
161 |
Correct |
30 ms |
12892 KB |
Output is correct |
162 |
Correct |
165 ms |
22596 KB |
Output is correct |
163 |
Correct |
173 ms |
16532 KB |
Output is correct |
164 |
Correct |
417 ms |
20792 KB |
Output is correct |
165 |
Correct |
178 ms |
19696 KB |
Output is correct |
166 |
Correct |
428 ms |
25140 KB |
Output is correct |
167 |
Correct |
431 ms |
22408 KB |
Output is correct |
168 |
Correct |
466 ms |
22488 KB |
Output is correct |
169 |
Correct |
321 ms |
16216 KB |
Output is correct |
170 |
Correct |
380 ms |
16240 KB |
Output is correct |
171 |
Correct |
143 ms |
16160 KB |
Output is correct |
172 |
Correct |
417 ms |
20712 KB |
Output is correct |
173 |
Correct |
383 ms |
21344 KB |
Output is correct |
174 |
Correct |
409 ms |
22204 KB |
Output is correct |
175 |
Correct |
639 ms |
18396 KB |
Output is correct |
176 |
Correct |
644 ms |
18076 KB |
Output is correct |
177 |
Correct |
617 ms |
22592 KB |
Output is correct |
178 |
Correct |
691 ms |
21532 KB |
Output is correct |
179 |
Correct |
799 ms |
22456 KB |
Output is correct |
180 |
Correct |
343 ms |
15260 KB |
Output is correct |
181 |
Correct |
829 ms |
20152 KB |
Output is correct |
182 |
Correct |
872 ms |
22156 KB |
Output is correct |
183 |
Correct |
924 ms |
22440 KB |
Output is correct |
184 |
Correct |
720 ms |
17124 KB |
Output is correct |
185 |
Correct |
1276 ms |
21264 KB |
Output is correct |
186 |
Correct |
1351 ms |
22152 KB |
Output is correct |
187 |
Correct |
1451 ms |
22136 KB |
Output is correct |
188 |
Correct |
1393 ms |
22416 KB |
Output is correct |
189 |
Correct |
58 ms |
12888 KB |
Output is correct |
190 |
Correct |
248 ms |
16016 KB |
Output is correct |
191 |
Correct |
77 ms |
16696 KB |
Output is correct |
192 |
Correct |
267 ms |
22160 KB |
Output is correct |
193 |
Correct |
247 ms |
19388 KB |
Output is correct |
194 |
Correct |
288 ms |
21524 KB |
Output is correct |
195 |
Correct |
14 ms |
12888 KB |
Output is correct |
196 |
Correct |
30 ms |
12892 KB |
Output is correct |
197 |
Correct |
166 ms |
22432 KB |
Output is correct |
198 |
Correct |
174 ms |
16540 KB |
Output is correct |
199 |
Correct |
13 ms |
12892 KB |
Output is correct |
200 |
Correct |
28 ms |
12892 KB |
Output is correct |
201 |
Correct |
411 ms |
20784 KB |
Output is correct |
202 |
Correct |
178 ms |
19684 KB |
Output is correct |
203 |
Correct |
420 ms |
22464 KB |
Output is correct |
204 |
Correct |
429 ms |
22152 KB |
Output is correct |
205 |
Correct |
463 ms |
22624 KB |
Output is correct |
206 |
Correct |
313 ms |
16276 KB |
Output is correct |
207 |
Correct |
16 ms |
12892 KB |
Output is correct |
208 |
Correct |
28 ms |
12892 KB |
Output is correct |
209 |
Correct |
824 ms |
22460 KB |
Output is correct |
210 |
Correct |
370 ms |
15184 KB |
Output is correct |
211 |
Correct |
838 ms |
22204 KB |
Output is correct |
212 |
Correct |
898 ms |
22156 KB |
Output is correct |
213 |
Correct |
944 ms |
22432 KB |
Output is correct |
214 |
Correct |
712 ms |
17024 KB |
Output is correct |
215 |
Correct |
2494 ms |
18444 KB |
Output is correct |
216 |
Correct |
1135 ms |
15284 KB |
Output is correct |
217 |
Correct |
2558 ms |
22156 KB |
Output is correct |
218 |
Correct |
2344 ms |
22464 KB |
Output is correct |
219 |
Correct |
17 ms |
12892 KB |
Output is correct |
220 |
Correct |
28 ms |
12892 KB |
Output is correct |
221 |
Correct |
2172 ms |
18304 KB |
Output is correct |
222 |
Correct |
56 ms |
12888 KB |
Output is correct |
223 |
Correct |
240 ms |
15996 KB |
Output is correct |
224 |
Correct |
68 ms |
16648 KB |
Output is correct |
225 |
Correct |
270 ms |
22152 KB |
Output is correct |
226 |
Correct |
280 ms |
19380 KB |
Output is correct |
227 |
Correct |
286 ms |
21580 KB |
Output is correct |
228 |
Correct |
15 ms |
12892 KB |
Output is correct |
229 |
Correct |
31 ms |
12892 KB |
Output is correct |
230 |
Correct |
167 ms |
22488 KB |
Output is correct |
231 |
Correct |
184 ms |
16688 KB |
Output is correct |
232 |
Correct |
13 ms |
12892 KB |
Output is correct |
233 |
Correct |
30 ms |
12908 KB |
Output is correct |
234 |
Correct |
422 ms |
20768 KB |
Output is correct |
235 |
Correct |
197 ms |
19656 KB |
Output is correct |
236 |
Correct |
427 ms |
22436 KB |
Output is correct |
237 |
Correct |
446 ms |
22156 KB |
Output is correct |
238 |
Correct |
485 ms |
22596 KB |
Output is correct |
239 |
Correct |
325 ms |
16184 KB |
Output is correct |
240 |
Correct |
14 ms |
12892 KB |
Output is correct |
241 |
Correct |
27 ms |
12892 KB |
Output is correct |
242 |
Correct |
819 ms |
22444 KB |
Output is correct |
243 |
Correct |
347 ms |
15256 KB |
Output is correct |
244 |
Correct |
829 ms |
20648 KB |
Output is correct |
245 |
Correct |
855 ms |
22152 KB |
Output is correct |
246 |
Correct |
947 ms |
25204 KB |
Output is correct |
247 |
Correct |
707 ms |
17132 KB |
Output is correct |
248 |
Correct |
25 ms |
12892 KB |
Output is correct |
249 |
Correct |
18 ms |
12888 KB |
Output is correct |
250 |
Correct |
8 ms |
12888 KB |
Output is correct |
251 |
Correct |
1 ms |
8792 KB |
Output is correct |
252 |
Correct |
570 ms |
13136 KB |
Output is correct |
253 |
Correct |
248 ms |
12936 KB |
Output is correct |
254 |
Correct |
565 ms |
13116 KB |
Output is correct |
255 |
Correct |
571 ms |
13188 KB |
Output is correct |
256 |
Correct |
1 ms |
8796 KB |
Output is correct |
257 |
Correct |
1183 ms |
14524 KB |
Output is correct |
258 |
Correct |
465 ms |
13296 KB |
Output is correct |
259 |
Correct |
1220 ms |
15852 KB |
Output is correct |
260 |
Correct |
1225 ms |
16084 KB |
Output is correct |
261 |
Correct |
393 ms |
16268 KB |
Output is correct |
262 |
Correct |
141 ms |
16244 KB |
Output is correct |
263 |
Correct |
426 ms |
20748 KB |
Output is correct |
264 |
Correct |
386 ms |
21296 KB |
Output is correct |
265 |
Correct |
419 ms |
21532 KB |
Output is correct |
266 |
Correct |
659 ms |
18372 KB |
Output is correct |
267 |
Correct |
638 ms |
17884 KB |
Output is correct |
268 |
Correct |
655 ms |
22568 KB |
Output is correct |
269 |
Correct |
691 ms |
21688 KB |
Output is correct |
270 |
Correct |
1296 ms |
21240 KB |
Output is correct |
271 |
Correct |
1306 ms |
22164 KB |
Output is correct |
272 |
Correct |
1423 ms |
22164 KB |
Output is correct |
273 |
Correct |
1357 ms |
22576 KB |
Output is correct |
274 |
Correct |
2442 ms |
18420 KB |
Output is correct |
275 |
Correct |
1123 ms |
15160 KB |
Output is correct |
276 |
Correct |
2449 ms |
22156 KB |
Output is correct |
277 |
Correct |
2261 ms |
22524 KB |
Output is correct |
278 |
Correct |
14 ms |
12892 KB |
Output is correct |
279 |
Correct |
28 ms |
12892 KB |
Output is correct |
280 |
Correct |
2111 ms |
18280 KB |
Output is correct |
281 |
Correct |
3756 ms |
17168 KB |
Output is correct |
282 |
Correct |
2453 ms |
20288 KB |
Output is correct |
283 |
Correct |
3845 ms |
17388 KB |
Output is correct |