#include <bits/stdc++.h>
using namespace std;
vector<long long> SolveDP(long long N, long long LIM, vector<long long> List, vector<long long> Init) {
vector<long long> dp(LIM + 1, -(1LL << 60));
if (Init.size() == 0) dp[0] = 0;
else {
for (int i = 0; i < min(LIM + 1, (long long)Init.size()); i++) dp[i] = Init[i];
}
// DP Start
for (int i = 0; i < N; i++) {
vector<long long> ndp(LIM + 1, -(1LL << 60));
long long kazu = i + 1;
for (int j = 0; j < kazu; j++) {
vector<pair<long long, long long>> maxi;
int cur = 0;
for (int k = j; k <= LIM; k += kazu) {
long long val = dp[k] - (k / kazu);
while (maxi.size() >= cur + 1) {
if (maxi[maxi.size() - 1].second <= val) maxi.pop_back();
else break;
}
maxi.push_back(make_pair(1LL * k, val));
if (maxi[cur].second >= -(1LL << 59)) ndp[k] = maxi[cur].second + (k / kazu);
while (cur < (int)maxi.size() && maxi[cur].first <= k - 1LL * kazu * List[i]) cur += 1;
}
}
dp = ndp;
}
// Return
return dp;
}
vector<long long> SolveDP2(long long N, long long LIM, vector<long long> List) {
vector<long long> dp(LIM + 1, -(1LL << 60));
vector<long long> ret(N, 0);
dp[0] = 0;
// DP Start
for (int i = N - 1; i >= 0; i--) {
for (int j = 1; j <= min(N, List[i]); j++) {
if (dp[(i + 1) * j] == -(1LL << 60)) ret[i] += 1;
else break;
}
vector<long long> ndp(LIM + 1, -(1LL << 60));
long long kazu = i + 1;
for (int j = 0; j < kazu; j++) {
vector<pair<long long, long long>> maxi;
int cur = 0;
for (int k = j; k <= LIM; k += kazu) {
long long val = dp[k] - (k / kazu);
while (maxi.size() >= cur + 1) {
if (maxi[maxi.size() - 1].second <= val) maxi.pop_back();
else break;
}
maxi.push_back(make_pair(1LL * k, val));
if (maxi[cur].second >= -(1LL << 59)) ndp[k] = maxi[cur].second + (k / kazu);
while (cur < (int)maxi.size() && maxi[cur].first <= k - 1LL * kazu * List[i]) cur += 1;
}
}
dp = ndp;
}
// Return
return ret;
}
long long Solve_Easy(long long M, long long L, vector<long long> A) {
if (L < 0) return -1;
vector<long long> All;
for (int i = M + 1; i <= 2 * M; i++) All.push_back(A[i]);
// Step 1. First DP
long long Load = 0;
vector<long long> L0 = SolveDP2(M, M * M + 1, All);
for (int i = 0; i < M; i++) Load += 1LL * (i + 1) * L0[i];
// Step 2. Greedy
vector<long long> L1(M, 0);
vector<long long> L2(M, 0);
long long rem = L - Load;
long long ans = 0;
for (int i = 0; i < M; i++) {
if (rem < 0) continue;
L1[i] = min(All[i] - L0[i], rem / (i + 1));
ans += L1[i];
rem -= 1LL * (i + 1) * L1[i];
}
for (int i = 0; i < M; i++) L2[i] = All[i] - L1[i];
if (rem > M) return -1;
// Step 2. DP
vector<long long> dp = SolveDP(M, Load + rem, L2, vector<long long>{});
if (dp[Load + rem] == -(1LL << 60)) return -1;
return dp[Load + rem] + ans + A[M];
}
long long Solve_Hard(long long M, long long L, vector<long long> A) {
vector<long long> M0(M, 0), M1(M, 0), M2(M, 0), M3(M, 0); // Minus
vector<long long> P0(M, 0), P1(M, 0), P2(M, 0), P3(M, 0); // Minus
// Step 1. First DP
for (int i = 0; i < M; i++) M0[i] = A[M - 1 - i];
for (int i = 0; i < M; i++) P0[i] = A[M + 1 + i];
M1 = SolveDP2(M, M * M + 1, M0);
P1 = SolveDP2(M, M * M + 1, P0);
// Step 2. Calculate Sum
long long sumM = 0; for (int i = 0; i < M; i++) sumM += 1LL * (i + 1) * (M0[i] - M1[i]);
long long sumP = 0; for (int i = 0; i < M; i++) sumP += 1LL * (i + 1) * (P0[i] - P1[i]);
long long Offset = M * M + 10LL * M;
long long Answer = 0;
long long Actual = 0;
if (sumP - sumM > L) sumP = sumM + L;
else sumM = sumP - L;
// Step 3. Greedy
for (int i = 0; i < M; i++) {
M2[i] = min(M0[i] - M1[i], max(0LL, sumM - Offset) / (i + 1));
Answer += M2[i];
sumM -= 1LL * (i + 1) * M2[i];
Actual -= 1LL * (i + 1) * M2[i];
M3[i] = M0[i] - M2[i];
}
for (int i = 0; i < M; i++) {
P2[i] = min(P0[i] - P1[i], max(0LL, sumP - Offset) / (i + 1));
Answer += P2[i];
sumP -= 1LL * (i + 1) * P2[i];
Actual += 1LL * (i + 1) * P2[i];
P3[i] = P0[i] - P2[i];
}
// Step 4. Get Maximum
long long Maximum = Offset + M * M;
for (int i = 0; i < M; i++) Maximum += 1LL * (i + 1) * M1[i];
for (int i = 0; i < M; i++) Maximum += 1LL * (i + 1) * P1[i];
if (abs(Actual - L) > Maximum) return -1;
// Step 5. Get Answer
vector<long long> dp1 = SolveDP(M, Maximum, M3, vector<long long>{});
vector<long long> dp2 = vector<long long>(Maximum + 1, -(1LL << 60));
for (int i = 0; i <= Maximum; i++) dp2[Maximum - i] = dp1[i];
vector<long long> dp3 = SolveDP(M, Maximum + L - Actual, P3, dp2);
if (dp3[Maximum + L - Actual] == -(1LL << 60)) return -1;
return dp3[Maximum + L - Actual] + A[M] + Answer;
}
int main() {
// Input
long long M, L;
cin >> M >> L;
vector<long long> A(2 * M + 1, 0);
for (int i = 0; i <= 2 * M; i++) cin >> A[i];
// Judge if Subtask 5
bool Subtask = true;
for (int i = 0; i < M; i++) {
if (A[i] > 0) Subtask = false;
}
// Execution (Note that hard solution is not correct but passes in many cases)
long long Answer = 0;
if (Subtask == true) Answer = Solve_Easy(M, L, A);
else Answer = Solve_Hard(M, L, A);
// Output
if (Answer == -1) cout << "impossible" << endl;
else cout << Answer << endl;
return 0;
}
Compilation message
vault.cpp: In function 'std::vector<long long int> SolveDP(long long int, long long int, std::vector<long long int>, std::vector<long long int>)':
vault.cpp:20:36: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | while (maxi.size() >= cur + 1) {
| ~~~~~~~~~~~~^~~~~~~~~~
vault.cpp: In function 'std::vector<long long int> SolveDP2(long long int, long long int, std::vector<long long int>)':
vault.cpp:54:36: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
54 | while (maxi.size() >= cur + 1) {
| ~~~~~~~~~~~~^~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
344 KB |
Output is correct |
5 |
Correct |
4 ms |
348 KB |
Output is correct |
6 |
Correct |
27 ms |
2036 KB |
Output is correct |
7 |
Correct |
16 ms |
984 KB |
Output is correct |
8 |
Correct |
27 ms |
2028 KB |
Output is correct |
9 |
Correct |
32 ms |
2148 KB |
Output is correct |
10 |
Correct |
4 ms |
348 KB |
Output is correct |
11 |
Correct |
3 ms |
580 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
344 KB |
Output is correct |
5 |
Correct |
4 ms |
348 KB |
Output is correct |
6 |
Correct |
27 ms |
2036 KB |
Output is correct |
7 |
Correct |
16 ms |
984 KB |
Output is correct |
8 |
Correct |
27 ms |
2028 KB |
Output is correct |
9 |
Correct |
32 ms |
2148 KB |
Output is correct |
10 |
Correct |
4 ms |
348 KB |
Output is correct |
11 |
Correct |
3 ms |
580 KB |
Output is correct |
12 |
Correct |
0 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
3 ms |
348 KB |
Output is correct |
17 |
Correct |
28 ms |
1912 KB |
Output is correct |
18 |
Correct |
16 ms |
1024 KB |
Output is correct |
19 |
Correct |
27 ms |
2028 KB |
Output is correct |
20 |
Correct |
33 ms |
2404 KB |
Output is correct |
21 |
Correct |
4 ms |
348 KB |
Output is correct |
22 |
Correct |
3 ms |
348 KB |
Output is correct |
23 |
Correct |
23 ms |
860 KB |
Output is correct |
24 |
Correct |
273 ms |
8616 KB |
Output is correct |
25 |
Correct |
237 ms |
7172 KB |
Output is correct |
26 |
Correct |
301 ms |
8880 KB |
Output is correct |
27 |
Correct |
298 ms |
9140 KB |
Output is correct |
28 |
Correct |
26 ms |
956 KB |
Output is correct |
29 |
Correct |
29 ms |
988 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
2 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
2 ms |
348 KB |
Output is correct |
5 |
Correct |
2 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
2 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
2 ms |
348 KB |
Output is correct |
5 |
Correct |
2 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
344 KB |
Output is correct |
12 |
Correct |
0 ms |
348 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
2 ms |
348 KB |
Output is correct |
16 |
Correct |
1 ms |
348 KB |
Output is correct |
17 |
Correct |
2 ms |
348 KB |
Output is correct |
18 |
Correct |
2 ms |
600 KB |
Output is correct |
19 |
Correct |
2 ms |
344 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
1 ms |
360 KB |
Output is correct |
22 |
Correct |
1 ms |
348 KB |
Output is correct |
23 |
Correct |
1 ms |
348 KB |
Output is correct |
24 |
Correct |
7 ms |
864 KB |
Output is correct |
25 |
Correct |
7 ms |
988 KB |
Output is correct |
26 |
Correct |
7 ms |
1116 KB |
Output is correct |
27 |
Correct |
7 ms |
848 KB |
Output is correct |
28 |
Correct |
7 ms |
844 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
2 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
2 ms |
348 KB |
Output is correct |
5 |
Correct |
2 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
2 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
2 ms |
348 KB |
Output is correct |
15 |
Correct |
2 ms |
600 KB |
Output is correct |
16 |
Correct |
2 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
4 ms |
348 KB |
Output is correct |
22 |
Correct |
5 ms |
348 KB |
Output is correct |
23 |
Correct |
8 ms |
860 KB |
Output is correct |
24 |
Correct |
7 ms |
604 KB |
Output is correct |
25 |
Correct |
7 ms |
604 KB |
Output is correct |
26 |
Correct |
8 ms |
860 KB |
Output is correct |
27 |
Correct |
7 ms |
860 KB |
Output is correct |
28 |
Correct |
4 ms |
604 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
344 KB |
Output is correct |
5 |
Correct |
4 ms |
348 KB |
Output is correct |
6 |
Correct |
27 ms |
2036 KB |
Output is correct |
7 |
Correct |
16 ms |
984 KB |
Output is correct |
8 |
Correct |
27 ms |
2028 KB |
Output is correct |
9 |
Correct |
32 ms |
2148 KB |
Output is correct |
10 |
Correct |
4 ms |
348 KB |
Output is correct |
11 |
Correct |
3 ms |
580 KB |
Output is correct |
12 |
Correct |
1 ms |
344 KB |
Output is correct |
13 |
Correct |
2 ms |
344 KB |
Output is correct |
14 |
Correct |
1 ms |
344 KB |
Output is correct |
15 |
Correct |
2 ms |
348 KB |
Output is correct |
16 |
Correct |
2 ms |
604 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
348 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
1 ms |
348 KB |
Output is correct |
22 |
Correct |
0 ms |
344 KB |
Output is correct |
23 |
Correct |
0 ms |
348 KB |
Output is correct |
24 |
Correct |
0 ms |
348 KB |
Output is correct |
25 |
Correct |
0 ms |
348 KB |
Output is correct |
26 |
Correct |
2 ms |
348 KB |
Output is correct |
27 |
Correct |
1 ms |
348 KB |
Output is correct |
28 |
Correct |
2 ms |
348 KB |
Output is correct |
29 |
Correct |
2 ms |
600 KB |
Output is correct |
30 |
Correct |
2 ms |
344 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
1 ms |
360 KB |
Output is correct |
33 |
Correct |
1 ms |
348 KB |
Output is correct |
34 |
Correct |
1 ms |
348 KB |
Output is correct |
35 |
Correct |
7 ms |
864 KB |
Output is correct |
36 |
Correct |
7 ms |
988 KB |
Output is correct |
37 |
Correct |
7 ms |
1116 KB |
Output is correct |
38 |
Correct |
7 ms |
848 KB |
Output is correct |
39 |
Correct |
7 ms |
844 KB |
Output is correct |
40 |
Correct |
0 ms |
348 KB |
Output is correct |
41 |
Correct |
2 ms |
348 KB |
Output is correct |
42 |
Correct |
1 ms |
348 KB |
Output is correct |
43 |
Correct |
2 ms |
348 KB |
Output is correct |
44 |
Correct |
2 ms |
600 KB |
Output is correct |
45 |
Correct |
2 ms |
348 KB |
Output is correct |
46 |
Correct |
1 ms |
348 KB |
Output is correct |
47 |
Correct |
1 ms |
344 KB |
Output is correct |
48 |
Correct |
1 ms |
348 KB |
Output is correct |
49 |
Correct |
1 ms |
348 KB |
Output is correct |
50 |
Correct |
4 ms |
348 KB |
Output is correct |
51 |
Correct |
5 ms |
348 KB |
Output is correct |
52 |
Correct |
8 ms |
860 KB |
Output is correct |
53 |
Correct |
7 ms |
604 KB |
Output is correct |
54 |
Correct |
7 ms |
604 KB |
Output is correct |
55 |
Correct |
8 ms |
860 KB |
Output is correct |
56 |
Correct |
7 ms |
860 KB |
Output is correct |
57 |
Correct |
4 ms |
604 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
0 ms |
424 KB |
Output is correct |
60 |
Correct |
0 ms |
348 KB |
Output is correct |
61 |
Correct |
0 ms |
348 KB |
Output is correct |
62 |
Correct |
3 ms |
348 KB |
Output is correct |
63 |
Correct |
27 ms |
1960 KB |
Output is correct |
64 |
Correct |
16 ms |
1024 KB |
Output is correct |
65 |
Correct |
28 ms |
2024 KB |
Output is correct |
66 |
Correct |
31 ms |
2108 KB |
Output is correct |
67 |
Correct |
4 ms |
348 KB |
Output is correct |
68 |
Correct |
3 ms |
348 KB |
Output is correct |
69 |
Correct |
2 ms |
348 KB |
Output is correct |
70 |
Correct |
1 ms |
348 KB |
Output is correct |
71 |
Correct |
2 ms |
348 KB |
Output is correct |
72 |
Correct |
2 ms |
604 KB |
Output is correct |
73 |
Correct |
1 ms |
348 KB |
Output is correct |
74 |
Correct |
1 ms |
348 KB |
Output is correct |
75 |
Correct |
1 ms |
600 KB |
Output is correct |
76 |
Correct |
1 ms |
348 KB |
Output is correct |
77 |
Correct |
1 ms |
344 KB |
Output is correct |
78 |
Correct |
7 ms |
844 KB |
Output is correct |
79 |
Correct |
6 ms |
988 KB |
Output is correct |
80 |
Correct |
7 ms |
1116 KB |
Output is correct |
81 |
Correct |
7 ms |
848 KB |
Output is correct |
82 |
Correct |
7 ms |
844 KB |
Output is correct |
83 |
Correct |
8 ms |
860 KB |
Output is correct |
84 |
Correct |
7 ms |
604 KB |
Output is correct |
85 |
Correct |
6 ms |
604 KB |
Output is correct |
86 |
Correct |
8 ms |
860 KB |
Output is correct |
87 |
Correct |
7 ms |
860 KB |
Output is correct |
88 |
Correct |
5 ms |
604 KB |
Output is correct |
89 |
Correct |
32 ms |
2332 KB |
Output is correct |
90 |
Correct |
34 ms |
2404 KB |
Output is correct |
91 |
Correct |
34 ms |
1988 KB |
Output is correct |
92 |
Correct |
33 ms |
2224 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
2 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
2 ms |
348 KB |
Output is correct |
5 |
Correct |
2 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
2 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
2 ms |
348 KB |
Output is correct |
15 |
Correct |
2 ms |
600 KB |
Output is correct |
16 |
Correct |
2 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
4 ms |
348 KB |
Output is correct |
22 |
Correct |
5 ms |
348 KB |
Output is correct |
23 |
Correct |
8 ms |
860 KB |
Output is correct |
24 |
Correct |
7 ms |
604 KB |
Output is correct |
25 |
Correct |
7 ms |
604 KB |
Output is correct |
26 |
Correct |
8 ms |
860 KB |
Output is correct |
27 |
Correct |
7 ms |
860 KB |
Output is correct |
28 |
Correct |
4 ms |
604 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
2 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
2 ms |
348 KB |
Output is correct |
33 |
Correct |
2 ms |
376 KB |
Output is correct |
34 |
Correct |
2 ms |
344 KB |
Output is correct |
35 |
Correct |
1 ms |
344 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
1 ms |
348 KB |
Output is correct |
38 |
Correct |
1 ms |
344 KB |
Output is correct |
39 |
Correct |
4 ms |
348 KB |
Output is correct |
40 |
Correct |
4 ms |
348 KB |
Output is correct |
41 |
Correct |
8 ms |
860 KB |
Output is correct |
42 |
Correct |
7 ms |
604 KB |
Output is correct |
43 |
Correct |
7 ms |
604 KB |
Output is correct |
44 |
Correct |
8 ms |
860 KB |
Output is correct |
45 |
Correct |
7 ms |
860 KB |
Output is correct |
46 |
Correct |
4 ms |
604 KB |
Output is correct |
47 |
Correct |
29 ms |
952 KB |
Output is correct |
48 |
Correct |
28 ms |
964 KB |
Output is correct |
49 |
Correct |
55 ms |
2524 KB |
Output is correct |
50 |
Correct |
39 ms |
1436 KB |
Output is correct |
51 |
Correct |
73 ms |
2288 KB |
Output is correct |
52 |
Correct |
74 ms |
2312 KB |
Output is correct |
53 |
Correct |
59 ms |
2272 KB |
Output is correct |
54 |
Correct |
34 ms |
1544 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
344 KB |
Output is correct |
5 |
Correct |
4 ms |
348 KB |
Output is correct |
6 |
Correct |
27 ms |
2036 KB |
Output is correct |
7 |
Correct |
16 ms |
984 KB |
Output is correct |
8 |
Correct |
27 ms |
2028 KB |
Output is correct |
9 |
Correct |
32 ms |
2148 KB |
Output is correct |
10 |
Correct |
4 ms |
348 KB |
Output is correct |
11 |
Correct |
3 ms |
580 KB |
Output is correct |
12 |
Correct |
0 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
3 ms |
348 KB |
Output is correct |
17 |
Correct |
28 ms |
1912 KB |
Output is correct |
18 |
Correct |
16 ms |
1024 KB |
Output is correct |
19 |
Correct |
27 ms |
2028 KB |
Output is correct |
20 |
Correct |
33 ms |
2404 KB |
Output is correct |
21 |
Correct |
4 ms |
348 KB |
Output is correct |
22 |
Correct |
3 ms |
348 KB |
Output is correct |
23 |
Correct |
23 ms |
860 KB |
Output is correct |
24 |
Correct |
273 ms |
8616 KB |
Output is correct |
25 |
Correct |
237 ms |
7172 KB |
Output is correct |
26 |
Correct |
301 ms |
8880 KB |
Output is correct |
27 |
Correct |
298 ms |
9140 KB |
Output is correct |
28 |
Correct |
26 ms |
956 KB |
Output is correct |
29 |
Correct |
29 ms |
988 KB |
Output is correct |
30 |
Correct |
1 ms |
344 KB |
Output is correct |
31 |
Correct |
2 ms |
344 KB |
Output is correct |
32 |
Correct |
1 ms |
344 KB |
Output is correct |
33 |
Correct |
2 ms |
348 KB |
Output is correct |
34 |
Correct |
2 ms |
604 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
1 ms |
348 KB |
Output is correct |
38 |
Correct |
1 ms |
348 KB |
Output is correct |
39 |
Correct |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
344 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
0 ms |
348 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
2 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
2 ms |
348 KB |
Output is correct |
47 |
Correct |
2 ms |
600 KB |
Output is correct |
48 |
Correct |
2 ms |
344 KB |
Output is correct |
49 |
Correct |
1 ms |
348 KB |
Output is correct |
50 |
Correct |
1 ms |
360 KB |
Output is correct |
51 |
Correct |
1 ms |
348 KB |
Output is correct |
52 |
Correct |
1 ms |
348 KB |
Output is correct |
53 |
Correct |
7 ms |
864 KB |
Output is correct |
54 |
Correct |
7 ms |
988 KB |
Output is correct |
55 |
Correct |
7 ms |
1116 KB |
Output is correct |
56 |
Correct |
7 ms |
848 KB |
Output is correct |
57 |
Correct |
7 ms |
844 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
2 ms |
348 KB |
Output is correct |
60 |
Correct |
1 ms |
348 KB |
Output is correct |
61 |
Correct |
2 ms |
348 KB |
Output is correct |
62 |
Correct |
2 ms |
600 KB |
Output is correct |
63 |
Correct |
2 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
344 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
4 ms |
348 KB |
Output is correct |
69 |
Correct |
5 ms |
348 KB |
Output is correct |
70 |
Correct |
8 ms |
860 KB |
Output is correct |
71 |
Correct |
7 ms |
604 KB |
Output is correct |
72 |
Correct |
7 ms |
604 KB |
Output is correct |
73 |
Correct |
8 ms |
860 KB |
Output is correct |
74 |
Correct |
7 ms |
860 KB |
Output is correct |
75 |
Correct |
4 ms |
604 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
424 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
3 ms |
348 KB |
Output is correct |
81 |
Correct |
27 ms |
1960 KB |
Output is correct |
82 |
Correct |
16 ms |
1024 KB |
Output is correct |
83 |
Correct |
28 ms |
2024 KB |
Output is correct |
84 |
Correct |
31 ms |
2108 KB |
Output is correct |
85 |
Correct |
4 ms |
348 KB |
Output is correct |
86 |
Correct |
3 ms |
348 KB |
Output is correct |
87 |
Correct |
2 ms |
348 KB |
Output is correct |
88 |
Correct |
1 ms |
348 KB |
Output is correct |
89 |
Correct |
2 ms |
348 KB |
Output is correct |
90 |
Correct |
2 ms |
604 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
1 ms |
600 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
1 ms |
344 KB |
Output is correct |
96 |
Correct |
7 ms |
844 KB |
Output is correct |
97 |
Correct |
6 ms |
988 KB |
Output is correct |
98 |
Correct |
7 ms |
1116 KB |
Output is correct |
99 |
Correct |
7 ms |
848 KB |
Output is correct |
100 |
Correct |
7 ms |
844 KB |
Output is correct |
101 |
Correct |
8 ms |
860 KB |
Output is correct |
102 |
Correct |
7 ms |
604 KB |
Output is correct |
103 |
Correct |
6 ms |
604 KB |
Output is correct |
104 |
Correct |
8 ms |
860 KB |
Output is correct |
105 |
Correct |
7 ms |
860 KB |
Output is correct |
106 |
Correct |
5 ms |
604 KB |
Output is correct |
107 |
Correct |
32 ms |
2332 KB |
Output is correct |
108 |
Correct |
34 ms |
2404 KB |
Output is correct |
109 |
Correct |
34 ms |
1988 KB |
Output is correct |
110 |
Correct |
33 ms |
2224 KB |
Output is correct |
111 |
Correct |
1 ms |
348 KB |
Output is correct |
112 |
Correct |
2 ms |
348 KB |
Output is correct |
113 |
Correct |
1 ms |
348 KB |
Output is correct |
114 |
Correct |
2 ms |
348 KB |
Output is correct |
115 |
Correct |
2 ms |
376 KB |
Output is correct |
116 |
Correct |
2 ms |
344 KB |
Output is correct |
117 |
Correct |
1 ms |
344 KB |
Output is correct |
118 |
Correct |
1 ms |
348 KB |
Output is correct |
119 |
Correct |
1 ms |
348 KB |
Output is correct |
120 |
Correct |
1 ms |
344 KB |
Output is correct |
121 |
Correct |
4 ms |
348 KB |
Output is correct |
122 |
Correct |
4 ms |
348 KB |
Output is correct |
123 |
Correct |
8 ms |
860 KB |
Output is correct |
124 |
Correct |
7 ms |
604 KB |
Output is correct |
125 |
Correct |
7 ms |
604 KB |
Output is correct |
126 |
Correct |
8 ms |
860 KB |
Output is correct |
127 |
Correct |
7 ms |
860 KB |
Output is correct |
128 |
Correct |
4 ms |
604 KB |
Output is correct |
129 |
Correct |
29 ms |
952 KB |
Output is correct |
130 |
Correct |
28 ms |
964 KB |
Output is correct |
131 |
Correct |
55 ms |
2524 KB |
Output is correct |
132 |
Correct |
39 ms |
1436 KB |
Output is correct |
133 |
Correct |
73 ms |
2288 KB |
Output is correct |
134 |
Correct |
74 ms |
2312 KB |
Output is correct |
135 |
Correct |
59 ms |
2272 KB |
Output is correct |
136 |
Correct |
34 ms |
1544 KB |
Output is correct |
137 |
Correct |
1 ms |
344 KB |
Output is correct |
138 |
Correct |
0 ms |
348 KB |
Output is correct |
139 |
Correct |
0 ms |
348 KB |
Output is correct |
140 |
Correct |
0 ms |
348 KB |
Output is correct |
141 |
Correct |
3 ms |
348 KB |
Output is correct |
142 |
Correct |
30 ms |
2036 KB |
Output is correct |
143 |
Correct |
18 ms |
1024 KB |
Output is correct |
144 |
Correct |
28 ms |
2028 KB |
Output is correct |
145 |
Correct |
32 ms |
2152 KB |
Output is correct |
146 |
Correct |
4 ms |
344 KB |
Output is correct |
147 |
Correct |
4 ms |
344 KB |
Output is correct |
148 |
Correct |
23 ms |
1116 KB |
Output is correct |
149 |
Correct |
272 ms |
8360 KB |
Output is correct |
150 |
Correct |
240 ms |
7172 KB |
Output is correct |
151 |
Correct |
312 ms |
9016 KB |
Output is correct |
152 |
Correct |
298 ms |
8872 KB |
Output is correct |
153 |
Correct |
26 ms |
956 KB |
Output is correct |
154 |
Correct |
25 ms |
956 KB |
Output is correct |
155 |
Correct |
2 ms |
348 KB |
Output is correct |
156 |
Correct |
1 ms |
348 KB |
Output is correct |
157 |
Correct |
2 ms |
348 KB |
Output is correct |
158 |
Correct |
2 ms |
604 KB |
Output is correct |
159 |
Correct |
2 ms |
348 KB |
Output is correct |
160 |
Correct |
1 ms |
348 KB |
Output is correct |
161 |
Correct |
1 ms |
348 KB |
Output is correct |
162 |
Correct |
1 ms |
348 KB |
Output is correct |
163 |
Correct |
2 ms |
348 KB |
Output is correct |
164 |
Correct |
9 ms |
860 KB |
Output is correct |
165 |
Correct |
7 ms |
604 KB |
Output is correct |
166 |
Correct |
6 ms |
604 KB |
Output is correct |
167 |
Correct |
8 ms |
860 KB |
Output is correct |
168 |
Correct |
7 ms |
860 KB |
Output is correct |
169 |
Correct |
4 ms |
604 KB |
Output is correct |
170 |
Correct |
8 ms |
872 KB |
Output is correct |
171 |
Correct |
6 ms |
988 KB |
Output is correct |
172 |
Correct |
7 ms |
1040 KB |
Output is correct |
173 |
Correct |
7 ms |
848 KB |
Output is correct |
174 |
Correct |
7 ms |
892 KB |
Output is correct |
175 |
Correct |
32 ms |
2328 KB |
Output is correct |
176 |
Correct |
34 ms |
2404 KB |
Output is correct |
177 |
Correct |
30 ms |
2008 KB |
Output is correct |
178 |
Correct |
31 ms |
2220 KB |
Output is correct |
179 |
Correct |
52 ms |
2268 KB |
Output is correct |
180 |
Correct |
37 ms |
1436 KB |
Output is correct |
181 |
Correct |
68 ms |
2544 KB |
Output is correct |
182 |
Correct |
69 ms |
2316 KB |
Output is correct |
183 |
Correct |
59 ms |
2268 KB |
Output is correct |
184 |
Correct |
34 ms |
1540 KB |
Output is correct |
185 |
Correct |
255 ms |
7596 KB |
Output is correct |
186 |
Correct |
299 ms |
8896 KB |
Output is correct |
187 |
Correct |
271 ms |
8124 KB |
Output is correct |
188 |
Correct |
269 ms |
8576 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
2 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
344 KB |
Output is correct |
4 |
Correct |
2 ms |
348 KB |
Output is correct |
5 |
Correct |
2 ms |
604 KB |
Output is correct |
6 |
Correct |
1 ms |
348 KB |
Output is correct |
7 |
Correct |
1 ms |
348 KB |
Output is correct |
8 |
Correct |
1 ms |
348 KB |
Output is correct |
9 |
Correct |
1 ms |
348 KB |
Output is correct |
10 |
Correct |
1 ms |
348 KB |
Output is correct |
11 |
Correct |
0 ms |
348 KB |
Output is correct |
12 |
Correct |
2 ms |
348 KB |
Output is correct |
13 |
Correct |
1 ms |
348 KB |
Output is correct |
14 |
Correct |
2 ms |
348 KB |
Output is correct |
15 |
Correct |
2 ms |
600 KB |
Output is correct |
16 |
Correct |
2 ms |
348 KB |
Output is correct |
17 |
Correct |
1 ms |
348 KB |
Output is correct |
18 |
Correct |
1 ms |
344 KB |
Output is correct |
19 |
Correct |
1 ms |
348 KB |
Output is correct |
20 |
Correct |
1 ms |
348 KB |
Output is correct |
21 |
Correct |
4 ms |
348 KB |
Output is correct |
22 |
Correct |
5 ms |
348 KB |
Output is correct |
23 |
Correct |
8 ms |
860 KB |
Output is correct |
24 |
Correct |
7 ms |
604 KB |
Output is correct |
25 |
Correct |
7 ms |
604 KB |
Output is correct |
26 |
Correct |
8 ms |
860 KB |
Output is correct |
27 |
Correct |
7 ms |
860 KB |
Output is correct |
28 |
Correct |
4 ms |
604 KB |
Output is correct |
29 |
Correct |
1 ms |
348 KB |
Output is correct |
30 |
Correct |
2 ms |
348 KB |
Output is correct |
31 |
Correct |
1 ms |
348 KB |
Output is correct |
32 |
Correct |
2 ms |
348 KB |
Output is correct |
33 |
Correct |
2 ms |
376 KB |
Output is correct |
34 |
Correct |
2 ms |
344 KB |
Output is correct |
35 |
Correct |
1 ms |
344 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
1 ms |
348 KB |
Output is correct |
38 |
Correct |
1 ms |
344 KB |
Output is correct |
39 |
Correct |
4 ms |
348 KB |
Output is correct |
40 |
Correct |
4 ms |
348 KB |
Output is correct |
41 |
Correct |
8 ms |
860 KB |
Output is correct |
42 |
Correct |
7 ms |
604 KB |
Output is correct |
43 |
Correct |
7 ms |
604 KB |
Output is correct |
44 |
Correct |
8 ms |
860 KB |
Output is correct |
45 |
Correct |
7 ms |
860 KB |
Output is correct |
46 |
Correct |
4 ms |
604 KB |
Output is correct |
47 |
Correct |
29 ms |
952 KB |
Output is correct |
48 |
Correct |
28 ms |
964 KB |
Output is correct |
49 |
Correct |
55 ms |
2524 KB |
Output is correct |
50 |
Correct |
39 ms |
1436 KB |
Output is correct |
51 |
Correct |
73 ms |
2288 KB |
Output is correct |
52 |
Correct |
74 ms |
2312 KB |
Output is correct |
53 |
Correct |
59 ms |
2272 KB |
Output is correct |
54 |
Correct |
34 ms |
1544 KB |
Output is correct |
55 |
Correct |
1 ms |
348 KB |
Output is correct |
56 |
Correct |
2 ms |
348 KB |
Output is correct |
57 |
Correct |
1 ms |
344 KB |
Output is correct |
58 |
Correct |
2 ms |
348 KB |
Output is correct |
59 |
Correct |
2 ms |
604 KB |
Output is correct |
60 |
Correct |
1 ms |
344 KB |
Output is correct |
61 |
Correct |
1 ms |
348 KB |
Output is correct |
62 |
Correct |
1 ms |
444 KB |
Output is correct |
63 |
Correct |
1 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
4 ms |
348 KB |
Output is correct |
66 |
Correct |
3 ms |
348 KB |
Output is correct |
67 |
Correct |
8 ms |
992 KB |
Output is correct |
68 |
Correct |
7 ms |
604 KB |
Output is correct |
69 |
Correct |
6 ms |
604 KB |
Output is correct |
70 |
Correct |
9 ms |
860 KB |
Output is correct |
71 |
Correct |
7 ms |
860 KB |
Output is correct |
72 |
Correct |
4 ms |
600 KB |
Output is correct |
73 |
Correct |
26 ms |
956 KB |
Output is correct |
74 |
Correct |
26 ms |
960 KB |
Output is correct |
75 |
Correct |
53 ms |
2268 KB |
Output is correct |
76 |
Correct |
37 ms |
1436 KB |
Output is correct |
77 |
Correct |
68 ms |
2544 KB |
Output is correct |
78 |
Correct |
74 ms |
2312 KB |
Output is correct |
79 |
Correct |
59 ms |
2276 KB |
Output is correct |
80 |
Correct |
33 ms |
1544 KB |
Output is correct |
81 |
Correct |
1852 ms |
16980 KB |
Output is correct |
82 |
Correct |
1419 ms |
14928 KB |
Output is correct |
83 |
Correct |
1683 ms |
16184 KB |
Output is correct |
84 |
Correct |
2271 ms |
26196 KB |
Output is correct |
85 |
Correct |
710 ms |
5260 KB |
Output is correct |
86 |
Correct |
684 ms |
6112 KB |
Output is correct |
87 |
Correct |
718 ms |
5136 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
4 |
Correct |
0 ms |
344 KB |
Output is correct |
5 |
Correct |
4 ms |
348 KB |
Output is correct |
6 |
Correct |
27 ms |
2036 KB |
Output is correct |
7 |
Correct |
16 ms |
984 KB |
Output is correct |
8 |
Correct |
27 ms |
2028 KB |
Output is correct |
9 |
Correct |
32 ms |
2148 KB |
Output is correct |
10 |
Correct |
4 ms |
348 KB |
Output is correct |
11 |
Correct |
3 ms |
580 KB |
Output is correct |
12 |
Correct |
0 ms |
344 KB |
Output is correct |
13 |
Correct |
0 ms |
348 KB |
Output is correct |
14 |
Correct |
0 ms |
348 KB |
Output is correct |
15 |
Correct |
0 ms |
348 KB |
Output is correct |
16 |
Correct |
3 ms |
348 KB |
Output is correct |
17 |
Correct |
28 ms |
1912 KB |
Output is correct |
18 |
Correct |
16 ms |
1024 KB |
Output is correct |
19 |
Correct |
27 ms |
2028 KB |
Output is correct |
20 |
Correct |
33 ms |
2404 KB |
Output is correct |
21 |
Correct |
4 ms |
348 KB |
Output is correct |
22 |
Correct |
3 ms |
348 KB |
Output is correct |
23 |
Correct |
23 ms |
860 KB |
Output is correct |
24 |
Correct |
273 ms |
8616 KB |
Output is correct |
25 |
Correct |
237 ms |
7172 KB |
Output is correct |
26 |
Correct |
301 ms |
8880 KB |
Output is correct |
27 |
Correct |
298 ms |
9140 KB |
Output is correct |
28 |
Correct |
26 ms |
956 KB |
Output is correct |
29 |
Correct |
29 ms |
988 KB |
Output is correct |
30 |
Correct |
1 ms |
344 KB |
Output is correct |
31 |
Correct |
2 ms |
344 KB |
Output is correct |
32 |
Correct |
1 ms |
344 KB |
Output is correct |
33 |
Correct |
2 ms |
348 KB |
Output is correct |
34 |
Correct |
2 ms |
604 KB |
Output is correct |
35 |
Correct |
1 ms |
348 KB |
Output is correct |
36 |
Correct |
1 ms |
348 KB |
Output is correct |
37 |
Correct |
1 ms |
348 KB |
Output is correct |
38 |
Correct |
1 ms |
348 KB |
Output is correct |
39 |
Correct |
1 ms |
348 KB |
Output is correct |
40 |
Correct |
0 ms |
344 KB |
Output is correct |
41 |
Correct |
0 ms |
348 KB |
Output is correct |
42 |
Correct |
0 ms |
348 KB |
Output is correct |
43 |
Correct |
0 ms |
348 KB |
Output is correct |
44 |
Correct |
2 ms |
348 KB |
Output is correct |
45 |
Correct |
1 ms |
348 KB |
Output is correct |
46 |
Correct |
2 ms |
348 KB |
Output is correct |
47 |
Correct |
2 ms |
600 KB |
Output is correct |
48 |
Correct |
2 ms |
344 KB |
Output is correct |
49 |
Correct |
1 ms |
348 KB |
Output is correct |
50 |
Correct |
1 ms |
360 KB |
Output is correct |
51 |
Correct |
1 ms |
348 KB |
Output is correct |
52 |
Correct |
1 ms |
348 KB |
Output is correct |
53 |
Correct |
7 ms |
864 KB |
Output is correct |
54 |
Correct |
7 ms |
988 KB |
Output is correct |
55 |
Correct |
7 ms |
1116 KB |
Output is correct |
56 |
Correct |
7 ms |
848 KB |
Output is correct |
57 |
Correct |
7 ms |
844 KB |
Output is correct |
58 |
Correct |
0 ms |
348 KB |
Output is correct |
59 |
Correct |
2 ms |
348 KB |
Output is correct |
60 |
Correct |
1 ms |
348 KB |
Output is correct |
61 |
Correct |
2 ms |
348 KB |
Output is correct |
62 |
Correct |
2 ms |
600 KB |
Output is correct |
63 |
Correct |
2 ms |
348 KB |
Output is correct |
64 |
Correct |
1 ms |
348 KB |
Output is correct |
65 |
Correct |
1 ms |
344 KB |
Output is correct |
66 |
Correct |
1 ms |
348 KB |
Output is correct |
67 |
Correct |
1 ms |
348 KB |
Output is correct |
68 |
Correct |
4 ms |
348 KB |
Output is correct |
69 |
Correct |
5 ms |
348 KB |
Output is correct |
70 |
Correct |
8 ms |
860 KB |
Output is correct |
71 |
Correct |
7 ms |
604 KB |
Output is correct |
72 |
Correct |
7 ms |
604 KB |
Output is correct |
73 |
Correct |
8 ms |
860 KB |
Output is correct |
74 |
Correct |
7 ms |
860 KB |
Output is correct |
75 |
Correct |
4 ms |
604 KB |
Output is correct |
76 |
Correct |
0 ms |
348 KB |
Output is correct |
77 |
Correct |
0 ms |
424 KB |
Output is correct |
78 |
Correct |
0 ms |
348 KB |
Output is correct |
79 |
Correct |
0 ms |
348 KB |
Output is correct |
80 |
Correct |
3 ms |
348 KB |
Output is correct |
81 |
Correct |
27 ms |
1960 KB |
Output is correct |
82 |
Correct |
16 ms |
1024 KB |
Output is correct |
83 |
Correct |
28 ms |
2024 KB |
Output is correct |
84 |
Correct |
31 ms |
2108 KB |
Output is correct |
85 |
Correct |
4 ms |
348 KB |
Output is correct |
86 |
Correct |
3 ms |
348 KB |
Output is correct |
87 |
Correct |
2 ms |
348 KB |
Output is correct |
88 |
Correct |
1 ms |
348 KB |
Output is correct |
89 |
Correct |
2 ms |
348 KB |
Output is correct |
90 |
Correct |
2 ms |
604 KB |
Output is correct |
91 |
Correct |
1 ms |
348 KB |
Output is correct |
92 |
Correct |
1 ms |
348 KB |
Output is correct |
93 |
Correct |
1 ms |
600 KB |
Output is correct |
94 |
Correct |
1 ms |
348 KB |
Output is correct |
95 |
Correct |
1 ms |
344 KB |
Output is correct |
96 |
Correct |
7 ms |
844 KB |
Output is correct |
97 |
Correct |
6 ms |
988 KB |
Output is correct |
98 |
Correct |
7 ms |
1116 KB |
Output is correct |
99 |
Correct |
7 ms |
848 KB |
Output is correct |
100 |
Correct |
7 ms |
844 KB |
Output is correct |
101 |
Correct |
8 ms |
860 KB |
Output is correct |
102 |
Correct |
7 ms |
604 KB |
Output is correct |
103 |
Correct |
6 ms |
604 KB |
Output is correct |
104 |
Correct |
8 ms |
860 KB |
Output is correct |
105 |
Correct |
7 ms |
860 KB |
Output is correct |
106 |
Correct |
5 ms |
604 KB |
Output is correct |
107 |
Correct |
32 ms |
2332 KB |
Output is correct |
108 |
Correct |
34 ms |
2404 KB |
Output is correct |
109 |
Correct |
34 ms |
1988 KB |
Output is correct |
110 |
Correct |
33 ms |
2224 KB |
Output is correct |
111 |
Correct |
1 ms |
348 KB |
Output is correct |
112 |
Correct |
2 ms |
348 KB |
Output is correct |
113 |
Correct |
1 ms |
348 KB |
Output is correct |
114 |
Correct |
2 ms |
348 KB |
Output is correct |
115 |
Correct |
2 ms |
376 KB |
Output is correct |
116 |
Correct |
2 ms |
344 KB |
Output is correct |
117 |
Correct |
1 ms |
344 KB |
Output is correct |
118 |
Correct |
1 ms |
348 KB |
Output is correct |
119 |
Correct |
1 ms |
348 KB |
Output is correct |
120 |
Correct |
1 ms |
344 KB |
Output is correct |
121 |
Correct |
4 ms |
348 KB |
Output is correct |
122 |
Correct |
4 ms |
348 KB |
Output is correct |
123 |
Correct |
8 ms |
860 KB |
Output is correct |
124 |
Correct |
7 ms |
604 KB |
Output is correct |
125 |
Correct |
7 ms |
604 KB |
Output is correct |
126 |
Correct |
8 ms |
860 KB |
Output is correct |
127 |
Correct |
7 ms |
860 KB |
Output is correct |
128 |
Correct |
4 ms |
604 KB |
Output is correct |
129 |
Correct |
29 ms |
952 KB |
Output is correct |
130 |
Correct |
28 ms |
964 KB |
Output is correct |
131 |
Correct |
55 ms |
2524 KB |
Output is correct |
132 |
Correct |
39 ms |
1436 KB |
Output is correct |
133 |
Correct |
73 ms |
2288 KB |
Output is correct |
134 |
Correct |
74 ms |
2312 KB |
Output is correct |
135 |
Correct |
59 ms |
2272 KB |
Output is correct |
136 |
Correct |
34 ms |
1544 KB |
Output is correct |
137 |
Correct |
1 ms |
344 KB |
Output is correct |
138 |
Correct |
0 ms |
348 KB |
Output is correct |
139 |
Correct |
0 ms |
348 KB |
Output is correct |
140 |
Correct |
0 ms |
348 KB |
Output is correct |
141 |
Correct |
3 ms |
348 KB |
Output is correct |
142 |
Correct |
30 ms |
2036 KB |
Output is correct |
143 |
Correct |
18 ms |
1024 KB |
Output is correct |
144 |
Correct |
28 ms |
2028 KB |
Output is correct |
145 |
Correct |
32 ms |
2152 KB |
Output is correct |
146 |
Correct |
4 ms |
344 KB |
Output is correct |
147 |
Correct |
4 ms |
344 KB |
Output is correct |
148 |
Correct |
23 ms |
1116 KB |
Output is correct |
149 |
Correct |
272 ms |
8360 KB |
Output is correct |
150 |
Correct |
240 ms |
7172 KB |
Output is correct |
151 |
Correct |
312 ms |
9016 KB |
Output is correct |
152 |
Correct |
298 ms |
8872 KB |
Output is correct |
153 |
Correct |
26 ms |
956 KB |
Output is correct |
154 |
Correct |
25 ms |
956 KB |
Output is correct |
155 |
Correct |
2 ms |
348 KB |
Output is correct |
156 |
Correct |
1 ms |
348 KB |
Output is correct |
157 |
Correct |
2 ms |
348 KB |
Output is correct |
158 |
Correct |
2 ms |
604 KB |
Output is correct |
159 |
Correct |
2 ms |
348 KB |
Output is correct |
160 |
Correct |
1 ms |
348 KB |
Output is correct |
161 |
Correct |
1 ms |
348 KB |
Output is correct |
162 |
Correct |
1 ms |
348 KB |
Output is correct |
163 |
Correct |
2 ms |
348 KB |
Output is correct |
164 |
Correct |
9 ms |
860 KB |
Output is correct |
165 |
Correct |
7 ms |
604 KB |
Output is correct |
166 |
Correct |
6 ms |
604 KB |
Output is correct |
167 |
Correct |
8 ms |
860 KB |
Output is correct |
168 |
Correct |
7 ms |
860 KB |
Output is correct |
169 |
Correct |
4 ms |
604 KB |
Output is correct |
170 |
Correct |
8 ms |
872 KB |
Output is correct |
171 |
Correct |
6 ms |
988 KB |
Output is correct |
172 |
Correct |
7 ms |
1040 KB |
Output is correct |
173 |
Correct |
7 ms |
848 KB |
Output is correct |
174 |
Correct |
7 ms |
892 KB |
Output is correct |
175 |
Correct |
32 ms |
2328 KB |
Output is correct |
176 |
Correct |
34 ms |
2404 KB |
Output is correct |
177 |
Correct |
30 ms |
2008 KB |
Output is correct |
178 |
Correct |
31 ms |
2220 KB |
Output is correct |
179 |
Correct |
52 ms |
2268 KB |
Output is correct |
180 |
Correct |
37 ms |
1436 KB |
Output is correct |
181 |
Correct |
68 ms |
2544 KB |
Output is correct |
182 |
Correct |
69 ms |
2316 KB |
Output is correct |
183 |
Correct |
59 ms |
2268 KB |
Output is correct |
184 |
Correct |
34 ms |
1540 KB |
Output is correct |
185 |
Correct |
255 ms |
7596 KB |
Output is correct |
186 |
Correct |
299 ms |
8896 KB |
Output is correct |
187 |
Correct |
271 ms |
8124 KB |
Output is correct |
188 |
Correct |
269 ms |
8576 KB |
Output is correct |
189 |
Correct |
1 ms |
348 KB |
Output is correct |
190 |
Correct |
2 ms |
348 KB |
Output is correct |
191 |
Correct |
1 ms |
344 KB |
Output is correct |
192 |
Correct |
2 ms |
348 KB |
Output is correct |
193 |
Correct |
2 ms |
604 KB |
Output is correct |
194 |
Correct |
1 ms |
344 KB |
Output is correct |
195 |
Correct |
1 ms |
348 KB |
Output is correct |
196 |
Correct |
1 ms |
444 KB |
Output is correct |
197 |
Correct |
1 ms |
348 KB |
Output is correct |
198 |
Correct |
1 ms |
348 KB |
Output is correct |
199 |
Correct |
4 ms |
348 KB |
Output is correct |
200 |
Correct |
3 ms |
348 KB |
Output is correct |
201 |
Correct |
8 ms |
992 KB |
Output is correct |
202 |
Correct |
7 ms |
604 KB |
Output is correct |
203 |
Correct |
6 ms |
604 KB |
Output is correct |
204 |
Correct |
9 ms |
860 KB |
Output is correct |
205 |
Correct |
7 ms |
860 KB |
Output is correct |
206 |
Correct |
4 ms |
600 KB |
Output is correct |
207 |
Correct |
26 ms |
956 KB |
Output is correct |
208 |
Correct |
26 ms |
960 KB |
Output is correct |
209 |
Correct |
53 ms |
2268 KB |
Output is correct |
210 |
Correct |
37 ms |
1436 KB |
Output is correct |
211 |
Correct |
68 ms |
2544 KB |
Output is correct |
212 |
Correct |
74 ms |
2312 KB |
Output is correct |
213 |
Correct |
59 ms |
2276 KB |
Output is correct |
214 |
Correct |
33 ms |
1544 KB |
Output is correct |
215 |
Correct |
1852 ms |
16980 KB |
Output is correct |
216 |
Correct |
1419 ms |
14928 KB |
Output is correct |
217 |
Correct |
1683 ms |
16184 KB |
Output is correct |
218 |
Correct |
2271 ms |
26196 KB |
Output is correct |
219 |
Correct |
710 ms |
5260 KB |
Output is correct |
220 |
Correct |
684 ms |
6112 KB |
Output is correct |
221 |
Correct |
718 ms |
5136 KB |
Output is correct |
222 |
Correct |
0 ms |
348 KB |
Output is correct |
223 |
Correct |
2 ms |
348 KB |
Output is correct |
224 |
Correct |
1 ms |
348 KB |
Output is correct |
225 |
Correct |
2 ms |
584 KB |
Output is correct |
226 |
Correct |
2 ms |
604 KB |
Output is correct |
227 |
Correct |
1 ms |
348 KB |
Output is correct |
228 |
Correct |
1 ms |
348 KB |
Output is correct |
229 |
Correct |
1 ms |
348 KB |
Output is correct |
230 |
Correct |
1 ms |
348 KB |
Output is correct |
231 |
Correct |
1 ms |
432 KB |
Output is correct |
232 |
Correct |
5 ms |
348 KB |
Output is correct |
233 |
Correct |
4 ms |
588 KB |
Output is correct |
234 |
Correct |
8 ms |
856 KB |
Output is correct |
235 |
Correct |
7 ms |
604 KB |
Output is correct |
236 |
Correct |
7 ms |
604 KB |
Output is correct |
237 |
Correct |
8 ms |
860 KB |
Output is correct |
238 |
Correct |
7 ms |
860 KB |
Output is correct |
239 |
Correct |
4 ms |
604 KB |
Output is correct |
240 |
Correct |
26 ms |
964 KB |
Output is correct |
241 |
Correct |
26 ms |
956 KB |
Output is correct |
242 |
Correct |
52 ms |
2100 KB |
Output is correct |
243 |
Correct |
37 ms |
1436 KB |
Output is correct |
244 |
Correct |
69 ms |
2540 KB |
Output is correct |
245 |
Correct |
69 ms |
2564 KB |
Output is correct |
246 |
Correct |
63 ms |
2272 KB |
Output is correct |
247 |
Correct |
34 ms |
1548 KB |
Output is correct |
248 |
Correct |
0 ms |
344 KB |
Output is correct |
249 |
Correct |
1 ms |
344 KB |
Output is correct |
250 |
Correct |
0 ms |
344 KB |
Output is correct |
251 |
Correct |
4 ms |
348 KB |
Output is correct |
252 |
Correct |
30 ms |
1964 KB |
Output is correct |
253 |
Correct |
16 ms |
1024 KB |
Output is correct |
254 |
Correct |
30 ms |
2024 KB |
Output is correct |
255 |
Correct |
31 ms |
2148 KB |
Output is correct |
256 |
Correct |
23 ms |
860 KB |
Output is correct |
257 |
Correct |
279 ms |
8360 KB |
Output is correct |
258 |
Correct |
232 ms |
7176 KB |
Output is correct |
259 |
Correct |
304 ms |
9272 KB |
Output is correct |
260 |
Correct |
302 ms |
8892 KB |
Output is correct |
261 |
Correct |
7 ms |
848 KB |
Output is correct |
262 |
Correct |
6 ms |
988 KB |
Output is correct |
263 |
Correct |
7 ms |
1116 KB |
Output is correct |
264 |
Correct |
7 ms |
848 KB |
Output is correct |
265 |
Correct |
7 ms |
844 KB |
Output is correct |
266 |
Correct |
32 ms |
2188 KB |
Output is correct |
267 |
Correct |
35 ms |
2404 KB |
Output is correct |
268 |
Correct |
31 ms |
1988 KB |
Output is correct |
269 |
Correct |
31 ms |
2224 KB |
Output is correct |
270 |
Correct |
249 ms |
7604 KB |
Output is correct |
271 |
Correct |
307 ms |
8832 KB |
Output is correct |
272 |
Correct |
269 ms |
8164 KB |
Output is correct |
273 |
Correct |
269 ms |
8316 KB |
Output is correct |
274 |
Correct |
1827 ms |
16324 KB |
Output is correct |
275 |
Correct |
1429 ms |
15192 KB |
Output is correct |
276 |
Correct |
1652 ms |
14828 KB |
Output is correct |
277 |
Correct |
2203 ms |
25424 KB |
Output is correct |
278 |
Correct |
683 ms |
5064 KB |
Output is correct |
279 |
Correct |
692 ms |
5072 KB |
Output is correct |
280 |
Correct |
692 ms |
5140 KB |
Output is correct |
281 |
Execution timed out |
5044 ms |
70052 KB |
Time limit exceeded |
282 |
Halted |
0 ms |
0 KB |
- |