답안 #132997

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
132997 2019-07-20T03:48:19 Z ae04071 철인 이종 경기 (APIO18_duathlon) C++11
100 / 100
175 ms 28868 KB
#include <bits/stdc++.h>
using namespace std;

int n,m,cut[100001],dfn[100001],low[100001],o,dn;
int bsz[200001];
vector<int> adj[100001],badj[200001];
stack<int> stk;

int ts;
void addEdge(int u,int v) {
    badj[u].push_back(v);
    badj[v].push_back(u);
}
void dfs(int cur,int p) {
    ts++;
    dfn[cur] = low[cur] = ++dn;
    stk.push(cur);
    for(auto &it:adj[cur]) if(it!=p) {
        if(dfn[it]) low[cur] = min(low[cur],dfn[it]);
        else {
            dfs(it,cur);
            low[cur] = min(low[cur],low[it]);
            if(low[it]>=dfn[cur]) {
                ++n;
                addEdge(n,cur);
                cut[cur] = 1;
                while(!stk.empty()) {
                    int v=stk.top();
                    bsz[n]++;
                    if(cut[v]) addEdge(n, v);
                    stk.pop();
                    if(v==it) break;
                }
                bsz[n]++;
            }
        }
    }
}

long long ans;
int sz[200001];
int cal_dfs(int cur,int p) {
    sz[cur] = bsz[cur];
    for(auto &it:badj[cur]) if(it!=p) sz[cur] += cal_dfs(it,cur);
    sz[cur] -= ((int)badj[cur].size() - (p>0) - (cur<=o));

    if(cur>o) {
        for(auto &it:badj[cur]) if(it!=p) ans += 1ll*(bsz[cur]-1)*sz[it]*(sz[it]-1);
        ans += 1ll*(bsz[cur]-1)*(ts-sz[cur]+1)*(ts-sz[cur]);
    }
    return sz[cur];
}

int main() {
    scanf("%d%d",&n,&m);
    for(int i=0,u,v;i<m;i++) {
        scanf("%d%d",&u,&v);
        adj[u].push_back(v);
        adj[v].push_back(u);
    }
    o = n;

    long long ret = 0;
    for(int i=1;i<=o;i++) if(!dfn[i]) {
        ts=0; ans=0;
        dfs(i,0);
        while(!stk.empty()) stk.pop();

        cal_dfs(i, 0);
        ret += 1ll*ts*(ts-1)*(ts-2) - ans;
    }
    printf("%lld\n",ret);
    
    return 0;
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:55: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:57:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d",&u,&v);
         ~~~~~^~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7416 KB Output is correct
2 Correct 8 ms 7416 KB Output is correct
3 Correct 8 ms 7416 KB Output is correct
4 Correct 8 ms 7416 KB Output is correct
5 Correct 8 ms 7416 KB Output is correct
6 Correct 8 ms 7416 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7544 KB Output is correct
9 Correct 8 ms 7388 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7388 KB Output is correct
12 Correct 9 ms 7416 KB Output is correct
13 Correct 8 ms 7416 KB Output is correct
14 Correct 8 ms 7416 KB Output is correct
15 Correct 8 ms 7416 KB Output is correct
16 Correct 8 ms 7416 KB Output is correct
17 Correct 9 ms 7412 KB Output is correct
18 Correct 8 ms 7388 KB Output is correct
19 Correct 11 ms 7388 KB Output is correct
20 Correct 8 ms 7416 KB Output is correct
21 Correct 8 ms 7416 KB Output is correct
22 Correct 8 ms 7416 KB Output is correct
23 Correct 8 ms 7416 KB Output is correct
24 Correct 8 ms 7416 KB Output is correct
25 Correct 8 ms 7416 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
28 Correct 9 ms 7416 KB Output is correct
29 Correct 9 ms 7416 KB Output is correct
30 Correct 8 ms 7416 KB Output is correct
31 Correct 9 ms 7416 KB Output is correct
32 Correct 8 ms 7416 KB Output is correct
33 Correct 8 ms 7416 KB Output is correct
34 Correct 8 ms 7416 KB Output is correct
35 Correct 8 ms 7416 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7416 KB Output is correct
2 Correct 8 ms 7416 KB Output is correct
3 Correct 8 ms 7416 KB Output is correct
4 Correct 8 ms 7416 KB Output is correct
5 Correct 8 ms 7416 KB Output is correct
6 Correct 8 ms 7416 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7544 KB Output is correct
9 Correct 8 ms 7388 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7388 KB Output is correct
12 Correct 9 ms 7416 KB Output is correct
13 Correct 8 ms 7416 KB Output is correct
14 Correct 8 ms 7416 KB Output is correct
15 Correct 8 ms 7416 KB Output is correct
16 Correct 8 ms 7416 KB Output is correct
17 Correct 9 ms 7412 KB Output is correct
18 Correct 8 ms 7388 KB Output is correct
19 Correct 11 ms 7388 KB Output is correct
20 Correct 8 ms 7416 KB Output is correct
21 Correct 8 ms 7416 KB Output is correct
22 Correct 8 ms 7416 KB Output is correct
23 Correct 8 ms 7416 KB Output is correct
24 Correct 8 ms 7416 KB Output is correct
25 Correct 8 ms 7416 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
28 Correct 9 ms 7416 KB Output is correct
29 Correct 9 ms 7416 KB Output is correct
30 Correct 8 ms 7416 KB Output is correct
31 Correct 9 ms 7416 KB Output is correct
32 Correct 8 ms 7416 KB Output is correct
33 Correct 8 ms 7416 KB Output is correct
34 Correct 8 ms 7416 KB Output is correct
35 Correct 8 ms 7416 KB Output is correct
36 Correct 8 ms 7416 KB Output is correct
37 Correct 8 ms 7416 KB Output is correct
38 Correct 8 ms 7416 KB Output is correct
39 Correct 8 ms 7416 KB Output is correct
40 Correct 10 ms 7416 KB Output is correct
41 Correct 8 ms 7416 KB Output is correct
42 Correct 9 ms 7416 KB Output is correct
43 Correct 8 ms 7416 KB Output is correct
44 Correct 8 ms 7416 KB Output is correct
45 Correct 8 ms 7416 KB Output is correct
46 Correct 8 ms 7416 KB Output is correct
47 Correct 10 ms 7416 KB Output is correct
48 Correct 8 ms 7416 KB Output is correct
49 Correct 8 ms 7416 KB Output is correct
50 Correct 9 ms 7416 KB Output is correct
51 Correct 8 ms 7416 KB Output is correct
52 Correct 10 ms 7416 KB Output is correct
53 Correct 11 ms 7380 KB Output is correct
54 Correct 10 ms 7416 KB Output is correct
55 Correct 10 ms 7420 KB Output is correct
56 Correct 8 ms 7416 KB Output is correct
57 Correct 10 ms 7416 KB Output is correct
58 Correct 10 ms 7416 KB Output is correct
59 Correct 9 ms 7416 KB Output is correct
60 Correct 8 ms 7416 KB Output is correct
61 Correct 8 ms 7416 KB Output is correct
62 Correct 8 ms 7416 KB Output is correct
63 Correct 8 ms 7416 KB Output is correct
64 Correct 8 ms 7416 KB Output is correct
65 Correct 8 ms 7312 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 141 ms 22800 KB Output is correct
2 Correct 97 ms 22632 KB Output is correct
3 Correct 129 ms 22152 KB Output is correct
4 Correct 119 ms 23544 KB Output is correct
5 Correct 97 ms 19796 KB Output is correct
6 Correct 129 ms 22520 KB Output is correct
7 Correct 125 ms 20808 KB Output is correct
8 Correct 151 ms 21212 KB Output is correct
9 Correct 119 ms 19192 KB Output is correct
10 Correct 119 ms 19064 KB Output is correct
11 Correct 84 ms 16376 KB Output is correct
12 Correct 89 ms 16248 KB Output is correct
13 Correct 119 ms 16120 KB Output is correct
14 Correct 102 ms 15864 KB Output is correct
15 Correct 68 ms 14968 KB Output is correct
16 Correct 63 ms 14716 KB Output is correct
17 Correct 12 ms 8952 KB Output is correct
18 Correct 11 ms 8928 KB Output is correct
19 Correct 12 ms 8824 KB Output is correct
20 Correct 12 ms 8824 KB Output is correct
21 Correct 12 ms 8824 KB Output is correct
22 Correct 12 ms 8824 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7416 KB Output is correct
2 Correct 9 ms 7516 KB Output is correct
3 Correct 9 ms 7548 KB Output is correct
4 Correct 9 ms 7664 KB Output is correct
5 Correct 9 ms 7544 KB Output is correct
6 Correct 9 ms 7568 KB Output is correct
7 Correct 9 ms 7544 KB Output is correct
8 Correct 9 ms 7544 KB Output is correct
9 Correct 11 ms 7544 KB Output is correct
10 Correct 11 ms 7544 KB Output is correct
11 Correct 10 ms 7544 KB Output is correct
12 Correct 11 ms 7544 KB Output is correct
13 Correct 11 ms 7544 KB Output is correct
14 Correct 9 ms 7544 KB Output is correct
15 Correct 9 ms 7544 KB Output is correct
16 Correct 8 ms 7544 KB Output is correct
17 Correct 9 ms 7544 KB Output is correct
18 Correct 8 ms 7544 KB Output is correct
19 Correct 8 ms 7544 KB Output is correct
20 Correct 9 ms 7548 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 129 ms 17716 KB Output is correct
2 Correct 125 ms 19064 KB Output is correct
3 Correct 135 ms 19004 KB Output is correct
4 Correct 128 ms 18960 KB Output is correct
5 Correct 132 ms 18988 KB Output is correct
6 Correct 175 ms 28868 KB Output is correct
7 Correct 157 ms 25336 KB Output is correct
8 Correct 161 ms 23804 KB Output is correct
9 Correct 149 ms 22124 KB Output is correct
10 Correct 136 ms 19044 KB Output is correct
11 Correct 131 ms 18932 KB Output is correct
12 Correct 133 ms 19016 KB Output is correct
13 Correct 126 ms 19064 KB Output is correct
14 Correct 120 ms 18424 KB Output is correct
15 Correct 99 ms 17784 KB Output is correct
16 Correct 70 ms 15224 KB Output is correct
17 Correct 77 ms 17264 KB Output is correct
18 Correct 80 ms 17260 KB Output is correct
19 Correct 83 ms 17388 KB Output is correct
20 Correct 81 ms 17272 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7548 KB Output is correct
2 Correct 9 ms 7544 KB Output is correct
3 Correct 9 ms 7540 KB Output is correct
4 Correct 9 ms 7544 KB Output is correct
5 Correct 10 ms 7588 KB Output is correct
6 Correct 9 ms 7544 KB Output is correct
7 Correct 9 ms 7416 KB Output is correct
8 Correct 9 ms 7416 KB Output is correct
9 Correct 9 ms 7416 KB Output is correct
10 Correct 9 ms 7544 KB Output is correct
11 Correct 9 ms 7544 KB Output is correct
12 Correct 9 ms 7544 KB Output is correct
13 Correct 10 ms 7544 KB Output is correct
14 Correct 9 ms 7544 KB Output is correct
15 Correct 9 ms 7544 KB Output is correct
16 Correct 11 ms 7544 KB Output is correct
17 Correct 9 ms 7544 KB Output is correct
18 Correct 9 ms 7544 KB Output is correct
19 Correct 9 ms 7544 KB Output is correct
20 Correct 9 ms 7416 KB Output is correct
21 Correct 9 ms 7544 KB Output is correct
22 Correct 9 ms 7416 KB Output is correct
23 Correct 9 ms 7544 KB Output is correct
24 Correct 9 ms 7528 KB Output is correct
25 Correct 8 ms 7388 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 9 ms 7416 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 134 ms 17844 KB Output is correct
2 Correct 139 ms 19408 KB Output is correct
3 Correct 138 ms 18556 KB Output is correct
4 Correct 148 ms 17352 KB Output is correct
5 Correct 116 ms 15736 KB Output is correct
6 Correct 120 ms 15148 KB Output is correct
7 Correct 112 ms 14840 KB Output is correct
8 Correct 93 ms 14272 KB Output is correct
9 Correct 97 ms 13976 KB Output is correct
10 Correct 92 ms 13956 KB Output is correct
11 Correct 89 ms 13844 KB Output is correct
12 Correct 87 ms 13688 KB Output is correct
13 Correct 80 ms 13688 KB Output is correct
14 Correct 85 ms 15916 KB Output is correct
15 Correct 158 ms 24920 KB Output is correct
16 Correct 154 ms 22736 KB Output is correct
17 Correct 153 ms 23164 KB Output is correct
18 Correct 158 ms 21516 KB Output is correct
19 Correct 136 ms 17272 KB Output is correct
20 Correct 130 ms 17280 KB Output is correct
21 Correct 137 ms 17272 KB Output is correct
22 Correct 119 ms 16640 KB Output is correct
23 Correct 106 ms 15988 KB Output is correct
24 Correct 122 ms 18212 KB Output is correct
25 Correct 126 ms 18296 KB Output is correct
26 Correct 123 ms 17624 KB Output is correct
27 Correct 135 ms 17620 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7416 KB Output is correct
2 Correct 8 ms 7416 KB Output is correct
3 Correct 8 ms 7416 KB Output is correct
4 Correct 8 ms 7416 KB Output is correct
5 Correct 8 ms 7416 KB Output is correct
6 Correct 8 ms 7416 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7544 KB Output is correct
9 Correct 8 ms 7388 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7388 KB Output is correct
12 Correct 9 ms 7416 KB Output is correct
13 Correct 8 ms 7416 KB Output is correct
14 Correct 8 ms 7416 KB Output is correct
15 Correct 8 ms 7416 KB Output is correct
16 Correct 8 ms 7416 KB Output is correct
17 Correct 9 ms 7412 KB Output is correct
18 Correct 8 ms 7388 KB Output is correct
19 Correct 11 ms 7388 KB Output is correct
20 Correct 8 ms 7416 KB Output is correct
21 Correct 8 ms 7416 KB Output is correct
22 Correct 8 ms 7416 KB Output is correct
23 Correct 8 ms 7416 KB Output is correct
24 Correct 8 ms 7416 KB Output is correct
25 Correct 8 ms 7416 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
28 Correct 9 ms 7416 KB Output is correct
29 Correct 9 ms 7416 KB Output is correct
30 Correct 8 ms 7416 KB Output is correct
31 Correct 9 ms 7416 KB Output is correct
32 Correct 8 ms 7416 KB Output is correct
33 Correct 8 ms 7416 KB Output is correct
34 Correct 8 ms 7416 KB Output is correct
35 Correct 8 ms 7416 KB Output is correct
36 Correct 8 ms 7416 KB Output is correct
37 Correct 8 ms 7416 KB Output is correct
38 Correct 8 ms 7416 KB Output is correct
39 Correct 8 ms 7416 KB Output is correct
40 Correct 10 ms 7416 KB Output is correct
41 Correct 8 ms 7416 KB Output is correct
42 Correct 9 ms 7416 KB Output is correct
43 Correct 8 ms 7416 KB Output is correct
44 Correct 8 ms 7416 KB Output is correct
45 Correct 8 ms 7416 KB Output is correct
46 Correct 8 ms 7416 KB Output is correct
47 Correct 10 ms 7416 KB Output is correct
48 Correct 8 ms 7416 KB Output is correct
49 Correct 8 ms 7416 KB Output is correct
50 Correct 9 ms 7416 KB Output is correct
51 Correct 8 ms 7416 KB Output is correct
52 Correct 10 ms 7416 KB Output is correct
53 Correct 11 ms 7380 KB Output is correct
54 Correct 10 ms 7416 KB Output is correct
55 Correct 10 ms 7420 KB Output is correct
56 Correct 8 ms 7416 KB Output is correct
57 Correct 10 ms 7416 KB Output is correct
58 Correct 10 ms 7416 KB Output is correct
59 Correct 9 ms 7416 KB Output is correct
60 Correct 8 ms 7416 KB Output is correct
61 Correct 8 ms 7416 KB Output is correct
62 Correct 8 ms 7416 KB Output is correct
63 Correct 8 ms 7416 KB Output is correct
64 Correct 8 ms 7416 KB Output is correct
65 Correct 8 ms 7312 KB Output is correct
66 Correct 9 ms 7500 KB Output is correct
67 Correct 8 ms 7544 KB Output is correct
68 Correct 9 ms 7420 KB Output is correct
69 Correct 9 ms 7568 KB Output is correct
70 Correct 9 ms 7512 KB Output is correct
71 Correct 9 ms 7516 KB Output is correct
72 Correct 9 ms 7416 KB Output is correct
73 Correct 9 ms 7416 KB Output is correct
74 Correct 9 ms 7416 KB Output is correct
75 Correct 9 ms 7416 KB Output is correct
76 Correct 8 ms 7416 KB Output is correct
77 Correct 9 ms 7416 KB Output is correct
78 Correct 9 ms 7544 KB Output is correct
79 Correct 11 ms 7416 KB Output is correct
80 Correct 9 ms 7392 KB Output is correct
81 Correct 8 ms 7420 KB Output is correct
82 Correct 9 ms 7544 KB Output is correct
83 Correct 9 ms 7516 KB Output is correct
84 Correct 9 ms 7544 KB Output is correct
85 Correct 8 ms 7416 KB Output is correct
86 Correct 8 ms 7516 KB Output is correct
87 Correct 9 ms 7416 KB Output is correct
88 Correct 10 ms 7416 KB Output is correct
89 Correct 9 ms 7420 KB Output is correct
90 Correct 9 ms 7416 KB Output is correct
91 Correct 9 ms 7420 KB Output is correct
92 Correct 10 ms 7496 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7416 KB Output is correct
2 Correct 8 ms 7416 KB Output is correct
3 Correct 8 ms 7416 KB Output is correct
4 Correct 8 ms 7416 KB Output is correct
5 Correct 8 ms 7416 KB Output is correct
6 Correct 8 ms 7416 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7544 KB Output is correct
9 Correct 8 ms 7388 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7388 KB Output is correct
12 Correct 9 ms 7416 KB Output is correct
13 Correct 8 ms 7416 KB Output is correct
14 Correct 8 ms 7416 KB Output is correct
15 Correct 8 ms 7416 KB Output is correct
16 Correct 8 ms 7416 KB Output is correct
17 Correct 9 ms 7412 KB Output is correct
18 Correct 8 ms 7388 KB Output is correct
19 Correct 11 ms 7388 KB Output is correct
20 Correct 8 ms 7416 KB Output is correct
21 Correct 8 ms 7416 KB Output is correct
22 Correct 8 ms 7416 KB Output is correct
23 Correct 8 ms 7416 KB Output is correct
24 Correct 8 ms 7416 KB Output is correct
25 Correct 8 ms 7416 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
28 Correct 9 ms 7416 KB Output is correct
29 Correct 9 ms 7416 KB Output is correct
30 Correct 8 ms 7416 KB Output is correct
31 Correct 9 ms 7416 KB Output is correct
32 Correct 8 ms 7416 KB Output is correct
33 Correct 8 ms 7416 KB Output is correct
34 Correct 8 ms 7416 KB Output is correct
35 Correct 8 ms 7416 KB Output is correct
36 Correct 8 ms 7416 KB Output is correct
37 Correct 8 ms 7416 KB Output is correct
38 Correct 8 ms 7416 KB Output is correct
39 Correct 8 ms 7416 KB Output is correct
40 Correct 10 ms 7416 KB Output is correct
41 Correct 8 ms 7416 KB Output is correct
42 Correct 9 ms 7416 KB Output is correct
43 Correct 8 ms 7416 KB Output is correct
44 Correct 8 ms 7416 KB Output is correct
45 Correct 8 ms 7416 KB Output is correct
46 Correct 8 ms 7416 KB Output is correct
47 Correct 10 ms 7416 KB Output is correct
48 Correct 8 ms 7416 KB Output is correct
49 Correct 8 ms 7416 KB Output is correct
50 Correct 9 ms 7416 KB Output is correct
51 Correct 8 ms 7416 KB Output is correct
52 Correct 10 ms 7416 KB Output is correct
53 Correct 11 ms 7380 KB Output is correct
54 Correct 10 ms 7416 KB Output is correct
55 Correct 10 ms 7420 KB Output is correct
56 Correct 8 ms 7416 KB Output is correct
57 Correct 10 ms 7416 KB Output is correct
58 Correct 10 ms 7416 KB Output is correct
59 Correct 9 ms 7416 KB Output is correct
60 Correct 8 ms 7416 KB Output is correct
61 Correct 8 ms 7416 KB Output is correct
62 Correct 8 ms 7416 KB Output is correct
63 Correct 8 ms 7416 KB Output is correct
64 Correct 8 ms 7416 KB Output is correct
65 Correct 8 ms 7312 KB Output is correct
66 Correct 141 ms 22800 KB Output is correct
67 Correct 97 ms 22632 KB Output is correct
68 Correct 129 ms 22152 KB Output is correct
69 Correct 119 ms 23544 KB Output is correct
70 Correct 97 ms 19796 KB Output is correct
71 Correct 129 ms 22520 KB Output is correct
72 Correct 125 ms 20808 KB Output is correct
73 Correct 151 ms 21212 KB Output is correct
74 Correct 119 ms 19192 KB Output is correct
75 Correct 119 ms 19064 KB Output is correct
76 Correct 84 ms 16376 KB Output is correct
77 Correct 89 ms 16248 KB Output is correct
78 Correct 119 ms 16120 KB Output is correct
79 Correct 102 ms 15864 KB Output is correct
80 Correct 68 ms 14968 KB Output is correct
81 Correct 63 ms 14716 KB Output is correct
82 Correct 12 ms 8952 KB Output is correct
83 Correct 11 ms 8928 KB Output is correct
84 Correct 12 ms 8824 KB Output is correct
85 Correct 12 ms 8824 KB Output is correct
86 Correct 12 ms 8824 KB Output is correct
87 Correct 12 ms 8824 KB Output is correct
88 Correct 9 ms 7416 KB Output is correct
89 Correct 9 ms 7516 KB Output is correct
90 Correct 9 ms 7548 KB Output is correct
91 Correct 9 ms 7664 KB Output is correct
92 Correct 9 ms 7544 KB Output is correct
93 Correct 9 ms 7568 KB Output is correct
94 Correct 9 ms 7544 KB Output is correct
95 Correct 9 ms 7544 KB Output is correct
96 Correct 11 ms 7544 KB Output is correct
97 Correct 11 ms 7544 KB Output is correct
98 Correct 10 ms 7544 KB Output is correct
99 Correct 11 ms 7544 KB Output is correct
100 Correct 11 ms 7544 KB Output is correct
101 Correct 9 ms 7544 KB Output is correct
102 Correct 9 ms 7544 KB Output is correct
103 Correct 8 ms 7544 KB Output is correct
104 Correct 9 ms 7544 KB Output is correct
105 Correct 8 ms 7544 KB Output is correct
106 Correct 8 ms 7544 KB Output is correct
107 Correct 9 ms 7548 KB Output is correct
108 Correct 129 ms 17716 KB Output is correct
109 Correct 125 ms 19064 KB Output is correct
110 Correct 135 ms 19004 KB Output is correct
111 Correct 128 ms 18960 KB Output is correct
112 Correct 132 ms 18988 KB Output is correct
113 Correct 175 ms 28868 KB Output is correct
114 Correct 157 ms 25336 KB Output is correct
115 Correct 161 ms 23804 KB Output is correct
116 Correct 149 ms 22124 KB Output is correct
117 Correct 136 ms 19044 KB Output is correct
118 Correct 131 ms 18932 KB Output is correct
119 Correct 133 ms 19016 KB Output is correct
120 Correct 126 ms 19064 KB Output is correct
121 Correct 120 ms 18424 KB Output is correct
122 Correct 99 ms 17784 KB Output is correct
123 Correct 70 ms 15224 KB Output is correct
124 Correct 77 ms 17264 KB Output is correct
125 Correct 80 ms 17260 KB Output is correct
126 Correct 83 ms 17388 KB Output is correct
127 Correct 81 ms 17272 KB Output is correct
128 Correct 9 ms 7548 KB Output is correct
129 Correct 9 ms 7544 KB Output is correct
130 Correct 9 ms 7540 KB Output is correct
131 Correct 9 ms 7544 KB Output is correct
132 Correct 10 ms 7588 KB Output is correct
133 Correct 9 ms 7544 KB Output is correct
134 Correct 9 ms 7416 KB Output is correct
135 Correct 9 ms 7416 KB Output is correct
136 Correct 9 ms 7416 KB Output is correct
137 Correct 9 ms 7544 KB Output is correct
138 Correct 9 ms 7544 KB Output is correct
139 Correct 9 ms 7544 KB Output is correct
140 Correct 10 ms 7544 KB Output is correct
141 Correct 9 ms 7544 KB Output is correct
142 Correct 9 ms 7544 KB Output is correct
143 Correct 11 ms 7544 KB Output is correct
144 Correct 9 ms 7544 KB Output is correct
145 Correct 9 ms 7544 KB Output is correct
146 Correct 9 ms 7544 KB Output is correct
147 Correct 9 ms 7416 KB Output is correct
148 Correct 9 ms 7544 KB Output is correct
149 Correct 9 ms 7416 KB Output is correct
150 Correct 9 ms 7544 KB Output is correct
151 Correct 9 ms 7528 KB Output is correct
152 Correct 8 ms 7388 KB Output is correct
153 Correct 8 ms 7416 KB Output is correct
154 Correct 9 ms 7416 KB Output is correct
155 Correct 134 ms 17844 KB Output is correct
156 Correct 139 ms 19408 KB Output is correct
157 Correct 138 ms 18556 KB Output is correct
158 Correct 148 ms 17352 KB Output is correct
159 Correct 116 ms 15736 KB Output is correct
160 Correct 120 ms 15148 KB Output is correct
161 Correct 112 ms 14840 KB Output is correct
162 Correct 93 ms 14272 KB Output is correct
163 Correct 97 ms 13976 KB Output is correct
164 Correct 92 ms 13956 KB Output is correct
165 Correct 89 ms 13844 KB Output is correct
166 Correct 87 ms 13688 KB Output is correct
167 Correct 80 ms 13688 KB Output is correct
168 Correct 85 ms 15916 KB Output is correct
169 Correct 158 ms 24920 KB Output is correct
170 Correct 154 ms 22736 KB Output is correct
171 Correct 153 ms 23164 KB Output is correct
172 Correct 158 ms 21516 KB Output is correct
173 Correct 136 ms 17272 KB Output is correct
174 Correct 130 ms 17280 KB Output is correct
175 Correct 137 ms 17272 KB Output is correct
176 Correct 119 ms 16640 KB Output is correct
177 Correct 106 ms 15988 KB Output is correct
178 Correct 122 ms 18212 KB Output is correct
179 Correct 126 ms 18296 KB Output is correct
180 Correct 123 ms 17624 KB Output is correct
181 Correct 135 ms 17620 KB Output is correct
182 Correct 9 ms 7500 KB Output is correct
183 Correct 8 ms 7544 KB Output is correct
184 Correct 9 ms 7420 KB Output is correct
185 Correct 9 ms 7568 KB Output is correct
186 Correct 9 ms 7512 KB Output is correct
187 Correct 9 ms 7516 KB Output is correct
188 Correct 9 ms 7416 KB Output is correct
189 Correct 9 ms 7416 KB Output is correct
190 Correct 9 ms 7416 KB Output is correct
191 Correct 9 ms 7416 KB Output is correct
192 Correct 8 ms 7416 KB Output is correct
193 Correct 9 ms 7416 KB Output is correct
194 Correct 9 ms 7544 KB Output is correct
195 Correct 11 ms 7416 KB Output is correct
196 Correct 9 ms 7392 KB Output is correct
197 Correct 8 ms 7420 KB Output is correct
198 Correct 9 ms 7544 KB Output is correct
199 Correct 9 ms 7516 KB Output is correct
200 Correct 9 ms 7544 KB Output is correct
201 Correct 8 ms 7416 KB Output is correct
202 Correct 8 ms 7516 KB Output is correct
203 Correct 9 ms 7416 KB Output is correct
204 Correct 10 ms 7416 KB Output is correct
205 Correct 9 ms 7420 KB Output is correct
206 Correct 9 ms 7416 KB Output is correct
207 Correct 9 ms 7420 KB Output is correct
208 Correct 10 ms 7496 KB Output is correct
209 Correct 11 ms 8492 KB Output is correct
210 Correct 72 ms 14740 KB Output is correct
211 Correct 113 ms 18348 KB Output is correct
212 Correct 141 ms 20868 KB Output is correct
213 Correct 172 ms 22772 KB Output is correct
214 Correct 65 ms 15992 KB Output is correct
215 Correct 67 ms 15564 KB Output is correct
216 Correct 131 ms 17584 KB Output is correct
217 Correct 123 ms 16148 KB Output is correct
218 Correct 103 ms 14428 KB Output is correct
219 Correct 97 ms 13932 KB Output is correct
220 Correct 95 ms 13708 KB Output is correct
221 Correct 91 ms 13508 KB Output is correct
222 Correct 131 ms 14440 KB Output is correct
223 Correct 153 ms 19404 KB Output is correct
224 Correct 138 ms 18396 KB Output is correct
225 Correct 128 ms 15876 KB Output is correct
226 Correct 135 ms 15816 KB Output is correct
227 Correct 130 ms 15852 KB Output is correct
228 Correct 115 ms 15640 KB Output is correct
229 Correct 97 ms 15224 KB Output is correct
230 Correct 107 ms 15140 KB Output is correct
231 Correct 109 ms 15196 KB Output is correct