답안 #218576

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
218576 2020-04-02T10:04:34 Z VEGAnn 철인 이종 경기 (APIO18_duathlon) C++14
70 / 100
718 ms 1048580 KB
#include <bits/stdc++.h>
#define PB push_back
using namespace std;
typedef long long ll;
const int N = 100100;
const int M = 200100;
set<int> st;
vector<int> g[N], adj[2 * N];
int n, m, tin[N], fup[N], pr[N], siz_comp[2 * N], siz[2 * N], tt = 0, U[M], V[M];
bool mrk[2 * N];
ll ans = 0ll;

int get(int x){ return (pr[x] == x ? x : pr[x] = get(pr[x])); }

void dfs0(int v, int p_edg){
    mrk[v] = 1;
    tin[v] = fup[v] = ++tt;

    for (int nm : g[v]){
        if (nm == p_edg) continue;

        int u = (U[nm] == v ? V[nm] : U[nm]);

        if (!mrk[u]){
            dfs0(u, nm);

            if (fup[u] < tin[v]){
                if (p_edg >= 0) pr[get(p_edg)] = get(nm);
            }

            fup[v] = min(fup[v], fup[u]);
        } else {
            fup[v] = min(fup[v], tin[u]);

            if (tin[u] < tin[v])
                pr[get(p_edg)] = get(nm);
        }
    }
}

void dfs(int v, int p){
    mrk[v] = 1;
    siz[v] = bool(v < n);

    for (int u : adj[v])
        if (u != p) {
            dfs(u, v);
            siz[v] += siz[u];
        }
}

void finally(int v, int r, int p){
    if (v < n) {
        for (int i: adj[v]) {
            assert(i >= n);
            if (i != p) {
                ans -= (ll)(siz_comp[i-n]-1)*(siz[r]-siz[i])*(siz[r]-siz[i]-1);
            } else {
                ans -= (ll)(siz_comp[i-n]-1)*siz[v]*(siz[v]-1);
            }
        }
    }

    for (int u : adj[v]){
        if (u == p) continue;
        finally(u, r, v);
    }
}

int main(){
    ios_base::sync_with_stdio(0); cin.tie(0);

//    freopen("in.txt","r",stdin);

    cin >> n >> m;

    for (int i = 0; i < m; i++){
        pr[i] = i;

        int x, y; cin >> x >> y;
        x--; y--;

        U[i] = x;
        V[i] = y;
        g[x].PB(i);
        g[y].PB(i);
    }

    for (int i = 0; i < n; i++)
        if (!mrk[i]) dfs0(i, -1);

    for (int v = 0; v < n; v++){
        st.clear();

        for (int nm : g[v])
            st.insert(get(nm));

        for (auto cp : st){
            siz_comp[cp]++;
            adj[cp + n].PB(v);
            adj[v].PB(cp + n);
        }
    }

    fill(mrk, mrk + n, 0);

    for (int v = 0; v < n; v++){
        if (mrk[v]) continue;

        dfs(v, -1);
        ans += ll(siz[v]) * (ll(siz[v]) - 1ll) * (ll(siz[v]) - 2ll);
        finally(v, v, -1);
    }

    cout << ans;

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 9 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 8 ms 7296 KB Output is correct
7 Correct 8 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 8 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 8 ms 7424 KB Output is correct
12 Correct 9 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 9 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7424 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 9 ms 7424 KB Output is correct
22 Correct 9 ms 7552 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 9 ms 7424 KB Output is correct
32 Correct 9 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 9 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 9 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 8 ms 7296 KB Output is correct
7 Correct 8 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 8 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 8 ms 7424 KB Output is correct
12 Correct 9 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 9 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7424 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 9 ms 7424 KB Output is correct
22 Correct 9 ms 7552 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 9 ms 7424 KB Output is correct
32 Correct 9 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 9 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 10 ms 7552 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 9 ms 7424 KB Output is correct
45 Correct 8 ms 7424 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 9 ms 7424 KB Output is correct
50 Correct 8 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 9 ms 7424 KB Output is correct
53 Correct 9 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 9 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 9 ms 7424 KB Output is correct
59 Correct 9 ms 7424 KB Output is correct
60 Correct 9 ms 7424 KB Output is correct
61 Correct 9 ms 7424 KB Output is correct
62 Correct 9 ms 7504 KB Output is correct
63 Correct 8 ms 7424 KB Output is correct
64 Correct 8 ms 7424 KB Output is correct
65 Correct 9 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 100 ms 27120 KB Output is correct
2 Correct 108 ms 27248 KB Output is correct
3 Correct 162 ms 25208 KB Output is correct
4 Correct 134 ms 26352 KB Output is correct
5 Correct 140 ms 22896 KB Output is correct
6 Correct 181 ms 24440 KB Output is correct
7 Correct 165 ms 22648 KB Output is correct
8 Correct 166 ms 23160 KB Output is correct
9 Correct 157 ms 21496 KB Output is correct
10 Correct 154 ms 21880 KB Output is correct
11 Correct 122 ms 19320 KB Output is correct
12 Correct 120 ms 19064 KB Output is correct
13 Correct 109 ms 18680 KB Output is correct
14 Correct 122 ms 18400 KB Output is correct
15 Correct 82 ms 17016 KB Output is correct
16 Correct 79 ms 16724 KB Output is correct
17 Correct 11 ms 8704 KB Output is correct
18 Correct 11 ms 8704 KB Output is correct
19 Correct 12 ms 8704 KB Output is correct
20 Correct 12 ms 8704 KB Output is correct
21 Correct 11 ms 8704 KB Output is correct
22 Correct 11 ms 8704 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7552 KB Output is correct
2 Correct 10 ms 7552 KB Output is correct
3 Correct 9 ms 7552 KB Output is correct
4 Correct 9 ms 7680 KB Output is correct
5 Correct 9 ms 7680 KB Output is correct
6 Correct 9 ms 7552 KB Output is correct
7 Correct 9 ms 7680 KB Output is correct
8 Correct 10 ms 7680 KB Output is correct
9 Correct 9 ms 7552 KB Output is correct
10 Correct 10 ms 7552 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 9 ms 7552 KB Output is correct
13 Correct 9 ms 7552 KB Output is correct
14 Correct 10 ms 7600 KB Output is correct
15 Correct 9 ms 7552 KB Output is correct
16 Correct 9 ms 7552 KB Output is correct
17 Correct 9 ms 7552 KB Output is correct
18 Correct 9 ms 7680 KB Output is correct
19 Correct 9 ms 7552 KB Output is correct
20 Correct 11 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 186 ms 21624 KB Output is correct
2 Correct 224 ms 21624 KB Output is correct
3 Correct 196 ms 21668 KB Output is correct
4 Correct 181 ms 21624 KB Output is correct
5 Correct 213 ms 21624 KB Output is correct
6 Correct 270 ms 28152 KB Output is correct
7 Correct 250 ms 25976 KB Output is correct
8 Correct 249 ms 24696 KB Output is correct
9 Correct 245 ms 23672 KB Output is correct
10 Correct 216 ms 21624 KB Output is correct
11 Correct 212 ms 21624 KB Output is correct
12 Correct 224 ms 21752 KB Output is correct
13 Correct 203 ms 21636 KB Output is correct
14 Correct 171 ms 20856 KB Output is correct
15 Correct 153 ms 19960 KB Output is correct
16 Correct 94 ms 16632 KB Output is correct
17 Correct 153 ms 25708 KB Output is correct
18 Correct 154 ms 23536 KB Output is correct
19 Correct 153 ms 22868 KB Output is correct
20 Correct 161 ms 22776 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 7552 KB Output is correct
2 Correct 10 ms 7552 KB Output is correct
3 Correct 10 ms 7552 KB Output is correct
4 Correct 10 ms 7552 KB Output is correct
5 Correct 10 ms 7552 KB Output is correct
6 Correct 9 ms 7552 KB Output is correct
7 Correct 9 ms 7552 KB Output is correct
8 Correct 9 ms 7552 KB Output is correct
9 Correct 9 ms 7552 KB Output is correct
10 Correct 9 ms 7552 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 10 ms 7552 KB Output is correct
13 Correct 10 ms 7552 KB Output is correct
14 Correct 10 ms 7552 KB Output is correct
15 Correct 10 ms 7552 KB Output is correct
16 Correct 10 ms 7552 KB Output is correct
17 Correct 12 ms 7656 KB Output is correct
18 Correct 10 ms 7552 KB Output is correct
19 Correct 10 ms 7552 KB Output is correct
20 Correct 9 ms 7552 KB Output is correct
21 Correct 10 ms 7552 KB Output is correct
22 Correct 10 ms 7552 KB Output is correct
23 Correct 10 ms 7552 KB Output is correct
24 Correct 10 ms 7552 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 221 ms 21624 KB Output is correct
2 Correct 223 ms 21496 KB Output is correct
3 Runtime error 718 ms 1048580 KB Execution killed with signal 9 (could be triggered by violating memory limits)
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 9 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 8 ms 7296 KB Output is correct
7 Correct 8 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 8 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 8 ms 7424 KB Output is correct
12 Correct 9 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 9 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7424 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 9 ms 7424 KB Output is correct
22 Correct 9 ms 7552 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 9 ms 7424 KB Output is correct
32 Correct 9 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 9 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 10 ms 7552 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 9 ms 7424 KB Output is correct
45 Correct 8 ms 7424 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 9 ms 7424 KB Output is correct
50 Correct 8 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 9 ms 7424 KB Output is correct
53 Correct 9 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 9 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 9 ms 7424 KB Output is correct
59 Correct 9 ms 7424 KB Output is correct
60 Correct 9 ms 7424 KB Output is correct
61 Correct 9 ms 7424 KB Output is correct
62 Correct 9 ms 7504 KB Output is correct
63 Correct 8 ms 7424 KB Output is correct
64 Correct 8 ms 7424 KB Output is correct
65 Correct 9 ms 7424 KB Output is correct
66 Correct 9 ms 7424 KB Output is correct
67 Correct 9 ms 7552 KB Output is correct
68 Correct 13 ms 7552 KB Output is correct
69 Correct 10 ms 7680 KB Output is correct
70 Correct 10 ms 7680 KB Output is correct
71 Correct 9 ms 7552 KB Output is correct
72 Correct 9 ms 7552 KB Output is correct
73 Correct 10 ms 7552 KB Output is correct
74 Correct 10 ms 7424 KB Output is correct
75 Correct 9 ms 7552 KB Output is correct
76 Correct 9 ms 7424 KB Output is correct
77 Correct 10 ms 7552 KB Output is correct
78 Correct 10 ms 7552 KB Output is correct
79 Correct 9 ms 7552 KB Output is correct
80 Correct 10 ms 7552 KB Output is correct
81 Correct 10 ms 7552 KB Output is correct
82 Correct 9 ms 7552 KB Output is correct
83 Correct 10 ms 7552 KB Output is correct
84 Correct 11 ms 7552 KB Output is correct
85 Correct 10 ms 7552 KB Output is correct
86 Correct 11 ms 7552 KB Output is correct
87 Correct 10 ms 7552 KB Output is correct
88 Correct 10 ms 7552 KB Output is correct
89 Correct 10 ms 7552 KB Output is correct
90 Correct 10 ms 7552 KB Output is correct
91 Correct 10 ms 7552 KB Output is correct
92 Correct 10 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 9 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 8 ms 7296 KB Output is correct
7 Correct 8 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 8 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 8 ms 7424 KB Output is correct
12 Correct 9 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 9 ms 7424 KB Output is correct
16 Correct 9 ms 7424 KB Output is correct
17 Correct 9 ms 7424 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7424 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 9 ms 7424 KB Output is correct
22 Correct 9 ms 7552 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 9 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 9 ms 7424 KB Output is correct
32 Correct 9 ms 7424 KB Output is correct
33 Correct 8 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 9 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7424 KB Output is correct
40 Correct 8 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 10 ms 7552 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 9 ms 7424 KB Output is correct
45 Correct 8 ms 7424 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 9 ms 7424 KB Output is correct
50 Correct 8 ms 7424 KB Output is correct
51 Correct 8 ms 7424 KB Output is correct
52 Correct 9 ms 7424 KB Output is correct
53 Correct 9 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 8 ms 7424 KB Output is correct
56 Correct 9 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 9 ms 7424 KB Output is correct
59 Correct 9 ms 7424 KB Output is correct
60 Correct 9 ms 7424 KB Output is correct
61 Correct 9 ms 7424 KB Output is correct
62 Correct 9 ms 7504 KB Output is correct
63 Correct 8 ms 7424 KB Output is correct
64 Correct 8 ms 7424 KB Output is correct
65 Correct 9 ms 7424 KB Output is correct
66 Correct 100 ms 27120 KB Output is correct
67 Correct 108 ms 27248 KB Output is correct
68 Correct 162 ms 25208 KB Output is correct
69 Correct 134 ms 26352 KB Output is correct
70 Correct 140 ms 22896 KB Output is correct
71 Correct 181 ms 24440 KB Output is correct
72 Correct 165 ms 22648 KB Output is correct
73 Correct 166 ms 23160 KB Output is correct
74 Correct 157 ms 21496 KB Output is correct
75 Correct 154 ms 21880 KB Output is correct
76 Correct 122 ms 19320 KB Output is correct
77 Correct 120 ms 19064 KB Output is correct
78 Correct 109 ms 18680 KB Output is correct
79 Correct 122 ms 18400 KB Output is correct
80 Correct 82 ms 17016 KB Output is correct
81 Correct 79 ms 16724 KB Output is correct
82 Correct 11 ms 8704 KB Output is correct
83 Correct 11 ms 8704 KB Output is correct
84 Correct 12 ms 8704 KB Output is correct
85 Correct 12 ms 8704 KB Output is correct
86 Correct 11 ms 8704 KB Output is correct
87 Correct 11 ms 8704 KB Output is correct
88 Correct 9 ms 7552 KB Output is correct
89 Correct 10 ms 7552 KB Output is correct
90 Correct 9 ms 7552 KB Output is correct
91 Correct 9 ms 7680 KB Output is correct
92 Correct 9 ms 7680 KB Output is correct
93 Correct 9 ms 7552 KB Output is correct
94 Correct 9 ms 7680 KB Output is correct
95 Correct 10 ms 7680 KB Output is correct
96 Correct 9 ms 7552 KB Output is correct
97 Correct 10 ms 7552 KB Output is correct
98 Correct 9 ms 7552 KB Output is correct
99 Correct 9 ms 7552 KB Output is correct
100 Correct 9 ms 7552 KB Output is correct
101 Correct 10 ms 7600 KB Output is correct
102 Correct 9 ms 7552 KB Output is correct
103 Correct 9 ms 7552 KB Output is correct
104 Correct 9 ms 7552 KB Output is correct
105 Correct 9 ms 7680 KB Output is correct
106 Correct 9 ms 7552 KB Output is correct
107 Correct 11 ms 7552 KB Output is correct
108 Correct 186 ms 21624 KB Output is correct
109 Correct 224 ms 21624 KB Output is correct
110 Correct 196 ms 21668 KB Output is correct
111 Correct 181 ms 21624 KB Output is correct
112 Correct 213 ms 21624 KB Output is correct
113 Correct 270 ms 28152 KB Output is correct
114 Correct 250 ms 25976 KB Output is correct
115 Correct 249 ms 24696 KB Output is correct
116 Correct 245 ms 23672 KB Output is correct
117 Correct 216 ms 21624 KB Output is correct
118 Correct 212 ms 21624 KB Output is correct
119 Correct 224 ms 21752 KB Output is correct
120 Correct 203 ms 21636 KB Output is correct
121 Correct 171 ms 20856 KB Output is correct
122 Correct 153 ms 19960 KB Output is correct
123 Correct 94 ms 16632 KB Output is correct
124 Correct 153 ms 25708 KB Output is correct
125 Correct 154 ms 23536 KB Output is correct
126 Correct 153 ms 22868 KB Output is correct
127 Correct 161 ms 22776 KB Output is correct
128 Correct 10 ms 7552 KB Output is correct
129 Correct 10 ms 7552 KB Output is correct
130 Correct 10 ms 7552 KB Output is correct
131 Correct 10 ms 7552 KB Output is correct
132 Correct 10 ms 7552 KB Output is correct
133 Correct 9 ms 7552 KB Output is correct
134 Correct 9 ms 7552 KB Output is correct
135 Correct 9 ms 7552 KB Output is correct
136 Correct 9 ms 7552 KB Output is correct
137 Correct 9 ms 7552 KB Output is correct
138 Correct 9 ms 7552 KB Output is correct
139 Correct 10 ms 7552 KB Output is correct
140 Correct 10 ms 7552 KB Output is correct
141 Correct 10 ms 7552 KB Output is correct
142 Correct 10 ms 7552 KB Output is correct
143 Correct 10 ms 7552 KB Output is correct
144 Correct 12 ms 7656 KB Output is correct
145 Correct 10 ms 7552 KB Output is correct
146 Correct 10 ms 7552 KB Output is correct
147 Correct 9 ms 7552 KB Output is correct
148 Correct 10 ms 7552 KB Output is correct
149 Correct 10 ms 7552 KB Output is correct
150 Correct 10 ms 7552 KB Output is correct
151 Correct 10 ms 7552 KB Output is correct
152 Correct 9 ms 7424 KB Output is correct
153 Correct 9 ms 7424 KB Output is correct
154 Correct 9 ms 7424 KB Output is correct
155 Correct 221 ms 21624 KB Output is correct
156 Correct 223 ms 21496 KB Output is correct
157 Runtime error 718 ms 1048580 KB Execution killed with signal 9 (could be triggered by violating memory limits)
158 Halted 0 ms 0 KB -