#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll MAX = 50*100*101;
const ll INF = 1e18;
ll solve(ll M, ll L, vector<ll> a){
vector<ll> dp(2*MAX+1, -INF);
dp[MAX] = 0;
for(int i = 0; i < 2*M+1; ++i){
if(i == M){
for(int j = 0; j < 2*MAX+1; ++j) dp[j] += a[M];
continue;
}
int v = (int)(i-M);
int start = 0;
if(v < 0) start = (int)(2*MAX+1+v);
for(int j = start; j < start + abs(v); ++j){
deque<pair<ll, int>> q;
for(int k = 0; j+v*k >= 0 && j+v*k < 2*MAX+1; ++k){
ll x = dp[j+v*k]-k;
while(!q.empty() && x > q.back().first) q.pop_back();
q.emplace_back(x, k);
if(k - q.front().second > min(a[i], M)) q.pop_front();
dp[j+v*k] = q.front().first + k;
}
}
}
ll ans = -INF;
if(L <= MAX && L >= -MAX) ans = dp[MAX+L];
ll sum = 0;
ll taken = 0;
for(int i = 0; i < M; ++i){
if(a[i] > M){
sum += (a[i]-M)*(i-M);
taken += a[i]-M;
}
}
for(int i = 1; i <= M; ++i){
if(L-sum >= -MAX && L-sum <= MAX) ans = max(ans, taken+dp[MAX+L-sum]);
if(a[M+i] <= M) continue;
ll take = max(0ll, min(a[M+i]-M, (L-MAX-sum) / i));
for(; sum+take*i <= L+MAX && take <= a[M+i]-M; take++){
ll nsum = sum+take*i;
if(L-nsum >= -MAX && L-nsum <= MAX) ans = max(ans, taken+take+dp[MAX+L-nsum]);
}
take--;
sum += take*i;
taken += take;
}
return ans;
}
int main(){
cin.tie(0);
ios_base::sync_with_stdio(false);
ll M, L;
cin >> M >> L;
vector<ll> a(2*M+1);
for(int i = 0; i < 2*M+1; ++i) cin >> a[i];
ll ans = solve(M, L, a);
reverse(a.begin(), a.end());
ans = max(ans, solve(M, -L, a));
if(ans < 0) cout << "impossible\n";
else cout << ans << "\n";
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
61 ms |
8208 KB |
Output is correct |
2 |
Correct |
86 ms |
8208 KB |
Output is correct |
3 |
Correct |
36 ms |
8152 KB |
Output is correct |
4 |
Correct |
306 ms |
8244 KB |
Output is correct |
5 |
Correct |
1752 ms |
8196 KB |
Output is correct |
6 |
Correct |
1697 ms |
8312 KB |
Output is correct |
7 |
Correct |
1623 ms |
8312 KB |
Output is correct |
8 |
Correct |
1688 ms |
8276 KB |
Output is correct |
9 |
Correct |
1639 ms |
8284 KB |
Output is correct |
10 |
Correct |
1609 ms |
8204 KB |
Output is correct |
11 |
Correct |
1645 ms |
8236 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
61 ms |
8208 KB |
Output is correct |
2 |
Correct |
86 ms |
8208 KB |
Output is correct |
3 |
Correct |
36 ms |
8152 KB |
Output is correct |
4 |
Correct |
306 ms |
8244 KB |
Output is correct |
5 |
Correct |
1752 ms |
8196 KB |
Output is correct |
6 |
Correct |
1697 ms |
8312 KB |
Output is correct |
7 |
Correct |
1623 ms |
8312 KB |
Output is correct |
8 |
Correct |
1688 ms |
8276 KB |
Output is correct |
9 |
Correct |
1639 ms |
8284 KB |
Output is correct |
10 |
Correct |
1609 ms |
8204 KB |
Output is correct |
11 |
Correct |
1645 ms |
8236 KB |
Output is correct |
12 |
Correct |
61 ms |
8148 KB |
Output is correct |
13 |
Correct |
87 ms |
8176 KB |
Output is correct |
14 |
Correct |
36 ms |
8232 KB |
Output is correct |
15 |
Correct |
279 ms |
8184 KB |
Output is correct |
16 |
Correct |
1643 ms |
8204 KB |
Output is correct |
17 |
Correct |
1634 ms |
8208 KB |
Output is correct |
18 |
Correct |
1595 ms |
8184 KB |
Output is correct |
19 |
Correct |
1651 ms |
8252 KB |
Output is correct |
20 |
Correct |
1628 ms |
8148 KB |
Output is correct |
21 |
Correct |
1607 ms |
8252 KB |
Output is correct |
22 |
Correct |
1567 ms |
8192 KB |
Output is correct |
23 |
Correct |
3320 ms |
8268 KB |
Output is correct |
24 |
Correct |
3341 ms |
8236 KB |
Output is correct |
25 |
Correct |
3365 ms |
8204 KB |
Output is correct |
26 |
Correct |
3215 ms |
8260 KB |
Output is correct |
27 |
Correct |
3277 ms |
8248 KB |
Output is correct |
28 |
Correct |
3375 ms |
8208 KB |
Output is correct |
29 |
Correct |
3311 ms |
8148 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
297 ms |
8184 KB |
Output is correct |
2 |
Correct |
971 ms |
8228 KB |
Output is correct |
3 |
Correct |
948 ms |
8220 KB |
Output is correct |
4 |
Correct |
945 ms |
8200 KB |
Output is correct |
5 |
Correct |
957 ms |
8184 KB |
Output is correct |
6 |
Correct |
937 ms |
8292 KB |
Output is correct |
7 |
Correct |
959 ms |
8292 KB |
Output is correct |
8 |
Correct |
963 ms |
8288 KB |
Output is correct |
9 |
Correct |
917 ms |
8200 KB |
Output is correct |
10 |
Correct |
931 ms |
8248 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
297 ms |
8184 KB |
Output is correct |
2 |
Correct |
971 ms |
8228 KB |
Output is correct |
3 |
Correct |
948 ms |
8220 KB |
Output is correct |
4 |
Correct |
945 ms |
8200 KB |
Output is correct |
5 |
Correct |
957 ms |
8184 KB |
Output is correct |
6 |
Correct |
937 ms |
8292 KB |
Output is correct |
7 |
Correct |
959 ms |
8292 KB |
Output is correct |
8 |
Correct |
963 ms |
8288 KB |
Output is correct |
9 |
Correct |
917 ms |
8200 KB |
Output is correct |
10 |
Correct |
931 ms |
8248 KB |
Output is correct |
11 |
Correct |
59 ms |
8148 KB |
Output is correct |
12 |
Correct |
89 ms |
8312 KB |
Output is correct |
13 |
Correct |
35 ms |
8228 KB |
Output is correct |
14 |
Correct |
281 ms |
8148 KB |
Output is correct |
15 |
Correct |
928 ms |
8204 KB |
Output is correct |
16 |
Correct |
928 ms |
8204 KB |
Output is correct |
17 |
Correct |
935 ms |
8184 KB |
Output is correct |
18 |
Correct |
949 ms |
8252 KB |
Output is correct |
19 |
Correct |
943 ms |
8236 KB |
Output is correct |
20 |
Correct |
941 ms |
8232 KB |
Output is correct |
21 |
Correct |
933 ms |
8284 KB |
Output is correct |
22 |
Correct |
932 ms |
8288 KB |
Output is correct |
23 |
Correct |
957 ms |
8252 KB |
Output is correct |
24 |
Correct |
964 ms |
8264 KB |
Output is correct |
25 |
Correct |
932 ms |
8232 KB |
Output is correct |
26 |
Correct |
944 ms |
8244 KB |
Output is correct |
27 |
Correct |
974 ms |
8148 KB |
Output is correct |
28 |
Correct |
942 ms |
8232 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
297 ms |
8184 KB |
Output is correct |
2 |
Correct |
971 ms |
8228 KB |
Output is correct |
3 |
Correct |
948 ms |
8220 KB |
Output is correct |
4 |
Correct |
945 ms |
8200 KB |
Output is correct |
5 |
Correct |
957 ms |
8184 KB |
Output is correct |
6 |
Correct |
937 ms |
8292 KB |
Output is correct |
7 |
Correct |
959 ms |
8292 KB |
Output is correct |
8 |
Correct |
963 ms |
8288 KB |
Output is correct |
9 |
Correct |
917 ms |
8200 KB |
Output is correct |
10 |
Correct |
931 ms |
8248 KB |
Output is correct |
11 |
Correct |
288 ms |
8288 KB |
Output is correct |
12 |
Correct |
946 ms |
8148 KB |
Output is correct |
13 |
Correct |
932 ms |
8236 KB |
Output is correct |
14 |
Correct |
953 ms |
8232 KB |
Output is correct |
15 |
Correct |
911 ms |
8284 KB |
Output is correct |
16 |
Correct |
975 ms |
8248 KB |
Output is correct |
17 |
Correct |
922 ms |
8204 KB |
Output is correct |
18 |
Correct |
927 ms |
8204 KB |
Output is correct |
19 |
Correct |
939 ms |
8204 KB |
Output is correct |
20 |
Correct |
943 ms |
8240 KB |
Output is correct |
21 |
Correct |
1580 ms |
8176 KB |
Output is correct |
22 |
Correct |
1615 ms |
8248 KB |
Output is correct |
23 |
Correct |
1615 ms |
8284 KB |
Output is correct |
24 |
Correct |
1612 ms |
8236 KB |
Output is correct |
25 |
Correct |
1608 ms |
8328 KB |
Output is correct |
26 |
Correct |
1661 ms |
8264 KB |
Output is correct |
27 |
Correct |
1663 ms |
8232 KB |
Output is correct |
28 |
Correct |
1611 ms |
8336 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
61 ms |
8208 KB |
Output is correct |
2 |
Correct |
86 ms |
8208 KB |
Output is correct |
3 |
Correct |
36 ms |
8152 KB |
Output is correct |
4 |
Correct |
306 ms |
8244 KB |
Output is correct |
5 |
Correct |
1752 ms |
8196 KB |
Output is correct |
6 |
Correct |
1697 ms |
8312 KB |
Output is correct |
7 |
Correct |
1623 ms |
8312 KB |
Output is correct |
8 |
Correct |
1688 ms |
8276 KB |
Output is correct |
9 |
Correct |
1639 ms |
8284 KB |
Output is correct |
10 |
Correct |
1609 ms |
8204 KB |
Output is correct |
11 |
Correct |
1645 ms |
8236 KB |
Output is correct |
12 |
Correct |
297 ms |
8184 KB |
Output is correct |
13 |
Correct |
971 ms |
8228 KB |
Output is correct |
14 |
Correct |
948 ms |
8220 KB |
Output is correct |
15 |
Correct |
945 ms |
8200 KB |
Output is correct |
16 |
Correct |
957 ms |
8184 KB |
Output is correct |
17 |
Correct |
937 ms |
8292 KB |
Output is correct |
18 |
Correct |
959 ms |
8292 KB |
Output is correct |
19 |
Correct |
963 ms |
8288 KB |
Output is correct |
20 |
Correct |
917 ms |
8200 KB |
Output is correct |
21 |
Correct |
931 ms |
8248 KB |
Output is correct |
22 |
Correct |
59 ms |
8148 KB |
Output is correct |
23 |
Correct |
89 ms |
8312 KB |
Output is correct |
24 |
Correct |
35 ms |
8228 KB |
Output is correct |
25 |
Correct |
281 ms |
8148 KB |
Output is correct |
26 |
Correct |
928 ms |
8204 KB |
Output is correct |
27 |
Correct |
928 ms |
8204 KB |
Output is correct |
28 |
Correct |
935 ms |
8184 KB |
Output is correct |
29 |
Correct |
949 ms |
8252 KB |
Output is correct |
30 |
Correct |
943 ms |
8236 KB |
Output is correct |
31 |
Correct |
941 ms |
8232 KB |
Output is correct |
32 |
Correct |
933 ms |
8284 KB |
Output is correct |
33 |
Correct |
932 ms |
8288 KB |
Output is correct |
34 |
Correct |
957 ms |
8252 KB |
Output is correct |
35 |
Correct |
964 ms |
8264 KB |
Output is correct |
36 |
Correct |
932 ms |
8232 KB |
Output is correct |
37 |
Correct |
944 ms |
8244 KB |
Output is correct |
38 |
Correct |
974 ms |
8148 KB |
Output is correct |
39 |
Correct |
942 ms |
8232 KB |
Output is correct |
40 |
Correct |
288 ms |
8288 KB |
Output is correct |
41 |
Correct |
946 ms |
8148 KB |
Output is correct |
42 |
Correct |
932 ms |
8236 KB |
Output is correct |
43 |
Correct |
953 ms |
8232 KB |
Output is correct |
44 |
Correct |
911 ms |
8284 KB |
Output is correct |
45 |
Correct |
975 ms |
8248 KB |
Output is correct |
46 |
Correct |
922 ms |
8204 KB |
Output is correct |
47 |
Correct |
927 ms |
8204 KB |
Output is correct |
48 |
Correct |
939 ms |
8204 KB |
Output is correct |
49 |
Correct |
943 ms |
8240 KB |
Output is correct |
50 |
Correct |
1580 ms |
8176 KB |
Output is correct |
51 |
Correct |
1615 ms |
8248 KB |
Output is correct |
52 |
Correct |
1615 ms |
8284 KB |
Output is correct |
53 |
Correct |
1612 ms |
8236 KB |
Output is correct |
54 |
Correct |
1608 ms |
8328 KB |
Output is correct |
55 |
Correct |
1661 ms |
8264 KB |
Output is correct |
56 |
Correct |
1663 ms |
8232 KB |
Output is correct |
57 |
Correct |
1611 ms |
8336 KB |
Output is correct |
58 |
Correct |
61 ms |
8200 KB |
Output is correct |
59 |
Correct |
86 ms |
8204 KB |
Output is correct |
60 |
Correct |
36 ms |
8320 KB |
Output is correct |
61 |
Correct |
285 ms |
8264 KB |
Output is correct |
62 |
Correct |
1649 ms |
8200 KB |
Output is correct |
63 |
Correct |
1620 ms |
8232 KB |
Output is correct |
64 |
Correct |
1663 ms |
8264 KB |
Output is correct |
65 |
Correct |
1648 ms |
8244 KB |
Output is correct |
66 |
Correct |
1633 ms |
8236 KB |
Output is correct |
67 |
Correct |
1637 ms |
8284 KB |
Output is correct |
68 |
Correct |
1614 ms |
8232 KB |
Output is correct |
69 |
Correct |
943 ms |
8288 KB |
Output is correct |
70 |
Correct |
974 ms |
8300 KB |
Output is correct |
71 |
Correct |
952 ms |
8200 KB |
Output is correct |
72 |
Correct |
978 ms |
8236 KB |
Output is correct |
73 |
Correct |
964 ms |
8332 KB |
Output is correct |
74 |
Correct |
968 ms |
8252 KB |
Output is correct |
75 |
Correct |
925 ms |
8236 KB |
Output is correct |
76 |
Correct |
968 ms |
8208 KB |
Output is correct |
77 |
Correct |
956 ms |
8248 KB |
Output is correct |
78 |
Correct |
979 ms |
8204 KB |
Output is correct |
79 |
Correct |
960 ms |
8204 KB |
Output is correct |
80 |
Correct |
961 ms |
8192 KB |
Output is correct |
81 |
Correct |
953 ms |
8184 KB |
Output is correct |
82 |
Correct |
974 ms |
8308 KB |
Output is correct |
83 |
Correct |
1614 ms |
8284 KB |
Output is correct |
84 |
Correct |
1605 ms |
8232 KB |
Output is correct |
85 |
Correct |
1605 ms |
8232 KB |
Output is correct |
86 |
Correct |
1633 ms |
8204 KB |
Output is correct |
87 |
Correct |
1620 ms |
8200 KB |
Output is correct |
88 |
Correct |
1633 ms |
8172 KB |
Output is correct |
89 |
Correct |
1648 ms |
8336 KB |
Output is correct |
90 |
Correct |
1653 ms |
8252 KB |
Output is correct |
91 |
Correct |
1647 ms |
8236 KB |
Output is correct |
92 |
Correct |
1655 ms |
8292 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
297 ms |
8184 KB |
Output is correct |
2 |
Correct |
971 ms |
8228 KB |
Output is correct |
3 |
Correct |
948 ms |
8220 KB |
Output is correct |
4 |
Correct |
945 ms |
8200 KB |
Output is correct |
5 |
Correct |
957 ms |
8184 KB |
Output is correct |
6 |
Correct |
937 ms |
8292 KB |
Output is correct |
7 |
Correct |
959 ms |
8292 KB |
Output is correct |
8 |
Correct |
963 ms |
8288 KB |
Output is correct |
9 |
Correct |
917 ms |
8200 KB |
Output is correct |
10 |
Correct |
931 ms |
8248 KB |
Output is correct |
11 |
Correct |
288 ms |
8288 KB |
Output is correct |
12 |
Correct |
946 ms |
8148 KB |
Output is correct |
13 |
Correct |
932 ms |
8236 KB |
Output is correct |
14 |
Correct |
953 ms |
8232 KB |
Output is correct |
15 |
Correct |
911 ms |
8284 KB |
Output is correct |
16 |
Correct |
975 ms |
8248 KB |
Output is correct |
17 |
Correct |
922 ms |
8204 KB |
Output is correct |
18 |
Correct |
927 ms |
8204 KB |
Output is correct |
19 |
Correct |
939 ms |
8204 KB |
Output is correct |
20 |
Correct |
943 ms |
8240 KB |
Output is correct |
21 |
Correct |
1580 ms |
8176 KB |
Output is correct |
22 |
Correct |
1615 ms |
8248 KB |
Output is correct |
23 |
Correct |
1615 ms |
8284 KB |
Output is correct |
24 |
Correct |
1612 ms |
8236 KB |
Output is correct |
25 |
Correct |
1608 ms |
8328 KB |
Output is correct |
26 |
Correct |
1661 ms |
8264 KB |
Output is correct |
27 |
Correct |
1663 ms |
8232 KB |
Output is correct |
28 |
Correct |
1611 ms |
8336 KB |
Output is correct |
29 |
Correct |
301 ms |
8148 KB |
Output is correct |
30 |
Correct |
951 ms |
8240 KB |
Output is correct |
31 |
Correct |
930 ms |
8204 KB |
Output is correct |
32 |
Correct |
940 ms |
8284 KB |
Output is correct |
33 |
Correct |
947 ms |
8176 KB |
Output is correct |
34 |
Correct |
967 ms |
8236 KB |
Output is correct |
35 |
Correct |
948 ms |
8240 KB |
Output is correct |
36 |
Correct |
930 ms |
8276 KB |
Output is correct |
37 |
Correct |
944 ms |
8252 KB |
Output is correct |
38 |
Correct |
936 ms |
8240 KB |
Output is correct |
39 |
Correct |
1609 ms |
8184 KB |
Output is correct |
40 |
Correct |
1579 ms |
8180 KB |
Output is correct |
41 |
Correct |
1607 ms |
8200 KB |
Output is correct |
42 |
Correct |
1616 ms |
8176 KB |
Output is correct |
43 |
Correct |
1672 ms |
8244 KB |
Output is correct |
44 |
Correct |
1660 ms |
8204 KB |
Output is correct |
45 |
Correct |
1645 ms |
8244 KB |
Output is correct |
46 |
Correct |
1639 ms |
8252 KB |
Output is correct |
47 |
Correct |
3327 ms |
8232 KB |
Output is correct |
48 |
Correct |
3321 ms |
8216 KB |
Output is correct |
49 |
Correct |
3327 ms |
8188 KB |
Output is correct |
50 |
Correct |
3347 ms |
8208 KB |
Output is correct |
51 |
Correct |
3312 ms |
8260 KB |
Output is correct |
52 |
Correct |
3212 ms |
8204 KB |
Output is correct |
53 |
Correct |
3385 ms |
8204 KB |
Output is correct |
54 |
Correct |
3379 ms |
8280 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
61 ms |
8208 KB |
Output is correct |
2 |
Correct |
86 ms |
8208 KB |
Output is correct |
3 |
Correct |
36 ms |
8152 KB |
Output is correct |
4 |
Correct |
306 ms |
8244 KB |
Output is correct |
5 |
Correct |
1752 ms |
8196 KB |
Output is correct |
6 |
Correct |
1697 ms |
8312 KB |
Output is correct |
7 |
Correct |
1623 ms |
8312 KB |
Output is correct |
8 |
Correct |
1688 ms |
8276 KB |
Output is correct |
9 |
Correct |
1639 ms |
8284 KB |
Output is correct |
10 |
Correct |
1609 ms |
8204 KB |
Output is correct |
11 |
Correct |
1645 ms |
8236 KB |
Output is correct |
12 |
Correct |
61 ms |
8148 KB |
Output is correct |
13 |
Correct |
87 ms |
8176 KB |
Output is correct |
14 |
Correct |
36 ms |
8232 KB |
Output is correct |
15 |
Correct |
279 ms |
8184 KB |
Output is correct |
16 |
Correct |
1643 ms |
8204 KB |
Output is correct |
17 |
Correct |
1634 ms |
8208 KB |
Output is correct |
18 |
Correct |
1595 ms |
8184 KB |
Output is correct |
19 |
Correct |
1651 ms |
8252 KB |
Output is correct |
20 |
Correct |
1628 ms |
8148 KB |
Output is correct |
21 |
Correct |
1607 ms |
8252 KB |
Output is correct |
22 |
Correct |
1567 ms |
8192 KB |
Output is correct |
23 |
Correct |
3320 ms |
8268 KB |
Output is correct |
24 |
Correct |
3341 ms |
8236 KB |
Output is correct |
25 |
Correct |
3365 ms |
8204 KB |
Output is correct |
26 |
Correct |
3215 ms |
8260 KB |
Output is correct |
27 |
Correct |
3277 ms |
8248 KB |
Output is correct |
28 |
Correct |
3375 ms |
8208 KB |
Output is correct |
29 |
Correct |
3311 ms |
8148 KB |
Output is correct |
30 |
Correct |
297 ms |
8184 KB |
Output is correct |
31 |
Correct |
971 ms |
8228 KB |
Output is correct |
32 |
Correct |
948 ms |
8220 KB |
Output is correct |
33 |
Correct |
945 ms |
8200 KB |
Output is correct |
34 |
Correct |
957 ms |
8184 KB |
Output is correct |
35 |
Correct |
937 ms |
8292 KB |
Output is correct |
36 |
Correct |
959 ms |
8292 KB |
Output is correct |
37 |
Correct |
963 ms |
8288 KB |
Output is correct |
38 |
Correct |
917 ms |
8200 KB |
Output is correct |
39 |
Correct |
931 ms |
8248 KB |
Output is correct |
40 |
Correct |
59 ms |
8148 KB |
Output is correct |
41 |
Correct |
89 ms |
8312 KB |
Output is correct |
42 |
Correct |
35 ms |
8228 KB |
Output is correct |
43 |
Correct |
281 ms |
8148 KB |
Output is correct |
44 |
Correct |
928 ms |
8204 KB |
Output is correct |
45 |
Correct |
928 ms |
8204 KB |
Output is correct |
46 |
Correct |
935 ms |
8184 KB |
Output is correct |
47 |
Correct |
949 ms |
8252 KB |
Output is correct |
48 |
Correct |
943 ms |
8236 KB |
Output is correct |
49 |
Correct |
941 ms |
8232 KB |
Output is correct |
50 |
Correct |
933 ms |
8284 KB |
Output is correct |
51 |
Correct |
932 ms |
8288 KB |
Output is correct |
52 |
Correct |
957 ms |
8252 KB |
Output is correct |
53 |
Correct |
964 ms |
8264 KB |
Output is correct |
54 |
Correct |
932 ms |
8232 KB |
Output is correct |
55 |
Correct |
944 ms |
8244 KB |
Output is correct |
56 |
Correct |
974 ms |
8148 KB |
Output is correct |
57 |
Correct |
942 ms |
8232 KB |
Output is correct |
58 |
Correct |
288 ms |
8288 KB |
Output is correct |
59 |
Correct |
946 ms |
8148 KB |
Output is correct |
60 |
Correct |
932 ms |
8236 KB |
Output is correct |
61 |
Correct |
953 ms |
8232 KB |
Output is correct |
62 |
Correct |
911 ms |
8284 KB |
Output is correct |
63 |
Correct |
975 ms |
8248 KB |
Output is correct |
64 |
Correct |
922 ms |
8204 KB |
Output is correct |
65 |
Correct |
927 ms |
8204 KB |
Output is correct |
66 |
Correct |
939 ms |
8204 KB |
Output is correct |
67 |
Correct |
943 ms |
8240 KB |
Output is correct |
68 |
Correct |
1580 ms |
8176 KB |
Output is correct |
69 |
Correct |
1615 ms |
8248 KB |
Output is correct |
70 |
Correct |
1615 ms |
8284 KB |
Output is correct |
71 |
Correct |
1612 ms |
8236 KB |
Output is correct |
72 |
Correct |
1608 ms |
8328 KB |
Output is correct |
73 |
Correct |
1661 ms |
8264 KB |
Output is correct |
74 |
Correct |
1663 ms |
8232 KB |
Output is correct |
75 |
Correct |
1611 ms |
8336 KB |
Output is correct |
76 |
Correct |
61 ms |
8200 KB |
Output is correct |
77 |
Correct |
86 ms |
8204 KB |
Output is correct |
78 |
Correct |
36 ms |
8320 KB |
Output is correct |
79 |
Correct |
285 ms |
8264 KB |
Output is correct |
80 |
Correct |
1649 ms |
8200 KB |
Output is correct |
81 |
Correct |
1620 ms |
8232 KB |
Output is correct |
82 |
Correct |
1663 ms |
8264 KB |
Output is correct |
83 |
Correct |
1648 ms |
8244 KB |
Output is correct |
84 |
Correct |
1633 ms |
8236 KB |
Output is correct |
85 |
Correct |
1637 ms |
8284 KB |
Output is correct |
86 |
Correct |
1614 ms |
8232 KB |
Output is correct |
87 |
Correct |
943 ms |
8288 KB |
Output is correct |
88 |
Correct |
974 ms |
8300 KB |
Output is correct |
89 |
Correct |
952 ms |
8200 KB |
Output is correct |
90 |
Correct |
978 ms |
8236 KB |
Output is correct |
91 |
Correct |
964 ms |
8332 KB |
Output is correct |
92 |
Correct |
968 ms |
8252 KB |
Output is correct |
93 |
Correct |
925 ms |
8236 KB |
Output is correct |
94 |
Correct |
968 ms |
8208 KB |
Output is correct |
95 |
Correct |
956 ms |
8248 KB |
Output is correct |
96 |
Correct |
979 ms |
8204 KB |
Output is correct |
97 |
Correct |
960 ms |
8204 KB |
Output is correct |
98 |
Correct |
961 ms |
8192 KB |
Output is correct |
99 |
Correct |
953 ms |
8184 KB |
Output is correct |
100 |
Correct |
974 ms |
8308 KB |
Output is correct |
101 |
Correct |
1614 ms |
8284 KB |
Output is correct |
102 |
Correct |
1605 ms |
8232 KB |
Output is correct |
103 |
Correct |
1605 ms |
8232 KB |
Output is correct |
104 |
Correct |
1633 ms |
8204 KB |
Output is correct |
105 |
Correct |
1620 ms |
8200 KB |
Output is correct |
106 |
Correct |
1633 ms |
8172 KB |
Output is correct |
107 |
Correct |
1648 ms |
8336 KB |
Output is correct |
108 |
Correct |
1653 ms |
8252 KB |
Output is correct |
109 |
Correct |
1647 ms |
8236 KB |
Output is correct |
110 |
Correct |
1655 ms |
8292 KB |
Output is correct |
111 |
Correct |
301 ms |
8148 KB |
Output is correct |
112 |
Correct |
951 ms |
8240 KB |
Output is correct |
113 |
Correct |
930 ms |
8204 KB |
Output is correct |
114 |
Correct |
940 ms |
8284 KB |
Output is correct |
115 |
Correct |
947 ms |
8176 KB |
Output is correct |
116 |
Correct |
967 ms |
8236 KB |
Output is correct |
117 |
Correct |
948 ms |
8240 KB |
Output is correct |
118 |
Correct |
930 ms |
8276 KB |
Output is correct |
119 |
Correct |
944 ms |
8252 KB |
Output is correct |
120 |
Correct |
936 ms |
8240 KB |
Output is correct |
121 |
Correct |
1609 ms |
8184 KB |
Output is correct |
122 |
Correct |
1579 ms |
8180 KB |
Output is correct |
123 |
Correct |
1607 ms |
8200 KB |
Output is correct |
124 |
Correct |
1616 ms |
8176 KB |
Output is correct |
125 |
Correct |
1672 ms |
8244 KB |
Output is correct |
126 |
Correct |
1660 ms |
8204 KB |
Output is correct |
127 |
Correct |
1645 ms |
8244 KB |
Output is correct |
128 |
Correct |
1639 ms |
8252 KB |
Output is correct |
129 |
Correct |
3327 ms |
8232 KB |
Output is correct |
130 |
Correct |
3321 ms |
8216 KB |
Output is correct |
131 |
Correct |
3327 ms |
8188 KB |
Output is correct |
132 |
Correct |
3347 ms |
8208 KB |
Output is correct |
133 |
Correct |
3312 ms |
8260 KB |
Output is correct |
134 |
Correct |
3212 ms |
8204 KB |
Output is correct |
135 |
Correct |
3385 ms |
8204 KB |
Output is correct |
136 |
Correct |
3379 ms |
8280 KB |
Output is correct |
137 |
Correct |
59 ms |
8184 KB |
Output is correct |
138 |
Correct |
88 ms |
8180 KB |
Output is correct |
139 |
Correct |
33 ms |
8196 KB |
Output is correct |
140 |
Correct |
284 ms |
8148 KB |
Output is correct |
141 |
Correct |
1679 ms |
8244 KB |
Output is correct |
142 |
Correct |
1628 ms |
8252 KB |
Output is correct |
143 |
Correct |
1620 ms |
8148 KB |
Output is correct |
144 |
Correct |
1676 ms |
8204 KB |
Output is correct |
145 |
Correct |
1675 ms |
8244 KB |
Output is correct |
146 |
Correct |
1658 ms |
8276 KB |
Output is correct |
147 |
Correct |
1595 ms |
8200 KB |
Output is correct |
148 |
Correct |
3331 ms |
8204 KB |
Output is correct |
149 |
Correct |
3426 ms |
8232 KB |
Output is correct |
150 |
Correct |
3340 ms |
8312 KB |
Output is correct |
151 |
Correct |
3292 ms |
8240 KB |
Output is correct |
152 |
Correct |
3393 ms |
8148 KB |
Output is correct |
153 |
Correct |
3519 ms |
8188 KB |
Output is correct |
154 |
Correct |
3751 ms |
8212 KB |
Output is correct |
155 |
Correct |
1004 ms |
8200 KB |
Output is correct |
156 |
Correct |
1052 ms |
8204 KB |
Output is correct |
157 |
Correct |
1020 ms |
8232 KB |
Output is correct |
158 |
Correct |
1087 ms |
8184 KB |
Output is correct |
159 |
Correct |
1074 ms |
8148 KB |
Output is correct |
160 |
Correct |
941 ms |
8148 KB |
Output is correct |
161 |
Correct |
1016 ms |
8188 KB |
Output is correct |
162 |
Correct |
1251 ms |
8204 KB |
Output is correct |
163 |
Correct |
1053 ms |
8204 KB |
Output is correct |
164 |
Correct |
1875 ms |
8208 KB |
Output is correct |
165 |
Correct |
1710 ms |
8204 KB |
Output is correct |
166 |
Correct |
1898 ms |
8208 KB |
Output is correct |
167 |
Correct |
1829 ms |
8148 KB |
Output is correct |
168 |
Correct |
1783 ms |
8204 KB |
Output is correct |
169 |
Correct |
1842 ms |
8208 KB |
Output is correct |
170 |
Correct |
1033 ms |
8236 KB |
Output is correct |
171 |
Correct |
1065 ms |
8208 KB |
Output is correct |
172 |
Correct |
1104 ms |
8200 KB |
Output is correct |
173 |
Correct |
1067 ms |
8148 KB |
Output is correct |
174 |
Correct |
1065 ms |
8252 KB |
Output is correct |
175 |
Correct |
1799 ms |
8244 KB |
Output is correct |
176 |
Correct |
1853 ms |
8212 KB |
Output is correct |
177 |
Correct |
1709 ms |
8200 KB |
Output is correct |
178 |
Correct |
1863 ms |
8204 KB |
Output is correct |
179 |
Correct |
3655 ms |
8204 KB |
Output is correct |
180 |
Correct |
3803 ms |
8212 KB |
Output is correct |
181 |
Correct |
3430 ms |
8208 KB |
Output is correct |
182 |
Correct |
3667 ms |
8208 KB |
Output is correct |
183 |
Correct |
3832 ms |
8204 KB |
Output is correct |
184 |
Correct |
3762 ms |
8208 KB |
Output is correct |
185 |
Correct |
3718 ms |
8204 KB |
Output is correct |
186 |
Correct |
3505 ms |
8208 KB |
Output is correct |
187 |
Correct |
3652 ms |
8204 KB |
Output is correct |
188 |
Correct |
3693 ms |
8208 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
297 ms |
8184 KB |
Output is correct |
2 |
Correct |
971 ms |
8228 KB |
Output is correct |
3 |
Correct |
948 ms |
8220 KB |
Output is correct |
4 |
Correct |
945 ms |
8200 KB |
Output is correct |
5 |
Correct |
957 ms |
8184 KB |
Output is correct |
6 |
Correct |
937 ms |
8292 KB |
Output is correct |
7 |
Correct |
959 ms |
8292 KB |
Output is correct |
8 |
Correct |
963 ms |
8288 KB |
Output is correct |
9 |
Correct |
917 ms |
8200 KB |
Output is correct |
10 |
Correct |
931 ms |
8248 KB |
Output is correct |
11 |
Correct |
288 ms |
8288 KB |
Output is correct |
12 |
Correct |
946 ms |
8148 KB |
Output is correct |
13 |
Correct |
932 ms |
8236 KB |
Output is correct |
14 |
Correct |
953 ms |
8232 KB |
Output is correct |
15 |
Correct |
911 ms |
8284 KB |
Output is correct |
16 |
Correct |
975 ms |
8248 KB |
Output is correct |
17 |
Correct |
922 ms |
8204 KB |
Output is correct |
18 |
Correct |
927 ms |
8204 KB |
Output is correct |
19 |
Correct |
939 ms |
8204 KB |
Output is correct |
20 |
Correct |
943 ms |
8240 KB |
Output is correct |
21 |
Correct |
1580 ms |
8176 KB |
Output is correct |
22 |
Correct |
1615 ms |
8248 KB |
Output is correct |
23 |
Correct |
1615 ms |
8284 KB |
Output is correct |
24 |
Correct |
1612 ms |
8236 KB |
Output is correct |
25 |
Correct |
1608 ms |
8328 KB |
Output is correct |
26 |
Correct |
1661 ms |
8264 KB |
Output is correct |
27 |
Correct |
1663 ms |
8232 KB |
Output is correct |
28 |
Correct |
1611 ms |
8336 KB |
Output is correct |
29 |
Correct |
301 ms |
8148 KB |
Output is correct |
30 |
Correct |
951 ms |
8240 KB |
Output is correct |
31 |
Correct |
930 ms |
8204 KB |
Output is correct |
32 |
Correct |
940 ms |
8284 KB |
Output is correct |
33 |
Correct |
947 ms |
8176 KB |
Output is correct |
34 |
Correct |
967 ms |
8236 KB |
Output is correct |
35 |
Correct |
948 ms |
8240 KB |
Output is correct |
36 |
Correct |
930 ms |
8276 KB |
Output is correct |
37 |
Correct |
944 ms |
8252 KB |
Output is correct |
38 |
Correct |
936 ms |
8240 KB |
Output is correct |
39 |
Correct |
1609 ms |
8184 KB |
Output is correct |
40 |
Correct |
1579 ms |
8180 KB |
Output is correct |
41 |
Correct |
1607 ms |
8200 KB |
Output is correct |
42 |
Correct |
1616 ms |
8176 KB |
Output is correct |
43 |
Correct |
1672 ms |
8244 KB |
Output is correct |
44 |
Correct |
1660 ms |
8204 KB |
Output is correct |
45 |
Correct |
1645 ms |
8244 KB |
Output is correct |
46 |
Correct |
1639 ms |
8252 KB |
Output is correct |
47 |
Correct |
3327 ms |
8232 KB |
Output is correct |
48 |
Correct |
3321 ms |
8216 KB |
Output is correct |
49 |
Correct |
3327 ms |
8188 KB |
Output is correct |
50 |
Correct |
3347 ms |
8208 KB |
Output is correct |
51 |
Correct |
3312 ms |
8260 KB |
Output is correct |
52 |
Correct |
3212 ms |
8204 KB |
Output is correct |
53 |
Correct |
3385 ms |
8204 KB |
Output is correct |
54 |
Correct |
3379 ms |
8280 KB |
Output is correct |
55 |
Correct |
313 ms |
8148 KB |
Output is correct |
56 |
Correct |
1068 ms |
8204 KB |
Output is correct |
57 |
Correct |
1148 ms |
8204 KB |
Output is correct |
58 |
Correct |
1165 ms |
8252 KB |
Output is correct |
59 |
Correct |
1030 ms |
8204 KB |
Output is correct |
60 |
Correct |
1041 ms |
8204 KB |
Output is correct |
61 |
Correct |
1098 ms |
8200 KB |
Output is correct |
62 |
Correct |
992 ms |
8208 KB |
Output is correct |
63 |
Correct |
1018 ms |
8196 KB |
Output is correct |
64 |
Correct |
937 ms |
8148 KB |
Output is correct |
65 |
Correct |
1598 ms |
8204 KB |
Output is correct |
66 |
Correct |
1622 ms |
8188 KB |
Output is correct |
67 |
Correct |
1640 ms |
8200 KB |
Output is correct |
68 |
Correct |
1613 ms |
8252 KB |
Output is correct |
69 |
Correct |
1594 ms |
8200 KB |
Output is correct |
70 |
Correct |
1628 ms |
8244 KB |
Output is correct |
71 |
Correct |
1572 ms |
8276 KB |
Output is correct |
72 |
Correct |
1616 ms |
8292 KB |
Output is correct |
73 |
Correct |
3264 ms |
8212 KB |
Output is correct |
74 |
Correct |
3309 ms |
8280 KB |
Output is correct |
75 |
Correct |
3377 ms |
8204 KB |
Output is correct |
76 |
Correct |
3397 ms |
8208 KB |
Output is correct |
77 |
Correct |
3402 ms |
8208 KB |
Output is correct |
78 |
Correct |
3322 ms |
8212 KB |
Output is correct |
79 |
Correct |
3325 ms |
8260 KB |
Output is correct |
80 |
Correct |
3349 ms |
8252 KB |
Output is correct |
81 |
Execution timed out |
5053 ms |
8236 KB |
Time limit exceeded |
82 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
61 ms |
8208 KB |
Output is correct |
2 |
Correct |
86 ms |
8208 KB |
Output is correct |
3 |
Correct |
36 ms |
8152 KB |
Output is correct |
4 |
Correct |
306 ms |
8244 KB |
Output is correct |
5 |
Correct |
1752 ms |
8196 KB |
Output is correct |
6 |
Correct |
1697 ms |
8312 KB |
Output is correct |
7 |
Correct |
1623 ms |
8312 KB |
Output is correct |
8 |
Correct |
1688 ms |
8276 KB |
Output is correct |
9 |
Correct |
1639 ms |
8284 KB |
Output is correct |
10 |
Correct |
1609 ms |
8204 KB |
Output is correct |
11 |
Correct |
1645 ms |
8236 KB |
Output is correct |
12 |
Correct |
61 ms |
8148 KB |
Output is correct |
13 |
Correct |
87 ms |
8176 KB |
Output is correct |
14 |
Correct |
36 ms |
8232 KB |
Output is correct |
15 |
Correct |
279 ms |
8184 KB |
Output is correct |
16 |
Correct |
1643 ms |
8204 KB |
Output is correct |
17 |
Correct |
1634 ms |
8208 KB |
Output is correct |
18 |
Correct |
1595 ms |
8184 KB |
Output is correct |
19 |
Correct |
1651 ms |
8252 KB |
Output is correct |
20 |
Correct |
1628 ms |
8148 KB |
Output is correct |
21 |
Correct |
1607 ms |
8252 KB |
Output is correct |
22 |
Correct |
1567 ms |
8192 KB |
Output is correct |
23 |
Correct |
3320 ms |
8268 KB |
Output is correct |
24 |
Correct |
3341 ms |
8236 KB |
Output is correct |
25 |
Correct |
3365 ms |
8204 KB |
Output is correct |
26 |
Correct |
3215 ms |
8260 KB |
Output is correct |
27 |
Correct |
3277 ms |
8248 KB |
Output is correct |
28 |
Correct |
3375 ms |
8208 KB |
Output is correct |
29 |
Correct |
3311 ms |
8148 KB |
Output is correct |
30 |
Correct |
297 ms |
8184 KB |
Output is correct |
31 |
Correct |
971 ms |
8228 KB |
Output is correct |
32 |
Correct |
948 ms |
8220 KB |
Output is correct |
33 |
Correct |
945 ms |
8200 KB |
Output is correct |
34 |
Correct |
957 ms |
8184 KB |
Output is correct |
35 |
Correct |
937 ms |
8292 KB |
Output is correct |
36 |
Correct |
959 ms |
8292 KB |
Output is correct |
37 |
Correct |
963 ms |
8288 KB |
Output is correct |
38 |
Correct |
917 ms |
8200 KB |
Output is correct |
39 |
Correct |
931 ms |
8248 KB |
Output is correct |
40 |
Correct |
59 ms |
8148 KB |
Output is correct |
41 |
Correct |
89 ms |
8312 KB |
Output is correct |
42 |
Correct |
35 ms |
8228 KB |
Output is correct |
43 |
Correct |
281 ms |
8148 KB |
Output is correct |
44 |
Correct |
928 ms |
8204 KB |
Output is correct |
45 |
Correct |
928 ms |
8204 KB |
Output is correct |
46 |
Correct |
935 ms |
8184 KB |
Output is correct |
47 |
Correct |
949 ms |
8252 KB |
Output is correct |
48 |
Correct |
943 ms |
8236 KB |
Output is correct |
49 |
Correct |
941 ms |
8232 KB |
Output is correct |
50 |
Correct |
933 ms |
8284 KB |
Output is correct |
51 |
Correct |
932 ms |
8288 KB |
Output is correct |
52 |
Correct |
957 ms |
8252 KB |
Output is correct |
53 |
Correct |
964 ms |
8264 KB |
Output is correct |
54 |
Correct |
932 ms |
8232 KB |
Output is correct |
55 |
Correct |
944 ms |
8244 KB |
Output is correct |
56 |
Correct |
974 ms |
8148 KB |
Output is correct |
57 |
Correct |
942 ms |
8232 KB |
Output is correct |
58 |
Correct |
288 ms |
8288 KB |
Output is correct |
59 |
Correct |
946 ms |
8148 KB |
Output is correct |
60 |
Correct |
932 ms |
8236 KB |
Output is correct |
61 |
Correct |
953 ms |
8232 KB |
Output is correct |
62 |
Correct |
911 ms |
8284 KB |
Output is correct |
63 |
Correct |
975 ms |
8248 KB |
Output is correct |
64 |
Correct |
922 ms |
8204 KB |
Output is correct |
65 |
Correct |
927 ms |
8204 KB |
Output is correct |
66 |
Correct |
939 ms |
8204 KB |
Output is correct |
67 |
Correct |
943 ms |
8240 KB |
Output is correct |
68 |
Correct |
1580 ms |
8176 KB |
Output is correct |
69 |
Correct |
1615 ms |
8248 KB |
Output is correct |
70 |
Correct |
1615 ms |
8284 KB |
Output is correct |
71 |
Correct |
1612 ms |
8236 KB |
Output is correct |
72 |
Correct |
1608 ms |
8328 KB |
Output is correct |
73 |
Correct |
1661 ms |
8264 KB |
Output is correct |
74 |
Correct |
1663 ms |
8232 KB |
Output is correct |
75 |
Correct |
1611 ms |
8336 KB |
Output is correct |
76 |
Correct |
61 ms |
8200 KB |
Output is correct |
77 |
Correct |
86 ms |
8204 KB |
Output is correct |
78 |
Correct |
36 ms |
8320 KB |
Output is correct |
79 |
Correct |
285 ms |
8264 KB |
Output is correct |
80 |
Correct |
1649 ms |
8200 KB |
Output is correct |
81 |
Correct |
1620 ms |
8232 KB |
Output is correct |
82 |
Correct |
1663 ms |
8264 KB |
Output is correct |
83 |
Correct |
1648 ms |
8244 KB |
Output is correct |
84 |
Correct |
1633 ms |
8236 KB |
Output is correct |
85 |
Correct |
1637 ms |
8284 KB |
Output is correct |
86 |
Correct |
1614 ms |
8232 KB |
Output is correct |
87 |
Correct |
943 ms |
8288 KB |
Output is correct |
88 |
Correct |
974 ms |
8300 KB |
Output is correct |
89 |
Correct |
952 ms |
8200 KB |
Output is correct |
90 |
Correct |
978 ms |
8236 KB |
Output is correct |
91 |
Correct |
964 ms |
8332 KB |
Output is correct |
92 |
Correct |
968 ms |
8252 KB |
Output is correct |
93 |
Correct |
925 ms |
8236 KB |
Output is correct |
94 |
Correct |
968 ms |
8208 KB |
Output is correct |
95 |
Correct |
956 ms |
8248 KB |
Output is correct |
96 |
Correct |
979 ms |
8204 KB |
Output is correct |
97 |
Correct |
960 ms |
8204 KB |
Output is correct |
98 |
Correct |
961 ms |
8192 KB |
Output is correct |
99 |
Correct |
953 ms |
8184 KB |
Output is correct |
100 |
Correct |
974 ms |
8308 KB |
Output is correct |
101 |
Correct |
1614 ms |
8284 KB |
Output is correct |
102 |
Correct |
1605 ms |
8232 KB |
Output is correct |
103 |
Correct |
1605 ms |
8232 KB |
Output is correct |
104 |
Correct |
1633 ms |
8204 KB |
Output is correct |
105 |
Correct |
1620 ms |
8200 KB |
Output is correct |
106 |
Correct |
1633 ms |
8172 KB |
Output is correct |
107 |
Correct |
1648 ms |
8336 KB |
Output is correct |
108 |
Correct |
1653 ms |
8252 KB |
Output is correct |
109 |
Correct |
1647 ms |
8236 KB |
Output is correct |
110 |
Correct |
1655 ms |
8292 KB |
Output is correct |
111 |
Correct |
301 ms |
8148 KB |
Output is correct |
112 |
Correct |
951 ms |
8240 KB |
Output is correct |
113 |
Correct |
930 ms |
8204 KB |
Output is correct |
114 |
Correct |
940 ms |
8284 KB |
Output is correct |
115 |
Correct |
947 ms |
8176 KB |
Output is correct |
116 |
Correct |
967 ms |
8236 KB |
Output is correct |
117 |
Correct |
948 ms |
8240 KB |
Output is correct |
118 |
Correct |
930 ms |
8276 KB |
Output is correct |
119 |
Correct |
944 ms |
8252 KB |
Output is correct |
120 |
Correct |
936 ms |
8240 KB |
Output is correct |
121 |
Correct |
1609 ms |
8184 KB |
Output is correct |
122 |
Correct |
1579 ms |
8180 KB |
Output is correct |
123 |
Correct |
1607 ms |
8200 KB |
Output is correct |
124 |
Correct |
1616 ms |
8176 KB |
Output is correct |
125 |
Correct |
1672 ms |
8244 KB |
Output is correct |
126 |
Correct |
1660 ms |
8204 KB |
Output is correct |
127 |
Correct |
1645 ms |
8244 KB |
Output is correct |
128 |
Correct |
1639 ms |
8252 KB |
Output is correct |
129 |
Correct |
3327 ms |
8232 KB |
Output is correct |
130 |
Correct |
3321 ms |
8216 KB |
Output is correct |
131 |
Correct |
3327 ms |
8188 KB |
Output is correct |
132 |
Correct |
3347 ms |
8208 KB |
Output is correct |
133 |
Correct |
3312 ms |
8260 KB |
Output is correct |
134 |
Correct |
3212 ms |
8204 KB |
Output is correct |
135 |
Correct |
3385 ms |
8204 KB |
Output is correct |
136 |
Correct |
3379 ms |
8280 KB |
Output is correct |
137 |
Correct |
59 ms |
8184 KB |
Output is correct |
138 |
Correct |
88 ms |
8180 KB |
Output is correct |
139 |
Correct |
33 ms |
8196 KB |
Output is correct |
140 |
Correct |
284 ms |
8148 KB |
Output is correct |
141 |
Correct |
1679 ms |
8244 KB |
Output is correct |
142 |
Correct |
1628 ms |
8252 KB |
Output is correct |
143 |
Correct |
1620 ms |
8148 KB |
Output is correct |
144 |
Correct |
1676 ms |
8204 KB |
Output is correct |
145 |
Correct |
1675 ms |
8244 KB |
Output is correct |
146 |
Correct |
1658 ms |
8276 KB |
Output is correct |
147 |
Correct |
1595 ms |
8200 KB |
Output is correct |
148 |
Correct |
3331 ms |
8204 KB |
Output is correct |
149 |
Correct |
3426 ms |
8232 KB |
Output is correct |
150 |
Correct |
3340 ms |
8312 KB |
Output is correct |
151 |
Correct |
3292 ms |
8240 KB |
Output is correct |
152 |
Correct |
3393 ms |
8148 KB |
Output is correct |
153 |
Correct |
3519 ms |
8188 KB |
Output is correct |
154 |
Correct |
3751 ms |
8212 KB |
Output is correct |
155 |
Correct |
1004 ms |
8200 KB |
Output is correct |
156 |
Correct |
1052 ms |
8204 KB |
Output is correct |
157 |
Correct |
1020 ms |
8232 KB |
Output is correct |
158 |
Correct |
1087 ms |
8184 KB |
Output is correct |
159 |
Correct |
1074 ms |
8148 KB |
Output is correct |
160 |
Correct |
941 ms |
8148 KB |
Output is correct |
161 |
Correct |
1016 ms |
8188 KB |
Output is correct |
162 |
Correct |
1251 ms |
8204 KB |
Output is correct |
163 |
Correct |
1053 ms |
8204 KB |
Output is correct |
164 |
Correct |
1875 ms |
8208 KB |
Output is correct |
165 |
Correct |
1710 ms |
8204 KB |
Output is correct |
166 |
Correct |
1898 ms |
8208 KB |
Output is correct |
167 |
Correct |
1829 ms |
8148 KB |
Output is correct |
168 |
Correct |
1783 ms |
8204 KB |
Output is correct |
169 |
Correct |
1842 ms |
8208 KB |
Output is correct |
170 |
Correct |
1033 ms |
8236 KB |
Output is correct |
171 |
Correct |
1065 ms |
8208 KB |
Output is correct |
172 |
Correct |
1104 ms |
8200 KB |
Output is correct |
173 |
Correct |
1067 ms |
8148 KB |
Output is correct |
174 |
Correct |
1065 ms |
8252 KB |
Output is correct |
175 |
Correct |
1799 ms |
8244 KB |
Output is correct |
176 |
Correct |
1853 ms |
8212 KB |
Output is correct |
177 |
Correct |
1709 ms |
8200 KB |
Output is correct |
178 |
Correct |
1863 ms |
8204 KB |
Output is correct |
179 |
Correct |
3655 ms |
8204 KB |
Output is correct |
180 |
Correct |
3803 ms |
8212 KB |
Output is correct |
181 |
Correct |
3430 ms |
8208 KB |
Output is correct |
182 |
Correct |
3667 ms |
8208 KB |
Output is correct |
183 |
Correct |
3832 ms |
8204 KB |
Output is correct |
184 |
Correct |
3762 ms |
8208 KB |
Output is correct |
185 |
Correct |
3718 ms |
8204 KB |
Output is correct |
186 |
Correct |
3505 ms |
8208 KB |
Output is correct |
187 |
Correct |
3652 ms |
8204 KB |
Output is correct |
188 |
Correct |
3693 ms |
8208 KB |
Output is correct |
189 |
Correct |
313 ms |
8148 KB |
Output is correct |
190 |
Correct |
1068 ms |
8204 KB |
Output is correct |
191 |
Correct |
1148 ms |
8204 KB |
Output is correct |
192 |
Correct |
1165 ms |
8252 KB |
Output is correct |
193 |
Correct |
1030 ms |
8204 KB |
Output is correct |
194 |
Correct |
1041 ms |
8204 KB |
Output is correct |
195 |
Correct |
1098 ms |
8200 KB |
Output is correct |
196 |
Correct |
992 ms |
8208 KB |
Output is correct |
197 |
Correct |
1018 ms |
8196 KB |
Output is correct |
198 |
Correct |
937 ms |
8148 KB |
Output is correct |
199 |
Correct |
1598 ms |
8204 KB |
Output is correct |
200 |
Correct |
1622 ms |
8188 KB |
Output is correct |
201 |
Correct |
1640 ms |
8200 KB |
Output is correct |
202 |
Correct |
1613 ms |
8252 KB |
Output is correct |
203 |
Correct |
1594 ms |
8200 KB |
Output is correct |
204 |
Correct |
1628 ms |
8244 KB |
Output is correct |
205 |
Correct |
1572 ms |
8276 KB |
Output is correct |
206 |
Correct |
1616 ms |
8292 KB |
Output is correct |
207 |
Correct |
3264 ms |
8212 KB |
Output is correct |
208 |
Correct |
3309 ms |
8280 KB |
Output is correct |
209 |
Correct |
3377 ms |
8204 KB |
Output is correct |
210 |
Correct |
3397 ms |
8208 KB |
Output is correct |
211 |
Correct |
3402 ms |
8208 KB |
Output is correct |
212 |
Correct |
3322 ms |
8212 KB |
Output is correct |
213 |
Correct |
3325 ms |
8260 KB |
Output is correct |
214 |
Correct |
3349 ms |
8252 KB |
Output is correct |
215 |
Execution timed out |
5053 ms |
8236 KB |
Time limit exceeded |
216 |
Halted |
0 ms |
0 KB |
- |