Submission #316529

# Submission time Handle Problem Language Result Execution time Memory
316529 2020-10-26T14:16:22 Z Kevin_Zhang_TW Duathlon (APIO18_duathlon) C++17
100 / 100
174 ms 46328 KB
#include<bits/stdc++.h>
#define pb emplace_back
#define AI(i) begin(i), end(i)
using namespace std;
using ll = long long;
#ifdef KEV
#define DE(args...) kout("[ " + string(#args) + " ] = ", args)
void kout() {cerr << endl;}
template<class T1, class ...T2>
void kout (T1 v, T2 ...e) { cerr << v << ' ', kout(e...); }
template<class T>
void debug(T L, T R) { while (L != R) cerr << *L << " \n"[next(L)==R], ++L; }
#else
#define DE(...) 0
#define debug(...) 0
#endif
const int MAX_N = 300010;
int n, m, low[MAX_N], dep[MAX_N], g[MAX_N], bcc, sz[MAX_N], dfscnt;
vector<int> edge[MAX_N], be[MAX_N], child[MAX_N];
bool isap[MAX_N];
void dfs1(int x, int lst = -1) {
	++dfscnt;
	static stack<int> st;
	static int d;
	st.push(x);
	low[x] = dep[x] = ++d;
	for (int u : edge[x]) if (u != lst) {
		DE(x, u);
		if (!low[u]) {
			dfs1(u, x);
			low[x] = min(low[x], low[u]);
			if (low[u] >= dep[x]) {
				isap[x] = true;
				st.push(x);
				int gid = ++bcc + n;
				int tp = -1; do {
					tp = st.top(); st.pop();
					g[tp] = gid;
					child[gid].pb(tp);
					if (isap[tp]) {
						be[gid].pb(tp), be[tp].pb(gid);
						DE(tp, gid);
					}
				} while (tp != u);
			}
		}
		else low[x] = min(low[x], dep[u]);
	}
}
ll p2(ll v) { return v * (v-1); }
// count how many invalid triple there is
ll dfs2(int x, int m, int lst = -1) {
	ll res = 0;
	sz[x] = x <= n ? 1 : child[x].size();
	for (int u : be[x]) if (u != lst)
		res += dfs2(u, m, x), sz[x] += sz[u] - 1;

	if (x <= n) {
		ll all = p2(m-1);
		// way is the number of valid triples
		ll sum = m - sz[x], way = 0;
		for (int u : be[x]) if (u != lst) {
			way += (sz[u]-1) * sum * 2;
			sum += (sz[u]-1);
			ll cs = sz[u]-1;
			way += p2(cs);
		}
		way += p2(m - sz[x]);

		//DE(x, all, way);
		res += all - way;
	}
	else {
		ll mid = 0, upsz = m - sz[x] + 1;
//		for (int u : child[x])
//			if (!isap[u]) ++mid;
		mid = child[x].size() - 1;
		for (int u : be[x]) if (u != lst) {
			res += p2(sz[u]) * mid;
		}
		res += p2(upsz) * mid;

		// need to minus ap thing
		// wanna know how many triples take ap as middle
//		ll nap = child[x].size() - mid;
//		ll sum = m - sz[x];
//		for (int u : be[x]) if (u != lst) {
//			res -= sum * (sz[u] - 1) * (nap - 2) * 2;
//			sum += sz[u] - 1;
//		}
	}
	DE(res);
	return res;
}
ll cal(int s) {
	int ob = bcc;

	dfscnt = 0;
	dfs1(s);
	ll m = dfscnt;


	for (int i = ob+1;i <= bcc;++i) {
		DE(i + n);
		debug(AI(child[i + n]));
	}
	return (m * (m-1) * (m-2)) - dfs2(s, m);
}
signed main() {
	ios_base::sync_with_stdio(0), cin.tie(0);
	cin >> n >> m;
	for (int i = 0, a, b;i < m;++i) {
		cin >> a >> b;
		edge[a].pb(b);
		edge[b].pb(a);
	}
	ll res = 0;
	for (int i = 1;i <= n;++i) 
		if (!dep[i])
			res += cal(i);
	cout << res << '\n';
}

Compilation message

count_triplets.cpp: In function 'void dfs1(int, int)':
count_triplets.cpp:14:17: warning: statement has no effect [-Wunused-value]
   14 | #define DE(...) 0
      |                 ^
count_triplets.cpp:28:3: note: in expansion of macro 'DE'
   28 |   DE(x, u);
      |   ^~
count_triplets.cpp:14:17: warning: statement has no effect [-Wunused-value]
   14 | #define DE(...) 0
      |                 ^
count_triplets.cpp:42:7: note: in expansion of macro 'DE'
   42 |       DE(tp, gid);
      |       ^~
count_triplets.cpp: In function 'll dfs2(int, int, int)':
count_triplets.cpp:14:17: warning: statement has no effect [-Wunused-value]
   14 | #define DE(...) 0
      |                 ^
count_triplets.cpp:92:2: note: in expansion of macro 'DE'
   92 |  DE(res);
      |  ^~
count_triplets.cpp: In function 'll cal(int)':
count_triplets.cpp:14:17: warning: statement has no effect [-Wunused-value]
   14 | #define DE(...) 0
      |                 ^
count_triplets.cpp:104:3: note: in expansion of macro 'DE'
  104 |   DE(i + n);
      |   ^~
count_triplets.cpp:15:20: warning: statement has no effect [-Wunused-value]
   15 | #define debug(...) 0
      |                    ^
count_triplets.cpp:105:3: note: in expansion of macro 'debug'
  105 |   debug(AI(child[i + n]));
      |   ^~~~~
# Verdict Execution time Memory Grader output
1 Correct 15 ms 21504 KB Output is correct
2 Correct 15 ms 21504 KB Output is correct
3 Correct 15 ms 21504 KB Output is correct
4 Correct 15 ms 21504 KB Output is correct
5 Correct 15 ms 21504 KB Output is correct
6 Correct 15 ms 21548 KB Output is correct
7 Correct 15 ms 21504 KB Output is correct
8 Correct 15 ms 21504 KB Output is correct
9 Correct 15 ms 21504 KB Output is correct
10 Correct 15 ms 21504 KB Output is correct
11 Correct 16 ms 21504 KB Output is correct
12 Correct 15 ms 21504 KB Output is correct
13 Correct 18 ms 21536 KB Output is correct
14 Correct 15 ms 21504 KB Output is correct
15 Correct 16 ms 21504 KB Output is correct
16 Correct 15 ms 21504 KB Output is correct
17 Correct 15 ms 21504 KB Output is correct
18 Correct 16 ms 21504 KB Output is correct
19 Correct 15 ms 21504 KB Output is correct
20 Correct 15 ms 21504 KB Output is correct
21 Correct 15 ms 21504 KB Output is correct
22 Correct 15 ms 21504 KB Output is correct
23 Correct 15 ms 21504 KB Output is correct
24 Correct 15 ms 21504 KB Output is correct
25 Correct 15 ms 21504 KB Output is correct
26 Correct 15 ms 21632 KB Output is correct
27 Correct 15 ms 21504 KB Output is correct
28 Correct 15 ms 21504 KB Output is correct
29 Correct 15 ms 21504 KB Output is correct
30 Correct 15 ms 21504 KB Output is correct
31 Correct 16 ms 21632 KB Output is correct
32 Correct 15 ms 21504 KB Output is correct
33 Correct 15 ms 21504 KB Output is correct
34 Correct 15 ms 21504 KB Output is correct
35 Correct 15 ms 21504 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 21504 KB Output is correct
2 Correct 15 ms 21504 KB Output is correct
3 Correct 15 ms 21504 KB Output is correct
4 Correct 15 ms 21504 KB Output is correct
5 Correct 15 ms 21504 KB Output is correct
6 Correct 15 ms 21548 KB Output is correct
7 Correct 15 ms 21504 KB Output is correct
8 Correct 15 ms 21504 KB Output is correct
9 Correct 15 ms 21504 KB Output is correct
10 Correct 15 ms 21504 KB Output is correct
11 Correct 16 ms 21504 KB Output is correct
12 Correct 15 ms 21504 KB Output is correct
13 Correct 18 ms 21536 KB Output is correct
14 Correct 15 ms 21504 KB Output is correct
15 Correct 16 ms 21504 KB Output is correct
16 Correct 15 ms 21504 KB Output is correct
17 Correct 15 ms 21504 KB Output is correct
18 Correct 16 ms 21504 KB Output is correct
19 Correct 15 ms 21504 KB Output is correct
20 Correct 15 ms 21504 KB Output is correct
21 Correct 15 ms 21504 KB Output is correct
22 Correct 15 ms 21504 KB Output is correct
23 Correct 15 ms 21504 KB Output is correct
24 Correct 15 ms 21504 KB Output is correct
25 Correct 15 ms 21504 KB Output is correct
26 Correct 15 ms 21632 KB Output is correct
27 Correct 15 ms 21504 KB Output is correct
28 Correct 15 ms 21504 KB Output is correct
29 Correct 15 ms 21504 KB Output is correct
30 Correct 15 ms 21504 KB Output is correct
31 Correct 16 ms 21632 KB Output is correct
32 Correct 15 ms 21504 KB Output is correct
33 Correct 15 ms 21504 KB Output is correct
34 Correct 15 ms 21504 KB Output is correct
35 Correct 15 ms 21504 KB Output is correct
36 Correct 15 ms 21504 KB Output is correct
37 Correct 15 ms 21504 KB Output is correct
38 Correct 15 ms 21504 KB Output is correct
39 Correct 15 ms 21504 KB Output is correct
40 Correct 15 ms 21504 KB Output is correct
41 Correct 15 ms 21504 KB Output is correct
42 Correct 15 ms 21504 KB Output is correct
43 Correct 15 ms 21504 KB Output is correct
44 Correct 15 ms 21632 KB Output is correct
45 Correct 15 ms 21504 KB Output is correct
46 Correct 15 ms 21504 KB Output is correct
47 Correct 15 ms 21504 KB Output is correct
48 Correct 16 ms 21504 KB Output is correct
49 Correct 15 ms 21504 KB Output is correct
50 Correct 15 ms 21504 KB Output is correct
51 Correct 15 ms 21632 KB Output is correct
52 Correct 15 ms 21504 KB Output is correct
53 Correct 15 ms 21504 KB Output is correct
54 Correct 15 ms 21504 KB Output is correct
55 Correct 15 ms 21504 KB Output is correct
56 Correct 18 ms 21504 KB Output is correct
57 Correct 15 ms 21504 KB Output is correct
58 Correct 15 ms 21504 KB Output is correct
59 Correct 16 ms 21504 KB Output is correct
60 Correct 15 ms 21504 KB Output is correct
61 Correct 15 ms 21504 KB Output is correct
62 Correct 15 ms 21504 KB Output is correct
63 Correct 15 ms 21504 KB Output is correct
64 Correct 15 ms 21504 KB Output is correct
65 Correct 15 ms 21504 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 89 ms 34608 KB Output is correct
2 Correct 95 ms 34608 KB Output is correct
3 Correct 131 ms 39132 KB Output is correct
4 Correct 106 ms 35432 KB Output is correct
5 Correct 109 ms 34764 KB Output is correct
6 Correct 131 ms 38432 KB Output is correct
7 Correct 127 ms 36216 KB Output is correct
8 Correct 129 ms 36728 KB Output is correct
9 Correct 143 ms 34252 KB Output is correct
10 Correct 124 ms 34036 KB Output is correct
11 Correct 103 ms 31224 KB Output is correct
12 Correct 100 ms 30844 KB Output is correct
13 Correct 91 ms 30840 KB Output is correct
14 Correct 93 ms 30568 KB Output is correct
15 Correct 79 ms 29816 KB Output is correct
16 Correct 71 ms 29564 KB Output is correct
17 Correct 18 ms 23552 KB Output is correct
18 Correct 18 ms 23552 KB Output is correct
19 Correct 18 ms 23552 KB Output is correct
20 Correct 18 ms 23552 KB Output is correct
21 Correct 18 ms 23552 KB Output is correct
22 Correct 18 ms 23552 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 21632 KB Output is correct
2 Correct 16 ms 21632 KB Output is correct
3 Correct 16 ms 21632 KB Output is correct
4 Correct 16 ms 21760 KB Output is correct
5 Correct 16 ms 21760 KB Output is correct
6 Correct 16 ms 21632 KB Output is correct
7 Correct 16 ms 21760 KB Output is correct
8 Correct 15 ms 21632 KB Output is correct
9 Correct 15 ms 21632 KB Output is correct
10 Correct 15 ms 21632 KB Output is correct
11 Correct 15 ms 21632 KB Output is correct
12 Correct 15 ms 21632 KB Output is correct
13 Correct 16 ms 21632 KB Output is correct
14 Correct 15 ms 21632 KB Output is correct
15 Correct 15 ms 21632 KB Output is correct
16 Correct 15 ms 21632 KB Output is correct
17 Correct 15 ms 21632 KB Output is correct
18 Correct 15 ms 21632 KB Output is correct
19 Correct 16 ms 21612 KB Output is correct
20 Correct 15 ms 21632 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 136 ms 34680 KB Output is correct
2 Correct 140 ms 34752 KB Output is correct
3 Correct 136 ms 34808 KB Output is correct
4 Correct 150 ms 34680 KB Output is correct
5 Correct 147 ms 34808 KB Output is correct
6 Correct 164 ms 46328 KB Output is correct
7 Correct 174 ms 42104 KB Output is correct
8 Correct 165 ms 40312 KB Output is correct
9 Correct 168 ms 38520 KB Output is correct
10 Correct 136 ms 34708 KB Output is correct
11 Correct 146 ms 34680 KB Output is correct
12 Correct 136 ms 34680 KB Output is correct
13 Correct 147 ms 34740 KB Output is correct
14 Correct 131 ms 34040 KB Output is correct
15 Correct 117 ms 33400 KB Output is correct
16 Correct 73 ms 30328 KB Output is correct
17 Correct 78 ms 33264 KB Output is correct
18 Correct 89 ms 33264 KB Output is correct
19 Correct 82 ms 33388 KB Output is correct
20 Correct 92 ms 33272 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 21632 KB Output is correct
2 Correct 15 ms 21632 KB Output is correct
3 Correct 15 ms 21632 KB Output is correct
4 Correct 16 ms 21632 KB Output is correct
5 Correct 17 ms 21632 KB Output is correct
6 Correct 15 ms 21632 KB Output is correct
7 Correct 16 ms 21632 KB Output is correct
8 Correct 15 ms 21544 KB Output is correct
9 Correct 16 ms 21632 KB Output is correct
10 Correct 15 ms 21632 KB Output is correct
11 Correct 16 ms 21632 KB Output is correct
12 Correct 16 ms 21760 KB Output is correct
13 Correct 16 ms 21632 KB Output is correct
14 Correct 16 ms 21632 KB Output is correct
15 Correct 16 ms 21632 KB Output is correct
16 Correct 16 ms 21632 KB Output is correct
17 Correct 16 ms 21632 KB Output is correct
18 Correct 15 ms 21632 KB Output is correct
19 Correct 15 ms 21632 KB Output is correct
20 Correct 15 ms 21632 KB Output is correct
21 Correct 15 ms 21632 KB Output is correct
22 Correct 15 ms 21632 KB Output is correct
23 Correct 15 ms 21632 KB Output is correct
24 Correct 16 ms 21632 KB Output is correct
25 Correct 15 ms 21504 KB Output is correct
26 Correct 15 ms 21632 KB Output is correct
27 Correct 15 ms 21504 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 131 ms 34732 KB Output is correct
2 Correct 140 ms 35040 KB Output is correct
3 Correct 147 ms 33784 KB Output is correct
4 Correct 136 ms 33272 KB Output is correct
5 Correct 118 ms 31224 KB Output is correct
6 Correct 111 ms 30328 KB Output is correct
7 Correct 105 ms 29900 KB Output is correct
8 Correct 97 ms 29304 KB Output is correct
9 Correct 92 ms 29176 KB Output is correct
10 Correct 88 ms 28920 KB Output is correct
11 Correct 85 ms 28536 KB Output is correct
12 Correct 88 ms 28408 KB Output is correct
13 Correct 82 ms 28408 KB Output is correct
14 Correct 86 ms 30072 KB Output is correct
15 Correct 163 ms 42616 KB Output is correct
16 Correct 158 ms 40060 KB Output is correct
17 Correct 155 ms 40512 KB Output is correct
18 Correct 151 ms 38220 KB Output is correct
19 Correct 140 ms 33272 KB Output is correct
20 Correct 145 ms 33272 KB Output is correct
21 Correct 135 ms 33272 KB Output is correct
22 Correct 131 ms 32476 KB Output is correct
23 Correct 110 ms 31480 KB Output is correct
24 Correct 122 ms 34808 KB Output is correct
25 Correct 131 ms 34808 KB Output is correct
26 Correct 130 ms 33740 KB Output is correct
27 Correct 130 ms 33656 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 21504 KB Output is correct
2 Correct 15 ms 21504 KB Output is correct
3 Correct 15 ms 21504 KB Output is correct
4 Correct 15 ms 21504 KB Output is correct
5 Correct 15 ms 21504 KB Output is correct
6 Correct 15 ms 21548 KB Output is correct
7 Correct 15 ms 21504 KB Output is correct
8 Correct 15 ms 21504 KB Output is correct
9 Correct 15 ms 21504 KB Output is correct
10 Correct 15 ms 21504 KB Output is correct
11 Correct 16 ms 21504 KB Output is correct
12 Correct 15 ms 21504 KB Output is correct
13 Correct 18 ms 21536 KB Output is correct
14 Correct 15 ms 21504 KB Output is correct
15 Correct 16 ms 21504 KB Output is correct
16 Correct 15 ms 21504 KB Output is correct
17 Correct 15 ms 21504 KB Output is correct
18 Correct 16 ms 21504 KB Output is correct
19 Correct 15 ms 21504 KB Output is correct
20 Correct 15 ms 21504 KB Output is correct
21 Correct 15 ms 21504 KB Output is correct
22 Correct 15 ms 21504 KB Output is correct
23 Correct 15 ms 21504 KB Output is correct
24 Correct 15 ms 21504 KB Output is correct
25 Correct 15 ms 21504 KB Output is correct
26 Correct 15 ms 21632 KB Output is correct
27 Correct 15 ms 21504 KB Output is correct
28 Correct 15 ms 21504 KB Output is correct
29 Correct 15 ms 21504 KB Output is correct
30 Correct 15 ms 21504 KB Output is correct
31 Correct 16 ms 21632 KB Output is correct
32 Correct 15 ms 21504 KB Output is correct
33 Correct 15 ms 21504 KB Output is correct
34 Correct 15 ms 21504 KB Output is correct
35 Correct 15 ms 21504 KB Output is correct
36 Correct 15 ms 21504 KB Output is correct
37 Correct 15 ms 21504 KB Output is correct
38 Correct 15 ms 21504 KB Output is correct
39 Correct 15 ms 21504 KB Output is correct
40 Correct 15 ms 21504 KB Output is correct
41 Correct 15 ms 21504 KB Output is correct
42 Correct 15 ms 21504 KB Output is correct
43 Correct 15 ms 21504 KB Output is correct
44 Correct 15 ms 21632 KB Output is correct
45 Correct 15 ms 21504 KB Output is correct
46 Correct 15 ms 21504 KB Output is correct
47 Correct 15 ms 21504 KB Output is correct
48 Correct 16 ms 21504 KB Output is correct
49 Correct 15 ms 21504 KB Output is correct
50 Correct 15 ms 21504 KB Output is correct
51 Correct 15 ms 21632 KB Output is correct
52 Correct 15 ms 21504 KB Output is correct
53 Correct 15 ms 21504 KB Output is correct
54 Correct 15 ms 21504 KB Output is correct
55 Correct 15 ms 21504 KB Output is correct
56 Correct 18 ms 21504 KB Output is correct
57 Correct 15 ms 21504 KB Output is correct
58 Correct 15 ms 21504 KB Output is correct
59 Correct 16 ms 21504 KB Output is correct
60 Correct 15 ms 21504 KB Output is correct
61 Correct 15 ms 21504 KB Output is correct
62 Correct 15 ms 21504 KB Output is correct
63 Correct 15 ms 21504 KB Output is correct
64 Correct 15 ms 21504 KB Output is correct
65 Correct 15 ms 21504 KB Output is correct
66 Correct 15 ms 21504 KB Output is correct
67 Correct 15 ms 21632 KB Output is correct
68 Correct 17 ms 21752 KB Output is correct
69 Correct 15 ms 21632 KB Output is correct
70 Correct 15 ms 21632 KB Output is correct
71 Correct 16 ms 21632 KB Output is correct
72 Correct 15 ms 21632 KB Output is correct
73 Correct 15 ms 21632 KB Output is correct
74 Correct 15 ms 21632 KB Output is correct
75 Correct 15 ms 21632 KB Output is correct
76 Correct 15 ms 21504 KB Output is correct
77 Correct 16 ms 21632 KB Output is correct
78 Correct 15 ms 21632 KB Output is correct
79 Correct 15 ms 21632 KB Output is correct
80 Correct 15 ms 21632 KB Output is correct
81 Correct 16 ms 21504 KB Output is correct
82 Correct 17 ms 21632 KB Output is correct
83 Correct 15 ms 21632 KB Output is correct
84 Correct 15 ms 21632 KB Output is correct
85 Correct 16 ms 21632 KB Output is correct
86 Correct 15 ms 21632 KB Output is correct
87 Correct 15 ms 21632 KB Output is correct
88 Correct 15 ms 21632 KB Output is correct
89 Correct 16 ms 21632 KB Output is correct
90 Correct 15 ms 21632 KB Output is correct
91 Correct 15 ms 21632 KB Output is correct
92 Correct 15 ms 21632 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 15 ms 21504 KB Output is correct
2 Correct 15 ms 21504 KB Output is correct
3 Correct 15 ms 21504 KB Output is correct
4 Correct 15 ms 21504 KB Output is correct
5 Correct 15 ms 21504 KB Output is correct
6 Correct 15 ms 21548 KB Output is correct
7 Correct 15 ms 21504 KB Output is correct
8 Correct 15 ms 21504 KB Output is correct
9 Correct 15 ms 21504 KB Output is correct
10 Correct 15 ms 21504 KB Output is correct
11 Correct 16 ms 21504 KB Output is correct
12 Correct 15 ms 21504 KB Output is correct
13 Correct 18 ms 21536 KB Output is correct
14 Correct 15 ms 21504 KB Output is correct
15 Correct 16 ms 21504 KB Output is correct
16 Correct 15 ms 21504 KB Output is correct
17 Correct 15 ms 21504 KB Output is correct
18 Correct 16 ms 21504 KB Output is correct
19 Correct 15 ms 21504 KB Output is correct
20 Correct 15 ms 21504 KB Output is correct
21 Correct 15 ms 21504 KB Output is correct
22 Correct 15 ms 21504 KB Output is correct
23 Correct 15 ms 21504 KB Output is correct
24 Correct 15 ms 21504 KB Output is correct
25 Correct 15 ms 21504 KB Output is correct
26 Correct 15 ms 21632 KB Output is correct
27 Correct 15 ms 21504 KB Output is correct
28 Correct 15 ms 21504 KB Output is correct
29 Correct 15 ms 21504 KB Output is correct
30 Correct 15 ms 21504 KB Output is correct
31 Correct 16 ms 21632 KB Output is correct
32 Correct 15 ms 21504 KB Output is correct
33 Correct 15 ms 21504 KB Output is correct
34 Correct 15 ms 21504 KB Output is correct
35 Correct 15 ms 21504 KB Output is correct
36 Correct 15 ms 21504 KB Output is correct
37 Correct 15 ms 21504 KB Output is correct
38 Correct 15 ms 21504 KB Output is correct
39 Correct 15 ms 21504 KB Output is correct
40 Correct 15 ms 21504 KB Output is correct
41 Correct 15 ms 21504 KB Output is correct
42 Correct 15 ms 21504 KB Output is correct
43 Correct 15 ms 21504 KB Output is correct
44 Correct 15 ms 21632 KB Output is correct
45 Correct 15 ms 21504 KB Output is correct
46 Correct 15 ms 21504 KB Output is correct
47 Correct 15 ms 21504 KB Output is correct
48 Correct 16 ms 21504 KB Output is correct
49 Correct 15 ms 21504 KB Output is correct
50 Correct 15 ms 21504 KB Output is correct
51 Correct 15 ms 21632 KB Output is correct
52 Correct 15 ms 21504 KB Output is correct
53 Correct 15 ms 21504 KB Output is correct
54 Correct 15 ms 21504 KB Output is correct
55 Correct 15 ms 21504 KB Output is correct
56 Correct 18 ms 21504 KB Output is correct
57 Correct 15 ms 21504 KB Output is correct
58 Correct 15 ms 21504 KB Output is correct
59 Correct 16 ms 21504 KB Output is correct
60 Correct 15 ms 21504 KB Output is correct
61 Correct 15 ms 21504 KB Output is correct
62 Correct 15 ms 21504 KB Output is correct
63 Correct 15 ms 21504 KB Output is correct
64 Correct 15 ms 21504 KB Output is correct
65 Correct 15 ms 21504 KB Output is correct
66 Correct 89 ms 34608 KB Output is correct
67 Correct 95 ms 34608 KB Output is correct
68 Correct 131 ms 39132 KB Output is correct
69 Correct 106 ms 35432 KB Output is correct
70 Correct 109 ms 34764 KB Output is correct
71 Correct 131 ms 38432 KB Output is correct
72 Correct 127 ms 36216 KB Output is correct
73 Correct 129 ms 36728 KB Output is correct
74 Correct 143 ms 34252 KB Output is correct
75 Correct 124 ms 34036 KB Output is correct
76 Correct 103 ms 31224 KB Output is correct
77 Correct 100 ms 30844 KB Output is correct
78 Correct 91 ms 30840 KB Output is correct
79 Correct 93 ms 30568 KB Output is correct
80 Correct 79 ms 29816 KB Output is correct
81 Correct 71 ms 29564 KB Output is correct
82 Correct 18 ms 23552 KB Output is correct
83 Correct 18 ms 23552 KB Output is correct
84 Correct 18 ms 23552 KB Output is correct
85 Correct 18 ms 23552 KB Output is correct
86 Correct 18 ms 23552 KB Output is correct
87 Correct 18 ms 23552 KB Output is correct
88 Correct 15 ms 21632 KB Output is correct
89 Correct 16 ms 21632 KB Output is correct
90 Correct 16 ms 21632 KB Output is correct
91 Correct 16 ms 21760 KB Output is correct
92 Correct 16 ms 21760 KB Output is correct
93 Correct 16 ms 21632 KB Output is correct
94 Correct 16 ms 21760 KB Output is correct
95 Correct 15 ms 21632 KB Output is correct
96 Correct 15 ms 21632 KB Output is correct
97 Correct 15 ms 21632 KB Output is correct
98 Correct 15 ms 21632 KB Output is correct
99 Correct 15 ms 21632 KB Output is correct
100 Correct 16 ms 21632 KB Output is correct
101 Correct 15 ms 21632 KB Output is correct
102 Correct 15 ms 21632 KB Output is correct
103 Correct 15 ms 21632 KB Output is correct
104 Correct 15 ms 21632 KB Output is correct
105 Correct 15 ms 21632 KB Output is correct
106 Correct 16 ms 21612 KB Output is correct
107 Correct 15 ms 21632 KB Output is correct
108 Correct 136 ms 34680 KB Output is correct
109 Correct 140 ms 34752 KB Output is correct
110 Correct 136 ms 34808 KB Output is correct
111 Correct 150 ms 34680 KB Output is correct
112 Correct 147 ms 34808 KB Output is correct
113 Correct 164 ms 46328 KB Output is correct
114 Correct 174 ms 42104 KB Output is correct
115 Correct 165 ms 40312 KB Output is correct
116 Correct 168 ms 38520 KB Output is correct
117 Correct 136 ms 34708 KB Output is correct
118 Correct 146 ms 34680 KB Output is correct
119 Correct 136 ms 34680 KB Output is correct
120 Correct 147 ms 34740 KB Output is correct
121 Correct 131 ms 34040 KB Output is correct
122 Correct 117 ms 33400 KB Output is correct
123 Correct 73 ms 30328 KB Output is correct
124 Correct 78 ms 33264 KB Output is correct
125 Correct 89 ms 33264 KB Output is correct
126 Correct 82 ms 33388 KB Output is correct
127 Correct 92 ms 33272 KB Output is correct
128 Correct 15 ms 21632 KB Output is correct
129 Correct 15 ms 21632 KB Output is correct
130 Correct 15 ms 21632 KB Output is correct
131 Correct 16 ms 21632 KB Output is correct
132 Correct 17 ms 21632 KB Output is correct
133 Correct 15 ms 21632 KB Output is correct
134 Correct 16 ms 21632 KB Output is correct
135 Correct 15 ms 21544 KB Output is correct
136 Correct 16 ms 21632 KB Output is correct
137 Correct 15 ms 21632 KB Output is correct
138 Correct 16 ms 21632 KB Output is correct
139 Correct 16 ms 21760 KB Output is correct
140 Correct 16 ms 21632 KB Output is correct
141 Correct 16 ms 21632 KB Output is correct
142 Correct 16 ms 21632 KB Output is correct
143 Correct 16 ms 21632 KB Output is correct
144 Correct 16 ms 21632 KB Output is correct
145 Correct 15 ms 21632 KB Output is correct
146 Correct 15 ms 21632 KB Output is correct
147 Correct 15 ms 21632 KB Output is correct
148 Correct 15 ms 21632 KB Output is correct
149 Correct 15 ms 21632 KB Output is correct
150 Correct 15 ms 21632 KB Output is correct
151 Correct 16 ms 21632 KB Output is correct
152 Correct 15 ms 21504 KB Output is correct
153 Correct 15 ms 21632 KB Output is correct
154 Correct 15 ms 21504 KB Output is correct
155 Correct 131 ms 34732 KB Output is correct
156 Correct 140 ms 35040 KB Output is correct
157 Correct 147 ms 33784 KB Output is correct
158 Correct 136 ms 33272 KB Output is correct
159 Correct 118 ms 31224 KB Output is correct
160 Correct 111 ms 30328 KB Output is correct
161 Correct 105 ms 29900 KB Output is correct
162 Correct 97 ms 29304 KB Output is correct
163 Correct 92 ms 29176 KB Output is correct
164 Correct 88 ms 28920 KB Output is correct
165 Correct 85 ms 28536 KB Output is correct
166 Correct 88 ms 28408 KB Output is correct
167 Correct 82 ms 28408 KB Output is correct
168 Correct 86 ms 30072 KB Output is correct
169 Correct 163 ms 42616 KB Output is correct
170 Correct 158 ms 40060 KB Output is correct
171 Correct 155 ms 40512 KB Output is correct
172 Correct 151 ms 38220 KB Output is correct
173 Correct 140 ms 33272 KB Output is correct
174 Correct 145 ms 33272 KB Output is correct
175 Correct 135 ms 33272 KB Output is correct
176 Correct 131 ms 32476 KB Output is correct
177 Correct 110 ms 31480 KB Output is correct
178 Correct 122 ms 34808 KB Output is correct
179 Correct 131 ms 34808 KB Output is correct
180 Correct 130 ms 33740 KB Output is correct
181 Correct 130 ms 33656 KB Output is correct
182 Correct 15 ms 21504 KB Output is correct
183 Correct 15 ms 21632 KB Output is correct
184 Correct 17 ms 21752 KB Output is correct
185 Correct 15 ms 21632 KB Output is correct
186 Correct 15 ms 21632 KB Output is correct
187 Correct 16 ms 21632 KB Output is correct
188 Correct 15 ms 21632 KB Output is correct
189 Correct 15 ms 21632 KB Output is correct
190 Correct 15 ms 21632 KB Output is correct
191 Correct 15 ms 21632 KB Output is correct
192 Correct 15 ms 21504 KB Output is correct
193 Correct 16 ms 21632 KB Output is correct
194 Correct 15 ms 21632 KB Output is correct
195 Correct 15 ms 21632 KB Output is correct
196 Correct 15 ms 21632 KB Output is correct
197 Correct 16 ms 21504 KB Output is correct
198 Correct 17 ms 21632 KB Output is correct
199 Correct 15 ms 21632 KB Output is correct
200 Correct 15 ms 21632 KB Output is correct
201 Correct 16 ms 21632 KB Output is correct
202 Correct 15 ms 21632 KB Output is correct
203 Correct 15 ms 21632 KB Output is correct
204 Correct 15 ms 21632 KB Output is correct
205 Correct 16 ms 21632 KB Output is correct
206 Correct 15 ms 21632 KB Output is correct
207 Correct 15 ms 21632 KB Output is correct
208 Correct 15 ms 21632 KB Output is correct
209 Correct 17 ms 23040 KB Output is correct
210 Correct 78 ms 30584 KB Output is correct
211 Correct 110 ms 33012 KB Output is correct
212 Correct 125 ms 34480 KB Output is correct
213 Correct 150 ms 35704 KB Output is correct
214 Correct 69 ms 31480 KB Output is correct
215 Correct 70 ms 30840 KB Output is correct
216 Correct 134 ms 33784 KB Output is correct
217 Correct 133 ms 31608 KB Output is correct
218 Correct 106 ms 29304 KB Output is correct
219 Correct 95 ms 28792 KB Output is correct
220 Correct 91 ms 28536 KB Output is correct
221 Correct 92 ms 28408 KB Output is correct
222 Correct 89 ms 28920 KB Output is correct
223 Correct 135 ms 34680 KB Output is correct
224 Correct 136 ms 33656 KB Output is correct
225 Correct 129 ms 31224 KB Output is correct
226 Correct 122 ms 31224 KB Output is correct
227 Correct 123 ms 31224 KB Output is correct
228 Correct 116 ms 30824 KB Output is correct
229 Correct 100 ms 30456 KB Output is correct
230 Correct 105 ms 30712 KB Output is correct
231 Correct 111 ms 30972 KB Output is correct