Submission #569064

# Submission time Handle Problem Language Result Execution time Memory
569064 2022-05-26T14:46:15 Z Ooops_sorry Duathlon (APIO18_duathlon) C++14
100 / 100
248 ms 40172 KB
#include<bits/stdc++.h>

using namespace std;

#define pb push_back
#define ld double
#define ll long long

mt19937 rnd(51);

const int N = 1e5 + 10, M = 2e5 + 10, K = 3e5 + 10;
int cnt = 0, n, m, total;
vector<int> tin(N), fup(N), arr, sz(K), gr[K];
vector<pair<int,int>> g[N], gt[N];
vector<bool> used(K), was(M), vis(N);
deque<int> q;
ll ans = 0;

void dfs(int v, int p) {
    used[v] = 1;
    tin[v] = fup[v] = cnt++;
    for (auto to : g[v]) {
        if (to.first == p) continue;
        if (used[to.first]) {
            fup[v] = min(fup[v], tin[to.first]);
            if (tin[to.first] < tin[v]) {
                gt[v].pb(to);
            }
        } else {
            if (p == -1) {
                q.pb(to.second);
                was[to.second] = 1;
            }
            dfs(to.first, v);
            gt[v].pb(to);
            fup[v] = min(fup[v], fup[to.first]);
        }
    }
}

void zhfs(int v) {
    if (vis[v]) return;
    vis[v] = 1;
    for (auto to : gt[v]) {
        if (was[to.second]) continue;
        was[to.second] = 1;
        if (fup[to.first] < tin[v]) {
            arr.pb(to.second);
            zhfs(to.first);
        } else {
            q.pb(to.second);
        }
    }
}

void gfs(int v, int p) {
    used[v] = 1;
    if (v < n) {
        sz[v] = 1;
    }
    for (auto to : gr[v]) {
        if (to != p) {
            gfs(to, v);
            sz[v] += sz[to];
        }
    }
}

void walk(int v, int p) {
    int up = total - sz[v];
    if (v >= n) {
        int k = gr[v].size();
        ans -= (ll)up * (up - 1) * (k - 1);
        for (auto to : gr[v]) {
            if (to != p) {
                ans -= (ll)sz[to] * (sz[to] - 1) * (k - 1);
            }
        }
    }
    for (auto to : gr[v]) {
        if (to != p) {
            walk(to, v);
        }
    }
}

signed main() {
#ifdef LOCAL
    freopen("input.txt", "r", stdin);
#endif // LOCAL
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cin >> n >> m;
    vector<pair<int,int>> e(m);
    for (int i = 0; i < m; i++) {
        int u, v;
        cin >> u >> v;
        u--, v--;
        e[i] = {u, v};
        g[u].pb({v, i});
        g[v].pb({u, i});
    }
    int now = n;
    for (int i = 0; i < n; i++) {
        if (!used[i]) {
            int was_cnt = cnt;
            dfs(i, -1);
            int dif = cnt - was_cnt;
            ans += (ll)dif * (dif - 1) * (dif - 2);
            while (q.size() > 0) {
                int j = q.front();
                q.pop_front();
                arr.clear();
                arr.pb(j);
                zhfs(e[j].first);
                zhfs(e[j].second);
                set<int> st;
                for (auto j : arr) {
                    st.insert(e[j].first);
                    st.insert(e[j].second);
                }
                for (auto to : st) {
                    gr[to].pb(now);
                    gr[now].pb(to);
                }
                now++;
            }
        }
    }
    fill(used.begin(), used.end(), 0);
    for (int i = n; i < now; i++) {
        if (!used[i]) {
            gfs(i, -1);
            total = sz[i];
            walk(i, -1);
        }
    }
    cout << ans << endl;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 10 ms 14036 KB Output is correct
2 Correct 8 ms 14036 KB Output is correct
3 Correct 7 ms 14092 KB Output is correct
4 Correct 7 ms 14036 KB Output is correct
5 Correct 8 ms 14112 KB Output is correct
6 Correct 8 ms 14120 KB Output is correct
7 Correct 9 ms 14116 KB Output is correct
8 Correct 8 ms 14024 KB Output is correct
9 Correct 8 ms 14036 KB Output is correct
10 Correct 10 ms 14036 KB Output is correct
11 Correct 9 ms 14244 KB Output is correct
12 Correct 10 ms 14116 KB Output is correct
13 Correct 9 ms 14036 KB Output is correct
14 Correct 8 ms 14116 KB Output is correct
15 Correct 9 ms 14116 KB Output is correct
16 Correct 9 ms 14112 KB Output is correct
17 Correct 8 ms 14116 KB Output is correct
18 Correct 8 ms 14036 KB Output is correct
19 Correct 9 ms 14036 KB Output is correct
20 Correct 8 ms 14036 KB Output is correct
21 Correct 8 ms 14036 KB Output is correct
22 Correct 8 ms 14036 KB Output is correct
23 Correct 9 ms 14112 KB Output is correct
24 Correct 8 ms 14036 KB Output is correct
25 Correct 9 ms 14120 KB Output is correct
26 Correct 8 ms 14084 KB Output is correct
27 Correct 9 ms 14036 KB Output is correct
28 Correct 9 ms 14120 KB Output is correct
29 Correct 8 ms 14124 KB Output is correct
30 Correct 8 ms 14036 KB Output is correct
31 Correct 7 ms 14036 KB Output is correct
32 Correct 8 ms 14036 KB Output is correct
33 Correct 8 ms 14116 KB Output is correct
34 Correct 8 ms 14036 KB Output is correct
35 Correct 8 ms 14036 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 14036 KB Output is correct
2 Correct 8 ms 14036 KB Output is correct
3 Correct 7 ms 14092 KB Output is correct
4 Correct 7 ms 14036 KB Output is correct
5 Correct 8 ms 14112 KB Output is correct
6 Correct 8 ms 14120 KB Output is correct
7 Correct 9 ms 14116 KB Output is correct
8 Correct 8 ms 14024 KB Output is correct
9 Correct 8 ms 14036 KB Output is correct
10 Correct 10 ms 14036 KB Output is correct
11 Correct 9 ms 14244 KB Output is correct
12 Correct 10 ms 14116 KB Output is correct
13 Correct 9 ms 14036 KB Output is correct
14 Correct 8 ms 14116 KB Output is correct
15 Correct 9 ms 14116 KB Output is correct
16 Correct 9 ms 14112 KB Output is correct
17 Correct 8 ms 14116 KB Output is correct
18 Correct 8 ms 14036 KB Output is correct
19 Correct 9 ms 14036 KB Output is correct
20 Correct 8 ms 14036 KB Output is correct
21 Correct 8 ms 14036 KB Output is correct
22 Correct 8 ms 14036 KB Output is correct
23 Correct 9 ms 14112 KB Output is correct
24 Correct 8 ms 14036 KB Output is correct
25 Correct 9 ms 14120 KB Output is correct
26 Correct 8 ms 14084 KB Output is correct
27 Correct 9 ms 14036 KB Output is correct
28 Correct 9 ms 14120 KB Output is correct
29 Correct 8 ms 14124 KB Output is correct
30 Correct 8 ms 14036 KB Output is correct
31 Correct 7 ms 14036 KB Output is correct
32 Correct 8 ms 14036 KB Output is correct
33 Correct 8 ms 14116 KB Output is correct
34 Correct 8 ms 14036 KB Output is correct
35 Correct 8 ms 14036 KB Output is correct
36 Correct 9 ms 14092 KB Output is correct
37 Correct 8 ms 14116 KB Output is correct
38 Correct 8 ms 14036 KB Output is correct
39 Correct 8 ms 14036 KB Output is correct
40 Correct 9 ms 14036 KB Output is correct
41 Correct 10 ms 14108 KB Output is correct
42 Correct 9 ms 14116 KB Output is correct
43 Correct 8 ms 14116 KB Output is correct
44 Correct 8 ms 14116 KB Output is correct
45 Correct 7 ms 14088 KB Output is correct
46 Correct 8 ms 14036 KB Output is correct
47 Correct 9 ms 14036 KB Output is correct
48 Correct 9 ms 14036 KB Output is correct
49 Correct 8 ms 14120 KB Output is correct
50 Correct 8 ms 14036 KB Output is correct
51 Correct 9 ms 14036 KB Output is correct
52 Correct 10 ms 14116 KB Output is correct
53 Correct 10 ms 14036 KB Output is correct
54 Correct 8 ms 14036 KB Output is correct
55 Correct 8 ms 14036 KB Output is correct
56 Correct 8 ms 14036 KB Output is correct
57 Correct 7 ms 14116 KB Output is correct
58 Correct 8 ms 14036 KB Output is correct
59 Correct 9 ms 14020 KB Output is correct
60 Correct 8 ms 14120 KB Output is correct
61 Correct 8 ms 14036 KB Output is correct
62 Correct 11 ms 14120 KB Output is correct
63 Correct 8 ms 14036 KB Output is correct
64 Correct 8 ms 14068 KB Output is correct
65 Correct 10 ms 14036 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 148 ms 37768 KB Output is correct
2 Correct 132 ms 37720 KB Output is correct
3 Correct 138 ms 31664 KB Output is correct
4 Correct 149 ms 35212 KB Output is correct
5 Correct 126 ms 29384 KB Output is correct
6 Correct 141 ms 31180 KB Output is correct
7 Correct 145 ms 29968 KB Output is correct
8 Correct 161 ms 30796 KB Output is correct
9 Correct 137 ms 27904 KB Output is correct
10 Correct 131 ms 28004 KB Output is correct
11 Correct 143 ms 25316 KB Output is correct
12 Correct 119 ms 25048 KB Output is correct
13 Correct 96 ms 24676 KB Output is correct
14 Correct 96 ms 24400 KB Output is correct
15 Correct 67 ms 22804 KB Output is correct
16 Correct 74 ms 22744 KB Output is correct
17 Correct 10 ms 14076 KB Output is correct
18 Correct 12 ms 14148 KB Output is correct
19 Correct 12 ms 14092 KB Output is correct
20 Correct 11 ms 14068 KB Output is correct
21 Correct 10 ms 14036 KB Output is correct
22 Correct 10 ms 14036 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 14164 KB Output is correct
2 Correct 8 ms 14216 KB Output is correct
3 Correct 8 ms 14164 KB Output is correct
4 Correct 8 ms 14292 KB Output is correct
5 Correct 9 ms 14232 KB Output is correct
6 Correct 8 ms 14292 KB Output is correct
7 Correct 9 ms 14292 KB Output is correct
8 Correct 10 ms 14288 KB Output is correct
9 Correct 8 ms 14196 KB Output is correct
10 Correct 12 ms 14132 KB Output is correct
11 Correct 9 ms 14152 KB Output is correct
12 Correct 9 ms 14164 KB Output is correct
13 Correct 11 ms 14164 KB Output is correct
14 Correct 10 ms 14164 KB Output is correct
15 Correct 9 ms 14232 KB Output is correct
16 Correct 9 ms 14192 KB Output is correct
17 Correct 8 ms 14164 KB Output is correct
18 Correct 12 ms 14164 KB Output is correct
19 Correct 12 ms 14228 KB Output is correct
20 Correct 8 ms 14164 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 130 ms 26764 KB Output is correct
2 Correct 149 ms 26792 KB Output is correct
3 Correct 169 ms 26792 KB Output is correct
4 Correct 146 ms 26756 KB Output is correct
5 Correct 139 ms 26784 KB Output is correct
6 Correct 199 ms 34144 KB Output is correct
7 Correct 147 ms 31564 KB Output is correct
8 Correct 146 ms 30336 KB Output is correct
9 Correct 133 ms 29116 KB Output is correct
10 Correct 154 ms 26840 KB Output is correct
11 Correct 156 ms 26828 KB Output is correct
12 Correct 132 ms 26828 KB Output is correct
13 Correct 124 ms 26828 KB Output is correct
14 Correct 125 ms 26092 KB Output is correct
15 Correct 129 ms 25288 KB Output is correct
16 Correct 81 ms 22000 KB Output is correct
17 Correct 83 ms 26204 KB Output is correct
18 Correct 96 ms 27468 KB Output is correct
19 Correct 101 ms 27600 KB Output is correct
20 Correct 106 ms 27528 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 14164 KB Output is correct
2 Correct 9 ms 14244 KB Output is correct
3 Correct 8 ms 14204 KB Output is correct
4 Correct 9 ms 14164 KB Output is correct
5 Correct 9 ms 14164 KB Output is correct
6 Correct 11 ms 14164 KB Output is correct
7 Correct 9 ms 14164 KB Output is correct
8 Correct 9 ms 14164 KB Output is correct
9 Correct 8 ms 14164 KB Output is correct
10 Correct 11 ms 14164 KB Output is correct
11 Correct 9 ms 14164 KB Output is correct
12 Correct 11 ms 14300 KB Output is correct
13 Correct 8 ms 14164 KB Output is correct
14 Correct 9 ms 14256 KB Output is correct
15 Correct 10 ms 14164 KB Output is correct
16 Correct 9 ms 14164 KB Output is correct
17 Correct 9 ms 14164 KB Output is correct
18 Correct 9 ms 14164 KB Output is correct
19 Correct 12 ms 14144 KB Output is correct
20 Correct 8 ms 14164 KB Output is correct
21 Correct 9 ms 14164 KB Output is correct
22 Correct 8 ms 14164 KB Output is correct
23 Correct 8 ms 14164 KB Output is correct
24 Correct 11 ms 14164 KB Output is correct
25 Correct 8 ms 14076 KB Output is correct
26 Correct 8 ms 14036 KB Output is correct
27 Correct 9 ms 14136 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 163 ms 26800 KB Output is correct
2 Correct 137 ms 26828 KB Output is correct
3 Correct 193 ms 27300 KB Output is correct
4 Correct 171 ms 27036 KB Output is correct
5 Correct 139 ms 26168 KB Output is correct
6 Correct 126 ms 25724 KB Output is correct
7 Correct 164 ms 25584 KB Output is correct
8 Correct 138 ms 25420 KB Output is correct
9 Correct 124 ms 25284 KB Output is correct
10 Correct 126 ms 25132 KB Output is correct
11 Correct 141 ms 25092 KB Output is correct
12 Correct 141 ms 25168 KB Output is correct
13 Correct 116 ms 25292 KB Output is correct
14 Correct 116 ms 27316 KB Output is correct
15 Correct 147 ms 32052 KB Output is correct
16 Correct 170 ms 30556 KB Output is correct
17 Correct 181 ms 31132 KB Output is correct
18 Correct 141 ms 29692 KB Output is correct
19 Correct 135 ms 26956 KB Output is correct
20 Correct 173 ms 26880 KB Output is correct
21 Correct 181 ms 26904 KB Output is correct
22 Correct 117 ms 26072 KB Output is correct
23 Correct 115 ms 25328 KB Output is correct
24 Correct 128 ms 27144 KB Output is correct
25 Correct 181 ms 28864 KB Output is correct
26 Correct 143 ms 28636 KB Output is correct
27 Correct 121 ms 28560 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 14036 KB Output is correct
2 Correct 8 ms 14036 KB Output is correct
3 Correct 7 ms 14092 KB Output is correct
4 Correct 7 ms 14036 KB Output is correct
5 Correct 8 ms 14112 KB Output is correct
6 Correct 8 ms 14120 KB Output is correct
7 Correct 9 ms 14116 KB Output is correct
8 Correct 8 ms 14024 KB Output is correct
9 Correct 8 ms 14036 KB Output is correct
10 Correct 10 ms 14036 KB Output is correct
11 Correct 9 ms 14244 KB Output is correct
12 Correct 10 ms 14116 KB Output is correct
13 Correct 9 ms 14036 KB Output is correct
14 Correct 8 ms 14116 KB Output is correct
15 Correct 9 ms 14116 KB Output is correct
16 Correct 9 ms 14112 KB Output is correct
17 Correct 8 ms 14116 KB Output is correct
18 Correct 8 ms 14036 KB Output is correct
19 Correct 9 ms 14036 KB Output is correct
20 Correct 8 ms 14036 KB Output is correct
21 Correct 8 ms 14036 KB Output is correct
22 Correct 8 ms 14036 KB Output is correct
23 Correct 9 ms 14112 KB Output is correct
24 Correct 8 ms 14036 KB Output is correct
25 Correct 9 ms 14120 KB Output is correct
26 Correct 8 ms 14084 KB Output is correct
27 Correct 9 ms 14036 KB Output is correct
28 Correct 9 ms 14120 KB Output is correct
29 Correct 8 ms 14124 KB Output is correct
30 Correct 8 ms 14036 KB Output is correct
31 Correct 7 ms 14036 KB Output is correct
32 Correct 8 ms 14036 KB Output is correct
33 Correct 8 ms 14116 KB Output is correct
34 Correct 8 ms 14036 KB Output is correct
35 Correct 8 ms 14036 KB Output is correct
36 Correct 9 ms 14092 KB Output is correct
37 Correct 8 ms 14116 KB Output is correct
38 Correct 8 ms 14036 KB Output is correct
39 Correct 8 ms 14036 KB Output is correct
40 Correct 9 ms 14036 KB Output is correct
41 Correct 10 ms 14108 KB Output is correct
42 Correct 9 ms 14116 KB Output is correct
43 Correct 8 ms 14116 KB Output is correct
44 Correct 8 ms 14116 KB Output is correct
45 Correct 7 ms 14088 KB Output is correct
46 Correct 8 ms 14036 KB Output is correct
47 Correct 9 ms 14036 KB Output is correct
48 Correct 9 ms 14036 KB Output is correct
49 Correct 8 ms 14120 KB Output is correct
50 Correct 8 ms 14036 KB Output is correct
51 Correct 9 ms 14036 KB Output is correct
52 Correct 10 ms 14116 KB Output is correct
53 Correct 10 ms 14036 KB Output is correct
54 Correct 8 ms 14036 KB Output is correct
55 Correct 8 ms 14036 KB Output is correct
56 Correct 8 ms 14036 KB Output is correct
57 Correct 7 ms 14116 KB Output is correct
58 Correct 8 ms 14036 KB Output is correct
59 Correct 9 ms 14020 KB Output is correct
60 Correct 8 ms 14120 KB Output is correct
61 Correct 8 ms 14036 KB Output is correct
62 Correct 11 ms 14120 KB Output is correct
63 Correct 8 ms 14036 KB Output is correct
64 Correct 8 ms 14068 KB Output is correct
65 Correct 10 ms 14036 KB Output is correct
66 Correct 7 ms 14036 KB Output is correct
67 Correct 8 ms 14164 KB Output is correct
68 Correct 8 ms 14164 KB Output is correct
69 Correct 11 ms 14292 KB Output is correct
70 Correct 11 ms 14312 KB Output is correct
71 Correct 9 ms 14164 KB Output is correct
72 Correct 9 ms 14188 KB Output is correct
73 Correct 8 ms 14164 KB Output is correct
74 Correct 9 ms 14164 KB Output is correct
75 Correct 9 ms 14164 KB Output is correct
76 Correct 7 ms 14036 KB Output is correct
77 Correct 9 ms 14164 KB Output is correct
78 Correct 8 ms 14164 KB Output is correct
79 Correct 8 ms 14164 KB Output is correct
80 Correct 8 ms 14164 KB Output is correct
81 Correct 9 ms 14164 KB Output is correct
82 Correct 8 ms 14292 KB Output is correct
83 Correct 8 ms 14316 KB Output is correct
84 Correct 12 ms 14164 KB Output is correct
85 Correct 9 ms 14164 KB Output is correct
86 Correct 12 ms 14244 KB Output is correct
87 Correct 9 ms 14164 KB Output is correct
88 Correct 9 ms 14164 KB Output is correct
89 Correct 9 ms 14164 KB Output is correct
90 Correct 10 ms 14164 KB Output is correct
91 Correct 8 ms 14164 KB Output is correct
92 Correct 9 ms 14164 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 14036 KB Output is correct
2 Correct 8 ms 14036 KB Output is correct
3 Correct 7 ms 14092 KB Output is correct
4 Correct 7 ms 14036 KB Output is correct
5 Correct 8 ms 14112 KB Output is correct
6 Correct 8 ms 14120 KB Output is correct
7 Correct 9 ms 14116 KB Output is correct
8 Correct 8 ms 14024 KB Output is correct
9 Correct 8 ms 14036 KB Output is correct
10 Correct 10 ms 14036 KB Output is correct
11 Correct 9 ms 14244 KB Output is correct
12 Correct 10 ms 14116 KB Output is correct
13 Correct 9 ms 14036 KB Output is correct
14 Correct 8 ms 14116 KB Output is correct
15 Correct 9 ms 14116 KB Output is correct
16 Correct 9 ms 14112 KB Output is correct
17 Correct 8 ms 14116 KB Output is correct
18 Correct 8 ms 14036 KB Output is correct
19 Correct 9 ms 14036 KB Output is correct
20 Correct 8 ms 14036 KB Output is correct
21 Correct 8 ms 14036 KB Output is correct
22 Correct 8 ms 14036 KB Output is correct
23 Correct 9 ms 14112 KB Output is correct
24 Correct 8 ms 14036 KB Output is correct
25 Correct 9 ms 14120 KB Output is correct
26 Correct 8 ms 14084 KB Output is correct
27 Correct 9 ms 14036 KB Output is correct
28 Correct 9 ms 14120 KB Output is correct
29 Correct 8 ms 14124 KB Output is correct
30 Correct 8 ms 14036 KB Output is correct
31 Correct 7 ms 14036 KB Output is correct
32 Correct 8 ms 14036 KB Output is correct
33 Correct 8 ms 14116 KB Output is correct
34 Correct 8 ms 14036 KB Output is correct
35 Correct 8 ms 14036 KB Output is correct
36 Correct 9 ms 14092 KB Output is correct
37 Correct 8 ms 14116 KB Output is correct
38 Correct 8 ms 14036 KB Output is correct
39 Correct 8 ms 14036 KB Output is correct
40 Correct 9 ms 14036 KB Output is correct
41 Correct 10 ms 14108 KB Output is correct
42 Correct 9 ms 14116 KB Output is correct
43 Correct 8 ms 14116 KB Output is correct
44 Correct 8 ms 14116 KB Output is correct
45 Correct 7 ms 14088 KB Output is correct
46 Correct 8 ms 14036 KB Output is correct
47 Correct 9 ms 14036 KB Output is correct
48 Correct 9 ms 14036 KB Output is correct
49 Correct 8 ms 14120 KB Output is correct
50 Correct 8 ms 14036 KB Output is correct
51 Correct 9 ms 14036 KB Output is correct
52 Correct 10 ms 14116 KB Output is correct
53 Correct 10 ms 14036 KB Output is correct
54 Correct 8 ms 14036 KB Output is correct
55 Correct 8 ms 14036 KB Output is correct
56 Correct 8 ms 14036 KB Output is correct
57 Correct 7 ms 14116 KB Output is correct
58 Correct 8 ms 14036 KB Output is correct
59 Correct 9 ms 14020 KB Output is correct
60 Correct 8 ms 14120 KB Output is correct
61 Correct 8 ms 14036 KB Output is correct
62 Correct 11 ms 14120 KB Output is correct
63 Correct 8 ms 14036 KB Output is correct
64 Correct 8 ms 14068 KB Output is correct
65 Correct 10 ms 14036 KB Output is correct
66 Correct 148 ms 37768 KB Output is correct
67 Correct 132 ms 37720 KB Output is correct
68 Correct 138 ms 31664 KB Output is correct
69 Correct 149 ms 35212 KB Output is correct
70 Correct 126 ms 29384 KB Output is correct
71 Correct 141 ms 31180 KB Output is correct
72 Correct 145 ms 29968 KB Output is correct
73 Correct 161 ms 30796 KB Output is correct
74 Correct 137 ms 27904 KB Output is correct
75 Correct 131 ms 28004 KB Output is correct
76 Correct 143 ms 25316 KB Output is correct
77 Correct 119 ms 25048 KB Output is correct
78 Correct 96 ms 24676 KB Output is correct
79 Correct 96 ms 24400 KB Output is correct
80 Correct 67 ms 22804 KB Output is correct
81 Correct 74 ms 22744 KB Output is correct
82 Correct 10 ms 14076 KB Output is correct
83 Correct 12 ms 14148 KB Output is correct
84 Correct 12 ms 14092 KB Output is correct
85 Correct 11 ms 14068 KB Output is correct
86 Correct 10 ms 14036 KB Output is correct
87 Correct 10 ms 14036 KB Output is correct
88 Correct 9 ms 14164 KB Output is correct
89 Correct 8 ms 14216 KB Output is correct
90 Correct 8 ms 14164 KB Output is correct
91 Correct 8 ms 14292 KB Output is correct
92 Correct 9 ms 14232 KB Output is correct
93 Correct 8 ms 14292 KB Output is correct
94 Correct 9 ms 14292 KB Output is correct
95 Correct 10 ms 14288 KB Output is correct
96 Correct 8 ms 14196 KB Output is correct
97 Correct 12 ms 14132 KB Output is correct
98 Correct 9 ms 14152 KB Output is correct
99 Correct 9 ms 14164 KB Output is correct
100 Correct 11 ms 14164 KB Output is correct
101 Correct 10 ms 14164 KB Output is correct
102 Correct 9 ms 14232 KB Output is correct
103 Correct 9 ms 14192 KB Output is correct
104 Correct 8 ms 14164 KB Output is correct
105 Correct 12 ms 14164 KB Output is correct
106 Correct 12 ms 14228 KB Output is correct
107 Correct 8 ms 14164 KB Output is correct
108 Correct 130 ms 26764 KB Output is correct
109 Correct 149 ms 26792 KB Output is correct
110 Correct 169 ms 26792 KB Output is correct
111 Correct 146 ms 26756 KB Output is correct
112 Correct 139 ms 26784 KB Output is correct
113 Correct 199 ms 34144 KB Output is correct
114 Correct 147 ms 31564 KB Output is correct
115 Correct 146 ms 30336 KB Output is correct
116 Correct 133 ms 29116 KB Output is correct
117 Correct 154 ms 26840 KB Output is correct
118 Correct 156 ms 26828 KB Output is correct
119 Correct 132 ms 26828 KB Output is correct
120 Correct 124 ms 26828 KB Output is correct
121 Correct 125 ms 26092 KB Output is correct
122 Correct 129 ms 25288 KB Output is correct
123 Correct 81 ms 22000 KB Output is correct
124 Correct 83 ms 26204 KB Output is correct
125 Correct 96 ms 27468 KB Output is correct
126 Correct 101 ms 27600 KB Output is correct
127 Correct 106 ms 27528 KB Output is correct
128 Correct 9 ms 14164 KB Output is correct
129 Correct 9 ms 14244 KB Output is correct
130 Correct 8 ms 14204 KB Output is correct
131 Correct 9 ms 14164 KB Output is correct
132 Correct 9 ms 14164 KB Output is correct
133 Correct 11 ms 14164 KB Output is correct
134 Correct 9 ms 14164 KB Output is correct
135 Correct 9 ms 14164 KB Output is correct
136 Correct 8 ms 14164 KB Output is correct
137 Correct 11 ms 14164 KB Output is correct
138 Correct 9 ms 14164 KB Output is correct
139 Correct 11 ms 14300 KB Output is correct
140 Correct 8 ms 14164 KB Output is correct
141 Correct 9 ms 14256 KB Output is correct
142 Correct 10 ms 14164 KB Output is correct
143 Correct 9 ms 14164 KB Output is correct
144 Correct 9 ms 14164 KB Output is correct
145 Correct 9 ms 14164 KB Output is correct
146 Correct 12 ms 14144 KB Output is correct
147 Correct 8 ms 14164 KB Output is correct
148 Correct 9 ms 14164 KB Output is correct
149 Correct 8 ms 14164 KB Output is correct
150 Correct 8 ms 14164 KB Output is correct
151 Correct 11 ms 14164 KB Output is correct
152 Correct 8 ms 14076 KB Output is correct
153 Correct 8 ms 14036 KB Output is correct
154 Correct 9 ms 14136 KB Output is correct
155 Correct 163 ms 26800 KB Output is correct
156 Correct 137 ms 26828 KB Output is correct
157 Correct 193 ms 27300 KB Output is correct
158 Correct 171 ms 27036 KB Output is correct
159 Correct 139 ms 26168 KB Output is correct
160 Correct 126 ms 25724 KB Output is correct
161 Correct 164 ms 25584 KB Output is correct
162 Correct 138 ms 25420 KB Output is correct
163 Correct 124 ms 25284 KB Output is correct
164 Correct 126 ms 25132 KB Output is correct
165 Correct 141 ms 25092 KB Output is correct
166 Correct 141 ms 25168 KB Output is correct
167 Correct 116 ms 25292 KB Output is correct
168 Correct 116 ms 27316 KB Output is correct
169 Correct 147 ms 32052 KB Output is correct
170 Correct 170 ms 30556 KB Output is correct
171 Correct 181 ms 31132 KB Output is correct
172 Correct 141 ms 29692 KB Output is correct
173 Correct 135 ms 26956 KB Output is correct
174 Correct 173 ms 26880 KB Output is correct
175 Correct 181 ms 26904 KB Output is correct
176 Correct 117 ms 26072 KB Output is correct
177 Correct 115 ms 25328 KB Output is correct
178 Correct 128 ms 27144 KB Output is correct
179 Correct 181 ms 28864 KB Output is correct
180 Correct 143 ms 28636 KB Output is correct
181 Correct 121 ms 28560 KB Output is correct
182 Correct 7 ms 14036 KB Output is correct
183 Correct 8 ms 14164 KB Output is correct
184 Correct 8 ms 14164 KB Output is correct
185 Correct 11 ms 14292 KB Output is correct
186 Correct 11 ms 14312 KB Output is correct
187 Correct 9 ms 14164 KB Output is correct
188 Correct 9 ms 14188 KB Output is correct
189 Correct 8 ms 14164 KB Output is correct
190 Correct 9 ms 14164 KB Output is correct
191 Correct 9 ms 14164 KB Output is correct
192 Correct 7 ms 14036 KB Output is correct
193 Correct 9 ms 14164 KB Output is correct
194 Correct 8 ms 14164 KB Output is correct
195 Correct 8 ms 14164 KB Output is correct
196 Correct 8 ms 14164 KB Output is correct
197 Correct 9 ms 14164 KB Output is correct
198 Correct 8 ms 14292 KB Output is correct
199 Correct 8 ms 14316 KB Output is correct
200 Correct 12 ms 14164 KB Output is correct
201 Correct 9 ms 14164 KB Output is correct
202 Correct 12 ms 14244 KB Output is correct
203 Correct 9 ms 14164 KB Output is correct
204 Correct 9 ms 14164 KB Output is correct
205 Correct 9 ms 14164 KB Output is correct
206 Correct 10 ms 14164 KB Output is correct
207 Correct 8 ms 14164 KB Output is correct
208 Correct 9 ms 14164 KB Output is correct
209 Correct 11 ms 14120 KB Output is correct
210 Correct 73 ms 21912 KB Output is correct
211 Correct 169 ms 27872 KB Output is correct
212 Correct 189 ms 35176 KB Output is correct
213 Correct 248 ms 40172 KB Output is correct
214 Correct 90 ms 27108 KB Output is correct
215 Correct 75 ms 27596 KB Output is correct
216 Correct 149 ms 29156 KB Output is correct
217 Correct 160 ms 28256 KB Output is correct
218 Correct 178 ms 26872 KB Output is correct
219 Correct 123 ms 26404 KB Output is correct
220 Correct 145 ms 26372 KB Output is correct
221 Correct 128 ms 26292 KB Output is correct
222 Correct 133 ms 27552 KB Output is correct
223 Correct 160 ms 30552 KB Output is correct
224 Correct 162 ms 29900 KB Output is correct
225 Correct 139 ms 28248 KB Output is correct
226 Correct 145 ms 28176 KB Output is correct
227 Correct 169 ms 28228 KB Output is correct
228 Correct 147 ms 27332 KB Output is correct
229 Correct 108 ms 26652 KB Output is correct
230 Correct 171 ms 28608 KB Output is correct
231 Correct 145 ms 28748 KB Output is correct