#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=8e5+7;
ll dp[LIM], dp2[LIM], A[LIM], B[LIM];
int main() {
ios_base::sync_with_stdio(0); cin.tie(0);
ll n, m;
cin >> n >> m;
rep(i, n) cin >> A[n-i];
rep(i, n+1) cin >> B[i];
ll ans=0;
rep(i, n+1) ans+=B[i];
rep(i, n+1) ans+=A[i];
rep(i, n+1) m+=A[i]*(ll)i;
rep(i, n+1) m-=B[i]*(ll)i;
if(m<0) {
m*=-1;
rep(i, n+1) swap(A[i], B[i]);
}
rep(i, LIM) dp[i]=INF;
dp[0]=0;
for(ll i=n; i; --i) {
if(m>=LIM/2) {
ll p=m-LIM/2;
p=(p+i-1)/i;
p=min(p, max(A[i]-50, 0ll));
A[i]-=p;
dp[0]+=p;
m-=p*i;
}
}
if(m>=LIM) {
cout << "impossible\n";
return 0;
}
rep(xd, 2) {
for(ll i=1; i<=n; ++i) {
vector<ll>V[i], l(i);
rep(j, LIM) {
ll p=j%i;
while(l[p]<V[p].size() && (j-V[p][l[p]])/i>A[i]) ++l[p];
while(V[p].size()>0 && dp[j]<=dp[V[p].back()]+(j-V[p].back())/i) {
V[p].pop_back();
l[p]=min(l[p], (ll)V[p].size());
}
dp2[j]=dp[j];
if(l[p]<V[p].size()) {
dp2[j]=min(dp2[j], dp[V[p][l[p]]]+(j-V[p][l[p]])/i);
}
V[p].pb(j);
}
rep(j, LIM) dp[j]=dp2[j];
}
rep(i, LIM/2) swap(dp[i], dp[LIM-i-1]);
rep(i, n+1) swap(A[i], B[i]);
}
if(dp[m]==INF) {
cout << "impossible\n";
return 0;
}
cout << ans-dp[m] << '\n';
}
Compilation message
vault.cpp: In function 'int main()':
vault.cpp:48:15: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | while(l[p]<V[p].size() && (j-V[p][l[p]])/i>A[i]) ++l[p];
vault.cpp:54:12: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | if(l[p]<V[p].size()) {
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
32 ms |
14940 KB |
Output is correct |
2 |
Correct |
44 ms |
14936 KB |
Output is correct |
3 |
Correct |
17 ms |
15192 KB |
Output is correct |
4 |
Correct |
156 ms |
14940 KB |
Output is correct |
5 |
Correct |
1 ms |
8796 KB |
Output is correct |
6 |
Correct |
757 ms |
15248 KB |
Output is correct |
7 |
Correct |
760 ms |
15188 KB |
Output is correct |
8 |
Correct |
765 ms |
15260 KB |
Output is correct |
9 |
Correct |
766 ms |
15492 KB |
Output is correct |
10 |
Correct |
663 ms |
14940 KB |
Output is correct |
11 |
Correct |
647 ms |
14936 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
32 ms |
14940 KB |
Output is correct |
2 |
Correct |
44 ms |
14936 KB |
Output is correct |
3 |
Correct |
17 ms |
15192 KB |
Output is correct |
4 |
Correct |
156 ms |
14940 KB |
Output is correct |
5 |
Correct |
1 ms |
8796 KB |
Output is correct |
6 |
Correct |
757 ms |
15248 KB |
Output is correct |
7 |
Correct |
760 ms |
15188 KB |
Output is correct |
8 |
Correct |
765 ms |
15260 KB |
Output is correct |
9 |
Correct |
766 ms |
15492 KB |
Output is correct |
10 |
Correct |
663 ms |
14940 KB |
Output is correct |
11 |
Correct |
647 ms |
14936 KB |
Output is correct |
12 |
Correct |
31 ms |
14940 KB |
Output is correct |
13 |
Correct |
45 ms |
14940 KB |
Output is correct |
14 |
Correct |
17 ms |
14936 KB |
Output is correct |
15 |
Correct |
152 ms |
15044 KB |
Output is correct |
16 |
Correct |
2 ms |
8792 KB |
Output is correct |
17 |
Correct |
759 ms |
15288 KB |
Output is correct |
18 |
Correct |
748 ms |
15052 KB |
Output is correct |
19 |
Correct |
756 ms |
15264 KB |
Output is correct |
20 |
Correct |
765 ms |
15496 KB |
Output is correct |
21 |
Correct |
660 ms |
14940 KB |
Output is correct |
22 |
Correct |
662 ms |
15040 KB |
Output is correct |
23 |
Correct |
1 ms |
8792 KB |
Output is correct |
24 |
Correct |
1585 ms |
16704 KB |
Output is correct |
25 |
Correct |
1554 ms |
15472 KB |
Output is correct |
26 |
Correct |
1622 ms |
18076 KB |
Output is correct |
27 |
Correct |
1641 ms |
17880 KB |
Output is correct |
28 |
Correct |
1311 ms |
15056 KB |
Output is correct |
29 |
Correct |
1289 ms |
14940 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
155 ms |
15036 KB |
Output is correct |
2 |
Correct |
519 ms |
18540 KB |
Output is correct |
3 |
Correct |
453 ms |
18980 KB |
Output is correct |
4 |
Correct |
540 ms |
25716 KB |
Output is correct |
5 |
Correct |
533 ms |
25868 KB |
Output is correct |
6 |
Correct |
596 ms |
28528 KB |
Output is correct |
7 |
Correct |
407 ms |
15296 KB |
Output is correct |
8 |
Correct |
398 ms |
14940 KB |
Output is correct |
9 |
Correct |
511 ms |
27804 KB |
Output is correct |
10 |
Correct |
491 ms |
21436 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
155 ms |
15036 KB |
Output is correct |
2 |
Correct |
519 ms |
18540 KB |
Output is correct |
3 |
Correct |
453 ms |
18980 KB |
Output is correct |
4 |
Correct |
540 ms |
25716 KB |
Output is correct |
5 |
Correct |
533 ms |
25868 KB |
Output is correct |
6 |
Correct |
596 ms |
28528 KB |
Output is correct |
7 |
Correct |
407 ms |
15296 KB |
Output is correct |
8 |
Correct |
398 ms |
14940 KB |
Output is correct |
9 |
Correct |
511 ms |
27804 KB |
Output is correct |
10 |
Correct |
491 ms |
21436 KB |
Output is correct |
11 |
Correct |
31 ms |
14936 KB |
Output is correct |
12 |
Correct |
45 ms |
14940 KB |
Output is correct |
13 |
Correct |
17 ms |
14936 KB |
Output is correct |
14 |
Correct |
153 ms |
15036 KB |
Output is correct |
15 |
Correct |
519 ms |
18568 KB |
Output is correct |
16 |
Correct |
449 ms |
19100 KB |
Output is correct |
17 |
Correct |
534 ms |
25732 KB |
Output is correct |
18 |
Correct |
520 ms |
25876 KB |
Output is correct |
19 |
Correct |
593 ms |
31352 KB |
Output is correct |
20 |
Correct |
403 ms |
15296 KB |
Output is correct |
21 |
Correct |
440 ms |
15196 KB |
Output is correct |
22 |
Correct |
533 ms |
30588 KB |
Output is correct |
23 |
Correct |
502 ms |
21436 KB |
Output is correct |
24 |
Correct |
508 ms |
20652 KB |
Output is correct |
25 |
Correct |
460 ms |
18856 KB |
Output is correct |
26 |
Correct |
581 ms |
26128 KB |
Output is correct |
27 |
Correct |
526 ms |
26096 KB |
Output is correct |
28 |
Correct |
581 ms |
31100 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
155 ms |
15036 KB |
Output is correct |
2 |
Correct |
519 ms |
18540 KB |
Output is correct |
3 |
Correct |
453 ms |
18980 KB |
Output is correct |
4 |
Correct |
540 ms |
25716 KB |
Output is correct |
5 |
Correct |
533 ms |
25868 KB |
Output is correct |
6 |
Correct |
596 ms |
28528 KB |
Output is correct |
7 |
Correct |
407 ms |
15296 KB |
Output is correct |
8 |
Correct |
398 ms |
14940 KB |
Output is correct |
9 |
Correct |
511 ms |
27804 KB |
Output is correct |
10 |
Correct |
491 ms |
21436 KB |
Output is correct |
11 |
Correct |
153 ms |
14936 KB |
Output is correct |
12 |
Correct |
523 ms |
18532 KB |
Output is correct |
13 |
Correct |
457 ms |
19260 KB |
Output is correct |
14 |
Correct |
539 ms |
25712 KB |
Output is correct |
15 |
Correct |
534 ms |
25828 KB |
Output is correct |
16 |
Correct |
608 ms |
30544 KB |
Output is correct |
17 |
Correct |
403 ms |
15188 KB |
Output is correct |
18 |
Correct |
408 ms |
15184 KB |
Output is correct |
19 |
Correct |
517 ms |
29620 KB |
Output is correct |
20 |
Correct |
502 ms |
21376 KB |
Output is correct |
21 |
Correct |
663 ms |
15044 KB |
Output is correct |
22 |
Correct |
663 ms |
14940 KB |
Output is correct |
23 |
Correct |
878 ms |
23816 KB |
Output is correct |
24 |
Correct |
817 ms |
22444 KB |
Output is correct |
25 |
Correct |
903 ms |
29160 KB |
Output is correct |
26 |
Correct |
900 ms |
26148 KB |
Output is correct |
27 |
Correct |
998 ms |
31540 KB |
Output is correct |
28 |
Correct |
849 ms |
20548 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
32 ms |
14940 KB |
Output is correct |
2 |
Correct |
44 ms |
14936 KB |
Output is correct |
3 |
Correct |
17 ms |
15192 KB |
Output is correct |
4 |
Correct |
156 ms |
14940 KB |
Output is correct |
5 |
Correct |
1 ms |
8796 KB |
Output is correct |
6 |
Correct |
757 ms |
15248 KB |
Output is correct |
7 |
Correct |
760 ms |
15188 KB |
Output is correct |
8 |
Correct |
765 ms |
15260 KB |
Output is correct |
9 |
Correct |
766 ms |
15492 KB |
Output is correct |
10 |
Correct |
663 ms |
14940 KB |
Output is correct |
11 |
Correct |
647 ms |
14936 KB |
Output is correct |
12 |
Correct |
155 ms |
15036 KB |
Output is correct |
13 |
Correct |
519 ms |
18540 KB |
Output is correct |
14 |
Correct |
453 ms |
18980 KB |
Output is correct |
15 |
Correct |
540 ms |
25716 KB |
Output is correct |
16 |
Correct |
533 ms |
25868 KB |
Output is correct |
17 |
Correct |
596 ms |
28528 KB |
Output is correct |
18 |
Correct |
407 ms |
15296 KB |
Output is correct |
19 |
Correct |
398 ms |
14940 KB |
Output is correct |
20 |
Correct |
511 ms |
27804 KB |
Output is correct |
21 |
Correct |
491 ms |
21436 KB |
Output is correct |
22 |
Correct |
31 ms |
14936 KB |
Output is correct |
23 |
Correct |
45 ms |
14940 KB |
Output is correct |
24 |
Correct |
17 ms |
14936 KB |
Output is correct |
25 |
Correct |
153 ms |
15036 KB |
Output is correct |
26 |
Correct |
519 ms |
18568 KB |
Output is correct |
27 |
Correct |
449 ms |
19100 KB |
Output is correct |
28 |
Correct |
534 ms |
25732 KB |
Output is correct |
29 |
Correct |
520 ms |
25876 KB |
Output is correct |
30 |
Correct |
593 ms |
31352 KB |
Output is correct |
31 |
Correct |
403 ms |
15296 KB |
Output is correct |
32 |
Correct |
440 ms |
15196 KB |
Output is correct |
33 |
Correct |
533 ms |
30588 KB |
Output is correct |
34 |
Correct |
502 ms |
21436 KB |
Output is correct |
35 |
Correct |
508 ms |
20652 KB |
Output is correct |
36 |
Correct |
460 ms |
18856 KB |
Output is correct |
37 |
Correct |
581 ms |
26128 KB |
Output is correct |
38 |
Correct |
526 ms |
26096 KB |
Output is correct |
39 |
Correct |
581 ms |
31100 KB |
Output is correct |
40 |
Correct |
153 ms |
14936 KB |
Output is correct |
41 |
Correct |
523 ms |
18532 KB |
Output is correct |
42 |
Correct |
457 ms |
19260 KB |
Output is correct |
43 |
Correct |
539 ms |
25712 KB |
Output is correct |
44 |
Correct |
534 ms |
25828 KB |
Output is correct |
45 |
Correct |
608 ms |
30544 KB |
Output is correct |
46 |
Correct |
403 ms |
15188 KB |
Output is correct |
47 |
Correct |
408 ms |
15184 KB |
Output is correct |
48 |
Correct |
517 ms |
29620 KB |
Output is correct |
49 |
Correct |
502 ms |
21376 KB |
Output is correct |
50 |
Correct |
663 ms |
15044 KB |
Output is correct |
51 |
Correct |
663 ms |
14940 KB |
Output is correct |
52 |
Correct |
878 ms |
23816 KB |
Output is correct |
53 |
Correct |
817 ms |
22444 KB |
Output is correct |
54 |
Correct |
903 ms |
29160 KB |
Output is correct |
55 |
Correct |
900 ms |
26148 KB |
Output is correct |
56 |
Correct |
998 ms |
31540 KB |
Output is correct |
57 |
Correct |
849 ms |
20548 KB |
Output is correct |
58 |
Correct |
32 ms |
14940 KB |
Output is correct |
59 |
Correct |
44 ms |
14940 KB |
Output is correct |
60 |
Correct |
18 ms |
14940 KB |
Output is correct |
61 |
Correct |
153 ms |
15048 KB |
Output is correct |
62 |
Correct |
2 ms |
8796 KB |
Output is correct |
63 |
Correct |
749 ms |
15240 KB |
Output is correct |
64 |
Correct |
760 ms |
15040 KB |
Output is correct |
65 |
Correct |
752 ms |
15292 KB |
Output is correct |
66 |
Correct |
762 ms |
15416 KB |
Output is correct |
67 |
Correct |
674 ms |
15048 KB |
Output is correct |
68 |
Correct |
683 ms |
15188 KB |
Output is correct |
69 |
Correct |
528 ms |
18468 KB |
Output is correct |
70 |
Correct |
493 ms |
19196 KB |
Output is correct |
71 |
Correct |
582 ms |
25712 KB |
Output is correct |
72 |
Correct |
547 ms |
25768 KB |
Output is correct |
73 |
Correct |
655 ms |
31136 KB |
Output is correct |
74 |
Correct |
428 ms |
15188 KB |
Output is correct |
75 |
Correct |
429 ms |
15056 KB |
Output is correct |
76 |
Correct |
537 ms |
27824 KB |
Output is correct |
77 |
Correct |
517 ms |
21472 KB |
Output is correct |
78 |
Correct |
524 ms |
20656 KB |
Output is correct |
79 |
Correct |
484 ms |
18820 KB |
Output is correct |
80 |
Correct |
624 ms |
26148 KB |
Output is correct |
81 |
Correct |
550 ms |
26100 KB |
Output is correct |
82 |
Correct |
594 ms |
28068 KB |
Output is correct |
83 |
Correct |
914 ms |
23808 KB |
Output is correct |
84 |
Correct |
819 ms |
22468 KB |
Output is correct |
85 |
Correct |
919 ms |
27516 KB |
Output is correct |
86 |
Correct |
915 ms |
27800 KB |
Output is correct |
87 |
Correct |
984 ms |
28856 KB |
Output is correct |
88 |
Correct |
848 ms |
20516 KB |
Output is correct |
89 |
Correct |
845 ms |
21172 KB |
Output is correct |
90 |
Correct |
864 ms |
21116 KB |
Output is correct |
91 |
Correct |
865 ms |
30796 KB |
Output is correct |
92 |
Correct |
998 ms |
31228 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
155 ms |
15036 KB |
Output is correct |
2 |
Correct |
519 ms |
18540 KB |
Output is correct |
3 |
Correct |
453 ms |
18980 KB |
Output is correct |
4 |
Correct |
540 ms |
25716 KB |
Output is correct |
5 |
Correct |
533 ms |
25868 KB |
Output is correct |
6 |
Correct |
596 ms |
28528 KB |
Output is correct |
7 |
Correct |
407 ms |
15296 KB |
Output is correct |
8 |
Correct |
398 ms |
14940 KB |
Output is correct |
9 |
Correct |
511 ms |
27804 KB |
Output is correct |
10 |
Correct |
491 ms |
21436 KB |
Output is correct |
11 |
Correct |
153 ms |
14936 KB |
Output is correct |
12 |
Correct |
523 ms |
18532 KB |
Output is correct |
13 |
Correct |
457 ms |
19260 KB |
Output is correct |
14 |
Correct |
539 ms |
25712 KB |
Output is correct |
15 |
Correct |
534 ms |
25828 KB |
Output is correct |
16 |
Correct |
608 ms |
30544 KB |
Output is correct |
17 |
Correct |
403 ms |
15188 KB |
Output is correct |
18 |
Correct |
408 ms |
15184 KB |
Output is correct |
19 |
Correct |
517 ms |
29620 KB |
Output is correct |
20 |
Correct |
502 ms |
21376 KB |
Output is correct |
21 |
Correct |
663 ms |
15044 KB |
Output is correct |
22 |
Correct |
663 ms |
14940 KB |
Output is correct |
23 |
Correct |
878 ms |
23816 KB |
Output is correct |
24 |
Correct |
817 ms |
22444 KB |
Output is correct |
25 |
Correct |
903 ms |
29160 KB |
Output is correct |
26 |
Correct |
900 ms |
26148 KB |
Output is correct |
27 |
Correct |
998 ms |
31540 KB |
Output is correct |
28 |
Correct |
849 ms |
20548 KB |
Output is correct |
29 |
Correct |
154 ms |
14940 KB |
Output is correct |
30 |
Correct |
507 ms |
18536 KB |
Output is correct |
31 |
Correct |
450 ms |
19072 KB |
Output is correct |
32 |
Correct |
539 ms |
25832 KB |
Output is correct |
33 |
Correct |
518 ms |
25868 KB |
Output is correct |
34 |
Correct |
586 ms |
31352 KB |
Output is correct |
35 |
Correct |
390 ms |
15300 KB |
Output is correct |
36 |
Correct |
388 ms |
15044 KB |
Output is correct |
37 |
Correct |
509 ms |
27968 KB |
Output is correct |
38 |
Correct |
486 ms |
21520 KB |
Output is correct |
39 |
Correct |
643 ms |
14940 KB |
Output is correct |
40 |
Correct |
651 ms |
14940 KB |
Output is correct |
41 |
Correct |
866 ms |
23828 KB |
Output is correct |
42 |
Correct |
808 ms |
22484 KB |
Output is correct |
43 |
Correct |
903 ms |
29924 KB |
Output is correct |
44 |
Correct |
908 ms |
26248 KB |
Output is correct |
45 |
Correct |
959 ms |
30272 KB |
Output is correct |
46 |
Correct |
867 ms |
20532 KB |
Output is correct |
47 |
Correct |
1286 ms |
15296 KB |
Output is correct |
48 |
Correct |
1312 ms |
15052 KB |
Output is correct |
49 |
Correct |
1753 ms |
29048 KB |
Output is correct |
50 |
Correct |
1606 ms |
19176 KB |
Output is correct |
51 |
Correct |
1777 ms |
30252 KB |
Output is correct |
52 |
Correct |
1814 ms |
25716 KB |
Output is correct |
53 |
Correct |
1945 ms |
28988 KB |
Output is correct |
54 |
Correct |
1723 ms |
21524 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
32 ms |
14940 KB |
Output is correct |
2 |
Correct |
44 ms |
14936 KB |
Output is correct |
3 |
Correct |
17 ms |
15192 KB |
Output is correct |
4 |
Correct |
156 ms |
14940 KB |
Output is correct |
5 |
Correct |
1 ms |
8796 KB |
Output is correct |
6 |
Correct |
757 ms |
15248 KB |
Output is correct |
7 |
Correct |
760 ms |
15188 KB |
Output is correct |
8 |
Correct |
765 ms |
15260 KB |
Output is correct |
9 |
Correct |
766 ms |
15492 KB |
Output is correct |
10 |
Correct |
663 ms |
14940 KB |
Output is correct |
11 |
Correct |
647 ms |
14936 KB |
Output is correct |
12 |
Correct |
31 ms |
14940 KB |
Output is correct |
13 |
Correct |
45 ms |
14940 KB |
Output is correct |
14 |
Correct |
17 ms |
14936 KB |
Output is correct |
15 |
Correct |
152 ms |
15044 KB |
Output is correct |
16 |
Correct |
2 ms |
8792 KB |
Output is correct |
17 |
Correct |
759 ms |
15288 KB |
Output is correct |
18 |
Correct |
748 ms |
15052 KB |
Output is correct |
19 |
Correct |
756 ms |
15264 KB |
Output is correct |
20 |
Correct |
765 ms |
15496 KB |
Output is correct |
21 |
Correct |
660 ms |
14940 KB |
Output is correct |
22 |
Correct |
662 ms |
15040 KB |
Output is correct |
23 |
Correct |
1 ms |
8792 KB |
Output is correct |
24 |
Correct |
1585 ms |
16704 KB |
Output is correct |
25 |
Correct |
1554 ms |
15472 KB |
Output is correct |
26 |
Correct |
1622 ms |
18076 KB |
Output is correct |
27 |
Correct |
1641 ms |
17880 KB |
Output is correct |
28 |
Correct |
1311 ms |
15056 KB |
Output is correct |
29 |
Correct |
1289 ms |
14940 KB |
Output is correct |
30 |
Correct |
155 ms |
15036 KB |
Output is correct |
31 |
Correct |
519 ms |
18540 KB |
Output is correct |
32 |
Correct |
453 ms |
18980 KB |
Output is correct |
33 |
Correct |
540 ms |
25716 KB |
Output is correct |
34 |
Correct |
533 ms |
25868 KB |
Output is correct |
35 |
Correct |
596 ms |
28528 KB |
Output is correct |
36 |
Correct |
407 ms |
15296 KB |
Output is correct |
37 |
Correct |
398 ms |
14940 KB |
Output is correct |
38 |
Correct |
511 ms |
27804 KB |
Output is correct |
39 |
Correct |
491 ms |
21436 KB |
Output is correct |
40 |
Correct |
31 ms |
14936 KB |
Output is correct |
41 |
Correct |
45 ms |
14940 KB |
Output is correct |
42 |
Correct |
17 ms |
14936 KB |
Output is correct |
43 |
Correct |
153 ms |
15036 KB |
Output is correct |
44 |
Correct |
519 ms |
18568 KB |
Output is correct |
45 |
Correct |
449 ms |
19100 KB |
Output is correct |
46 |
Correct |
534 ms |
25732 KB |
Output is correct |
47 |
Correct |
520 ms |
25876 KB |
Output is correct |
48 |
Correct |
593 ms |
31352 KB |
Output is correct |
49 |
Correct |
403 ms |
15296 KB |
Output is correct |
50 |
Correct |
440 ms |
15196 KB |
Output is correct |
51 |
Correct |
533 ms |
30588 KB |
Output is correct |
52 |
Correct |
502 ms |
21436 KB |
Output is correct |
53 |
Correct |
508 ms |
20652 KB |
Output is correct |
54 |
Correct |
460 ms |
18856 KB |
Output is correct |
55 |
Correct |
581 ms |
26128 KB |
Output is correct |
56 |
Correct |
526 ms |
26096 KB |
Output is correct |
57 |
Correct |
581 ms |
31100 KB |
Output is correct |
58 |
Correct |
153 ms |
14936 KB |
Output is correct |
59 |
Correct |
523 ms |
18532 KB |
Output is correct |
60 |
Correct |
457 ms |
19260 KB |
Output is correct |
61 |
Correct |
539 ms |
25712 KB |
Output is correct |
62 |
Correct |
534 ms |
25828 KB |
Output is correct |
63 |
Correct |
608 ms |
30544 KB |
Output is correct |
64 |
Correct |
403 ms |
15188 KB |
Output is correct |
65 |
Correct |
408 ms |
15184 KB |
Output is correct |
66 |
Correct |
517 ms |
29620 KB |
Output is correct |
67 |
Correct |
502 ms |
21376 KB |
Output is correct |
68 |
Correct |
663 ms |
15044 KB |
Output is correct |
69 |
Correct |
663 ms |
14940 KB |
Output is correct |
70 |
Correct |
878 ms |
23816 KB |
Output is correct |
71 |
Correct |
817 ms |
22444 KB |
Output is correct |
72 |
Correct |
903 ms |
29160 KB |
Output is correct |
73 |
Correct |
900 ms |
26148 KB |
Output is correct |
74 |
Correct |
998 ms |
31540 KB |
Output is correct |
75 |
Correct |
849 ms |
20548 KB |
Output is correct |
76 |
Correct |
32 ms |
14940 KB |
Output is correct |
77 |
Correct |
44 ms |
14940 KB |
Output is correct |
78 |
Correct |
18 ms |
14940 KB |
Output is correct |
79 |
Correct |
153 ms |
15048 KB |
Output is correct |
80 |
Correct |
2 ms |
8796 KB |
Output is correct |
81 |
Correct |
749 ms |
15240 KB |
Output is correct |
82 |
Correct |
760 ms |
15040 KB |
Output is correct |
83 |
Correct |
752 ms |
15292 KB |
Output is correct |
84 |
Correct |
762 ms |
15416 KB |
Output is correct |
85 |
Correct |
674 ms |
15048 KB |
Output is correct |
86 |
Correct |
683 ms |
15188 KB |
Output is correct |
87 |
Correct |
528 ms |
18468 KB |
Output is correct |
88 |
Correct |
493 ms |
19196 KB |
Output is correct |
89 |
Correct |
582 ms |
25712 KB |
Output is correct |
90 |
Correct |
547 ms |
25768 KB |
Output is correct |
91 |
Correct |
655 ms |
31136 KB |
Output is correct |
92 |
Correct |
428 ms |
15188 KB |
Output is correct |
93 |
Correct |
429 ms |
15056 KB |
Output is correct |
94 |
Correct |
537 ms |
27824 KB |
Output is correct |
95 |
Correct |
517 ms |
21472 KB |
Output is correct |
96 |
Correct |
524 ms |
20656 KB |
Output is correct |
97 |
Correct |
484 ms |
18820 KB |
Output is correct |
98 |
Correct |
624 ms |
26148 KB |
Output is correct |
99 |
Correct |
550 ms |
26100 KB |
Output is correct |
100 |
Correct |
594 ms |
28068 KB |
Output is correct |
101 |
Correct |
914 ms |
23808 KB |
Output is correct |
102 |
Correct |
819 ms |
22468 KB |
Output is correct |
103 |
Correct |
919 ms |
27516 KB |
Output is correct |
104 |
Correct |
915 ms |
27800 KB |
Output is correct |
105 |
Correct |
984 ms |
28856 KB |
Output is correct |
106 |
Correct |
848 ms |
20516 KB |
Output is correct |
107 |
Correct |
845 ms |
21172 KB |
Output is correct |
108 |
Correct |
864 ms |
21116 KB |
Output is correct |
109 |
Correct |
865 ms |
30796 KB |
Output is correct |
110 |
Correct |
998 ms |
31228 KB |
Output is correct |
111 |
Correct |
154 ms |
14940 KB |
Output is correct |
112 |
Correct |
507 ms |
18536 KB |
Output is correct |
113 |
Correct |
450 ms |
19072 KB |
Output is correct |
114 |
Correct |
539 ms |
25832 KB |
Output is correct |
115 |
Correct |
518 ms |
25868 KB |
Output is correct |
116 |
Correct |
586 ms |
31352 KB |
Output is correct |
117 |
Correct |
390 ms |
15300 KB |
Output is correct |
118 |
Correct |
388 ms |
15044 KB |
Output is correct |
119 |
Correct |
509 ms |
27968 KB |
Output is correct |
120 |
Correct |
486 ms |
21520 KB |
Output is correct |
121 |
Correct |
643 ms |
14940 KB |
Output is correct |
122 |
Correct |
651 ms |
14940 KB |
Output is correct |
123 |
Correct |
866 ms |
23828 KB |
Output is correct |
124 |
Correct |
808 ms |
22484 KB |
Output is correct |
125 |
Correct |
903 ms |
29924 KB |
Output is correct |
126 |
Correct |
908 ms |
26248 KB |
Output is correct |
127 |
Correct |
959 ms |
30272 KB |
Output is correct |
128 |
Correct |
867 ms |
20532 KB |
Output is correct |
129 |
Correct |
1286 ms |
15296 KB |
Output is correct |
130 |
Correct |
1312 ms |
15052 KB |
Output is correct |
131 |
Correct |
1753 ms |
29048 KB |
Output is correct |
132 |
Correct |
1606 ms |
19176 KB |
Output is correct |
133 |
Correct |
1777 ms |
30252 KB |
Output is correct |
134 |
Correct |
1814 ms |
25716 KB |
Output is correct |
135 |
Correct |
1945 ms |
28988 KB |
Output is correct |
136 |
Correct |
1723 ms |
21524 KB |
Output is correct |
137 |
Correct |
31 ms |
14940 KB |
Output is correct |
138 |
Correct |
43 ms |
14940 KB |
Output is correct |
139 |
Correct |
16 ms |
14936 KB |
Output is correct |
140 |
Correct |
158 ms |
15048 KB |
Output is correct |
141 |
Correct |
1 ms |
8796 KB |
Output is correct |
142 |
Correct |
753 ms |
15240 KB |
Output is correct |
143 |
Correct |
754 ms |
15156 KB |
Output is correct |
144 |
Correct |
751 ms |
15292 KB |
Output is correct |
145 |
Correct |
770 ms |
15488 KB |
Output is correct |
146 |
Correct |
665 ms |
14940 KB |
Output is correct |
147 |
Correct |
658 ms |
14940 KB |
Output is correct |
148 |
Correct |
1 ms |
8796 KB |
Output is correct |
149 |
Correct |
1581 ms |
16672 KB |
Output is correct |
150 |
Correct |
1531 ms |
15532 KB |
Output is correct |
151 |
Correct |
1585 ms |
18016 KB |
Output is correct |
152 |
Correct |
1639 ms |
17960 KB |
Output is correct |
153 |
Correct |
1318 ms |
15048 KB |
Output is correct |
154 |
Correct |
1276 ms |
14936 KB |
Output is correct |
155 |
Correct |
506 ms |
18536 KB |
Output is correct |
156 |
Correct |
455 ms |
19112 KB |
Output is correct |
157 |
Correct |
546 ms |
25716 KB |
Output is correct |
158 |
Correct |
550 ms |
25940 KB |
Output is correct |
159 |
Correct |
607 ms |
31040 KB |
Output is correct |
160 |
Correct |
409 ms |
15296 KB |
Output is correct |
161 |
Correct |
408 ms |
15188 KB |
Output is correct |
162 |
Correct |
522 ms |
30900 KB |
Output is correct |
163 |
Correct |
499 ms |
21592 KB |
Output is correct |
164 |
Correct |
878 ms |
23820 KB |
Output is correct |
165 |
Correct |
811 ms |
22408 KB |
Output is correct |
166 |
Correct |
908 ms |
28832 KB |
Output is correct |
167 |
Correct |
907 ms |
26196 KB |
Output is correct |
168 |
Correct |
989 ms |
28808 KB |
Output is correct |
169 |
Correct |
855 ms |
20464 KB |
Output is correct |
170 |
Correct |
525 ms |
20624 KB |
Output is correct |
171 |
Correct |
466 ms |
18844 KB |
Output is correct |
172 |
Correct |
585 ms |
26196 KB |
Output is correct |
173 |
Correct |
533 ms |
26096 KB |
Output is correct |
174 |
Correct |
583 ms |
28728 KB |
Output is correct |
175 |
Correct |
862 ms |
21168 KB |
Output is correct |
176 |
Correct |
876 ms |
21112 KB |
Output is correct |
177 |
Correct |
863 ms |
30644 KB |
Output is correct |
178 |
Correct |
1000 ms |
30352 KB |
Output is correct |
179 |
Correct |
1752 ms |
31200 KB |
Output is correct |
180 |
Correct |
1638 ms |
19084 KB |
Output is correct |
181 |
Correct |
1816 ms |
29176 KB |
Output is correct |
182 |
Correct |
1839 ms |
25724 KB |
Output is correct |
183 |
Correct |
1979 ms |
29940 KB |
Output is correct |
184 |
Correct |
1730 ms |
21660 KB |
Output is correct |
185 |
Correct |
1731 ms |
26140 KB |
Output is correct |
186 |
Correct |
1815 ms |
27504 KB |
Output is correct |
187 |
Correct |
2125 ms |
26180 KB |
Output is correct |
188 |
Correct |
2037 ms |
27736 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
155 ms |
15036 KB |
Output is correct |
2 |
Correct |
519 ms |
18540 KB |
Output is correct |
3 |
Correct |
453 ms |
18980 KB |
Output is correct |
4 |
Correct |
540 ms |
25716 KB |
Output is correct |
5 |
Correct |
533 ms |
25868 KB |
Output is correct |
6 |
Correct |
596 ms |
28528 KB |
Output is correct |
7 |
Correct |
407 ms |
15296 KB |
Output is correct |
8 |
Correct |
398 ms |
14940 KB |
Output is correct |
9 |
Correct |
511 ms |
27804 KB |
Output is correct |
10 |
Correct |
491 ms |
21436 KB |
Output is correct |
11 |
Correct |
153 ms |
14936 KB |
Output is correct |
12 |
Correct |
523 ms |
18532 KB |
Output is correct |
13 |
Correct |
457 ms |
19260 KB |
Output is correct |
14 |
Correct |
539 ms |
25712 KB |
Output is correct |
15 |
Correct |
534 ms |
25828 KB |
Output is correct |
16 |
Correct |
608 ms |
30544 KB |
Output is correct |
17 |
Correct |
403 ms |
15188 KB |
Output is correct |
18 |
Correct |
408 ms |
15184 KB |
Output is correct |
19 |
Correct |
517 ms |
29620 KB |
Output is correct |
20 |
Correct |
502 ms |
21376 KB |
Output is correct |
21 |
Correct |
663 ms |
15044 KB |
Output is correct |
22 |
Correct |
663 ms |
14940 KB |
Output is correct |
23 |
Correct |
878 ms |
23816 KB |
Output is correct |
24 |
Correct |
817 ms |
22444 KB |
Output is correct |
25 |
Correct |
903 ms |
29160 KB |
Output is correct |
26 |
Correct |
900 ms |
26148 KB |
Output is correct |
27 |
Correct |
998 ms |
31540 KB |
Output is correct |
28 |
Correct |
849 ms |
20548 KB |
Output is correct |
29 |
Correct |
154 ms |
14940 KB |
Output is correct |
30 |
Correct |
507 ms |
18536 KB |
Output is correct |
31 |
Correct |
450 ms |
19072 KB |
Output is correct |
32 |
Correct |
539 ms |
25832 KB |
Output is correct |
33 |
Correct |
518 ms |
25868 KB |
Output is correct |
34 |
Correct |
586 ms |
31352 KB |
Output is correct |
35 |
Correct |
390 ms |
15300 KB |
Output is correct |
36 |
Correct |
388 ms |
15044 KB |
Output is correct |
37 |
Correct |
509 ms |
27968 KB |
Output is correct |
38 |
Correct |
486 ms |
21520 KB |
Output is correct |
39 |
Correct |
643 ms |
14940 KB |
Output is correct |
40 |
Correct |
651 ms |
14940 KB |
Output is correct |
41 |
Correct |
866 ms |
23828 KB |
Output is correct |
42 |
Correct |
808 ms |
22484 KB |
Output is correct |
43 |
Correct |
903 ms |
29924 KB |
Output is correct |
44 |
Correct |
908 ms |
26248 KB |
Output is correct |
45 |
Correct |
959 ms |
30272 KB |
Output is correct |
46 |
Correct |
867 ms |
20532 KB |
Output is correct |
47 |
Correct |
1286 ms |
15296 KB |
Output is correct |
48 |
Correct |
1312 ms |
15052 KB |
Output is correct |
49 |
Correct |
1753 ms |
29048 KB |
Output is correct |
50 |
Correct |
1606 ms |
19176 KB |
Output is correct |
51 |
Correct |
1777 ms |
30252 KB |
Output is correct |
52 |
Correct |
1814 ms |
25716 KB |
Output is correct |
53 |
Correct |
1945 ms |
28988 KB |
Output is correct |
54 |
Correct |
1723 ms |
21524 KB |
Output is correct |
55 |
Correct |
155 ms |
14940 KB |
Output is correct |
56 |
Correct |
516 ms |
18572 KB |
Output is correct |
57 |
Correct |
454 ms |
19108 KB |
Output is correct |
58 |
Correct |
541 ms |
25840 KB |
Output is correct |
59 |
Correct |
542 ms |
25892 KB |
Output is correct |
60 |
Correct |
598 ms |
28716 KB |
Output is correct |
61 |
Correct |
398 ms |
15184 KB |
Output is correct |
62 |
Correct |
399 ms |
15040 KB |
Output is correct |
63 |
Correct |
525 ms |
29460 KB |
Output is correct |
64 |
Correct |
500 ms |
21504 KB |
Output is correct |
65 |
Correct |
652 ms |
15192 KB |
Output is correct |
66 |
Correct |
666 ms |
14936 KB |
Output is correct |
67 |
Correct |
880 ms |
23828 KB |
Output is correct |
68 |
Correct |
814 ms |
22476 KB |
Output is correct |
69 |
Correct |
916 ms |
29960 KB |
Output is correct |
70 |
Correct |
908 ms |
26200 KB |
Output is correct |
71 |
Correct |
1038 ms |
28340 KB |
Output is correct |
72 |
Correct |
861 ms |
20456 KB |
Output is correct |
73 |
Correct |
1292 ms |
14936 KB |
Output is correct |
74 |
Correct |
1294 ms |
15060 KB |
Output is correct |
75 |
Correct |
1785 ms |
31344 KB |
Output is correct |
76 |
Correct |
1615 ms |
19204 KB |
Output is correct |
77 |
Correct |
1787 ms |
29584 KB |
Output is correct |
78 |
Correct |
1836 ms |
25716 KB |
Output is correct |
79 |
Correct |
1992 ms |
28396 KB |
Output is correct |
80 |
Correct |
1734 ms |
21476 KB |
Output is correct |
81 |
Execution timed out |
5025 ms |
21396 KB |
Time limit exceeded |
82 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
32 ms |
14940 KB |
Output is correct |
2 |
Correct |
44 ms |
14936 KB |
Output is correct |
3 |
Correct |
17 ms |
15192 KB |
Output is correct |
4 |
Correct |
156 ms |
14940 KB |
Output is correct |
5 |
Correct |
1 ms |
8796 KB |
Output is correct |
6 |
Correct |
757 ms |
15248 KB |
Output is correct |
7 |
Correct |
760 ms |
15188 KB |
Output is correct |
8 |
Correct |
765 ms |
15260 KB |
Output is correct |
9 |
Correct |
766 ms |
15492 KB |
Output is correct |
10 |
Correct |
663 ms |
14940 KB |
Output is correct |
11 |
Correct |
647 ms |
14936 KB |
Output is correct |
12 |
Correct |
31 ms |
14940 KB |
Output is correct |
13 |
Correct |
45 ms |
14940 KB |
Output is correct |
14 |
Correct |
17 ms |
14936 KB |
Output is correct |
15 |
Correct |
152 ms |
15044 KB |
Output is correct |
16 |
Correct |
2 ms |
8792 KB |
Output is correct |
17 |
Correct |
759 ms |
15288 KB |
Output is correct |
18 |
Correct |
748 ms |
15052 KB |
Output is correct |
19 |
Correct |
756 ms |
15264 KB |
Output is correct |
20 |
Correct |
765 ms |
15496 KB |
Output is correct |
21 |
Correct |
660 ms |
14940 KB |
Output is correct |
22 |
Correct |
662 ms |
15040 KB |
Output is correct |
23 |
Correct |
1 ms |
8792 KB |
Output is correct |
24 |
Correct |
1585 ms |
16704 KB |
Output is correct |
25 |
Correct |
1554 ms |
15472 KB |
Output is correct |
26 |
Correct |
1622 ms |
18076 KB |
Output is correct |
27 |
Correct |
1641 ms |
17880 KB |
Output is correct |
28 |
Correct |
1311 ms |
15056 KB |
Output is correct |
29 |
Correct |
1289 ms |
14940 KB |
Output is correct |
30 |
Correct |
155 ms |
15036 KB |
Output is correct |
31 |
Correct |
519 ms |
18540 KB |
Output is correct |
32 |
Correct |
453 ms |
18980 KB |
Output is correct |
33 |
Correct |
540 ms |
25716 KB |
Output is correct |
34 |
Correct |
533 ms |
25868 KB |
Output is correct |
35 |
Correct |
596 ms |
28528 KB |
Output is correct |
36 |
Correct |
407 ms |
15296 KB |
Output is correct |
37 |
Correct |
398 ms |
14940 KB |
Output is correct |
38 |
Correct |
511 ms |
27804 KB |
Output is correct |
39 |
Correct |
491 ms |
21436 KB |
Output is correct |
40 |
Correct |
31 ms |
14936 KB |
Output is correct |
41 |
Correct |
45 ms |
14940 KB |
Output is correct |
42 |
Correct |
17 ms |
14936 KB |
Output is correct |
43 |
Correct |
153 ms |
15036 KB |
Output is correct |
44 |
Correct |
519 ms |
18568 KB |
Output is correct |
45 |
Correct |
449 ms |
19100 KB |
Output is correct |
46 |
Correct |
534 ms |
25732 KB |
Output is correct |
47 |
Correct |
520 ms |
25876 KB |
Output is correct |
48 |
Correct |
593 ms |
31352 KB |
Output is correct |
49 |
Correct |
403 ms |
15296 KB |
Output is correct |
50 |
Correct |
440 ms |
15196 KB |
Output is correct |
51 |
Correct |
533 ms |
30588 KB |
Output is correct |
52 |
Correct |
502 ms |
21436 KB |
Output is correct |
53 |
Correct |
508 ms |
20652 KB |
Output is correct |
54 |
Correct |
460 ms |
18856 KB |
Output is correct |
55 |
Correct |
581 ms |
26128 KB |
Output is correct |
56 |
Correct |
526 ms |
26096 KB |
Output is correct |
57 |
Correct |
581 ms |
31100 KB |
Output is correct |
58 |
Correct |
153 ms |
14936 KB |
Output is correct |
59 |
Correct |
523 ms |
18532 KB |
Output is correct |
60 |
Correct |
457 ms |
19260 KB |
Output is correct |
61 |
Correct |
539 ms |
25712 KB |
Output is correct |
62 |
Correct |
534 ms |
25828 KB |
Output is correct |
63 |
Correct |
608 ms |
30544 KB |
Output is correct |
64 |
Correct |
403 ms |
15188 KB |
Output is correct |
65 |
Correct |
408 ms |
15184 KB |
Output is correct |
66 |
Correct |
517 ms |
29620 KB |
Output is correct |
67 |
Correct |
502 ms |
21376 KB |
Output is correct |
68 |
Correct |
663 ms |
15044 KB |
Output is correct |
69 |
Correct |
663 ms |
14940 KB |
Output is correct |
70 |
Correct |
878 ms |
23816 KB |
Output is correct |
71 |
Correct |
817 ms |
22444 KB |
Output is correct |
72 |
Correct |
903 ms |
29160 KB |
Output is correct |
73 |
Correct |
900 ms |
26148 KB |
Output is correct |
74 |
Correct |
998 ms |
31540 KB |
Output is correct |
75 |
Correct |
849 ms |
20548 KB |
Output is correct |
76 |
Correct |
32 ms |
14940 KB |
Output is correct |
77 |
Correct |
44 ms |
14940 KB |
Output is correct |
78 |
Correct |
18 ms |
14940 KB |
Output is correct |
79 |
Correct |
153 ms |
15048 KB |
Output is correct |
80 |
Correct |
2 ms |
8796 KB |
Output is correct |
81 |
Correct |
749 ms |
15240 KB |
Output is correct |
82 |
Correct |
760 ms |
15040 KB |
Output is correct |
83 |
Correct |
752 ms |
15292 KB |
Output is correct |
84 |
Correct |
762 ms |
15416 KB |
Output is correct |
85 |
Correct |
674 ms |
15048 KB |
Output is correct |
86 |
Correct |
683 ms |
15188 KB |
Output is correct |
87 |
Correct |
528 ms |
18468 KB |
Output is correct |
88 |
Correct |
493 ms |
19196 KB |
Output is correct |
89 |
Correct |
582 ms |
25712 KB |
Output is correct |
90 |
Correct |
547 ms |
25768 KB |
Output is correct |
91 |
Correct |
655 ms |
31136 KB |
Output is correct |
92 |
Correct |
428 ms |
15188 KB |
Output is correct |
93 |
Correct |
429 ms |
15056 KB |
Output is correct |
94 |
Correct |
537 ms |
27824 KB |
Output is correct |
95 |
Correct |
517 ms |
21472 KB |
Output is correct |
96 |
Correct |
524 ms |
20656 KB |
Output is correct |
97 |
Correct |
484 ms |
18820 KB |
Output is correct |
98 |
Correct |
624 ms |
26148 KB |
Output is correct |
99 |
Correct |
550 ms |
26100 KB |
Output is correct |
100 |
Correct |
594 ms |
28068 KB |
Output is correct |
101 |
Correct |
914 ms |
23808 KB |
Output is correct |
102 |
Correct |
819 ms |
22468 KB |
Output is correct |
103 |
Correct |
919 ms |
27516 KB |
Output is correct |
104 |
Correct |
915 ms |
27800 KB |
Output is correct |
105 |
Correct |
984 ms |
28856 KB |
Output is correct |
106 |
Correct |
848 ms |
20516 KB |
Output is correct |
107 |
Correct |
845 ms |
21172 KB |
Output is correct |
108 |
Correct |
864 ms |
21116 KB |
Output is correct |
109 |
Correct |
865 ms |
30796 KB |
Output is correct |
110 |
Correct |
998 ms |
31228 KB |
Output is correct |
111 |
Correct |
154 ms |
14940 KB |
Output is correct |
112 |
Correct |
507 ms |
18536 KB |
Output is correct |
113 |
Correct |
450 ms |
19072 KB |
Output is correct |
114 |
Correct |
539 ms |
25832 KB |
Output is correct |
115 |
Correct |
518 ms |
25868 KB |
Output is correct |
116 |
Correct |
586 ms |
31352 KB |
Output is correct |
117 |
Correct |
390 ms |
15300 KB |
Output is correct |
118 |
Correct |
388 ms |
15044 KB |
Output is correct |
119 |
Correct |
509 ms |
27968 KB |
Output is correct |
120 |
Correct |
486 ms |
21520 KB |
Output is correct |
121 |
Correct |
643 ms |
14940 KB |
Output is correct |
122 |
Correct |
651 ms |
14940 KB |
Output is correct |
123 |
Correct |
866 ms |
23828 KB |
Output is correct |
124 |
Correct |
808 ms |
22484 KB |
Output is correct |
125 |
Correct |
903 ms |
29924 KB |
Output is correct |
126 |
Correct |
908 ms |
26248 KB |
Output is correct |
127 |
Correct |
959 ms |
30272 KB |
Output is correct |
128 |
Correct |
867 ms |
20532 KB |
Output is correct |
129 |
Correct |
1286 ms |
15296 KB |
Output is correct |
130 |
Correct |
1312 ms |
15052 KB |
Output is correct |
131 |
Correct |
1753 ms |
29048 KB |
Output is correct |
132 |
Correct |
1606 ms |
19176 KB |
Output is correct |
133 |
Correct |
1777 ms |
30252 KB |
Output is correct |
134 |
Correct |
1814 ms |
25716 KB |
Output is correct |
135 |
Correct |
1945 ms |
28988 KB |
Output is correct |
136 |
Correct |
1723 ms |
21524 KB |
Output is correct |
137 |
Correct |
31 ms |
14940 KB |
Output is correct |
138 |
Correct |
43 ms |
14940 KB |
Output is correct |
139 |
Correct |
16 ms |
14936 KB |
Output is correct |
140 |
Correct |
158 ms |
15048 KB |
Output is correct |
141 |
Correct |
1 ms |
8796 KB |
Output is correct |
142 |
Correct |
753 ms |
15240 KB |
Output is correct |
143 |
Correct |
754 ms |
15156 KB |
Output is correct |
144 |
Correct |
751 ms |
15292 KB |
Output is correct |
145 |
Correct |
770 ms |
15488 KB |
Output is correct |
146 |
Correct |
665 ms |
14940 KB |
Output is correct |
147 |
Correct |
658 ms |
14940 KB |
Output is correct |
148 |
Correct |
1 ms |
8796 KB |
Output is correct |
149 |
Correct |
1581 ms |
16672 KB |
Output is correct |
150 |
Correct |
1531 ms |
15532 KB |
Output is correct |
151 |
Correct |
1585 ms |
18016 KB |
Output is correct |
152 |
Correct |
1639 ms |
17960 KB |
Output is correct |
153 |
Correct |
1318 ms |
15048 KB |
Output is correct |
154 |
Correct |
1276 ms |
14936 KB |
Output is correct |
155 |
Correct |
506 ms |
18536 KB |
Output is correct |
156 |
Correct |
455 ms |
19112 KB |
Output is correct |
157 |
Correct |
546 ms |
25716 KB |
Output is correct |
158 |
Correct |
550 ms |
25940 KB |
Output is correct |
159 |
Correct |
607 ms |
31040 KB |
Output is correct |
160 |
Correct |
409 ms |
15296 KB |
Output is correct |
161 |
Correct |
408 ms |
15188 KB |
Output is correct |
162 |
Correct |
522 ms |
30900 KB |
Output is correct |
163 |
Correct |
499 ms |
21592 KB |
Output is correct |
164 |
Correct |
878 ms |
23820 KB |
Output is correct |
165 |
Correct |
811 ms |
22408 KB |
Output is correct |
166 |
Correct |
908 ms |
28832 KB |
Output is correct |
167 |
Correct |
907 ms |
26196 KB |
Output is correct |
168 |
Correct |
989 ms |
28808 KB |
Output is correct |
169 |
Correct |
855 ms |
20464 KB |
Output is correct |
170 |
Correct |
525 ms |
20624 KB |
Output is correct |
171 |
Correct |
466 ms |
18844 KB |
Output is correct |
172 |
Correct |
585 ms |
26196 KB |
Output is correct |
173 |
Correct |
533 ms |
26096 KB |
Output is correct |
174 |
Correct |
583 ms |
28728 KB |
Output is correct |
175 |
Correct |
862 ms |
21168 KB |
Output is correct |
176 |
Correct |
876 ms |
21112 KB |
Output is correct |
177 |
Correct |
863 ms |
30644 KB |
Output is correct |
178 |
Correct |
1000 ms |
30352 KB |
Output is correct |
179 |
Correct |
1752 ms |
31200 KB |
Output is correct |
180 |
Correct |
1638 ms |
19084 KB |
Output is correct |
181 |
Correct |
1816 ms |
29176 KB |
Output is correct |
182 |
Correct |
1839 ms |
25724 KB |
Output is correct |
183 |
Correct |
1979 ms |
29940 KB |
Output is correct |
184 |
Correct |
1730 ms |
21660 KB |
Output is correct |
185 |
Correct |
1731 ms |
26140 KB |
Output is correct |
186 |
Correct |
1815 ms |
27504 KB |
Output is correct |
187 |
Correct |
2125 ms |
26180 KB |
Output is correct |
188 |
Correct |
2037 ms |
27736 KB |
Output is correct |
189 |
Correct |
155 ms |
14940 KB |
Output is correct |
190 |
Correct |
516 ms |
18572 KB |
Output is correct |
191 |
Correct |
454 ms |
19108 KB |
Output is correct |
192 |
Correct |
541 ms |
25840 KB |
Output is correct |
193 |
Correct |
542 ms |
25892 KB |
Output is correct |
194 |
Correct |
598 ms |
28716 KB |
Output is correct |
195 |
Correct |
398 ms |
15184 KB |
Output is correct |
196 |
Correct |
399 ms |
15040 KB |
Output is correct |
197 |
Correct |
525 ms |
29460 KB |
Output is correct |
198 |
Correct |
500 ms |
21504 KB |
Output is correct |
199 |
Correct |
652 ms |
15192 KB |
Output is correct |
200 |
Correct |
666 ms |
14936 KB |
Output is correct |
201 |
Correct |
880 ms |
23828 KB |
Output is correct |
202 |
Correct |
814 ms |
22476 KB |
Output is correct |
203 |
Correct |
916 ms |
29960 KB |
Output is correct |
204 |
Correct |
908 ms |
26200 KB |
Output is correct |
205 |
Correct |
1038 ms |
28340 KB |
Output is correct |
206 |
Correct |
861 ms |
20456 KB |
Output is correct |
207 |
Correct |
1292 ms |
14936 KB |
Output is correct |
208 |
Correct |
1294 ms |
15060 KB |
Output is correct |
209 |
Correct |
1785 ms |
31344 KB |
Output is correct |
210 |
Correct |
1615 ms |
19204 KB |
Output is correct |
211 |
Correct |
1787 ms |
29584 KB |
Output is correct |
212 |
Correct |
1836 ms |
25716 KB |
Output is correct |
213 |
Correct |
1992 ms |
28396 KB |
Output is correct |
214 |
Correct |
1734 ms |
21476 KB |
Output is correct |
215 |
Execution timed out |
5025 ms |
21396 KB |
Time limit exceeded |
216 |
Halted |
0 ms |
0 KB |
- |