답안 #453684

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
453684 2021-08-04T14:49:12 Z arminatarod 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
148 ms 32192 KB
#include <bits/stdc++.h>

using namespace std;

constexpr int MAXN = 200005;

constexpr int COMPONENT = 100002;

constexpr int MAXINT = 1073741823;

vector<long long int> neighbors[MAXN], links[MAXN];

bitset<MAXN> visited;

long long int answer, current_size, current_component;

long long int height[MAXN], minimum_height[MAXN], real_vertices[MAXN];

vector<int> current_vertices;

void dfs(int v, int level) {
	visited[v] = true;
	current_size++;
	height[v] = level;
	minimum_height[v] = height[v];
	current_vertices.push_back(v);
	for (int i : neighbors[v])
		if (visited[i])
			minimum_height[v] = min(minimum_height[v], height[i]);
		else {
			dfs(i, level + 1);
			minimum_height[v] = min(minimum_height[v], minimum_height[i]);
			if (minimum_height[i] >= height[v]) {
				links[v].push_back(COMPONENT + current_component);
				while (links[COMPONENT + current_component].empty() || links[COMPONENT + current_component].back() != i) {
					links[COMPONENT + current_component].push_back(current_vertices.back());
					current_vertices.pop_back();
				}
				current_component++;
			}
		}
	return;
}

void recheck(int v) {
	real_vertices[v] = (v < COMPONENT? 1 : 0);
	for (int i : links[v]) {
		recheck(i);
		real_vertices[v] += real_vertices[i];
		if (v >= COMPONENT)
			answer -= (long long int)links[v].size() * real_vertices[i] * (real_vertices[i] - 1LL);
	}
	if (v >= COMPONENT)
		answer -= (long long int)links[v].size() * (current_size - real_vertices[v]) * (current_size - real_vertices[v] - 1LL);
	return;
}

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	int n, m, u, v;
	cin >> n >> m;
	for (int i = 0; i < m; i++) {
		cin >> u >> v;
		u--;
		v--;
		neighbors[u].push_back(v);
		neighbors[v].push_back(u);
	}
	for (int i = 0; i < n; i++)
		if (!visited[i]) {
			current_size = 0;
			dfs(i, 0);
			answer += current_size * (current_size - 1LL) * (current_size - 2LL);
			recheck(i);
		}
	cout << answer;
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9676 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 6 ms 9708 KB Output is correct
4 Correct 7 ms 9804 KB Output is correct
5 Correct 6 ms 9708 KB Output is correct
6 Correct 7 ms 9676 KB Output is correct
7 Correct 6 ms 9676 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 6 ms 9676 KB Output is correct
10 Correct 6 ms 9676 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9716 KB Output is correct
13 Correct 7 ms 9716 KB Output is correct
14 Correct 6 ms 9628 KB Output is correct
15 Correct 6 ms 9676 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9676 KB Output is correct
18 Correct 6 ms 9676 KB Output is correct
19 Correct 6 ms 9696 KB Output is correct
20 Correct 6 ms 9676 KB Output is correct
21 Correct 6 ms 9676 KB Output is correct
22 Correct 6 ms 9676 KB Output is correct
23 Correct 6 ms 9676 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 6 ms 9716 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9632 KB Output is correct
28 Correct 6 ms 9676 KB Output is correct
29 Correct 6 ms 9676 KB Output is correct
30 Correct 6 ms 9676 KB Output is correct
31 Correct 6 ms 9676 KB Output is correct
32 Correct 6 ms 9676 KB Output is correct
33 Correct 6 ms 9676 KB Output is correct
34 Correct 6 ms 9708 KB Output is correct
35 Correct 6 ms 9676 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9676 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 6 ms 9708 KB Output is correct
4 Correct 7 ms 9804 KB Output is correct
5 Correct 6 ms 9708 KB Output is correct
6 Correct 7 ms 9676 KB Output is correct
7 Correct 6 ms 9676 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 6 ms 9676 KB Output is correct
10 Correct 6 ms 9676 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9716 KB Output is correct
13 Correct 7 ms 9716 KB Output is correct
14 Correct 6 ms 9628 KB Output is correct
15 Correct 6 ms 9676 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9676 KB Output is correct
18 Correct 6 ms 9676 KB Output is correct
19 Correct 6 ms 9696 KB Output is correct
20 Correct 6 ms 9676 KB Output is correct
21 Correct 6 ms 9676 KB Output is correct
22 Correct 6 ms 9676 KB Output is correct
23 Correct 6 ms 9676 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 6 ms 9716 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9632 KB Output is correct
28 Correct 6 ms 9676 KB Output is correct
29 Correct 6 ms 9676 KB Output is correct
30 Correct 6 ms 9676 KB Output is correct
31 Correct 6 ms 9676 KB Output is correct
32 Correct 6 ms 9676 KB Output is correct
33 Correct 6 ms 9676 KB Output is correct
34 Correct 6 ms 9708 KB Output is correct
35 Correct 6 ms 9676 KB Output is correct
36 Correct 6 ms 9716 KB Output is correct
37 Correct 6 ms 9712 KB Output is correct
38 Correct 6 ms 9676 KB Output is correct
39 Correct 6 ms 9676 KB Output is correct
40 Correct 6 ms 9676 KB Output is correct
41 Correct 7 ms 9668 KB Output is correct
42 Correct 6 ms 9708 KB Output is correct
43 Correct 6 ms 9676 KB Output is correct
44 Correct 6 ms 9676 KB Output is correct
45 Correct 6 ms 9676 KB Output is correct
46 Correct 7 ms 9740 KB Output is correct
47 Correct 6 ms 9676 KB Output is correct
48 Correct 6 ms 9728 KB Output is correct
49 Correct 6 ms 9676 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 7 ms 9676 KB Output is correct
52 Correct 6 ms 9676 KB Output is correct
53 Correct 6 ms 9640 KB Output is correct
54 Correct 6 ms 9676 KB Output is correct
55 Correct 6 ms 9676 KB Output is correct
56 Correct 7 ms 9708 KB Output is correct
57 Correct 6 ms 9712 KB Output is correct
58 Correct 6 ms 9676 KB Output is correct
59 Correct 6 ms 9676 KB Output is correct
60 Correct 6 ms 9676 KB Output is correct
61 Correct 6 ms 9676 KB Output is correct
62 Correct 6 ms 9680 KB Output is correct
63 Correct 6 ms 9740 KB Output is correct
64 Correct 7 ms 9676 KB Output is correct
65 Correct 6 ms 9676 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 82 ms 27040 KB Output is correct
2 Correct 105 ms 27144 KB Output is correct
3 Correct 113 ms 26976 KB Output is correct
4 Correct 104 ms 26752 KB Output is correct
5 Correct 85 ms 23548 KB Output is correct
6 Correct 89 ms 26140 KB Output is correct
7 Correct 101 ms 24280 KB Output is correct
8 Correct 98 ms 24884 KB Output is correct
9 Correct 88 ms 22612 KB Output is correct
10 Correct 87 ms 22572 KB Output is correct
11 Correct 82 ms 19708 KB Output is correct
12 Correct 75 ms 19608 KB Output is correct
13 Correct 84 ms 19556 KB Output is correct
14 Correct 74 ms 19312 KB Output is correct
15 Correct 53 ms 18240 KB Output is correct
16 Correct 57 ms 18060 KB Output is correct
17 Correct 9 ms 12624 KB Output is correct
18 Correct 10 ms 12624 KB Output is correct
19 Correct 10 ms 12624 KB Output is correct
20 Correct 9 ms 12624 KB Output is correct
21 Correct 11 ms 12528 KB Output is correct
22 Correct 10 ms 12620 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9844 KB Output is correct
2 Correct 7 ms 9804 KB Output is correct
3 Correct 7 ms 9804 KB Output is correct
4 Correct 7 ms 9972 KB Output is correct
5 Correct 7 ms 9840 KB Output is correct
6 Correct 8 ms 9804 KB Output is correct
7 Correct 7 ms 9932 KB Output is correct
8 Correct 6 ms 9804 KB Output is correct
9 Correct 6 ms 9804 KB Output is correct
10 Correct 8 ms 9804 KB Output is correct
11 Correct 6 ms 9848 KB Output is correct
12 Correct 6 ms 9804 KB Output is correct
13 Correct 6 ms 9804 KB Output is correct
14 Correct 6 ms 9844 KB Output is correct
15 Correct 7 ms 9804 KB Output is correct
16 Correct 7 ms 9732 KB Output is correct
17 Correct 6 ms 9804 KB Output is correct
18 Correct 7 ms 9776 KB Output is correct
19 Correct 6 ms 9804 KB Output is correct
20 Correct 6 ms 9804 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 89 ms 22768 KB Output is correct
2 Correct 97 ms 22852 KB Output is correct
3 Correct 96 ms 22744 KB Output is correct
4 Correct 99 ms 22732 KB Output is correct
5 Correct 88 ms 22768 KB Output is correct
6 Correct 110 ms 32192 KB Output is correct
7 Correct 106 ms 28896 KB Output is correct
8 Correct 104 ms 27296 KB Output is correct
9 Correct 108 ms 25796 KB Output is correct
10 Correct 96 ms 22764 KB Output is correct
11 Correct 107 ms 22772 KB Output is correct
12 Correct 98 ms 22792 KB Output is correct
13 Correct 109 ms 22844 KB Output is correct
14 Correct 110 ms 22104 KB Output is correct
15 Correct 75 ms 21232 KB Output is correct
16 Correct 50 ms 18524 KB Output is correct
17 Correct 61 ms 21928 KB Output is correct
18 Correct 61 ms 21936 KB Output is correct
19 Correct 59 ms 22212 KB Output is correct
20 Correct 59 ms 21952 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9804 KB Output is correct
2 Correct 6 ms 9804 KB Output is correct
3 Correct 6 ms 9804 KB Output is correct
4 Correct 6 ms 9804 KB Output is correct
5 Correct 6 ms 9804 KB Output is correct
6 Correct 6 ms 9804 KB Output is correct
7 Correct 6 ms 9804 KB Output is correct
8 Correct 7 ms 9804 KB Output is correct
9 Correct 7 ms 9804 KB Output is correct
10 Correct 6 ms 9804 KB Output is correct
11 Correct 6 ms 9824 KB Output is correct
12 Correct 7 ms 9804 KB Output is correct
13 Correct 7 ms 9804 KB Output is correct
14 Correct 7 ms 9888 KB Output is correct
15 Correct 7 ms 9804 KB Output is correct
16 Correct 7 ms 9804 KB Output is correct
17 Correct 7 ms 9848 KB Output is correct
18 Correct 7 ms 9848 KB Output is correct
19 Correct 7 ms 9804 KB Output is correct
20 Correct 7 ms 9804 KB Output is correct
21 Correct 7 ms 9848 KB Output is correct
22 Correct 7 ms 9812 KB Output is correct
23 Correct 7 ms 9844 KB Output is correct
24 Correct 7 ms 9844 KB Output is correct
25 Correct 7 ms 9760 KB Output is correct
26 Correct 7 ms 9676 KB Output is correct
27 Correct 7 ms 9712 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 103 ms 22724 KB Output is correct
2 Correct 99 ms 22880 KB Output is correct
3 Correct 110 ms 22404 KB Output is correct
4 Correct 124 ms 21316 KB Output is correct
5 Correct 89 ms 19848 KB Output is correct
6 Correct 85 ms 19224 KB Output is correct
7 Correct 84 ms 18872 KB Output is correct
8 Correct 96 ms 18472 KB Output is correct
9 Correct 89 ms 18244 KB Output is correct
10 Correct 74 ms 18156 KB Output is correct
11 Correct 74 ms 17860 KB Output is correct
12 Correct 96 ms 17800 KB Output is correct
13 Correct 72 ms 17992 KB Output is correct
14 Correct 68 ms 20108 KB Output is correct
15 Correct 116 ms 28856 KB Output is correct
16 Correct 134 ms 26596 KB Output is correct
17 Correct 148 ms 27288 KB Output is correct
18 Correct 134 ms 25384 KB Output is correct
19 Correct 103 ms 21296 KB Output is correct
20 Correct 100 ms 21316 KB Output is correct
21 Correct 115 ms 21348 KB Output is correct
22 Correct 98 ms 20420 KB Output is correct
23 Correct 81 ms 19512 KB Output is correct
24 Correct 86 ms 21996 KB Output is correct
25 Correct 95 ms 22132 KB Output is correct
26 Correct 113 ms 21488 KB Output is correct
27 Correct 100 ms 21500 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9676 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 6 ms 9708 KB Output is correct
4 Correct 7 ms 9804 KB Output is correct
5 Correct 6 ms 9708 KB Output is correct
6 Correct 7 ms 9676 KB Output is correct
7 Correct 6 ms 9676 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 6 ms 9676 KB Output is correct
10 Correct 6 ms 9676 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9716 KB Output is correct
13 Correct 7 ms 9716 KB Output is correct
14 Correct 6 ms 9628 KB Output is correct
15 Correct 6 ms 9676 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9676 KB Output is correct
18 Correct 6 ms 9676 KB Output is correct
19 Correct 6 ms 9696 KB Output is correct
20 Correct 6 ms 9676 KB Output is correct
21 Correct 6 ms 9676 KB Output is correct
22 Correct 6 ms 9676 KB Output is correct
23 Correct 6 ms 9676 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 6 ms 9716 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9632 KB Output is correct
28 Correct 6 ms 9676 KB Output is correct
29 Correct 6 ms 9676 KB Output is correct
30 Correct 6 ms 9676 KB Output is correct
31 Correct 6 ms 9676 KB Output is correct
32 Correct 6 ms 9676 KB Output is correct
33 Correct 6 ms 9676 KB Output is correct
34 Correct 6 ms 9708 KB Output is correct
35 Correct 6 ms 9676 KB Output is correct
36 Correct 6 ms 9716 KB Output is correct
37 Correct 6 ms 9712 KB Output is correct
38 Correct 6 ms 9676 KB Output is correct
39 Correct 6 ms 9676 KB Output is correct
40 Correct 6 ms 9676 KB Output is correct
41 Correct 7 ms 9668 KB Output is correct
42 Correct 6 ms 9708 KB Output is correct
43 Correct 6 ms 9676 KB Output is correct
44 Correct 6 ms 9676 KB Output is correct
45 Correct 6 ms 9676 KB Output is correct
46 Correct 7 ms 9740 KB Output is correct
47 Correct 6 ms 9676 KB Output is correct
48 Correct 6 ms 9728 KB Output is correct
49 Correct 6 ms 9676 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 7 ms 9676 KB Output is correct
52 Correct 6 ms 9676 KB Output is correct
53 Correct 6 ms 9640 KB Output is correct
54 Correct 6 ms 9676 KB Output is correct
55 Correct 6 ms 9676 KB Output is correct
56 Correct 7 ms 9708 KB Output is correct
57 Correct 6 ms 9712 KB Output is correct
58 Correct 6 ms 9676 KB Output is correct
59 Correct 6 ms 9676 KB Output is correct
60 Correct 6 ms 9676 KB Output is correct
61 Correct 6 ms 9676 KB Output is correct
62 Correct 6 ms 9680 KB Output is correct
63 Correct 6 ms 9740 KB Output is correct
64 Correct 7 ms 9676 KB Output is correct
65 Correct 6 ms 9676 KB Output is correct
66 Correct 5 ms 9676 KB Output is correct
67 Correct 6 ms 9804 KB Output is correct
68 Correct 6 ms 9804 KB Output is correct
69 Correct 6 ms 9788 KB Output is correct
70 Correct 7 ms 9892 KB Output is correct
71 Correct 7 ms 9804 KB Output is correct
72 Correct 6 ms 9804 KB Output is correct
73 Correct 6 ms 9804 KB Output is correct
74 Correct 7 ms 9720 KB Output is correct
75 Correct 7 ms 9804 KB Output is correct
76 Correct 7 ms 9676 KB Output is correct
77 Correct 8 ms 9764 KB Output is correct
78 Correct 6 ms 9804 KB Output is correct
79 Correct 9 ms 9804 KB Output is correct
80 Correct 7 ms 9804 KB Output is correct
81 Correct 6 ms 9804 KB Output is correct
82 Correct 6 ms 9804 KB Output is correct
83 Correct 6 ms 9848 KB Output is correct
84 Correct 6 ms 9804 KB Output is correct
85 Correct 6 ms 9804 KB Output is correct
86 Correct 7 ms 9804 KB Output is correct
87 Correct 7 ms 9804 KB Output is correct
88 Correct 7 ms 9800 KB Output is correct
89 Correct 7 ms 9716 KB Output is correct
90 Correct 6 ms 9804 KB Output is correct
91 Correct 7 ms 9808 KB Output is correct
92 Correct 6 ms 9804 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 9676 KB Output is correct
2 Correct 6 ms 9676 KB Output is correct
3 Correct 6 ms 9708 KB Output is correct
4 Correct 7 ms 9804 KB Output is correct
5 Correct 6 ms 9708 KB Output is correct
6 Correct 7 ms 9676 KB Output is correct
7 Correct 6 ms 9676 KB Output is correct
8 Correct 6 ms 9676 KB Output is correct
9 Correct 6 ms 9676 KB Output is correct
10 Correct 6 ms 9676 KB Output is correct
11 Correct 6 ms 9676 KB Output is correct
12 Correct 6 ms 9716 KB Output is correct
13 Correct 7 ms 9716 KB Output is correct
14 Correct 6 ms 9628 KB Output is correct
15 Correct 6 ms 9676 KB Output is correct
16 Correct 6 ms 9676 KB Output is correct
17 Correct 6 ms 9676 KB Output is correct
18 Correct 6 ms 9676 KB Output is correct
19 Correct 6 ms 9696 KB Output is correct
20 Correct 6 ms 9676 KB Output is correct
21 Correct 6 ms 9676 KB Output is correct
22 Correct 6 ms 9676 KB Output is correct
23 Correct 6 ms 9676 KB Output is correct
24 Correct 6 ms 9676 KB Output is correct
25 Correct 6 ms 9716 KB Output is correct
26 Correct 6 ms 9676 KB Output is correct
27 Correct 6 ms 9632 KB Output is correct
28 Correct 6 ms 9676 KB Output is correct
29 Correct 6 ms 9676 KB Output is correct
30 Correct 6 ms 9676 KB Output is correct
31 Correct 6 ms 9676 KB Output is correct
32 Correct 6 ms 9676 KB Output is correct
33 Correct 6 ms 9676 KB Output is correct
34 Correct 6 ms 9708 KB Output is correct
35 Correct 6 ms 9676 KB Output is correct
36 Correct 6 ms 9716 KB Output is correct
37 Correct 6 ms 9712 KB Output is correct
38 Correct 6 ms 9676 KB Output is correct
39 Correct 6 ms 9676 KB Output is correct
40 Correct 6 ms 9676 KB Output is correct
41 Correct 7 ms 9668 KB Output is correct
42 Correct 6 ms 9708 KB Output is correct
43 Correct 6 ms 9676 KB Output is correct
44 Correct 6 ms 9676 KB Output is correct
45 Correct 6 ms 9676 KB Output is correct
46 Correct 7 ms 9740 KB Output is correct
47 Correct 6 ms 9676 KB Output is correct
48 Correct 6 ms 9728 KB Output is correct
49 Correct 6 ms 9676 KB Output is correct
50 Correct 6 ms 9676 KB Output is correct
51 Correct 7 ms 9676 KB Output is correct
52 Correct 6 ms 9676 KB Output is correct
53 Correct 6 ms 9640 KB Output is correct
54 Correct 6 ms 9676 KB Output is correct
55 Correct 6 ms 9676 KB Output is correct
56 Correct 7 ms 9708 KB Output is correct
57 Correct 6 ms 9712 KB Output is correct
58 Correct 6 ms 9676 KB Output is correct
59 Correct 6 ms 9676 KB Output is correct
60 Correct 6 ms 9676 KB Output is correct
61 Correct 6 ms 9676 KB Output is correct
62 Correct 6 ms 9680 KB Output is correct
63 Correct 6 ms 9740 KB Output is correct
64 Correct 7 ms 9676 KB Output is correct
65 Correct 6 ms 9676 KB Output is correct
66 Correct 82 ms 27040 KB Output is correct
67 Correct 105 ms 27144 KB Output is correct
68 Correct 113 ms 26976 KB Output is correct
69 Correct 104 ms 26752 KB Output is correct
70 Correct 85 ms 23548 KB Output is correct
71 Correct 89 ms 26140 KB Output is correct
72 Correct 101 ms 24280 KB Output is correct
73 Correct 98 ms 24884 KB Output is correct
74 Correct 88 ms 22612 KB Output is correct
75 Correct 87 ms 22572 KB Output is correct
76 Correct 82 ms 19708 KB Output is correct
77 Correct 75 ms 19608 KB Output is correct
78 Correct 84 ms 19556 KB Output is correct
79 Correct 74 ms 19312 KB Output is correct
80 Correct 53 ms 18240 KB Output is correct
81 Correct 57 ms 18060 KB Output is correct
82 Correct 9 ms 12624 KB Output is correct
83 Correct 10 ms 12624 KB Output is correct
84 Correct 10 ms 12624 KB Output is correct
85 Correct 9 ms 12624 KB Output is correct
86 Correct 11 ms 12528 KB Output is correct
87 Correct 10 ms 12620 KB Output is correct
88 Correct 6 ms 9844 KB Output is correct
89 Correct 7 ms 9804 KB Output is correct
90 Correct 7 ms 9804 KB Output is correct
91 Correct 7 ms 9972 KB Output is correct
92 Correct 7 ms 9840 KB Output is correct
93 Correct 8 ms 9804 KB Output is correct
94 Correct 7 ms 9932 KB Output is correct
95 Correct 6 ms 9804 KB Output is correct
96 Correct 6 ms 9804 KB Output is correct
97 Correct 8 ms 9804 KB Output is correct
98 Correct 6 ms 9848 KB Output is correct
99 Correct 6 ms 9804 KB Output is correct
100 Correct 6 ms 9804 KB Output is correct
101 Correct 6 ms 9844 KB Output is correct
102 Correct 7 ms 9804 KB Output is correct
103 Correct 7 ms 9732 KB Output is correct
104 Correct 6 ms 9804 KB Output is correct
105 Correct 7 ms 9776 KB Output is correct
106 Correct 6 ms 9804 KB Output is correct
107 Correct 6 ms 9804 KB Output is correct
108 Correct 89 ms 22768 KB Output is correct
109 Correct 97 ms 22852 KB Output is correct
110 Correct 96 ms 22744 KB Output is correct
111 Correct 99 ms 22732 KB Output is correct
112 Correct 88 ms 22768 KB Output is correct
113 Correct 110 ms 32192 KB Output is correct
114 Correct 106 ms 28896 KB Output is correct
115 Correct 104 ms 27296 KB Output is correct
116 Correct 108 ms 25796 KB Output is correct
117 Correct 96 ms 22764 KB Output is correct
118 Correct 107 ms 22772 KB Output is correct
119 Correct 98 ms 22792 KB Output is correct
120 Correct 109 ms 22844 KB Output is correct
121 Correct 110 ms 22104 KB Output is correct
122 Correct 75 ms 21232 KB Output is correct
123 Correct 50 ms 18524 KB Output is correct
124 Correct 61 ms 21928 KB Output is correct
125 Correct 61 ms 21936 KB Output is correct
126 Correct 59 ms 22212 KB Output is correct
127 Correct 59 ms 21952 KB Output is correct
128 Correct 6 ms 9804 KB Output is correct
129 Correct 6 ms 9804 KB Output is correct
130 Correct 6 ms 9804 KB Output is correct
131 Correct 6 ms 9804 KB Output is correct
132 Correct 6 ms 9804 KB Output is correct
133 Correct 6 ms 9804 KB Output is correct
134 Correct 6 ms 9804 KB Output is correct
135 Correct 7 ms 9804 KB Output is correct
136 Correct 7 ms 9804 KB Output is correct
137 Correct 6 ms 9804 KB Output is correct
138 Correct 6 ms 9824 KB Output is correct
139 Correct 7 ms 9804 KB Output is correct
140 Correct 7 ms 9804 KB Output is correct
141 Correct 7 ms 9888 KB Output is correct
142 Correct 7 ms 9804 KB Output is correct
143 Correct 7 ms 9804 KB Output is correct
144 Correct 7 ms 9848 KB Output is correct
145 Correct 7 ms 9848 KB Output is correct
146 Correct 7 ms 9804 KB Output is correct
147 Correct 7 ms 9804 KB Output is correct
148 Correct 7 ms 9848 KB Output is correct
149 Correct 7 ms 9812 KB Output is correct
150 Correct 7 ms 9844 KB Output is correct
151 Correct 7 ms 9844 KB Output is correct
152 Correct 7 ms 9760 KB Output is correct
153 Correct 7 ms 9676 KB Output is correct
154 Correct 7 ms 9712 KB Output is correct
155 Correct 103 ms 22724 KB Output is correct
156 Correct 99 ms 22880 KB Output is correct
157 Correct 110 ms 22404 KB Output is correct
158 Correct 124 ms 21316 KB Output is correct
159 Correct 89 ms 19848 KB Output is correct
160 Correct 85 ms 19224 KB Output is correct
161 Correct 84 ms 18872 KB Output is correct
162 Correct 96 ms 18472 KB Output is correct
163 Correct 89 ms 18244 KB Output is correct
164 Correct 74 ms 18156 KB Output is correct
165 Correct 74 ms 17860 KB Output is correct
166 Correct 96 ms 17800 KB Output is correct
167 Correct 72 ms 17992 KB Output is correct
168 Correct 68 ms 20108 KB Output is correct
169 Correct 116 ms 28856 KB Output is correct
170 Correct 134 ms 26596 KB Output is correct
171 Correct 148 ms 27288 KB Output is correct
172 Correct 134 ms 25384 KB Output is correct
173 Correct 103 ms 21296 KB Output is correct
174 Correct 100 ms 21316 KB Output is correct
175 Correct 115 ms 21348 KB Output is correct
176 Correct 98 ms 20420 KB Output is correct
177 Correct 81 ms 19512 KB Output is correct
178 Correct 86 ms 21996 KB Output is correct
179 Correct 95 ms 22132 KB Output is correct
180 Correct 113 ms 21488 KB Output is correct
181 Correct 100 ms 21500 KB Output is correct
182 Correct 5 ms 9676 KB Output is correct
183 Correct 6 ms 9804 KB Output is correct
184 Correct 6 ms 9804 KB Output is correct
185 Correct 6 ms 9788 KB Output is correct
186 Correct 7 ms 9892 KB Output is correct
187 Correct 7 ms 9804 KB Output is correct
188 Correct 6 ms 9804 KB Output is correct
189 Correct 6 ms 9804 KB Output is correct
190 Correct 7 ms 9720 KB Output is correct
191 Correct 7 ms 9804 KB Output is correct
192 Correct 7 ms 9676 KB Output is correct
193 Correct 8 ms 9764 KB Output is correct
194 Correct 6 ms 9804 KB Output is correct
195 Correct 9 ms 9804 KB Output is correct
196 Correct 7 ms 9804 KB Output is correct
197 Correct 6 ms 9804 KB Output is correct
198 Correct 6 ms 9804 KB Output is correct
199 Correct 6 ms 9848 KB Output is correct
200 Correct 6 ms 9804 KB Output is correct
201 Correct 6 ms 9804 KB Output is correct
202 Correct 7 ms 9804 KB Output is correct
203 Correct 7 ms 9804 KB Output is correct
204 Correct 7 ms 9800 KB Output is correct
205 Correct 7 ms 9716 KB Output is correct
206 Correct 6 ms 9804 KB Output is correct
207 Correct 7 ms 9808 KB Output is correct
208 Correct 6 ms 9804 KB Output is correct
209 Correct 10 ms 12528 KB Output is correct
210 Correct 50 ms 18116 KB Output is correct
211 Correct 106 ms 22068 KB Output is correct
212 Correct 136 ms 25028 KB Output is correct
213 Correct 136 ms 27632 KB Output is correct
214 Correct 55 ms 20084 KB Output is correct
215 Correct 56 ms 20052 KB Output is correct
216 Correct 106 ms 21572 KB Output is correct
217 Correct 90 ms 20156 KB Output is correct
218 Correct 92 ms 18456 KB Output is correct
219 Correct 70 ms 17988 KB Output is correct
220 Correct 83 ms 17828 KB Output is correct
221 Correct 99 ms 17764 KB Output is correct
222 Correct 86 ms 18972 KB Output is correct
223 Correct 119 ms 23184 KB Output is correct
224 Correct 131 ms 22248 KB Output is correct
225 Correct 124 ms 19780 KB Output is correct
226 Correct 99 ms 19824 KB Output is correct
227 Correct 100 ms 19908 KB Output is correct
228 Correct 100 ms 19268 KB Output is correct
229 Correct 84 ms 18888 KB Output is correct
230 Correct 86 ms 19664 KB Output is correct
231 Correct 100 ms 19780 KB Output is correct