답안 #248543

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
248543 2020-07-12T16:52:21 Z maximath_1 철인 이종 경기 (APIO18_duathlon) C++11
100 / 100
155 ms 31476 KB
#include <bits/stdc++.h>
using namespace std;

#define ll long long

int n, m, tin[200005], low[200005];
vector<int> adj[200005], adj_bcc[200005];
vector<int> euler_tour;
int bcc_id = 0, tim = 1, cnt = 0;
ll sz[200005], ans;

void dfs(int nw, int bf){
	tin[nw] = low[nw] = tim ++;
	euler_tour.push_back(nw);
	cnt ++;

	for(int nx : adj[nw]) if(nx != bf){
		if(!tin[nx]){
			dfs(nx, nw);
			low[nw] = min(low[nw], low[nx]);
			if(low[nx] >= tin[nw]){
				adj_bcc[nw].push_back(bcc_id + n);
				while(adj_bcc[bcc_id + n].empty() || adj_bcc[bcc_id + n].back() != nx){
					adj_bcc[bcc_id + n].push_back(euler_tour.back());
					euler_tour.pop_back();
				}
				bcc_id ++;
			}
		}else
			low[nw] = min(low[nw], tin[nx]);
	}
}

void exc(int nw){
	if(nw < n) sz[nw] = 1;
	for(int nx : adj_bcc[nw]){
		exc(nx);
		sz[nw] += sz[nx];
		if(nw >= n)
			ans -= sz[nx] * 1ll * (sz[nx] - 1) * 1ll * (ll)adj_bcc[nw].size();
	}

	if(nw >= n)
		ans -= (cnt - sz[nw]) * 1ll * (cnt - sz[nw] - 1) * 1ll * (ll)adj_bcc[nw].size();
}

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

	cin >> n >> m;
	for(int u, v, i = 0; i < m; i ++){
		cin >> u >> v;
		u --; v --;
		adj[u].push_back(v);
		adj[v].push_back(u);
	}

	for(int i = 0; i < n; i ++) if(!tin[i]){
		cnt = 0;
		dfs(i, -1);
		ans += cnt * 1ll * (cnt - 1) * 1ll * (cnt - 2);
		exc(i);
	}

	cout << ans << endl;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9728 KB Output is correct
2 Correct 6 ms 9728 KB Output is correct
3 Correct 6 ms 9728 KB Output is correct
4 Correct 6 ms 9728 KB Output is correct
5 Correct 6 ms 9728 KB Output is correct
6 Correct 6 ms 9728 KB Output is correct
7 Correct 6 ms 9728 KB Output is correct
8 Correct 6 ms 9728 KB Output is correct
9 Correct 6 ms 9728 KB Output is correct
10 Correct 6 ms 9728 KB Output is correct
11 Correct 7 ms 9728 KB Output is correct
12 Correct 5 ms 9728 KB Output is correct
13 Correct 5 ms 9728 KB Output is correct
14 Correct 6 ms 9728 KB Output is correct
15 Correct 6 ms 9636 KB Output is correct
16 Correct 6 ms 9728 KB Output is correct
17 Correct 6 ms 9728 KB Output is correct
18 Correct 6 ms 9728 KB Output is correct
19 Correct 6 ms 9728 KB Output is correct
20 Correct 6 ms 9728 KB Output is correct
21 Correct 6 ms 9728 KB Output is correct
22 Correct 6 ms 9728 KB Output is correct
23 Correct 6 ms 9728 KB Output is correct
24 Correct 6 ms 9728 KB Output is correct
25 Correct 6 ms 9728 KB Output is correct
26 Correct 6 ms 9728 KB Output is correct
27 Correct 6 ms 9728 KB Output is correct
28 Correct 6 ms 9728 KB Output is correct
29 Correct 5 ms 9728 KB Output is correct
30 Correct 6 ms 9728 KB Output is correct
31 Correct 6 ms 9728 KB Output is correct
32 Correct 7 ms 9728 KB Output is correct
33 Correct 6 ms 9680 KB Output is correct
34 Correct 6 ms 9728 KB Output is correct
35 Correct 6 ms 9728 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9728 KB Output is correct
2 Correct 6 ms 9728 KB Output is correct
3 Correct 6 ms 9728 KB Output is correct
4 Correct 6 ms 9728 KB Output is correct
5 Correct 6 ms 9728 KB Output is correct
6 Correct 6 ms 9728 KB Output is correct
7 Correct 6 ms 9728 KB Output is correct
8 Correct 6 ms 9728 KB Output is correct
9 Correct 6 ms 9728 KB Output is correct
10 Correct 6 ms 9728 KB Output is correct
11 Correct 7 ms 9728 KB Output is correct
12 Correct 5 ms 9728 KB Output is correct
13 Correct 5 ms 9728 KB Output is correct
14 Correct 6 ms 9728 KB Output is correct
15 Correct 6 ms 9636 KB Output is correct
16 Correct 6 ms 9728 KB Output is correct
17 Correct 6 ms 9728 KB Output is correct
18 Correct 6 ms 9728 KB Output is correct
19 Correct 6 ms 9728 KB Output is correct
20 Correct 6 ms 9728 KB Output is correct
21 Correct 6 ms 9728 KB Output is correct
22 Correct 6 ms 9728 KB Output is correct
23 Correct 6 ms 9728 KB Output is correct
24 Correct 6 ms 9728 KB Output is correct
25 Correct 6 ms 9728 KB Output is correct
26 Correct 6 ms 9728 KB Output is correct
27 Correct 6 ms 9728 KB Output is correct
28 Correct 6 ms 9728 KB Output is correct
29 Correct 5 ms 9728 KB Output is correct
30 Correct 6 ms 9728 KB Output is correct
31 Correct 6 ms 9728 KB Output is correct
32 Correct 7 ms 9728 KB Output is correct
33 Correct 6 ms 9680 KB Output is correct
34 Correct 6 ms 9728 KB Output is correct
35 Correct 6 ms 9728 KB Output is correct
36 Correct 5 ms 9728 KB Output is correct
37 Correct 6 ms 9728 KB Output is correct
38 Correct 6 ms 9728 KB Output is correct
39 Correct 6 ms 9728 KB Output is correct
40 Correct 6 ms 9728 KB Output is correct
41 Correct 6 ms 9728 KB Output is correct
42 Correct 6 ms 9728 KB Output is correct
43 Correct 5 ms 9728 KB Output is correct
44 Correct 6 ms 9728 KB Output is correct
45 Correct 6 ms 9728 KB Output is correct
46 Correct 6 ms 9728 KB Output is correct
47 Correct 6 ms 9728 KB Output is correct
48 Correct 5 ms 9728 KB Output is correct
49 Correct 6 ms 9728 KB Output is correct
50 Correct 6 ms 9728 KB Output is correct
51 Correct 7 ms 9728 KB Output is correct
52 Correct 6 ms 9728 KB Output is correct
53 Correct 6 ms 9728 KB Output is correct
54 Correct 6 ms 9728 KB Output is correct
55 Correct 6 ms 9776 KB Output is correct
56 Correct 6 ms 9728 KB Output is correct
57 Correct 6 ms 9728 KB Output is correct
58 Correct 6 ms 9728 KB Output is correct
59 Correct 6 ms 9728 KB Output is correct
60 Correct 8 ms 9856 KB Output is correct
61 Correct 6 ms 9728 KB Output is correct
62 Correct 6 ms 9728 KB Output is correct
63 Correct 6 ms 9728 KB Output is correct
64 Correct 6 ms 9728 KB Output is correct
65 Correct 7 ms 9856 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 72 ms 23152 KB Output is correct
2 Correct 84 ms 23152 KB Output is correct
3 Correct 106 ms 24984 KB Output is correct
4 Correct 79 ms 24432 KB Output is correct
5 Correct 83 ms 22644 KB Output is correct
6 Correct 87 ms 25204 KB Output is correct
7 Correct 98 ms 23288 KB Output is correct
8 Correct 90 ms 23832 KB Output is correct
9 Correct 104 ms 21752 KB Output is correct
10 Correct 96 ms 21624 KB Output is correct
11 Correct 93 ms 19064 KB Output is correct
12 Correct 71 ms 18808 KB Output is correct
13 Correct 77 ms 18808 KB Output is correct
14 Correct 77 ms 18556 KB Output is correct
15 Correct 66 ms 17524 KB Output is correct
16 Correct 63 ms 17396 KB Output is correct
17 Correct 8 ms 11912 KB Output is correct
18 Correct 11 ms 11912 KB Output is correct
19 Correct 9 ms 11908 KB Output is correct
20 Correct 8 ms 11908 KB Output is correct
21 Correct 8 ms 11900 KB Output is correct
22 Correct 8 ms 11900 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 9856 KB Output is correct
2 Correct 6 ms 9856 KB Output is correct
3 Correct 6 ms 9856 KB Output is correct
4 Correct 6 ms 9984 KB Output is correct
5 Correct 6 ms 9984 KB Output is correct
6 Correct 6 ms 9856 KB Output is correct
7 Correct 6 ms 9984 KB Output is correct
8 Correct 6 ms 9856 KB Output is correct
9 Correct 6 ms 9856 KB Output is correct
10 Correct 6 ms 9856 KB Output is correct
11 Correct 6 ms 9856 KB Output is correct
12 Correct 6 ms 9856 KB Output is correct
13 Correct 6 ms 9856 KB Output is correct
14 Correct 6 ms 9856 KB Output is correct
15 Correct 7 ms 9856 KB Output is correct
16 Correct 8 ms 9856 KB Output is correct
17 Correct 6 ms 9856 KB Output is correct
18 Correct 6 ms 9856 KB Output is correct
19 Correct 6 ms 9856 KB Output is correct
20 Correct 6 ms 9856 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 86 ms 21292 KB Output is correct
2 Correct 91 ms 21368 KB Output is correct
3 Correct 96 ms 21368 KB Output is correct
4 Correct 91 ms 21368 KB Output is correct
5 Correct 93 ms 21292 KB Output is correct
6 Correct 109 ms 31476 KB Output is correct
7 Correct 102 ms 27764 KB Output is correct
8 Correct 101 ms 26232 KB Output is correct
9 Correct 113 ms 24628 KB Output is correct
10 Correct 99 ms 21368 KB Output is correct
11 Correct 85 ms 21368 KB Output is correct
12 Correct 88 ms 21368 KB Output is correct
13 Correct 91 ms 21368 KB Output is correct
14 Correct 85 ms 20856 KB Output is correct
15 Correct 83 ms 20216 KB Output is correct
16 Correct 48 ms 17780 KB Output is correct
17 Correct 55 ms 20464 KB Output is correct
18 Correct 55 ms 20464 KB Output is correct
19 Correct 63 ms 20692 KB Output is correct
20 Correct 55 ms 20472 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9856 KB Output is correct
2 Correct 6 ms 9856 KB Output is correct
3 Correct 9 ms 9856 KB Output is correct
4 Correct 6 ms 9856 KB Output is correct
5 Correct 7 ms 9856 KB Output is correct
6 Correct 6 ms 9856 KB Output is correct
7 Correct 6 ms 9856 KB Output is correct
8 Correct 6 ms 9856 KB Output is correct
9 Correct 6 ms 9856 KB Output is correct
10 Correct 8 ms 9856 KB Output is correct
11 Correct 9 ms 9856 KB Output is correct
12 Correct 6 ms 9856 KB Output is correct
13 Correct 6 ms 9856 KB Output is correct
14 Correct 6 ms 9856 KB Output is correct
15 Correct 6 ms 9856 KB Output is correct
16 Correct 6 ms 9856 KB Output is correct
17 Correct 6 ms 9856 KB Output is correct
18 Correct 6 ms 9856 KB Output is correct
19 Correct 6 ms 9856 KB Output is correct
20 Correct 6 ms 9856 KB Output is correct
21 Correct 6 ms 9856 KB Output is correct
22 Correct 6 ms 9856 KB Output is correct
23 Correct 6 ms 9856 KB Output is correct
24 Correct 6 ms 9856 KB Output is correct
25 Correct 6 ms 9728 KB Output is correct
26 Correct 6 ms 9728 KB Output is correct
27 Correct 6 ms 9728 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 91 ms 21368 KB Output is correct
2 Correct 89 ms 21624 KB Output is correct
3 Correct 93 ms 20984 KB Output is correct
4 Correct 94 ms 19704 KB Output is correct
5 Correct 106 ms 18296 KB Output is correct
6 Correct 81 ms 17784 KB Output is correct
7 Correct 77 ms 17400 KB Output is correct
8 Correct 75 ms 17016 KB Output is correct
9 Correct 74 ms 16888 KB Output is correct
10 Correct 80 ms 16776 KB Output is correct
11 Correct 84 ms 16632 KB Output is correct
12 Correct 62 ms 16504 KB Output is correct
13 Correct 73 ms 16632 KB Output is correct
14 Correct 72 ms 18548 KB Output is correct
15 Correct 117 ms 27588 KB Output is correct
16 Correct 100 ms 25208 KB Output is correct
17 Correct 102 ms 25840 KB Output is correct
18 Correct 101 ms 23928 KB Output is correct
19 Correct 98 ms 19704 KB Output is correct
20 Correct 105 ms 19704 KB Output is correct
21 Correct 96 ms 19680 KB Output is correct
22 Correct 92 ms 19064 KB Output is correct
23 Correct 77 ms 18424 KB Output is correct
24 Correct 93 ms 20600 KB Output is correct
25 Correct 93 ms 20796 KB Output is correct
26 Correct 84 ms 19960 KB Output is correct
27 Correct 110 ms 19960 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9728 KB Output is correct
2 Correct 6 ms 9728 KB Output is correct
3 Correct 6 ms 9728 KB Output is correct
4 Correct 6 ms 9728 KB Output is correct
5 Correct 6 ms 9728 KB Output is correct
6 Correct 6 ms 9728 KB Output is correct
7 Correct 6 ms 9728 KB Output is correct
8 Correct 6 ms 9728 KB Output is correct
9 Correct 6 ms 9728 KB Output is correct
10 Correct 6 ms 9728 KB Output is correct
11 Correct 7 ms 9728 KB Output is correct
12 Correct 5 ms 9728 KB Output is correct
13 Correct 5 ms 9728 KB Output is correct
14 Correct 6 ms 9728 KB Output is correct
15 Correct 6 ms 9636 KB Output is correct
16 Correct 6 ms 9728 KB Output is correct
17 Correct 6 ms 9728 KB Output is correct
18 Correct 6 ms 9728 KB Output is correct
19 Correct 6 ms 9728 KB Output is correct
20 Correct 6 ms 9728 KB Output is correct
21 Correct 6 ms 9728 KB Output is correct
22 Correct 6 ms 9728 KB Output is correct
23 Correct 6 ms 9728 KB Output is correct
24 Correct 6 ms 9728 KB Output is correct
25 Correct 6 ms 9728 KB Output is correct
26 Correct 6 ms 9728 KB Output is correct
27 Correct 6 ms 9728 KB Output is correct
28 Correct 6 ms 9728 KB Output is correct
29 Correct 5 ms 9728 KB Output is correct
30 Correct 6 ms 9728 KB Output is correct
31 Correct 6 ms 9728 KB Output is correct
32 Correct 7 ms 9728 KB Output is correct
33 Correct 6 ms 9680 KB Output is correct
34 Correct 6 ms 9728 KB Output is correct
35 Correct 6 ms 9728 KB Output is correct
36 Correct 5 ms 9728 KB Output is correct
37 Correct 6 ms 9728 KB Output is correct
38 Correct 6 ms 9728 KB Output is correct
39 Correct 6 ms 9728 KB Output is correct
40 Correct 6 ms 9728 KB Output is correct
41 Correct 6 ms 9728 KB Output is correct
42 Correct 6 ms 9728 KB Output is correct
43 Correct 5 ms 9728 KB Output is correct
44 Correct 6 ms 9728 KB Output is correct
45 Correct 6 ms 9728 KB Output is correct
46 Correct 6 ms 9728 KB Output is correct
47 Correct 6 ms 9728 KB Output is correct
48 Correct 5 ms 9728 KB Output is correct
49 Correct 6 ms 9728 KB Output is correct
50 Correct 6 ms 9728 KB Output is correct
51 Correct 7 ms 9728 KB Output is correct
52 Correct 6 ms 9728 KB Output is correct
53 Correct 6 ms 9728 KB Output is correct
54 Correct 6 ms 9728 KB Output is correct
55 Correct 6 ms 9776 KB Output is correct
56 Correct 6 ms 9728 KB Output is correct
57 Correct 6 ms 9728 KB Output is correct
58 Correct 6 ms 9728 KB Output is correct
59 Correct 6 ms 9728 KB Output is correct
60 Correct 8 ms 9856 KB Output is correct
61 Correct 6 ms 9728 KB Output is correct
62 Correct 6 ms 9728 KB Output is correct
63 Correct 6 ms 9728 KB Output is correct
64 Correct 6 ms 9728 KB Output is correct
65 Correct 7 ms 9856 KB Output is correct
66 Correct 5 ms 9728 KB Output is correct
67 Correct 8 ms 9856 KB Output is correct
68 Correct 6 ms 9856 KB Output is correct
69 Correct 9 ms 9856 KB Output is correct
70 Correct 7 ms 9856 KB Output is correct
71 Correct 6 ms 9856 KB Output is correct
72 Correct 6 ms 9856 KB Output is correct
73 Correct 6 ms 9856 KB Output is correct
74 Correct 6 ms 9856 KB Output is correct
75 Correct 6 ms 9856 KB Output is correct
76 Correct 5 ms 9728 KB Output is correct
77 Correct 6 ms 9856 KB Output is correct
78 Correct 6 ms 9856 KB Output is correct
79 Correct 6 ms 9856 KB Output is correct
80 Correct 6 ms 9856 KB Output is correct
81 Correct 6 ms 9856 KB Output is correct
82 Correct 6 ms 9856 KB Output is correct
83 Correct 8 ms 9856 KB Output is correct
84 Correct 10 ms 9856 KB Output is correct
85 Correct 6 ms 9856 KB Output is correct
86 Correct 6 ms 9856 KB Output is correct
87 Correct 6 ms 9856 KB Output is correct
88 Correct 7 ms 9856 KB Output is correct
89 Correct 6 ms 9856 KB Output is correct
90 Correct 6 ms 9856 KB Output is correct
91 Correct 6 ms 9856 KB Output is correct
92 Correct 7 ms 9856 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9728 KB Output is correct
2 Correct 6 ms 9728 KB Output is correct
3 Correct 6 ms 9728 KB Output is correct
4 Correct 6 ms 9728 KB Output is correct
5 Correct 6 ms 9728 KB Output is correct
6 Correct 6 ms 9728 KB Output is correct
7 Correct 6 ms 9728 KB Output is correct
8 Correct 6 ms 9728 KB Output is correct
9 Correct 6 ms 9728 KB Output is correct
10 Correct 6 ms 9728 KB Output is correct
11 Correct 7 ms 9728 KB Output is correct
12 Correct 5 ms 9728 KB Output is correct
13 Correct 5 ms 9728 KB Output is correct
14 Correct 6 ms 9728 KB Output is correct
15 Correct 6 ms 9636 KB Output is correct
16 Correct 6 ms 9728 KB Output is correct
17 Correct 6 ms 9728 KB Output is correct
18 Correct 6 ms 9728 KB Output is correct
19 Correct 6 ms 9728 KB Output is correct
20 Correct 6 ms 9728 KB Output is correct
21 Correct 6 ms 9728 KB Output is correct
22 Correct 6 ms 9728 KB Output is correct
23 Correct 6 ms 9728 KB Output is correct
24 Correct 6 ms 9728 KB Output is correct
25 Correct 6 ms 9728 KB Output is correct
26 Correct 6 ms 9728 KB Output is correct
27 Correct 6 ms 9728 KB Output is correct
28 Correct 6 ms 9728 KB Output is correct
29 Correct 5 ms 9728 KB Output is correct
30 Correct 6 ms 9728 KB Output is correct
31 Correct 6 ms 9728 KB Output is correct
32 Correct 7 ms 9728 KB Output is correct
33 Correct 6 ms 9680 KB Output is correct
34 Correct 6 ms 9728 KB Output is correct
35 Correct 6 ms 9728 KB Output is correct
36 Correct 5 ms 9728 KB Output is correct
37 Correct 6 ms 9728 KB Output is correct
38 Correct 6 ms 9728 KB Output is correct
39 Correct 6 ms 9728 KB Output is correct
40 Correct 6 ms 9728 KB Output is correct
41 Correct 6 ms 9728 KB Output is correct
42 Correct 6 ms 9728 KB Output is correct
43 Correct 5 ms 9728 KB Output is correct
44 Correct 6 ms 9728 KB Output is correct
45 Correct 6 ms 9728 KB Output is correct
46 Correct 6 ms 9728 KB Output is correct
47 Correct 6 ms 9728 KB Output is correct
48 Correct 5 ms 9728 KB Output is correct
49 Correct 6 ms 9728 KB Output is correct
50 Correct 6 ms 9728 KB Output is correct
51 Correct 7 ms 9728 KB Output is correct
52 Correct 6 ms 9728 KB Output is correct
53 Correct 6 ms 9728 KB Output is correct
54 Correct 6 ms 9728 KB Output is correct
55 Correct 6 ms 9776 KB Output is correct
56 Correct 6 ms 9728 KB Output is correct
57 Correct 6 ms 9728 KB Output is correct
58 Correct 6 ms 9728 KB Output is correct
59 Correct 6 ms 9728 KB Output is correct
60 Correct 8 ms 9856 KB Output is correct
61 Correct 6 ms 9728 KB Output is correct
62 Correct 6 ms 9728 KB Output is correct
63 Correct 6 ms 9728 KB Output is correct
64 Correct 6 ms 9728 KB Output is correct
65 Correct 7 ms 9856 KB Output is correct
66 Correct 72 ms 23152 KB Output is correct
67 Correct 84 ms 23152 KB Output is correct
68 Correct 106 ms 24984 KB Output is correct
69 Correct 79 ms 24432 KB Output is correct
70 Correct 83 ms 22644 KB Output is correct
71 Correct 87 ms 25204 KB Output is correct
72 Correct 98 ms 23288 KB Output is correct
73 Correct 90 ms 23832 KB Output is correct
74 Correct 104 ms 21752 KB Output is correct
75 Correct 96 ms 21624 KB Output is correct
76 Correct 93 ms 19064 KB Output is correct
77 Correct 71 ms 18808 KB Output is correct
78 Correct 77 ms 18808 KB Output is correct
79 Correct 77 ms 18556 KB Output is correct
80 Correct 66 ms 17524 KB Output is correct
81 Correct 63 ms 17396 KB Output is correct
82 Correct 8 ms 11912 KB Output is correct
83 Correct 11 ms 11912 KB Output is correct
84 Correct 9 ms 11908 KB Output is correct
85 Correct 8 ms 11908 KB Output is correct
86 Correct 8 ms 11900 KB Output is correct
87 Correct 8 ms 11900 KB Output is correct
88 Correct 9 ms 9856 KB Output is correct
89 Correct 6 ms 9856 KB Output is correct
90 Correct 6 ms 9856 KB Output is correct
91 Correct 6 ms 9984 KB Output is correct
92 Correct 6 ms 9984 KB Output is correct
93 Correct 6 ms 9856 KB Output is correct
94 Correct 6 ms 9984 KB Output is correct
95 Correct 6 ms 9856 KB Output is correct
96 Correct 6 ms 9856 KB Output is correct
97 Correct 6 ms 9856 KB Output is correct
98 Correct 6 ms 9856 KB Output is correct
99 Correct 6 ms 9856 KB Output is correct
100 Correct 6 ms 9856 KB Output is correct
101 Correct 6 ms 9856 KB Output is correct
102 Correct 7 ms 9856 KB Output is correct
103 Correct 8 ms 9856 KB Output is correct
104 Correct 6 ms 9856 KB Output is correct
105 Correct 6 ms 9856 KB Output is correct
106 Correct 6 ms 9856 KB Output is correct
107 Correct 6 ms 9856 KB Output is correct
108 Correct 86 ms 21292 KB Output is correct
109 Correct 91 ms 21368 KB Output is correct
110 Correct 96 ms 21368 KB Output is correct
111 Correct 91 ms 21368 KB Output is correct
112 Correct 93 ms 21292 KB Output is correct
113 Correct 109 ms 31476 KB Output is correct
114 Correct 102 ms 27764 KB Output is correct
115 Correct 101 ms 26232 KB Output is correct
116 Correct 113 ms 24628 KB Output is correct
117 Correct 99 ms 21368 KB Output is correct
118 Correct 85 ms 21368 KB Output is correct
119 Correct 88 ms 21368 KB Output is correct
120 Correct 91 ms 21368 KB Output is correct
121 Correct 85 ms 20856 KB Output is correct
122 Correct 83 ms 20216 KB Output is correct
123 Correct 48 ms 17780 KB Output is correct
124 Correct 55 ms 20464 KB Output is correct
125 Correct 55 ms 20464 KB Output is correct
126 Correct 63 ms 20692 KB Output is correct
127 Correct 55 ms 20472 KB Output is correct
128 Correct 6 ms 9856 KB Output is correct
129 Correct 6 ms 9856 KB Output is correct
130 Correct 9 ms 9856 KB Output is correct
131 Correct 6 ms 9856 KB Output is correct
132 Correct 7 ms 9856 KB Output is correct
133 Correct 6 ms 9856 KB Output is correct
134 Correct 6 ms 9856 KB Output is correct
135 Correct 6 ms 9856 KB Output is correct
136 Correct 6 ms 9856 KB Output is correct
137 Correct 8 ms 9856 KB Output is correct
138 Correct 9 ms 9856 KB Output is correct
139 Correct 6 ms 9856 KB Output is correct
140 Correct 6 ms 9856 KB Output is correct
141 Correct 6 ms 9856 KB Output is correct
142 Correct 6 ms 9856 KB Output is correct
143 Correct 6 ms 9856 KB Output is correct
144 Correct 6 ms 9856 KB Output is correct
145 Correct 6 ms 9856 KB Output is correct
146 Correct 6 ms 9856 KB Output is correct
147 Correct 6 ms 9856 KB Output is correct
148 Correct 6 ms 9856 KB Output is correct
149 Correct 6 ms 9856 KB Output is correct
150 Correct 6 ms 9856 KB Output is correct
151 Correct 6 ms 9856 KB Output is correct
152 Correct 6 ms 9728 KB Output is correct
153 Correct 6 ms 9728 KB Output is correct
154 Correct 6 ms 9728 KB Output is correct
155 Correct 91 ms 21368 KB Output is correct
156 Correct 89 ms 21624 KB Output is correct
157 Correct 93 ms 20984 KB Output is correct
158 Correct 94 ms 19704 KB Output is correct
159 Correct 106 ms 18296 KB Output is correct
160 Correct 81 ms 17784 KB Output is correct
161 Correct 77 ms 17400 KB Output is correct
162 Correct 75 ms 17016 KB Output is correct
163 Correct 74 ms 16888 KB Output is correct
164 Correct 80 ms 16776 KB Output is correct
165 Correct 84 ms 16632 KB Output is correct
166 Correct 62 ms 16504 KB Output is correct
167 Correct 73 ms 16632 KB Output is correct
168 Correct 72 ms 18548 KB Output is correct
169 Correct 117 ms 27588 KB Output is correct
170 Correct 100 ms 25208 KB Output is correct
171 Correct 102 ms 25840 KB Output is correct
172 Correct 101 ms 23928 KB Output is correct
173 Correct 98 ms 19704 KB Output is correct
174 Correct 105 ms 19704 KB Output is correct
175 Correct 96 ms 19680 KB Output is correct
176 Correct 92 ms 19064 KB Output is correct
177 Correct 77 ms 18424 KB Output is correct
178 Correct 93 ms 20600 KB Output is correct
179 Correct 93 ms 20796 KB Output is correct
180 Correct 84 ms 19960 KB Output is correct
181 Correct 110 ms 19960 KB Output is correct
182 Correct 5 ms 9728 KB Output is correct
183 Correct 8 ms 9856 KB Output is correct
184 Correct 6 ms 9856 KB Output is correct
185 Correct 9 ms 9856 KB Output is correct
186 Correct 7 ms 9856 KB Output is correct
187 Correct 6 ms 9856 KB Output is correct
188 Correct 6 ms 9856 KB Output is correct
189 Correct 6 ms 9856 KB Output is correct
190 Correct 6 ms 9856 KB Output is correct
191 Correct 6 ms 9856 KB Output is correct
192 Correct 5 ms 9728 KB Output is correct
193 Correct 6 ms 9856 KB Output is correct
194 Correct 6 ms 9856 KB Output is correct
195 Correct 6 ms 9856 KB Output is correct
196 Correct 6 ms 9856 KB Output is correct
197 Correct 6 ms 9856 KB Output is correct
198 Correct 6 ms 9856 KB Output is correct
199 Correct 8 ms 9856 KB Output is correct
200 Correct 10 ms 9856 KB Output is correct
201 Correct 6 ms 9856 KB Output is correct
202 Correct 6 ms 9856 KB Output is correct
203 Correct 6 ms 9856 KB Output is correct
204 Correct 7 ms 9856 KB Output is correct
205 Correct 6 ms 9856 KB Output is correct
206 Correct 6 ms 9856 KB Output is correct
207 Correct 6 ms 9856 KB Output is correct
208 Correct 7 ms 9856 KB Output is correct
209 Correct 8 ms 11900 KB Output is correct
210 Correct 62 ms 17396 KB Output is correct
211 Correct 92 ms 20212 KB Output is correct
212 Correct 122 ms 22016 KB Output is correct
213 Correct 155 ms 23664 KB Output is correct
214 Correct 59 ms 18424 KB Output is correct
215 Correct 62 ms 18168 KB Output is correct
216 Correct 92 ms 19960 KB Output is correct
217 Correct 92 ms 18552 KB Output is correct
218 Correct 74 ms 17016 KB Output is correct
219 Correct 70 ms 16632 KB Output is correct
220 Correct 85 ms 16556 KB Output is correct
221 Correct 65 ms 16504 KB Output is correct
222 Correct 65 ms 17528 KB Output is correct
223 Correct 106 ms 21368 KB Output is correct
224 Correct 97 ms 20472 KB Output is correct
225 Correct 104 ms 18296 KB Output is correct
226 Correct 94 ms 18200 KB Output is correct
227 Correct 89 ms 18168 KB Output is correct
228 Correct 83 ms 18040 KB Output is correct
229 Correct 74 ms 17656 KB Output is correct
230 Correct 86 ms 18296 KB Output is correct
231 Correct 85 ms 18296 KB Output is correct