답안 #218589

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
218589 2020-04-02T10:21:10 Z VEGAnn 철인 이종 경기 (APIO18_duathlon) C++14
70 / 100
1000 ms 1048576 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[M], 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 u : adj[v])
            if (u == p)
                ans -= (ll(siz_comp[u - n]) - 1ll) * ll(siz[v]) * (ll(siz[v]) - 1ll);
            else ans -= (ll(siz_comp[u - n]) - 1ll) * (ll(siz[r]) - ll(siz[u])) * (ll(siz[r]) - ll(siz[u]) - 1ll);
    }

    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 9 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 9 ms 7424 KB Output is correct
5 Correct 11 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7424 KB Output is correct
12 Correct 10 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 11 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 9 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 8 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 9 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 8 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 9 ms 7424 KB Output is correct
31 Correct 9 ms 7424 KB Output is correct
32 Correct 9 ms 7552 KB Output is correct
33 Correct 9 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 8 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 9 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 9 ms 7424 KB Output is correct
5 Correct 11 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7424 KB Output is correct
12 Correct 10 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 11 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 9 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 8 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 9 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 8 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 9 ms 7424 KB Output is correct
31 Correct 9 ms 7424 KB Output is correct
32 Correct 9 ms 7552 KB Output is correct
33 Correct 9 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 8 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 9 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 9 ms 7424 KB Output is correct
45 Correct 9 ms 7472 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 10 ms 7424 KB Output is correct
49 Correct 9 ms 7476 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 9 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 8 ms 7424 KB Output is correct
55 Correct 9 ms 7424 KB Output is correct
56 Correct 9 ms 7424 KB Output is correct
57 Correct 10 ms 7424 KB Output is correct
58 Correct 9 ms 7424 KB Output is correct
59 Correct 10 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 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 9 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 118 ms 26504 KB Output is correct
2 Correct 108 ms 26480 KB Output is correct
3 Correct 184 ms 24436 KB Output is correct
4 Correct 165 ms 25712 KB Output is correct
5 Correct 142 ms 22128 KB Output is correct
6 Correct 171 ms 23516 KB Output is correct
7 Correct 169 ms 22008 KB Output is correct
8 Correct 188 ms 22380 KB Output is correct
9 Correct 164 ms 20752 KB Output is correct
10 Correct 166 ms 21112 KB Output is correct
11 Correct 147 ms 18680 KB Output is correct
12 Correct 142 ms 18552 KB Output is correct
13 Correct 109 ms 18220 KB Output is correct
14 Correct 111 ms 17912 KB Output is correct
15 Correct 84 ms 16760 KB Output is correct
16 Correct 85 ms 16480 KB Output is correct
17 Correct 11 ms 8704 KB Output is correct
18 Correct 11 ms 8704 KB Output is correct
19 Correct 11 ms 8704 KB Output is correct
20 Correct 11 ms 8704 KB Output is correct
21 Correct 12 ms 8704 KB Output is correct
22 Correct 13 ms 8704 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 7552 KB Output is correct
2 Correct 10 ms 7680 KB Output is correct
3 Correct 10 ms 7552 KB Output is correct
4 Correct 9 ms 7680 KB Output is correct
5 Correct 10 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 9 ms 7600 KB Output is correct
9 Correct 9 ms 7552 KB Output is correct
10 Correct 10 ms 7552 KB Output is correct
11 Correct 10 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 9 ms 7552 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 7680 KB Output is correct
18 Correct 9 ms 7680 KB Output is correct
19 Correct 9 ms 7552 KB Output is correct
20 Correct 9 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 185 ms 20984 KB Output is correct
2 Correct 184 ms 20904 KB Output is correct
3 Correct 183 ms 20856 KB Output is correct
4 Correct 195 ms 20984 KB Output is correct
5 Correct 186 ms 20856 KB Output is correct
6 Correct 222 ms 27512 KB Output is correct
7 Correct 227 ms 25208 KB Output is correct
8 Correct 221 ms 24012 KB Output is correct
9 Correct 205 ms 22908 KB Output is correct
10 Correct 194 ms 20912 KB Output is correct
11 Correct 183 ms 20856 KB Output is correct
12 Correct 195 ms 20948 KB Output is correct
13 Correct 184 ms 20984 KB Output is correct
14 Correct 153 ms 20216 KB Output is correct
15 Correct 134 ms 19448 KB Output is correct
16 Correct 80 ms 16504 KB Output is correct
17 Correct 141 ms 25072 KB Output is correct
18 Correct 150 ms 22872 KB Output is correct
19 Correct 138 ms 22124 KB Output is correct
20 Correct 147 ms 22008 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7552 KB Output is correct
2 Correct 9 ms 7552 KB Output is correct
3 Correct 12 ms 7552 KB Output is correct
4 Correct 9 ms 7552 KB Output is correct
5 Correct 9 ms 7552 KB Output is correct
6 Correct 10 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 10 ms 7680 KB Output is correct
12 Correct 10 ms 7680 KB Output is correct
13 Correct 10 ms 7680 KB Output is correct
14 Correct 9 ms 7552 KB Output is correct
15 Correct 9 ms 7552 KB Output is correct
16 Correct 10 ms 7552 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 9 ms 7552 KB Output is correct
19 Correct 9 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 7544 KB Output is correct
23 Correct 40 ms 7552 KB Output is correct
24 Correct 9 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 182 ms 20860 KB Output is correct
2 Correct 190 ms 20728 KB Output is correct
3 Runtime error 1045 ms 1048576 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 9 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 9 ms 7424 KB Output is correct
5 Correct 11 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7424 KB Output is correct
12 Correct 10 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 11 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 9 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 8 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 9 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 8 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 9 ms 7424 KB Output is correct
31 Correct 9 ms 7424 KB Output is correct
32 Correct 9 ms 7552 KB Output is correct
33 Correct 9 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 8 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 9 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 9 ms 7424 KB Output is correct
45 Correct 9 ms 7472 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 10 ms 7424 KB Output is correct
49 Correct 9 ms 7476 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 9 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 8 ms 7424 KB Output is correct
55 Correct 9 ms 7424 KB Output is correct
56 Correct 9 ms 7424 KB Output is correct
57 Correct 10 ms 7424 KB Output is correct
58 Correct 9 ms 7424 KB Output is correct
59 Correct 10 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 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 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 9 ms 7552 KB Output is correct
69 Correct 10 ms 7552 KB Output is correct
70 Correct 9 ms 7552 KB Output is correct
71 Correct 9 ms 7552 KB Output is correct
72 Correct 9 ms 7552 KB Output is correct
73 Correct 9 ms 7552 KB Output is correct
74 Correct 9 ms 7552 KB Output is correct
75 Correct 9 ms 7552 KB Output is correct
76 Correct 9 ms 7484 KB Output is correct
77 Correct 11 ms 7680 KB Output is correct
78 Correct 10 ms 7552 KB Output is correct
79 Correct 9 ms 7552 KB Output is correct
80 Correct 9 ms 7552 KB Output is correct
81 Correct 9 ms 7552 KB Output is correct
82 Correct 9 ms 7552 KB Output is correct
83 Correct 9 ms 7552 KB Output is correct
84 Correct 9 ms 7552 KB Output is correct
85 Correct 9 ms 7552 KB Output is correct
86 Correct 9 ms 7552 KB Output is correct
87 Correct 9 ms 7552 KB Output is correct
88 Correct 9 ms 7552 KB Output is correct
89 Correct 9 ms 7552 KB Output is correct
90 Correct 9 ms 7544 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 9 ms 7424 KB Output is correct
3 Correct 8 ms 7424 KB Output is correct
4 Correct 9 ms 7424 KB Output is correct
5 Correct 11 ms 7424 KB Output is correct
6 Correct 9 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 9 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 9 ms 7424 KB Output is correct
11 Correct 9 ms 7424 KB Output is correct
12 Correct 10 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 11 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 9 ms 7424 KB Output is correct
19 Correct 9 ms 7424 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 8 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 9 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 9 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 8 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 9 ms 7424 KB Output is correct
31 Correct 9 ms 7424 KB Output is correct
32 Correct 9 ms 7552 KB Output is correct
33 Correct 9 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 8 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 9 ms 7424 KB Output is correct
41 Correct 9 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 9 ms 7424 KB Output is correct
45 Correct 9 ms 7472 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 10 ms 7424 KB Output is correct
49 Correct 9 ms 7476 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 9 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 8 ms 7424 KB Output is correct
55 Correct 9 ms 7424 KB Output is correct
56 Correct 9 ms 7424 KB Output is correct
57 Correct 10 ms 7424 KB Output is correct
58 Correct 9 ms 7424 KB Output is correct
59 Correct 10 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 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 9 ms 7424 KB Output is correct
66 Correct 118 ms 26504 KB Output is correct
67 Correct 108 ms 26480 KB Output is correct
68 Correct 184 ms 24436 KB Output is correct
69 Correct 165 ms 25712 KB Output is correct
70 Correct 142 ms 22128 KB Output is correct
71 Correct 171 ms 23516 KB Output is correct
72 Correct 169 ms 22008 KB Output is correct
73 Correct 188 ms 22380 KB Output is correct
74 Correct 164 ms 20752 KB Output is correct
75 Correct 166 ms 21112 KB Output is correct
76 Correct 147 ms 18680 KB Output is correct
77 Correct 142 ms 18552 KB Output is correct
78 Correct 109 ms 18220 KB Output is correct
79 Correct 111 ms 17912 KB Output is correct
80 Correct 84 ms 16760 KB Output is correct
81 Correct 85 ms 16480 KB Output is correct
82 Correct 11 ms 8704 KB Output is correct
83 Correct 11 ms 8704 KB Output is correct
84 Correct 11 ms 8704 KB Output is correct
85 Correct 11 ms 8704 KB Output is correct
86 Correct 12 ms 8704 KB Output is correct
87 Correct 13 ms 8704 KB Output is correct
88 Correct 10 ms 7552 KB Output is correct
89 Correct 10 ms 7680 KB Output is correct
90 Correct 10 ms 7552 KB Output is correct
91 Correct 9 ms 7680 KB Output is correct
92 Correct 10 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 9 ms 7600 KB Output is correct
96 Correct 9 ms 7552 KB Output is correct
97 Correct 10 ms 7552 KB Output is correct
98 Correct 10 ms 7552 KB Output is correct
99 Correct 10 ms 7552 KB Output is correct
100 Correct 10 ms 7552 KB Output is correct
101 Correct 9 ms 7552 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 7680 KB Output is correct
105 Correct 9 ms 7680 KB Output is correct
106 Correct 9 ms 7552 KB Output is correct
107 Correct 9 ms 7552 KB Output is correct
108 Correct 185 ms 20984 KB Output is correct
109 Correct 184 ms 20904 KB Output is correct
110 Correct 183 ms 20856 KB Output is correct
111 Correct 195 ms 20984 KB Output is correct
112 Correct 186 ms 20856 KB Output is correct
113 Correct 222 ms 27512 KB Output is correct
114 Correct 227 ms 25208 KB Output is correct
115 Correct 221 ms 24012 KB Output is correct
116 Correct 205 ms 22908 KB Output is correct
117 Correct 194 ms 20912 KB Output is correct
118 Correct 183 ms 20856 KB Output is correct
119 Correct 195 ms 20948 KB Output is correct
120 Correct 184 ms 20984 KB Output is correct
121 Correct 153 ms 20216 KB Output is correct
122 Correct 134 ms 19448 KB Output is correct
123 Correct 80 ms 16504 KB Output is correct
124 Correct 141 ms 25072 KB Output is correct
125 Correct 150 ms 22872 KB Output is correct
126 Correct 138 ms 22124 KB Output is correct
127 Correct 147 ms 22008 KB Output is correct
128 Correct 9 ms 7552 KB Output is correct
129 Correct 9 ms 7552 KB Output is correct
130 Correct 12 ms 7552 KB Output is correct
131 Correct 9 ms 7552 KB Output is correct
132 Correct 9 ms 7552 KB Output is correct
133 Correct 10 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 10 ms 7680 KB Output is correct
139 Correct 10 ms 7680 KB Output is correct
140 Correct 10 ms 7680 KB Output is correct
141 Correct 9 ms 7552 KB Output is correct
142 Correct 9 ms 7552 KB Output is correct
143 Correct 10 ms 7552 KB Output is correct
144 Correct 10 ms 7552 KB Output is correct
145 Correct 9 ms 7552 KB Output is correct
146 Correct 9 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 7544 KB Output is correct
150 Correct 40 ms 7552 KB Output is correct
151 Correct 9 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 182 ms 20860 KB Output is correct
156 Correct 190 ms 20728 KB Output is correct
157 Runtime error 1045 ms 1048576 KB Execution killed with signal 9 (could be triggered by violating memory limits)
158 Halted 0 ms 0 KB -