답안 #203574

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
203574 2020-02-21T11:35:55 Z Kevin_Zhang_TW 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
159 ms 55928 KB
#include<bits/stdc++.h>
#define pb emplace_back
using namespace std;
using ll = long long;
const int maxn = 300010;
int n, m;
vector<int> edge[maxn];
int low[maxn], st[maxn], stl, dep[maxn];
int cnt_b;
ll gsz;
vector<int> c[maxn];
bool is_ap[maxn];
ll res;
int h;
vector<int> tree_edge[maxn];
int sz[maxn];
void dfs2(int now, int last = 0){
	sz[now] = c[now].size() + (now <= n);
	for (int u : tree_edge[now]) if(u != last) {
		dfs2(u, now);
		sz[now] += sz[u] - 1;
	}
	ll cur = c[now].size();
	if (now > n){
		auto add = [&](ll sz){
			return sz * cur * (gsz - sz-1) + (cur-1) * (cur-2) * sz;
			return (sz) * (gsz-sz-1) * (cur) * 2;
		};
		for (int u : tree_edge[now]) if(u != last) 
			res += add(sz[u]-1);
		if (last)
			res += add(gsz-sz[now]);
		res += cur * (cur-1) * (cur-2);
	}
	else {
		//return;
		for (int u : tree_edge[now]) if(u != last)
			res -= (sz[u]-1) * (gsz-sz[u]);
		if (last)
			res -= (gsz-sz[now]) * (sz[now]-1);
	}
}
void cal(){
	for (int i = h;i < cnt_b;++i){
		for (int u : c[i]) if (is_ap[u]) {
			tree_edge[u].pb(i);
			tree_edge[i].pb(u);
		}
	}
	dfs2(h);
	gsz = 0, h = cnt_b;
}
void dfs(int now, int last = 0){
	static int d;
	++gsz;
	low[now] = dep[now] = ++d;
	st[stl++] = now;
	int cnt_c = 0;
	for (int u : edge[now]) if (u != last) {
		if (!low[u]){
			dfs(u, now);
			++cnt_c;
			low[now] = min(low[now], low[u]);
			if (low[u] >= dep[now]){
				do {
					c[cnt_b].pb( st[--stl] );
				} while (st[stl] != u);
				c[cnt_b++].pb(now);
				is_ap[now] = true;
			}
		}
		else 
			low[now] = min(low[now], dep[u]);
	}
	if (!last && cnt_c < 2)
		is_ap[now] = false;
	--d;
	if (last == 0)
		cal();
}
signed main(){
	ios_base::sync_with_stdio(0), cin.tie(0);
	cin >> n >> m;
	for ( int a, b, i = 0 ; i < m ; ++i) {
		cin >> a >> b;
		edge[a].pb(b);
		edge[b].pb(a);
	}
	h = cnt_b = n+1;
	for (int i = 1;i <= n;++i) if (!low[i])
		dfs(i);
	cout << res << '\n';
}

# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 21536 KB Output is correct
2 Correct 18 ms 21496 KB Output is correct
3 Correct 17 ms 21496 KB Output is correct
4 Correct 18 ms 21496 KB Output is correct
5 Correct 18 ms 21496 KB Output is correct
6 Correct 16 ms 21496 KB Output is correct
7 Correct 17 ms 21496 KB Output is correct
8 Correct 17 ms 21496 KB Output is correct
9 Correct 17 ms 21496 KB Output is correct
10 Correct 18 ms 21496 KB Output is correct
11 Correct 16 ms 21496 KB Output is correct
12 Correct 18 ms 21496 KB Output is correct
13 Correct 17 ms 21496 KB Output is correct
14 Correct 17 ms 21496 KB Output is correct
15 Correct 17 ms 21496 KB Output is correct
16 Correct 18 ms 21496 KB Output is correct
17 Correct 18 ms 21496 KB Output is correct
18 Correct 17 ms 21496 KB Output is correct
19 Correct 18 ms 21496 KB Output is correct
20 Correct 17 ms 21496 KB Output is correct
21 Correct 17 ms 21496 KB Output is correct
22 Correct 17 ms 21496 KB Output is correct
23 Correct 18 ms 21496 KB Output is correct
24 Correct 17 ms 21496 KB Output is correct
25 Correct 18 ms 21496 KB Output is correct
26 Correct 17 ms 21496 KB Output is correct
27 Correct 21 ms 21496 KB Output is correct
28 Correct 18 ms 21496 KB Output is correct
29 Correct 17 ms 21496 KB Output is correct
30 Correct 18 ms 21496 KB Output is correct
31 Correct 17 ms 21496 KB Output is correct
32 Correct 17 ms 21496 KB Output is correct
33 Correct 19 ms 21496 KB Output is correct
34 Correct 17 ms 21496 KB Output is correct
35 Correct 17 ms 21496 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 21536 KB Output is correct
2 Correct 18 ms 21496 KB Output is correct
3 Correct 17 ms 21496 KB Output is correct
4 Correct 18 ms 21496 KB Output is correct
5 Correct 18 ms 21496 KB Output is correct
6 Correct 16 ms 21496 KB Output is correct
7 Correct 17 ms 21496 KB Output is correct
8 Correct 17 ms 21496 KB Output is correct
9 Correct 17 ms 21496 KB Output is correct
10 Correct 18 ms 21496 KB Output is correct
11 Correct 16 ms 21496 KB Output is correct
12 Correct 18 ms 21496 KB Output is correct
13 Correct 17 ms 21496 KB Output is correct
14 Correct 17 ms 21496 KB Output is correct
15 Correct 17 ms 21496 KB Output is correct
16 Correct 18 ms 21496 KB Output is correct
17 Correct 18 ms 21496 KB Output is correct
18 Correct 17 ms 21496 KB Output is correct
19 Correct 18 ms 21496 KB Output is correct
20 Correct 17 ms 21496 KB Output is correct
21 Correct 17 ms 21496 KB Output is correct
22 Correct 17 ms 21496 KB Output is correct
23 Correct 18 ms 21496 KB Output is correct
24 Correct 17 ms 21496 KB Output is correct
25 Correct 18 ms 21496 KB Output is correct
26 Correct 17 ms 21496 KB Output is correct
27 Correct 21 ms 21496 KB Output is correct
28 Correct 18 ms 21496 KB Output is correct
29 Correct 17 ms 21496 KB Output is correct
30 Correct 18 ms 21496 KB Output is correct
31 Correct 17 ms 21496 KB Output is correct
32 Correct 17 ms 21496 KB Output is correct
33 Correct 19 ms 21496 KB Output is correct
34 Correct 17 ms 21496 KB Output is correct
35 Correct 17 ms 21496 KB Output is correct
36 Correct 17 ms 21496 KB Output is correct
37 Correct 17 ms 21500 KB Output is correct
38 Correct 17 ms 21496 KB Output is correct
39 Correct 17 ms 21368 KB Output is correct
40 Correct 17 ms 21496 KB Output is correct
41 Correct 18 ms 21496 KB Output is correct
42 Correct 17 ms 21496 KB Output is correct
43 Correct 17 ms 21496 KB Output is correct
44 Correct 17 ms 21496 KB Output is correct
45 Correct 17 ms 21496 KB Output is correct
46 Correct 18 ms 21496 KB Output is correct
47 Correct 17 ms 21496 KB Output is correct
48 Correct 17 ms 21496 KB Output is correct
49 Correct 17 ms 21496 KB Output is correct
50 Correct 17 ms 21500 KB Output is correct
51 Correct 17 ms 21500 KB Output is correct
52 Correct 18 ms 21500 KB Output is correct
53 Correct 17 ms 21496 KB Output is correct
54 Correct 17 ms 21496 KB Output is correct
55 Correct 18 ms 21496 KB Output is correct
56 Correct 17 ms 21496 KB Output is correct
57 Correct 17 ms 21496 KB Output is correct
58 Correct 17 ms 21496 KB Output is correct
59 Correct 17 ms 21496 KB Output is correct
60 Correct 17 ms 21496 KB Output is correct
61 Correct 19 ms 21496 KB Output is correct
62 Correct 18 ms 21496 KB Output is correct
63 Correct 17 ms 21496 KB Output is correct
64 Correct 17 ms 21496 KB Output is correct
65 Correct 22 ms 21496 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 87 ms 35572 KB Output is correct
2 Correct 95 ms 35588 KB Output is correct
3 Correct 123 ms 41844 KB Output is correct
4 Correct 105 ms 36336 KB Output is correct
5 Correct 113 ms 36980 KB Output is correct
6 Correct 122 ms 43380 KB Output is correct
7 Correct 134 ms 37256 KB Output is correct
8 Correct 125 ms 40184 KB Output is correct
9 Correct 148 ms 35192 KB Output is correct
10 Correct 124 ms 35576 KB Output is correct
11 Correct 101 ms 30712 KB Output is correct
12 Correct 96 ms 30712 KB Output is correct
13 Correct 91 ms 30072 KB Output is correct
14 Correct 87 ms 29976 KB Output is correct
15 Correct 65 ms 28408 KB Output is correct
16 Correct 69 ms 28408 KB Output is correct
17 Correct 19 ms 22776 KB Output is correct
18 Correct 19 ms 22776 KB Output is correct
19 Correct 20 ms 22776 KB Output is correct
20 Correct 19 ms 22776 KB Output is correct
21 Correct 19 ms 22780 KB Output is correct
22 Correct 20 ms 22776 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 18 ms 21624 KB Output is correct
2 Correct 19 ms 21624 KB Output is correct
3 Correct 18 ms 21752 KB Output is correct
4 Correct 19 ms 21880 KB Output is correct
5 Correct 18 ms 21752 KB Output is correct
6 Correct 18 ms 21756 KB Output is correct
7 Correct 18 ms 21880 KB Output is correct
8 Correct 18 ms 21752 KB Output is correct
9 Correct 19 ms 21624 KB Output is correct
10 Correct 18 ms 21628 KB Output is correct
11 Correct 18 ms 21600 KB Output is correct
12 Correct 18 ms 21624 KB Output is correct
13 Correct 18 ms 21624 KB Output is correct
14 Correct 20 ms 21620 KB Output is correct
15 Correct 18 ms 21624 KB Output is correct
16 Correct 18 ms 21624 KB Output is correct
17 Correct 18 ms 21624 KB Output is correct
18 Correct 17 ms 21624 KB Output is correct
19 Correct 18 ms 21624 KB Output is correct
20 Correct 18 ms 21624 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 136 ms 35576 KB Output is correct
2 Correct 128 ms 35576 KB Output is correct
3 Correct 122 ms 35640 KB Output is correct
4 Correct 138 ms 35620 KB Output is correct
5 Correct 135 ms 35576 KB Output is correct
6 Correct 147 ms 55928 KB Output is correct
7 Correct 142 ms 43256 KB Output is correct
8 Correct 140 ms 41208 KB Output is correct
9 Correct 138 ms 39544 KB Output is correct
10 Correct 130 ms 35576 KB Output is correct
11 Correct 125 ms 35576 KB Output is correct
12 Correct 135 ms 35576 KB Output is correct
13 Correct 159 ms 35576 KB Output is correct
14 Correct 124 ms 34552 KB Output is correct
15 Correct 112 ms 33404 KB Output is correct
16 Correct 73 ms 29560 KB Output is correct
17 Correct 76 ms 34156 KB Output is correct
18 Correct 80 ms 34156 KB Output is correct
19 Correct 76 ms 34284 KB Output is correct
20 Correct 78 ms 34168 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 18 ms 21624 KB Output is correct
2 Correct 17 ms 21628 KB Output is correct
3 Correct 17 ms 21624 KB Output is correct
4 Correct 17 ms 21624 KB Output is correct
5 Correct 18 ms 21624 KB Output is correct
6 Correct 17 ms 21624 KB Output is correct
7 Correct 18 ms 21496 KB Output is correct
8 Correct 21 ms 21496 KB Output is correct
9 Correct 19 ms 21624 KB Output is correct
10 Correct 18 ms 21496 KB Output is correct
11 Correct 17 ms 21624 KB Output is correct
12 Correct 18 ms 21752 KB Output is correct
13 Correct 17 ms 21624 KB Output is correct
14 Correct 18 ms 21624 KB Output is correct
15 Correct 17 ms 21624 KB Output is correct
16 Correct 18 ms 21624 KB Output is correct
17 Correct 18 ms 21624 KB Output is correct
18 Correct 18 ms 21624 KB Output is correct
19 Correct 18 ms 21624 KB Output is correct
20 Correct 17 ms 21624 KB Output is correct
21 Correct 20 ms 21624 KB Output is correct
22 Correct 18 ms 21624 KB Output is correct
23 Correct 18 ms 21624 KB Output is correct
24 Correct 17 ms 21624 KB Output is correct
25 Correct 18 ms 21496 KB Output is correct
26 Correct 17 ms 21496 KB Output is correct
27 Correct 17 ms 21496 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 133 ms 35704 KB Output is correct
2 Correct 127 ms 35832 KB Output is correct
3 Correct 133 ms 34808 KB Output is correct
4 Correct 123 ms 32892 KB Output is correct
5 Correct 134 ms 30840 KB Output is correct
6 Correct 104 ms 29944 KB Output is correct
7 Correct 104 ms 29432 KB Output is correct
8 Correct 94 ms 28920 KB Output is correct
9 Correct 93 ms 28664 KB Output is correct
10 Correct 93 ms 28408 KB Output is correct
11 Correct 93 ms 28152 KB Output is correct
12 Correct 86 ms 28024 KB Output is correct
13 Correct 85 ms 28024 KB Output is correct
14 Correct 84 ms 29688 KB Output is correct
15 Correct 138 ms 42360 KB Output is correct
16 Correct 137 ms 39800 KB Output is correct
17 Correct 138 ms 40312 KB Output is correct
18 Correct 131 ms 37880 KB Output is correct
19 Correct 127 ms 33016 KB Output is correct
20 Correct 150 ms 33084 KB Output is correct
21 Correct 123 ms 32888 KB Output is correct
22 Correct 117 ms 31736 KB Output is correct
23 Correct 101 ms 30252 KB Output is correct
24 Correct 113 ms 34400 KB Output is correct
25 Correct 120 ms 34424 KB Output is correct
26 Correct 121 ms 33396 KB Output is correct
27 Correct 122 ms 33272 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 21536 KB Output is correct
2 Correct 18 ms 21496 KB Output is correct
3 Correct 17 ms 21496 KB Output is correct
4 Correct 18 ms 21496 KB Output is correct
5 Correct 18 ms 21496 KB Output is correct
6 Correct 16 ms 21496 KB Output is correct
7 Correct 17 ms 21496 KB Output is correct
8 Correct 17 ms 21496 KB Output is correct
9 Correct 17 ms 21496 KB Output is correct
10 Correct 18 ms 21496 KB Output is correct
11 Correct 16 ms 21496 KB Output is correct
12 Correct 18 ms 21496 KB Output is correct
13 Correct 17 ms 21496 KB Output is correct
14 Correct 17 ms 21496 KB Output is correct
15 Correct 17 ms 21496 KB Output is correct
16 Correct 18 ms 21496 KB Output is correct
17 Correct 18 ms 21496 KB Output is correct
18 Correct 17 ms 21496 KB Output is correct
19 Correct 18 ms 21496 KB Output is correct
20 Correct 17 ms 21496 KB Output is correct
21 Correct 17 ms 21496 KB Output is correct
22 Correct 17 ms 21496 KB Output is correct
23 Correct 18 ms 21496 KB Output is correct
24 Correct 17 ms 21496 KB Output is correct
25 Correct 18 ms 21496 KB Output is correct
26 Correct 17 ms 21496 KB Output is correct
27 Correct 21 ms 21496 KB Output is correct
28 Correct 18 ms 21496 KB Output is correct
29 Correct 17 ms 21496 KB Output is correct
30 Correct 18 ms 21496 KB Output is correct
31 Correct 17 ms 21496 KB Output is correct
32 Correct 17 ms 21496 KB Output is correct
33 Correct 19 ms 21496 KB Output is correct
34 Correct 17 ms 21496 KB Output is correct
35 Correct 17 ms 21496 KB Output is correct
36 Correct 17 ms 21496 KB Output is correct
37 Correct 17 ms 21500 KB Output is correct
38 Correct 17 ms 21496 KB Output is correct
39 Correct 17 ms 21368 KB Output is correct
40 Correct 17 ms 21496 KB Output is correct
41 Correct 18 ms 21496 KB Output is correct
42 Correct 17 ms 21496 KB Output is correct
43 Correct 17 ms 21496 KB Output is correct
44 Correct 17 ms 21496 KB Output is correct
45 Correct 17 ms 21496 KB Output is correct
46 Correct 18 ms 21496 KB Output is correct
47 Correct 17 ms 21496 KB Output is correct
48 Correct 17 ms 21496 KB Output is correct
49 Correct 17 ms 21496 KB Output is correct
50 Correct 17 ms 21500 KB Output is correct
51 Correct 17 ms 21500 KB Output is correct
52 Correct 18 ms 21500 KB Output is correct
53 Correct 17 ms 21496 KB Output is correct
54 Correct 17 ms 21496 KB Output is correct
55 Correct 18 ms 21496 KB Output is correct
56 Correct 17 ms 21496 KB Output is correct
57 Correct 17 ms 21496 KB Output is correct
58 Correct 17 ms 21496 KB Output is correct
59 Correct 17 ms 21496 KB Output is correct
60 Correct 17 ms 21496 KB Output is correct
61 Correct 19 ms 21496 KB Output is correct
62 Correct 18 ms 21496 KB Output is correct
63 Correct 17 ms 21496 KB Output is correct
64 Correct 17 ms 21496 KB Output is correct
65 Correct 22 ms 21496 KB Output is correct
66 Correct 16 ms 21496 KB Output is correct
67 Correct 17 ms 21624 KB Output is correct
68 Correct 18 ms 21624 KB Output is correct
69 Correct 17 ms 21624 KB Output is correct
70 Correct 17 ms 21624 KB Output is correct
71 Correct 18 ms 21624 KB Output is correct
72 Correct 17 ms 21624 KB Output is correct
73 Correct 18 ms 21624 KB Output is correct
74 Correct 18 ms 21628 KB Output is correct
75 Correct 17 ms 21624 KB Output is correct
76 Correct 17 ms 21496 KB Output is correct
77 Correct 18 ms 21628 KB Output is correct
78 Correct 18 ms 21624 KB Output is correct
79 Correct 17 ms 21500 KB Output is correct
80 Correct 17 ms 21496 KB Output is correct
81 Correct 17 ms 21624 KB Output is correct
82 Correct 17 ms 21624 KB Output is correct
83 Correct 17 ms 21624 KB Output is correct
84 Correct 18 ms 21624 KB Output is correct
85 Correct 18 ms 21624 KB Output is correct
86 Correct 18 ms 21624 KB Output is correct
87 Correct 18 ms 21624 KB Output is correct
88 Correct 17 ms 21624 KB Output is correct
89 Correct 18 ms 21624 KB Output is correct
90 Correct 18 ms 21624 KB Output is correct
91 Correct 18 ms 21624 KB Output is correct
92 Correct 17 ms 21624 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 17 ms 21536 KB Output is correct
2 Correct 18 ms 21496 KB Output is correct
3 Correct 17 ms 21496 KB Output is correct
4 Correct 18 ms 21496 KB Output is correct
5 Correct 18 ms 21496 KB Output is correct
6 Correct 16 ms 21496 KB Output is correct
7 Correct 17 ms 21496 KB Output is correct
8 Correct 17 ms 21496 KB Output is correct
9 Correct 17 ms 21496 KB Output is correct
10 Correct 18 ms 21496 KB Output is correct
11 Correct 16 ms 21496 KB Output is correct
12 Correct 18 ms 21496 KB Output is correct
13 Correct 17 ms 21496 KB Output is correct
14 Correct 17 ms 21496 KB Output is correct
15 Correct 17 ms 21496 KB Output is correct
16 Correct 18 ms 21496 KB Output is correct
17 Correct 18 ms 21496 KB Output is correct
18 Correct 17 ms 21496 KB Output is correct
19 Correct 18 ms 21496 KB Output is correct
20 Correct 17 ms 21496 KB Output is correct
21 Correct 17 ms 21496 KB Output is correct
22 Correct 17 ms 21496 KB Output is correct
23 Correct 18 ms 21496 KB Output is correct
24 Correct 17 ms 21496 KB Output is correct
25 Correct 18 ms 21496 KB Output is correct
26 Correct 17 ms 21496 KB Output is correct
27 Correct 21 ms 21496 KB Output is correct
28 Correct 18 ms 21496 KB Output is correct
29 Correct 17 ms 21496 KB Output is correct
30 Correct 18 ms 21496 KB Output is correct
31 Correct 17 ms 21496 KB Output is correct
32 Correct 17 ms 21496 KB Output is correct
33 Correct 19 ms 21496 KB Output is correct
34 Correct 17 ms 21496 KB Output is correct
35 Correct 17 ms 21496 KB Output is correct
36 Correct 17 ms 21496 KB Output is correct
37 Correct 17 ms 21500 KB Output is correct
38 Correct 17 ms 21496 KB Output is correct
39 Correct 17 ms 21368 KB Output is correct
40 Correct 17 ms 21496 KB Output is correct
41 Correct 18 ms 21496 KB Output is correct
42 Correct 17 ms 21496 KB Output is correct
43 Correct 17 ms 21496 KB Output is correct
44 Correct 17 ms 21496 KB Output is correct
45 Correct 17 ms 21496 KB Output is correct
46 Correct 18 ms 21496 KB Output is correct
47 Correct 17 ms 21496 KB Output is correct
48 Correct 17 ms 21496 KB Output is correct
49 Correct 17 ms 21496 KB Output is correct
50 Correct 17 ms 21500 KB Output is correct
51 Correct 17 ms 21500 KB Output is correct
52 Correct 18 ms 21500 KB Output is correct
53 Correct 17 ms 21496 KB Output is correct
54 Correct 17 ms 21496 KB Output is correct
55 Correct 18 ms 21496 KB Output is correct
56 Correct 17 ms 21496 KB Output is correct
57 Correct 17 ms 21496 KB Output is correct
58 Correct 17 ms 21496 KB Output is correct
59 Correct 17 ms 21496 KB Output is correct
60 Correct 17 ms 21496 KB Output is correct
61 Correct 19 ms 21496 KB Output is correct
62 Correct 18 ms 21496 KB Output is correct
63 Correct 17 ms 21496 KB Output is correct
64 Correct 17 ms 21496 KB Output is correct
65 Correct 22 ms 21496 KB Output is correct
66 Correct 87 ms 35572 KB Output is correct
67 Correct 95 ms 35588 KB Output is correct
68 Correct 123 ms 41844 KB Output is correct
69 Correct 105 ms 36336 KB Output is correct
70 Correct 113 ms 36980 KB Output is correct
71 Correct 122 ms 43380 KB Output is correct
72 Correct 134 ms 37256 KB Output is correct
73 Correct 125 ms 40184 KB Output is correct
74 Correct 148 ms 35192 KB Output is correct
75 Correct 124 ms 35576 KB Output is correct
76 Correct 101 ms 30712 KB Output is correct
77 Correct 96 ms 30712 KB Output is correct
78 Correct 91 ms 30072 KB Output is correct
79 Correct 87 ms 29976 KB Output is correct
80 Correct 65 ms 28408 KB Output is correct
81 Correct 69 ms 28408 KB Output is correct
82 Correct 19 ms 22776 KB Output is correct
83 Correct 19 ms 22776 KB Output is correct
84 Correct 20 ms 22776 KB Output is correct
85 Correct 19 ms 22776 KB Output is correct
86 Correct 19 ms 22780 KB Output is correct
87 Correct 20 ms 22776 KB Output is correct
88 Correct 18 ms 21624 KB Output is correct
89 Correct 19 ms 21624 KB Output is correct
90 Correct 18 ms 21752 KB Output is correct
91 Correct 19 ms 21880 KB Output is correct
92 Correct 18 ms 21752 KB Output is correct
93 Correct 18 ms 21756 KB Output is correct
94 Correct 18 ms 21880 KB Output is correct
95 Correct 18 ms 21752 KB Output is correct
96 Correct 19 ms 21624 KB Output is correct
97 Correct 18 ms 21628 KB Output is correct
98 Correct 18 ms 21600 KB Output is correct
99 Correct 18 ms 21624 KB Output is correct
100 Correct 18 ms 21624 KB Output is correct
101 Correct 20 ms 21620 KB Output is correct
102 Correct 18 ms 21624 KB Output is correct
103 Correct 18 ms 21624 KB Output is correct
104 Correct 18 ms 21624 KB Output is correct
105 Correct 17 ms 21624 KB Output is correct
106 Correct 18 ms 21624 KB Output is correct
107 Correct 18 ms 21624 KB Output is correct
108 Correct 136 ms 35576 KB Output is correct
109 Correct 128 ms 35576 KB Output is correct
110 Correct 122 ms 35640 KB Output is correct
111 Correct 138 ms 35620 KB Output is correct
112 Correct 135 ms 35576 KB Output is correct
113 Correct 147 ms 55928 KB Output is correct
114 Correct 142 ms 43256 KB Output is correct
115 Correct 140 ms 41208 KB Output is correct
116 Correct 138 ms 39544 KB Output is correct
117 Correct 130 ms 35576 KB Output is correct
118 Correct 125 ms 35576 KB Output is correct
119 Correct 135 ms 35576 KB Output is correct
120 Correct 159 ms 35576 KB Output is correct
121 Correct 124 ms 34552 KB Output is correct
122 Correct 112 ms 33404 KB Output is correct
123 Correct 73 ms 29560 KB Output is correct
124 Correct 76 ms 34156 KB Output is correct
125 Correct 80 ms 34156 KB Output is correct
126 Correct 76 ms 34284 KB Output is correct
127 Correct 78 ms 34168 KB Output is correct
128 Correct 18 ms 21624 KB Output is correct
129 Correct 17 ms 21628 KB Output is correct
130 Correct 17 ms 21624 KB Output is correct
131 Correct 17 ms 21624 KB Output is correct
132 Correct 18 ms 21624 KB Output is correct
133 Correct 17 ms 21624 KB Output is correct
134 Correct 18 ms 21496 KB Output is correct
135 Correct 21 ms 21496 KB Output is correct
136 Correct 19 ms 21624 KB Output is correct
137 Correct 18 ms 21496 KB Output is correct
138 Correct 17 ms 21624 KB Output is correct
139 Correct 18 ms 21752 KB Output is correct
140 Correct 17 ms 21624 KB Output is correct
141 Correct 18 ms 21624 KB Output is correct
142 Correct 17 ms 21624 KB Output is correct
143 Correct 18 ms 21624 KB Output is correct
144 Correct 18 ms 21624 KB Output is correct
145 Correct 18 ms 21624 KB Output is correct
146 Correct 18 ms 21624 KB Output is correct
147 Correct 17 ms 21624 KB Output is correct
148 Correct 20 ms 21624 KB Output is correct
149 Correct 18 ms 21624 KB Output is correct
150 Correct 18 ms 21624 KB Output is correct
151 Correct 17 ms 21624 KB Output is correct
152 Correct 18 ms 21496 KB Output is correct
153 Correct 17 ms 21496 KB Output is correct
154 Correct 17 ms 21496 KB Output is correct
155 Correct 133 ms 35704 KB Output is correct
156 Correct 127 ms 35832 KB Output is correct
157 Correct 133 ms 34808 KB Output is correct
158 Correct 123 ms 32892 KB Output is correct
159 Correct 134 ms 30840 KB Output is correct
160 Correct 104 ms 29944 KB Output is correct
161 Correct 104 ms 29432 KB Output is correct
162 Correct 94 ms 28920 KB Output is correct
163 Correct 93 ms 28664 KB Output is correct
164 Correct 93 ms 28408 KB Output is correct
165 Correct 93 ms 28152 KB Output is correct
166 Correct 86 ms 28024 KB Output is correct
167 Correct 85 ms 28024 KB Output is correct
168 Correct 84 ms 29688 KB Output is correct
169 Correct 138 ms 42360 KB Output is correct
170 Correct 137 ms 39800 KB Output is correct
171 Correct 138 ms 40312 KB Output is correct
172 Correct 131 ms 37880 KB Output is correct
173 Correct 127 ms 33016 KB Output is correct
174 Correct 150 ms 33084 KB Output is correct
175 Correct 123 ms 32888 KB Output is correct
176 Correct 117 ms 31736 KB Output is correct
177 Correct 101 ms 30252 KB Output is correct
178 Correct 113 ms 34400 KB Output is correct
179 Correct 120 ms 34424 KB Output is correct
180 Correct 121 ms 33396 KB Output is correct
181 Correct 122 ms 33272 KB Output is correct
182 Correct 16 ms 21496 KB Output is correct
183 Correct 17 ms 21624 KB Output is correct
184 Correct 18 ms 21624 KB Output is correct
185 Correct 17 ms 21624 KB Output is correct
186 Correct 17 ms 21624 KB Output is correct
187 Correct 18 ms 21624 KB Output is correct
188 Correct 17 ms 21624 KB Output is correct
189 Correct 18 ms 21624 KB Output is correct
190 Correct 18 ms 21628 KB Output is correct
191 Correct 17 ms 21624 KB Output is correct
192 Correct 17 ms 21496 KB Output is correct
193 Correct 18 ms 21628 KB Output is correct
194 Correct 18 ms 21624 KB Output is correct
195 Correct 17 ms 21500 KB Output is correct
196 Correct 17 ms 21496 KB Output is correct
197 Correct 17 ms 21624 KB Output is correct
198 Correct 17 ms 21624 KB Output is correct
199 Correct 17 ms 21624 KB Output is correct
200 Correct 18 ms 21624 KB Output is correct
201 Correct 18 ms 21624 KB Output is correct
202 Correct 18 ms 21624 KB Output is correct
203 Correct 18 ms 21624 KB Output is correct
204 Correct 17 ms 21624 KB Output is correct
205 Correct 18 ms 21624 KB Output is correct
206 Correct 18 ms 21624 KB Output is correct
207 Correct 18 ms 21624 KB Output is correct
208 Correct 17 ms 21624 KB Output is correct
209 Correct 19 ms 22904 KB Output is correct
210 Correct 77 ms 29560 KB Output is correct
211 Correct 125 ms 32648 KB Output is correct
212 Correct 132 ms 33908 KB Output is correct
213 Correct 150 ms 35188 KB Output is correct
214 Correct 77 ms 30452 KB Output is correct
215 Correct 79 ms 29944 KB Output is correct
216 Correct 119 ms 33272 KB Output is correct
217 Correct 113 ms 31224 KB Output is correct
218 Correct 98 ms 28920 KB Output is correct
219 Correct 97 ms 28408 KB Output is correct
220 Correct 84 ms 28156 KB Output is correct
221 Correct 85 ms 27896 KB Output is correct
222 Correct 82 ms 28664 KB Output is correct
223 Correct 123 ms 34296 KB Output is correct
224 Correct 125 ms 33400 KB Output is correct
225 Correct 111 ms 30712 KB Output is correct
226 Correct 116 ms 30840 KB Output is correct
227 Correct 117 ms 30840 KB Output is correct
228 Correct 112 ms 30072 KB Output is correct
229 Correct 95 ms 29048 KB Output is correct
230 Correct 107 ms 30356 KB Output is correct
231 Correct 106 ms 30456 KB Output is correct