#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;
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]-70, 0ll));
A[i]-=p;
dp[0]+=p;
m-=p*i;
}
}
if(m>=LIM) {
cout << "impossible\n";
return 0;
}
rep(xd, 2) {
for(ll i=1; i<=n; ++i) 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:48:15: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(l[p]<V[p].size() && (j-V[p][l[p]])/i>A[i]) ++l[p];
vault.cpp:54:12: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | if(l[p]<V[p].size()) {
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
41 ms |
19032 KB |
Output is correct |
2 |
Correct |
58 ms |
19032 KB |
Output is correct |
3 |
Correct |
14 ms |
19272 KB |
Output is correct |
4 |
Correct |
98 ms |
19036 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
1033 ms |
19508 KB |
Output is correct |
7 |
Correct |
450 ms |
19412 KB |
Output is correct |
8 |
Correct |
1072 ms |
19508 KB |
Output is correct |
9 |
Correct |
1085 ms |
19956 KB |
Output is correct |
10 |
Correct |
24 ms |
19036 KB |
Output is correct |
11 |
Correct |
75 ms |
19272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
41 ms |
19032 KB |
Output is correct |
2 |
Correct |
58 ms |
19032 KB |
Output is correct |
3 |
Correct |
14 ms |
19272 KB |
Output is correct |
4 |
Correct |
98 ms |
19036 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
1033 ms |
19508 KB |
Output is correct |
7 |
Correct |
450 ms |
19412 KB |
Output is correct |
8 |
Correct |
1072 ms |
19508 KB |
Output is correct |
9 |
Correct |
1085 ms |
19956 KB |
Output is correct |
10 |
Correct |
24 ms |
19036 KB |
Output is correct |
11 |
Correct |
75 ms |
19272 KB |
Output is correct |
12 |
Correct |
44 ms |
19032 KB |
Output is correct |
13 |
Correct |
31 ms |
19036 KB |
Output is correct |
14 |
Correct |
25 ms |
19036 KB |
Output is correct |
15 |
Correct |
102 ms |
19036 KB |
Output is correct |
16 |
Correct |
3 ms |
10844 KB |
Output is correct |
17 |
Correct |
1059 ms |
19504 KB |
Output is correct |
18 |
Correct |
468 ms |
19284 KB |
Output is correct |
19 |
Correct |
1106 ms |
19492 KB |
Output is correct |
20 |
Correct |
1114 ms |
19592 KB |
Output is correct |
21 |
Correct |
23 ms |
19036 KB |
Output is correct |
22 |
Correct |
51 ms |
19256 KB |
Output is correct |
23 |
Correct |
2 ms |
10840 KB |
Output is correct |
24 |
Correct |
2184 ms |
20940 KB |
Output is correct |
25 |
Correct |
875 ms |
19688 KB |
Output is correct |
26 |
Correct |
2317 ms |
22268 KB |
Output is correct |
27 |
Correct |
2226 ms |
22096 KB |
Output is correct |
28 |
Correct |
40 ms |
19032 KB |
Output is correct |
29 |
Correct |
52 ms |
19032 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19036 KB |
Output is correct |
2 |
Correct |
434 ms |
23124 KB |
Output is correct |
3 |
Correct |
128 ms |
26240 KB |
Output is correct |
4 |
Correct |
509 ms |
31916 KB |
Output is correct |
5 |
Correct |
437 ms |
31496 KB |
Output is correct |
6 |
Correct |
606 ms |
35612 KB |
Output is correct |
7 |
Correct |
28 ms |
19536 KB |
Output is correct |
8 |
Correct |
96 ms |
19268 KB |
Output is correct |
9 |
Correct |
336 ms |
32552 KB |
Output is correct |
10 |
Correct |
303 ms |
26208 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19036 KB |
Output is correct |
2 |
Correct |
434 ms |
23124 KB |
Output is correct |
3 |
Correct |
128 ms |
26240 KB |
Output is correct |
4 |
Correct |
509 ms |
31916 KB |
Output is correct |
5 |
Correct |
437 ms |
31496 KB |
Output is correct |
6 |
Correct |
606 ms |
35612 KB |
Output is correct |
7 |
Correct |
28 ms |
19536 KB |
Output is correct |
8 |
Correct |
96 ms |
19268 KB |
Output is correct |
9 |
Correct |
336 ms |
32552 KB |
Output is correct |
10 |
Correct |
303 ms |
26208 KB |
Output is correct |
11 |
Correct |
45 ms |
19268 KB |
Output is correct |
12 |
Correct |
56 ms |
19036 KB |
Output is correct |
13 |
Correct |
23 ms |
19032 KB |
Output is correct |
14 |
Correct |
97 ms |
19260 KB |
Output is correct |
15 |
Correct |
425 ms |
23136 KB |
Output is correct |
16 |
Correct |
123 ms |
26224 KB |
Output is correct |
17 |
Correct |
476 ms |
31732 KB |
Output is correct |
18 |
Correct |
480 ms |
31516 KB |
Output is correct |
19 |
Correct |
600 ms |
35088 KB |
Output is correct |
20 |
Correct |
26 ms |
19548 KB |
Output is correct |
21 |
Correct |
100 ms |
19252 KB |
Output is correct |
22 |
Correct |
337 ms |
34056 KB |
Output is correct |
23 |
Correct |
322 ms |
26112 KB |
Output is correct |
24 |
Correct |
705 ms |
25272 KB |
Output is correct |
25 |
Correct |
304 ms |
25248 KB |
Output is correct |
26 |
Correct |
821 ms |
31920 KB |
Output is correct |
27 |
Correct |
713 ms |
31436 KB |
Output is correct |
28 |
Correct |
787 ms |
35388 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19036 KB |
Output is correct |
2 |
Correct |
434 ms |
23124 KB |
Output is correct |
3 |
Correct |
128 ms |
26240 KB |
Output is correct |
4 |
Correct |
509 ms |
31916 KB |
Output is correct |
5 |
Correct |
437 ms |
31496 KB |
Output is correct |
6 |
Correct |
606 ms |
35612 KB |
Output is correct |
7 |
Correct |
28 ms |
19536 KB |
Output is correct |
8 |
Correct |
96 ms |
19268 KB |
Output is correct |
9 |
Correct |
336 ms |
32552 KB |
Output is correct |
10 |
Correct |
303 ms |
26208 KB |
Output is correct |
11 |
Correct |
94 ms |
19268 KB |
Output is correct |
12 |
Correct |
439 ms |
23132 KB |
Output is correct |
13 |
Correct |
156 ms |
26240 KB |
Output is correct |
14 |
Correct |
500 ms |
31968 KB |
Output is correct |
15 |
Correct |
492 ms |
31504 KB |
Output is correct |
16 |
Correct |
602 ms |
33680 KB |
Output is correct |
17 |
Correct |
26 ms |
19548 KB |
Output is correct |
18 |
Correct |
56 ms |
19032 KB |
Output is correct |
19 |
Correct |
310 ms |
32720 KB |
Output is correct |
20 |
Correct |
314 ms |
26296 KB |
Output is correct |
21 |
Correct |
45 ms |
19032 KB |
Output is correct |
22 |
Correct |
48 ms |
19036 KB |
Output is correct |
23 |
Correct |
716 ms |
28916 KB |
Output is correct |
24 |
Correct |
310 ms |
31708 KB |
Output is correct |
25 |
Correct |
830 ms |
32516 KB |
Output is correct |
26 |
Correct |
897 ms |
31740 KB |
Output is correct |
27 |
Correct |
1002 ms |
32496 KB |
Output is correct |
28 |
Correct |
621 ms |
25012 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
41 ms |
19032 KB |
Output is correct |
2 |
Correct |
58 ms |
19032 KB |
Output is correct |
3 |
Correct |
14 ms |
19272 KB |
Output is correct |
4 |
Correct |
98 ms |
19036 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
1033 ms |
19508 KB |
Output is correct |
7 |
Correct |
450 ms |
19412 KB |
Output is correct |
8 |
Correct |
1072 ms |
19508 KB |
Output is correct |
9 |
Correct |
1085 ms |
19956 KB |
Output is correct |
10 |
Correct |
24 ms |
19036 KB |
Output is correct |
11 |
Correct |
75 ms |
19272 KB |
Output is correct |
12 |
Correct |
93 ms |
19036 KB |
Output is correct |
13 |
Correct |
434 ms |
23124 KB |
Output is correct |
14 |
Correct |
128 ms |
26240 KB |
Output is correct |
15 |
Correct |
509 ms |
31916 KB |
Output is correct |
16 |
Correct |
437 ms |
31496 KB |
Output is correct |
17 |
Correct |
606 ms |
35612 KB |
Output is correct |
18 |
Correct |
28 ms |
19536 KB |
Output is correct |
19 |
Correct |
96 ms |
19268 KB |
Output is correct |
20 |
Correct |
336 ms |
32552 KB |
Output is correct |
21 |
Correct |
303 ms |
26208 KB |
Output is correct |
22 |
Correct |
45 ms |
19268 KB |
Output is correct |
23 |
Correct |
56 ms |
19036 KB |
Output is correct |
24 |
Correct |
23 ms |
19032 KB |
Output is correct |
25 |
Correct |
97 ms |
19260 KB |
Output is correct |
26 |
Correct |
425 ms |
23136 KB |
Output is correct |
27 |
Correct |
123 ms |
26224 KB |
Output is correct |
28 |
Correct |
476 ms |
31732 KB |
Output is correct |
29 |
Correct |
480 ms |
31516 KB |
Output is correct |
30 |
Correct |
600 ms |
35088 KB |
Output is correct |
31 |
Correct |
26 ms |
19548 KB |
Output is correct |
32 |
Correct |
100 ms |
19252 KB |
Output is correct |
33 |
Correct |
337 ms |
34056 KB |
Output is correct |
34 |
Correct |
322 ms |
26112 KB |
Output is correct |
35 |
Correct |
705 ms |
25272 KB |
Output is correct |
36 |
Correct |
304 ms |
25248 KB |
Output is correct |
37 |
Correct |
821 ms |
31920 KB |
Output is correct |
38 |
Correct |
713 ms |
31436 KB |
Output is correct |
39 |
Correct |
787 ms |
35388 KB |
Output is correct |
40 |
Correct |
94 ms |
19268 KB |
Output is correct |
41 |
Correct |
439 ms |
23132 KB |
Output is correct |
42 |
Correct |
156 ms |
26240 KB |
Output is correct |
43 |
Correct |
500 ms |
31968 KB |
Output is correct |
44 |
Correct |
492 ms |
31504 KB |
Output is correct |
45 |
Correct |
602 ms |
33680 KB |
Output is correct |
46 |
Correct |
26 ms |
19548 KB |
Output is correct |
47 |
Correct |
56 ms |
19032 KB |
Output is correct |
48 |
Correct |
310 ms |
32720 KB |
Output is correct |
49 |
Correct |
314 ms |
26296 KB |
Output is correct |
50 |
Correct |
45 ms |
19032 KB |
Output is correct |
51 |
Correct |
48 ms |
19036 KB |
Output is correct |
52 |
Correct |
716 ms |
28916 KB |
Output is correct |
53 |
Correct |
310 ms |
31708 KB |
Output is correct |
54 |
Correct |
830 ms |
32516 KB |
Output is correct |
55 |
Correct |
897 ms |
31740 KB |
Output is correct |
56 |
Correct |
1002 ms |
32496 KB |
Output is correct |
57 |
Correct |
621 ms |
25012 KB |
Output is correct |
58 |
Correct |
44 ms |
19036 KB |
Output is correct |
59 |
Correct |
30 ms |
19032 KB |
Output is correct |
60 |
Correct |
15 ms |
19032 KB |
Output is correct |
61 |
Correct |
132 ms |
19276 KB |
Output is correct |
62 |
Correct |
2 ms |
10840 KB |
Output is correct |
63 |
Correct |
1036 ms |
19512 KB |
Output is correct |
64 |
Correct |
455 ms |
19284 KB |
Output is correct |
65 |
Correct |
1038 ms |
19476 KB |
Output is correct |
66 |
Correct |
1125 ms |
19576 KB |
Output is correct |
67 |
Correct |
35 ms |
19032 KB |
Output is correct |
68 |
Correct |
51 ms |
19036 KB |
Output is correct |
69 |
Correct |
450 ms |
23156 KB |
Output is correct |
70 |
Correct |
129 ms |
26240 KB |
Output is correct |
71 |
Correct |
567 ms |
31752 KB |
Output is correct |
72 |
Correct |
530 ms |
31504 KB |
Output is correct |
73 |
Correct |
621 ms |
35580 KB |
Output is correct |
74 |
Correct |
26 ms |
19532 KB |
Output is correct |
75 |
Correct |
53 ms |
19260 KB |
Output is correct |
76 |
Correct |
334 ms |
32516 KB |
Output is correct |
77 |
Correct |
307 ms |
26176 KB |
Output is correct |
78 |
Correct |
681 ms |
25300 KB |
Output is correct |
79 |
Correct |
267 ms |
25260 KB |
Output is correct |
80 |
Correct |
780 ms |
31996 KB |
Output is correct |
81 |
Correct |
677 ms |
31352 KB |
Output is correct |
82 |
Correct |
810 ms |
34420 KB |
Output is correct |
83 |
Correct |
731 ms |
28880 KB |
Output is correct |
84 |
Correct |
304 ms |
31660 KB |
Output is correct |
85 |
Correct |
741 ms |
33556 KB |
Output is correct |
86 |
Correct |
793 ms |
31892 KB |
Output is correct |
87 |
Correct |
889 ms |
33724 KB |
Output is correct |
88 |
Correct |
533 ms |
25036 KB |
Output is correct |
89 |
Correct |
1141 ms |
25996 KB |
Output is correct |
90 |
Correct |
1090 ms |
29024 KB |
Output is correct |
91 |
Correct |
1126 ms |
34324 KB |
Output is correct |
92 |
Correct |
1300 ms |
35612 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19036 KB |
Output is correct |
2 |
Correct |
434 ms |
23124 KB |
Output is correct |
3 |
Correct |
128 ms |
26240 KB |
Output is correct |
4 |
Correct |
509 ms |
31916 KB |
Output is correct |
5 |
Correct |
437 ms |
31496 KB |
Output is correct |
6 |
Correct |
606 ms |
35612 KB |
Output is correct |
7 |
Correct |
28 ms |
19536 KB |
Output is correct |
8 |
Correct |
96 ms |
19268 KB |
Output is correct |
9 |
Correct |
336 ms |
32552 KB |
Output is correct |
10 |
Correct |
303 ms |
26208 KB |
Output is correct |
11 |
Correct |
94 ms |
19268 KB |
Output is correct |
12 |
Correct |
439 ms |
23132 KB |
Output is correct |
13 |
Correct |
156 ms |
26240 KB |
Output is correct |
14 |
Correct |
500 ms |
31968 KB |
Output is correct |
15 |
Correct |
492 ms |
31504 KB |
Output is correct |
16 |
Correct |
602 ms |
33680 KB |
Output is correct |
17 |
Correct |
26 ms |
19548 KB |
Output is correct |
18 |
Correct |
56 ms |
19032 KB |
Output is correct |
19 |
Correct |
310 ms |
32720 KB |
Output is correct |
20 |
Correct |
314 ms |
26296 KB |
Output is correct |
21 |
Correct |
45 ms |
19032 KB |
Output is correct |
22 |
Correct |
48 ms |
19036 KB |
Output is correct |
23 |
Correct |
716 ms |
28916 KB |
Output is correct |
24 |
Correct |
310 ms |
31708 KB |
Output is correct |
25 |
Correct |
830 ms |
32516 KB |
Output is correct |
26 |
Correct |
897 ms |
31740 KB |
Output is correct |
27 |
Correct |
1002 ms |
32496 KB |
Output is correct |
28 |
Correct |
621 ms |
25012 KB |
Output is correct |
29 |
Correct |
97 ms |
19256 KB |
Output is correct |
30 |
Correct |
423 ms |
23148 KB |
Output is correct |
31 |
Correct |
117 ms |
26244 KB |
Output is correct |
32 |
Correct |
480 ms |
31964 KB |
Output is correct |
33 |
Correct |
444 ms |
31704 KB |
Output is correct |
34 |
Correct |
618 ms |
34592 KB |
Output is correct |
35 |
Correct |
24 ms |
19548 KB |
Output is correct |
36 |
Correct |
86 ms |
19036 KB |
Output is correct |
37 |
Correct |
299 ms |
35164 KB |
Output is correct |
38 |
Correct |
329 ms |
26176 KB |
Output is correct |
39 |
Correct |
47 ms |
19036 KB |
Output is correct |
40 |
Correct |
72 ms |
19248 KB |
Output is correct |
41 |
Correct |
778 ms |
28880 KB |
Output is correct |
42 |
Correct |
327 ms |
31536 KB |
Output is correct |
43 |
Correct |
815 ms |
34568 KB |
Output is correct |
44 |
Correct |
830 ms |
32200 KB |
Output is correct |
45 |
Correct |
971 ms |
32488 KB |
Output is correct |
46 |
Correct |
562 ms |
25008 KB |
Output is correct |
47 |
Correct |
24 ms |
19032 KB |
Output is correct |
48 |
Correct |
48 ms |
19036 KB |
Output is correct |
49 |
Correct |
1455 ms |
34816 KB |
Output is correct |
50 |
Correct |
654 ms |
23628 KB |
Output is correct |
51 |
Correct |
1570 ms |
32648 KB |
Output is correct |
52 |
Correct |
1621 ms |
31072 KB |
Output is correct |
53 |
Correct |
1876 ms |
33156 KB |
Output is correct |
54 |
Correct |
1239 ms |
26276 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
41 ms |
19032 KB |
Output is correct |
2 |
Correct |
58 ms |
19032 KB |
Output is correct |
3 |
Correct |
14 ms |
19272 KB |
Output is correct |
4 |
Correct |
98 ms |
19036 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
1033 ms |
19508 KB |
Output is correct |
7 |
Correct |
450 ms |
19412 KB |
Output is correct |
8 |
Correct |
1072 ms |
19508 KB |
Output is correct |
9 |
Correct |
1085 ms |
19956 KB |
Output is correct |
10 |
Correct |
24 ms |
19036 KB |
Output is correct |
11 |
Correct |
75 ms |
19272 KB |
Output is correct |
12 |
Correct |
44 ms |
19032 KB |
Output is correct |
13 |
Correct |
31 ms |
19036 KB |
Output is correct |
14 |
Correct |
25 ms |
19036 KB |
Output is correct |
15 |
Correct |
102 ms |
19036 KB |
Output is correct |
16 |
Correct |
3 ms |
10844 KB |
Output is correct |
17 |
Correct |
1059 ms |
19504 KB |
Output is correct |
18 |
Correct |
468 ms |
19284 KB |
Output is correct |
19 |
Correct |
1106 ms |
19492 KB |
Output is correct |
20 |
Correct |
1114 ms |
19592 KB |
Output is correct |
21 |
Correct |
23 ms |
19036 KB |
Output is correct |
22 |
Correct |
51 ms |
19256 KB |
Output is correct |
23 |
Correct |
2 ms |
10840 KB |
Output is correct |
24 |
Correct |
2184 ms |
20940 KB |
Output is correct |
25 |
Correct |
875 ms |
19688 KB |
Output is correct |
26 |
Correct |
2317 ms |
22268 KB |
Output is correct |
27 |
Correct |
2226 ms |
22096 KB |
Output is correct |
28 |
Correct |
40 ms |
19032 KB |
Output is correct |
29 |
Correct |
52 ms |
19032 KB |
Output is correct |
30 |
Correct |
93 ms |
19036 KB |
Output is correct |
31 |
Correct |
434 ms |
23124 KB |
Output is correct |
32 |
Correct |
128 ms |
26240 KB |
Output is correct |
33 |
Correct |
509 ms |
31916 KB |
Output is correct |
34 |
Correct |
437 ms |
31496 KB |
Output is correct |
35 |
Correct |
606 ms |
35612 KB |
Output is correct |
36 |
Correct |
28 ms |
19536 KB |
Output is correct |
37 |
Correct |
96 ms |
19268 KB |
Output is correct |
38 |
Correct |
336 ms |
32552 KB |
Output is correct |
39 |
Correct |
303 ms |
26208 KB |
Output is correct |
40 |
Correct |
45 ms |
19268 KB |
Output is correct |
41 |
Correct |
56 ms |
19036 KB |
Output is correct |
42 |
Correct |
23 ms |
19032 KB |
Output is correct |
43 |
Correct |
97 ms |
19260 KB |
Output is correct |
44 |
Correct |
425 ms |
23136 KB |
Output is correct |
45 |
Correct |
123 ms |
26224 KB |
Output is correct |
46 |
Correct |
476 ms |
31732 KB |
Output is correct |
47 |
Correct |
480 ms |
31516 KB |
Output is correct |
48 |
Correct |
600 ms |
35088 KB |
Output is correct |
49 |
Correct |
26 ms |
19548 KB |
Output is correct |
50 |
Correct |
100 ms |
19252 KB |
Output is correct |
51 |
Correct |
337 ms |
34056 KB |
Output is correct |
52 |
Correct |
322 ms |
26112 KB |
Output is correct |
53 |
Correct |
705 ms |
25272 KB |
Output is correct |
54 |
Correct |
304 ms |
25248 KB |
Output is correct |
55 |
Correct |
821 ms |
31920 KB |
Output is correct |
56 |
Correct |
713 ms |
31436 KB |
Output is correct |
57 |
Correct |
787 ms |
35388 KB |
Output is correct |
58 |
Correct |
94 ms |
19268 KB |
Output is correct |
59 |
Correct |
439 ms |
23132 KB |
Output is correct |
60 |
Correct |
156 ms |
26240 KB |
Output is correct |
61 |
Correct |
500 ms |
31968 KB |
Output is correct |
62 |
Correct |
492 ms |
31504 KB |
Output is correct |
63 |
Correct |
602 ms |
33680 KB |
Output is correct |
64 |
Correct |
26 ms |
19548 KB |
Output is correct |
65 |
Correct |
56 ms |
19032 KB |
Output is correct |
66 |
Correct |
310 ms |
32720 KB |
Output is correct |
67 |
Correct |
314 ms |
26296 KB |
Output is correct |
68 |
Correct |
45 ms |
19032 KB |
Output is correct |
69 |
Correct |
48 ms |
19036 KB |
Output is correct |
70 |
Correct |
716 ms |
28916 KB |
Output is correct |
71 |
Correct |
310 ms |
31708 KB |
Output is correct |
72 |
Correct |
830 ms |
32516 KB |
Output is correct |
73 |
Correct |
897 ms |
31740 KB |
Output is correct |
74 |
Correct |
1002 ms |
32496 KB |
Output is correct |
75 |
Correct |
621 ms |
25012 KB |
Output is correct |
76 |
Correct |
44 ms |
19036 KB |
Output is correct |
77 |
Correct |
30 ms |
19032 KB |
Output is correct |
78 |
Correct |
15 ms |
19032 KB |
Output is correct |
79 |
Correct |
132 ms |
19276 KB |
Output is correct |
80 |
Correct |
2 ms |
10840 KB |
Output is correct |
81 |
Correct |
1036 ms |
19512 KB |
Output is correct |
82 |
Correct |
455 ms |
19284 KB |
Output is correct |
83 |
Correct |
1038 ms |
19476 KB |
Output is correct |
84 |
Correct |
1125 ms |
19576 KB |
Output is correct |
85 |
Correct |
35 ms |
19032 KB |
Output is correct |
86 |
Correct |
51 ms |
19036 KB |
Output is correct |
87 |
Correct |
450 ms |
23156 KB |
Output is correct |
88 |
Correct |
129 ms |
26240 KB |
Output is correct |
89 |
Correct |
567 ms |
31752 KB |
Output is correct |
90 |
Correct |
530 ms |
31504 KB |
Output is correct |
91 |
Correct |
621 ms |
35580 KB |
Output is correct |
92 |
Correct |
26 ms |
19532 KB |
Output is correct |
93 |
Correct |
53 ms |
19260 KB |
Output is correct |
94 |
Correct |
334 ms |
32516 KB |
Output is correct |
95 |
Correct |
307 ms |
26176 KB |
Output is correct |
96 |
Correct |
681 ms |
25300 KB |
Output is correct |
97 |
Correct |
267 ms |
25260 KB |
Output is correct |
98 |
Correct |
780 ms |
31996 KB |
Output is correct |
99 |
Correct |
677 ms |
31352 KB |
Output is correct |
100 |
Correct |
810 ms |
34420 KB |
Output is correct |
101 |
Correct |
731 ms |
28880 KB |
Output is correct |
102 |
Correct |
304 ms |
31660 KB |
Output is correct |
103 |
Correct |
741 ms |
33556 KB |
Output is correct |
104 |
Correct |
793 ms |
31892 KB |
Output is correct |
105 |
Correct |
889 ms |
33724 KB |
Output is correct |
106 |
Correct |
533 ms |
25036 KB |
Output is correct |
107 |
Correct |
1141 ms |
25996 KB |
Output is correct |
108 |
Correct |
1090 ms |
29024 KB |
Output is correct |
109 |
Correct |
1126 ms |
34324 KB |
Output is correct |
110 |
Correct |
1300 ms |
35612 KB |
Output is correct |
111 |
Correct |
97 ms |
19256 KB |
Output is correct |
112 |
Correct |
423 ms |
23148 KB |
Output is correct |
113 |
Correct |
117 ms |
26244 KB |
Output is correct |
114 |
Correct |
480 ms |
31964 KB |
Output is correct |
115 |
Correct |
444 ms |
31704 KB |
Output is correct |
116 |
Correct |
618 ms |
34592 KB |
Output is correct |
117 |
Correct |
24 ms |
19548 KB |
Output is correct |
118 |
Correct |
86 ms |
19036 KB |
Output is correct |
119 |
Correct |
299 ms |
35164 KB |
Output is correct |
120 |
Correct |
329 ms |
26176 KB |
Output is correct |
121 |
Correct |
47 ms |
19036 KB |
Output is correct |
122 |
Correct |
72 ms |
19248 KB |
Output is correct |
123 |
Correct |
778 ms |
28880 KB |
Output is correct |
124 |
Correct |
327 ms |
31536 KB |
Output is correct |
125 |
Correct |
815 ms |
34568 KB |
Output is correct |
126 |
Correct |
830 ms |
32200 KB |
Output is correct |
127 |
Correct |
971 ms |
32488 KB |
Output is correct |
128 |
Correct |
562 ms |
25008 KB |
Output is correct |
129 |
Correct |
24 ms |
19032 KB |
Output is correct |
130 |
Correct |
48 ms |
19036 KB |
Output is correct |
131 |
Correct |
1455 ms |
34816 KB |
Output is correct |
132 |
Correct |
654 ms |
23628 KB |
Output is correct |
133 |
Correct |
1570 ms |
32648 KB |
Output is correct |
134 |
Correct |
1621 ms |
31072 KB |
Output is correct |
135 |
Correct |
1876 ms |
33156 KB |
Output is correct |
136 |
Correct |
1239 ms |
26276 KB |
Output is correct |
137 |
Correct |
40 ms |
19036 KB |
Output is correct |
138 |
Correct |
31 ms |
19032 KB |
Output is correct |
139 |
Correct |
13 ms |
19276 KB |
Output is correct |
140 |
Correct |
97 ms |
19256 KB |
Output is correct |
141 |
Correct |
2 ms |
10844 KB |
Output is correct |
142 |
Correct |
1010 ms |
19500 KB |
Output is correct |
143 |
Correct |
437 ms |
19256 KB |
Output is correct |
144 |
Correct |
1061 ms |
19504 KB |
Output is correct |
145 |
Correct |
1098 ms |
19568 KB |
Output is correct |
146 |
Correct |
24 ms |
19036 KB |
Output is correct |
147 |
Correct |
53 ms |
19036 KB |
Output is correct |
148 |
Correct |
2 ms |
10840 KB |
Output is correct |
149 |
Correct |
2185 ms |
20796 KB |
Output is correct |
150 |
Correct |
849 ms |
19684 KB |
Output is correct |
151 |
Correct |
2230 ms |
22176 KB |
Output is correct |
152 |
Correct |
2249 ms |
22092 KB |
Output is correct |
153 |
Correct |
25 ms |
19036 KB |
Output is correct |
154 |
Correct |
80 ms |
19036 KB |
Output is correct |
155 |
Correct |
473 ms |
23156 KB |
Output is correct |
156 |
Correct |
168 ms |
25996 KB |
Output is correct |
157 |
Correct |
534 ms |
31760 KB |
Output is correct |
158 |
Correct |
477 ms |
31500 KB |
Output is correct |
159 |
Correct |
586 ms |
34336 KB |
Output is correct |
160 |
Correct |
28 ms |
19292 KB |
Output is correct |
161 |
Correct |
103 ms |
19268 KB |
Output is correct |
162 |
Correct |
385 ms |
34564 KB |
Output is correct |
163 |
Correct |
375 ms |
26184 KB |
Output is correct |
164 |
Correct |
741 ms |
28880 KB |
Output is correct |
165 |
Correct |
320 ms |
31652 KB |
Output is correct |
166 |
Correct |
752 ms |
33328 KB |
Output is correct |
167 |
Correct |
813 ms |
31812 KB |
Output is correct |
168 |
Correct |
951 ms |
32532 KB |
Output is correct |
169 |
Correct |
547 ms |
25008 KB |
Output is correct |
170 |
Correct |
679 ms |
25212 KB |
Output is correct |
171 |
Correct |
291 ms |
25268 KB |
Output is correct |
172 |
Correct |
863 ms |
31928 KB |
Output is correct |
173 |
Correct |
750 ms |
31380 KB |
Output is correct |
174 |
Correct |
777 ms |
35180 KB |
Output is correct |
175 |
Correct |
1131 ms |
25944 KB |
Output is correct |
176 |
Correct |
1121 ms |
29036 KB |
Output is correct |
177 |
Correct |
1191 ms |
33284 KB |
Output is correct |
178 |
Correct |
1419 ms |
34848 KB |
Output is correct |
179 |
Correct |
1448 ms |
34084 KB |
Output is correct |
180 |
Correct |
611 ms |
23660 KB |
Output is correct |
181 |
Correct |
1494 ms |
33312 KB |
Output is correct |
182 |
Correct |
1581 ms |
31312 KB |
Output is correct |
183 |
Correct |
1732 ms |
34344 KB |
Output is correct |
184 |
Correct |
1243 ms |
26460 KB |
Output is correct |
185 |
Correct |
2265 ms |
31736 KB |
Output is correct |
186 |
Correct |
2208 ms |
31076 KB |
Output is correct |
187 |
Correct |
2577 ms |
31840 KB |
Output is correct |
188 |
Correct |
2615 ms |
33532 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
19036 KB |
Output is correct |
2 |
Correct |
434 ms |
23124 KB |
Output is correct |
3 |
Correct |
128 ms |
26240 KB |
Output is correct |
4 |
Correct |
509 ms |
31916 KB |
Output is correct |
5 |
Correct |
437 ms |
31496 KB |
Output is correct |
6 |
Correct |
606 ms |
35612 KB |
Output is correct |
7 |
Correct |
28 ms |
19536 KB |
Output is correct |
8 |
Correct |
96 ms |
19268 KB |
Output is correct |
9 |
Correct |
336 ms |
32552 KB |
Output is correct |
10 |
Correct |
303 ms |
26208 KB |
Output is correct |
11 |
Correct |
94 ms |
19268 KB |
Output is correct |
12 |
Correct |
439 ms |
23132 KB |
Output is correct |
13 |
Correct |
156 ms |
26240 KB |
Output is correct |
14 |
Correct |
500 ms |
31968 KB |
Output is correct |
15 |
Correct |
492 ms |
31504 KB |
Output is correct |
16 |
Correct |
602 ms |
33680 KB |
Output is correct |
17 |
Correct |
26 ms |
19548 KB |
Output is correct |
18 |
Correct |
56 ms |
19032 KB |
Output is correct |
19 |
Correct |
310 ms |
32720 KB |
Output is correct |
20 |
Correct |
314 ms |
26296 KB |
Output is correct |
21 |
Correct |
45 ms |
19032 KB |
Output is correct |
22 |
Correct |
48 ms |
19036 KB |
Output is correct |
23 |
Correct |
716 ms |
28916 KB |
Output is correct |
24 |
Correct |
310 ms |
31708 KB |
Output is correct |
25 |
Correct |
830 ms |
32516 KB |
Output is correct |
26 |
Correct |
897 ms |
31740 KB |
Output is correct |
27 |
Correct |
1002 ms |
32496 KB |
Output is correct |
28 |
Correct |
621 ms |
25012 KB |
Output is correct |
29 |
Correct |
97 ms |
19256 KB |
Output is correct |
30 |
Correct |
423 ms |
23148 KB |
Output is correct |
31 |
Correct |
117 ms |
26244 KB |
Output is correct |
32 |
Correct |
480 ms |
31964 KB |
Output is correct |
33 |
Correct |
444 ms |
31704 KB |
Output is correct |
34 |
Correct |
618 ms |
34592 KB |
Output is correct |
35 |
Correct |
24 ms |
19548 KB |
Output is correct |
36 |
Correct |
86 ms |
19036 KB |
Output is correct |
37 |
Correct |
299 ms |
35164 KB |
Output is correct |
38 |
Correct |
329 ms |
26176 KB |
Output is correct |
39 |
Correct |
47 ms |
19036 KB |
Output is correct |
40 |
Correct |
72 ms |
19248 KB |
Output is correct |
41 |
Correct |
778 ms |
28880 KB |
Output is correct |
42 |
Correct |
327 ms |
31536 KB |
Output is correct |
43 |
Correct |
815 ms |
34568 KB |
Output is correct |
44 |
Correct |
830 ms |
32200 KB |
Output is correct |
45 |
Correct |
971 ms |
32488 KB |
Output is correct |
46 |
Correct |
562 ms |
25008 KB |
Output is correct |
47 |
Correct |
24 ms |
19032 KB |
Output is correct |
48 |
Correct |
48 ms |
19036 KB |
Output is correct |
49 |
Correct |
1455 ms |
34816 KB |
Output is correct |
50 |
Correct |
654 ms |
23628 KB |
Output is correct |
51 |
Correct |
1570 ms |
32648 KB |
Output is correct |
52 |
Correct |
1621 ms |
31072 KB |
Output is correct |
53 |
Correct |
1876 ms |
33156 KB |
Output is correct |
54 |
Correct |
1239 ms |
26276 KB |
Output is correct |
55 |
Correct |
98 ms |
19260 KB |
Output is correct |
56 |
Correct |
495 ms |
23132 KB |
Output is correct |
57 |
Correct |
125 ms |
26224 KB |
Output is correct |
58 |
Correct |
501 ms |
31792 KB |
Output is correct |
59 |
Correct |
469 ms |
31500 KB |
Output is correct |
60 |
Correct |
600 ms |
33940 KB |
Output is correct |
61 |
Correct |
26 ms |
19544 KB |
Output is correct |
62 |
Correct |
54 ms |
19032 KB |
Output is correct |
63 |
Correct |
324 ms |
32720 KB |
Output is correct |
64 |
Correct |
310 ms |
26304 KB |
Output is correct |
65 |
Correct |
24 ms |
19036 KB |
Output is correct |
66 |
Correct |
53 ms |
19032 KB |
Output is correct |
67 |
Correct |
759 ms |
28852 KB |
Output is correct |
68 |
Correct |
334 ms |
31668 KB |
Output is correct |
69 |
Correct |
792 ms |
33528 KB |
Output is correct |
70 |
Correct |
796 ms |
31796 KB |
Output is correct |
71 |
Correct |
895 ms |
33568 KB |
Output is correct |
72 |
Correct |
535 ms |
25024 KB |
Output is correct |
73 |
Correct |
40 ms |
19036 KB |
Output is correct |
74 |
Correct |
50 ms |
19256 KB |
Output is correct |
75 |
Correct |
1470 ms |
33500 KB |
Output is correct |
76 |
Correct |
652 ms |
23544 KB |
Output is correct |
77 |
Correct |
1543 ms |
35420 KB |
Output is correct |
78 |
Correct |
1579 ms |
31288 KB |
Output is correct |
79 |
Correct |
1887 ms |
34828 KB |
Output is correct |
80 |
Correct |
1269 ms |
26272 KB |
Output is correct |
81 |
Correct |
4341 ms |
30248 KB |
Output is correct |
82 |
Correct |
1953 ms |
22932 KB |
Output is correct |
83 |
Correct |
4334 ms |
33360 KB |
Output is correct |
84 |
Incorrect |
4501 ms |
33832 KB |
Output isn't correct |
85 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
41 ms |
19032 KB |
Output is correct |
2 |
Correct |
58 ms |
19032 KB |
Output is correct |
3 |
Correct |
14 ms |
19272 KB |
Output is correct |
4 |
Correct |
98 ms |
19036 KB |
Output is correct |
5 |
Correct |
2 ms |
10844 KB |
Output is correct |
6 |
Correct |
1033 ms |
19508 KB |
Output is correct |
7 |
Correct |
450 ms |
19412 KB |
Output is correct |
8 |
Correct |
1072 ms |
19508 KB |
Output is correct |
9 |
Correct |
1085 ms |
19956 KB |
Output is correct |
10 |
Correct |
24 ms |
19036 KB |
Output is correct |
11 |
Correct |
75 ms |
19272 KB |
Output is correct |
12 |
Correct |
44 ms |
19032 KB |
Output is correct |
13 |
Correct |
31 ms |
19036 KB |
Output is correct |
14 |
Correct |
25 ms |
19036 KB |
Output is correct |
15 |
Correct |
102 ms |
19036 KB |
Output is correct |
16 |
Correct |
3 ms |
10844 KB |
Output is correct |
17 |
Correct |
1059 ms |
19504 KB |
Output is correct |
18 |
Correct |
468 ms |
19284 KB |
Output is correct |
19 |
Correct |
1106 ms |
19492 KB |
Output is correct |
20 |
Correct |
1114 ms |
19592 KB |
Output is correct |
21 |
Correct |
23 ms |
19036 KB |
Output is correct |
22 |
Correct |
51 ms |
19256 KB |
Output is correct |
23 |
Correct |
2 ms |
10840 KB |
Output is correct |
24 |
Correct |
2184 ms |
20940 KB |
Output is correct |
25 |
Correct |
875 ms |
19688 KB |
Output is correct |
26 |
Correct |
2317 ms |
22268 KB |
Output is correct |
27 |
Correct |
2226 ms |
22096 KB |
Output is correct |
28 |
Correct |
40 ms |
19032 KB |
Output is correct |
29 |
Correct |
52 ms |
19032 KB |
Output is correct |
30 |
Correct |
93 ms |
19036 KB |
Output is correct |
31 |
Correct |
434 ms |
23124 KB |
Output is correct |
32 |
Correct |
128 ms |
26240 KB |
Output is correct |
33 |
Correct |
509 ms |
31916 KB |
Output is correct |
34 |
Correct |
437 ms |
31496 KB |
Output is correct |
35 |
Correct |
606 ms |
35612 KB |
Output is correct |
36 |
Correct |
28 ms |
19536 KB |
Output is correct |
37 |
Correct |
96 ms |
19268 KB |
Output is correct |
38 |
Correct |
336 ms |
32552 KB |
Output is correct |
39 |
Correct |
303 ms |
26208 KB |
Output is correct |
40 |
Correct |
45 ms |
19268 KB |
Output is correct |
41 |
Correct |
56 ms |
19036 KB |
Output is correct |
42 |
Correct |
23 ms |
19032 KB |
Output is correct |
43 |
Correct |
97 ms |
19260 KB |
Output is correct |
44 |
Correct |
425 ms |
23136 KB |
Output is correct |
45 |
Correct |
123 ms |
26224 KB |
Output is correct |
46 |
Correct |
476 ms |
31732 KB |
Output is correct |
47 |
Correct |
480 ms |
31516 KB |
Output is correct |
48 |
Correct |
600 ms |
35088 KB |
Output is correct |
49 |
Correct |
26 ms |
19548 KB |
Output is correct |
50 |
Correct |
100 ms |
19252 KB |
Output is correct |
51 |
Correct |
337 ms |
34056 KB |
Output is correct |
52 |
Correct |
322 ms |
26112 KB |
Output is correct |
53 |
Correct |
705 ms |
25272 KB |
Output is correct |
54 |
Correct |
304 ms |
25248 KB |
Output is correct |
55 |
Correct |
821 ms |
31920 KB |
Output is correct |
56 |
Correct |
713 ms |
31436 KB |
Output is correct |
57 |
Correct |
787 ms |
35388 KB |
Output is correct |
58 |
Correct |
94 ms |
19268 KB |
Output is correct |
59 |
Correct |
439 ms |
23132 KB |
Output is correct |
60 |
Correct |
156 ms |
26240 KB |
Output is correct |
61 |
Correct |
500 ms |
31968 KB |
Output is correct |
62 |
Correct |
492 ms |
31504 KB |
Output is correct |
63 |
Correct |
602 ms |
33680 KB |
Output is correct |
64 |
Correct |
26 ms |
19548 KB |
Output is correct |
65 |
Correct |
56 ms |
19032 KB |
Output is correct |
66 |
Correct |
310 ms |
32720 KB |
Output is correct |
67 |
Correct |
314 ms |
26296 KB |
Output is correct |
68 |
Correct |
45 ms |
19032 KB |
Output is correct |
69 |
Correct |
48 ms |
19036 KB |
Output is correct |
70 |
Correct |
716 ms |
28916 KB |
Output is correct |
71 |
Correct |
310 ms |
31708 KB |
Output is correct |
72 |
Correct |
830 ms |
32516 KB |
Output is correct |
73 |
Correct |
897 ms |
31740 KB |
Output is correct |
74 |
Correct |
1002 ms |
32496 KB |
Output is correct |
75 |
Correct |
621 ms |
25012 KB |
Output is correct |
76 |
Correct |
44 ms |
19036 KB |
Output is correct |
77 |
Correct |
30 ms |
19032 KB |
Output is correct |
78 |
Correct |
15 ms |
19032 KB |
Output is correct |
79 |
Correct |
132 ms |
19276 KB |
Output is correct |
80 |
Correct |
2 ms |
10840 KB |
Output is correct |
81 |
Correct |
1036 ms |
19512 KB |
Output is correct |
82 |
Correct |
455 ms |
19284 KB |
Output is correct |
83 |
Correct |
1038 ms |
19476 KB |
Output is correct |
84 |
Correct |
1125 ms |
19576 KB |
Output is correct |
85 |
Correct |
35 ms |
19032 KB |
Output is correct |
86 |
Correct |
51 ms |
19036 KB |
Output is correct |
87 |
Correct |
450 ms |
23156 KB |
Output is correct |
88 |
Correct |
129 ms |
26240 KB |
Output is correct |
89 |
Correct |
567 ms |
31752 KB |
Output is correct |
90 |
Correct |
530 ms |
31504 KB |
Output is correct |
91 |
Correct |
621 ms |
35580 KB |
Output is correct |
92 |
Correct |
26 ms |
19532 KB |
Output is correct |
93 |
Correct |
53 ms |
19260 KB |
Output is correct |
94 |
Correct |
334 ms |
32516 KB |
Output is correct |
95 |
Correct |
307 ms |
26176 KB |
Output is correct |
96 |
Correct |
681 ms |
25300 KB |
Output is correct |
97 |
Correct |
267 ms |
25260 KB |
Output is correct |
98 |
Correct |
780 ms |
31996 KB |
Output is correct |
99 |
Correct |
677 ms |
31352 KB |
Output is correct |
100 |
Correct |
810 ms |
34420 KB |
Output is correct |
101 |
Correct |
731 ms |
28880 KB |
Output is correct |
102 |
Correct |
304 ms |
31660 KB |
Output is correct |
103 |
Correct |
741 ms |
33556 KB |
Output is correct |
104 |
Correct |
793 ms |
31892 KB |
Output is correct |
105 |
Correct |
889 ms |
33724 KB |
Output is correct |
106 |
Correct |
533 ms |
25036 KB |
Output is correct |
107 |
Correct |
1141 ms |
25996 KB |
Output is correct |
108 |
Correct |
1090 ms |
29024 KB |
Output is correct |
109 |
Correct |
1126 ms |
34324 KB |
Output is correct |
110 |
Correct |
1300 ms |
35612 KB |
Output is correct |
111 |
Correct |
97 ms |
19256 KB |
Output is correct |
112 |
Correct |
423 ms |
23148 KB |
Output is correct |
113 |
Correct |
117 ms |
26244 KB |
Output is correct |
114 |
Correct |
480 ms |
31964 KB |
Output is correct |
115 |
Correct |
444 ms |
31704 KB |
Output is correct |
116 |
Correct |
618 ms |
34592 KB |
Output is correct |
117 |
Correct |
24 ms |
19548 KB |
Output is correct |
118 |
Correct |
86 ms |
19036 KB |
Output is correct |
119 |
Correct |
299 ms |
35164 KB |
Output is correct |
120 |
Correct |
329 ms |
26176 KB |
Output is correct |
121 |
Correct |
47 ms |
19036 KB |
Output is correct |
122 |
Correct |
72 ms |
19248 KB |
Output is correct |
123 |
Correct |
778 ms |
28880 KB |
Output is correct |
124 |
Correct |
327 ms |
31536 KB |
Output is correct |
125 |
Correct |
815 ms |
34568 KB |
Output is correct |
126 |
Correct |
830 ms |
32200 KB |
Output is correct |
127 |
Correct |
971 ms |
32488 KB |
Output is correct |
128 |
Correct |
562 ms |
25008 KB |
Output is correct |
129 |
Correct |
24 ms |
19032 KB |
Output is correct |
130 |
Correct |
48 ms |
19036 KB |
Output is correct |
131 |
Correct |
1455 ms |
34816 KB |
Output is correct |
132 |
Correct |
654 ms |
23628 KB |
Output is correct |
133 |
Correct |
1570 ms |
32648 KB |
Output is correct |
134 |
Correct |
1621 ms |
31072 KB |
Output is correct |
135 |
Correct |
1876 ms |
33156 KB |
Output is correct |
136 |
Correct |
1239 ms |
26276 KB |
Output is correct |
137 |
Correct |
40 ms |
19036 KB |
Output is correct |
138 |
Correct |
31 ms |
19032 KB |
Output is correct |
139 |
Correct |
13 ms |
19276 KB |
Output is correct |
140 |
Correct |
97 ms |
19256 KB |
Output is correct |
141 |
Correct |
2 ms |
10844 KB |
Output is correct |
142 |
Correct |
1010 ms |
19500 KB |
Output is correct |
143 |
Correct |
437 ms |
19256 KB |
Output is correct |
144 |
Correct |
1061 ms |
19504 KB |
Output is correct |
145 |
Correct |
1098 ms |
19568 KB |
Output is correct |
146 |
Correct |
24 ms |
19036 KB |
Output is correct |
147 |
Correct |
53 ms |
19036 KB |
Output is correct |
148 |
Correct |
2 ms |
10840 KB |
Output is correct |
149 |
Correct |
2185 ms |
20796 KB |
Output is correct |
150 |
Correct |
849 ms |
19684 KB |
Output is correct |
151 |
Correct |
2230 ms |
22176 KB |
Output is correct |
152 |
Correct |
2249 ms |
22092 KB |
Output is correct |
153 |
Correct |
25 ms |
19036 KB |
Output is correct |
154 |
Correct |
80 ms |
19036 KB |
Output is correct |
155 |
Correct |
473 ms |
23156 KB |
Output is correct |
156 |
Correct |
168 ms |
25996 KB |
Output is correct |
157 |
Correct |
534 ms |
31760 KB |
Output is correct |
158 |
Correct |
477 ms |
31500 KB |
Output is correct |
159 |
Correct |
586 ms |
34336 KB |
Output is correct |
160 |
Correct |
28 ms |
19292 KB |
Output is correct |
161 |
Correct |
103 ms |
19268 KB |
Output is correct |
162 |
Correct |
385 ms |
34564 KB |
Output is correct |
163 |
Correct |
375 ms |
26184 KB |
Output is correct |
164 |
Correct |
741 ms |
28880 KB |
Output is correct |
165 |
Correct |
320 ms |
31652 KB |
Output is correct |
166 |
Correct |
752 ms |
33328 KB |
Output is correct |
167 |
Correct |
813 ms |
31812 KB |
Output is correct |
168 |
Correct |
951 ms |
32532 KB |
Output is correct |
169 |
Correct |
547 ms |
25008 KB |
Output is correct |
170 |
Correct |
679 ms |
25212 KB |
Output is correct |
171 |
Correct |
291 ms |
25268 KB |
Output is correct |
172 |
Correct |
863 ms |
31928 KB |
Output is correct |
173 |
Correct |
750 ms |
31380 KB |
Output is correct |
174 |
Correct |
777 ms |
35180 KB |
Output is correct |
175 |
Correct |
1131 ms |
25944 KB |
Output is correct |
176 |
Correct |
1121 ms |
29036 KB |
Output is correct |
177 |
Correct |
1191 ms |
33284 KB |
Output is correct |
178 |
Correct |
1419 ms |
34848 KB |
Output is correct |
179 |
Correct |
1448 ms |
34084 KB |
Output is correct |
180 |
Correct |
611 ms |
23660 KB |
Output is correct |
181 |
Correct |
1494 ms |
33312 KB |
Output is correct |
182 |
Correct |
1581 ms |
31312 KB |
Output is correct |
183 |
Correct |
1732 ms |
34344 KB |
Output is correct |
184 |
Correct |
1243 ms |
26460 KB |
Output is correct |
185 |
Correct |
2265 ms |
31736 KB |
Output is correct |
186 |
Correct |
2208 ms |
31076 KB |
Output is correct |
187 |
Correct |
2577 ms |
31840 KB |
Output is correct |
188 |
Correct |
2615 ms |
33532 KB |
Output is correct |
189 |
Correct |
98 ms |
19260 KB |
Output is correct |
190 |
Correct |
495 ms |
23132 KB |
Output is correct |
191 |
Correct |
125 ms |
26224 KB |
Output is correct |
192 |
Correct |
501 ms |
31792 KB |
Output is correct |
193 |
Correct |
469 ms |
31500 KB |
Output is correct |
194 |
Correct |
600 ms |
33940 KB |
Output is correct |
195 |
Correct |
26 ms |
19544 KB |
Output is correct |
196 |
Correct |
54 ms |
19032 KB |
Output is correct |
197 |
Correct |
324 ms |
32720 KB |
Output is correct |
198 |
Correct |
310 ms |
26304 KB |
Output is correct |
199 |
Correct |
24 ms |
19036 KB |
Output is correct |
200 |
Correct |
53 ms |
19032 KB |
Output is correct |
201 |
Correct |
759 ms |
28852 KB |
Output is correct |
202 |
Correct |
334 ms |
31668 KB |
Output is correct |
203 |
Correct |
792 ms |
33528 KB |
Output is correct |
204 |
Correct |
796 ms |
31796 KB |
Output is correct |
205 |
Correct |
895 ms |
33568 KB |
Output is correct |
206 |
Correct |
535 ms |
25024 KB |
Output is correct |
207 |
Correct |
40 ms |
19036 KB |
Output is correct |
208 |
Correct |
50 ms |
19256 KB |
Output is correct |
209 |
Correct |
1470 ms |
33500 KB |
Output is correct |
210 |
Correct |
652 ms |
23544 KB |
Output is correct |
211 |
Correct |
1543 ms |
35420 KB |
Output is correct |
212 |
Correct |
1579 ms |
31288 KB |
Output is correct |
213 |
Correct |
1887 ms |
34828 KB |
Output is correct |
214 |
Correct |
1269 ms |
26272 KB |
Output is correct |
215 |
Correct |
4341 ms |
30248 KB |
Output is correct |
216 |
Correct |
1953 ms |
22932 KB |
Output is correct |
217 |
Correct |
4334 ms |
33360 KB |
Output is correct |
218 |
Incorrect |
4501 ms |
33832 KB |
Output isn't correct |
219 |
Halted |
0 ms |
0 KB |
- |