Submission #218592

# Submission time Handle Problem Language Result Execution time Memory
218592 2020-04-02T10:22:54 Z VEGAnn Duathlon (APIO18_duathlon) C++14
100 / 100
240 ms 33008 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 * M];
int n, m, tin[N], fup[N], pr[M], siz_comp[2 * M], siz[2 * M], tt = 0, U[M], V[M];
bool mrk[2 * M];
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;
}
# Verdict Execution time Memory Grader output
1 Correct 12 ms 12160 KB Output is correct
2 Correct 11 ms 12160 KB Output is correct
3 Correct 12 ms 12160 KB Output is correct
4 Correct 11 ms 12160 KB Output is correct
5 Correct 11 ms 12160 KB Output is correct
6 Correct 12 ms 12084 KB Output is correct
7 Correct 12 ms 12160 KB Output is correct
8 Correct 12 ms 12160 KB Output is correct
9 Correct 12 ms 12160 KB Output is correct
10 Correct 12 ms 12160 KB Output is correct
11 Correct 11 ms 12160 KB Output is correct
12 Correct 11 ms 12160 KB Output is correct
13 Correct 12 ms 12160 KB Output is correct
14 Correct 12 ms 12160 KB Output is correct
15 Correct 11 ms 12160 KB Output is correct
16 Correct 11 ms 12160 KB Output is correct
17 Correct 12 ms 12160 KB Output is correct
18 Correct 13 ms 12160 KB Output is correct
19 Correct 11 ms 12160 KB Output is correct
20 Correct 11 ms 12160 KB Output is correct
21 Correct 11 ms 12160 KB Output is correct
22 Correct 12 ms 12160 KB Output is correct
23 Correct 12 ms 12160 KB Output is correct
24 Correct 12 ms 12160 KB Output is correct
25 Correct 12 ms 12160 KB Output is correct
26 Correct 11 ms 12160 KB Output is correct
27 Correct 11 ms 12160 KB Output is correct
28 Correct 12 ms 12160 KB Output is correct
29 Correct 12 ms 12160 KB Output is correct
30 Correct 11 ms 12160 KB Output is correct
31 Correct 11 ms 12160 KB Output is correct
32 Correct 12 ms 12160 KB Output is correct
33 Correct 12 ms 12160 KB Output is correct
34 Correct 12 ms 12160 KB Output is correct
35 Correct 11 ms 12160 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 12160 KB Output is correct
2 Correct 11 ms 12160 KB Output is correct
3 Correct 12 ms 12160 KB Output is correct
4 Correct 11 ms 12160 KB Output is correct
5 Correct 11 ms 12160 KB Output is correct
6 Correct 12 ms 12084 KB Output is correct
7 Correct 12 ms 12160 KB Output is correct
8 Correct 12 ms 12160 KB Output is correct
9 Correct 12 ms 12160 KB Output is correct
10 Correct 12 ms 12160 KB Output is correct
11 Correct 11 ms 12160 KB Output is correct
12 Correct 11 ms 12160 KB Output is correct
13 Correct 12 ms 12160 KB Output is correct
14 Correct 12 ms 12160 KB Output is correct
15 Correct 11 ms 12160 KB Output is correct
16 Correct 11 ms 12160 KB Output is correct
17 Correct 12 ms 12160 KB Output is correct
18 Correct 13 ms 12160 KB Output is correct
19 Correct 11 ms 12160 KB Output is correct
20 Correct 11 ms 12160 KB Output is correct
21 Correct 11 ms 12160 KB Output is correct
22 Correct 12 ms 12160 KB Output is correct
23 Correct 12 ms 12160 KB Output is correct
24 Correct 12 ms 12160 KB Output is correct
25 Correct 12 ms 12160 KB Output is correct
26 Correct 11 ms 12160 KB Output is correct
27 Correct 11 ms 12160 KB Output is correct
28 Correct 12 ms 12160 KB Output is correct
29 Correct 12 ms 12160 KB Output is correct
30 Correct 11 ms 12160 KB Output is correct
31 Correct 11 ms 12160 KB Output is correct
32 Correct 12 ms 12160 KB Output is correct
33 Correct 12 ms 12160 KB Output is correct
34 Correct 12 ms 12160 KB Output is correct
35 Correct 11 ms 12160 KB Output is correct
36 Correct 11 ms 12160 KB Output is correct
37 Correct 11 ms 12160 KB Output is correct
38 Correct 12 ms 12160 KB Output is correct
39 Correct 12 ms 12160 KB Output is correct
40 Correct 13 ms 12160 KB Output is correct
41 Correct 12 ms 12160 KB Output is correct
42 Correct 11 ms 12160 KB Output is correct
43 Correct 12 ms 12160 KB Output is correct
44 Correct 12 ms 12160 KB Output is correct
45 Correct 11 ms 12160 KB Output is correct
46 Correct 11 ms 12160 KB Output is correct
47 Correct 11 ms 12160 KB Output is correct
48 Correct 12 ms 12160 KB Output is correct
49 Correct 11 ms 12160 KB Output is correct
50 Correct 11 ms 12160 KB Output is correct
51 Correct 12 ms 12160 KB Output is correct
52 Correct 12 ms 12160 KB Output is correct
53 Correct 12 ms 12160 KB Output is correct
54 Correct 12 ms 12172 KB Output is correct
55 Correct 12 ms 12120 KB Output is correct
56 Correct 12 ms 12160 KB Output is correct
57 Correct 11 ms 12160 KB Output is correct
58 Correct 12 ms 12160 KB Output is correct
59 Correct 12 ms 12160 KB Output is correct
60 Correct 12 ms 12160 KB Output is correct
61 Correct 12 ms 12160 KB Output is correct
62 Correct 12 ms 12160 KB Output is correct
63 Correct 11 ms 12160 KB Output is correct
64 Correct 11 ms 12084 KB Output is correct
65 Correct 11 ms 12160 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 117 ms 30960 KB Output is correct
2 Correct 125 ms 30964 KB Output is correct
3 Correct 198 ms 29056 KB Output is correct
4 Correct 134 ms 30192 KB Output is correct
5 Correct 154 ms 26608 KB Output is correct
6 Correct 172 ms 28148 KB Output is correct
7 Correct 172 ms 26488 KB Output is correct
8 Correct 177 ms 26872 KB Output is correct
9 Correct 162 ms 25336 KB Output is correct
10 Correct 185 ms 25848 KB Output is correct
11 Correct 122 ms 23288 KB Output is correct
12 Correct 121 ms 23036 KB Output is correct
13 Correct 117 ms 22776 KB Output is correct
14 Correct 123 ms 22520 KB Output is correct
15 Correct 89 ms 21240 KB Output is correct
16 Correct 83 ms 21104 KB Output is correct
17 Correct 19 ms 13440 KB Output is correct
18 Correct 15 ms 13440 KB Output is correct
19 Correct 14 ms 13440 KB Output is correct
20 Correct 15 ms 13440 KB Output is correct
21 Correct 16 ms 13440 KB Output is correct
22 Correct 15 ms 13440 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 12208 KB Output is correct
2 Correct 12 ms 12288 KB Output is correct
3 Correct 14 ms 12288 KB Output is correct
4 Correct 12 ms 12416 KB Output is correct
5 Correct 13 ms 12288 KB Output is correct
6 Correct 12 ms 12288 KB Output is correct
7 Correct 13 ms 12288 KB Output is correct
8 Correct 14 ms 12256 KB Output is correct
9 Correct 13 ms 12288 KB Output is correct
10 Correct 12 ms 12288 KB Output is correct
11 Correct 12 ms 12288 KB Output is correct
12 Correct 13 ms 12288 KB Output is correct
13 Correct 12 ms 12288 KB Output is correct
14 Correct 12 ms 12288 KB Output is correct
15 Correct 12 ms 12288 KB Output is correct
16 Correct 12 ms 12160 KB Output is correct
17 Correct 13 ms 12288 KB Output is correct
18 Correct 13 ms 12288 KB Output is correct
19 Correct 13 ms 12288 KB Output is correct
20 Correct 12 ms 12240 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 190 ms 25336 KB Output is correct
2 Correct 195 ms 25464 KB Output is correct
3 Correct 185 ms 25340 KB Output is correct
4 Correct 184 ms 25336 KB Output is correct
5 Correct 191 ms 25468 KB Output is correct
6 Correct 240 ms 32016 KB Output is correct
7 Correct 215 ms 29684 KB Output is correct
8 Correct 231 ms 28664 KB Output is correct
9 Correct 204 ms 27384 KB Output is correct
10 Correct 182 ms 25336 KB Output is correct
11 Correct 188 ms 25336 KB Output is correct
12 Correct 186 ms 25464 KB Output is correct
13 Correct 197 ms 25464 KB Output is correct
14 Correct 154 ms 24696 KB Output is correct
15 Correct 150 ms 23884 KB Output is correct
16 Correct 80 ms 20984 KB Output is correct
17 Correct 140 ms 29548 KB Output is correct
18 Correct 138 ms 27380 KB Output is correct
19 Correct 146 ms 26732 KB Output is correct
20 Correct 137 ms 26616 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 12288 KB Output is correct
2 Correct 12 ms 12288 KB Output is correct
3 Correct 12 ms 12288 KB Output is correct
4 Correct 12 ms 12288 KB Output is correct
5 Correct 12 ms 12288 KB Output is correct
6 Correct 12 ms 12288 KB Output is correct
7 Correct 12 ms 12288 KB Output is correct
8 Correct 12 ms 12288 KB Output is correct
9 Correct 15 ms 12208 KB Output is correct
10 Correct 12 ms 12288 KB Output is correct
11 Correct 12 ms 12288 KB Output is correct
12 Correct 13 ms 12288 KB Output is correct
13 Correct 12 ms 12288 KB Output is correct
14 Correct 12 ms 12288 KB Output is correct
15 Correct 12 ms 12288 KB Output is correct
16 Correct 12 ms 12288 KB Output is correct
17 Correct 12 ms 12288 KB Output is correct
18 Correct 12 ms 12288 KB Output is correct
19 Correct 12 ms 12288 KB Output is correct
20 Correct 12 ms 12288 KB Output is correct
21 Correct 12 ms 12288 KB Output is correct
22 Correct 12 ms 12288 KB Output is correct
23 Correct 13 ms 12288 KB Output is correct
24 Correct 12 ms 12288 KB Output is correct
25 Correct 12 ms 12160 KB Output is correct
26 Correct 12 ms 12160 KB Output is correct
27 Correct 13 ms 12160 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 198 ms 25440 KB Output is correct
2 Correct 191 ms 25336 KB Output is correct
3 Correct 212 ms 26360 KB Output is correct
4 Correct 185 ms 25720 KB Output is correct
5 Correct 184 ms 24824 KB Output is correct
6 Correct 155 ms 24440 KB Output is correct
7 Correct 144 ms 24312 KB Output is correct
8 Correct 130 ms 23988 KB Output is correct
9 Correct 131 ms 23932 KB Output is correct
10 Correct 122 ms 23928 KB Output is correct
11 Correct 113 ms 23800 KB Output is correct
12 Correct 105 ms 23800 KB Output is correct
13 Correct 103 ms 23800 KB Output is correct
14 Correct 101 ms 25464 KB Output is correct
15 Correct 228 ms 30836 KB Output is correct
16 Correct 212 ms 29304 KB Output is correct
17 Correct 209 ms 29816 KB Output is correct
18 Correct 216 ms 28480 KB Output is correct
19 Correct 189 ms 25592 KB Output is correct
20 Correct 184 ms 25592 KB Output is correct
21 Correct 204 ms 25720 KB Output is correct
22 Correct 156 ms 24952 KB Output is correct
23 Correct 134 ms 24184 KB Output is correct
24 Correct 200 ms 26744 KB Output is correct
25 Correct 180 ms 27000 KB Output is correct
26 Correct 174 ms 26868 KB Output is correct
27 Correct 181 ms 26188 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 12160 KB Output is correct
2 Correct 11 ms 12160 KB Output is correct
3 Correct 12 ms 12160 KB Output is correct
4 Correct 11 ms 12160 KB Output is correct
5 Correct 11 ms 12160 KB Output is correct
6 Correct 12 ms 12084 KB Output is correct
7 Correct 12 ms 12160 KB Output is correct
8 Correct 12 ms 12160 KB Output is correct
9 Correct 12 ms 12160 KB Output is correct
10 Correct 12 ms 12160 KB Output is correct
11 Correct 11 ms 12160 KB Output is correct
12 Correct 11 ms 12160 KB Output is correct
13 Correct 12 ms 12160 KB Output is correct
14 Correct 12 ms 12160 KB Output is correct
15 Correct 11 ms 12160 KB Output is correct
16 Correct 11 ms 12160 KB Output is correct
17 Correct 12 ms 12160 KB Output is correct
18 Correct 13 ms 12160 KB Output is correct
19 Correct 11 ms 12160 KB Output is correct
20 Correct 11 ms 12160 KB Output is correct
21 Correct 11 ms 12160 KB Output is correct
22 Correct 12 ms 12160 KB Output is correct
23 Correct 12 ms 12160 KB Output is correct
24 Correct 12 ms 12160 KB Output is correct
25 Correct 12 ms 12160 KB Output is correct
26 Correct 11 ms 12160 KB Output is correct
27 Correct 11 ms 12160 KB Output is correct
28 Correct 12 ms 12160 KB Output is correct
29 Correct 12 ms 12160 KB Output is correct
30 Correct 11 ms 12160 KB Output is correct
31 Correct 11 ms 12160 KB Output is correct
32 Correct 12 ms 12160 KB Output is correct
33 Correct 12 ms 12160 KB Output is correct
34 Correct 12 ms 12160 KB Output is correct
35 Correct 11 ms 12160 KB Output is correct
36 Correct 11 ms 12160 KB Output is correct
37 Correct 11 ms 12160 KB Output is correct
38 Correct 12 ms 12160 KB Output is correct
39 Correct 12 ms 12160 KB Output is correct
40 Correct 13 ms 12160 KB Output is correct
41 Correct 12 ms 12160 KB Output is correct
42 Correct 11 ms 12160 KB Output is correct
43 Correct 12 ms 12160 KB Output is correct
44 Correct 12 ms 12160 KB Output is correct
45 Correct 11 ms 12160 KB Output is correct
46 Correct 11 ms 12160 KB Output is correct
47 Correct 11 ms 12160 KB Output is correct
48 Correct 12 ms 12160 KB Output is correct
49 Correct 11 ms 12160 KB Output is correct
50 Correct 11 ms 12160 KB Output is correct
51 Correct 12 ms 12160 KB Output is correct
52 Correct 12 ms 12160 KB Output is correct
53 Correct 12 ms 12160 KB Output is correct
54 Correct 12 ms 12172 KB Output is correct
55 Correct 12 ms 12120 KB Output is correct
56 Correct 12 ms 12160 KB Output is correct
57 Correct 11 ms 12160 KB Output is correct
58 Correct 12 ms 12160 KB Output is correct
59 Correct 12 ms 12160 KB Output is correct
60 Correct 12 ms 12160 KB Output is correct
61 Correct 12 ms 12160 KB Output is correct
62 Correct 12 ms 12160 KB Output is correct
63 Correct 11 ms 12160 KB Output is correct
64 Correct 11 ms 12084 KB Output is correct
65 Correct 11 ms 12160 KB Output is correct
66 Correct 12 ms 12160 KB Output is correct
67 Correct 12 ms 12288 KB Output is correct
68 Correct 12 ms 12288 KB Output is correct
69 Correct 12 ms 12288 KB Output is correct
70 Correct 12 ms 12288 KB Output is correct
71 Correct 12 ms 12160 KB Output is correct
72 Correct 12 ms 12288 KB Output is correct
73 Correct 14 ms 12288 KB Output is correct
74 Correct 12 ms 12288 KB Output is correct
75 Correct 13 ms 12288 KB Output is correct
76 Correct 11 ms 12160 KB Output is correct
77 Correct 12 ms 12288 KB Output is correct
78 Correct 12 ms 12288 KB Output is correct
79 Correct 12 ms 12288 KB Output is correct
80 Correct 12 ms 12288 KB Output is correct
81 Correct 12 ms 12288 KB Output is correct
82 Correct 12 ms 12288 KB Output is correct
83 Correct 14 ms 12288 KB Output is correct
84 Correct 12 ms 12288 KB Output is correct
85 Correct 12 ms 12288 KB Output is correct
86 Correct 12 ms 12188 KB Output is correct
87 Correct 12 ms 12288 KB Output is correct
88 Correct 13 ms 12288 KB Output is correct
89 Correct 12 ms 12288 KB Output is correct
90 Correct 12 ms 12288 KB Output is correct
91 Correct 13 ms 12288 KB Output is correct
92 Correct 12 ms 12288 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 12160 KB Output is correct
2 Correct 11 ms 12160 KB Output is correct
3 Correct 12 ms 12160 KB Output is correct
4 Correct 11 ms 12160 KB Output is correct
5 Correct 11 ms 12160 KB Output is correct
6 Correct 12 ms 12084 KB Output is correct
7 Correct 12 ms 12160 KB Output is correct
8 Correct 12 ms 12160 KB Output is correct
9 Correct 12 ms 12160 KB Output is correct
10 Correct 12 ms 12160 KB Output is correct
11 Correct 11 ms 12160 KB Output is correct
12 Correct 11 ms 12160 KB Output is correct
13 Correct 12 ms 12160 KB Output is correct
14 Correct 12 ms 12160 KB Output is correct
15 Correct 11 ms 12160 KB Output is correct
16 Correct 11 ms 12160 KB Output is correct
17 Correct 12 ms 12160 KB Output is correct
18 Correct 13 ms 12160 KB Output is correct
19 Correct 11 ms 12160 KB Output is correct
20 Correct 11 ms 12160 KB Output is correct
21 Correct 11 ms 12160 KB Output is correct
22 Correct 12 ms 12160 KB Output is correct
23 Correct 12 ms 12160 KB Output is correct
24 Correct 12 ms 12160 KB Output is correct
25 Correct 12 ms 12160 KB Output is correct
26 Correct 11 ms 12160 KB Output is correct
27 Correct 11 ms 12160 KB Output is correct
28 Correct 12 ms 12160 KB Output is correct
29 Correct 12 ms 12160 KB Output is correct
30 Correct 11 ms 12160 KB Output is correct
31 Correct 11 ms 12160 KB Output is correct
32 Correct 12 ms 12160 KB Output is correct
33 Correct 12 ms 12160 KB Output is correct
34 Correct 12 ms 12160 KB Output is correct
35 Correct 11 ms 12160 KB Output is correct
36 Correct 11 ms 12160 KB Output is correct
37 Correct 11 ms 12160 KB Output is correct
38 Correct 12 ms 12160 KB Output is correct
39 Correct 12 ms 12160 KB Output is correct
40 Correct 13 ms 12160 KB Output is correct
41 Correct 12 ms 12160 KB Output is correct
42 Correct 11 ms 12160 KB Output is correct
43 Correct 12 ms 12160 KB Output is correct
44 Correct 12 ms 12160 KB Output is correct
45 Correct 11 ms 12160 KB Output is correct
46 Correct 11 ms 12160 KB Output is correct
47 Correct 11 ms 12160 KB Output is correct
48 Correct 12 ms 12160 KB Output is correct
49 Correct 11 ms 12160 KB Output is correct
50 Correct 11 ms 12160 KB Output is correct
51 Correct 12 ms 12160 KB Output is correct
52 Correct 12 ms 12160 KB Output is correct
53 Correct 12 ms 12160 KB Output is correct
54 Correct 12 ms 12172 KB Output is correct
55 Correct 12 ms 12120 KB Output is correct
56 Correct 12 ms 12160 KB Output is correct
57 Correct 11 ms 12160 KB Output is correct
58 Correct 12 ms 12160 KB Output is correct
59 Correct 12 ms 12160 KB Output is correct
60 Correct 12 ms 12160 KB Output is correct
61 Correct 12 ms 12160 KB Output is correct
62 Correct 12 ms 12160 KB Output is correct
63 Correct 11 ms 12160 KB Output is correct
64 Correct 11 ms 12084 KB Output is correct
65 Correct 11 ms 12160 KB Output is correct
66 Correct 117 ms 30960 KB Output is correct
67 Correct 125 ms 30964 KB Output is correct
68 Correct 198 ms 29056 KB Output is correct
69 Correct 134 ms 30192 KB Output is correct
70 Correct 154 ms 26608 KB Output is correct
71 Correct 172 ms 28148 KB Output is correct
72 Correct 172 ms 26488 KB Output is correct
73 Correct 177 ms 26872 KB Output is correct
74 Correct 162 ms 25336 KB Output is correct
75 Correct 185 ms 25848 KB Output is correct
76 Correct 122 ms 23288 KB Output is correct
77 Correct 121 ms 23036 KB Output is correct
78 Correct 117 ms 22776 KB Output is correct
79 Correct 123 ms 22520 KB Output is correct
80 Correct 89 ms 21240 KB Output is correct
81 Correct 83 ms 21104 KB Output is correct
82 Correct 19 ms 13440 KB Output is correct
83 Correct 15 ms 13440 KB Output is correct
84 Correct 14 ms 13440 KB Output is correct
85 Correct 15 ms 13440 KB Output is correct
86 Correct 16 ms 13440 KB Output is correct
87 Correct 15 ms 13440 KB Output is correct
88 Correct 12 ms 12208 KB Output is correct
89 Correct 12 ms 12288 KB Output is correct
90 Correct 14 ms 12288 KB Output is correct
91 Correct 12 ms 12416 KB Output is correct
92 Correct 13 ms 12288 KB Output is correct
93 Correct 12 ms 12288 KB Output is correct
94 Correct 13 ms 12288 KB Output is correct
95 Correct 14 ms 12256 KB Output is correct
96 Correct 13 ms 12288 KB Output is correct
97 Correct 12 ms 12288 KB Output is correct
98 Correct 12 ms 12288 KB Output is correct
99 Correct 13 ms 12288 KB Output is correct
100 Correct 12 ms 12288 KB Output is correct
101 Correct 12 ms 12288 KB Output is correct
102 Correct 12 ms 12288 KB Output is correct
103 Correct 12 ms 12160 KB Output is correct
104 Correct 13 ms 12288 KB Output is correct
105 Correct 13 ms 12288 KB Output is correct
106 Correct 13 ms 12288 KB Output is correct
107 Correct 12 ms 12240 KB Output is correct
108 Correct 190 ms 25336 KB Output is correct
109 Correct 195 ms 25464 KB Output is correct
110 Correct 185 ms 25340 KB Output is correct
111 Correct 184 ms 25336 KB Output is correct
112 Correct 191 ms 25468 KB Output is correct
113 Correct 240 ms 32016 KB Output is correct
114 Correct 215 ms 29684 KB Output is correct
115 Correct 231 ms 28664 KB Output is correct
116 Correct 204 ms 27384 KB Output is correct
117 Correct 182 ms 25336 KB Output is correct
118 Correct 188 ms 25336 KB Output is correct
119 Correct 186 ms 25464 KB Output is correct
120 Correct 197 ms 25464 KB Output is correct
121 Correct 154 ms 24696 KB Output is correct
122 Correct 150 ms 23884 KB Output is correct
123 Correct 80 ms 20984 KB Output is correct
124 Correct 140 ms 29548 KB Output is correct
125 Correct 138 ms 27380 KB Output is correct
126 Correct 146 ms 26732 KB Output is correct
127 Correct 137 ms 26616 KB Output is correct
128 Correct 12 ms 12288 KB Output is correct
129 Correct 12 ms 12288 KB Output is correct
130 Correct 12 ms 12288 KB Output is correct
131 Correct 12 ms 12288 KB Output is correct
132 Correct 12 ms 12288 KB Output is correct
133 Correct 12 ms 12288 KB Output is correct
134 Correct 12 ms 12288 KB Output is correct
135 Correct 12 ms 12288 KB Output is correct
136 Correct 15 ms 12208 KB Output is correct
137 Correct 12 ms 12288 KB Output is correct
138 Correct 12 ms 12288 KB Output is correct
139 Correct 13 ms 12288 KB Output is correct
140 Correct 12 ms 12288 KB Output is correct
141 Correct 12 ms 12288 KB Output is correct
142 Correct 12 ms 12288 KB Output is correct
143 Correct 12 ms 12288 KB Output is correct
144 Correct 12 ms 12288 KB Output is correct
145 Correct 12 ms 12288 KB Output is correct
146 Correct 12 ms 12288 KB Output is correct
147 Correct 12 ms 12288 KB Output is correct
148 Correct 12 ms 12288 KB Output is correct
149 Correct 12 ms 12288 KB Output is correct
150 Correct 13 ms 12288 KB Output is correct
151 Correct 12 ms 12288 KB Output is correct
152 Correct 12 ms 12160 KB Output is correct
153 Correct 12 ms 12160 KB Output is correct
154 Correct 13 ms 12160 KB Output is correct
155 Correct 198 ms 25440 KB Output is correct
156 Correct 191 ms 25336 KB Output is correct
157 Correct 212 ms 26360 KB Output is correct
158 Correct 185 ms 25720 KB Output is correct
159 Correct 184 ms 24824 KB Output is correct
160 Correct 155 ms 24440 KB Output is correct
161 Correct 144 ms 24312 KB Output is correct
162 Correct 130 ms 23988 KB Output is correct
163 Correct 131 ms 23932 KB Output is correct
164 Correct 122 ms 23928 KB Output is correct
165 Correct 113 ms 23800 KB Output is correct
166 Correct 105 ms 23800 KB Output is correct
167 Correct 103 ms 23800 KB Output is correct
168 Correct 101 ms 25464 KB Output is correct
169 Correct 228 ms 30836 KB Output is correct
170 Correct 212 ms 29304 KB Output is correct
171 Correct 209 ms 29816 KB Output is correct
172 Correct 216 ms 28480 KB Output is correct
173 Correct 189 ms 25592 KB Output is correct
174 Correct 184 ms 25592 KB Output is correct
175 Correct 204 ms 25720 KB Output is correct
176 Correct 156 ms 24952 KB Output is correct
177 Correct 134 ms 24184 KB Output is correct
178 Correct 200 ms 26744 KB Output is correct
179 Correct 180 ms 27000 KB Output is correct
180 Correct 174 ms 26868 KB Output is correct
181 Correct 181 ms 26188 KB Output is correct
182 Correct 12 ms 12160 KB Output is correct
183 Correct 12 ms 12288 KB Output is correct
184 Correct 12 ms 12288 KB Output is correct
185 Correct 12 ms 12288 KB Output is correct
186 Correct 12 ms 12288 KB Output is correct
187 Correct 12 ms 12160 KB Output is correct
188 Correct 12 ms 12288 KB Output is correct
189 Correct 14 ms 12288 KB Output is correct
190 Correct 12 ms 12288 KB Output is correct
191 Correct 13 ms 12288 KB Output is correct
192 Correct 11 ms 12160 KB Output is correct
193 Correct 12 ms 12288 KB Output is correct
194 Correct 12 ms 12288 KB Output is correct
195 Correct 12 ms 12288 KB Output is correct
196 Correct 12 ms 12288 KB Output is correct
197 Correct 12 ms 12288 KB Output is correct
198 Correct 12 ms 12288 KB Output is correct
199 Correct 14 ms 12288 KB Output is correct
200 Correct 12 ms 12288 KB Output is correct
201 Correct 12 ms 12288 KB Output is correct
202 Correct 12 ms 12188 KB Output is correct
203 Correct 12 ms 12288 KB Output is correct
204 Correct 13 ms 12288 KB Output is correct
205 Correct 12 ms 12288 KB Output is correct
206 Correct 12 ms 12288 KB Output is correct
207 Correct 13 ms 12288 KB Output is correct
208 Correct 12 ms 12288 KB Output is correct
209 Correct 15 ms 13440 KB Output is correct
210 Correct 85 ms 20600 KB Output is correct
211 Correct 135 ms 26100 KB Output is correct
212 Correct 165 ms 29936 KB Output is correct
213 Correct 180 ms 33008 KB Output is correct
214 Correct 80 ms 24568 KB Output is correct
215 Correct 83 ms 24824 KB Output is correct
216 Correct 186 ms 26668 KB Output is correct
217 Correct 175 ms 25548 KB Output is correct
218 Correct 165 ms 24184 KB Output is correct
219 Correct 121 ms 23932 KB Output is correct
220 Correct 115 ms 23800 KB Output is correct
221 Correct 113 ms 23672 KB Output is correct
222 Correct 110 ms 24184 KB Output is correct
223 Correct 185 ms 28280 KB Output is correct
224 Correct 187 ms 27384 KB Output is correct
225 Correct 174 ms 25464 KB Output is correct
226 Correct 165 ms 25464 KB Output is correct
227 Correct 163 ms 25464 KB Output is correct
228 Correct 151 ms 25024 KB Output is correct
229 Correct 125 ms 24184 KB Output is correct
230 Correct 163 ms 25976 KB Output is correct
231 Correct 177 ms 26104 KB Output is correct