답안 #674447

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
674447 2022-12-24T09:04:28 Z Jarif_Rahman 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
106 ms 33068 KB
#include <bits/stdc++.h>
#define pb push_back
#define f first
#define sc second
using namespace std;
typedef long long int ll;
typedef string str;

int n, m;
vector<vector<int>> graph, tree0;
vector<bool> ap;
vector<int> intime, low;

int N = 0;
vector<vector<int>> tree;
vector<int> bcc, bcc_sz;
vector<int> sz;

ll ans = 0;

int in = 0;
void dfs_ap(int nd, int ss){
    intime[nd] = in++;
    low[nd] = intime[nd];

    for(int x: graph[nd]) if(x != ss){
        if(intime[x] != -1) low[nd] = min(low[nd], intime[x]);
        else{
            tree0[nd].pb(x);
            dfs_ap(x, nd);
            if(low[x] >= intime[nd] && ss != -1) ap[nd] = 1;
            low[nd] = min(low[nd], low[x]);
        }
    }

    if(ss == -1 && tree0[nd].size() > 1) ap[nd] = 1;
}

void dfs_bcc(int nd, int _bcc){
    if(!ap[nd]){
        bcc[nd] = _bcc;
        bcc_sz[_bcc]++;
        for(int x: tree0[nd]) dfs_bcc(x, _bcc);
        return;
    }

    int me = tree.size();
    bcc[nd] = me;
    tree.pb({_bcc});
    bcc_sz.pb(-1);
    tree[_bcc].pb(me);

    for(int x: tree0[nd]){
        if(low[x] >= intime[nd]){
            int __bcc = tree.size();
            tree.pb({me});
            bcc_sz.pb(0);
            tree[me].pb(__bcc);
            dfs_bcc(x, __bcc);
        }
        else dfs_bcc(x, _bcc);
    }
}

void dfs(int nd, int ss){
    sz[nd] = bcc_sz[nd];
    if(sz[nd] == -1) sz[nd] = 1;
    for(int x: tree[nd]) if(x != ss) dfs(x, nd), sz[nd]+=sz[x];
}

int comp_size;
ll dfs2(int nd, int ss, ll X){
    if(bcc_sz[nd] != -1){
        ll s = X;
        for(int x: tree[nd]) if(x != ss) s+=ll(sz[x])*ll(sz[x]-1);
        ans-=s*bcc_sz[nd];
        for(int x: tree[nd]) if(x != ss) dfs2(x, nd, s-ll(sz[x])*ll(sz[x]-1));
        return s-X;
    }
    else{
        ans-=X;
        for(int x: tree[nd]) if(x != ss) ans-=dfs2(x, nd, ll(comp_size-sz[x])*ll(comp_size-sz[x]-1));
        return 0;
    }
}


int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    cin >> n >> m;

    graph.resize(n);
    tree0.resize(n);
    ap.resize(n, 0);
    intime.resize(n, -1);
    low.resize(n);
    bcc.resize(n);

    for(int i = 0; i < m; i++){
        int a, b; cin >> a >> b; a--, b--;
        graph[a].pb(b);
        graph[b].pb(a);
    }

    for(int i = 0; i < n; i++) if(intime[i] == -1){
        dfs_ap(i, -1);

        tree.pb({});
        bcc_sz.pb(0);
        dfs_bcc(i, int(tree.size())-1);
    }

    N = tree.size();
    sz.resize(N, -1);

    for(int i = 0; i < bcc_sz.size(); i++){
        if(sz[i] == -1){
            dfs(i, -1);
            comp_size = sz[i];
            ans+=ll(comp_size)*ll(comp_size-1)*ll(comp_size-2);
            dfs2(i, -1, 0);
        }
    }

    cout << ans << "\n";
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:118:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  118 |     for(int i = 0; i < bcc_sz.size(); i++){
      |                    ~~^~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 320 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 320 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 316 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 316 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 320 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 0 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 0 ms 320 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 320 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 320 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 316 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 316 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 320 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 0 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 0 ms 320 KB Output is correct
36 Correct 1 ms 212 KB Output is correct
37 Correct 1 ms 320 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 0 ms 212 KB Output is correct
41 Correct 1 ms 212 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 0 ms 320 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 1 ms 212 KB Output is correct
46 Correct 1 ms 212 KB Output is correct
47 Correct 1 ms 212 KB Output is correct
48 Correct 0 ms 320 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 212 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
52 Correct 0 ms 324 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 1 ms 316 KB Output is correct
56 Correct 1 ms 320 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 316 KB Output is correct
59 Correct 1 ms 324 KB Output is correct
60 Correct 1 ms 212 KB Output is correct
61 Correct 1 ms 212 KB Output is correct
62 Correct 1 ms 212 KB Output is correct
63 Correct 0 ms 212 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 71 ms 26216 KB Output is correct
2 Correct 71 ms 26124 KB Output is correct
3 Correct 88 ms 26236 KB Output is correct
4 Correct 81 ms 26284 KB Output is correct
5 Correct 79 ms 23176 KB Output is correct
6 Correct 94 ms 24752 KB Output is correct
7 Correct 86 ms 23704 KB Output is correct
8 Correct 86 ms 24684 KB Output is correct
9 Correct 101 ms 22484 KB Output is correct
10 Correct 84 ms 22280 KB Output is correct
11 Correct 59 ms 17152 KB Output is correct
12 Correct 61 ms 17144 KB Output is correct
13 Correct 55 ms 16616 KB Output is correct
14 Correct 59 ms 16640 KB Output is correct
15 Correct 44 ms 15096 KB Output is correct
16 Correct 40 ms 15104 KB Output is correct
17 Correct 8 ms 9836 KB Output is correct
18 Correct 8 ms 9836 KB Output is correct
19 Correct 8 ms 9816 KB Output is correct
20 Correct 8 ms 9704 KB Output is correct
21 Correct 8 ms 9704 KB Output is correct
22 Correct 8 ms 9704 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 468 KB Output is correct
2 Correct 1 ms 468 KB Output is correct
3 Correct 1 ms 460 KB Output is correct
4 Correct 1 ms 596 KB Output is correct
5 Correct 1 ms 596 KB Output is correct
6 Correct 1 ms 596 KB Output is correct
7 Correct 2 ms 596 KB Output is correct
8 Correct 1 ms 596 KB Output is correct
9 Correct 1 ms 468 KB Output is correct
10 Correct 1 ms 468 KB Output is correct
11 Correct 1 ms 468 KB Output is correct
12 Correct 1 ms 452 KB Output is correct
13 Correct 1 ms 452 KB Output is correct
14 Correct 1 ms 468 KB Output is correct
15 Correct 1 ms 452 KB Output is correct
16 Correct 1 ms 468 KB Output is correct
17 Correct 1 ms 468 KB Output is correct
18 Correct 1 ms 468 KB Output is correct
19 Correct 1 ms 468 KB Output is correct
20 Correct 1 ms 468 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 82 ms 23184 KB Output is correct
2 Correct 84 ms 23164 KB Output is correct
3 Correct 87 ms 23164 KB Output is correct
4 Correct 81 ms 23200 KB Output is correct
5 Correct 80 ms 23164 KB Output is correct
6 Correct 101 ms 33068 KB Output is correct
7 Correct 98 ms 28356 KB Output is correct
8 Correct 101 ms 26804 KB Output is correct
9 Correct 88 ms 25676 KB Output is correct
10 Correct 82 ms 23116 KB Output is correct
11 Correct 79 ms 22996 KB Output is correct
12 Correct 83 ms 23152 KB Output is correct
13 Correct 81 ms 23028 KB Output is correct
14 Correct 74 ms 22776 KB Output is correct
15 Correct 67 ms 22396 KB Output is correct
16 Correct 41 ms 15540 KB Output is correct
17 Correct 45 ms 17948 KB Output is correct
18 Correct 47 ms 18036 KB Output is correct
19 Correct 44 ms 18160 KB Output is correct
20 Correct 45 ms 18052 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 452 KB Output is correct
2 Correct 1 ms 468 KB Output is correct
3 Correct 1 ms 468 KB Output is correct
4 Correct 1 ms 468 KB Output is correct
5 Correct 1 ms 468 KB Output is correct
6 Correct 1 ms 468 KB Output is correct
7 Correct 1 ms 452 KB Output is correct
8 Correct 1 ms 468 KB Output is correct
9 Correct 1 ms 468 KB Output is correct
10 Correct 1 ms 468 KB Output is correct
11 Correct 1 ms 456 KB Output is correct
12 Correct 1 ms 596 KB Output is correct
13 Correct 1 ms 468 KB Output is correct
14 Correct 1 ms 468 KB Output is correct
15 Correct 1 ms 468 KB Output is correct
16 Correct 1 ms 456 KB Output is correct
17 Correct 1 ms 468 KB Output is correct
18 Correct 1 ms 468 KB Output is correct
19 Correct 1 ms 460 KB Output is correct
20 Correct 1 ms 456 KB Output is correct
21 Correct 1 ms 452 KB Output is correct
22 Correct 1 ms 468 KB Output is correct
23 Correct 1 ms 468 KB Output is correct
24 Correct 1 ms 468 KB Output is correct
25 Correct 1 ms 340 KB Output is correct
26 Correct 1 ms 340 KB Output is correct
27 Correct 0 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 82 ms 23216 KB Output is correct
2 Correct 81 ms 23420 KB Output is correct
3 Correct 92 ms 23804 KB Output is correct
4 Correct 80 ms 19760 KB Output is correct
5 Correct 78 ms 17332 KB Output is correct
6 Correct 79 ms 16276 KB Output is correct
7 Correct 67 ms 16184 KB Output is correct
8 Correct 61 ms 15108 KB Output is correct
9 Correct 61 ms 14984 KB Output is correct
10 Correct 63 ms 14604 KB Output is correct
11 Correct 58 ms 14172 KB Output is correct
12 Correct 59 ms 14156 KB Output is correct
13 Correct 55 ms 14260 KB Output is correct
14 Correct 59 ms 16988 KB Output is correct
15 Correct 94 ms 28520 KB Output is correct
16 Correct 94 ms 27144 KB Output is correct
17 Correct 99 ms 26240 KB Output is correct
18 Correct 91 ms 24224 KB Output is correct
19 Correct 79 ms 19732 KB Output is correct
20 Correct 79 ms 19704 KB Output is correct
21 Correct 82 ms 19700 KB Output is correct
22 Correct 85 ms 18456 KB Output is correct
23 Correct 61 ms 16448 KB Output is correct
24 Correct 72 ms 20264 KB Output is correct
25 Correct 71 ms 20288 KB Output is correct
26 Correct 72 ms 19464 KB Output is correct
27 Correct 74 ms 19396 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 320 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 320 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 316 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 316 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 320 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 0 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 0 ms 320 KB Output is correct
36 Correct 1 ms 212 KB Output is correct
37 Correct 1 ms 320 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 0 ms 212 KB Output is correct
41 Correct 1 ms 212 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 0 ms 320 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 1 ms 212 KB Output is correct
46 Correct 1 ms 212 KB Output is correct
47 Correct 1 ms 212 KB Output is correct
48 Correct 0 ms 320 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 212 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
52 Correct 0 ms 324 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 1 ms 316 KB Output is correct
56 Correct 1 ms 320 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 316 KB Output is correct
59 Correct 1 ms 324 KB Output is correct
60 Correct 1 ms 212 KB Output is correct
61 Correct 1 ms 212 KB Output is correct
62 Correct 1 ms 212 KB Output is correct
63 Correct 0 ms 212 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 1 ms 340 KB Output is correct
67 Correct 1 ms 468 KB Output is correct
68 Correct 1 ms 452 KB Output is correct
69 Correct 1 ms 456 KB Output is correct
70 Correct 1 ms 456 KB Output is correct
71 Correct 1 ms 448 KB Output is correct
72 Correct 1 ms 468 KB Output is correct
73 Correct 1 ms 468 KB Output is correct
74 Correct 1 ms 468 KB Output is correct
75 Correct 1 ms 468 KB Output is correct
76 Correct 1 ms 324 KB Output is correct
77 Correct 1 ms 468 KB Output is correct
78 Correct 1 ms 468 KB Output is correct
79 Correct 1 ms 468 KB Output is correct
80 Correct 1 ms 468 KB Output is correct
81 Correct 1 ms 468 KB Output is correct
82 Correct 1 ms 468 KB Output is correct
83 Correct 1 ms 468 KB Output is correct
84 Correct 1 ms 468 KB Output is correct
85 Correct 1 ms 468 KB Output is correct
86 Correct 1 ms 468 KB Output is correct
87 Correct 1 ms 468 KB Output is correct
88 Correct 1 ms 468 KB Output is correct
89 Correct 1 ms 468 KB Output is correct
90 Correct 1 ms 468 KB Output is correct
91 Correct 1 ms 468 KB Output is correct
92 Correct 1 ms 468 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 1 ms 320 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 320 KB Output is correct
8 Correct 1 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 1 ms 316 KB Output is correct
11 Correct 1 ms 340 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 0 ms 320 KB Output is correct
15 Correct 0 ms 212 KB Output is correct
16 Correct 0 ms 316 KB Output is correct
17 Correct 0 ms 212 KB Output is correct
18 Correct 0 ms 212 KB Output is correct
19 Correct 0 ms 316 KB Output is correct
20 Correct 0 ms 212 KB Output is correct
21 Correct 0 ms 212 KB Output is correct
22 Correct 1 ms 340 KB Output is correct
23 Correct 1 ms 320 KB Output is correct
24 Correct 1 ms 212 KB Output is correct
25 Correct 0 ms 212 KB Output is correct
26 Correct 0 ms 212 KB Output is correct
27 Correct 1 ms 212 KB Output is correct
28 Correct 1 ms 212 KB Output is correct
29 Correct 1 ms 212 KB Output is correct
30 Correct 0 ms 212 KB Output is correct
31 Correct 1 ms 212 KB Output is correct
32 Correct 1 ms 212 KB Output is correct
33 Correct 0 ms 212 KB Output is correct
34 Correct 1 ms 212 KB Output is correct
35 Correct 0 ms 320 KB Output is correct
36 Correct 1 ms 212 KB Output is correct
37 Correct 1 ms 320 KB Output is correct
38 Correct 0 ms 212 KB Output is correct
39 Correct 1 ms 212 KB Output is correct
40 Correct 0 ms 212 KB Output is correct
41 Correct 1 ms 212 KB Output is correct
42 Correct 1 ms 212 KB Output is correct
43 Correct 0 ms 320 KB Output is correct
44 Correct 0 ms 212 KB Output is correct
45 Correct 1 ms 212 KB Output is correct
46 Correct 1 ms 212 KB Output is correct
47 Correct 1 ms 212 KB Output is correct
48 Correct 0 ms 320 KB Output is correct
49 Correct 0 ms 212 KB Output is correct
50 Correct 0 ms 212 KB Output is correct
51 Correct 0 ms 212 KB Output is correct
52 Correct 0 ms 324 KB Output is correct
53 Correct 1 ms 212 KB Output is correct
54 Correct 0 ms 212 KB Output is correct
55 Correct 1 ms 316 KB Output is correct
56 Correct 1 ms 320 KB Output is correct
57 Correct 1 ms 212 KB Output is correct
58 Correct 1 ms 316 KB Output is correct
59 Correct 1 ms 324 KB Output is correct
60 Correct 1 ms 212 KB Output is correct
61 Correct 1 ms 212 KB Output is correct
62 Correct 1 ms 212 KB Output is correct
63 Correct 0 ms 212 KB Output is correct
64 Correct 0 ms 212 KB Output is correct
65 Correct 0 ms 212 KB Output is correct
66 Correct 71 ms 26216 KB Output is correct
67 Correct 71 ms 26124 KB Output is correct
68 Correct 88 ms 26236 KB Output is correct
69 Correct 81 ms 26284 KB Output is correct
70 Correct 79 ms 23176 KB Output is correct
71 Correct 94 ms 24752 KB Output is correct
72 Correct 86 ms 23704 KB Output is correct
73 Correct 86 ms 24684 KB Output is correct
74 Correct 101 ms 22484 KB Output is correct
75 Correct 84 ms 22280 KB Output is correct
76 Correct 59 ms 17152 KB Output is correct
77 Correct 61 ms 17144 KB Output is correct
78 Correct 55 ms 16616 KB Output is correct
79 Correct 59 ms 16640 KB Output is correct
80 Correct 44 ms 15096 KB Output is correct
81 Correct 40 ms 15104 KB Output is correct
82 Correct 8 ms 9836 KB Output is correct
83 Correct 8 ms 9836 KB Output is correct
84 Correct 8 ms 9816 KB Output is correct
85 Correct 8 ms 9704 KB Output is correct
86 Correct 8 ms 9704 KB Output is correct
87 Correct 8 ms 9704 KB Output is correct
88 Correct 1 ms 468 KB Output is correct
89 Correct 1 ms 468 KB Output is correct
90 Correct 1 ms 460 KB Output is correct
91 Correct 1 ms 596 KB Output is correct
92 Correct 1 ms 596 KB Output is correct
93 Correct 1 ms 596 KB Output is correct
94 Correct 2 ms 596 KB Output is correct
95 Correct 1 ms 596 KB Output is correct
96 Correct 1 ms 468 KB Output is correct
97 Correct 1 ms 468 KB Output is correct
98 Correct 1 ms 468 KB Output is correct
99 Correct 1 ms 452 KB Output is correct
100 Correct 1 ms 452 KB Output is correct
101 Correct 1 ms 468 KB Output is correct
102 Correct 1 ms 452 KB Output is correct
103 Correct 1 ms 468 KB Output is correct
104 Correct 1 ms 468 KB Output is correct
105 Correct 1 ms 468 KB Output is correct
106 Correct 1 ms 468 KB Output is correct
107 Correct 1 ms 468 KB Output is correct
108 Correct 82 ms 23184 KB Output is correct
109 Correct 84 ms 23164 KB Output is correct
110 Correct 87 ms 23164 KB Output is correct
111 Correct 81 ms 23200 KB Output is correct
112 Correct 80 ms 23164 KB Output is correct
113 Correct 101 ms 33068 KB Output is correct
114 Correct 98 ms 28356 KB Output is correct
115 Correct 101 ms 26804 KB Output is correct
116 Correct 88 ms 25676 KB Output is correct
117 Correct 82 ms 23116 KB Output is correct
118 Correct 79 ms 22996 KB Output is correct
119 Correct 83 ms 23152 KB Output is correct
120 Correct 81 ms 23028 KB Output is correct
121 Correct 74 ms 22776 KB Output is correct
122 Correct 67 ms 22396 KB Output is correct
123 Correct 41 ms 15540 KB Output is correct
124 Correct 45 ms 17948 KB Output is correct
125 Correct 47 ms 18036 KB Output is correct
126 Correct 44 ms 18160 KB Output is correct
127 Correct 45 ms 18052 KB Output is correct
128 Correct 1 ms 452 KB Output is correct
129 Correct 1 ms 468 KB Output is correct
130 Correct 1 ms 468 KB Output is correct
131 Correct 1 ms 468 KB Output is correct
132 Correct 1 ms 468 KB Output is correct
133 Correct 1 ms 468 KB Output is correct
134 Correct 1 ms 452 KB Output is correct
135 Correct 1 ms 468 KB Output is correct
136 Correct 1 ms 468 KB Output is correct
137 Correct 1 ms 468 KB Output is correct
138 Correct 1 ms 456 KB Output is correct
139 Correct 1 ms 596 KB Output is correct
140 Correct 1 ms 468 KB Output is correct
141 Correct 1 ms 468 KB Output is correct
142 Correct 1 ms 468 KB Output is correct
143 Correct 1 ms 456 KB Output is correct
144 Correct 1 ms 468 KB Output is correct
145 Correct 1 ms 468 KB Output is correct
146 Correct 1 ms 460 KB Output is correct
147 Correct 1 ms 456 KB Output is correct
148 Correct 1 ms 452 KB Output is correct
149 Correct 1 ms 468 KB Output is correct
150 Correct 1 ms 468 KB Output is correct
151 Correct 1 ms 468 KB Output is correct
152 Correct 1 ms 340 KB Output is correct
153 Correct 1 ms 340 KB Output is correct
154 Correct 0 ms 340 KB Output is correct
155 Correct 82 ms 23216 KB Output is correct
156 Correct 81 ms 23420 KB Output is correct
157 Correct 92 ms 23804 KB Output is correct
158 Correct 80 ms 19760 KB Output is correct
159 Correct 78 ms 17332 KB Output is correct
160 Correct 79 ms 16276 KB Output is correct
161 Correct 67 ms 16184 KB Output is correct
162 Correct 61 ms 15108 KB Output is correct
163 Correct 61 ms 14984 KB Output is correct
164 Correct 63 ms 14604 KB Output is correct
165 Correct 58 ms 14172 KB Output is correct
166 Correct 59 ms 14156 KB Output is correct
167 Correct 55 ms 14260 KB Output is correct
168 Correct 59 ms 16988 KB Output is correct
169 Correct 94 ms 28520 KB Output is correct
170 Correct 94 ms 27144 KB Output is correct
171 Correct 99 ms 26240 KB Output is correct
172 Correct 91 ms 24224 KB Output is correct
173 Correct 79 ms 19732 KB Output is correct
174 Correct 79 ms 19704 KB Output is correct
175 Correct 82 ms 19700 KB Output is correct
176 Correct 85 ms 18456 KB Output is correct
177 Correct 61 ms 16448 KB Output is correct
178 Correct 72 ms 20264 KB Output is correct
179 Correct 71 ms 20288 KB Output is correct
180 Correct 72 ms 19464 KB Output is correct
181 Correct 74 ms 19396 KB Output is correct
182 Correct 1 ms 340 KB Output is correct
183 Correct 1 ms 468 KB Output is correct
184 Correct 1 ms 452 KB Output is correct
185 Correct 1 ms 456 KB Output is correct
186 Correct 1 ms 456 KB Output is correct
187 Correct 1 ms 448 KB Output is correct
188 Correct 1 ms 468 KB Output is correct
189 Correct 1 ms 468 KB Output is correct
190 Correct 1 ms 468 KB Output is correct
191 Correct 1 ms 468 KB Output is correct
192 Correct 1 ms 324 KB Output is correct
193 Correct 1 ms 468 KB Output is correct
194 Correct 1 ms 468 KB Output is correct
195 Correct 1 ms 468 KB Output is correct
196 Correct 1 ms 468 KB Output is correct
197 Correct 1 ms 468 KB Output is correct
198 Correct 1 ms 468 KB Output is correct
199 Correct 1 ms 468 KB Output is correct
200 Correct 1 ms 468 KB Output is correct
201 Correct 1 ms 468 KB Output is correct
202 Correct 1 ms 468 KB Output is correct
203 Correct 1 ms 468 KB Output is correct
204 Correct 1 ms 468 KB Output is correct
205 Correct 1 ms 468 KB Output is correct
206 Correct 1 ms 468 KB Output is correct
207 Correct 1 ms 468 KB Output is correct
208 Correct 1 ms 468 KB Output is correct
209 Correct 9 ms 9708 KB Output is correct
210 Correct 43 ms 15776 KB Output is correct
211 Correct 67 ms 20604 KB Output is correct
212 Correct 92 ms 22116 KB Output is correct
213 Correct 106 ms 23604 KB Output is correct
214 Correct 44 ms 17664 KB Output is correct
215 Correct 45 ms 15448 KB Output is correct
216 Correct 85 ms 19068 KB Output is correct
217 Correct 78 ms 17240 KB Output is correct
218 Correct 63 ms 14976 KB Output is correct
219 Correct 59 ms 14336 KB Output is correct
220 Correct 57 ms 14156 KB Output is correct
221 Correct 57 ms 14028 KB Output is correct
222 Correct 64 ms 15564 KB Output is correct
223 Correct 93 ms 22360 KB Output is correct
224 Correct 82 ms 21072 KB Output is correct
225 Correct 75 ms 16776 KB Output is correct
226 Correct 79 ms 16752 KB Output is correct
227 Correct 74 ms 16768 KB Output is correct
228 Correct 70 ms 15956 KB Output is correct
229 Correct 59 ms 15204 KB Output is correct
230 Correct 62 ms 16268 KB Output is correct
231 Correct 68 ms 16264 KB Output is correct