답안 #842481

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
842481 2023-09-03T00:24:39 Z CodePlatina 봉쇄 시간 (IOI23_closing) C++17
100 / 100
147 ms 43372 KB
#include "closing.h"
#include <vector>
#include <iostream>
#include <algorithm>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define ff first
#define ss second
using namespace std;

vector<pii> gph[202020];
long long D1[202020];
long long D2[202020];
bool path[202020];
long long L;

void dfs1(int x, int p, long long w)
{
    D1[x] = w;
    for(auto [y, z] : gph[x]) if(y != p) dfs1(y, x, w + z);
}
void dfs2(int x, int p, long long w)
{
    D2[x] = w;
    for(auto [y, z] : gph[x]) if(y != p) dfs2(y, x, w + z);
}
bool dfs(int x, int p, int y)
{
    if(x == y)
    {
        path[x] = true;
        return true;
    }

    for(auto [z, w] : gph[x]) if(z != p)
    {
        if(dfs(z, x, y))
        {
            L += w;
            path[x] = true;
            return true;
        }
    }

    return false;
}

int calc(vector<long long> A, vector<pll> B, long long K)
{
    vector<pll> C;
    for(auto [x, y] : B) 
    {
        if(y - x >= x) A.push_back(x), A.push_back(y - x);
        else C.push_back({x, y});
    }

    sort(A.begin(), A.end());
    //upper_bound remaining cost on D and get score
    vector<long long> D;
    if(A.size()) D.push_back(A[0]);
    for(int i = 1; i < (int)A.size() && D.back() + A[i] <= K; ++i) D.push_back(D.back() + A[i]);

    sort(C.begin(), C.end(), [](pll x, pll y) { return x.ss < y.ss; });
    int N = C.size();
    //E: prefix max of y - x, F: suffix min of x
    vector<long long> E(N), F(N);
    for(int i = 0; i < N; ++i)
    {
        E[i] = C[i].ss - C[i].ff;
        if(i) E[i] = max(E[i], E[i - 1]);
    }
    for(int i = N - 1; i >= 0; --i)
    {
        F[i] = C[i].ff;
        if(i < N - 1) F[i] = min(F[i], F[i + 1]);
    }

    int ret = 0;
    long long sum = 0;
    for(int i = 0; i <= N; ++i)
    {
        if(sum <= K) ret = max(ret, 2 * i + int(upper_bound(D.begin(), D.end(), K - sum) - D.begin()));
        if(i && sum - E[i - 1] <= K) ret = max(ret, 2 * i - 1 + int(upper_bound(D.begin(), D.end(), K - sum + E[i - 1]) - D.begin()));
        if(i < N && sum + F[i] <= K) ret = max(ret, 2 * i + 1 + int(upper_bound(D.begin(), D.end(), K - sum - F[i]) - D.begin()));
        if(sum > K) break;
        if(i < N) sum += C[i].ss;
    }

    return ret;
}

int max_score(int N, int X, int Y, long long K, vector<int> U, vector<int> V, vector<int> W)
{
    for(int i = 0; i < N; ++i) gph[i].clear(), D1[i] = 0, D2[i] = 0, path[i] = false;
    L = 0;

    for(int i = 0; i < N - 1; ++i)
    {
        gph[U[i]].push_back({V[i], W[i]});
        gph[V[i]].push_back({U[i], W[i]});
    }

    dfs1(X, X, 0);
    dfs2(Y, Y, 0);
    dfs(X, X, Y);

    int ret = 0;
    vector<long long> WG;

    for(int i = 0; i < N; ++i) WG.push_back(min(D1[i], D2[i]));
    ret = max(ret, calc(WG, vector<pll>(), K));

    // cout << ret << endl;

    vector<long long> A;
    vector<pll> B;
    int cnt = 0; long long sum = 0;
    for(int i = 0; i < N; ++i)
    {
        if(path[i]) ++cnt, sum += min(D1[i], D2[i]), A.push_back(max(D1[i], D2[i]) - min(D1[i], D2[i]));
        else B.push_back({min(D1[i], D2[i]), max(D1[i], D2[i])});
    }
    // cout << K - sum << endl;
    // cout << cnt << endl;
    // for(auto [x, y] : A) cout << x << ' ' << y << endl;
    if(sum <= K) ret = max(ret, cnt + calc(A, B, K - sum));

    return ret;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 103 ms 34724 KB Output is correct
2 Correct 112 ms 37288 KB Output is correct
3 Correct 59 ms 10852 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8284 KB Output is correct
2 Correct 2 ms 8280 KB Output is correct
3 Correct 2 ms 8280 KB Output is correct
4 Correct 2 ms 8280 KB Output is correct
5 Correct 2 ms 8280 KB Output is correct
6 Correct 2 ms 8280 KB Output is correct
7 Correct 2 ms 8280 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8280 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8284 KB Output is correct
2 Correct 2 ms 8280 KB Output is correct
3 Correct 2 ms 8280 KB Output is correct
4 Correct 2 ms 8280 KB Output is correct
5 Correct 2 ms 8280 KB Output is correct
6 Correct 2 ms 8280 KB Output is correct
7 Correct 2 ms 8280 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8280 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
12 Correct 2 ms 8280 KB Output is correct
13 Correct 2 ms 8284 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8280 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8280 KB Output is correct
21 Correct 2 ms 8280 KB Output is correct
22 Correct 2 ms 8280 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 2 ms 8280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8284 KB Output is correct
2 Correct 2 ms 8280 KB Output is correct
3 Correct 2 ms 8280 KB Output is correct
4 Correct 2 ms 8280 KB Output is correct
5 Correct 2 ms 8280 KB Output is correct
6 Correct 2 ms 8280 KB Output is correct
7 Correct 2 ms 8280 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8280 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8284 KB Output is correct
12 Correct 2 ms 8280 KB Output is correct
13 Correct 2 ms 8284 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8280 KB Output is correct
16 Correct 2 ms 8284 KB Output is correct
17 Correct 2 ms 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8280 KB Output is correct
21 Correct 2 ms 8280 KB Output is correct
22 Correct 2 ms 8280 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 2 ms 8280 KB Output is correct
25 Correct 3 ms 8536 KB Output is correct
26 Correct 3 ms 8792 KB Output is correct
27 Correct 3 ms 8796 KB Output is correct
28 Correct 3 ms 8792 KB Output is correct
29 Correct 3 ms 8792 KB Output is correct
30 Correct 3 ms 8536 KB Output is correct
31 Correct 3 ms 8792 KB Output is correct
32 Correct 3 ms 8792 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8280 KB Output is correct
2 Correct 2 ms 8284 KB Output is correct
3 Correct 2 ms 8280 KB Output is correct
4 Correct 2 ms 8280 KB Output is correct
5 Correct 2 ms 8280 KB Output is correct
6 Correct 2 ms 8280 KB Output is correct
7 Correct 2 ms 8280 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8284 KB Output is correct
10 Correct 2 ms 8284 KB Output is correct
11 Correct 2 ms 8280 KB Output is correct
12 Correct 2 ms 8280 KB Output is correct
13 Correct 2 ms 8284 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8280 KB Output is correct
16 Correct 2 ms 8280 KB Output is correct
17 Correct 2 ms 8280 KB Output is correct
18 Correct 2 ms 8280 KB Output is correct
19 Correct 2 ms 8280 KB Output is correct
20 Correct 2 ms 8280 KB Output is correct
21 Correct 2 ms 8280 KB Output is correct
22 Correct 2 ms 8284 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 2 ms 8280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8280 KB Output is correct
2 Correct 2 ms 8284 KB Output is correct
3 Correct 2 ms 8280 KB Output is correct
4 Correct 2 ms 8280 KB Output is correct
5 Correct 2 ms 8280 KB Output is correct
6 Correct 2 ms 8280 KB Output is correct
7 Correct 2 ms 8280 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8280 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8280 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8280 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8284 KB Output is correct
16 Correct 2 ms 8280 KB Output is correct
17 Correct 2 ms 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8280 KB Output is correct
20 Correct 2 ms 8280 KB Output is correct
21 Correct 2 ms 8284 KB Output is correct
22 Correct 2 ms 8284 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 2 ms 8280 KB Output is correct
25 Correct 2 ms 8284 KB Output is correct
26 Correct 2 ms 8284 KB Output is correct
27 Correct 2 ms 8280 KB Output is correct
28 Correct 2 ms 8280 KB Output is correct
29 Correct 2 ms 8280 KB Output is correct
30 Correct 2 ms 8280 KB Output is correct
31 Correct 2 ms 8280 KB Output is correct
32 Correct 2 ms 8280 KB Output is correct
33 Correct 2 ms 8280 KB Output is correct
34 Correct 2 ms 8284 KB Output is correct
35 Correct 2 ms 8280 KB Output is correct
36 Correct 2 ms 8280 KB Output is correct
37 Correct 2 ms 8280 KB Output is correct
38 Correct 2 ms 8284 KB Output is correct
39 Correct 2 ms 8280 KB Output is correct
40 Correct 2 ms 8280 KB Output is correct
41 Correct 2 ms 8280 KB Output is correct
42 Correct 2 ms 8280 KB Output is correct
43 Correct 2 ms 8280 KB Output is correct
44 Correct 2 ms 8280 KB Output is correct
45 Correct 3 ms 8536 KB Output is correct
46 Correct 3 ms 8284 KB Output is correct
47 Correct 2 ms 8280 KB Output is correct
48 Correct 2 ms 8280 KB Output is correct
49 Correct 2 ms 8280 KB Output is correct
50 Correct 2 ms 8280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8280 KB Output is correct
2 Correct 2 ms 8284 KB Output is correct
3 Correct 2 ms 8280 KB Output is correct
4 Correct 2 ms 8280 KB Output is correct
5 Correct 2 ms 8280 KB Output is correct
6 Correct 2 ms 8280 KB Output is correct
7 Correct 2 ms 8280 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8280 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8280 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8280 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8284 KB Output is correct
16 Correct 2 ms 8280 KB Output is correct
17 Correct 2 ms 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8284 KB Output is correct
21 Correct 2 ms 8280 KB Output is correct
22 Correct 2 ms 8280 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 2 ms 8280 KB Output is correct
25 Correct 2 ms 8280 KB Output is correct
26 Correct 2 ms 8280 KB Output is correct
27 Correct 2 ms 8280 KB Output is correct
28 Correct 2 ms 8284 KB Output is correct
29 Correct 2 ms 8284 KB Output is correct
30 Correct 2 ms 8280 KB Output is correct
31 Correct 2 ms 8280 KB Output is correct
32 Correct 2 ms 8284 KB Output is correct
33 Correct 2 ms 8284 KB Output is correct
34 Correct 2 ms 8280 KB Output is correct
35 Correct 2 ms 8280 KB Output is correct
36 Correct 2 ms 8280 KB Output is correct
37 Correct 2 ms 8280 KB Output is correct
38 Correct 2 ms 8280 KB Output is correct
39 Correct 2 ms 8280 KB Output is correct
40 Correct 2 ms 8280 KB Output is correct
41 Correct 2 ms 8284 KB Output is correct
42 Correct 2 ms 8280 KB Output is correct
43 Correct 2 ms 8280 KB Output is correct
44 Correct 2 ms 8280 KB Output is correct
45 Correct 2 ms 8284 KB Output is correct
46 Correct 2 ms 8280 KB Output is correct
47 Correct 2 ms 8280 KB Output is correct
48 Correct 2 ms 8280 KB Output is correct
49 Correct 2 ms 8280 KB Output is correct
50 Correct 2 ms 8280 KB Output is correct
51 Correct 2 ms 8280 KB Output is correct
52 Correct 3 ms 8536 KB Output is correct
53 Correct 3 ms 8284 KB Output is correct
54 Correct 2 ms 8280 KB Output is correct
55 Correct 2 ms 8280 KB Output is correct
56 Correct 2 ms 8280 KB Output is correct
57 Correct 2 ms 8280 KB Output is correct
58 Correct 2 ms 8280 KB Output is correct
59 Correct 2 ms 8284 KB Output is correct
60 Correct 2 ms 8280 KB Output is correct
61 Correct 2 ms 8280 KB Output is correct
62 Correct 2 ms 8280 KB Output is correct
63 Correct 2 ms 8280 KB Output is correct
64 Correct 2 ms 8480 KB Output is correct
65 Correct 2 ms 8280 KB Output is correct
66 Correct 2 ms 8280 KB Output is correct
67 Correct 2 ms 8284 KB Output is correct
68 Correct 2 ms 8280 KB Output is correct
69 Correct 2 ms 8280 KB Output is correct
70 Correct 2 ms 8280 KB Output is correct
71 Correct 2 ms 8280 KB Output is correct
72 Correct 2 ms 8284 KB Output is correct
73 Correct 2 ms 8280 KB Output is correct
74 Correct 2 ms 8280 KB Output is correct
75 Correct 2 ms 8280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8280 KB Output is correct
2 Correct 2 ms 8284 KB Output is correct
3 Correct 2 ms 8280 KB Output is correct
4 Correct 2 ms 8280 KB Output is correct
5 Correct 2 ms 8280 KB Output is correct
6 Correct 2 ms 8280 KB Output is correct
7 Correct 2 ms 8280 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8280 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8280 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8280 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8284 KB Output is correct
16 Correct 2 ms 8280 KB Output is correct
17 Correct 2 ms 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8284 KB Output is correct
21 Correct 2 ms 8280 KB Output is correct
22 Correct 2 ms 8280 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 2 ms 8280 KB Output is correct
25 Correct 2 ms 8280 KB Output is correct
26 Correct 3 ms 8536 KB Output is correct
27 Correct 3 ms 8792 KB Output is correct
28 Correct 3 ms 8796 KB Output is correct
29 Correct 3 ms 8792 KB Output is correct
30 Correct 3 ms 8792 KB Output is correct
31 Correct 3 ms 8536 KB Output is correct
32 Correct 3 ms 8792 KB Output is correct
33 Correct 3 ms 8792 KB Output is correct
34 Correct 2 ms 8280 KB Output is correct
35 Correct 2 ms 8280 KB Output is correct
36 Correct 2 ms 8284 KB Output is correct
37 Correct 2 ms 8284 KB Output is correct
38 Correct 2 ms 8280 KB Output is correct
39 Correct 2 ms 8280 KB Output is correct
40 Correct 2 ms 8284 KB Output is correct
41 Correct 2 ms 8284 KB Output is correct
42 Correct 2 ms 8280 KB Output is correct
43 Correct 2 ms 8280 KB Output is correct
44 Correct 2 ms 8280 KB Output is correct
45 Correct 2 ms 8280 KB Output is correct
46 Correct 2 ms 8280 KB Output is correct
47 Correct 2 ms 8280 KB Output is correct
48 Correct 2 ms 8280 KB Output is correct
49 Correct 2 ms 8284 KB Output is correct
50 Correct 2 ms 8280 KB Output is correct
51 Correct 2 ms 8280 KB Output is correct
52 Correct 2 ms 8280 KB Output is correct
53 Correct 2 ms 8284 KB Output is correct
54 Correct 2 ms 8280 KB Output is correct
55 Correct 2 ms 8280 KB Output is correct
56 Correct 2 ms 8280 KB Output is correct
57 Correct 2 ms 8280 KB Output is correct
58 Correct 2 ms 8280 KB Output is correct
59 Correct 2 ms 8280 KB Output is correct
60 Correct 3 ms 8536 KB Output is correct
61 Correct 3 ms 8284 KB Output is correct
62 Correct 2 ms 8280 KB Output is correct
63 Correct 2 ms 8280 KB Output is correct
64 Correct 2 ms 8280 KB Output is correct
65 Correct 2 ms 8280 KB Output is correct
66 Correct 2 ms 8280 KB Output is correct
67 Correct 2 ms 8284 KB Output is correct
68 Correct 2 ms 8280 KB Output is correct
69 Correct 2 ms 8280 KB Output is correct
70 Correct 2 ms 8280 KB Output is correct
71 Correct 2 ms 8280 KB Output is correct
72 Correct 2 ms 8480 KB Output is correct
73 Correct 2 ms 8280 KB Output is correct
74 Correct 2 ms 8280 KB Output is correct
75 Correct 2 ms 8284 KB Output is correct
76 Correct 2 ms 8280 KB Output is correct
77 Correct 2 ms 8280 KB Output is correct
78 Correct 2 ms 8280 KB Output is correct
79 Correct 2 ms 8280 KB Output is correct
80 Correct 2 ms 8284 KB Output is correct
81 Correct 2 ms 8280 KB Output is correct
82 Correct 2 ms 8280 KB Output is correct
83 Correct 2 ms 8280 KB Output is correct
84 Correct 3 ms 8280 KB Output is correct
85 Correct 3 ms 8280 KB Output is correct
86 Correct 3 ms 8284 KB Output is correct
87 Correct 3 ms 8280 KB Output is correct
88 Correct 3 ms 8280 KB Output is correct
89 Correct 3 ms 8792 KB Output is correct
90 Correct 3 ms 8792 KB Output is correct
91 Correct 3 ms 8796 KB Output is correct
92 Correct 3 ms 8792 KB Output is correct
93 Correct 3 ms 8540 KB Output is correct
94 Correct 3 ms 8792 KB Output is correct
95 Correct 3 ms 8792 KB Output is correct
96 Correct 3 ms 8536 KB Output is correct
97 Correct 4 ms 8792 KB Output is correct
98 Correct 3 ms 8792 KB Output is correct
99 Correct 3 ms 8792 KB Output is correct
100 Correct 3 ms 8536 KB Output is correct
101 Correct 3 ms 8280 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 8280 KB Output is correct
2 Correct 2 ms 8284 KB Output is correct
3 Correct 2 ms 8280 KB Output is correct
4 Correct 2 ms 8280 KB Output is correct
5 Correct 2 ms 8280 KB Output is correct
6 Correct 2 ms 8280 KB Output is correct
7 Correct 2 ms 8280 KB Output is correct
8 Correct 2 ms 8280 KB Output is correct
9 Correct 2 ms 8280 KB Output is correct
10 Correct 2 ms 8280 KB Output is correct
11 Correct 2 ms 8280 KB Output is correct
12 Correct 2 ms 8284 KB Output is correct
13 Correct 2 ms 8280 KB Output is correct
14 Correct 2 ms 8284 KB Output is correct
15 Correct 2 ms 8284 KB Output is correct
16 Correct 2 ms 8280 KB Output is correct
17 Correct 2 ms 8284 KB Output is correct
18 Correct 2 ms 8284 KB Output is correct
19 Correct 2 ms 8284 KB Output is correct
20 Correct 2 ms 8284 KB Output is correct
21 Correct 2 ms 8280 KB Output is correct
22 Correct 2 ms 8280 KB Output is correct
23 Correct 2 ms 8280 KB Output is correct
24 Correct 2 ms 8280 KB Output is correct
25 Correct 2 ms 8280 KB Output is correct
26 Correct 3 ms 8536 KB Output is correct
27 Correct 3 ms 8792 KB Output is correct
28 Correct 3 ms 8796 KB Output is correct
29 Correct 3 ms 8792 KB Output is correct
30 Correct 3 ms 8792 KB Output is correct
31 Correct 3 ms 8536 KB Output is correct
32 Correct 3 ms 8792 KB Output is correct
33 Correct 3 ms 8792 KB Output is correct
34 Correct 2 ms 8280 KB Output is correct
35 Correct 2 ms 8280 KB Output is correct
36 Correct 2 ms 8284 KB Output is correct
37 Correct 2 ms 8284 KB Output is correct
38 Correct 2 ms 8280 KB Output is correct
39 Correct 2 ms 8280 KB Output is correct
40 Correct 2 ms 8284 KB Output is correct
41 Correct 2 ms 8284 KB Output is correct
42 Correct 2 ms 8280 KB Output is correct
43 Correct 2 ms 8280 KB Output is correct
44 Correct 2 ms 8280 KB Output is correct
45 Correct 2 ms 8280 KB Output is correct
46 Correct 2 ms 8280 KB Output is correct
47 Correct 2 ms 8280 KB Output is correct
48 Correct 2 ms 8280 KB Output is correct
49 Correct 2 ms 8284 KB Output is correct
50 Correct 2 ms 8280 KB Output is correct
51 Correct 2 ms 8280 KB Output is correct
52 Correct 2 ms 8280 KB Output is correct
53 Correct 2 ms 8284 KB Output is correct
54 Correct 2 ms 8280 KB Output is correct
55 Correct 2 ms 8280 KB Output is correct
56 Correct 2 ms 8280 KB Output is correct
57 Correct 2 ms 8280 KB Output is correct
58 Correct 2 ms 8280 KB Output is correct
59 Correct 2 ms 8280 KB Output is correct
60 Correct 3 ms 8536 KB Output is correct
61 Correct 3 ms 8284 KB Output is correct
62 Correct 2 ms 8280 KB Output is correct
63 Correct 2 ms 8280 KB Output is correct
64 Correct 2 ms 8280 KB Output is correct
65 Correct 2 ms 8280 KB Output is correct
66 Correct 2 ms 8280 KB Output is correct
67 Correct 2 ms 8284 KB Output is correct
68 Correct 2 ms 8280 KB Output is correct
69 Correct 2 ms 8280 KB Output is correct
70 Correct 2 ms 8280 KB Output is correct
71 Correct 2 ms 8280 KB Output is correct
72 Correct 2 ms 8480 KB Output is correct
73 Correct 2 ms 8280 KB Output is correct
74 Correct 2 ms 8280 KB Output is correct
75 Correct 2 ms 8284 KB Output is correct
76 Correct 2 ms 8280 KB Output is correct
77 Correct 2 ms 8280 KB Output is correct
78 Correct 2 ms 8280 KB Output is correct
79 Correct 2 ms 8280 KB Output is correct
80 Correct 2 ms 8284 KB Output is correct
81 Correct 2 ms 8280 KB Output is correct
82 Correct 2 ms 8280 KB Output is correct
83 Correct 2 ms 8280 KB Output is correct
84 Correct 3 ms 8280 KB Output is correct
85 Correct 3 ms 8280 KB Output is correct
86 Correct 3 ms 8284 KB Output is correct
87 Correct 3 ms 8280 KB Output is correct
88 Correct 3 ms 8280 KB Output is correct
89 Correct 3 ms 8792 KB Output is correct
90 Correct 3 ms 8792 KB Output is correct
91 Correct 3 ms 8796 KB Output is correct
92 Correct 3 ms 8792 KB Output is correct
93 Correct 3 ms 8540 KB Output is correct
94 Correct 3 ms 8792 KB Output is correct
95 Correct 3 ms 8792 KB Output is correct
96 Correct 3 ms 8536 KB Output is correct
97 Correct 4 ms 8792 KB Output is correct
98 Correct 3 ms 8792 KB Output is correct
99 Correct 3 ms 8792 KB Output is correct
100 Correct 3 ms 8536 KB Output is correct
101 Correct 3 ms 8280 KB Output is correct
102 Correct 72 ms 10832 KB Output is correct
103 Correct 70 ms 10832 KB Output is correct
104 Correct 132 ms 40372 KB Output is correct
105 Correct 76 ms 12616 KB Output is correct
106 Correct 79 ms 11628 KB Output is correct
107 Correct 66 ms 39064 KB Output is correct
108 Correct 67 ms 36952 KB Output is correct
109 Correct 71 ms 35080 KB Output is correct
110 Correct 147 ms 36440 KB Output is correct
111 Correct 102 ms 42888 KB Output is correct
112 Correct 132 ms 35604 KB Output is correct
113 Correct 105 ms 28144 KB Output is correct
114 Correct 119 ms 35536 KB Output is correct
115 Correct 108 ms 43372 KB Output is correct
116 Correct 138 ms 40476 KB Output is correct
117 Correct 126 ms 30992 KB Output is correct
118 Correct 130 ms 36396 KB Output is correct
119 Correct 90 ms 14692 KB Output is correct
120 Correct 68 ms 11100 KB Output is correct