Submission #235847

# Submission time Handle Problem Language Result Execution time Memory
235847 2020-05-30T07:25:37 Z PeppaPig Duathlon (APIO18_duathlon) C++14
100 / 100
173 ms 24156 KB
#include <bits/stdc++.h>

#define long long long

using namespace std;

const int N = 2e5+5;

int n, m;
int pre[N], low[N], c_sz[N];
vector<vector<int> > g(N), bcc;

void tarjan(int u, int p) {
    static int idx = 0;
    static stack<int> S;
    pre[u] = low[u] = ++idx;
    S.emplace(u);
    for(int v : g[u]) if(v != p) {
        if(!pre[v]) {
            tarjan(v, u);
            low[u] = min(low[u], low[v]);
            if(low[v] >= pre[u]) {
                bcc.emplace_back(1, u);
                while(bcc.back().back() != v) {
                    bcc.back().emplace_back(S.top());
                    S.pop();
                }
            }
        } else low[u] = min(low[u], pre[v]);
    } 
}

void build_tree() {
    for(int i = 1; i <= n; i++) if(!pre[i])
        tarjan(i, 0);
    g.clear(), g.resize(n + 1);
    for(vector<int> &cc : bcc) {
        c_sz[g.size()] = cc.size();
        g.emplace_back(0);
        for(int u : cc) {
            g[g.size() - 1].emplace_back(u);
            g[u].emplace_back(g.size() - 1);
        }
    }
}

int subsz[N];
long ans;

int get_sz(int u, int p) {
     if(u <= n) subsz[u] = 1;
     for(int v : g[u]) if(v != p)
        subsz[u] += get_sz(v, u);
    return subsz[u];
}

void bad_triplet(int u, int p, int all) {
    if(u <= n) for(int v : g[u]) {
        if(v != p) ans -= 1ll * (c_sz[v] - 1) * (all - subsz[v]) * (all - subsz[v] - 1);
        else ans -= 1ll * (c_sz[v] - 1) * subsz[u] * (subsz[u] - 1);
    }
    for(int v : g[u]) if(v != p)
        bad_triplet(v, u, all);
}

int main() {
    scanf("%d %d", &n, &m);
    for(int i = 1, a, b; i <= m; i++) {
        scanf("%d %d", &a, &b);
        g[a].emplace_back(b), g[b].emplace_back(a);
    }
    build_tree();
    for(int i = 1; i <= n; i++) if(!subsz[i]) {
        get_sz(i, 0);
        ans += 1ll * subsz[i] * (subsz[i] - 1) * (subsz[i] - 2);
        bad_triplet(i, 0, subsz[i]);
    }
    printf("%lld\n", ans);

    return 0;
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:67:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d %d", &n, &m);
     ~~~~~^~~~~~~~~~~~~~~~~
count_triplets.cpp:69:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d %d", &a, &b);
         ~~~~~^~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 7 ms 4992 KB Output is correct
2 Correct 7 ms 4992 KB Output is correct
3 Correct 7 ms 5120 KB Output is correct
4 Correct 7 ms 4992 KB Output is correct
5 Correct 7 ms 4992 KB Output is correct
6 Correct 7 ms 4992 KB Output is correct
7 Correct 7 ms 4992 KB Output is correct
8 Correct 7 ms 4992 KB Output is correct
9 Correct 7 ms 4992 KB Output is correct
10 Correct 7 ms 4992 KB Output is correct
11 Correct 7 ms 4992 KB Output is correct
12 Correct 7 ms 4992 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 4992 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 8 ms 4992 KB Output is correct
18 Correct 7 ms 4992 KB Output is correct
19 Correct 7 ms 4992 KB Output is correct
20 Correct 7 ms 5120 KB Output is correct
21 Correct 7 ms 4992 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 4992 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 4992 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 5120 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 8 ms 4992 KB Output is correct
32 Correct 7 ms 4992 KB Output is correct
33 Correct 7 ms 4992 KB Output is correct
34 Correct 8 ms 5120 KB Output is correct
35 Correct 7 ms 4992 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 4992 KB Output is correct
2 Correct 7 ms 4992 KB Output is correct
3 Correct 7 ms 5120 KB Output is correct
4 Correct 7 ms 4992 KB Output is correct
5 Correct 7 ms 4992 KB Output is correct
6 Correct 7 ms 4992 KB Output is correct
7 Correct 7 ms 4992 KB Output is correct
8 Correct 7 ms 4992 KB Output is correct
9 Correct 7 ms 4992 KB Output is correct
10 Correct 7 ms 4992 KB Output is correct
11 Correct 7 ms 4992 KB Output is correct
12 Correct 7 ms 4992 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 4992 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 8 ms 4992 KB Output is correct
18 Correct 7 ms 4992 KB Output is correct
19 Correct 7 ms 4992 KB Output is correct
20 Correct 7 ms 5120 KB Output is correct
21 Correct 7 ms 4992 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 4992 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 4992 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 5120 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 8 ms 4992 KB Output is correct
32 Correct 7 ms 4992 KB Output is correct
33 Correct 7 ms 4992 KB Output is correct
34 Correct 8 ms 5120 KB Output is correct
35 Correct 7 ms 4992 KB Output is correct
36 Correct 7 ms 4992 KB Output is correct
37 Correct 7 ms 4992 KB Output is correct
38 Correct 7 ms 5120 KB Output is correct
39 Correct 7 ms 4992 KB Output is correct
40 Correct 7 ms 4992 KB Output is correct
41 Correct 8 ms 4992 KB Output is correct
42 Correct 7 ms 5120 KB Output is correct
43 Correct 8 ms 4992 KB Output is correct
44 Correct 7 ms 4992 KB Output is correct
45 Correct 8 ms 4992 KB Output is correct
46 Correct 7 ms 4992 KB Output is correct
47 Correct 7 ms 5120 KB Output is correct
48 Correct 7 ms 4992 KB Output is correct
49 Correct 7 ms 4992 KB Output is correct
50 Correct 8 ms 4992 KB Output is correct
51 Correct 7 ms 4992 KB Output is correct
52 Correct 7 ms 5120 KB Output is correct
53 Correct 7 ms 4992 KB Output is correct
54 Correct 7 ms 4992 KB Output is correct
55 Correct 8 ms 5120 KB Output is correct
56 Correct 7 ms 5120 KB Output is correct
57 Correct 7 ms 4992 KB Output is correct
58 Correct 7 ms 4992 KB Output is correct
59 Correct 7 ms 4992 KB Output is correct
60 Correct 8 ms 4992 KB Output is correct
61 Correct 7 ms 4992 KB Output is correct
62 Correct 7 ms 4992 KB Output is correct
63 Correct 7 ms 4992 KB Output is correct
64 Correct 7 ms 5120 KB Output is correct
65 Correct 7 ms 4992 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 85 ms 18708 KB Output is correct
2 Correct 89 ms 18732 KB Output is correct
3 Correct 129 ms 18612 KB Output is correct
4 Correct 108 ms 18480 KB Output is correct
5 Correct 122 ms 15876 KB Output is correct
6 Correct 132 ms 18264 KB Output is correct
7 Correct 131 ms 17452 KB Output is correct
8 Correct 123 ms 17836 KB Output is correct
9 Correct 125 ms 16556 KB Output is correct
10 Correct 114 ms 16376 KB Output is correct
11 Correct 107 ms 14508 KB Output is correct
12 Correct 107 ms 14428 KB Output is correct
13 Correct 87 ms 14124 KB Output is correct
14 Correct 89 ms 13868 KB Output is correct
15 Correct 77 ms 13136 KB Output is correct
16 Correct 69 ms 12844 KB Output is correct
17 Correct 11 ms 6656 KB Output is correct
18 Correct 11 ms 6656 KB Output is correct
19 Correct 10 ms 6656 KB Output is correct
20 Correct 10 ms 6656 KB Output is correct
21 Correct 11 ms 6656 KB Output is correct
22 Correct 10 ms 6656 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 5248 KB Output is correct
2 Correct 8 ms 5248 KB Output is correct
3 Correct 9 ms 5248 KB Output is correct
4 Correct 8 ms 5248 KB Output is correct
5 Correct 8 ms 5248 KB Output is correct
6 Correct 8 ms 5240 KB Output is correct
7 Correct 8 ms 5248 KB Output is correct
8 Correct 8 ms 5248 KB Output is correct
9 Correct 8 ms 5248 KB Output is correct
10 Correct 8 ms 5376 KB Output is correct
11 Correct 8 ms 5248 KB Output is correct
12 Correct 8 ms 5248 KB Output is correct
13 Correct 8 ms 5248 KB Output is correct
14 Correct 9 ms 5120 KB Output is correct
15 Correct 8 ms 5120 KB Output is correct
16 Correct 7 ms 5120 KB Output is correct
17 Correct 7 ms 5248 KB Output is correct
18 Correct 8 ms 5248 KB Output is correct
19 Correct 8 ms 5248 KB Output is correct
20 Correct 8 ms 5248 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 147 ms 19108 KB Output is correct
2 Correct 146 ms 19108 KB Output is correct
3 Correct 144 ms 19108 KB Output is correct
4 Correct 140 ms 19112 KB Output is correct
5 Correct 132 ms 19112 KB Output is correct
6 Correct 146 ms 24156 KB Output is correct
7 Correct 154 ms 22440 KB Output is correct
8 Correct 160 ms 21516 KB Output is correct
9 Correct 164 ms 20776 KB Output is correct
10 Correct 161 ms 19248 KB Output is correct
11 Correct 154 ms 19108 KB Output is correct
12 Correct 147 ms 19112 KB Output is correct
13 Correct 158 ms 19108 KB Output is correct
14 Correct 139 ms 18208 KB Output is correct
15 Correct 125 ms 17188 KB Output is correct
16 Correct 72 ms 13740 KB Output is correct
17 Correct 97 ms 19420 KB Output is correct
18 Correct 98 ms 19352 KB Output is correct
19 Correct 95 ms 19468 KB Output is correct
20 Correct 98 ms 19348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 5248 KB Output is correct
2 Correct 8 ms 5248 KB Output is correct
3 Correct 8 ms 5120 KB Output is correct
4 Correct 8 ms 5120 KB Output is correct
5 Correct 8 ms 5120 KB Output is correct
6 Correct 8 ms 5120 KB Output is correct
7 Correct 8 ms 5120 KB Output is correct
8 Correct 10 ms 5120 KB Output is correct
9 Correct 8 ms 5120 KB Output is correct
10 Correct 8 ms 5120 KB Output is correct
11 Correct 8 ms 5248 KB Output is correct
12 Correct 8 ms 5248 KB Output is correct
13 Correct 8 ms 5248 KB Output is correct
14 Correct 8 ms 5248 KB Output is correct
15 Correct 8 ms 5120 KB Output is correct
16 Correct 8 ms 5120 KB Output is correct
17 Correct 8 ms 5120 KB Output is correct
18 Correct 8 ms 5120 KB Output is correct
19 Correct 8 ms 5120 KB Output is correct
20 Correct 8 ms 5120 KB Output is correct
21 Correct 8 ms 5120 KB Output is correct
22 Correct 8 ms 5120 KB Output is correct
23 Correct 8 ms 5120 KB Output is correct
24 Correct 8 ms 5120 KB Output is correct
25 Correct 7 ms 5120 KB Output is correct
26 Correct 7 ms 5120 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 151 ms 19160 KB Output is correct
2 Correct 153 ms 19044 KB Output is correct
3 Correct 147 ms 17592 KB Output is correct
4 Correct 132 ms 16684 KB Output is correct
5 Correct 112 ms 14636 KB Output is correct
6 Correct 136 ms 13712 KB Output is correct
7 Correct 125 ms 13480 KB Output is correct
8 Correct 100 ms 12852 KB Output is correct
9 Correct 117 ms 12596 KB Output is correct
10 Correct 93 ms 12408 KB Output is correct
11 Correct 102 ms 12164 KB Output is correct
12 Correct 83 ms 12024 KB Output is correct
13 Correct 96 ms 12024 KB Output is correct
14 Correct 89 ms 13816 KB Output is correct
15 Correct 146 ms 22188 KB Output is correct
16 Correct 169 ms 21048 KB Output is correct
17 Correct 156 ms 20516 KB Output is correct
18 Correct 173 ms 19492 KB Output is correct
19 Correct 142 ms 16768 KB Output is correct
20 Correct 132 ms 16812 KB Output is correct
21 Correct 126 ms 16684 KB Output is correct
22 Correct 122 ms 15660 KB Output is correct
23 Correct 120 ms 14636 KB Output is correct
24 Correct 142 ms 18820 KB Output is correct
25 Correct 142 ms 18912 KB Output is correct
26 Correct 124 ms 17540 KB Output is correct
27 Correct 138 ms 17716 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 4992 KB Output is correct
2 Correct 7 ms 4992 KB Output is correct
3 Correct 7 ms 5120 KB Output is correct
4 Correct 7 ms 4992 KB Output is correct
5 Correct 7 ms 4992 KB Output is correct
6 Correct 7 ms 4992 KB Output is correct
7 Correct 7 ms 4992 KB Output is correct
8 Correct 7 ms 4992 KB Output is correct
9 Correct 7 ms 4992 KB Output is correct
10 Correct 7 ms 4992 KB Output is correct
11 Correct 7 ms 4992 KB Output is correct
12 Correct 7 ms 4992 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 4992 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 8 ms 4992 KB Output is correct
18 Correct 7 ms 4992 KB Output is correct
19 Correct 7 ms 4992 KB Output is correct
20 Correct 7 ms 5120 KB Output is correct
21 Correct 7 ms 4992 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 4992 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 4992 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 5120 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 8 ms 4992 KB Output is correct
32 Correct 7 ms 4992 KB Output is correct
33 Correct 7 ms 4992 KB Output is correct
34 Correct 8 ms 5120 KB Output is correct
35 Correct 7 ms 4992 KB Output is correct
36 Correct 7 ms 4992 KB Output is correct
37 Correct 7 ms 4992 KB Output is correct
38 Correct 7 ms 5120 KB Output is correct
39 Correct 7 ms 4992 KB Output is correct
40 Correct 7 ms 4992 KB Output is correct
41 Correct 8 ms 4992 KB Output is correct
42 Correct 7 ms 5120 KB Output is correct
43 Correct 8 ms 4992 KB Output is correct
44 Correct 7 ms 4992 KB Output is correct
45 Correct 8 ms 4992 KB Output is correct
46 Correct 7 ms 4992 KB Output is correct
47 Correct 7 ms 5120 KB Output is correct
48 Correct 7 ms 4992 KB Output is correct
49 Correct 7 ms 4992 KB Output is correct
50 Correct 8 ms 4992 KB Output is correct
51 Correct 7 ms 4992 KB Output is correct
52 Correct 7 ms 5120 KB Output is correct
53 Correct 7 ms 4992 KB Output is correct
54 Correct 7 ms 4992 KB Output is correct
55 Correct 8 ms 5120 KB Output is correct
56 Correct 7 ms 5120 KB Output is correct
57 Correct 7 ms 4992 KB Output is correct
58 Correct 7 ms 4992 KB Output is correct
59 Correct 7 ms 4992 KB Output is correct
60 Correct 8 ms 4992 KB Output is correct
61 Correct 7 ms 4992 KB Output is correct
62 Correct 7 ms 4992 KB Output is correct
63 Correct 7 ms 4992 KB Output is correct
64 Correct 7 ms 5120 KB Output is correct
65 Correct 7 ms 4992 KB Output is correct
66 Correct 7 ms 5120 KB Output is correct
67 Correct 8 ms 5120 KB Output is correct
68 Correct 8 ms 5120 KB Output is correct
69 Correct 9 ms 5120 KB Output is correct
70 Correct 8 ms 5152 KB Output is correct
71 Correct 8 ms 5120 KB Output is correct
72 Correct 8 ms 5120 KB Output is correct
73 Correct 8 ms 5120 KB Output is correct
74 Correct 8 ms 5120 KB Output is correct
75 Correct 8 ms 5120 KB Output is correct
76 Correct 8 ms 4992 KB Output is correct
77 Correct 9 ms 5248 KB Output is correct
78 Correct 8 ms 5120 KB Output is correct
79 Correct 8 ms 5120 KB Output is correct
80 Correct 8 ms 5120 KB Output is correct
81 Correct 8 ms 5120 KB Output is correct
82 Correct 8 ms 5120 KB Output is correct
83 Correct 8 ms 5120 KB Output is correct
84 Correct 8 ms 5120 KB Output is correct
85 Correct 8 ms 5248 KB Output is correct
86 Correct 8 ms 5120 KB Output is correct
87 Correct 8 ms 5120 KB Output is correct
88 Correct 8 ms 5120 KB Output is correct
89 Correct 8 ms 5120 KB Output is correct
90 Correct 8 ms 5120 KB Output is correct
91 Correct 10 ms 5120 KB Output is correct
92 Correct 9 ms 5120 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 4992 KB Output is correct
2 Correct 7 ms 4992 KB Output is correct
3 Correct 7 ms 5120 KB Output is correct
4 Correct 7 ms 4992 KB Output is correct
5 Correct 7 ms 4992 KB Output is correct
6 Correct 7 ms 4992 KB Output is correct
7 Correct 7 ms 4992 KB Output is correct
8 Correct 7 ms 4992 KB Output is correct
9 Correct 7 ms 4992 KB Output is correct
10 Correct 7 ms 4992 KB Output is correct
11 Correct 7 ms 4992 KB Output is correct
12 Correct 7 ms 4992 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 4992 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 8 ms 4992 KB Output is correct
18 Correct 7 ms 4992 KB Output is correct
19 Correct 7 ms 4992 KB Output is correct
20 Correct 7 ms 5120 KB Output is correct
21 Correct 7 ms 4992 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 4992 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 4992 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 5120 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 5120 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 8 ms 4992 KB Output is correct
32 Correct 7 ms 4992 KB Output is correct
33 Correct 7 ms 4992 KB Output is correct
34 Correct 8 ms 5120 KB Output is correct
35 Correct 7 ms 4992 KB Output is correct
36 Correct 7 ms 4992 KB Output is correct
37 Correct 7 ms 4992 KB Output is correct
38 Correct 7 ms 5120 KB Output is correct
39 Correct 7 ms 4992 KB Output is correct
40 Correct 7 ms 4992 KB Output is correct
41 Correct 8 ms 4992 KB Output is correct
42 Correct 7 ms 5120 KB Output is correct
43 Correct 8 ms 4992 KB Output is correct
44 Correct 7 ms 4992 KB Output is correct
45 Correct 8 ms 4992 KB Output is correct
46 Correct 7 ms 4992 KB Output is correct
47 Correct 7 ms 5120 KB Output is correct
48 Correct 7 ms 4992 KB Output is correct
49 Correct 7 ms 4992 KB Output is correct
50 Correct 8 ms 4992 KB Output is correct
51 Correct 7 ms 4992 KB Output is correct
52 Correct 7 ms 5120 KB Output is correct
53 Correct 7 ms 4992 KB Output is correct
54 Correct 7 ms 4992 KB Output is correct
55 Correct 8 ms 5120 KB Output is correct
56 Correct 7 ms 5120 KB Output is correct
57 Correct 7 ms 4992 KB Output is correct
58 Correct 7 ms 4992 KB Output is correct
59 Correct 7 ms 4992 KB Output is correct
60 Correct 8 ms 4992 KB Output is correct
61 Correct 7 ms 4992 KB Output is correct
62 Correct 7 ms 4992 KB Output is correct
63 Correct 7 ms 4992 KB Output is correct
64 Correct 7 ms 5120 KB Output is correct
65 Correct 7 ms 4992 KB Output is correct
66 Correct 85 ms 18708 KB Output is correct
67 Correct 89 ms 18732 KB Output is correct
68 Correct 129 ms 18612 KB Output is correct
69 Correct 108 ms 18480 KB Output is correct
70 Correct 122 ms 15876 KB Output is correct
71 Correct 132 ms 18264 KB Output is correct
72 Correct 131 ms 17452 KB Output is correct
73 Correct 123 ms 17836 KB Output is correct
74 Correct 125 ms 16556 KB Output is correct
75 Correct 114 ms 16376 KB Output is correct
76 Correct 107 ms 14508 KB Output is correct
77 Correct 107 ms 14428 KB Output is correct
78 Correct 87 ms 14124 KB Output is correct
79 Correct 89 ms 13868 KB Output is correct
80 Correct 77 ms 13136 KB Output is correct
81 Correct 69 ms 12844 KB Output is correct
82 Correct 11 ms 6656 KB Output is correct
83 Correct 11 ms 6656 KB Output is correct
84 Correct 10 ms 6656 KB Output is correct
85 Correct 10 ms 6656 KB Output is correct
86 Correct 11 ms 6656 KB Output is correct
87 Correct 10 ms 6656 KB Output is correct
88 Correct 8 ms 5248 KB Output is correct
89 Correct 8 ms 5248 KB Output is correct
90 Correct 9 ms 5248 KB Output is correct
91 Correct 8 ms 5248 KB Output is correct
92 Correct 8 ms 5248 KB Output is correct
93 Correct 8 ms 5240 KB Output is correct
94 Correct 8 ms 5248 KB Output is correct
95 Correct 8 ms 5248 KB Output is correct
96 Correct 8 ms 5248 KB Output is correct
97 Correct 8 ms 5376 KB Output is correct
98 Correct 8 ms 5248 KB Output is correct
99 Correct 8 ms 5248 KB Output is correct
100 Correct 8 ms 5248 KB Output is correct
101 Correct 9 ms 5120 KB Output is correct
102 Correct 8 ms 5120 KB Output is correct
103 Correct 7 ms 5120 KB Output is correct
104 Correct 7 ms 5248 KB Output is correct
105 Correct 8 ms 5248 KB Output is correct
106 Correct 8 ms 5248 KB Output is correct
107 Correct 8 ms 5248 KB Output is correct
108 Correct 147 ms 19108 KB Output is correct
109 Correct 146 ms 19108 KB Output is correct
110 Correct 144 ms 19108 KB Output is correct
111 Correct 140 ms 19112 KB Output is correct
112 Correct 132 ms 19112 KB Output is correct
113 Correct 146 ms 24156 KB Output is correct
114 Correct 154 ms 22440 KB Output is correct
115 Correct 160 ms 21516 KB Output is correct
116 Correct 164 ms 20776 KB Output is correct
117 Correct 161 ms 19248 KB Output is correct
118 Correct 154 ms 19108 KB Output is correct
119 Correct 147 ms 19112 KB Output is correct
120 Correct 158 ms 19108 KB Output is correct
121 Correct 139 ms 18208 KB Output is correct
122 Correct 125 ms 17188 KB Output is correct
123 Correct 72 ms 13740 KB Output is correct
124 Correct 97 ms 19420 KB Output is correct
125 Correct 98 ms 19352 KB Output is correct
126 Correct 95 ms 19468 KB Output is correct
127 Correct 98 ms 19348 KB Output is correct
128 Correct 8 ms 5248 KB Output is correct
129 Correct 8 ms 5248 KB Output is correct
130 Correct 8 ms 5120 KB Output is correct
131 Correct 8 ms 5120 KB Output is correct
132 Correct 8 ms 5120 KB Output is correct
133 Correct 8 ms 5120 KB Output is correct
134 Correct 8 ms 5120 KB Output is correct
135 Correct 10 ms 5120 KB Output is correct
136 Correct 8 ms 5120 KB Output is correct
137 Correct 8 ms 5120 KB Output is correct
138 Correct 8 ms 5248 KB Output is correct
139 Correct 8 ms 5248 KB Output is correct
140 Correct 8 ms 5248 KB Output is correct
141 Correct 8 ms 5248 KB Output is correct
142 Correct 8 ms 5120 KB Output is correct
143 Correct 8 ms 5120 KB Output is correct
144 Correct 8 ms 5120 KB Output is correct
145 Correct 8 ms 5120 KB Output is correct
146 Correct 8 ms 5120 KB Output is correct
147 Correct 8 ms 5120 KB Output is correct
148 Correct 8 ms 5120 KB Output is correct
149 Correct 8 ms 5120 KB Output is correct
150 Correct 8 ms 5120 KB Output is correct
151 Correct 8 ms 5120 KB Output is correct
152 Correct 7 ms 5120 KB Output is correct
153 Correct 7 ms 5120 KB Output is correct
154 Correct 7 ms 5120 KB Output is correct
155 Correct 151 ms 19160 KB Output is correct
156 Correct 153 ms 19044 KB Output is correct
157 Correct 147 ms 17592 KB Output is correct
158 Correct 132 ms 16684 KB Output is correct
159 Correct 112 ms 14636 KB Output is correct
160 Correct 136 ms 13712 KB Output is correct
161 Correct 125 ms 13480 KB Output is correct
162 Correct 100 ms 12852 KB Output is correct
163 Correct 117 ms 12596 KB Output is correct
164 Correct 93 ms 12408 KB Output is correct
165 Correct 102 ms 12164 KB Output is correct
166 Correct 83 ms 12024 KB Output is correct
167 Correct 96 ms 12024 KB Output is correct
168 Correct 89 ms 13816 KB Output is correct
169 Correct 146 ms 22188 KB Output is correct
170 Correct 169 ms 21048 KB Output is correct
171 Correct 156 ms 20516 KB Output is correct
172 Correct 173 ms 19492 KB Output is correct
173 Correct 142 ms 16768 KB Output is correct
174 Correct 132 ms 16812 KB Output is correct
175 Correct 126 ms 16684 KB Output is correct
176 Correct 122 ms 15660 KB Output is correct
177 Correct 120 ms 14636 KB Output is correct
178 Correct 142 ms 18820 KB Output is correct
179 Correct 142 ms 18912 KB Output is correct
180 Correct 124 ms 17540 KB Output is correct
181 Correct 138 ms 17716 KB Output is correct
182 Correct 7 ms 5120 KB Output is correct
183 Correct 8 ms 5120 KB Output is correct
184 Correct 8 ms 5120 KB Output is correct
185 Correct 9 ms 5120 KB Output is correct
186 Correct 8 ms 5152 KB Output is correct
187 Correct 8 ms 5120 KB Output is correct
188 Correct 8 ms 5120 KB Output is correct
189 Correct 8 ms 5120 KB Output is correct
190 Correct 8 ms 5120 KB Output is correct
191 Correct 8 ms 5120 KB Output is correct
192 Correct 8 ms 4992 KB Output is correct
193 Correct 9 ms 5248 KB Output is correct
194 Correct 8 ms 5120 KB Output is correct
195 Correct 8 ms 5120 KB Output is correct
196 Correct 8 ms 5120 KB Output is correct
197 Correct 8 ms 5120 KB Output is correct
198 Correct 8 ms 5120 KB Output is correct
199 Correct 8 ms 5120 KB Output is correct
200 Correct 8 ms 5120 KB Output is correct
201 Correct 8 ms 5248 KB Output is correct
202 Correct 8 ms 5120 KB Output is correct
203 Correct 8 ms 5120 KB Output is correct
204 Correct 8 ms 5120 KB Output is correct
205 Correct 8 ms 5120 KB Output is correct
206 Correct 8 ms 5120 KB Output is correct
207 Correct 10 ms 5120 KB Output is correct
208 Correct 9 ms 5120 KB Output is correct
209 Correct 10 ms 6656 KB Output is correct
210 Correct 82 ms 13740 KB Output is correct
211 Correct 115 ms 16156 KB Output is correct
212 Correct 150 ms 17328 KB Output is correct
213 Correct 170 ms 18592 KB Output is correct
214 Correct 76 ms 14636 KB Output is correct
215 Correct 75 ms 14000 KB Output is correct
216 Correct 135 ms 17444 KB Output is correct
217 Correct 151 ms 15124 KB Output is correct
218 Correct 116 ms 12860 KB Output is correct
219 Correct 98 ms 12280 KB Output is correct
220 Correct 111 ms 12152 KB Output is correct
221 Correct 107 ms 11956 KB Output is correct
222 Correct 97 ms 13048 KB Output is correct
223 Correct 148 ms 17068 KB Output is correct
224 Correct 173 ms 16404 KB Output is correct
225 Correct 151 ms 14584 KB Output is correct
226 Correct 128 ms 14508 KB Output is correct
227 Correct 119 ms 14636 KB Output is correct
228 Correct 111 ms 14000 KB Output is correct
229 Correct 112 ms 13616 KB Output is correct
230 Correct 136 ms 15064 KB Output is correct
231 Correct 125 ms 15224 KB Output is correct