#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]-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) 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()) {
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
44 ms |
19036 KB |
Output is correct |
2 |
Correct |
35 ms |
19256 KB |
Output is correct |
3 |
Correct |
16 ms |
19036 KB |
Output is correct |
4 |
Correct |
96 ms |
19256 KB |
Output is correct |
5 |
Correct |
2 ms |
11096 KB |
Output is correct |
6 |
Correct |
986 ms |
19472 KB |
Output is correct |
7 |
Correct |
440 ms |
19284 KB |
Output is correct |
8 |
Correct |
991 ms |
19472 KB |
Output is correct |
9 |
Correct |
964 ms |
19572 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
50 ms |
19032 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
44 ms |
19036 KB |
Output is correct |
2 |
Correct |
35 ms |
19256 KB |
Output is correct |
3 |
Correct |
16 ms |
19036 KB |
Output is correct |
4 |
Correct |
96 ms |
19256 KB |
Output is correct |
5 |
Correct |
2 ms |
11096 KB |
Output is correct |
6 |
Correct |
986 ms |
19472 KB |
Output is correct |
7 |
Correct |
440 ms |
19284 KB |
Output is correct |
8 |
Correct |
991 ms |
19472 KB |
Output is correct |
9 |
Correct |
964 ms |
19572 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
50 ms |
19032 KB |
Output is correct |
12 |
Correct |
41 ms |
19036 KB |
Output is correct |
13 |
Correct |
31 ms |
19260 KB |
Output is correct |
14 |
Correct |
13 ms |
19260 KB |
Output is correct |
15 |
Correct |
92 ms |
19260 KB |
Output is correct |
16 |
Correct |
2 ms |
10844 KB |
Output is correct |
17 |
Correct |
975 ms |
19500 KB |
Output is correct |
18 |
Correct |
424 ms |
19268 KB |
Output is correct |
19 |
Correct |
940 ms |
19508 KB |
Output is correct |
20 |
Correct |
966 ms |
19568 KB |
Output is correct |
21 |
Correct |
24 ms |
19032 KB |
Output is correct |
22 |
Correct |
50 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10840 KB |
Output is correct |
24 |
Correct |
2008 ms |
20824 KB |
Output is correct |
25 |
Correct |
797 ms |
19676 KB |
Output is correct |
26 |
Correct |
2063 ms |
22136 KB |
Output is correct |
27 |
Correct |
2028 ms |
22216 KB |
Output is correct |
28 |
Correct |
22 ms |
19032 KB |
Output is correct |
29 |
Correct |
48 ms |
19260 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
94 ms |
19264 KB |
Output is correct |
2 |
Correct |
414 ms |
23104 KB |
Output is correct |
3 |
Correct |
115 ms |
26224 KB |
Output is correct |
4 |
Correct |
452 ms |
31844 KB |
Output is correct |
5 |
Correct |
434 ms |
31504 KB |
Output is correct |
6 |
Correct |
526 ms |
34172 KB |
Output is correct |
7 |
Correct |
24 ms |
19548 KB |
Output is correct |
8 |
Correct |
50 ms |
19032 KB |
Output is correct |
9 |
Correct |
295 ms |
33308 KB |
Output is correct |
10 |
Correct |
289 ms |
26160 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
94 ms |
19264 KB |
Output is correct |
2 |
Correct |
414 ms |
23104 KB |
Output is correct |
3 |
Correct |
115 ms |
26224 KB |
Output is correct |
4 |
Correct |
452 ms |
31844 KB |
Output is correct |
5 |
Correct |
434 ms |
31504 KB |
Output is correct |
6 |
Correct |
526 ms |
34172 KB |
Output is correct |
7 |
Correct |
24 ms |
19548 KB |
Output is correct |
8 |
Correct |
50 ms |
19032 KB |
Output is correct |
9 |
Correct |
295 ms |
33308 KB |
Output is correct |
10 |
Correct |
289 ms |
26160 KB |
Output is correct |
11 |
Correct |
40 ms |
19032 KB |
Output is correct |
12 |
Correct |
30 ms |
19036 KB |
Output is correct |
13 |
Correct |
13 ms |
19276 KB |
Output is correct |
14 |
Correct |
90 ms |
19252 KB |
Output is correct |
15 |
Correct |
410 ms |
23132 KB |
Output is correct |
16 |
Correct |
114 ms |
26248 KB |
Output is correct |
17 |
Correct |
454 ms |
31836 KB |
Output is correct |
18 |
Correct |
428 ms |
31504 KB |
Output is correct |
19 |
Correct |
520 ms |
33824 KB |
Output is correct |
20 |
Correct |
24 ms |
19544 KB |
Output is correct |
21 |
Correct |
50 ms |
19036 KB |
Output is correct |
22 |
Correct |
286 ms |
33248 KB |
Output is correct |
23 |
Correct |
288 ms |
26248 KB |
Output is correct |
24 |
Correct |
619 ms |
25260 KB |
Output is correct |
25 |
Correct |
234 ms |
25440 KB |
Output is correct |
26 |
Correct |
735 ms |
31940 KB |
Output is correct |
27 |
Correct |
641 ms |
31356 KB |
Output is correct |
28 |
Correct |
728 ms |
32532 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
94 ms |
19264 KB |
Output is correct |
2 |
Correct |
414 ms |
23104 KB |
Output is correct |
3 |
Correct |
115 ms |
26224 KB |
Output is correct |
4 |
Correct |
452 ms |
31844 KB |
Output is correct |
5 |
Correct |
434 ms |
31504 KB |
Output is correct |
6 |
Correct |
526 ms |
34172 KB |
Output is correct |
7 |
Correct |
24 ms |
19548 KB |
Output is correct |
8 |
Correct |
50 ms |
19032 KB |
Output is correct |
9 |
Correct |
295 ms |
33308 KB |
Output is correct |
10 |
Correct |
289 ms |
26160 KB |
Output is correct |
11 |
Correct |
97 ms |
19248 KB |
Output is correct |
12 |
Correct |
407 ms |
23156 KB |
Output is correct |
13 |
Correct |
115 ms |
26216 KB |
Output is correct |
14 |
Correct |
453 ms |
31860 KB |
Output is correct |
15 |
Correct |
426 ms |
31508 KB |
Output is correct |
16 |
Correct |
520 ms |
32528 KB |
Output is correct |
17 |
Correct |
25 ms |
19532 KB |
Output is correct |
18 |
Correct |
49 ms |
19252 KB |
Output is correct |
19 |
Correct |
297 ms |
34600 KB |
Output is correct |
20 |
Correct |
302 ms |
26252 KB |
Output is correct |
21 |
Correct |
22 ms |
19036 KB |
Output is correct |
22 |
Correct |
51 ms |
19256 KB |
Output is correct |
23 |
Correct |
699 ms |
28900 KB |
Output is correct |
24 |
Correct |
299 ms |
31708 KB |
Output is correct |
25 |
Correct |
725 ms |
35108 KB |
Output is correct |
26 |
Correct |
731 ms |
32076 KB |
Output is correct |
27 |
Correct |
857 ms |
34468 KB |
Output is correct |
28 |
Correct |
528 ms |
25028 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
44 ms |
19036 KB |
Output is correct |
2 |
Correct |
35 ms |
19256 KB |
Output is correct |
3 |
Correct |
16 ms |
19036 KB |
Output is correct |
4 |
Correct |
96 ms |
19256 KB |
Output is correct |
5 |
Correct |
2 ms |
11096 KB |
Output is correct |
6 |
Correct |
986 ms |
19472 KB |
Output is correct |
7 |
Correct |
440 ms |
19284 KB |
Output is correct |
8 |
Correct |
991 ms |
19472 KB |
Output is correct |
9 |
Correct |
964 ms |
19572 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
50 ms |
19032 KB |
Output is correct |
12 |
Correct |
94 ms |
19264 KB |
Output is correct |
13 |
Correct |
414 ms |
23104 KB |
Output is correct |
14 |
Correct |
115 ms |
26224 KB |
Output is correct |
15 |
Correct |
452 ms |
31844 KB |
Output is correct |
16 |
Correct |
434 ms |
31504 KB |
Output is correct |
17 |
Correct |
526 ms |
34172 KB |
Output is correct |
18 |
Correct |
24 ms |
19548 KB |
Output is correct |
19 |
Correct |
50 ms |
19032 KB |
Output is correct |
20 |
Correct |
295 ms |
33308 KB |
Output is correct |
21 |
Correct |
289 ms |
26160 KB |
Output is correct |
22 |
Correct |
40 ms |
19032 KB |
Output is correct |
23 |
Correct |
30 ms |
19036 KB |
Output is correct |
24 |
Correct |
13 ms |
19276 KB |
Output is correct |
25 |
Correct |
90 ms |
19252 KB |
Output is correct |
26 |
Correct |
410 ms |
23132 KB |
Output is correct |
27 |
Correct |
114 ms |
26248 KB |
Output is correct |
28 |
Correct |
454 ms |
31836 KB |
Output is correct |
29 |
Correct |
428 ms |
31504 KB |
Output is correct |
30 |
Correct |
520 ms |
33824 KB |
Output is correct |
31 |
Correct |
24 ms |
19544 KB |
Output is correct |
32 |
Correct |
50 ms |
19036 KB |
Output is correct |
33 |
Correct |
286 ms |
33248 KB |
Output is correct |
34 |
Correct |
288 ms |
26248 KB |
Output is correct |
35 |
Correct |
619 ms |
25260 KB |
Output is correct |
36 |
Correct |
234 ms |
25440 KB |
Output is correct |
37 |
Correct |
735 ms |
31940 KB |
Output is correct |
38 |
Correct |
641 ms |
31356 KB |
Output is correct |
39 |
Correct |
728 ms |
32532 KB |
Output is correct |
40 |
Correct |
97 ms |
19248 KB |
Output is correct |
41 |
Correct |
407 ms |
23156 KB |
Output is correct |
42 |
Correct |
115 ms |
26216 KB |
Output is correct |
43 |
Correct |
453 ms |
31860 KB |
Output is correct |
44 |
Correct |
426 ms |
31508 KB |
Output is correct |
45 |
Correct |
520 ms |
32528 KB |
Output is correct |
46 |
Correct |
25 ms |
19532 KB |
Output is correct |
47 |
Correct |
49 ms |
19252 KB |
Output is correct |
48 |
Correct |
297 ms |
34600 KB |
Output is correct |
49 |
Correct |
302 ms |
26252 KB |
Output is correct |
50 |
Correct |
22 ms |
19036 KB |
Output is correct |
51 |
Correct |
51 ms |
19256 KB |
Output is correct |
52 |
Correct |
699 ms |
28900 KB |
Output is correct |
53 |
Correct |
299 ms |
31708 KB |
Output is correct |
54 |
Correct |
725 ms |
35108 KB |
Output is correct |
55 |
Correct |
731 ms |
32076 KB |
Output is correct |
56 |
Correct |
857 ms |
34468 KB |
Output is correct |
57 |
Correct |
528 ms |
25028 KB |
Output is correct |
58 |
Correct |
39 ms |
19036 KB |
Output is correct |
59 |
Correct |
30 ms |
19036 KB |
Output is correct |
60 |
Correct |
13 ms |
19036 KB |
Output is correct |
61 |
Correct |
90 ms |
19272 KB |
Output is correct |
62 |
Correct |
2 ms |
10840 KB |
Output is correct |
63 |
Correct |
938 ms |
19496 KB |
Output is correct |
64 |
Correct |
419 ms |
19280 KB |
Output is correct |
65 |
Correct |
953 ms |
19476 KB |
Output is correct |
66 |
Correct |
964 ms |
19956 KB |
Output is correct |
67 |
Correct |
23 ms |
19036 KB |
Output is correct |
68 |
Correct |
48 ms |
19264 KB |
Output is correct |
69 |
Correct |
405 ms |
23124 KB |
Output is correct |
70 |
Correct |
119 ms |
26248 KB |
Output is correct |
71 |
Correct |
457 ms |
31788 KB |
Output is correct |
72 |
Correct |
426 ms |
31500 KB |
Output is correct |
73 |
Correct |
533 ms |
32560 KB |
Output is correct |
74 |
Correct |
25 ms |
19544 KB |
Output is correct |
75 |
Correct |
49 ms |
19036 KB |
Output is correct |
76 |
Correct |
296 ms |
33360 KB |
Output is correct |
77 |
Correct |
292 ms |
26252 KB |
Output is correct |
78 |
Correct |
650 ms |
25332 KB |
Output is correct |
79 |
Correct |
235 ms |
25440 KB |
Output is correct |
80 |
Correct |
744 ms |
31908 KB |
Output is correct |
81 |
Correct |
646 ms |
31384 KB |
Output is correct |
82 |
Correct |
747 ms |
32556 KB |
Output is correct |
83 |
Correct |
711 ms |
28888 KB |
Output is correct |
84 |
Correct |
302 ms |
31700 KB |
Output is correct |
85 |
Correct |
737 ms |
34384 KB |
Output is correct |
86 |
Correct |
740 ms |
31812 KB |
Output is correct |
87 |
Correct |
838 ms |
35604 KB |
Output is correct |
88 |
Correct |
527 ms |
25004 KB |
Output is correct |
89 |
Correct |
1081 ms |
25972 KB |
Output is correct |
90 |
Correct |
1091 ms |
29048 KB |
Output is correct |
91 |
Correct |
1067 ms |
34580 KB |
Output is correct |
92 |
Correct |
1252 ms |
35616 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
94 ms |
19264 KB |
Output is correct |
2 |
Correct |
414 ms |
23104 KB |
Output is correct |
3 |
Correct |
115 ms |
26224 KB |
Output is correct |
4 |
Correct |
452 ms |
31844 KB |
Output is correct |
5 |
Correct |
434 ms |
31504 KB |
Output is correct |
6 |
Correct |
526 ms |
34172 KB |
Output is correct |
7 |
Correct |
24 ms |
19548 KB |
Output is correct |
8 |
Correct |
50 ms |
19032 KB |
Output is correct |
9 |
Correct |
295 ms |
33308 KB |
Output is correct |
10 |
Correct |
289 ms |
26160 KB |
Output is correct |
11 |
Correct |
97 ms |
19248 KB |
Output is correct |
12 |
Correct |
407 ms |
23156 KB |
Output is correct |
13 |
Correct |
115 ms |
26216 KB |
Output is correct |
14 |
Correct |
453 ms |
31860 KB |
Output is correct |
15 |
Correct |
426 ms |
31508 KB |
Output is correct |
16 |
Correct |
520 ms |
32528 KB |
Output is correct |
17 |
Correct |
25 ms |
19532 KB |
Output is correct |
18 |
Correct |
49 ms |
19252 KB |
Output is correct |
19 |
Correct |
297 ms |
34600 KB |
Output is correct |
20 |
Correct |
302 ms |
26252 KB |
Output is correct |
21 |
Correct |
22 ms |
19036 KB |
Output is correct |
22 |
Correct |
51 ms |
19256 KB |
Output is correct |
23 |
Correct |
699 ms |
28900 KB |
Output is correct |
24 |
Correct |
299 ms |
31708 KB |
Output is correct |
25 |
Correct |
725 ms |
35108 KB |
Output is correct |
26 |
Correct |
731 ms |
32076 KB |
Output is correct |
27 |
Correct |
857 ms |
34468 KB |
Output is correct |
28 |
Correct |
528 ms |
25028 KB |
Output is correct |
29 |
Correct |
92 ms |
19032 KB |
Output is correct |
30 |
Correct |
412 ms |
23144 KB |
Output is correct |
31 |
Correct |
121 ms |
26240 KB |
Output is correct |
32 |
Correct |
446 ms |
31844 KB |
Output is correct |
33 |
Correct |
429 ms |
31492 KB |
Output is correct |
34 |
Correct |
518 ms |
35616 KB |
Output is correct |
35 |
Correct |
23 ms |
19292 KB |
Output is correct |
36 |
Correct |
54 ms |
19036 KB |
Output is correct |
37 |
Correct |
285 ms |
33008 KB |
Output is correct |
38 |
Correct |
297 ms |
26236 KB |
Output is correct |
39 |
Correct |
24 ms |
19036 KB |
Output is correct |
40 |
Correct |
48 ms |
19036 KB |
Output is correct |
41 |
Correct |
726 ms |
28908 KB |
Output is correct |
42 |
Correct |
312 ms |
31580 KB |
Output is correct |
43 |
Correct |
765 ms |
33424 KB |
Output is correct |
44 |
Correct |
798 ms |
31796 KB |
Output is correct |
45 |
Correct |
924 ms |
34068 KB |
Output is correct |
46 |
Correct |
571 ms |
25216 KB |
Output is correct |
47 |
Correct |
24 ms |
19268 KB |
Output is correct |
48 |
Correct |
50 ms |
19036 KB |
Output is correct |
49 |
Correct |
1461 ms |
35332 KB |
Output is correct |
50 |
Correct |
618 ms |
23580 KB |
Output is correct |
51 |
Correct |
1482 ms |
32644 KB |
Output is correct |
52 |
Correct |
1587 ms |
31072 KB |
Output is correct |
53 |
Correct |
1905 ms |
34108 KB |
Output is correct |
54 |
Correct |
1248 ms |
26296 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
44 ms |
19036 KB |
Output is correct |
2 |
Correct |
35 ms |
19256 KB |
Output is correct |
3 |
Correct |
16 ms |
19036 KB |
Output is correct |
4 |
Correct |
96 ms |
19256 KB |
Output is correct |
5 |
Correct |
2 ms |
11096 KB |
Output is correct |
6 |
Correct |
986 ms |
19472 KB |
Output is correct |
7 |
Correct |
440 ms |
19284 KB |
Output is correct |
8 |
Correct |
991 ms |
19472 KB |
Output is correct |
9 |
Correct |
964 ms |
19572 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
50 ms |
19032 KB |
Output is correct |
12 |
Correct |
41 ms |
19036 KB |
Output is correct |
13 |
Correct |
31 ms |
19260 KB |
Output is correct |
14 |
Correct |
13 ms |
19260 KB |
Output is correct |
15 |
Correct |
92 ms |
19260 KB |
Output is correct |
16 |
Correct |
2 ms |
10844 KB |
Output is correct |
17 |
Correct |
975 ms |
19500 KB |
Output is correct |
18 |
Correct |
424 ms |
19268 KB |
Output is correct |
19 |
Correct |
940 ms |
19508 KB |
Output is correct |
20 |
Correct |
966 ms |
19568 KB |
Output is correct |
21 |
Correct |
24 ms |
19032 KB |
Output is correct |
22 |
Correct |
50 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10840 KB |
Output is correct |
24 |
Correct |
2008 ms |
20824 KB |
Output is correct |
25 |
Correct |
797 ms |
19676 KB |
Output is correct |
26 |
Correct |
2063 ms |
22136 KB |
Output is correct |
27 |
Correct |
2028 ms |
22216 KB |
Output is correct |
28 |
Correct |
22 ms |
19032 KB |
Output is correct |
29 |
Correct |
48 ms |
19260 KB |
Output is correct |
30 |
Correct |
94 ms |
19264 KB |
Output is correct |
31 |
Correct |
414 ms |
23104 KB |
Output is correct |
32 |
Correct |
115 ms |
26224 KB |
Output is correct |
33 |
Correct |
452 ms |
31844 KB |
Output is correct |
34 |
Correct |
434 ms |
31504 KB |
Output is correct |
35 |
Correct |
526 ms |
34172 KB |
Output is correct |
36 |
Correct |
24 ms |
19548 KB |
Output is correct |
37 |
Correct |
50 ms |
19032 KB |
Output is correct |
38 |
Correct |
295 ms |
33308 KB |
Output is correct |
39 |
Correct |
289 ms |
26160 KB |
Output is correct |
40 |
Correct |
40 ms |
19032 KB |
Output is correct |
41 |
Correct |
30 ms |
19036 KB |
Output is correct |
42 |
Correct |
13 ms |
19276 KB |
Output is correct |
43 |
Correct |
90 ms |
19252 KB |
Output is correct |
44 |
Correct |
410 ms |
23132 KB |
Output is correct |
45 |
Correct |
114 ms |
26248 KB |
Output is correct |
46 |
Correct |
454 ms |
31836 KB |
Output is correct |
47 |
Correct |
428 ms |
31504 KB |
Output is correct |
48 |
Correct |
520 ms |
33824 KB |
Output is correct |
49 |
Correct |
24 ms |
19544 KB |
Output is correct |
50 |
Correct |
50 ms |
19036 KB |
Output is correct |
51 |
Correct |
286 ms |
33248 KB |
Output is correct |
52 |
Correct |
288 ms |
26248 KB |
Output is correct |
53 |
Correct |
619 ms |
25260 KB |
Output is correct |
54 |
Correct |
234 ms |
25440 KB |
Output is correct |
55 |
Correct |
735 ms |
31940 KB |
Output is correct |
56 |
Correct |
641 ms |
31356 KB |
Output is correct |
57 |
Correct |
728 ms |
32532 KB |
Output is correct |
58 |
Correct |
97 ms |
19248 KB |
Output is correct |
59 |
Correct |
407 ms |
23156 KB |
Output is correct |
60 |
Correct |
115 ms |
26216 KB |
Output is correct |
61 |
Correct |
453 ms |
31860 KB |
Output is correct |
62 |
Correct |
426 ms |
31508 KB |
Output is correct |
63 |
Correct |
520 ms |
32528 KB |
Output is correct |
64 |
Correct |
25 ms |
19532 KB |
Output is correct |
65 |
Correct |
49 ms |
19252 KB |
Output is correct |
66 |
Correct |
297 ms |
34600 KB |
Output is correct |
67 |
Correct |
302 ms |
26252 KB |
Output is correct |
68 |
Correct |
22 ms |
19036 KB |
Output is correct |
69 |
Correct |
51 ms |
19256 KB |
Output is correct |
70 |
Correct |
699 ms |
28900 KB |
Output is correct |
71 |
Correct |
299 ms |
31708 KB |
Output is correct |
72 |
Correct |
725 ms |
35108 KB |
Output is correct |
73 |
Correct |
731 ms |
32076 KB |
Output is correct |
74 |
Correct |
857 ms |
34468 KB |
Output is correct |
75 |
Correct |
528 ms |
25028 KB |
Output is correct |
76 |
Correct |
39 ms |
19036 KB |
Output is correct |
77 |
Correct |
30 ms |
19036 KB |
Output is correct |
78 |
Correct |
13 ms |
19036 KB |
Output is correct |
79 |
Correct |
90 ms |
19272 KB |
Output is correct |
80 |
Correct |
2 ms |
10840 KB |
Output is correct |
81 |
Correct |
938 ms |
19496 KB |
Output is correct |
82 |
Correct |
419 ms |
19280 KB |
Output is correct |
83 |
Correct |
953 ms |
19476 KB |
Output is correct |
84 |
Correct |
964 ms |
19956 KB |
Output is correct |
85 |
Correct |
23 ms |
19036 KB |
Output is correct |
86 |
Correct |
48 ms |
19264 KB |
Output is correct |
87 |
Correct |
405 ms |
23124 KB |
Output is correct |
88 |
Correct |
119 ms |
26248 KB |
Output is correct |
89 |
Correct |
457 ms |
31788 KB |
Output is correct |
90 |
Correct |
426 ms |
31500 KB |
Output is correct |
91 |
Correct |
533 ms |
32560 KB |
Output is correct |
92 |
Correct |
25 ms |
19544 KB |
Output is correct |
93 |
Correct |
49 ms |
19036 KB |
Output is correct |
94 |
Correct |
296 ms |
33360 KB |
Output is correct |
95 |
Correct |
292 ms |
26252 KB |
Output is correct |
96 |
Correct |
650 ms |
25332 KB |
Output is correct |
97 |
Correct |
235 ms |
25440 KB |
Output is correct |
98 |
Correct |
744 ms |
31908 KB |
Output is correct |
99 |
Correct |
646 ms |
31384 KB |
Output is correct |
100 |
Correct |
747 ms |
32556 KB |
Output is correct |
101 |
Correct |
711 ms |
28888 KB |
Output is correct |
102 |
Correct |
302 ms |
31700 KB |
Output is correct |
103 |
Correct |
737 ms |
34384 KB |
Output is correct |
104 |
Correct |
740 ms |
31812 KB |
Output is correct |
105 |
Correct |
838 ms |
35604 KB |
Output is correct |
106 |
Correct |
527 ms |
25004 KB |
Output is correct |
107 |
Correct |
1081 ms |
25972 KB |
Output is correct |
108 |
Correct |
1091 ms |
29048 KB |
Output is correct |
109 |
Correct |
1067 ms |
34580 KB |
Output is correct |
110 |
Correct |
1252 ms |
35616 KB |
Output is correct |
111 |
Correct |
92 ms |
19032 KB |
Output is correct |
112 |
Correct |
412 ms |
23144 KB |
Output is correct |
113 |
Correct |
121 ms |
26240 KB |
Output is correct |
114 |
Correct |
446 ms |
31844 KB |
Output is correct |
115 |
Correct |
429 ms |
31492 KB |
Output is correct |
116 |
Correct |
518 ms |
35616 KB |
Output is correct |
117 |
Correct |
23 ms |
19292 KB |
Output is correct |
118 |
Correct |
54 ms |
19036 KB |
Output is correct |
119 |
Correct |
285 ms |
33008 KB |
Output is correct |
120 |
Correct |
297 ms |
26236 KB |
Output is correct |
121 |
Correct |
24 ms |
19036 KB |
Output is correct |
122 |
Correct |
48 ms |
19036 KB |
Output is correct |
123 |
Correct |
726 ms |
28908 KB |
Output is correct |
124 |
Correct |
312 ms |
31580 KB |
Output is correct |
125 |
Correct |
765 ms |
33424 KB |
Output is correct |
126 |
Correct |
798 ms |
31796 KB |
Output is correct |
127 |
Correct |
924 ms |
34068 KB |
Output is correct |
128 |
Correct |
571 ms |
25216 KB |
Output is correct |
129 |
Correct |
24 ms |
19268 KB |
Output is correct |
130 |
Correct |
50 ms |
19036 KB |
Output is correct |
131 |
Correct |
1461 ms |
35332 KB |
Output is correct |
132 |
Correct |
618 ms |
23580 KB |
Output is correct |
133 |
Correct |
1482 ms |
32644 KB |
Output is correct |
134 |
Correct |
1587 ms |
31072 KB |
Output is correct |
135 |
Correct |
1905 ms |
34108 KB |
Output is correct |
136 |
Correct |
1248 ms |
26296 KB |
Output is correct |
137 |
Correct |
44 ms |
19032 KB |
Output is correct |
138 |
Correct |
34 ms |
19268 KB |
Output is correct |
139 |
Correct |
15 ms |
19036 KB |
Output is correct |
140 |
Correct |
96 ms |
19036 KB |
Output is correct |
141 |
Correct |
2 ms |
10840 KB |
Output is correct |
142 |
Correct |
1006 ms |
19464 KB |
Output is correct |
143 |
Correct |
413 ms |
19260 KB |
Output is correct |
144 |
Correct |
970 ms |
19492 KB |
Output is correct |
145 |
Correct |
959 ms |
19592 KB |
Output is correct |
146 |
Correct |
23 ms |
19032 KB |
Output is correct |
147 |
Correct |
49 ms |
19252 KB |
Output is correct |
148 |
Correct |
2 ms |
10840 KB |
Output is correct |
149 |
Correct |
2007 ms |
20932 KB |
Output is correct |
150 |
Correct |
804 ms |
19688 KB |
Output is correct |
151 |
Correct |
2073 ms |
22284 KB |
Output is correct |
152 |
Correct |
2061 ms |
22192 KB |
Output is correct |
153 |
Correct |
25 ms |
19036 KB |
Output is correct |
154 |
Correct |
48 ms |
19036 KB |
Output is correct |
155 |
Correct |
417 ms |
23124 KB |
Output is correct |
156 |
Correct |
120 ms |
26240 KB |
Output is correct |
157 |
Correct |
456 ms |
31832 KB |
Output is correct |
158 |
Correct |
426 ms |
31508 KB |
Output is correct |
159 |
Correct |
522 ms |
33832 KB |
Output is correct |
160 |
Correct |
25 ms |
19544 KB |
Output is correct |
161 |
Correct |
49 ms |
19268 KB |
Output is correct |
162 |
Correct |
303 ms |
35652 KB |
Output is correct |
163 |
Correct |
305 ms |
26236 KB |
Output is correct |
164 |
Correct |
721 ms |
29060 KB |
Output is correct |
165 |
Correct |
320 ms |
31712 KB |
Output is correct |
166 |
Correct |
747 ms |
34844 KB |
Output is correct |
167 |
Correct |
756 ms |
31928 KB |
Output is correct |
168 |
Correct |
879 ms |
35108 KB |
Output is correct |
169 |
Correct |
542 ms |
25180 KB |
Output is correct |
170 |
Correct |
635 ms |
25296 KB |
Output is correct |
171 |
Correct |
242 ms |
25436 KB |
Output is correct |
172 |
Correct |
742 ms |
31892 KB |
Output is correct |
173 |
Correct |
658 ms |
31384 KB |
Output is correct |
174 |
Correct |
745 ms |
34760 KB |
Output is correct |
175 |
Correct |
1082 ms |
26064 KB |
Output is correct |
176 |
Correct |
1081 ms |
29052 KB |
Output is correct |
177 |
Correct |
1084 ms |
35112 KB |
Output is correct |
178 |
Correct |
1264 ms |
34340 KB |
Output is correct |
179 |
Correct |
1388 ms |
32604 KB |
Output is correct |
180 |
Correct |
589 ms |
23660 KB |
Output is correct |
181 |
Correct |
1438 ms |
32708 KB |
Output is correct |
182 |
Correct |
1498 ms |
32212 KB |
Output is correct |
183 |
Correct |
1714 ms |
32724 KB |
Output is correct |
184 |
Correct |
1198 ms |
26304 KB |
Output is correct |
185 |
Correct |
2163 ms |
32108 KB |
Output is correct |
186 |
Correct |
2207 ms |
31080 KB |
Output is correct |
187 |
Correct |
2473 ms |
31852 KB |
Output is correct |
188 |
Correct |
2549 ms |
34076 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
94 ms |
19264 KB |
Output is correct |
2 |
Correct |
414 ms |
23104 KB |
Output is correct |
3 |
Correct |
115 ms |
26224 KB |
Output is correct |
4 |
Correct |
452 ms |
31844 KB |
Output is correct |
5 |
Correct |
434 ms |
31504 KB |
Output is correct |
6 |
Correct |
526 ms |
34172 KB |
Output is correct |
7 |
Correct |
24 ms |
19548 KB |
Output is correct |
8 |
Correct |
50 ms |
19032 KB |
Output is correct |
9 |
Correct |
295 ms |
33308 KB |
Output is correct |
10 |
Correct |
289 ms |
26160 KB |
Output is correct |
11 |
Correct |
97 ms |
19248 KB |
Output is correct |
12 |
Correct |
407 ms |
23156 KB |
Output is correct |
13 |
Correct |
115 ms |
26216 KB |
Output is correct |
14 |
Correct |
453 ms |
31860 KB |
Output is correct |
15 |
Correct |
426 ms |
31508 KB |
Output is correct |
16 |
Correct |
520 ms |
32528 KB |
Output is correct |
17 |
Correct |
25 ms |
19532 KB |
Output is correct |
18 |
Correct |
49 ms |
19252 KB |
Output is correct |
19 |
Correct |
297 ms |
34600 KB |
Output is correct |
20 |
Correct |
302 ms |
26252 KB |
Output is correct |
21 |
Correct |
22 ms |
19036 KB |
Output is correct |
22 |
Correct |
51 ms |
19256 KB |
Output is correct |
23 |
Correct |
699 ms |
28900 KB |
Output is correct |
24 |
Correct |
299 ms |
31708 KB |
Output is correct |
25 |
Correct |
725 ms |
35108 KB |
Output is correct |
26 |
Correct |
731 ms |
32076 KB |
Output is correct |
27 |
Correct |
857 ms |
34468 KB |
Output is correct |
28 |
Correct |
528 ms |
25028 KB |
Output is correct |
29 |
Correct |
92 ms |
19032 KB |
Output is correct |
30 |
Correct |
412 ms |
23144 KB |
Output is correct |
31 |
Correct |
121 ms |
26240 KB |
Output is correct |
32 |
Correct |
446 ms |
31844 KB |
Output is correct |
33 |
Correct |
429 ms |
31492 KB |
Output is correct |
34 |
Correct |
518 ms |
35616 KB |
Output is correct |
35 |
Correct |
23 ms |
19292 KB |
Output is correct |
36 |
Correct |
54 ms |
19036 KB |
Output is correct |
37 |
Correct |
285 ms |
33008 KB |
Output is correct |
38 |
Correct |
297 ms |
26236 KB |
Output is correct |
39 |
Correct |
24 ms |
19036 KB |
Output is correct |
40 |
Correct |
48 ms |
19036 KB |
Output is correct |
41 |
Correct |
726 ms |
28908 KB |
Output is correct |
42 |
Correct |
312 ms |
31580 KB |
Output is correct |
43 |
Correct |
765 ms |
33424 KB |
Output is correct |
44 |
Correct |
798 ms |
31796 KB |
Output is correct |
45 |
Correct |
924 ms |
34068 KB |
Output is correct |
46 |
Correct |
571 ms |
25216 KB |
Output is correct |
47 |
Correct |
24 ms |
19268 KB |
Output is correct |
48 |
Correct |
50 ms |
19036 KB |
Output is correct |
49 |
Correct |
1461 ms |
35332 KB |
Output is correct |
50 |
Correct |
618 ms |
23580 KB |
Output is correct |
51 |
Correct |
1482 ms |
32644 KB |
Output is correct |
52 |
Correct |
1587 ms |
31072 KB |
Output is correct |
53 |
Correct |
1905 ms |
34108 KB |
Output is correct |
54 |
Correct |
1248 ms |
26296 KB |
Output is correct |
55 |
Correct |
94 ms |
19032 KB |
Output is correct |
56 |
Correct |
410 ms |
23132 KB |
Output is correct |
57 |
Correct |
118 ms |
26236 KB |
Output is correct |
58 |
Correct |
470 ms |
32000 KB |
Output is correct |
59 |
Correct |
471 ms |
31504 KB |
Output is correct |
60 |
Correct |
559 ms |
35624 KB |
Output is correct |
61 |
Correct |
25 ms |
19548 KB |
Output is correct |
62 |
Correct |
56 ms |
19036 KB |
Output is correct |
63 |
Correct |
302 ms |
33416 KB |
Output is correct |
64 |
Correct |
310 ms |
26228 KB |
Output is correct |
65 |
Correct |
23 ms |
19036 KB |
Output is correct |
66 |
Correct |
48 ms |
19036 KB |
Output is correct |
67 |
Correct |
712 ms |
28872 KB |
Output is correct |
68 |
Correct |
304 ms |
31700 KB |
Output is correct |
69 |
Correct |
746 ms |
34372 KB |
Output is correct |
70 |
Correct |
741 ms |
31836 KB |
Output is correct |
71 |
Correct |
882 ms |
33944 KB |
Output is correct |
72 |
Correct |
540 ms |
24984 KB |
Output is correct |
73 |
Correct |
22 ms |
19032 KB |
Output is correct |
74 |
Correct |
46 ms |
19036 KB |
Output is correct |
75 |
Correct |
1412 ms |
33832 KB |
Output is correct |
76 |
Correct |
591 ms |
23656 KB |
Output is correct |
77 |
Correct |
1456 ms |
35608 KB |
Output is correct |
78 |
Correct |
1499 ms |
31076 KB |
Output is correct |
79 |
Correct |
1762 ms |
34076 KB |
Output is correct |
80 |
Correct |
1194 ms |
26292 KB |
Output is correct |
81 |
Correct |
4184 ms |
30028 KB |
Output is correct |
82 |
Correct |
1929 ms |
23088 KB |
Output is correct |
83 |
Correct |
4242 ms |
33280 KB |
Output is correct |
84 |
Incorrect |
4406 ms |
35620 KB |
Output isn't correct |
85 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
44 ms |
19036 KB |
Output is correct |
2 |
Correct |
35 ms |
19256 KB |
Output is correct |
3 |
Correct |
16 ms |
19036 KB |
Output is correct |
4 |
Correct |
96 ms |
19256 KB |
Output is correct |
5 |
Correct |
2 ms |
11096 KB |
Output is correct |
6 |
Correct |
986 ms |
19472 KB |
Output is correct |
7 |
Correct |
440 ms |
19284 KB |
Output is correct |
8 |
Correct |
991 ms |
19472 KB |
Output is correct |
9 |
Correct |
964 ms |
19572 KB |
Output is correct |
10 |
Correct |
23 ms |
19036 KB |
Output is correct |
11 |
Correct |
50 ms |
19032 KB |
Output is correct |
12 |
Correct |
41 ms |
19036 KB |
Output is correct |
13 |
Correct |
31 ms |
19260 KB |
Output is correct |
14 |
Correct |
13 ms |
19260 KB |
Output is correct |
15 |
Correct |
92 ms |
19260 KB |
Output is correct |
16 |
Correct |
2 ms |
10844 KB |
Output is correct |
17 |
Correct |
975 ms |
19500 KB |
Output is correct |
18 |
Correct |
424 ms |
19268 KB |
Output is correct |
19 |
Correct |
940 ms |
19508 KB |
Output is correct |
20 |
Correct |
966 ms |
19568 KB |
Output is correct |
21 |
Correct |
24 ms |
19032 KB |
Output is correct |
22 |
Correct |
50 ms |
19036 KB |
Output is correct |
23 |
Correct |
2 ms |
10840 KB |
Output is correct |
24 |
Correct |
2008 ms |
20824 KB |
Output is correct |
25 |
Correct |
797 ms |
19676 KB |
Output is correct |
26 |
Correct |
2063 ms |
22136 KB |
Output is correct |
27 |
Correct |
2028 ms |
22216 KB |
Output is correct |
28 |
Correct |
22 ms |
19032 KB |
Output is correct |
29 |
Correct |
48 ms |
19260 KB |
Output is correct |
30 |
Correct |
94 ms |
19264 KB |
Output is correct |
31 |
Correct |
414 ms |
23104 KB |
Output is correct |
32 |
Correct |
115 ms |
26224 KB |
Output is correct |
33 |
Correct |
452 ms |
31844 KB |
Output is correct |
34 |
Correct |
434 ms |
31504 KB |
Output is correct |
35 |
Correct |
526 ms |
34172 KB |
Output is correct |
36 |
Correct |
24 ms |
19548 KB |
Output is correct |
37 |
Correct |
50 ms |
19032 KB |
Output is correct |
38 |
Correct |
295 ms |
33308 KB |
Output is correct |
39 |
Correct |
289 ms |
26160 KB |
Output is correct |
40 |
Correct |
40 ms |
19032 KB |
Output is correct |
41 |
Correct |
30 ms |
19036 KB |
Output is correct |
42 |
Correct |
13 ms |
19276 KB |
Output is correct |
43 |
Correct |
90 ms |
19252 KB |
Output is correct |
44 |
Correct |
410 ms |
23132 KB |
Output is correct |
45 |
Correct |
114 ms |
26248 KB |
Output is correct |
46 |
Correct |
454 ms |
31836 KB |
Output is correct |
47 |
Correct |
428 ms |
31504 KB |
Output is correct |
48 |
Correct |
520 ms |
33824 KB |
Output is correct |
49 |
Correct |
24 ms |
19544 KB |
Output is correct |
50 |
Correct |
50 ms |
19036 KB |
Output is correct |
51 |
Correct |
286 ms |
33248 KB |
Output is correct |
52 |
Correct |
288 ms |
26248 KB |
Output is correct |
53 |
Correct |
619 ms |
25260 KB |
Output is correct |
54 |
Correct |
234 ms |
25440 KB |
Output is correct |
55 |
Correct |
735 ms |
31940 KB |
Output is correct |
56 |
Correct |
641 ms |
31356 KB |
Output is correct |
57 |
Correct |
728 ms |
32532 KB |
Output is correct |
58 |
Correct |
97 ms |
19248 KB |
Output is correct |
59 |
Correct |
407 ms |
23156 KB |
Output is correct |
60 |
Correct |
115 ms |
26216 KB |
Output is correct |
61 |
Correct |
453 ms |
31860 KB |
Output is correct |
62 |
Correct |
426 ms |
31508 KB |
Output is correct |
63 |
Correct |
520 ms |
32528 KB |
Output is correct |
64 |
Correct |
25 ms |
19532 KB |
Output is correct |
65 |
Correct |
49 ms |
19252 KB |
Output is correct |
66 |
Correct |
297 ms |
34600 KB |
Output is correct |
67 |
Correct |
302 ms |
26252 KB |
Output is correct |
68 |
Correct |
22 ms |
19036 KB |
Output is correct |
69 |
Correct |
51 ms |
19256 KB |
Output is correct |
70 |
Correct |
699 ms |
28900 KB |
Output is correct |
71 |
Correct |
299 ms |
31708 KB |
Output is correct |
72 |
Correct |
725 ms |
35108 KB |
Output is correct |
73 |
Correct |
731 ms |
32076 KB |
Output is correct |
74 |
Correct |
857 ms |
34468 KB |
Output is correct |
75 |
Correct |
528 ms |
25028 KB |
Output is correct |
76 |
Correct |
39 ms |
19036 KB |
Output is correct |
77 |
Correct |
30 ms |
19036 KB |
Output is correct |
78 |
Correct |
13 ms |
19036 KB |
Output is correct |
79 |
Correct |
90 ms |
19272 KB |
Output is correct |
80 |
Correct |
2 ms |
10840 KB |
Output is correct |
81 |
Correct |
938 ms |
19496 KB |
Output is correct |
82 |
Correct |
419 ms |
19280 KB |
Output is correct |
83 |
Correct |
953 ms |
19476 KB |
Output is correct |
84 |
Correct |
964 ms |
19956 KB |
Output is correct |
85 |
Correct |
23 ms |
19036 KB |
Output is correct |
86 |
Correct |
48 ms |
19264 KB |
Output is correct |
87 |
Correct |
405 ms |
23124 KB |
Output is correct |
88 |
Correct |
119 ms |
26248 KB |
Output is correct |
89 |
Correct |
457 ms |
31788 KB |
Output is correct |
90 |
Correct |
426 ms |
31500 KB |
Output is correct |
91 |
Correct |
533 ms |
32560 KB |
Output is correct |
92 |
Correct |
25 ms |
19544 KB |
Output is correct |
93 |
Correct |
49 ms |
19036 KB |
Output is correct |
94 |
Correct |
296 ms |
33360 KB |
Output is correct |
95 |
Correct |
292 ms |
26252 KB |
Output is correct |
96 |
Correct |
650 ms |
25332 KB |
Output is correct |
97 |
Correct |
235 ms |
25440 KB |
Output is correct |
98 |
Correct |
744 ms |
31908 KB |
Output is correct |
99 |
Correct |
646 ms |
31384 KB |
Output is correct |
100 |
Correct |
747 ms |
32556 KB |
Output is correct |
101 |
Correct |
711 ms |
28888 KB |
Output is correct |
102 |
Correct |
302 ms |
31700 KB |
Output is correct |
103 |
Correct |
737 ms |
34384 KB |
Output is correct |
104 |
Correct |
740 ms |
31812 KB |
Output is correct |
105 |
Correct |
838 ms |
35604 KB |
Output is correct |
106 |
Correct |
527 ms |
25004 KB |
Output is correct |
107 |
Correct |
1081 ms |
25972 KB |
Output is correct |
108 |
Correct |
1091 ms |
29048 KB |
Output is correct |
109 |
Correct |
1067 ms |
34580 KB |
Output is correct |
110 |
Correct |
1252 ms |
35616 KB |
Output is correct |
111 |
Correct |
92 ms |
19032 KB |
Output is correct |
112 |
Correct |
412 ms |
23144 KB |
Output is correct |
113 |
Correct |
121 ms |
26240 KB |
Output is correct |
114 |
Correct |
446 ms |
31844 KB |
Output is correct |
115 |
Correct |
429 ms |
31492 KB |
Output is correct |
116 |
Correct |
518 ms |
35616 KB |
Output is correct |
117 |
Correct |
23 ms |
19292 KB |
Output is correct |
118 |
Correct |
54 ms |
19036 KB |
Output is correct |
119 |
Correct |
285 ms |
33008 KB |
Output is correct |
120 |
Correct |
297 ms |
26236 KB |
Output is correct |
121 |
Correct |
24 ms |
19036 KB |
Output is correct |
122 |
Correct |
48 ms |
19036 KB |
Output is correct |
123 |
Correct |
726 ms |
28908 KB |
Output is correct |
124 |
Correct |
312 ms |
31580 KB |
Output is correct |
125 |
Correct |
765 ms |
33424 KB |
Output is correct |
126 |
Correct |
798 ms |
31796 KB |
Output is correct |
127 |
Correct |
924 ms |
34068 KB |
Output is correct |
128 |
Correct |
571 ms |
25216 KB |
Output is correct |
129 |
Correct |
24 ms |
19268 KB |
Output is correct |
130 |
Correct |
50 ms |
19036 KB |
Output is correct |
131 |
Correct |
1461 ms |
35332 KB |
Output is correct |
132 |
Correct |
618 ms |
23580 KB |
Output is correct |
133 |
Correct |
1482 ms |
32644 KB |
Output is correct |
134 |
Correct |
1587 ms |
31072 KB |
Output is correct |
135 |
Correct |
1905 ms |
34108 KB |
Output is correct |
136 |
Correct |
1248 ms |
26296 KB |
Output is correct |
137 |
Correct |
44 ms |
19032 KB |
Output is correct |
138 |
Correct |
34 ms |
19268 KB |
Output is correct |
139 |
Correct |
15 ms |
19036 KB |
Output is correct |
140 |
Correct |
96 ms |
19036 KB |
Output is correct |
141 |
Correct |
2 ms |
10840 KB |
Output is correct |
142 |
Correct |
1006 ms |
19464 KB |
Output is correct |
143 |
Correct |
413 ms |
19260 KB |
Output is correct |
144 |
Correct |
970 ms |
19492 KB |
Output is correct |
145 |
Correct |
959 ms |
19592 KB |
Output is correct |
146 |
Correct |
23 ms |
19032 KB |
Output is correct |
147 |
Correct |
49 ms |
19252 KB |
Output is correct |
148 |
Correct |
2 ms |
10840 KB |
Output is correct |
149 |
Correct |
2007 ms |
20932 KB |
Output is correct |
150 |
Correct |
804 ms |
19688 KB |
Output is correct |
151 |
Correct |
2073 ms |
22284 KB |
Output is correct |
152 |
Correct |
2061 ms |
22192 KB |
Output is correct |
153 |
Correct |
25 ms |
19036 KB |
Output is correct |
154 |
Correct |
48 ms |
19036 KB |
Output is correct |
155 |
Correct |
417 ms |
23124 KB |
Output is correct |
156 |
Correct |
120 ms |
26240 KB |
Output is correct |
157 |
Correct |
456 ms |
31832 KB |
Output is correct |
158 |
Correct |
426 ms |
31508 KB |
Output is correct |
159 |
Correct |
522 ms |
33832 KB |
Output is correct |
160 |
Correct |
25 ms |
19544 KB |
Output is correct |
161 |
Correct |
49 ms |
19268 KB |
Output is correct |
162 |
Correct |
303 ms |
35652 KB |
Output is correct |
163 |
Correct |
305 ms |
26236 KB |
Output is correct |
164 |
Correct |
721 ms |
29060 KB |
Output is correct |
165 |
Correct |
320 ms |
31712 KB |
Output is correct |
166 |
Correct |
747 ms |
34844 KB |
Output is correct |
167 |
Correct |
756 ms |
31928 KB |
Output is correct |
168 |
Correct |
879 ms |
35108 KB |
Output is correct |
169 |
Correct |
542 ms |
25180 KB |
Output is correct |
170 |
Correct |
635 ms |
25296 KB |
Output is correct |
171 |
Correct |
242 ms |
25436 KB |
Output is correct |
172 |
Correct |
742 ms |
31892 KB |
Output is correct |
173 |
Correct |
658 ms |
31384 KB |
Output is correct |
174 |
Correct |
745 ms |
34760 KB |
Output is correct |
175 |
Correct |
1082 ms |
26064 KB |
Output is correct |
176 |
Correct |
1081 ms |
29052 KB |
Output is correct |
177 |
Correct |
1084 ms |
35112 KB |
Output is correct |
178 |
Correct |
1264 ms |
34340 KB |
Output is correct |
179 |
Correct |
1388 ms |
32604 KB |
Output is correct |
180 |
Correct |
589 ms |
23660 KB |
Output is correct |
181 |
Correct |
1438 ms |
32708 KB |
Output is correct |
182 |
Correct |
1498 ms |
32212 KB |
Output is correct |
183 |
Correct |
1714 ms |
32724 KB |
Output is correct |
184 |
Correct |
1198 ms |
26304 KB |
Output is correct |
185 |
Correct |
2163 ms |
32108 KB |
Output is correct |
186 |
Correct |
2207 ms |
31080 KB |
Output is correct |
187 |
Correct |
2473 ms |
31852 KB |
Output is correct |
188 |
Correct |
2549 ms |
34076 KB |
Output is correct |
189 |
Correct |
94 ms |
19032 KB |
Output is correct |
190 |
Correct |
410 ms |
23132 KB |
Output is correct |
191 |
Correct |
118 ms |
26236 KB |
Output is correct |
192 |
Correct |
470 ms |
32000 KB |
Output is correct |
193 |
Correct |
471 ms |
31504 KB |
Output is correct |
194 |
Correct |
559 ms |
35624 KB |
Output is correct |
195 |
Correct |
25 ms |
19548 KB |
Output is correct |
196 |
Correct |
56 ms |
19036 KB |
Output is correct |
197 |
Correct |
302 ms |
33416 KB |
Output is correct |
198 |
Correct |
310 ms |
26228 KB |
Output is correct |
199 |
Correct |
23 ms |
19036 KB |
Output is correct |
200 |
Correct |
48 ms |
19036 KB |
Output is correct |
201 |
Correct |
712 ms |
28872 KB |
Output is correct |
202 |
Correct |
304 ms |
31700 KB |
Output is correct |
203 |
Correct |
746 ms |
34372 KB |
Output is correct |
204 |
Correct |
741 ms |
31836 KB |
Output is correct |
205 |
Correct |
882 ms |
33944 KB |
Output is correct |
206 |
Correct |
540 ms |
24984 KB |
Output is correct |
207 |
Correct |
22 ms |
19032 KB |
Output is correct |
208 |
Correct |
46 ms |
19036 KB |
Output is correct |
209 |
Correct |
1412 ms |
33832 KB |
Output is correct |
210 |
Correct |
591 ms |
23656 KB |
Output is correct |
211 |
Correct |
1456 ms |
35608 KB |
Output is correct |
212 |
Correct |
1499 ms |
31076 KB |
Output is correct |
213 |
Correct |
1762 ms |
34076 KB |
Output is correct |
214 |
Correct |
1194 ms |
26292 KB |
Output is correct |
215 |
Correct |
4184 ms |
30028 KB |
Output is correct |
216 |
Correct |
1929 ms |
23088 KB |
Output is correct |
217 |
Correct |
4242 ms |
33280 KB |
Output is correct |
218 |
Incorrect |
4406 ms |
35620 KB |
Output isn't correct |
219 |
Halted |
0 ms |
0 KB |
- |