Submission #842980

# Submission time Handle Problem Language Result Execution time Memory
842980 2023-09-03T14:08:20 Z I_love_Hoang_Yen Closing Time (IOI23_closing) C++17
75 / 100
1000 ms 144752 KB
#include "closing.h"
#include <bits/stdc++.h>
using namespace std;
 
using ll = long long;
using Graph = vector<vector<pair<int,ll>>>;
 
void dfs(int u, int fu, const Graph& g, vector<ll>& dists, vector<int>& trace) {
    for (auto [v, w] : g[u]) {
        if (v == fu) continue;
        assert(dists[v] < 0);
 
        dists[v] = dists[u] + w;
        trace[v] = u;
        dfs(v, u, g, dists, trace);
    }
}
 
pair<vector<ll>, vector<int>> get_dists(int u, const Graph& g) {
    int n = g.size();
    vector<ll> dists(n, -1);
    vector<int> trace(n, -1);
    dists[u] = 0;
 
    dfs(u, -1, g, dists, trace);
    return {dists, trace};
}
 
int no_common(ll k, const vector<ll>& dx, const vector<ll>& dy) {
    vector<ll> all;
    for (auto d : dx) all.push_back(d);
    for (auto d : dy) all.push_back(d);
    sort(all.begin(), all.end());
    int cnt = 0;
    for (auto d : all) {
        if (d <= k) {
            k -= d;
            ++cnt;
        } else break;
    }
    return cnt;
}

ll f[3011][6011];
void upMin(ll& f, ll val) {
    if (val < f) f = val;
}

// N <= 3000
int sub8(int n, ll k,
        const vector<ll>& dx, const vector<ll>& dy,
        const vector<bool>& on_path) {
    int res = no_common(k, dx, dy);

    if (n <= 3000) {
        memset(f, 0x7f, sizeof f);
        f[0][0] = 0;
        for (int i = 0; i < n; ++i) {
            if (on_path[i]) {
                for (int j = 0; j <= 2*i; ++j) {
                    upMin(f[i+1][j+1], f[i][j] + min(dx[i], dy[i]));
                    upMin(f[i+1][j+2], f[i][j] + max(dx[i], dy[i]));
                }
            } else {
                for (int j = 0; j <= 2*i; ++j) {
                    f[i+1][j] = min(f[i+1][j], f[i][j]);
                    upMin(f[i+1][j+1], f[i][j] + min(dx[i], dy[i]));
                    upMin(f[i+1][j+2], f[i][j] + max(dx[i], dy[i]));
                }
            }
        }
        for (int j = 0; j <= 2*n; ++j) {
            if (f[n][j] <= k) res = max(res, j);
        }
    }
    return res;
}
 
int max_score(int n, int X, int Y, long long K,
              vector<int> U, vector<int> V, vector<int> W) {
    Graph g(n);
    assert(int(U.size()) == n-1);
    assert(int(V.size()) == n-1);
    assert(int(W.size()) == n-1);
    for (int i = 0; i < n - 1; i++) {
        int u = U[i];
        int v = V[i];
        int w = W[i];
        g[u].emplace_back(v, w);
        g[v].emplace_back(u, w);
    }
    if (X > Y) swap(X, Y);
 
    auto [distsX, traceX] = get_dists(X, g);
    auto [distsY, traceY] = get_dists(Y, g);
    vector<bool> on_path(n, false);
    int cur = Y;
    while (cur != X) {
        on_path[cur] = true;
        cur = traceX[cur];
    }
    on_path[X] = true;
    
    return sub8(n, K, distsX, distsY, on_path);
}
# Verdict Execution time Memory Grader output
1 Correct 25 ms 141916 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 139 ms 37924 KB Output is correct
2 Correct 149 ms 43344 KB Output is correct
3 Execution timed out 1049 ms 144692 KB Time limit exceeded
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 17 ms 141916 KB Output is correct
2 Correct 17 ms 141904 KB Output is correct
3 Correct 17 ms 141916 KB Output is correct
4 Correct 18 ms 142544 KB Output is correct
5 Correct 16 ms 141916 KB Output is correct
6 Correct 16 ms 141916 KB Output is correct
7 Correct 16 ms 141912 KB Output is correct
8 Correct 16 ms 141916 KB Output is correct
9 Correct 16 ms 141912 KB Output is correct
10 Correct 16 ms 141900 KB Output is correct
11 Correct 16 ms 142064 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 141916 KB Output is correct
2 Correct 17 ms 141904 KB Output is correct
3 Correct 17 ms 141916 KB Output is correct
4 Correct 18 ms 142544 KB Output is correct
5 Correct 16 ms 141916 KB Output is correct
6 Correct 16 ms 141916 KB Output is correct
7 Correct 16 ms 141912 KB Output is correct
8 Correct 16 ms 141916 KB Output is correct
9 Correct 16 ms 141912 KB Output is correct
10 Correct 16 ms 141900 KB Output is correct
11 Correct 16 ms 142064 KB Output is correct
12 Correct 16 ms 141912 KB Output is correct
13 Correct 17 ms 141908 KB Output is correct
14 Correct 16 ms 141916 KB Output is correct
15 Correct 17 ms 141916 KB Output is correct
16 Correct 16 ms 141916 KB Output is correct
17 Correct 16 ms 141976 KB Output is correct
18 Correct 232 ms 142092 KB Output is correct
19 Correct 17 ms 142168 KB Output is correct
20 Correct 17 ms 142172 KB Output is correct
21 Correct 17 ms 142168 KB Output is correct
22 Correct 16 ms 142172 KB Output is correct
23 Correct 17 ms 142172 KB Output is correct
24 Correct 17 ms 142036 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 17 ms 141916 KB Output is correct
2 Correct 17 ms 141904 KB Output is correct
3 Correct 17 ms 141916 KB Output is correct
4 Correct 18 ms 142544 KB Output is correct
5 Correct 16 ms 141916 KB Output is correct
6 Correct 16 ms 141916 KB Output is correct
7 Correct 16 ms 141912 KB Output is correct
8 Correct 16 ms 141916 KB Output is correct
9 Correct 16 ms 141912 KB Output is correct
10 Correct 16 ms 141900 KB Output is correct
11 Correct 16 ms 142064 KB Output is correct
12 Correct 16 ms 141912 KB Output is correct
13 Correct 17 ms 141908 KB Output is correct
14 Correct 16 ms 141916 KB Output is correct
15 Correct 17 ms 141916 KB Output is correct
16 Correct 16 ms 141916 KB Output is correct
17 Correct 16 ms 141976 KB Output is correct
18 Correct 232 ms 142092 KB Output is correct
19 Correct 17 ms 142168 KB Output is correct
20 Correct 17 ms 142172 KB Output is correct
21 Correct 17 ms 142168 KB Output is correct
22 Correct 16 ms 142172 KB Output is correct
23 Correct 17 ms 142172 KB Output is correct
24 Correct 17 ms 142036 KB Output is correct
25 Correct 554 ms 142168 KB Output is correct
26 Correct 33 ms 142740 KB Output is correct
27 Correct 31 ms 142700 KB Output is correct
28 Correct 31 ms 142684 KB Output is correct
29 Correct 33 ms 142680 KB Output is correct
30 Correct 31 ms 142680 KB Output is correct
31 Correct 33 ms 142684 KB Output is correct
32 Correct 34 ms 142680 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 141916 KB Output is correct
2 Correct 17 ms 141916 KB Output is correct
3 Correct 17 ms 141904 KB Output is correct
4 Correct 17 ms 141916 KB Output is correct
5 Correct 18 ms 142544 KB Output is correct
6 Correct 16 ms 141916 KB Output is correct
7 Correct 16 ms 141912 KB Output is correct
8 Correct 16 ms 141916 KB Output is correct
9 Correct 16 ms 141916 KB Output is correct
10 Correct 16 ms 142084 KB Output is correct
11 Correct 16 ms 141916 KB Output is correct
12 Correct 16 ms 141932 KB Output is correct
13 Correct 16 ms 142192 KB Output is correct
14 Correct 16 ms 141916 KB Output is correct
15 Correct 16 ms 142024 KB Output is correct
16 Correct 16 ms 141916 KB Output is correct
17 Correct 16 ms 141864 KB Output is correct
18 Correct 16 ms 141916 KB Output is correct
19 Correct 17 ms 141916 KB Output is correct
20 Correct 16 ms 141984 KB Output is correct
21 Correct 16 ms 142084 KB Output is correct
22 Correct 17 ms 141900 KB Output is correct
23 Correct 16 ms 141928 KB Output is correct
24 Correct 16 ms 142100 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 141916 KB Output is correct
2 Correct 17 ms 141916 KB Output is correct
3 Correct 17 ms 141904 KB Output is correct
4 Correct 17 ms 141916 KB Output is correct
5 Correct 18 ms 142544 KB Output is correct
6 Correct 16 ms 141916 KB Output is correct
7 Correct 16 ms 141916 KB Output is correct
8 Correct 16 ms 141912 KB Output is correct
9 Correct 16 ms 141916 KB Output is correct
10 Correct 16 ms 141912 KB Output is correct
11 Correct 16 ms 141900 KB Output is correct
12 Correct 16 ms 142064 KB Output is correct
13 Correct 16 ms 141912 KB Output is correct
14 Correct 17 ms 141908 KB Output is correct
15 Correct 16 ms 141916 KB Output is correct
16 Correct 17 ms 141916 KB Output is correct
17 Correct 16 ms 141916 KB Output is correct
18 Correct 16 ms 141976 KB Output is correct
19 Correct 16 ms 141912 KB Output is correct
20 Correct 16 ms 141916 KB Output is correct
21 Correct 16 ms 141916 KB Output is correct
22 Correct 16 ms 142084 KB Output is correct
23 Correct 16 ms 141916 KB Output is correct
24 Correct 16 ms 141932 KB Output is correct
25 Correct 16 ms 142192 KB Output is correct
26 Correct 16 ms 141916 KB Output is correct
27 Correct 16 ms 142024 KB Output is correct
28 Correct 16 ms 141916 KB Output is correct
29 Correct 16 ms 141864 KB Output is correct
30 Correct 16 ms 141916 KB Output is correct
31 Correct 17 ms 141916 KB Output is correct
32 Correct 16 ms 141984 KB Output is correct
33 Correct 16 ms 142084 KB Output is correct
34 Correct 17 ms 141900 KB Output is correct
35 Correct 16 ms 141928 KB Output is correct
36 Correct 16 ms 142100 KB Output is correct
37 Correct 53 ms 142084 KB Output is correct
38 Correct 25 ms 141912 KB Output is correct
39 Correct 16 ms 141916 KB Output is correct
40 Correct 18 ms 141884 KB Output is correct
41 Correct 16 ms 142056 KB Output is correct
42 Correct 16 ms 141912 KB Output is correct
43 Correct 16 ms 142200 KB Output is correct
44 Correct 16 ms 141916 KB Output is correct
45 Correct 16 ms 142108 KB Output is correct
46 Correct 16 ms 141912 KB Output is correct
47 Correct 16 ms 142356 KB Output is correct
48 Correct 16 ms 141916 KB Output is correct
49 Correct 25 ms 141912 KB Output is correct
50 Correct 54 ms 142084 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 141916 KB Output is correct
2 Correct 17 ms 141916 KB Output is correct
3 Correct 17 ms 141904 KB Output is correct
4 Correct 17 ms 141916 KB Output is correct
5 Correct 18 ms 142544 KB Output is correct
6 Correct 16 ms 141916 KB Output is correct
7 Correct 16 ms 141916 KB Output is correct
8 Correct 16 ms 141912 KB Output is correct
9 Correct 16 ms 141916 KB Output is correct
10 Correct 16 ms 141912 KB Output is correct
11 Correct 16 ms 141900 KB Output is correct
12 Correct 16 ms 142064 KB Output is correct
13 Correct 16 ms 141912 KB Output is correct
14 Correct 17 ms 141908 KB Output is correct
15 Correct 16 ms 141916 KB Output is correct
16 Correct 17 ms 141916 KB Output is correct
17 Correct 16 ms 141916 KB Output is correct
18 Correct 16 ms 141976 KB Output is correct
19 Correct 232 ms 142092 KB Output is correct
20 Correct 17 ms 142168 KB Output is correct
21 Correct 17 ms 142172 KB Output is correct
22 Correct 17 ms 142168 KB Output is correct
23 Correct 16 ms 142172 KB Output is correct
24 Correct 17 ms 142172 KB Output is correct
25 Correct 17 ms 142036 KB Output is correct
26 Correct 16 ms 141912 KB Output is correct
27 Correct 16 ms 141916 KB Output is correct
28 Correct 16 ms 141916 KB Output is correct
29 Correct 16 ms 142084 KB Output is correct
30 Correct 16 ms 141916 KB Output is correct
31 Correct 16 ms 141932 KB Output is correct
32 Correct 16 ms 142192 KB Output is correct
33 Correct 16 ms 141916 KB Output is correct
34 Correct 16 ms 142024 KB Output is correct
35 Correct 16 ms 141916 KB Output is correct
36 Correct 16 ms 141864 KB Output is correct
37 Correct 16 ms 141916 KB Output is correct
38 Correct 17 ms 141916 KB Output is correct
39 Correct 16 ms 141984 KB Output is correct
40 Correct 16 ms 142084 KB Output is correct
41 Correct 17 ms 141900 KB Output is correct
42 Correct 16 ms 141928 KB Output is correct
43 Correct 16 ms 142100 KB Output is correct
44 Correct 53 ms 142084 KB Output is correct
45 Correct 25 ms 141912 KB Output is correct
46 Correct 16 ms 141916 KB Output is correct
47 Correct 18 ms 141884 KB Output is correct
48 Correct 16 ms 142056 KB Output is correct
49 Correct 16 ms 141912 KB Output is correct
50 Correct 16 ms 142200 KB Output is correct
51 Correct 16 ms 141916 KB Output is correct
52 Correct 16 ms 142108 KB Output is correct
53 Correct 16 ms 141912 KB Output is correct
54 Correct 16 ms 142356 KB Output is correct
55 Correct 16 ms 141916 KB Output is correct
56 Correct 25 ms 141912 KB Output is correct
57 Correct 54 ms 142084 KB Output is correct
58 Correct 173 ms 141912 KB Output is correct
59 Correct 62 ms 141916 KB Output is correct
60 Correct 52 ms 141912 KB Output is correct
61 Correct 37 ms 142304 KB Output is correct
62 Correct 34 ms 141916 KB Output is correct
63 Correct 17 ms 142088 KB Output is correct
64 Correct 17 ms 142172 KB Output is correct
65 Correct 17 ms 142172 KB Output is correct
66 Correct 16 ms 142168 KB Output is correct
67 Correct 17 ms 142172 KB Output is correct
68 Correct 16 ms 142112 KB Output is correct
69 Correct 17 ms 142172 KB Output is correct
70 Correct 17 ms 142172 KB Output is correct
71 Correct 18 ms 142172 KB Output is correct
72 Correct 18 ms 142168 KB Output is correct
73 Correct 35 ms 141936 KB Output is correct
74 Correct 35 ms 142004 KB Output is correct
75 Correct 71 ms 142100 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 141916 KB Output is correct
2 Correct 17 ms 141916 KB Output is correct
3 Correct 17 ms 141904 KB Output is correct
4 Correct 17 ms 141916 KB Output is correct
5 Correct 18 ms 142544 KB Output is correct
6 Correct 16 ms 141916 KB Output is correct
7 Correct 16 ms 141916 KB Output is correct
8 Correct 16 ms 141912 KB Output is correct
9 Correct 16 ms 141916 KB Output is correct
10 Correct 16 ms 141912 KB Output is correct
11 Correct 16 ms 141900 KB Output is correct
12 Correct 16 ms 142064 KB Output is correct
13 Correct 16 ms 141912 KB Output is correct
14 Correct 17 ms 141908 KB Output is correct
15 Correct 16 ms 141916 KB Output is correct
16 Correct 17 ms 141916 KB Output is correct
17 Correct 16 ms 141916 KB Output is correct
18 Correct 16 ms 141976 KB Output is correct
19 Correct 232 ms 142092 KB Output is correct
20 Correct 17 ms 142168 KB Output is correct
21 Correct 17 ms 142172 KB Output is correct
22 Correct 17 ms 142168 KB Output is correct
23 Correct 16 ms 142172 KB Output is correct
24 Correct 17 ms 142172 KB Output is correct
25 Correct 17 ms 142036 KB Output is correct
26 Correct 554 ms 142168 KB Output is correct
27 Correct 33 ms 142740 KB Output is correct
28 Correct 31 ms 142700 KB Output is correct
29 Correct 31 ms 142684 KB Output is correct
30 Correct 33 ms 142680 KB Output is correct
31 Correct 31 ms 142680 KB Output is correct
32 Correct 33 ms 142684 KB Output is correct
33 Correct 34 ms 142680 KB Output is correct
34 Correct 16 ms 141912 KB Output is correct
35 Correct 16 ms 141916 KB Output is correct
36 Correct 16 ms 141916 KB Output is correct
37 Correct 16 ms 142084 KB Output is correct
38 Correct 16 ms 141916 KB Output is correct
39 Correct 16 ms 141932 KB Output is correct
40 Correct 16 ms 142192 KB Output is correct
41 Correct 16 ms 141916 KB Output is correct
42 Correct 16 ms 142024 KB Output is correct
43 Correct 16 ms 141916 KB Output is correct
44 Correct 16 ms 141864 KB Output is correct
45 Correct 16 ms 141916 KB Output is correct
46 Correct 17 ms 141916 KB Output is correct
47 Correct 16 ms 141984 KB Output is correct
48 Correct 16 ms 142084 KB Output is correct
49 Correct 17 ms 141900 KB Output is correct
50 Correct 16 ms 141928 KB Output is correct
51 Correct 16 ms 142100 KB Output is correct
52 Correct 53 ms 142084 KB Output is correct
53 Correct 25 ms 141912 KB Output is correct
54 Correct 16 ms 141916 KB Output is correct
55 Correct 18 ms 141884 KB Output is correct
56 Correct 16 ms 142056 KB Output is correct
57 Correct 16 ms 141912 KB Output is correct
58 Correct 16 ms 142200 KB Output is correct
59 Correct 16 ms 141916 KB Output is correct
60 Correct 16 ms 142108 KB Output is correct
61 Correct 16 ms 141912 KB Output is correct
62 Correct 16 ms 142356 KB Output is correct
63 Correct 16 ms 141916 KB Output is correct
64 Correct 25 ms 141912 KB Output is correct
65 Correct 54 ms 142084 KB Output is correct
66 Correct 173 ms 141912 KB Output is correct
67 Correct 62 ms 141916 KB Output is correct
68 Correct 52 ms 141912 KB Output is correct
69 Correct 37 ms 142304 KB Output is correct
70 Correct 34 ms 141916 KB Output is correct
71 Correct 17 ms 142088 KB Output is correct
72 Correct 17 ms 142172 KB Output is correct
73 Correct 17 ms 142172 KB Output is correct
74 Correct 16 ms 142168 KB Output is correct
75 Correct 17 ms 142172 KB Output is correct
76 Correct 16 ms 142112 KB Output is correct
77 Correct 17 ms 142172 KB Output is correct
78 Correct 17 ms 142172 KB Output is correct
79 Correct 18 ms 142172 KB Output is correct
80 Correct 18 ms 142168 KB Output is correct
81 Correct 35 ms 141936 KB Output is correct
82 Correct 35 ms 142004 KB Output is correct
83 Correct 71 ms 142100 KB Output is correct
84 Correct 614 ms 142160 KB Output is correct
85 Correct 108 ms 142168 KB Output is correct
86 Correct 276 ms 142144 KB Output is correct
87 Correct 191 ms 141916 KB Output is correct
88 Correct 193 ms 142152 KB Output is correct
89 Correct 34 ms 142424 KB Output is correct
90 Correct 32 ms 142528 KB Output is correct
91 Correct 34 ms 142680 KB Output is correct
92 Correct 30 ms 142544 KB Output is correct
93 Correct 33 ms 142548 KB Output is correct
94 Correct 32 ms 142684 KB Output is correct
95 Correct 34 ms 142684 KB Output is correct
96 Correct 32 ms 142480 KB Output is correct
97 Correct 34 ms 142428 KB Output is correct
98 Correct 32 ms 142428 KB Output is correct
99 Correct 37 ms 142644 KB Output is correct
100 Correct 63 ms 142428 KB Output is correct
101 Correct 103 ms 142192 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 141916 KB Output is correct
2 Correct 17 ms 141916 KB Output is correct
3 Correct 17 ms 141904 KB Output is correct
4 Correct 17 ms 141916 KB Output is correct
5 Correct 18 ms 142544 KB Output is correct
6 Correct 16 ms 141916 KB Output is correct
7 Correct 16 ms 141916 KB Output is correct
8 Correct 16 ms 141912 KB Output is correct
9 Correct 16 ms 141916 KB Output is correct
10 Correct 16 ms 141912 KB Output is correct
11 Correct 16 ms 141900 KB Output is correct
12 Correct 16 ms 142064 KB Output is correct
13 Correct 16 ms 141912 KB Output is correct
14 Correct 17 ms 141908 KB Output is correct
15 Correct 16 ms 141916 KB Output is correct
16 Correct 17 ms 141916 KB Output is correct
17 Correct 16 ms 141916 KB Output is correct
18 Correct 16 ms 141976 KB Output is correct
19 Correct 232 ms 142092 KB Output is correct
20 Correct 17 ms 142168 KB Output is correct
21 Correct 17 ms 142172 KB Output is correct
22 Correct 17 ms 142168 KB Output is correct
23 Correct 16 ms 142172 KB Output is correct
24 Correct 17 ms 142172 KB Output is correct
25 Correct 17 ms 142036 KB Output is correct
26 Correct 554 ms 142168 KB Output is correct
27 Correct 33 ms 142740 KB Output is correct
28 Correct 31 ms 142700 KB Output is correct
29 Correct 31 ms 142684 KB Output is correct
30 Correct 33 ms 142680 KB Output is correct
31 Correct 31 ms 142680 KB Output is correct
32 Correct 33 ms 142684 KB Output is correct
33 Correct 34 ms 142680 KB Output is correct
34 Correct 16 ms 141912 KB Output is correct
35 Correct 16 ms 141916 KB Output is correct
36 Correct 16 ms 141916 KB Output is correct
37 Correct 16 ms 142084 KB Output is correct
38 Correct 16 ms 141916 KB Output is correct
39 Correct 16 ms 141932 KB Output is correct
40 Correct 16 ms 142192 KB Output is correct
41 Correct 16 ms 141916 KB Output is correct
42 Correct 16 ms 142024 KB Output is correct
43 Correct 16 ms 141916 KB Output is correct
44 Correct 16 ms 141864 KB Output is correct
45 Correct 16 ms 141916 KB Output is correct
46 Correct 17 ms 141916 KB Output is correct
47 Correct 16 ms 141984 KB Output is correct
48 Correct 16 ms 142084 KB Output is correct
49 Correct 17 ms 141900 KB Output is correct
50 Correct 16 ms 141928 KB Output is correct
51 Correct 16 ms 142100 KB Output is correct
52 Correct 53 ms 142084 KB Output is correct
53 Correct 25 ms 141912 KB Output is correct
54 Correct 16 ms 141916 KB Output is correct
55 Correct 18 ms 141884 KB Output is correct
56 Correct 16 ms 142056 KB Output is correct
57 Correct 16 ms 141912 KB Output is correct
58 Correct 16 ms 142200 KB Output is correct
59 Correct 16 ms 141916 KB Output is correct
60 Correct 16 ms 142108 KB Output is correct
61 Correct 16 ms 141912 KB Output is correct
62 Correct 16 ms 142356 KB Output is correct
63 Correct 16 ms 141916 KB Output is correct
64 Correct 25 ms 141912 KB Output is correct
65 Correct 54 ms 142084 KB Output is correct
66 Correct 173 ms 141912 KB Output is correct
67 Correct 62 ms 141916 KB Output is correct
68 Correct 52 ms 141912 KB Output is correct
69 Correct 37 ms 142304 KB Output is correct
70 Correct 34 ms 141916 KB Output is correct
71 Correct 17 ms 142088 KB Output is correct
72 Correct 17 ms 142172 KB Output is correct
73 Correct 17 ms 142172 KB Output is correct
74 Correct 16 ms 142168 KB Output is correct
75 Correct 17 ms 142172 KB Output is correct
76 Correct 16 ms 142112 KB Output is correct
77 Correct 17 ms 142172 KB Output is correct
78 Correct 17 ms 142172 KB Output is correct
79 Correct 18 ms 142172 KB Output is correct
80 Correct 18 ms 142168 KB Output is correct
81 Correct 35 ms 141936 KB Output is correct
82 Correct 35 ms 142004 KB Output is correct
83 Correct 71 ms 142100 KB Output is correct
84 Correct 614 ms 142160 KB Output is correct
85 Correct 108 ms 142168 KB Output is correct
86 Correct 276 ms 142144 KB Output is correct
87 Correct 191 ms 141916 KB Output is correct
88 Correct 193 ms 142152 KB Output is correct
89 Correct 34 ms 142424 KB Output is correct
90 Correct 32 ms 142528 KB Output is correct
91 Correct 34 ms 142680 KB Output is correct
92 Correct 30 ms 142544 KB Output is correct
93 Correct 33 ms 142548 KB Output is correct
94 Correct 32 ms 142684 KB Output is correct
95 Correct 34 ms 142684 KB Output is correct
96 Correct 32 ms 142480 KB Output is correct
97 Correct 34 ms 142428 KB Output is correct
98 Correct 32 ms 142428 KB Output is correct
99 Correct 37 ms 142644 KB Output is correct
100 Correct 63 ms 142428 KB Output is correct
101 Correct 103 ms 142192 KB Output is correct
102 Execution timed out 1032 ms 144752 KB Time limit exceeded
103 Halted 0 ms 0 KB -