답안 #108071

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
108071 2019-04-27T06:55:36 Z ryansee 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
207 ms 29132 KB
/*
	- Complementary counting
	- Consider an articulation point u on a BCC
	- If s & f are in the u's subtree, then c cannot be on the BCC (except for u)
*/

#include <bits/stdc++.h>
using namespace std;

#define ll long long

const int mxN=1e5;
int n, m, dt=1, tin[mxN], low[mxN], st[mxN], sth, bccI;
vector<int> adj1[mxN], adj2[2*mxN];
ll sz[2*mxN], n2, ans;

void dfs1(int u, int p) {
	tin[u]=low[u]=dt++;
	st[sth++]=u;
	++n2;
	for(int v : adj1[u]) {
		if(!tin[v]) {
			dfs1(v, u);
			low[u]=min(low[v], low[u]);
			if(low[v]>=tin[u]) {
				adj2[u].push_back(bccI+n);
				while(adj2[bccI+n].empty()||adj2[bccI+n].back()!=v)
					adj2[bccI+n].push_back(st[--sth]);
				++bccI;
			}
		} else if(v!=p)
			low[u]=min(tin[v], low[u]);
	}
}

void dfs2(int u, int p) {
	sz[u]=u<n;
	for(int v : adj2[u]) {
		dfs2(v, u);
		sz[u]+=sz[v];
		if(u>=n)
			ans-=(adj2[u].size()-(p==-1))*sz[v]*(sz[v]-1);
	}
	if(u>=n)
		ans-=adj2[u].size()*(n2-sz[u])*(n2-sz[u]-1);
}

int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	
	cin >> n >> m;
	while(m--) {
		int u, v;
		cin >> u >> v, --u, --v;
		adj1[u].push_back(v);
		adj1[v].push_back(u);
	}
	for(int i=0; i<n; ++i) {
		if(tin[i])
			continue;
		dfs1(i, -1);
		ans+=n2*(n2-1)*(n2-2);
		dfs2(i, -1);
		n2=0;
	}
	cout << ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 10 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 9 ms 7420 KB Output is correct
7 Correct 10 ms 7424 KB Output is correct
8 Correct 11 ms 7424 KB Output is correct
9 Correct 10 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 10 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 7 ms 7424 KB Output is correct
16 Correct 8 ms 7424 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7444 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 7 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 8 ms 7424 KB Output is correct
28 Correct 10 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 7 ms 7424 KB Output is correct
33 Correct 8 ms 7472 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 7 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 10 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 9 ms 7420 KB Output is correct
7 Correct 10 ms 7424 KB Output is correct
8 Correct 11 ms 7424 KB Output is correct
9 Correct 10 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 10 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 7 ms 7424 KB Output is correct
16 Correct 8 ms 7424 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7444 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 7 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 8 ms 7424 KB Output is correct
28 Correct 10 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 7 ms 7424 KB Output is correct
33 Correct 8 ms 7472 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 7 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7296 KB Output is correct
40 Correct 9 ms 7424 KB Output is correct
41 Correct 10 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 11 ms 7424 KB Output is correct
45 Correct 9 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 8 ms 7424 KB Output is correct
50 Correct 10 ms 7424 KB Output is correct
51 Correct 9 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 9 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 9 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 10 ms 7424 KB Output is correct
59 Correct 8 ms 7424 KB Output is correct
60 Correct 9 ms 7424 KB Output is correct
61 Correct 8 ms 7424 KB Output is correct
62 Correct 9 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 9 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 136 ms 23632 KB Output is correct
2 Correct 129 ms 23664 KB Output is correct
3 Correct 166 ms 23796 KB Output is correct
4 Correct 134 ms 23104 KB Output is correct
5 Correct 138 ms 20312 KB Output is correct
6 Correct 170 ms 22900 KB Output is correct
7 Correct 179 ms 20932 KB Output is correct
8 Correct 164 ms 21596 KB Output is correct
9 Correct 157 ms 19448 KB Output is correct
10 Correct 135 ms 19376 KB Output is correct
11 Correct 116 ms 16512 KB Output is correct
12 Correct 105 ms 16368 KB Output is correct
13 Correct 135 ms 16304 KB Output is correct
14 Correct 101 ms 16044 KB Output is correct
15 Correct 85 ms 15188 KB Output is correct
16 Correct 78 ms 15136 KB Output is correct
17 Correct 13 ms 9344 KB Output is correct
18 Correct 12 ms 9344 KB Output is correct
19 Correct 12 ms 9344 KB Output is correct
20 Correct 16 ms 9344 KB Output is correct
21 Correct 13 ms 9344 KB Output is correct
22 Correct 13 ms 9472 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 7552 KB Output is correct
2 Correct 10 ms 7552 KB Output is correct
3 Correct 10 ms 7552 KB Output is correct
4 Correct 10 ms 7680 KB Output is correct
5 Correct 8 ms 7552 KB Output is correct
6 Correct 9 ms 7552 KB Output is correct
7 Correct 9 ms 7680 KB Output is correct
8 Correct 8 ms 7552 KB Output is correct
9 Correct 9 ms 7552 KB Output is correct
10 Correct 9 ms 7552 KB Output is correct
11 Correct 11 ms 7552 KB Output is correct
12 Correct 8 ms 7552 KB Output is correct
13 Correct 9 ms 7552 KB Output is correct
14 Correct 8 ms 7552 KB Output is correct
15 Correct 8 ms 7552 KB Output is correct
16 Correct 9 ms 7552 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 11 ms 7552 KB Output is correct
19 Correct 9 ms 7552 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 138 ms 18772 KB Output is correct
2 Correct 143 ms 18908 KB Output is correct
3 Correct 175 ms 18964 KB Output is correct
4 Correct 177 ms 18936 KB Output is correct
5 Correct 196 ms 18936 KB Output is correct
6 Correct 182 ms 29132 KB Output is correct
7 Correct 157 ms 25500 KB Output is correct
8 Correct 174 ms 23820 KB Output is correct
9 Correct 175 ms 22364 KB Output is correct
10 Correct 157 ms 18908 KB Output is correct
11 Correct 183 ms 18936 KB Output is correct
12 Correct 160 ms 19048 KB Output is correct
13 Correct 131 ms 18936 KB Output is correct
14 Correct 143 ms 18404 KB Output is correct
15 Correct 104 ms 17844 KB Output is correct
16 Correct 93 ms 15324 KB Output is correct
17 Correct 122 ms 18032 KB Output is correct
18 Correct 117 ms 18072 KB Output is correct
19 Correct 113 ms 18156 KB Output is correct
20 Correct 120 ms 18052 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 7476 KB Output is correct
2 Correct 10 ms 7512 KB Output is correct
3 Correct 11 ms 7552 KB Output is correct
4 Correct 12 ms 7552 KB Output is correct
5 Correct 9 ms 7424 KB Output is correct
6 Correct 10 ms 7552 KB Output is correct
7 Correct 10 ms 7552 KB Output is correct
8 Correct 12 ms 7424 KB Output is correct
9 Correct 9 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 12 ms 7424 KB Output is correct
12 Correct 12 ms 7552 KB Output is correct
13 Correct 11 ms 7552 KB Output is correct
14 Correct 12 ms 7552 KB Output is correct
15 Correct 11 ms 7552 KB Output is correct
16 Correct 11 ms 7552 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 11 ms 7552 KB Output is correct
19 Correct 11 ms 7596 KB Output is correct
20 Correct 9 ms 7424 KB Output is correct
21 Correct 9 ms 7552 KB Output is correct
22 Correct 9 ms 7552 KB Output is correct
23 Correct 10 ms 7552 KB Output is correct
24 Correct 10 ms 7552 KB Output is correct
25 Correct 11 ms 7424 KB Output is correct
26 Correct 10 ms 7424 KB Output is correct
27 Correct 0 ms 7296 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 194 ms 18792 KB Output is correct
2 Correct 185 ms 19272 KB Output is correct
3 Correct 150 ms 18712 KB Output is correct
4 Correct 175 ms 17516 KB Output is correct
5 Correct 146 ms 16036 KB Output is correct
6 Correct 140 ms 15412 KB Output is correct
7 Correct 118 ms 15040 KB Output is correct
8 Correct 117 ms 14640 KB Output is correct
9 Correct 119 ms 14492 KB Output is correct
10 Correct 139 ms 14432 KB Output is correct
11 Correct 119 ms 14292 KB Output is correct
12 Correct 99 ms 14264 KB Output is correct
13 Correct 102 ms 14324 KB Output is correct
14 Correct 104 ms 16504 KB Output is correct
15 Correct 157 ms 25080 KB Output is correct
16 Correct 189 ms 22904 KB Output is correct
17 Correct 155 ms 23420 KB Output is correct
18 Correct 170 ms 21644 KB Output is correct
19 Correct 149 ms 17372 KB Output is correct
20 Correct 134 ms 17404 KB Output is correct
21 Correct 154 ms 17372 KB Output is correct
22 Correct 161 ms 16852 KB Output is correct
23 Correct 148 ms 16064 KB Output is correct
24 Correct 123 ms 18324 KB Output is correct
25 Correct 170 ms 18396 KB Output is correct
26 Correct 153 ms 17652 KB Output is correct
27 Correct 135 ms 17700 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 10 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 9 ms 7420 KB Output is correct
7 Correct 10 ms 7424 KB Output is correct
8 Correct 11 ms 7424 KB Output is correct
9 Correct 10 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 10 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 7 ms 7424 KB Output is correct
16 Correct 8 ms 7424 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7444 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 7 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 8 ms 7424 KB Output is correct
28 Correct 10 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 7 ms 7424 KB Output is correct
33 Correct 8 ms 7472 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 7 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7296 KB Output is correct
40 Correct 9 ms 7424 KB Output is correct
41 Correct 10 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 11 ms 7424 KB Output is correct
45 Correct 9 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 8 ms 7424 KB Output is correct
50 Correct 10 ms 7424 KB Output is correct
51 Correct 9 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 9 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 9 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 10 ms 7424 KB Output is correct
59 Correct 8 ms 7424 KB Output is correct
60 Correct 9 ms 7424 KB Output is correct
61 Correct 8 ms 7424 KB Output is correct
62 Correct 9 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 9 ms 7424 KB Output is correct
66 Correct 10 ms 7424 KB Output is correct
67 Correct 10 ms 7552 KB Output is correct
68 Correct 12 ms 7552 KB Output is correct
69 Correct 10 ms 7552 KB Output is correct
70 Correct 10 ms 7460 KB Output is correct
71 Correct 9 ms 7424 KB Output is correct
72 Correct 9 ms 7420 KB Output is correct
73 Correct 9 ms 7424 KB Output is correct
74 Correct 24 ms 7424 KB Output is correct
75 Correct 11 ms 7552 KB Output is correct
76 Correct 9 ms 7396 KB Output is correct
77 Correct 15 ms 7552 KB Output is correct
78 Correct 9 ms 7544 KB Output is correct
79 Correct 10 ms 7552 KB Output is correct
80 Correct 8 ms 7424 KB Output is correct
81 Correct 10 ms 7424 KB Output is correct
82 Correct 9 ms 7680 KB Output is correct
83 Correct 9 ms 7552 KB Output is correct
84 Correct 12 ms 7552 KB Output is correct
85 Correct 11 ms 7552 KB Output is correct
86 Correct 10 ms 7416 KB Output is correct
87 Correct 10 ms 7424 KB Output is correct
88 Correct 9 ms 7424 KB Output is correct
89 Correct 10 ms 7452 KB Output is correct
90 Correct 12 ms 7424 KB Output is correct
91 Correct 12 ms 7552 KB Output is correct
92 Correct 12 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 10 ms 7424 KB Output is correct
4 Correct 8 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 9 ms 7420 KB Output is correct
7 Correct 10 ms 7424 KB Output is correct
8 Correct 11 ms 7424 KB Output is correct
9 Correct 10 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 10 ms 7424 KB Output is correct
13 Correct 9 ms 7424 KB Output is correct
14 Correct 8 ms 7424 KB Output is correct
15 Correct 7 ms 7424 KB Output is correct
16 Correct 8 ms 7424 KB Output is correct
17 Correct 10 ms 7552 KB Output is correct
18 Correct 8 ms 7424 KB Output is correct
19 Correct 8 ms 7444 KB Output is correct
20 Correct 8 ms 7424 KB Output is correct
21 Correct 7 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 8 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 8 ms 7424 KB Output is correct
26 Correct 8 ms 7424 KB Output is correct
27 Correct 8 ms 7424 KB Output is correct
28 Correct 10 ms 7424 KB Output is correct
29 Correct 9 ms 7424 KB Output is correct
30 Correct 8 ms 7424 KB Output is correct
31 Correct 8 ms 7424 KB Output is correct
32 Correct 7 ms 7424 KB Output is correct
33 Correct 8 ms 7472 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 7 ms 7424 KB Output is correct
36 Correct 9 ms 7424 KB Output is correct
37 Correct 9 ms 7424 KB Output is correct
38 Correct 9 ms 7424 KB Output is correct
39 Correct 9 ms 7296 KB Output is correct
40 Correct 9 ms 7424 KB Output is correct
41 Correct 10 ms 7424 KB Output is correct
42 Correct 8 ms 7424 KB Output is correct
43 Correct 9 ms 7424 KB Output is correct
44 Correct 11 ms 7424 KB Output is correct
45 Correct 9 ms 7424 KB Output is correct
46 Correct 8 ms 7424 KB Output is correct
47 Correct 9 ms 7424 KB Output is correct
48 Correct 9 ms 7424 KB Output is correct
49 Correct 8 ms 7424 KB Output is correct
50 Correct 10 ms 7424 KB Output is correct
51 Correct 9 ms 7424 KB Output is correct
52 Correct 8 ms 7424 KB Output is correct
53 Correct 9 ms 7424 KB Output is correct
54 Correct 9 ms 7424 KB Output is correct
55 Correct 9 ms 7424 KB Output is correct
56 Correct 8 ms 7424 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 10 ms 7424 KB Output is correct
59 Correct 8 ms 7424 KB Output is correct
60 Correct 9 ms 7424 KB Output is correct
61 Correct 8 ms 7424 KB Output is correct
62 Correct 9 ms 7424 KB Output is correct
63 Correct 9 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 9 ms 7424 KB Output is correct
66 Correct 136 ms 23632 KB Output is correct
67 Correct 129 ms 23664 KB Output is correct
68 Correct 166 ms 23796 KB Output is correct
69 Correct 134 ms 23104 KB Output is correct
70 Correct 138 ms 20312 KB Output is correct
71 Correct 170 ms 22900 KB Output is correct
72 Correct 179 ms 20932 KB Output is correct
73 Correct 164 ms 21596 KB Output is correct
74 Correct 157 ms 19448 KB Output is correct
75 Correct 135 ms 19376 KB Output is correct
76 Correct 116 ms 16512 KB Output is correct
77 Correct 105 ms 16368 KB Output is correct
78 Correct 135 ms 16304 KB Output is correct
79 Correct 101 ms 16044 KB Output is correct
80 Correct 85 ms 15188 KB Output is correct
81 Correct 78 ms 15136 KB Output is correct
82 Correct 13 ms 9344 KB Output is correct
83 Correct 12 ms 9344 KB Output is correct
84 Correct 12 ms 9344 KB Output is correct
85 Correct 16 ms 9344 KB Output is correct
86 Correct 13 ms 9344 KB Output is correct
87 Correct 13 ms 9472 KB Output is correct
88 Correct 8 ms 7552 KB Output is correct
89 Correct 10 ms 7552 KB Output is correct
90 Correct 10 ms 7552 KB Output is correct
91 Correct 10 ms 7680 KB Output is correct
92 Correct 8 ms 7552 KB Output is correct
93 Correct 9 ms 7552 KB Output is correct
94 Correct 9 ms 7680 KB Output is correct
95 Correct 8 ms 7552 KB Output is correct
96 Correct 9 ms 7552 KB Output is correct
97 Correct 9 ms 7552 KB Output is correct
98 Correct 11 ms 7552 KB Output is correct
99 Correct 8 ms 7552 KB Output is correct
100 Correct 9 ms 7552 KB Output is correct
101 Correct 8 ms 7552 KB Output is correct
102 Correct 8 ms 7552 KB Output is correct
103 Correct 9 ms 7552 KB Output is correct
104 Correct 10 ms 7552 KB Output is correct
105 Correct 11 ms 7552 KB Output is correct
106 Correct 9 ms 7552 KB Output is correct
107 Correct 8 ms 7424 KB Output is correct
108 Correct 138 ms 18772 KB Output is correct
109 Correct 143 ms 18908 KB Output is correct
110 Correct 175 ms 18964 KB Output is correct
111 Correct 177 ms 18936 KB Output is correct
112 Correct 196 ms 18936 KB Output is correct
113 Correct 182 ms 29132 KB Output is correct
114 Correct 157 ms 25500 KB Output is correct
115 Correct 174 ms 23820 KB Output is correct
116 Correct 175 ms 22364 KB Output is correct
117 Correct 157 ms 18908 KB Output is correct
118 Correct 183 ms 18936 KB Output is correct
119 Correct 160 ms 19048 KB Output is correct
120 Correct 131 ms 18936 KB Output is correct
121 Correct 143 ms 18404 KB Output is correct
122 Correct 104 ms 17844 KB Output is correct
123 Correct 93 ms 15324 KB Output is correct
124 Correct 122 ms 18032 KB Output is correct
125 Correct 117 ms 18072 KB Output is correct
126 Correct 113 ms 18156 KB Output is correct
127 Correct 120 ms 18052 KB Output is correct
128 Correct 11 ms 7476 KB Output is correct
129 Correct 10 ms 7512 KB Output is correct
130 Correct 11 ms 7552 KB Output is correct
131 Correct 12 ms 7552 KB Output is correct
132 Correct 9 ms 7424 KB Output is correct
133 Correct 10 ms 7552 KB Output is correct
134 Correct 10 ms 7552 KB Output is correct
135 Correct 12 ms 7424 KB Output is correct
136 Correct 9 ms 7424 KB Output is correct
137 Correct 10 ms 7424 KB Output is correct
138 Correct 12 ms 7424 KB Output is correct
139 Correct 12 ms 7552 KB Output is correct
140 Correct 11 ms 7552 KB Output is correct
141 Correct 12 ms 7552 KB Output is correct
142 Correct 11 ms 7552 KB Output is correct
143 Correct 11 ms 7552 KB Output is correct
144 Correct 10 ms 7552 KB Output is correct
145 Correct 11 ms 7552 KB Output is correct
146 Correct 11 ms 7596 KB Output is correct
147 Correct 9 ms 7424 KB Output is correct
148 Correct 9 ms 7552 KB Output is correct
149 Correct 9 ms 7552 KB Output is correct
150 Correct 10 ms 7552 KB Output is correct
151 Correct 10 ms 7552 KB Output is correct
152 Correct 11 ms 7424 KB Output is correct
153 Correct 10 ms 7424 KB Output is correct
154 Correct 0 ms 7296 KB Output is correct
155 Correct 194 ms 18792 KB Output is correct
156 Correct 185 ms 19272 KB Output is correct
157 Correct 150 ms 18712 KB Output is correct
158 Correct 175 ms 17516 KB Output is correct
159 Correct 146 ms 16036 KB Output is correct
160 Correct 140 ms 15412 KB Output is correct
161 Correct 118 ms 15040 KB Output is correct
162 Correct 117 ms 14640 KB Output is correct
163 Correct 119 ms 14492 KB Output is correct
164 Correct 139 ms 14432 KB Output is correct
165 Correct 119 ms 14292 KB Output is correct
166 Correct 99 ms 14264 KB Output is correct
167 Correct 102 ms 14324 KB Output is correct
168 Correct 104 ms 16504 KB Output is correct
169 Correct 157 ms 25080 KB Output is correct
170 Correct 189 ms 22904 KB Output is correct
171 Correct 155 ms 23420 KB Output is correct
172 Correct 170 ms 21644 KB Output is correct
173 Correct 149 ms 17372 KB Output is correct
174 Correct 134 ms 17404 KB Output is correct
175 Correct 154 ms 17372 KB Output is correct
176 Correct 161 ms 16852 KB Output is correct
177 Correct 148 ms 16064 KB Output is correct
178 Correct 123 ms 18324 KB Output is correct
179 Correct 170 ms 18396 KB Output is correct
180 Correct 153 ms 17652 KB Output is correct
181 Correct 135 ms 17700 KB Output is correct
182 Correct 10 ms 7424 KB Output is correct
183 Correct 10 ms 7552 KB Output is correct
184 Correct 12 ms 7552 KB Output is correct
185 Correct 10 ms 7552 KB Output is correct
186 Correct 10 ms 7460 KB Output is correct
187 Correct 9 ms 7424 KB Output is correct
188 Correct 9 ms 7420 KB Output is correct
189 Correct 9 ms 7424 KB Output is correct
190 Correct 24 ms 7424 KB Output is correct
191 Correct 11 ms 7552 KB Output is correct
192 Correct 9 ms 7396 KB Output is correct
193 Correct 15 ms 7552 KB Output is correct
194 Correct 9 ms 7544 KB Output is correct
195 Correct 10 ms 7552 KB Output is correct
196 Correct 8 ms 7424 KB Output is correct
197 Correct 10 ms 7424 KB Output is correct
198 Correct 9 ms 7680 KB Output is correct
199 Correct 9 ms 7552 KB Output is correct
200 Correct 12 ms 7552 KB Output is correct
201 Correct 11 ms 7552 KB Output is correct
202 Correct 10 ms 7416 KB Output is correct
203 Correct 10 ms 7424 KB Output is correct
204 Correct 9 ms 7424 KB Output is correct
205 Correct 10 ms 7452 KB Output is correct
206 Correct 12 ms 7424 KB Output is correct
207 Correct 12 ms 7552 KB Output is correct
208 Correct 12 ms 7552 KB Output is correct
209 Correct 14 ms 9344 KB Output is correct
210 Correct 87 ms 14820 KB Output is correct
211 Correct 139 ms 18244 KB Output is correct
212 Correct 180 ms 20396 KB Output is correct
213 Correct 207 ms 22260 KB Output is correct
214 Correct 60 ms 16092 KB Output is correct
215 Correct 90 ms 15864 KB Output is correct
216 Correct 136 ms 17656 KB Output is correct
217 Correct 136 ms 16288 KB Output is correct
218 Correct 132 ms 14744 KB Output is correct
219 Correct 109 ms 14348 KB Output is correct
220 Correct 108 ms 14236 KB Output is correct
221 Correct 96 ms 14188 KB Output is correct
222 Correct 103 ms 15480 KB Output is correct
223 Correct 187 ms 19192 KB Output is correct
224 Correct 166 ms 18284 KB Output is correct
225 Correct 126 ms 15864 KB Output is correct
226 Correct 156 ms 15844 KB Output is correct
227 Correct 134 ms 15904 KB Output is correct
228 Correct 128 ms 15612 KB Output is correct
229 Correct 124 ms 15352 KB Output is correct
230 Correct 170 ms 15952 KB Output is correct
231 Correct 136 ms 15984 KB Output is correct