Submission #158235

# Submission time Handle Problem Language Result Execution time Memory
158235 2019-10-15T16:31:41 Z maruii Duathlon (APIO18_duathlon) C++14
100 / 100
234 ms 26972 KB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
#define ff first
#define ss second

int n, N, M, dfn[100005], dfnn, low[100005], cpnn, sz[200005];
vector<int> edge[100005], bdge[200005];
ll ans;
bool vis[100005];

void dfs(int x, int p) {
	dfn[x] = low[x] = ++dfnn;
	N++;
	for (auto i : edge[x]) {
		if (i == p) continue;
		if (dfn[i]) {
			if (dfn[i] < dfn[x]) low[x] = min(low[x], dfn[i]);
			continue;
		}
		dfs(i, x);
		low[x] = min(low[x], low[i]);
	}
}

void bcc(int x, int c) {
	vis[x] = 1;
	if (c) {
		bdge[c].push_back(x);
		bdge[x].push_back(c);
	}
	for (auto i : edge[x]) {
		if (vis[i]) continue;
		if (low[i] >= dfn[x]) {
			++cpnn;
			bdge[x].push_back(cpnn);
			bdge[cpnn].push_back(x);
			bcc(i, cpnn);
		}
		else bcc(i, c);
	}
}

void calc(int x, int p) {
	sz[x] = x <= n;
	for (auto i : bdge[x]) {
		if (i == p) continue;
		calc(i, x);
		sz[x] += sz[i];
	}
	if (x > n) for (auto i : bdge[x]) {
		if (i == p) ans -= 1ll * (bdge[x].size() - 1) * (N - sz[x]) * (N - sz[x] - 1);
		else ans -= 1ll * (bdge[x].size() - 1) * sz[i] * (sz[i] - 1);
	}
}

int main() {
	ios_base::sync_with_stdio(0), cin.tie(0);
	cin >> n >> M;
	for (int i = 0; i < M; ++i) {
		int x, y; cin >> x >> y;
		edge[x].push_back(y);
		edge[y].push_back(x);
	}
	cpnn = n;
	for (int i = 1; i <= n; ++i) {
		if (dfn[i]) continue;
		N = 0;
		dfs(i, 0);
		ans += 1ll * N * (N - 1) * (N - 2);
		bcc(i, 0);
		calc(i, 0);
	}
	cout << ans;
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 9 ms 7416 KB Output is correct
2 Correct 8 ms 7416 KB Output is correct
3 Correct 8 ms 7416 KB Output is correct
4 Correct 8 ms 7416 KB Output is correct
5 Correct 8 ms 7368 KB Output is correct
6 Correct 8 ms 7420 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7416 KB Output is correct
9 Correct 8 ms 7416 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7416 KB Output is correct
12 Correct 8 ms 7416 KB Output is correct
13 Correct 8 ms 7416 KB Output is correct
14 Correct 8 ms 7416 KB Output is correct
15 Correct 8 ms 7416 KB Output is correct
16 Correct 8 ms 7416 KB Output is correct
17 Correct 8 ms 7416 KB Output is correct
18 Correct 8 ms 7416 KB Output is correct
19 Correct 8 ms 7416 KB Output is correct
20 Correct 8 ms 7416 KB Output is correct
21 Correct 10 ms 7468 KB Output is correct
22 Correct 8 ms 7416 KB Output is correct
23 Correct 8 ms 7416 KB Output is correct
24 Correct 8 ms 7416 KB Output is correct
25 Correct 8 ms 7544 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
28 Correct 8 ms 7420 KB Output is correct
29 Correct 8 ms 7416 KB Output is correct
30 Correct 8 ms 7448 KB Output is correct
31 Correct 8 ms 7416 KB Output is correct
32 Correct 8 ms 7416 KB Output is correct
33 Correct 8 ms 7416 KB Output is correct
34 Correct 8 ms 7416 KB Output is correct
35 Correct 8 ms 7416 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 7416 KB Output is correct
2 Correct 8 ms 7416 KB Output is correct
3 Correct 8 ms 7416 KB Output is correct
4 Correct 8 ms 7416 KB Output is correct
5 Correct 8 ms 7368 KB Output is correct
6 Correct 8 ms 7420 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7416 KB Output is correct
9 Correct 8 ms 7416 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7416 KB Output is correct
12 Correct 8 ms 7416 KB Output is correct
13 Correct 8 ms 7416 KB Output is correct
14 Correct 8 ms 7416 KB Output is correct
15 Correct 8 ms 7416 KB Output is correct
16 Correct 8 ms 7416 KB Output is correct
17 Correct 8 ms 7416 KB Output is correct
18 Correct 8 ms 7416 KB Output is correct
19 Correct 8 ms 7416 KB Output is correct
20 Correct 8 ms 7416 KB Output is correct
21 Correct 10 ms 7468 KB Output is correct
22 Correct 8 ms 7416 KB Output is correct
23 Correct 8 ms 7416 KB Output is correct
24 Correct 8 ms 7416 KB Output is correct
25 Correct 8 ms 7544 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
28 Correct 8 ms 7420 KB Output is correct
29 Correct 8 ms 7416 KB Output is correct
30 Correct 8 ms 7448 KB Output is correct
31 Correct 8 ms 7416 KB Output is correct
32 Correct 8 ms 7416 KB Output is correct
33 Correct 8 ms 7416 KB Output is correct
34 Correct 8 ms 7416 KB Output is correct
35 Correct 8 ms 7416 KB Output is correct
36 Correct 8 ms 7416 KB Output is correct
37 Correct 8 ms 7416 KB Output is correct
38 Correct 8 ms 7416 KB Output is correct
39 Correct 8 ms 7416 KB Output is correct
40 Correct 8 ms 7416 KB Output is correct
41 Correct 8 ms 7416 KB Output is correct
42 Correct 8 ms 7420 KB Output is correct
43 Correct 8 ms 7416 KB Output is correct
44 Correct 8 ms 7416 KB Output is correct
45 Correct 8 ms 7416 KB Output is correct
46 Correct 8 ms 7448 KB Output is correct
47 Correct 8 ms 7416 KB Output is correct
48 Correct 3 ms 7416 KB Output is correct
49 Correct 8 ms 7416 KB Output is correct
50 Correct 8 ms 7416 KB Output is correct
51 Correct 10 ms 7416 KB Output is correct
52 Correct 10 ms 7416 KB Output is correct
53 Correct 10 ms 7416 KB Output is correct
54 Correct 8 ms 7416 KB Output is correct
55 Correct 9 ms 7416 KB Output is correct
56 Correct 10 ms 7416 KB Output is correct
57 Correct 8 ms 7392 KB Output is correct
58 Correct 10 ms 7416 KB Output is correct
59 Correct 8 ms 7416 KB Output is correct
60 Correct 8 ms 7416 KB Output is correct
61 Correct 8 ms 7416 KB Output is correct
62 Correct 8 ms 7416 KB Output is correct
63 Correct 10 ms 7416 KB Output is correct
64 Correct 10 ms 7416 KB Output is correct
65 Correct 8 ms 7416 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 138 ms 21576 KB Output is correct
2 Correct 132 ms 21716 KB Output is correct
3 Correct 143 ms 23412 KB Output is correct
4 Correct 131 ms 20804 KB Output is correct
5 Correct 135 ms 21748 KB Output is correct
6 Correct 129 ms 23540 KB Output is correct
7 Correct 127 ms 21480 KB Output is correct
8 Correct 124 ms 22008 KB Output is correct
9 Correct 126 ms 20040 KB Output is correct
10 Correct 141 ms 20344 KB Output is correct
11 Correct 128 ms 17748 KB Output is correct
12 Correct 88 ms 17536 KB Output is correct
13 Correct 86 ms 17316 KB Output is correct
14 Correct 89 ms 16988 KB Output is correct
15 Correct 67 ms 15864 KB Output is correct
16 Correct 72 ms 15736 KB Output is correct
17 Correct 11 ms 8696 KB Output is correct
18 Correct 13 ms 8696 KB Output is correct
19 Correct 10 ms 8696 KB Output is correct
20 Correct 11 ms 8696 KB Output is correct
21 Correct 11 ms 8696 KB Output is correct
22 Correct 11 ms 8696 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 7544 KB Output is correct
2 Correct 9 ms 7544 KB Output is correct
3 Correct 9 ms 7516 KB Output is correct
4 Correct 9 ms 7572 KB Output is correct
5 Correct 9 ms 7544 KB Output is correct
6 Correct 11 ms 7544 KB Output is correct
7 Correct 9 ms 7672 KB Output is correct
8 Correct 9 ms 7544 KB Output is correct
9 Correct 9 ms 7544 KB Output is correct
10 Correct 9 ms 7548 KB Output is correct
11 Correct 9 ms 7544 KB Output is correct
12 Correct 9 ms 7516 KB Output is correct
13 Correct 9 ms 7544 KB Output is correct
14 Correct 9 ms 7544 KB Output is correct
15 Correct 9 ms 7544 KB Output is correct
16 Correct 8 ms 7572 KB Output is correct
17 Correct 8 ms 7544 KB Output is correct
18 Correct 9 ms 7544 KB Output is correct
19 Correct 8 ms 7544 KB Output is correct
20 Correct 8 ms 7604 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 118 ms 18680 KB Output is correct
2 Correct 128 ms 18840 KB Output is correct
3 Correct 120 ms 18680 KB Output is correct
4 Correct 132 ms 18808 KB Output is correct
5 Correct 130 ms 18676 KB Output is correct
6 Correct 151 ms 26972 KB Output is correct
7 Correct 158 ms 24208 KB Output is correct
8 Correct 144 ms 22776 KB Output is correct
9 Correct 148 ms 21480 KB Output is correct
10 Correct 137 ms 19956 KB Output is correct
11 Correct 125 ms 19960 KB Output is correct
12 Correct 122 ms 19916 KB Output is correct
13 Correct 123 ms 19960 KB Output is correct
14 Correct 107 ms 19320 KB Output is correct
15 Correct 97 ms 18552 KB Output is correct
16 Correct 90 ms 15740 KB Output is correct
17 Correct 121 ms 20592 KB Output is correct
18 Correct 93 ms 20464 KB Output is correct
19 Correct 106 ms 20564 KB Output is correct
20 Correct 115 ms 20516 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 7544 KB Output is correct
2 Correct 8 ms 7544 KB Output is correct
3 Correct 8 ms 7544 KB Output is correct
4 Correct 8 ms 7544 KB Output is correct
5 Correct 8 ms 7416 KB Output is correct
6 Correct 9 ms 7416 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7520 KB Output is correct
9 Correct 9 ms 7420 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7516 KB Output is correct
12 Correct 8 ms 7544 KB Output is correct
13 Correct 9 ms 7544 KB Output is correct
14 Correct 8 ms 7516 KB Output is correct
15 Correct 9 ms 7544 KB Output is correct
16 Correct 9 ms 7544 KB Output is correct
17 Correct 8 ms 7548 KB Output is correct
18 Correct 9 ms 7544 KB Output is correct
19 Correct 9 ms 7416 KB Output is correct
20 Correct 8 ms 7464 KB Output is correct
21 Correct 9 ms 7516 KB Output is correct
22 Correct 9 ms 7516 KB Output is correct
23 Correct 9 ms 7544 KB Output is correct
24 Correct 9 ms 7544 KB Output is correct
25 Correct 8 ms 7416 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 134 ms 18592 KB Output is correct
2 Correct 137 ms 18552 KB Output is correct
3 Correct 151 ms 17988 KB Output is correct
4 Correct 142 ms 17144 KB Output is correct
5 Correct 127 ms 16376 KB Output is correct
6 Correct 122 ms 16148 KB Output is correct
7 Correct 126 ms 16012 KB Output is correct
8 Correct 132 ms 15748 KB Output is correct
9 Correct 114 ms 15744 KB Output is correct
10 Correct 130 ms 15736 KB Output is correct
11 Correct 128 ms 15608 KB Output is correct
12 Correct 113 ms 15732 KB Output is correct
13 Correct 106 ms 15736 KB Output is correct
14 Correct 121 ms 17112 KB Output is correct
15 Correct 160 ms 23800 KB Output is correct
16 Correct 165 ms 21832 KB Output is correct
17 Correct 161 ms 22520 KB Output is correct
18 Correct 153 ms 20728 KB Output is correct
19 Correct 175 ms 17372 KB Output is correct
20 Correct 145 ms 18684 KB Output is correct
21 Correct 190 ms 18684 KB Output is correct
22 Correct 117 ms 18140 KB Output is correct
23 Correct 137 ms 17552 KB Output is correct
24 Correct 145 ms 19784 KB Output is correct
25 Correct 143 ms 19832 KB Output is correct
26 Correct 134 ms 19312 KB Output is correct
27 Correct 129 ms 19192 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 7416 KB Output is correct
2 Correct 8 ms 7416 KB Output is correct
3 Correct 8 ms 7416 KB Output is correct
4 Correct 8 ms 7416 KB Output is correct
5 Correct 8 ms 7368 KB Output is correct
6 Correct 8 ms 7420 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7416 KB Output is correct
9 Correct 8 ms 7416 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7416 KB Output is correct
12 Correct 8 ms 7416 KB Output is correct
13 Correct 8 ms 7416 KB Output is correct
14 Correct 8 ms 7416 KB Output is correct
15 Correct 8 ms 7416 KB Output is correct
16 Correct 8 ms 7416 KB Output is correct
17 Correct 8 ms 7416 KB Output is correct
18 Correct 8 ms 7416 KB Output is correct
19 Correct 8 ms 7416 KB Output is correct
20 Correct 8 ms 7416 KB Output is correct
21 Correct 10 ms 7468 KB Output is correct
22 Correct 8 ms 7416 KB Output is correct
23 Correct 8 ms 7416 KB Output is correct
24 Correct 8 ms 7416 KB Output is correct
25 Correct 8 ms 7544 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
28 Correct 8 ms 7420 KB Output is correct
29 Correct 8 ms 7416 KB Output is correct
30 Correct 8 ms 7448 KB Output is correct
31 Correct 8 ms 7416 KB Output is correct
32 Correct 8 ms 7416 KB Output is correct
33 Correct 8 ms 7416 KB Output is correct
34 Correct 8 ms 7416 KB Output is correct
35 Correct 8 ms 7416 KB Output is correct
36 Correct 8 ms 7416 KB Output is correct
37 Correct 8 ms 7416 KB Output is correct
38 Correct 8 ms 7416 KB Output is correct
39 Correct 8 ms 7416 KB Output is correct
40 Correct 8 ms 7416 KB Output is correct
41 Correct 8 ms 7416 KB Output is correct
42 Correct 8 ms 7420 KB Output is correct
43 Correct 8 ms 7416 KB Output is correct
44 Correct 8 ms 7416 KB Output is correct
45 Correct 8 ms 7416 KB Output is correct
46 Correct 8 ms 7448 KB Output is correct
47 Correct 8 ms 7416 KB Output is correct
48 Correct 3 ms 7416 KB Output is correct
49 Correct 8 ms 7416 KB Output is correct
50 Correct 8 ms 7416 KB Output is correct
51 Correct 10 ms 7416 KB Output is correct
52 Correct 10 ms 7416 KB Output is correct
53 Correct 10 ms 7416 KB Output is correct
54 Correct 8 ms 7416 KB Output is correct
55 Correct 9 ms 7416 KB Output is correct
56 Correct 10 ms 7416 KB Output is correct
57 Correct 8 ms 7392 KB Output is correct
58 Correct 10 ms 7416 KB Output is correct
59 Correct 8 ms 7416 KB Output is correct
60 Correct 8 ms 7416 KB Output is correct
61 Correct 8 ms 7416 KB Output is correct
62 Correct 8 ms 7416 KB Output is correct
63 Correct 10 ms 7416 KB Output is correct
64 Correct 10 ms 7416 KB Output is correct
65 Correct 8 ms 7416 KB Output is correct
66 Correct 8 ms 7456 KB Output is correct
67 Correct 8 ms 7548 KB Output is correct
68 Correct 9 ms 7544 KB Output is correct
69 Correct 9 ms 7544 KB Output is correct
70 Correct 9 ms 7544 KB Output is correct
71 Correct 8 ms 7544 KB Output is correct
72 Correct 9 ms 7544 KB Output is correct
73 Correct 9 ms 7544 KB Output is correct
74 Correct 8 ms 7416 KB Output is correct
75 Correct 9 ms 7544 KB Output is correct
76 Correct 7 ms 7416 KB Output is correct
77 Correct 9 ms 7544 KB Output is correct
78 Correct 8 ms 7416 KB Output is correct
79 Correct 8 ms 7416 KB Output is correct
80 Correct 9 ms 7416 KB Output is correct
81 Correct 9 ms 7416 KB Output is correct
82 Correct 9 ms 7544 KB Output is correct
83 Correct 9 ms 7448 KB Output is correct
84 Correct 8 ms 7544 KB Output is correct
85 Correct 9 ms 7544 KB Output is correct
86 Correct 8 ms 7416 KB Output is correct
87 Correct 9 ms 7416 KB Output is correct
88 Correct 9 ms 7544 KB Output is correct
89 Correct 8 ms 7416 KB Output is correct
90 Correct 8 ms 7544 KB Output is correct
91 Correct 8 ms 7544 KB Output is correct
92 Correct 9 ms 7544 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 7416 KB Output is correct
2 Correct 8 ms 7416 KB Output is correct
3 Correct 8 ms 7416 KB Output is correct
4 Correct 8 ms 7416 KB Output is correct
5 Correct 8 ms 7368 KB Output is correct
6 Correct 8 ms 7420 KB Output is correct
7 Correct 8 ms 7416 KB Output is correct
8 Correct 8 ms 7416 KB Output is correct
9 Correct 8 ms 7416 KB Output is correct
10 Correct 8 ms 7416 KB Output is correct
11 Correct 8 ms 7416 KB Output is correct
12 Correct 8 ms 7416 KB Output is correct
13 Correct 8 ms 7416 KB Output is correct
14 Correct 8 ms 7416 KB Output is correct
15 Correct 8 ms 7416 KB Output is correct
16 Correct 8 ms 7416 KB Output is correct
17 Correct 8 ms 7416 KB Output is correct
18 Correct 8 ms 7416 KB Output is correct
19 Correct 8 ms 7416 KB Output is correct
20 Correct 8 ms 7416 KB Output is correct
21 Correct 10 ms 7468 KB Output is correct
22 Correct 8 ms 7416 KB Output is correct
23 Correct 8 ms 7416 KB Output is correct
24 Correct 8 ms 7416 KB Output is correct
25 Correct 8 ms 7544 KB Output is correct
26 Correct 8 ms 7416 KB Output is correct
27 Correct 8 ms 7416 KB Output is correct
28 Correct 8 ms 7420 KB Output is correct
29 Correct 8 ms 7416 KB Output is correct
30 Correct 8 ms 7448 KB Output is correct
31 Correct 8 ms 7416 KB Output is correct
32 Correct 8 ms 7416 KB Output is correct
33 Correct 8 ms 7416 KB Output is correct
34 Correct 8 ms 7416 KB Output is correct
35 Correct 8 ms 7416 KB Output is correct
36 Correct 8 ms 7416 KB Output is correct
37 Correct 8 ms 7416 KB Output is correct
38 Correct 8 ms 7416 KB Output is correct
39 Correct 8 ms 7416 KB Output is correct
40 Correct 8 ms 7416 KB Output is correct
41 Correct 8 ms 7416 KB Output is correct
42 Correct 8 ms 7420 KB Output is correct
43 Correct 8 ms 7416 KB Output is correct
44 Correct 8 ms 7416 KB Output is correct
45 Correct 8 ms 7416 KB Output is correct
46 Correct 8 ms 7448 KB Output is correct
47 Correct 8 ms 7416 KB Output is correct
48 Correct 3 ms 7416 KB Output is correct
49 Correct 8 ms 7416 KB Output is correct
50 Correct 8 ms 7416 KB Output is correct
51 Correct 10 ms 7416 KB Output is correct
52 Correct 10 ms 7416 KB Output is correct
53 Correct 10 ms 7416 KB Output is correct
54 Correct 8 ms 7416 KB Output is correct
55 Correct 9 ms 7416 KB Output is correct
56 Correct 10 ms 7416 KB Output is correct
57 Correct 8 ms 7392 KB Output is correct
58 Correct 10 ms 7416 KB Output is correct
59 Correct 8 ms 7416 KB Output is correct
60 Correct 8 ms 7416 KB Output is correct
61 Correct 8 ms 7416 KB Output is correct
62 Correct 8 ms 7416 KB Output is correct
63 Correct 10 ms 7416 KB Output is correct
64 Correct 10 ms 7416 KB Output is correct
65 Correct 8 ms 7416 KB Output is correct
66 Correct 138 ms 21576 KB Output is correct
67 Correct 132 ms 21716 KB Output is correct
68 Correct 143 ms 23412 KB Output is correct
69 Correct 131 ms 20804 KB Output is correct
70 Correct 135 ms 21748 KB Output is correct
71 Correct 129 ms 23540 KB Output is correct
72 Correct 127 ms 21480 KB Output is correct
73 Correct 124 ms 22008 KB Output is correct
74 Correct 126 ms 20040 KB Output is correct
75 Correct 141 ms 20344 KB Output is correct
76 Correct 128 ms 17748 KB Output is correct
77 Correct 88 ms 17536 KB Output is correct
78 Correct 86 ms 17316 KB Output is correct
79 Correct 89 ms 16988 KB Output is correct
80 Correct 67 ms 15864 KB Output is correct
81 Correct 72 ms 15736 KB Output is correct
82 Correct 11 ms 8696 KB Output is correct
83 Correct 13 ms 8696 KB Output is correct
84 Correct 10 ms 8696 KB Output is correct
85 Correct 11 ms 8696 KB Output is correct
86 Correct 11 ms 8696 KB Output is correct
87 Correct 11 ms 8696 KB Output is correct
88 Correct 10 ms 7544 KB Output is correct
89 Correct 9 ms 7544 KB Output is correct
90 Correct 9 ms 7516 KB Output is correct
91 Correct 9 ms 7572 KB Output is correct
92 Correct 9 ms 7544 KB Output is correct
93 Correct 11 ms 7544 KB Output is correct
94 Correct 9 ms 7672 KB Output is correct
95 Correct 9 ms 7544 KB Output is correct
96 Correct 9 ms 7544 KB Output is correct
97 Correct 9 ms 7548 KB Output is correct
98 Correct 9 ms 7544 KB Output is correct
99 Correct 9 ms 7516 KB Output is correct
100 Correct 9 ms 7544 KB Output is correct
101 Correct 9 ms 7544 KB Output is correct
102 Correct 9 ms 7544 KB Output is correct
103 Correct 8 ms 7572 KB Output is correct
104 Correct 8 ms 7544 KB Output is correct
105 Correct 9 ms 7544 KB Output is correct
106 Correct 8 ms 7544 KB Output is correct
107 Correct 8 ms 7604 KB Output is correct
108 Correct 118 ms 18680 KB Output is correct
109 Correct 128 ms 18840 KB Output is correct
110 Correct 120 ms 18680 KB Output is correct
111 Correct 132 ms 18808 KB Output is correct
112 Correct 130 ms 18676 KB Output is correct
113 Correct 151 ms 26972 KB Output is correct
114 Correct 158 ms 24208 KB Output is correct
115 Correct 144 ms 22776 KB Output is correct
116 Correct 148 ms 21480 KB Output is correct
117 Correct 137 ms 19956 KB Output is correct
118 Correct 125 ms 19960 KB Output is correct
119 Correct 122 ms 19916 KB Output is correct
120 Correct 123 ms 19960 KB Output is correct
121 Correct 107 ms 19320 KB Output is correct
122 Correct 97 ms 18552 KB Output is correct
123 Correct 90 ms 15740 KB Output is correct
124 Correct 121 ms 20592 KB Output is correct
125 Correct 93 ms 20464 KB Output is correct
126 Correct 106 ms 20564 KB Output is correct
127 Correct 115 ms 20516 KB Output is correct
128 Correct 8 ms 7544 KB Output is correct
129 Correct 8 ms 7544 KB Output is correct
130 Correct 8 ms 7544 KB Output is correct
131 Correct 8 ms 7544 KB Output is correct
132 Correct 8 ms 7416 KB Output is correct
133 Correct 9 ms 7416 KB Output is correct
134 Correct 8 ms 7416 KB Output is correct
135 Correct 8 ms 7520 KB Output is correct
136 Correct 9 ms 7420 KB Output is correct
137 Correct 8 ms 7416 KB Output is correct
138 Correct 8 ms 7516 KB Output is correct
139 Correct 8 ms 7544 KB Output is correct
140 Correct 9 ms 7544 KB Output is correct
141 Correct 8 ms 7516 KB Output is correct
142 Correct 9 ms 7544 KB Output is correct
143 Correct 9 ms 7544 KB Output is correct
144 Correct 8 ms 7548 KB Output is correct
145 Correct 9 ms 7544 KB Output is correct
146 Correct 9 ms 7416 KB Output is correct
147 Correct 8 ms 7464 KB Output is correct
148 Correct 9 ms 7516 KB Output is correct
149 Correct 9 ms 7516 KB Output is correct
150 Correct 9 ms 7544 KB Output is correct
151 Correct 9 ms 7544 KB Output is correct
152 Correct 8 ms 7416 KB Output is correct
153 Correct 8 ms 7416 KB Output is correct
154 Correct 8 ms 7416 KB Output is correct
155 Correct 134 ms 18592 KB Output is correct
156 Correct 137 ms 18552 KB Output is correct
157 Correct 151 ms 17988 KB Output is correct
158 Correct 142 ms 17144 KB Output is correct
159 Correct 127 ms 16376 KB Output is correct
160 Correct 122 ms 16148 KB Output is correct
161 Correct 126 ms 16012 KB Output is correct
162 Correct 132 ms 15748 KB Output is correct
163 Correct 114 ms 15744 KB Output is correct
164 Correct 130 ms 15736 KB Output is correct
165 Correct 128 ms 15608 KB Output is correct
166 Correct 113 ms 15732 KB Output is correct
167 Correct 106 ms 15736 KB Output is correct
168 Correct 121 ms 17112 KB Output is correct
169 Correct 160 ms 23800 KB Output is correct
170 Correct 165 ms 21832 KB Output is correct
171 Correct 161 ms 22520 KB Output is correct
172 Correct 153 ms 20728 KB Output is correct
173 Correct 175 ms 17372 KB Output is correct
174 Correct 145 ms 18684 KB Output is correct
175 Correct 190 ms 18684 KB Output is correct
176 Correct 117 ms 18140 KB Output is correct
177 Correct 137 ms 17552 KB Output is correct
178 Correct 145 ms 19784 KB Output is correct
179 Correct 143 ms 19832 KB Output is correct
180 Correct 134 ms 19312 KB Output is correct
181 Correct 129 ms 19192 KB Output is correct
182 Correct 8 ms 7456 KB Output is correct
183 Correct 8 ms 7548 KB Output is correct
184 Correct 9 ms 7544 KB Output is correct
185 Correct 9 ms 7544 KB Output is correct
186 Correct 9 ms 7544 KB Output is correct
187 Correct 8 ms 7544 KB Output is correct
188 Correct 9 ms 7544 KB Output is correct
189 Correct 9 ms 7544 KB Output is correct
190 Correct 8 ms 7416 KB Output is correct
191 Correct 9 ms 7544 KB Output is correct
192 Correct 7 ms 7416 KB Output is correct
193 Correct 9 ms 7544 KB Output is correct
194 Correct 8 ms 7416 KB Output is correct
195 Correct 8 ms 7416 KB Output is correct
196 Correct 9 ms 7416 KB Output is correct
197 Correct 9 ms 7416 KB Output is correct
198 Correct 9 ms 7544 KB Output is correct
199 Correct 9 ms 7448 KB Output is correct
200 Correct 8 ms 7544 KB Output is correct
201 Correct 9 ms 7544 KB Output is correct
202 Correct 8 ms 7416 KB Output is correct
203 Correct 9 ms 7416 KB Output is correct
204 Correct 9 ms 7544 KB Output is correct
205 Correct 8 ms 7416 KB Output is correct
206 Correct 8 ms 7544 KB Output is correct
207 Correct 8 ms 7544 KB Output is correct
208 Correct 9 ms 7544 KB Output is correct
209 Correct 10 ms 8696 KB Output is correct
210 Correct 66 ms 15072 KB Output is correct
211 Correct 109 ms 18564 KB Output is correct
212 Correct 150 ms 20808 KB Output is correct
213 Correct 234 ms 22336 KB Output is correct
214 Correct 72 ms 17784 KB Output is correct
215 Correct 73 ms 17636 KB Output is correct
216 Correct 182 ms 19424 KB Output is correct
217 Correct 229 ms 18388 KB Output is correct
218 Correct 100 ms 17144 KB Output is correct
219 Correct 96 ms 16888 KB Output is correct
220 Correct 94 ms 16888 KB Output is correct
221 Correct 94 ms 16860 KB Output is correct
222 Correct 103 ms 17540 KB Output is correct
223 Correct 135 ms 20604 KB Output is correct
224 Correct 121 ms 19808 KB Output is correct
225 Correct 123 ms 18296 KB Output is correct
226 Correct 138 ms 18140 KB Output is correct
227 Correct 119 ms 18168 KB Output is correct
228 Correct 111 ms 17676 KB Output is correct
229 Correct 99 ms 17400 KB Output is correct
230 Correct 200 ms 18680 KB Output is correct
231 Correct 144 ms 18680 KB Output is correct