Submission #842399

# Submission time Handle Problem Language Result Execution time Memory
842399 2023-09-02T19:59:28 Z SHZhang Closing Time (IOI23_closing) C++17
75 / 100
669 ms 360492 KB
#include "closing.h"

#include <vector>
#include <algorithm>
#include <utility>

using namespace std;

#define ll long long

vector<pair<int, ll> > graph[200005];
ll distx[200005], disty[200005];

void dfs(int node, int parent, ll* dist)
{
    for (int i = 0; i < graph[node].size(); i++) {
        int nxt = graph[node][i].first;
        if (nxt == parent) continue;
        dist[nxt] = dist[node] + graph[node][i].second;
        dfs(nxt, node, dist);
    }
}

ll f[3005][6005];
const ll inf = 1000000000000000000LL;

int max_score(int N, int X, int Y, long long K,
              std::vector<int> U, std::vector<int> V, std::vector<int> W)
{
    for (int i = 0; i < N - 1; i++) {
        graph[U[i]].push_back(make_pair(V[i], (ll)W[i]));
        graph[V[i]].push_back(make_pair(U[i], (ll)W[i]));
    }
    dfs(X, -1, distx);
    dfs(Y, -1, disty);
    vector<ll> all_dists;
    for (int i = 0; i < N; i++) {
        all_dists.push_back(distx[i]);
        all_dists.push_back(disty[i]);
    }
    sort(all_dists.begin(), all_dists.end());
    int ans = 0;
    ll curtot = 0;
    for (int i = 0; i < 2*N; i++) {
        curtot += all_dists[i];
        if (curtot <= K) ans = i + 1;
    }
    for (int i = 0; i <= N; i++) {
        for (int j = 0; j <= 2 * N + 3; j++) f[i][j] = inf;
    }
    f[0][0] = 0;
    if (N <= 3000) {
        for (int i = 0; i < N; i++) {
            if (distx[i] + disty[i] == distx[Y]) {
                for (int j = 0; j <= 2 * i; j++) {
                    f[i+1][j+1] = min(f[i+1][j+1], f[i][j] + min(distx[i], disty[i]));
                    f[i+1][j+2] = min(f[i+1][j+2], f[i][j] + max(distx[i], disty[i]));
                }
            } else {
                for (int j = 0; j <= 2 * i; j++) {
                    f[i+1][j] = min(f[i+1][j], f[i][j]);
                    f[i+1][j+1] = min(f[i+1][j+1], f[i][j] + min(distx[i], disty[i]));
                    f[i+1][j+2] = min(f[i+1][j+2], f[i][j] + max(distx[i], disty[i]));
                }
            }
        }
        for (int i = 0; i <= 2 * N; i++) {
            if (f[N][i] <= K) {
                ans = max(ans, i);
            }
        }
    }
    for (int i = 0; i < N; i++) {
        graph[i].clear();
        distx[i] = disty[i] = 0;
    }
    return ans;
}

Compilation message

closing.cpp: In function 'void dfs(int, int, long long int*)':
closing.cpp:16:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |     for (int i = 0; i < graph[node].size(); i++) {
      |                     ~~^~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6744 KB Output is correct
# Verdict Execution time Memory Grader output
1 Runtime error 658 ms 350896 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 6744 KB Output is correct
2 Correct 1 ms 7004 KB Output is correct
3 Correct 1 ms 7000 KB Output is correct
4 Correct 1 ms 7000 KB Output is correct
5 Correct 1 ms 6744 KB Output is correct
6 Correct 1 ms 9048 KB Output is correct
7 Correct 2 ms 9048 KB Output is correct
8 Correct 2 ms 9052 KB Output is correct
9 Correct 2 ms 9048 KB Output is correct
10 Correct 2 ms 9052 KB Output is correct
11 Correct 2 ms 9048 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 6744 KB Output is correct
2 Correct 1 ms 7004 KB Output is correct
3 Correct 1 ms 7000 KB Output is correct
4 Correct 1 ms 7000 KB Output is correct
5 Correct 1 ms 6744 KB Output is correct
6 Correct 1 ms 9048 KB Output is correct
7 Correct 2 ms 9048 KB Output is correct
8 Correct 2 ms 9052 KB Output is correct
9 Correct 2 ms 9048 KB Output is correct
10 Correct 2 ms 9052 KB Output is correct
11 Correct 2 ms 9048 KB Output is correct
12 Correct 2 ms 11096 KB Output is correct
13 Correct 2 ms 11100 KB Output is correct
14 Correct 2 ms 11096 KB Output is correct
15 Correct 2 ms 11096 KB Output is correct
16 Correct 2 ms 11096 KB Output is correct
17 Correct 2 ms 11096 KB Output is correct
18 Correct 2 ms 7000 KB Output is correct
19 Correct 5 ms 29784 KB Output is correct
20 Correct 4 ms 27736 KB Output is correct
21 Correct 5 ms 29788 KB Output is correct
22 Correct 5 ms 29784 KB Output is correct
23 Correct 5 ms 29788 KB Output is correct
24 Correct 5 ms 29784 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 6744 KB Output is correct
2 Correct 1 ms 7004 KB Output is correct
3 Correct 1 ms 7000 KB Output is correct
4 Correct 1 ms 7000 KB Output is correct
5 Correct 1 ms 6744 KB Output is correct
6 Correct 1 ms 9048 KB Output is correct
7 Correct 2 ms 9048 KB Output is correct
8 Correct 2 ms 9052 KB Output is correct
9 Correct 2 ms 9048 KB Output is correct
10 Correct 2 ms 9052 KB Output is correct
11 Correct 2 ms 9048 KB Output is correct
12 Correct 2 ms 11096 KB Output is correct
13 Correct 2 ms 11100 KB Output is correct
14 Correct 2 ms 11096 KB Output is correct
15 Correct 2 ms 11096 KB Output is correct
16 Correct 2 ms 11096 KB Output is correct
17 Correct 2 ms 11096 KB Output is correct
18 Correct 2 ms 7000 KB Output is correct
19 Correct 5 ms 29784 KB Output is correct
20 Correct 4 ms 27736 KB Output is correct
21 Correct 5 ms 29788 KB Output is correct
22 Correct 5 ms 29784 KB Output is correct
23 Correct 5 ms 29788 KB Output is correct
24 Correct 5 ms 29784 KB Output is correct
25 Correct 3 ms 9048 KB Output is correct
26 Correct 41 ms 148312 KB Output is correct
27 Correct 36 ms 139612 KB Output is correct
28 Correct 31 ms 139600 KB Output is correct
29 Correct 34 ms 145744 KB Output is correct
30 Correct 34 ms 139608 KB Output is correct
31 Correct 37 ms 148560 KB Output is correct
32 Correct 35 ms 148532 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6744 KB Output is correct
2 Correct 2 ms 6744 KB Output is correct
3 Correct 1 ms 7004 KB Output is correct
4 Correct 1 ms 7000 KB Output is correct
5 Correct 1 ms 7000 KB Output is correct
6 Correct 1 ms 6744 KB Output is correct
7 Correct 1 ms 6744 KB Output is correct
8 Correct 1 ms 6744 KB Output is correct
9 Correct 2 ms 6748 KB Output is correct
10 Correct 1 ms 6748 KB Output is correct
11 Correct 1 ms 7000 KB Output is correct
12 Correct 2 ms 6744 KB Output is correct
13 Correct 2 ms 7004 KB Output is correct
14 Correct 2 ms 7000 KB Output is correct
15 Correct 1 ms 7004 KB Output is correct
16 Correct 2 ms 7000 KB Output is correct
17 Correct 1 ms 6744 KB Output is correct
18 Correct 1 ms 7000 KB Output is correct
19 Correct 1 ms 7000 KB Output is correct
20 Correct 1 ms 6744 KB Output is correct
21 Correct 1 ms 6748 KB Output is correct
22 Correct 2 ms 7000 KB Output is correct
23 Correct 1 ms 7000 KB Output is correct
24 Correct 1 ms 6744 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6744 KB Output is correct
2 Correct 2 ms 6744 KB Output is correct
3 Correct 1 ms 7004 KB Output is correct
4 Correct 1 ms 7000 KB Output is correct
5 Correct 1 ms 7000 KB Output is correct
6 Correct 1 ms 6744 KB Output is correct
7 Correct 1 ms 9048 KB Output is correct
8 Correct 2 ms 9048 KB Output is correct
9 Correct 2 ms 9052 KB Output is correct
10 Correct 2 ms 9048 KB Output is correct
11 Correct 2 ms 9052 KB Output is correct
12 Correct 2 ms 9048 KB Output is correct
13 Correct 2 ms 11096 KB Output is correct
14 Correct 2 ms 11100 KB Output is correct
15 Correct 2 ms 11096 KB Output is correct
16 Correct 2 ms 11096 KB Output is correct
17 Correct 2 ms 11096 KB Output is correct
18 Correct 2 ms 11096 KB Output is correct
19 Correct 1 ms 6744 KB Output is correct
20 Correct 1 ms 6744 KB Output is correct
21 Correct 2 ms 6748 KB Output is correct
22 Correct 1 ms 6748 KB Output is correct
23 Correct 1 ms 7000 KB Output is correct
24 Correct 2 ms 6744 KB Output is correct
25 Correct 2 ms 7004 KB Output is correct
26 Correct 2 ms 7000 KB Output is correct
27 Correct 1 ms 7004 KB Output is correct
28 Correct 2 ms 7000 KB Output is correct
29 Correct 1 ms 6744 KB Output is correct
30 Correct 1 ms 7000 KB Output is correct
31 Correct 1 ms 7000 KB Output is correct
32 Correct 1 ms 6744 KB Output is correct
33 Correct 1 ms 6748 KB Output is correct
34 Correct 2 ms 7000 KB Output is correct
35 Correct 1 ms 7000 KB Output is correct
36 Correct 1 ms 6744 KB Output is correct
37 Correct 2 ms 7000 KB Output is correct
38 Correct 2 ms 9048 KB Output is correct
39 Correct 2 ms 11096 KB Output is correct
40 Correct 2 ms 11100 KB Output is correct
41 Correct 2 ms 11096 KB Output is correct
42 Correct 2 ms 11096 KB Output is correct
43 Correct 2 ms 11100 KB Output is correct
44 Correct 2 ms 11096 KB Output is correct
45 Correct 2 ms 11100 KB Output is correct
46 Correct 2 ms 11096 KB Output is correct
47 Correct 2 ms 11096 KB Output is correct
48 Correct 2 ms 11096 KB Output is correct
49 Correct 2 ms 9052 KB Output is correct
50 Correct 1 ms 9048 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6744 KB Output is correct
2 Correct 2 ms 6744 KB Output is correct
3 Correct 1 ms 7004 KB Output is correct
4 Correct 1 ms 7000 KB Output is correct
5 Correct 1 ms 7000 KB Output is correct
6 Correct 1 ms 6744 KB Output is correct
7 Correct 1 ms 9048 KB Output is correct
8 Correct 2 ms 9048 KB Output is correct
9 Correct 2 ms 9052 KB Output is correct
10 Correct 2 ms 9048 KB Output is correct
11 Correct 2 ms 9052 KB Output is correct
12 Correct 2 ms 9048 KB Output is correct
13 Correct 2 ms 11096 KB Output is correct
14 Correct 2 ms 11100 KB Output is correct
15 Correct 2 ms 11096 KB Output is correct
16 Correct 2 ms 11096 KB Output is correct
17 Correct 2 ms 11096 KB Output is correct
18 Correct 2 ms 11096 KB Output is correct
19 Correct 2 ms 7000 KB Output is correct
20 Correct 5 ms 29784 KB Output is correct
21 Correct 4 ms 27736 KB Output is correct
22 Correct 5 ms 29788 KB Output is correct
23 Correct 5 ms 29784 KB Output is correct
24 Correct 5 ms 29788 KB Output is correct
25 Correct 5 ms 29784 KB Output is correct
26 Correct 1 ms 6744 KB Output is correct
27 Correct 1 ms 6744 KB Output is correct
28 Correct 2 ms 6748 KB Output is correct
29 Correct 1 ms 6748 KB Output is correct
30 Correct 1 ms 7000 KB Output is correct
31 Correct 2 ms 6744 KB Output is correct
32 Correct 2 ms 7004 KB Output is correct
33 Correct 2 ms 7000 KB Output is correct
34 Correct 1 ms 7004 KB Output is correct
35 Correct 2 ms 7000 KB Output is correct
36 Correct 1 ms 6744 KB Output is correct
37 Correct 1 ms 7000 KB Output is correct
38 Correct 1 ms 7000 KB Output is correct
39 Correct 1 ms 6744 KB Output is correct
40 Correct 1 ms 6748 KB Output is correct
41 Correct 2 ms 7000 KB Output is correct
42 Correct 1 ms 7000 KB Output is correct
43 Correct 1 ms 6744 KB Output is correct
44 Correct 2 ms 7000 KB Output is correct
45 Correct 2 ms 9048 KB Output is correct
46 Correct 2 ms 11096 KB Output is correct
47 Correct 2 ms 11100 KB Output is correct
48 Correct 2 ms 11096 KB Output is correct
49 Correct 2 ms 11096 KB Output is correct
50 Correct 2 ms 11100 KB Output is correct
51 Correct 2 ms 11096 KB Output is correct
52 Correct 2 ms 11100 KB Output is correct
53 Correct 2 ms 11096 KB Output is correct
54 Correct 2 ms 11096 KB Output is correct
55 Correct 2 ms 11096 KB Output is correct
56 Correct 2 ms 9052 KB Output is correct
57 Correct 1 ms 9048 KB Output is correct
58 Correct 2 ms 9048 KB Output is correct
59 Correct 2 ms 11096 KB Output is correct
60 Correct 2 ms 11096 KB Output is correct
61 Correct 3 ms 13144 KB Output is correct
62 Correct 3 ms 13144 KB Output is correct
63 Correct 5 ms 29784 KB Output is correct
64 Correct 4 ms 29788 KB Output is correct
65 Correct 5 ms 27740 KB Output is correct
66 Correct 4 ms 29784 KB Output is correct
67 Correct 5 ms 29784 KB Output is correct
68 Correct 5 ms 27740 KB Output is correct
69 Correct 4 ms 29784 KB Output is correct
70 Correct 5 ms 29784 KB Output is correct
71 Correct 4 ms 29784 KB Output is correct
72 Correct 4 ms 29784 KB Output is correct
73 Correct 4 ms 25436 KB Output is correct
74 Correct 4 ms 25436 KB Output is correct
75 Correct 2 ms 11096 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6744 KB Output is correct
2 Correct 2 ms 6744 KB Output is correct
3 Correct 1 ms 7004 KB Output is correct
4 Correct 1 ms 7000 KB Output is correct
5 Correct 1 ms 7000 KB Output is correct
6 Correct 1 ms 6744 KB Output is correct
7 Correct 1 ms 9048 KB Output is correct
8 Correct 2 ms 9048 KB Output is correct
9 Correct 2 ms 9052 KB Output is correct
10 Correct 2 ms 9048 KB Output is correct
11 Correct 2 ms 9052 KB Output is correct
12 Correct 2 ms 9048 KB Output is correct
13 Correct 2 ms 11096 KB Output is correct
14 Correct 2 ms 11100 KB Output is correct
15 Correct 2 ms 11096 KB Output is correct
16 Correct 2 ms 11096 KB Output is correct
17 Correct 2 ms 11096 KB Output is correct
18 Correct 2 ms 11096 KB Output is correct
19 Correct 2 ms 7000 KB Output is correct
20 Correct 5 ms 29784 KB Output is correct
21 Correct 4 ms 27736 KB Output is correct
22 Correct 5 ms 29788 KB Output is correct
23 Correct 5 ms 29784 KB Output is correct
24 Correct 5 ms 29788 KB Output is correct
25 Correct 5 ms 29784 KB Output is correct
26 Correct 3 ms 9048 KB Output is correct
27 Correct 41 ms 148312 KB Output is correct
28 Correct 36 ms 139612 KB Output is correct
29 Correct 31 ms 139600 KB Output is correct
30 Correct 34 ms 145744 KB Output is correct
31 Correct 34 ms 139608 KB Output is correct
32 Correct 37 ms 148560 KB Output is correct
33 Correct 35 ms 148532 KB Output is correct
34 Correct 1 ms 6744 KB Output is correct
35 Correct 1 ms 6744 KB Output is correct
36 Correct 2 ms 6748 KB Output is correct
37 Correct 1 ms 6748 KB Output is correct
38 Correct 1 ms 7000 KB Output is correct
39 Correct 2 ms 6744 KB Output is correct
40 Correct 2 ms 7004 KB Output is correct
41 Correct 2 ms 7000 KB Output is correct
42 Correct 1 ms 7004 KB Output is correct
43 Correct 2 ms 7000 KB Output is correct
44 Correct 1 ms 6744 KB Output is correct
45 Correct 1 ms 7000 KB Output is correct
46 Correct 1 ms 7000 KB Output is correct
47 Correct 1 ms 6744 KB Output is correct
48 Correct 1 ms 6748 KB Output is correct
49 Correct 2 ms 7000 KB Output is correct
50 Correct 1 ms 7000 KB Output is correct
51 Correct 1 ms 6744 KB Output is correct
52 Correct 2 ms 7000 KB Output is correct
53 Correct 2 ms 9048 KB Output is correct
54 Correct 2 ms 11096 KB Output is correct
55 Correct 2 ms 11100 KB Output is correct
56 Correct 2 ms 11096 KB Output is correct
57 Correct 2 ms 11096 KB Output is correct
58 Correct 2 ms 11100 KB Output is correct
59 Correct 2 ms 11096 KB Output is correct
60 Correct 2 ms 11100 KB Output is correct
61 Correct 2 ms 11096 KB Output is correct
62 Correct 2 ms 11096 KB Output is correct
63 Correct 2 ms 11096 KB Output is correct
64 Correct 2 ms 9052 KB Output is correct
65 Correct 1 ms 9048 KB Output is correct
66 Correct 2 ms 9048 KB Output is correct
67 Correct 2 ms 11096 KB Output is correct
68 Correct 2 ms 11096 KB Output is correct
69 Correct 3 ms 13144 KB Output is correct
70 Correct 3 ms 13144 KB Output is correct
71 Correct 5 ms 29784 KB Output is correct
72 Correct 4 ms 29788 KB Output is correct
73 Correct 5 ms 27740 KB Output is correct
74 Correct 4 ms 29784 KB Output is correct
75 Correct 5 ms 29784 KB Output is correct
76 Correct 5 ms 27740 KB Output is correct
77 Correct 4 ms 29784 KB Output is correct
78 Correct 5 ms 29784 KB Output is correct
79 Correct 4 ms 29784 KB Output is correct
80 Correct 4 ms 29784 KB Output is correct
81 Correct 4 ms 25436 KB Output is correct
82 Correct 4 ms 25436 KB Output is correct
83 Correct 2 ms 11096 KB Output is correct
84 Correct 3 ms 9048 KB Output is correct
85 Correct 5 ms 19288 KB Output is correct
86 Correct 3 ms 11096 KB Output is correct
87 Correct 4 ms 13148 KB Output is correct
88 Correct 4 ms 13148 KB Output is correct
89 Correct 44 ms 148372 KB Output is correct
90 Correct 34 ms 135496 KB Output is correct
91 Correct 39 ms 147792 KB Output is correct
92 Correct 36 ms 139600 KB Output is correct
93 Correct 37 ms 139612 KB Output is correct
94 Correct 34 ms 141832 KB Output is correct
95 Correct 36 ms 145744 KB Output is correct
96 Correct 33 ms 137808 KB Output is correct
97 Correct 37 ms 145752 KB Output is correct
98 Correct 37 ms 143704 KB Output is correct
99 Correct 40 ms 148304 KB Output is correct
100 Correct 26 ms 106412 KB Output is correct
101 Correct 9 ms 29784 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 6744 KB Output is correct
2 Correct 2 ms 6744 KB Output is correct
3 Correct 1 ms 7004 KB Output is correct
4 Correct 1 ms 7000 KB Output is correct
5 Correct 1 ms 7000 KB Output is correct
6 Correct 1 ms 6744 KB Output is correct
7 Correct 1 ms 9048 KB Output is correct
8 Correct 2 ms 9048 KB Output is correct
9 Correct 2 ms 9052 KB Output is correct
10 Correct 2 ms 9048 KB Output is correct
11 Correct 2 ms 9052 KB Output is correct
12 Correct 2 ms 9048 KB Output is correct
13 Correct 2 ms 11096 KB Output is correct
14 Correct 2 ms 11100 KB Output is correct
15 Correct 2 ms 11096 KB Output is correct
16 Correct 2 ms 11096 KB Output is correct
17 Correct 2 ms 11096 KB Output is correct
18 Correct 2 ms 11096 KB Output is correct
19 Correct 2 ms 7000 KB Output is correct
20 Correct 5 ms 29784 KB Output is correct
21 Correct 4 ms 27736 KB Output is correct
22 Correct 5 ms 29788 KB Output is correct
23 Correct 5 ms 29784 KB Output is correct
24 Correct 5 ms 29788 KB Output is correct
25 Correct 5 ms 29784 KB Output is correct
26 Correct 3 ms 9048 KB Output is correct
27 Correct 41 ms 148312 KB Output is correct
28 Correct 36 ms 139612 KB Output is correct
29 Correct 31 ms 139600 KB Output is correct
30 Correct 34 ms 145744 KB Output is correct
31 Correct 34 ms 139608 KB Output is correct
32 Correct 37 ms 148560 KB Output is correct
33 Correct 35 ms 148532 KB Output is correct
34 Correct 1 ms 6744 KB Output is correct
35 Correct 1 ms 6744 KB Output is correct
36 Correct 2 ms 6748 KB Output is correct
37 Correct 1 ms 6748 KB Output is correct
38 Correct 1 ms 7000 KB Output is correct
39 Correct 2 ms 6744 KB Output is correct
40 Correct 2 ms 7004 KB Output is correct
41 Correct 2 ms 7000 KB Output is correct
42 Correct 1 ms 7004 KB Output is correct
43 Correct 2 ms 7000 KB Output is correct
44 Correct 1 ms 6744 KB Output is correct
45 Correct 1 ms 7000 KB Output is correct
46 Correct 1 ms 7000 KB Output is correct
47 Correct 1 ms 6744 KB Output is correct
48 Correct 1 ms 6748 KB Output is correct
49 Correct 2 ms 7000 KB Output is correct
50 Correct 1 ms 7000 KB Output is correct
51 Correct 1 ms 6744 KB Output is correct
52 Correct 2 ms 7000 KB Output is correct
53 Correct 2 ms 9048 KB Output is correct
54 Correct 2 ms 11096 KB Output is correct
55 Correct 2 ms 11100 KB Output is correct
56 Correct 2 ms 11096 KB Output is correct
57 Correct 2 ms 11096 KB Output is correct
58 Correct 2 ms 11100 KB Output is correct
59 Correct 2 ms 11096 KB Output is correct
60 Correct 2 ms 11100 KB Output is correct
61 Correct 2 ms 11096 KB Output is correct
62 Correct 2 ms 11096 KB Output is correct
63 Correct 2 ms 11096 KB Output is correct
64 Correct 2 ms 9052 KB Output is correct
65 Correct 1 ms 9048 KB Output is correct
66 Correct 2 ms 9048 KB Output is correct
67 Correct 2 ms 11096 KB Output is correct
68 Correct 2 ms 11096 KB Output is correct
69 Correct 3 ms 13144 KB Output is correct
70 Correct 3 ms 13144 KB Output is correct
71 Correct 5 ms 29784 KB Output is correct
72 Correct 4 ms 29788 KB Output is correct
73 Correct 5 ms 27740 KB Output is correct
74 Correct 4 ms 29784 KB Output is correct
75 Correct 5 ms 29784 KB Output is correct
76 Correct 5 ms 27740 KB Output is correct
77 Correct 4 ms 29784 KB Output is correct
78 Correct 5 ms 29784 KB Output is correct
79 Correct 4 ms 29784 KB Output is correct
80 Correct 4 ms 29784 KB Output is correct
81 Correct 4 ms 25436 KB Output is correct
82 Correct 4 ms 25436 KB Output is correct
83 Correct 2 ms 11096 KB Output is correct
84 Correct 3 ms 9048 KB Output is correct
85 Correct 5 ms 19288 KB Output is correct
86 Correct 3 ms 11096 KB Output is correct
87 Correct 4 ms 13148 KB Output is correct
88 Correct 4 ms 13148 KB Output is correct
89 Correct 44 ms 148372 KB Output is correct
90 Correct 34 ms 135496 KB Output is correct
91 Correct 39 ms 147792 KB Output is correct
92 Correct 36 ms 139600 KB Output is correct
93 Correct 37 ms 139612 KB Output is correct
94 Correct 34 ms 141832 KB Output is correct
95 Correct 36 ms 145744 KB Output is correct
96 Correct 33 ms 137808 KB Output is correct
97 Correct 37 ms 145752 KB Output is correct
98 Correct 37 ms 143704 KB Output is correct
99 Correct 40 ms 148304 KB Output is correct
100 Correct 26 ms 106412 KB Output is correct
101 Correct 9 ms 29784 KB Output is correct
102 Correct 107 ms 15572 KB Output is correct
103 Correct 245 ms 29776 KB Output is correct
104 Runtime error 669 ms 360492 KB Execution killed with signal 11
105 Halted 0 ms 0 KB -