Submission #725016

# Submission time Handle Problem Language Result Execution time Memory
725016 2023-04-16T12:59:08 Z Sohsoh84 Duathlon (APIO18_duathlon) C++17
100 / 100
184 ms 66812 KB
#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<ll, ll> pll;

#define all(x)			(x).begin(),(x).end()
#define X			first
#define Y			second
#define sep			' '
#define endl			'\n'
#define debug(x)		cerr << #x << ": " <<  x << endl;

const ll MAXN = 1e6 + 10;

int n, m, H[MAXN], tin[MAXN], low[MAXN], t, cnt, sz[MAXN];
stack<int> st;
vector<int> adj[MAXN], G[MAXN];
bool vis[MAXN];
ll ans = 0;

void dfs(int v, int p) {
	st.push(v);
	tin[v] = low[v] = ++t;
	for (int u : adj[v]) {
		if (u == p) continue;
		if (tin[u]) low[v] = min(low[v], tin[u]);
		else {
			dfs(u, v);
			low[v] = min(low[v], low[u]);
			if (low[u] >= tin[v]) {
				cnt++;
				G[v].push_back(n + cnt);
				while (G[n + cnt].empty() || G[n + cnt].back() != u) {
					G[n + cnt].push_back(st.top());
					st.pop();
				}
			}
		}
	}
}

void solve(int v) {
	if (v <= n) sz[v] = 1;
	for (int u : G[v]) {
		solve(u);
		sz[v] += sz[u];
		if (v > n) ans -= 1ll * sz[u] * (sz[u] - 1) * G[v].size();
	}

	if (v > n) ans -= 1ll * (t - sz[v]) * (t - sz[v] - 1) * G[v].size();
}

int main() {
	ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
	cin >> n >> m;
	for (int i = 1; i <= m; i++) {
		int u, v;
		cin >> u >> v;
		adj[u].push_back(v);
		adj[v].push_back(u);
	}

	for (int i = 1; i <= n; i++) {
		if (tin[i]) continue;
		t = 0;
		dfs(i, 0);

		ans += 1ll * t * (t - 1) * (t - 2);
		solve(i);
	}

	cout << ans << endl;
	return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 28 ms 47188 KB Output is correct
2 Correct 22 ms 47304 KB Output is correct
3 Correct 23 ms 47312 KB Output is correct
4 Correct 22 ms 47316 KB Output is correct
5 Correct 22 ms 47260 KB Output is correct
6 Correct 23 ms 47316 KB Output is correct
7 Correct 29 ms 47308 KB Output is correct
8 Correct 23 ms 47316 KB Output is correct
9 Correct 24 ms 47316 KB Output is correct
10 Correct 25 ms 47272 KB Output is correct
11 Correct 24 ms 47300 KB Output is correct
12 Correct 23 ms 47288 KB Output is correct
13 Correct 25 ms 47316 KB Output is correct
14 Correct 25 ms 47276 KB Output is correct
15 Correct 23 ms 47308 KB Output is correct
16 Correct 26 ms 47316 KB Output is correct
17 Correct 21 ms 47316 KB Output is correct
18 Correct 24 ms 47316 KB Output is correct
19 Correct 28 ms 47288 KB Output is correct
20 Correct 25 ms 47308 KB Output is correct
21 Correct 30 ms 47316 KB Output is correct
22 Correct 28 ms 47288 KB Output is correct
23 Correct 23 ms 47308 KB Output is correct
24 Correct 29 ms 47304 KB Output is correct
25 Correct 23 ms 47268 KB Output is correct
26 Correct 25 ms 47288 KB Output is correct
27 Correct 24 ms 47316 KB Output is correct
28 Correct 22 ms 47200 KB Output is correct
29 Correct 23 ms 47316 KB Output is correct
30 Correct 26 ms 47300 KB Output is correct
31 Correct 25 ms 47264 KB Output is correct
32 Correct 23 ms 47256 KB Output is correct
33 Correct 30 ms 47308 KB Output is correct
34 Correct 30 ms 47280 KB Output is correct
35 Correct 23 ms 47212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 28 ms 47188 KB Output is correct
2 Correct 22 ms 47304 KB Output is correct
3 Correct 23 ms 47312 KB Output is correct
4 Correct 22 ms 47316 KB Output is correct
5 Correct 22 ms 47260 KB Output is correct
6 Correct 23 ms 47316 KB Output is correct
7 Correct 29 ms 47308 KB Output is correct
8 Correct 23 ms 47316 KB Output is correct
9 Correct 24 ms 47316 KB Output is correct
10 Correct 25 ms 47272 KB Output is correct
11 Correct 24 ms 47300 KB Output is correct
12 Correct 23 ms 47288 KB Output is correct
13 Correct 25 ms 47316 KB Output is correct
14 Correct 25 ms 47276 KB Output is correct
15 Correct 23 ms 47308 KB Output is correct
16 Correct 26 ms 47316 KB Output is correct
17 Correct 21 ms 47316 KB Output is correct
18 Correct 24 ms 47316 KB Output is correct
19 Correct 28 ms 47288 KB Output is correct
20 Correct 25 ms 47308 KB Output is correct
21 Correct 30 ms 47316 KB Output is correct
22 Correct 28 ms 47288 KB Output is correct
23 Correct 23 ms 47308 KB Output is correct
24 Correct 29 ms 47304 KB Output is correct
25 Correct 23 ms 47268 KB Output is correct
26 Correct 25 ms 47288 KB Output is correct
27 Correct 24 ms 47316 KB Output is correct
28 Correct 22 ms 47200 KB Output is correct
29 Correct 23 ms 47316 KB Output is correct
30 Correct 26 ms 47300 KB Output is correct
31 Correct 25 ms 47264 KB Output is correct
32 Correct 23 ms 47256 KB Output is correct
33 Correct 30 ms 47308 KB Output is correct
34 Correct 30 ms 47280 KB Output is correct
35 Correct 23 ms 47212 KB Output is correct
36 Correct 24 ms 47228 KB Output is correct
37 Correct 24 ms 47240 KB Output is correct
38 Correct 23 ms 47292 KB Output is correct
39 Correct 29 ms 47288 KB Output is correct
40 Correct 25 ms 47312 KB Output is correct
41 Correct 25 ms 47328 KB Output is correct
42 Correct 24 ms 47316 KB Output is correct
43 Correct 24 ms 47216 KB Output is correct
44 Correct 25 ms 47308 KB Output is correct
45 Correct 24 ms 47316 KB Output is correct
46 Correct 24 ms 47284 KB Output is correct
47 Correct 25 ms 47260 KB Output is correct
48 Correct 24 ms 47308 KB Output is correct
49 Correct 28 ms 47304 KB Output is correct
50 Correct 24 ms 47276 KB Output is correct
51 Correct 28 ms 47296 KB Output is correct
52 Correct 27 ms 47308 KB Output is correct
53 Correct 27 ms 47232 KB Output is correct
54 Correct 23 ms 47276 KB Output is correct
55 Correct 26 ms 47312 KB Output is correct
56 Correct 27 ms 47296 KB Output is correct
57 Correct 24 ms 47308 KB Output is correct
58 Correct 31 ms 47316 KB Output is correct
59 Correct 27 ms 47300 KB Output is correct
60 Correct 26 ms 47328 KB Output is correct
61 Correct 24 ms 47304 KB Output is correct
62 Correct 25 ms 47260 KB Output is correct
63 Correct 25 ms 47316 KB Output is correct
64 Correct 23 ms 47316 KB Output is correct
65 Correct 23 ms 47308 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 75 ms 63432 KB Output is correct
2 Correct 86 ms 64660 KB Output is correct
3 Correct 112 ms 62740 KB Output is correct
4 Correct 101 ms 63700 KB Output is correct
5 Correct 94 ms 59468 KB Output is correct
6 Correct 105 ms 62044 KB Output is correct
7 Correct 112 ms 60244 KB Output is correct
8 Correct 97 ms 60764 KB Output is correct
9 Correct 115 ms 58608 KB Output is correct
10 Correct 88 ms 58508 KB Output is correct
11 Correct 79 ms 55796 KB Output is correct
12 Correct 104 ms 55744 KB Output is correct
13 Correct 71 ms 55572 KB Output is correct
14 Correct 71 ms 55392 KB Output is correct
15 Correct 72 ms 54476 KB Output is correct
16 Correct 93 ms 54348 KB Output is correct
17 Correct 26 ms 48836 KB Output is correct
18 Correct 28 ms 48844 KB Output is correct
19 Correct 25 ms 48852 KB Output is correct
20 Correct 25 ms 48924 KB Output is correct
21 Correct 24 ms 48840 KB Output is correct
22 Correct 26 ms 48852 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 24 ms 47316 KB Output is correct
2 Correct 25 ms 47416 KB Output is correct
3 Correct 25 ms 47368 KB Output is correct
4 Correct 25 ms 47444 KB Output is correct
5 Correct 24 ms 47500 KB Output is correct
6 Correct 25 ms 47488 KB Output is correct
7 Correct 30 ms 47472 KB Output is correct
8 Correct 26 ms 47480 KB Output is correct
9 Correct 27 ms 47424 KB Output is correct
10 Correct 26 ms 47328 KB Output is correct
11 Correct 25 ms 47284 KB Output is correct
12 Correct 24 ms 47356 KB Output is correct
13 Correct 24 ms 47400 KB Output is correct
14 Correct 27 ms 47316 KB Output is correct
15 Correct 27 ms 47412 KB Output is correct
16 Correct 35 ms 47292 KB Output is correct
17 Correct 25 ms 47380 KB Output is correct
18 Correct 24 ms 47316 KB Output is correct
19 Correct 25 ms 47376 KB Output is correct
20 Correct 25 ms 47316 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 98 ms 56864 KB Output is correct
2 Correct 111 ms 56820 KB Output is correct
3 Correct 110 ms 56852 KB Output is correct
4 Correct 127 ms 56760 KB Output is correct
5 Correct 133 ms 56876 KB Output is correct
6 Correct 142 ms 66812 KB Output is correct
7 Correct 127 ms 63064 KB Output is correct
8 Correct 131 ms 61544 KB Output is correct
9 Correct 118 ms 60096 KB Output is correct
10 Correct 132 ms 56748 KB Output is correct
11 Correct 138 ms 56780 KB Output is correct
12 Correct 130 ms 56788 KB Output is correct
13 Correct 125 ms 56868 KB Output is correct
14 Correct 113 ms 56500 KB Output is correct
15 Correct 111 ms 56156 KB Output is correct
16 Correct 77 ms 54192 KB Output is correct
17 Correct 98 ms 56004 KB Output is correct
18 Correct 65 ms 56036 KB Output is correct
19 Correct 71 ms 56160 KB Output is correct
20 Correct 79 ms 55972 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 35 ms 47348 KB Output is correct
2 Correct 29 ms 47400 KB Output is correct
3 Correct 31 ms 47396 KB Output is correct
4 Correct 32 ms 47292 KB Output is correct
5 Correct 26 ms 47316 KB Output is correct
6 Correct 34 ms 47296 KB Output is correct
7 Correct 28 ms 47356 KB Output is correct
8 Correct 24 ms 47308 KB Output is correct
9 Correct 24 ms 47296 KB Output is correct
10 Correct 24 ms 47292 KB Output is correct
11 Correct 25 ms 47332 KB Output is correct
12 Correct 26 ms 47444 KB Output is correct
13 Correct 28 ms 47444 KB Output is correct
14 Correct 29 ms 47444 KB Output is correct
15 Correct 28 ms 47424 KB Output is correct
16 Correct 30 ms 47384 KB Output is correct
17 Correct 34 ms 47352 KB Output is correct
18 Correct 26 ms 47380 KB Output is correct
19 Correct 26 ms 47308 KB Output is correct
20 Correct 25 ms 47280 KB Output is correct
21 Correct 28 ms 47344 KB Output is correct
22 Correct 34 ms 47352 KB Output is correct
23 Correct 25 ms 47312 KB Output is correct
24 Correct 29 ms 47344 KB Output is correct
25 Correct 31 ms 47308 KB Output is correct
26 Correct 27 ms 47308 KB Output is correct
27 Correct 24 ms 47284 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 108 ms 56912 KB Output is correct
2 Correct 184 ms 57156 KB Output is correct
3 Correct 101 ms 56400 KB Output is correct
4 Correct 90 ms 55244 KB Output is correct
5 Correct 102 ms 55244 KB Output is correct
6 Correct 161 ms 54892 KB Output is correct
7 Correct 99 ms 54468 KB Output is correct
8 Correct 143 ms 54048 KB Output is correct
9 Correct 112 ms 54000 KB Output is correct
10 Correct 96 ms 53896 KB Output is correct
11 Correct 104 ms 53676 KB Output is correct
12 Correct 112 ms 53904 KB Output is correct
13 Correct 92 ms 53764 KB Output is correct
14 Correct 138 ms 56428 KB Output is correct
15 Correct 116 ms 64080 KB Output is correct
16 Correct 149 ms 61904 KB Output is correct
17 Correct 116 ms 62500 KB Output is correct
18 Correct 134 ms 60600 KB Output is correct
19 Correct 161 ms 56560 KB Output is correct
20 Correct 125 ms 56656 KB Output is correct
21 Correct 126 ms 56656 KB Output is correct
22 Correct 111 ms 56044 KB Output is correct
23 Correct 87 ms 55384 KB Output is correct
24 Correct 94 ms 57380 KB Output is correct
25 Correct 112 ms 57564 KB Output is correct
26 Correct 96 ms 56776 KB Output is correct
27 Correct 97 ms 56828 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 28 ms 47188 KB Output is correct
2 Correct 22 ms 47304 KB Output is correct
3 Correct 23 ms 47312 KB Output is correct
4 Correct 22 ms 47316 KB Output is correct
5 Correct 22 ms 47260 KB Output is correct
6 Correct 23 ms 47316 KB Output is correct
7 Correct 29 ms 47308 KB Output is correct
8 Correct 23 ms 47316 KB Output is correct
9 Correct 24 ms 47316 KB Output is correct
10 Correct 25 ms 47272 KB Output is correct
11 Correct 24 ms 47300 KB Output is correct
12 Correct 23 ms 47288 KB Output is correct
13 Correct 25 ms 47316 KB Output is correct
14 Correct 25 ms 47276 KB Output is correct
15 Correct 23 ms 47308 KB Output is correct
16 Correct 26 ms 47316 KB Output is correct
17 Correct 21 ms 47316 KB Output is correct
18 Correct 24 ms 47316 KB Output is correct
19 Correct 28 ms 47288 KB Output is correct
20 Correct 25 ms 47308 KB Output is correct
21 Correct 30 ms 47316 KB Output is correct
22 Correct 28 ms 47288 KB Output is correct
23 Correct 23 ms 47308 KB Output is correct
24 Correct 29 ms 47304 KB Output is correct
25 Correct 23 ms 47268 KB Output is correct
26 Correct 25 ms 47288 KB Output is correct
27 Correct 24 ms 47316 KB Output is correct
28 Correct 22 ms 47200 KB Output is correct
29 Correct 23 ms 47316 KB Output is correct
30 Correct 26 ms 47300 KB Output is correct
31 Correct 25 ms 47264 KB Output is correct
32 Correct 23 ms 47256 KB Output is correct
33 Correct 30 ms 47308 KB Output is correct
34 Correct 30 ms 47280 KB Output is correct
35 Correct 23 ms 47212 KB Output is correct
36 Correct 24 ms 47228 KB Output is correct
37 Correct 24 ms 47240 KB Output is correct
38 Correct 23 ms 47292 KB Output is correct
39 Correct 29 ms 47288 KB Output is correct
40 Correct 25 ms 47312 KB Output is correct
41 Correct 25 ms 47328 KB Output is correct
42 Correct 24 ms 47316 KB Output is correct
43 Correct 24 ms 47216 KB Output is correct
44 Correct 25 ms 47308 KB Output is correct
45 Correct 24 ms 47316 KB Output is correct
46 Correct 24 ms 47284 KB Output is correct
47 Correct 25 ms 47260 KB Output is correct
48 Correct 24 ms 47308 KB Output is correct
49 Correct 28 ms 47304 KB Output is correct
50 Correct 24 ms 47276 KB Output is correct
51 Correct 28 ms 47296 KB Output is correct
52 Correct 27 ms 47308 KB Output is correct
53 Correct 27 ms 47232 KB Output is correct
54 Correct 23 ms 47276 KB Output is correct
55 Correct 26 ms 47312 KB Output is correct
56 Correct 27 ms 47296 KB Output is correct
57 Correct 24 ms 47308 KB Output is correct
58 Correct 31 ms 47316 KB Output is correct
59 Correct 27 ms 47300 KB Output is correct
60 Correct 26 ms 47328 KB Output is correct
61 Correct 24 ms 47304 KB Output is correct
62 Correct 25 ms 47260 KB Output is correct
63 Correct 25 ms 47316 KB Output is correct
64 Correct 23 ms 47316 KB Output is correct
65 Correct 23 ms 47308 KB Output is correct
66 Correct 27 ms 47336 KB Output is correct
67 Correct 27 ms 47316 KB Output is correct
68 Correct 26 ms 47340 KB Output is correct
69 Correct 25 ms 47448 KB Output is correct
70 Correct 28 ms 47444 KB Output is correct
71 Correct 34 ms 47304 KB Output is correct
72 Correct 30 ms 47288 KB Output is correct
73 Correct 27 ms 47292 KB Output is correct
74 Correct 26 ms 47316 KB Output is correct
75 Correct 26 ms 47316 KB Output is correct
76 Correct 25 ms 47328 KB Output is correct
77 Correct 25 ms 47316 KB Output is correct
78 Correct 25 ms 47308 KB Output is correct
79 Correct 25 ms 47396 KB Output is correct
80 Correct 27 ms 47316 KB Output is correct
81 Correct 25 ms 47336 KB Output is correct
82 Correct 28 ms 47420 KB Output is correct
83 Correct 33 ms 47464 KB Output is correct
84 Correct 32 ms 47308 KB Output is correct
85 Correct 31 ms 47312 KB Output is correct
86 Correct 26 ms 47296 KB Output is correct
87 Correct 26 ms 47312 KB Output is correct
88 Correct 28 ms 47316 KB Output is correct
89 Correct 25 ms 47324 KB Output is correct
90 Correct 27 ms 47292 KB Output is correct
91 Correct 27 ms 47292 KB Output is correct
92 Correct 29 ms 47316 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 28 ms 47188 KB Output is correct
2 Correct 22 ms 47304 KB Output is correct
3 Correct 23 ms 47312 KB Output is correct
4 Correct 22 ms 47316 KB Output is correct
5 Correct 22 ms 47260 KB Output is correct
6 Correct 23 ms 47316 KB Output is correct
7 Correct 29 ms 47308 KB Output is correct
8 Correct 23 ms 47316 KB Output is correct
9 Correct 24 ms 47316 KB Output is correct
10 Correct 25 ms 47272 KB Output is correct
11 Correct 24 ms 47300 KB Output is correct
12 Correct 23 ms 47288 KB Output is correct
13 Correct 25 ms 47316 KB Output is correct
14 Correct 25 ms 47276 KB Output is correct
15 Correct 23 ms 47308 KB Output is correct
16 Correct 26 ms 47316 KB Output is correct
17 Correct 21 ms 47316 KB Output is correct
18 Correct 24 ms 47316 KB Output is correct
19 Correct 28 ms 47288 KB Output is correct
20 Correct 25 ms 47308 KB Output is correct
21 Correct 30 ms 47316 KB Output is correct
22 Correct 28 ms 47288 KB Output is correct
23 Correct 23 ms 47308 KB Output is correct
24 Correct 29 ms 47304 KB Output is correct
25 Correct 23 ms 47268 KB Output is correct
26 Correct 25 ms 47288 KB Output is correct
27 Correct 24 ms 47316 KB Output is correct
28 Correct 22 ms 47200 KB Output is correct
29 Correct 23 ms 47316 KB Output is correct
30 Correct 26 ms 47300 KB Output is correct
31 Correct 25 ms 47264 KB Output is correct
32 Correct 23 ms 47256 KB Output is correct
33 Correct 30 ms 47308 KB Output is correct
34 Correct 30 ms 47280 KB Output is correct
35 Correct 23 ms 47212 KB Output is correct
36 Correct 24 ms 47228 KB Output is correct
37 Correct 24 ms 47240 KB Output is correct
38 Correct 23 ms 47292 KB Output is correct
39 Correct 29 ms 47288 KB Output is correct
40 Correct 25 ms 47312 KB Output is correct
41 Correct 25 ms 47328 KB Output is correct
42 Correct 24 ms 47316 KB Output is correct
43 Correct 24 ms 47216 KB Output is correct
44 Correct 25 ms 47308 KB Output is correct
45 Correct 24 ms 47316 KB Output is correct
46 Correct 24 ms 47284 KB Output is correct
47 Correct 25 ms 47260 KB Output is correct
48 Correct 24 ms 47308 KB Output is correct
49 Correct 28 ms 47304 KB Output is correct
50 Correct 24 ms 47276 KB Output is correct
51 Correct 28 ms 47296 KB Output is correct
52 Correct 27 ms 47308 KB Output is correct
53 Correct 27 ms 47232 KB Output is correct
54 Correct 23 ms 47276 KB Output is correct
55 Correct 26 ms 47312 KB Output is correct
56 Correct 27 ms 47296 KB Output is correct
57 Correct 24 ms 47308 KB Output is correct
58 Correct 31 ms 47316 KB Output is correct
59 Correct 27 ms 47300 KB Output is correct
60 Correct 26 ms 47328 KB Output is correct
61 Correct 24 ms 47304 KB Output is correct
62 Correct 25 ms 47260 KB Output is correct
63 Correct 25 ms 47316 KB Output is correct
64 Correct 23 ms 47316 KB Output is correct
65 Correct 23 ms 47308 KB Output is correct
66 Correct 75 ms 63432 KB Output is correct
67 Correct 86 ms 64660 KB Output is correct
68 Correct 112 ms 62740 KB Output is correct
69 Correct 101 ms 63700 KB Output is correct
70 Correct 94 ms 59468 KB Output is correct
71 Correct 105 ms 62044 KB Output is correct
72 Correct 112 ms 60244 KB Output is correct
73 Correct 97 ms 60764 KB Output is correct
74 Correct 115 ms 58608 KB Output is correct
75 Correct 88 ms 58508 KB Output is correct
76 Correct 79 ms 55796 KB Output is correct
77 Correct 104 ms 55744 KB Output is correct
78 Correct 71 ms 55572 KB Output is correct
79 Correct 71 ms 55392 KB Output is correct
80 Correct 72 ms 54476 KB Output is correct
81 Correct 93 ms 54348 KB Output is correct
82 Correct 26 ms 48836 KB Output is correct
83 Correct 28 ms 48844 KB Output is correct
84 Correct 25 ms 48852 KB Output is correct
85 Correct 25 ms 48924 KB Output is correct
86 Correct 24 ms 48840 KB Output is correct
87 Correct 26 ms 48852 KB Output is correct
88 Correct 24 ms 47316 KB Output is correct
89 Correct 25 ms 47416 KB Output is correct
90 Correct 25 ms 47368 KB Output is correct
91 Correct 25 ms 47444 KB Output is correct
92 Correct 24 ms 47500 KB Output is correct
93 Correct 25 ms 47488 KB Output is correct
94 Correct 30 ms 47472 KB Output is correct
95 Correct 26 ms 47480 KB Output is correct
96 Correct 27 ms 47424 KB Output is correct
97 Correct 26 ms 47328 KB Output is correct
98 Correct 25 ms 47284 KB Output is correct
99 Correct 24 ms 47356 KB Output is correct
100 Correct 24 ms 47400 KB Output is correct
101 Correct 27 ms 47316 KB Output is correct
102 Correct 27 ms 47412 KB Output is correct
103 Correct 35 ms 47292 KB Output is correct
104 Correct 25 ms 47380 KB Output is correct
105 Correct 24 ms 47316 KB Output is correct
106 Correct 25 ms 47376 KB Output is correct
107 Correct 25 ms 47316 KB Output is correct
108 Correct 98 ms 56864 KB Output is correct
109 Correct 111 ms 56820 KB Output is correct
110 Correct 110 ms 56852 KB Output is correct
111 Correct 127 ms 56760 KB Output is correct
112 Correct 133 ms 56876 KB Output is correct
113 Correct 142 ms 66812 KB Output is correct
114 Correct 127 ms 63064 KB Output is correct
115 Correct 131 ms 61544 KB Output is correct
116 Correct 118 ms 60096 KB Output is correct
117 Correct 132 ms 56748 KB Output is correct
118 Correct 138 ms 56780 KB Output is correct
119 Correct 130 ms 56788 KB Output is correct
120 Correct 125 ms 56868 KB Output is correct
121 Correct 113 ms 56500 KB Output is correct
122 Correct 111 ms 56156 KB Output is correct
123 Correct 77 ms 54192 KB Output is correct
124 Correct 98 ms 56004 KB Output is correct
125 Correct 65 ms 56036 KB Output is correct
126 Correct 71 ms 56160 KB Output is correct
127 Correct 79 ms 55972 KB Output is correct
128 Correct 35 ms 47348 KB Output is correct
129 Correct 29 ms 47400 KB Output is correct
130 Correct 31 ms 47396 KB Output is correct
131 Correct 32 ms 47292 KB Output is correct
132 Correct 26 ms 47316 KB Output is correct
133 Correct 34 ms 47296 KB Output is correct
134 Correct 28 ms 47356 KB Output is correct
135 Correct 24 ms 47308 KB Output is correct
136 Correct 24 ms 47296 KB Output is correct
137 Correct 24 ms 47292 KB Output is correct
138 Correct 25 ms 47332 KB Output is correct
139 Correct 26 ms 47444 KB Output is correct
140 Correct 28 ms 47444 KB Output is correct
141 Correct 29 ms 47444 KB Output is correct
142 Correct 28 ms 47424 KB Output is correct
143 Correct 30 ms 47384 KB Output is correct
144 Correct 34 ms 47352 KB Output is correct
145 Correct 26 ms 47380 KB Output is correct
146 Correct 26 ms 47308 KB Output is correct
147 Correct 25 ms 47280 KB Output is correct
148 Correct 28 ms 47344 KB Output is correct
149 Correct 34 ms 47352 KB Output is correct
150 Correct 25 ms 47312 KB Output is correct
151 Correct 29 ms 47344 KB Output is correct
152 Correct 31 ms 47308 KB Output is correct
153 Correct 27 ms 47308 KB Output is correct
154 Correct 24 ms 47284 KB Output is correct
155 Correct 108 ms 56912 KB Output is correct
156 Correct 184 ms 57156 KB Output is correct
157 Correct 101 ms 56400 KB Output is correct
158 Correct 90 ms 55244 KB Output is correct
159 Correct 102 ms 55244 KB Output is correct
160 Correct 161 ms 54892 KB Output is correct
161 Correct 99 ms 54468 KB Output is correct
162 Correct 143 ms 54048 KB Output is correct
163 Correct 112 ms 54000 KB Output is correct
164 Correct 96 ms 53896 KB Output is correct
165 Correct 104 ms 53676 KB Output is correct
166 Correct 112 ms 53904 KB Output is correct
167 Correct 92 ms 53764 KB Output is correct
168 Correct 138 ms 56428 KB Output is correct
169 Correct 116 ms 64080 KB Output is correct
170 Correct 149 ms 61904 KB Output is correct
171 Correct 116 ms 62500 KB Output is correct
172 Correct 134 ms 60600 KB Output is correct
173 Correct 161 ms 56560 KB Output is correct
174 Correct 125 ms 56656 KB Output is correct
175 Correct 126 ms 56656 KB Output is correct
176 Correct 111 ms 56044 KB Output is correct
177 Correct 87 ms 55384 KB Output is correct
178 Correct 94 ms 57380 KB Output is correct
179 Correct 112 ms 57564 KB Output is correct
180 Correct 96 ms 56776 KB Output is correct
181 Correct 97 ms 56828 KB Output is correct
182 Correct 27 ms 47336 KB Output is correct
183 Correct 27 ms 47316 KB Output is correct
184 Correct 26 ms 47340 KB Output is correct
185 Correct 25 ms 47448 KB Output is correct
186 Correct 28 ms 47444 KB Output is correct
187 Correct 34 ms 47304 KB Output is correct
188 Correct 30 ms 47288 KB Output is correct
189 Correct 27 ms 47292 KB Output is correct
190 Correct 26 ms 47316 KB Output is correct
191 Correct 26 ms 47316 KB Output is correct
192 Correct 25 ms 47328 KB Output is correct
193 Correct 25 ms 47316 KB Output is correct
194 Correct 25 ms 47308 KB Output is correct
195 Correct 25 ms 47396 KB Output is correct
196 Correct 27 ms 47316 KB Output is correct
197 Correct 25 ms 47336 KB Output is correct
198 Correct 28 ms 47420 KB Output is correct
199 Correct 33 ms 47464 KB Output is correct
200 Correct 32 ms 47308 KB Output is correct
201 Correct 31 ms 47312 KB Output is correct
202 Correct 26 ms 47296 KB Output is correct
203 Correct 26 ms 47312 KB Output is correct
204 Correct 28 ms 47316 KB Output is correct
205 Correct 25 ms 47324 KB Output is correct
206 Correct 27 ms 47292 KB Output is correct
207 Correct 27 ms 47292 KB Output is correct
208 Correct 29 ms 47316 KB Output is correct
209 Correct 28 ms 48980 KB Output is correct
210 Correct 69 ms 54300 KB Output is correct
211 Correct 99 ms 57800 KB Output is correct
212 Correct 115 ms 60608 KB Output is correct
213 Correct 129 ms 62560 KB Output is correct
214 Correct 68 ms 55460 KB Output is correct
215 Correct 68 ms 55204 KB Output is correct
216 Correct 120 ms 56880 KB Output is correct
217 Correct 104 ms 55500 KB Output is correct
218 Correct 88 ms 54200 KB Output is correct
219 Correct 90 ms 53796 KB Output is correct
220 Correct 125 ms 53636 KB Output is correct
221 Correct 107 ms 53588 KB Output is correct
222 Correct 88 ms 55052 KB Output is correct
223 Correct 126 ms 58728 KB Output is correct
224 Correct 147 ms 57844 KB Output is correct
225 Correct 153 ms 55236 KB Output is correct
226 Correct 112 ms 55264 KB Output is correct
227 Correct 102 ms 55144 KB Output is correct
228 Correct 101 ms 54980 KB Output is correct
229 Correct 117 ms 54732 KB Output is correct
230 Correct 84 ms 55228 KB Output is correct
231 Correct 91 ms 55260 KB Output is correct