답안 #553207

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
553207 2022-04-25T05:55:10 Z tranxuanbach 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
113 ms 43800 KB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;

#define endl '\n'
#define fi first
#define se second
#define For(i, l, r) for (auto i = (l); i < (r); i++)
#define ForE(i, l, r) for (auto i = (l); i <= (r); i++)
#define FordE(i, l, r) for (auto i = (l); i >= (r); i--)
#define Fora(v, a) for (auto v: (a))
#define bend(a) (a).begin(), (a).end()
#define isz(a) ((signed)(a).size())

using ll = long long;
using ld = long double;
using pii = pair <int, int>;
using vi = vector <int>;
using vpii = vector <pii>;
using vvi = vector <vi>;

const int N = 5e5 + 5;

int n, m;
vi adj[N];

int ctrtin = 0, tin[N], low[N];
vi st;

int szcpn;
int cntbcc = 0;
vi adjbcc[N];

void dfs(int u, int p){
    tin[u] = low[u] = ++ctrtin;
    st.emplace_back(u);
    szcpn++;
    Fora(v, adj[u]){
        if (v == p){
            continue;
        }
        if (tin[v]){
            low[u] = min(low[u], tin[v]);
        }
        else{
            dfs(v, u);
            low[u] = min(low[u], low[v]);
            if (low[v] >= tin[u]){
                cntbcc++;
                adjbcc[u].emplace_back(n + cntbcc);
                do{
                    int tv = st.back(); st.pop_back();
                    adjbcc[n + cntbcc].emplace_back(tv);
                } while (adjbcc[n + cntbcc].back() != v);
            }
        }
    }
}

ll ans;

int sz[N];

void dfs_bcc(int u){
    sz[u] = (u <= n);
    Fora(v, adjbcc[u]){
        dfs_bcc(v);
        sz[u] += sz[v];
        if (u > n){
            ans -= (ll)isz(adjbcc[u]) * sz[v] * (sz[v] - 1);
        }
    }
    if (u > n){
        ans -= (ll)isz(adjbcc[u]) * (szcpn - sz[u]) * (szcpn - sz[u] - 1);
    }
}

signed main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    // freopen("KEK.inp", "r", stdin);
    // freopen("KEK.out", "w", stdout);
    cin >> n >> m;
    ForE(i, 1, m){
        int u, v; cin >> u >> v;
        adj[u].emplace_back(v);
        adj[v].emplace_back(u);
    }

    ForE(u, 1, n){
        if (!tin[u]){
            szcpn = 0;
            dfs(u, 0);
            ans += (ll)szcpn * (szcpn - 1) * (szcpn - 2);
            dfs_bcc(u);
        }
    }
    cout << ans << endl;
}

/*
==================================================+
INPUT:                                            |
--------------------------------------------------|

--------------------------------------------------|
==================================================+
OUTPUT:                                           |
--------------------------------------------------|

--------------------------------------------------|
==================================================+
*/
# 결과 실행 시간 메모리 Grader output
1 Correct 15 ms 23824 KB Output is correct
2 Correct 13 ms 23820 KB Output is correct
3 Correct 12 ms 23772 KB Output is correct
4 Correct 13 ms 23748 KB Output is correct
5 Correct 14 ms 23764 KB Output is correct
6 Correct 14 ms 23764 KB Output is correct
7 Correct 16 ms 23768 KB Output is correct
8 Correct 17 ms 23764 KB Output is correct
9 Correct 12 ms 23764 KB Output is correct
10 Correct 13 ms 23764 KB Output is correct
11 Correct 12 ms 23784 KB Output is correct
12 Correct 13 ms 23764 KB Output is correct
13 Correct 12 ms 23828 KB Output is correct
14 Correct 13 ms 23832 KB Output is correct
15 Correct 14 ms 23764 KB Output is correct
16 Correct 14 ms 23764 KB Output is correct
17 Correct 13 ms 23764 KB Output is correct
18 Correct 14 ms 23764 KB Output is correct
19 Correct 12 ms 23764 KB Output is correct
20 Correct 14 ms 23764 KB Output is correct
21 Correct 13 ms 23812 KB Output is correct
22 Correct 13 ms 23892 KB Output is correct
23 Correct 13 ms 23748 KB Output is correct
24 Correct 12 ms 23764 KB Output is correct
25 Correct 14 ms 23824 KB Output is correct
26 Correct 13 ms 23764 KB Output is correct
27 Correct 13 ms 23812 KB Output is correct
28 Correct 13 ms 23764 KB Output is correct
29 Correct 13 ms 23764 KB Output is correct
30 Correct 13 ms 23764 KB Output is correct
31 Correct 13 ms 23764 KB Output is correct
32 Correct 13 ms 23832 KB Output is correct
33 Correct 13 ms 23752 KB Output is correct
34 Correct 13 ms 23764 KB Output is correct
35 Correct 12 ms 23764 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 15 ms 23824 KB Output is correct
2 Correct 13 ms 23820 KB Output is correct
3 Correct 12 ms 23772 KB Output is correct
4 Correct 13 ms 23748 KB Output is correct
5 Correct 14 ms 23764 KB Output is correct
6 Correct 14 ms 23764 KB Output is correct
7 Correct 16 ms 23768 KB Output is correct
8 Correct 17 ms 23764 KB Output is correct
9 Correct 12 ms 23764 KB Output is correct
10 Correct 13 ms 23764 KB Output is correct
11 Correct 12 ms 23784 KB Output is correct
12 Correct 13 ms 23764 KB Output is correct
13 Correct 12 ms 23828 KB Output is correct
14 Correct 13 ms 23832 KB Output is correct
15 Correct 14 ms 23764 KB Output is correct
16 Correct 14 ms 23764 KB Output is correct
17 Correct 13 ms 23764 KB Output is correct
18 Correct 14 ms 23764 KB Output is correct
19 Correct 12 ms 23764 KB Output is correct
20 Correct 14 ms 23764 KB Output is correct
21 Correct 13 ms 23812 KB Output is correct
22 Correct 13 ms 23892 KB Output is correct
23 Correct 13 ms 23748 KB Output is correct
24 Correct 12 ms 23764 KB Output is correct
25 Correct 14 ms 23824 KB Output is correct
26 Correct 13 ms 23764 KB Output is correct
27 Correct 13 ms 23812 KB Output is correct
28 Correct 13 ms 23764 KB Output is correct
29 Correct 13 ms 23764 KB Output is correct
30 Correct 13 ms 23764 KB Output is correct
31 Correct 13 ms 23764 KB Output is correct
32 Correct 13 ms 23832 KB Output is correct
33 Correct 13 ms 23752 KB Output is correct
34 Correct 13 ms 23764 KB Output is correct
35 Correct 12 ms 23764 KB Output is correct
36 Correct 12 ms 23764 KB Output is correct
37 Correct 13 ms 23720 KB Output is correct
38 Correct 13 ms 23764 KB Output is correct
39 Correct 15 ms 23764 KB Output is correct
40 Correct 14 ms 23764 KB Output is correct
41 Correct 15 ms 23764 KB Output is correct
42 Correct 13 ms 23824 KB Output is correct
43 Correct 13 ms 23788 KB Output is correct
44 Correct 13 ms 23768 KB Output is correct
45 Correct 13 ms 23808 KB Output is correct
46 Correct 14 ms 23764 KB Output is correct
47 Correct 13 ms 23764 KB Output is correct
48 Correct 15 ms 23820 KB Output is correct
49 Correct 13 ms 23732 KB Output is correct
50 Correct 14 ms 23828 KB Output is correct
51 Correct 14 ms 23828 KB Output is correct
52 Correct 14 ms 23748 KB Output is correct
53 Correct 15 ms 23764 KB Output is correct
54 Correct 14 ms 23764 KB Output is correct
55 Correct 13 ms 23764 KB Output is correct
56 Correct 13 ms 23936 KB Output is correct
57 Correct 13 ms 23744 KB Output is correct
58 Correct 14 ms 23828 KB Output is correct
59 Correct 15 ms 23776 KB Output is correct
60 Correct 13 ms 23792 KB Output is correct
61 Correct 13 ms 23828 KB Output is correct
62 Correct 13 ms 23828 KB Output is correct
63 Correct 12 ms 23720 KB Output is correct
64 Correct 13 ms 23836 KB Output is correct
65 Correct 13 ms 23816 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 62 ms 40264 KB Output is correct
2 Correct 77 ms 41244 KB Output is correct
3 Correct 109 ms 39524 KB Output is correct
4 Correct 76 ms 40360 KB Output is correct
5 Correct 86 ms 36048 KB Output is correct
6 Correct 87 ms 38584 KB Output is correct
7 Correct 95 ms 36704 KB Output is correct
8 Correct 108 ms 37196 KB Output is correct
9 Correct 80 ms 35184 KB Output is correct
10 Correct 91 ms 35056 KB Output is correct
11 Correct 79 ms 32336 KB Output is correct
12 Correct 62 ms 32224 KB Output is correct
13 Correct 57 ms 32188 KB Output is correct
14 Correct 63 ms 32020 KB Output is correct
15 Correct 60 ms 31008 KB Output is correct
16 Correct 64 ms 30788 KB Output is correct
17 Correct 16 ms 25564 KB Output is correct
18 Correct 16 ms 25564 KB Output is correct
19 Correct 19 ms 25572 KB Output is correct
20 Correct 16 ms 25520 KB Output is correct
21 Correct 16 ms 25592 KB Output is correct
22 Correct 15 ms 25512 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 23832 KB Output is correct
2 Correct 15 ms 23820 KB Output is correct
3 Correct 15 ms 23964 KB Output is correct
4 Correct 14 ms 24020 KB Output is correct
5 Correct 13 ms 23952 KB Output is correct
6 Correct 13 ms 23900 KB Output is correct
7 Correct 13 ms 23944 KB Output is correct
8 Correct 14 ms 23912 KB Output is correct
9 Correct 13 ms 23892 KB Output is correct
10 Correct 13 ms 23836 KB Output is correct
11 Correct 13 ms 23832 KB Output is correct
12 Correct 14 ms 23840 KB Output is correct
13 Correct 14 ms 23892 KB Output is correct
14 Correct 13 ms 23828 KB Output is correct
15 Correct 13 ms 23828 KB Output is correct
16 Correct 16 ms 23888 KB Output is correct
17 Correct 14 ms 23892 KB Output is correct
18 Correct 13 ms 23892 KB Output is correct
19 Correct 13 ms 23892 KB Output is correct
20 Correct 14 ms 23892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 104 ms 33684 KB Output is correct
2 Correct 108 ms 33760 KB Output is correct
3 Correct 93 ms 33680 KB Output is correct
4 Correct 78 ms 33672 KB Output is correct
5 Correct 80 ms 33712 KB Output is correct
6 Correct 94 ms 43800 KB Output is correct
7 Correct 113 ms 40204 KB Output is correct
8 Correct 87 ms 38596 KB Output is correct
9 Correct 86 ms 37036 KB Output is correct
10 Correct 100 ms 33736 KB Output is correct
11 Correct 81 ms 33692 KB Output is correct
12 Correct 81 ms 33760 KB Output is correct
13 Correct 79 ms 33880 KB Output is correct
14 Correct 73 ms 33380 KB Output is correct
15 Correct 68 ms 32912 KB Output is correct
16 Correct 45 ms 30876 KB Output is correct
17 Correct 49 ms 32812 KB Output is correct
18 Correct 48 ms 32796 KB Output is correct
19 Correct 49 ms 32928 KB Output is correct
20 Correct 50 ms 32804 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 15 ms 23828 KB Output is correct
2 Correct 13 ms 23892 KB Output is correct
3 Correct 13 ms 23900 KB Output is correct
4 Correct 13 ms 23920 KB Output is correct
5 Correct 13 ms 23892 KB Output is correct
6 Correct 13 ms 23836 KB Output is correct
7 Correct 13 ms 23836 KB Output is correct
8 Correct 13 ms 23892 KB Output is correct
9 Correct 13 ms 23892 KB Output is correct
10 Correct 13 ms 23892 KB Output is correct
11 Correct 13 ms 23852 KB Output is correct
12 Correct 12 ms 23960 KB Output is correct
13 Correct 12 ms 23892 KB Output is correct
14 Correct 12 ms 23880 KB Output is correct
15 Correct 12 ms 23864 KB Output is correct
16 Correct 13 ms 23892 KB Output is correct
17 Correct 12 ms 23836 KB Output is correct
18 Correct 14 ms 23828 KB Output is correct
19 Correct 12 ms 23880 KB Output is correct
20 Correct 12 ms 23832 KB Output is correct
21 Correct 12 ms 23832 KB Output is correct
22 Correct 12 ms 23836 KB Output is correct
23 Correct 13 ms 23812 KB Output is correct
24 Correct 13 ms 23892 KB Output is correct
25 Correct 12 ms 23820 KB Output is correct
26 Correct 12 ms 23764 KB Output is correct
27 Correct 12 ms 23764 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 77 ms 33724 KB Output is correct
2 Correct 84 ms 34024 KB Output is correct
3 Correct 78 ms 33192 KB Output is correct
4 Correct 77 ms 31988 KB Output is correct
5 Correct 67 ms 31844 KB Output is correct
6 Correct 70 ms 31308 KB Output is correct
7 Correct 70 ms 30952 KB Output is correct
8 Correct 60 ms 30688 KB Output is correct
9 Correct 58 ms 30452 KB Output is correct
10 Correct 64 ms 30360 KB Output is correct
11 Correct 60 ms 30360 KB Output is correct
12 Correct 53 ms 30312 KB Output is correct
13 Correct 67 ms 30284 KB Output is correct
14 Correct 57 ms 33052 KB Output is correct
15 Correct 85 ms 40720 KB Output is correct
16 Correct 84 ms 38580 KB Output is correct
17 Correct 89 ms 39064 KB Output is correct
18 Correct 85 ms 37196 KB Output is correct
19 Correct 77 ms 33128 KB Output is correct
20 Correct 82 ms 33164 KB Output is correct
21 Correct 78 ms 33080 KB Output is correct
22 Correct 75 ms 32476 KB Output is correct
23 Correct 64 ms 31896 KB Output is correct
24 Correct 76 ms 33988 KB Output is correct
25 Correct 76 ms 33996 KB Output is correct
26 Correct 72 ms 33352 KB Output is correct
27 Correct 78 ms 33312 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 15 ms 23824 KB Output is correct
2 Correct 13 ms 23820 KB Output is correct
3 Correct 12 ms 23772 KB Output is correct
4 Correct 13 ms 23748 KB Output is correct
5 Correct 14 ms 23764 KB Output is correct
6 Correct 14 ms 23764 KB Output is correct
7 Correct 16 ms 23768 KB Output is correct
8 Correct 17 ms 23764 KB Output is correct
9 Correct 12 ms 23764 KB Output is correct
10 Correct 13 ms 23764 KB Output is correct
11 Correct 12 ms 23784 KB Output is correct
12 Correct 13 ms 23764 KB Output is correct
13 Correct 12 ms 23828 KB Output is correct
14 Correct 13 ms 23832 KB Output is correct
15 Correct 14 ms 23764 KB Output is correct
16 Correct 14 ms 23764 KB Output is correct
17 Correct 13 ms 23764 KB Output is correct
18 Correct 14 ms 23764 KB Output is correct
19 Correct 12 ms 23764 KB Output is correct
20 Correct 14 ms 23764 KB Output is correct
21 Correct 13 ms 23812 KB Output is correct
22 Correct 13 ms 23892 KB Output is correct
23 Correct 13 ms 23748 KB Output is correct
24 Correct 12 ms 23764 KB Output is correct
25 Correct 14 ms 23824 KB Output is correct
26 Correct 13 ms 23764 KB Output is correct
27 Correct 13 ms 23812 KB Output is correct
28 Correct 13 ms 23764 KB Output is correct
29 Correct 13 ms 23764 KB Output is correct
30 Correct 13 ms 23764 KB Output is correct
31 Correct 13 ms 23764 KB Output is correct
32 Correct 13 ms 23832 KB Output is correct
33 Correct 13 ms 23752 KB Output is correct
34 Correct 13 ms 23764 KB Output is correct
35 Correct 12 ms 23764 KB Output is correct
36 Correct 12 ms 23764 KB Output is correct
37 Correct 13 ms 23720 KB Output is correct
38 Correct 13 ms 23764 KB Output is correct
39 Correct 15 ms 23764 KB Output is correct
40 Correct 14 ms 23764 KB Output is correct
41 Correct 15 ms 23764 KB Output is correct
42 Correct 13 ms 23824 KB Output is correct
43 Correct 13 ms 23788 KB Output is correct
44 Correct 13 ms 23768 KB Output is correct
45 Correct 13 ms 23808 KB Output is correct
46 Correct 14 ms 23764 KB Output is correct
47 Correct 13 ms 23764 KB Output is correct
48 Correct 15 ms 23820 KB Output is correct
49 Correct 13 ms 23732 KB Output is correct
50 Correct 14 ms 23828 KB Output is correct
51 Correct 14 ms 23828 KB Output is correct
52 Correct 14 ms 23748 KB Output is correct
53 Correct 15 ms 23764 KB Output is correct
54 Correct 14 ms 23764 KB Output is correct
55 Correct 13 ms 23764 KB Output is correct
56 Correct 13 ms 23936 KB Output is correct
57 Correct 13 ms 23744 KB Output is correct
58 Correct 14 ms 23828 KB Output is correct
59 Correct 15 ms 23776 KB Output is correct
60 Correct 13 ms 23792 KB Output is correct
61 Correct 13 ms 23828 KB Output is correct
62 Correct 13 ms 23828 KB Output is correct
63 Correct 12 ms 23720 KB Output is correct
64 Correct 13 ms 23836 KB Output is correct
65 Correct 13 ms 23816 KB Output is correct
66 Correct 13 ms 23792 KB Output is correct
67 Correct 13 ms 23816 KB Output is correct
68 Correct 12 ms 23920 KB Output is correct
69 Correct 14 ms 23892 KB Output is correct
70 Correct 17 ms 23924 KB Output is correct
71 Correct 13 ms 23892 KB Output is correct
72 Correct 13 ms 23840 KB Output is correct
73 Correct 12 ms 23892 KB Output is correct
74 Correct 14 ms 23832 KB Output is correct
75 Correct 13 ms 23920 KB Output is correct
76 Correct 13 ms 23764 KB Output is correct
77 Correct 13 ms 23892 KB Output is correct
78 Correct 14 ms 23848 KB Output is correct
79 Correct 13 ms 23892 KB Output is correct
80 Correct 14 ms 23900 KB Output is correct
81 Correct 12 ms 23892 KB Output is correct
82 Correct 14 ms 23884 KB Output is correct
83 Correct 12 ms 23944 KB Output is correct
84 Correct 12 ms 23832 KB Output is correct
85 Correct 13 ms 23892 KB Output is correct
86 Correct 12 ms 23832 KB Output is correct
87 Correct 13 ms 23892 KB Output is correct
88 Correct 13 ms 23892 KB Output is correct
89 Correct 12 ms 23784 KB Output is correct
90 Correct 13 ms 23892 KB Output is correct
91 Correct 13 ms 23836 KB Output is correct
92 Correct 13 ms 23892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 15 ms 23824 KB Output is correct
2 Correct 13 ms 23820 KB Output is correct
3 Correct 12 ms 23772 KB Output is correct
4 Correct 13 ms 23748 KB Output is correct
5 Correct 14 ms 23764 KB Output is correct
6 Correct 14 ms 23764 KB Output is correct
7 Correct 16 ms 23768 KB Output is correct
8 Correct 17 ms 23764 KB Output is correct
9 Correct 12 ms 23764 KB Output is correct
10 Correct 13 ms 23764 KB Output is correct
11 Correct 12 ms 23784 KB Output is correct
12 Correct 13 ms 23764 KB Output is correct
13 Correct 12 ms 23828 KB Output is correct
14 Correct 13 ms 23832 KB Output is correct
15 Correct 14 ms 23764 KB Output is correct
16 Correct 14 ms 23764 KB Output is correct
17 Correct 13 ms 23764 KB Output is correct
18 Correct 14 ms 23764 KB Output is correct
19 Correct 12 ms 23764 KB Output is correct
20 Correct 14 ms 23764 KB Output is correct
21 Correct 13 ms 23812 KB Output is correct
22 Correct 13 ms 23892 KB Output is correct
23 Correct 13 ms 23748 KB Output is correct
24 Correct 12 ms 23764 KB Output is correct
25 Correct 14 ms 23824 KB Output is correct
26 Correct 13 ms 23764 KB Output is correct
27 Correct 13 ms 23812 KB Output is correct
28 Correct 13 ms 23764 KB Output is correct
29 Correct 13 ms 23764 KB Output is correct
30 Correct 13 ms 23764 KB Output is correct
31 Correct 13 ms 23764 KB Output is correct
32 Correct 13 ms 23832 KB Output is correct
33 Correct 13 ms 23752 KB Output is correct
34 Correct 13 ms 23764 KB Output is correct
35 Correct 12 ms 23764 KB Output is correct
36 Correct 12 ms 23764 KB Output is correct
37 Correct 13 ms 23720 KB Output is correct
38 Correct 13 ms 23764 KB Output is correct
39 Correct 15 ms 23764 KB Output is correct
40 Correct 14 ms 23764 KB Output is correct
41 Correct 15 ms 23764 KB Output is correct
42 Correct 13 ms 23824 KB Output is correct
43 Correct 13 ms 23788 KB Output is correct
44 Correct 13 ms 23768 KB Output is correct
45 Correct 13 ms 23808 KB Output is correct
46 Correct 14 ms 23764 KB Output is correct
47 Correct 13 ms 23764 KB Output is correct
48 Correct 15 ms 23820 KB Output is correct
49 Correct 13 ms 23732 KB Output is correct
50 Correct 14 ms 23828 KB Output is correct
51 Correct 14 ms 23828 KB Output is correct
52 Correct 14 ms 23748 KB Output is correct
53 Correct 15 ms 23764 KB Output is correct
54 Correct 14 ms 23764 KB Output is correct
55 Correct 13 ms 23764 KB Output is correct
56 Correct 13 ms 23936 KB Output is correct
57 Correct 13 ms 23744 KB Output is correct
58 Correct 14 ms 23828 KB Output is correct
59 Correct 15 ms 23776 KB Output is correct
60 Correct 13 ms 23792 KB Output is correct
61 Correct 13 ms 23828 KB Output is correct
62 Correct 13 ms 23828 KB Output is correct
63 Correct 12 ms 23720 KB Output is correct
64 Correct 13 ms 23836 KB Output is correct
65 Correct 13 ms 23816 KB Output is correct
66 Correct 62 ms 40264 KB Output is correct
67 Correct 77 ms 41244 KB Output is correct
68 Correct 109 ms 39524 KB Output is correct
69 Correct 76 ms 40360 KB Output is correct
70 Correct 86 ms 36048 KB Output is correct
71 Correct 87 ms 38584 KB Output is correct
72 Correct 95 ms 36704 KB Output is correct
73 Correct 108 ms 37196 KB Output is correct
74 Correct 80 ms 35184 KB Output is correct
75 Correct 91 ms 35056 KB Output is correct
76 Correct 79 ms 32336 KB Output is correct
77 Correct 62 ms 32224 KB Output is correct
78 Correct 57 ms 32188 KB Output is correct
79 Correct 63 ms 32020 KB Output is correct
80 Correct 60 ms 31008 KB Output is correct
81 Correct 64 ms 30788 KB Output is correct
82 Correct 16 ms 25564 KB Output is correct
83 Correct 16 ms 25564 KB Output is correct
84 Correct 19 ms 25572 KB Output is correct
85 Correct 16 ms 25520 KB Output is correct
86 Correct 16 ms 25592 KB Output is correct
87 Correct 15 ms 25512 KB Output is correct
88 Correct 14 ms 23832 KB Output is correct
89 Correct 15 ms 23820 KB Output is correct
90 Correct 15 ms 23964 KB Output is correct
91 Correct 14 ms 24020 KB Output is correct
92 Correct 13 ms 23952 KB Output is correct
93 Correct 13 ms 23900 KB Output is correct
94 Correct 13 ms 23944 KB Output is correct
95 Correct 14 ms 23912 KB Output is correct
96 Correct 13 ms 23892 KB Output is correct
97 Correct 13 ms 23836 KB Output is correct
98 Correct 13 ms 23832 KB Output is correct
99 Correct 14 ms 23840 KB Output is correct
100 Correct 14 ms 23892 KB Output is correct
101 Correct 13 ms 23828 KB Output is correct
102 Correct 13 ms 23828 KB Output is correct
103 Correct 16 ms 23888 KB Output is correct
104 Correct 14 ms 23892 KB Output is correct
105 Correct 13 ms 23892 KB Output is correct
106 Correct 13 ms 23892 KB Output is correct
107 Correct 14 ms 23892 KB Output is correct
108 Correct 104 ms 33684 KB Output is correct
109 Correct 108 ms 33760 KB Output is correct
110 Correct 93 ms 33680 KB Output is correct
111 Correct 78 ms 33672 KB Output is correct
112 Correct 80 ms 33712 KB Output is correct
113 Correct 94 ms 43800 KB Output is correct
114 Correct 113 ms 40204 KB Output is correct
115 Correct 87 ms 38596 KB Output is correct
116 Correct 86 ms 37036 KB Output is correct
117 Correct 100 ms 33736 KB Output is correct
118 Correct 81 ms 33692 KB Output is correct
119 Correct 81 ms 33760 KB Output is correct
120 Correct 79 ms 33880 KB Output is correct
121 Correct 73 ms 33380 KB Output is correct
122 Correct 68 ms 32912 KB Output is correct
123 Correct 45 ms 30876 KB Output is correct
124 Correct 49 ms 32812 KB Output is correct
125 Correct 48 ms 32796 KB Output is correct
126 Correct 49 ms 32928 KB Output is correct
127 Correct 50 ms 32804 KB Output is correct
128 Correct 15 ms 23828 KB Output is correct
129 Correct 13 ms 23892 KB Output is correct
130 Correct 13 ms 23900 KB Output is correct
131 Correct 13 ms 23920 KB Output is correct
132 Correct 13 ms 23892 KB Output is correct
133 Correct 13 ms 23836 KB Output is correct
134 Correct 13 ms 23836 KB Output is correct
135 Correct 13 ms 23892 KB Output is correct
136 Correct 13 ms 23892 KB Output is correct
137 Correct 13 ms 23892 KB Output is correct
138 Correct 13 ms 23852 KB Output is correct
139 Correct 12 ms 23960 KB Output is correct
140 Correct 12 ms 23892 KB Output is correct
141 Correct 12 ms 23880 KB Output is correct
142 Correct 12 ms 23864 KB Output is correct
143 Correct 13 ms 23892 KB Output is correct
144 Correct 12 ms 23836 KB Output is correct
145 Correct 14 ms 23828 KB Output is correct
146 Correct 12 ms 23880 KB Output is correct
147 Correct 12 ms 23832 KB Output is correct
148 Correct 12 ms 23832 KB Output is correct
149 Correct 12 ms 23836 KB Output is correct
150 Correct 13 ms 23812 KB Output is correct
151 Correct 13 ms 23892 KB Output is correct
152 Correct 12 ms 23820 KB Output is correct
153 Correct 12 ms 23764 KB Output is correct
154 Correct 12 ms 23764 KB Output is correct
155 Correct 77 ms 33724 KB Output is correct
156 Correct 84 ms 34024 KB Output is correct
157 Correct 78 ms 33192 KB Output is correct
158 Correct 77 ms 31988 KB Output is correct
159 Correct 67 ms 31844 KB Output is correct
160 Correct 70 ms 31308 KB Output is correct
161 Correct 70 ms 30952 KB Output is correct
162 Correct 60 ms 30688 KB Output is correct
163 Correct 58 ms 30452 KB Output is correct
164 Correct 64 ms 30360 KB Output is correct
165 Correct 60 ms 30360 KB Output is correct
166 Correct 53 ms 30312 KB Output is correct
167 Correct 67 ms 30284 KB Output is correct
168 Correct 57 ms 33052 KB Output is correct
169 Correct 85 ms 40720 KB Output is correct
170 Correct 84 ms 38580 KB Output is correct
171 Correct 89 ms 39064 KB Output is correct
172 Correct 85 ms 37196 KB Output is correct
173 Correct 77 ms 33128 KB Output is correct
174 Correct 82 ms 33164 KB Output is correct
175 Correct 78 ms 33080 KB Output is correct
176 Correct 75 ms 32476 KB Output is correct
177 Correct 64 ms 31896 KB Output is correct
178 Correct 76 ms 33988 KB Output is correct
179 Correct 76 ms 33996 KB Output is correct
180 Correct 72 ms 33352 KB Output is correct
181 Correct 78 ms 33312 KB Output is correct
182 Correct 13 ms 23792 KB Output is correct
183 Correct 13 ms 23816 KB Output is correct
184 Correct 12 ms 23920 KB Output is correct
185 Correct 14 ms 23892 KB Output is correct
186 Correct 17 ms 23924 KB Output is correct
187 Correct 13 ms 23892 KB Output is correct
188 Correct 13 ms 23840 KB Output is correct
189 Correct 12 ms 23892 KB Output is correct
190 Correct 14 ms 23832 KB Output is correct
191 Correct 13 ms 23920 KB Output is correct
192 Correct 13 ms 23764 KB Output is correct
193 Correct 13 ms 23892 KB Output is correct
194 Correct 14 ms 23848 KB Output is correct
195 Correct 13 ms 23892 KB Output is correct
196 Correct 14 ms 23900 KB Output is correct
197 Correct 12 ms 23892 KB Output is correct
198 Correct 14 ms 23884 KB Output is correct
199 Correct 12 ms 23944 KB Output is correct
200 Correct 12 ms 23832 KB Output is correct
201 Correct 13 ms 23892 KB Output is correct
202 Correct 12 ms 23832 KB Output is correct
203 Correct 13 ms 23892 KB Output is correct
204 Correct 13 ms 23892 KB Output is correct
205 Correct 12 ms 23784 KB Output is correct
206 Correct 13 ms 23892 KB Output is correct
207 Correct 13 ms 23836 KB Output is correct
208 Correct 13 ms 23892 KB Output is correct
209 Correct 14 ms 25428 KB Output is correct
210 Correct 48 ms 30732 KB Output is correct
211 Correct 67 ms 34532 KB Output is correct
212 Correct 86 ms 37100 KB Output is correct
213 Correct 100 ms 39116 KB Output is correct
214 Correct 48 ms 31984 KB Output is correct
215 Correct 53 ms 31632 KB Output is correct
216 Correct 80 ms 33356 KB Output is correct
217 Correct 81 ms 32040 KB Output is correct
218 Correct 77 ms 30604 KB Output is correct
219 Correct 60 ms 30300 KB Output is correct
220 Correct 62 ms 30100 KB Output is correct
221 Correct 65 ms 30084 KB Output is correct
222 Correct 61 ms 31692 KB Output is correct
223 Correct 85 ms 35404 KB Output is correct
224 Correct 82 ms 34248 KB Output is correct
225 Correct 79 ms 31692 KB Output is correct
226 Correct 84 ms 31736 KB Output is correct
227 Correct 82 ms 31704 KB Output is correct
228 Correct 73 ms 31552 KB Output is correct
229 Correct 67 ms 31220 KB Output is correct
230 Correct 67 ms 31756 KB Output is correct
231 Correct 75 ms 31836 KB Output is correct