Submission #49263

# Submission time Handle Problem Language Result Execution time Memory
49263 2018-05-24T15:14:08 Z zadrga Duathlon (APIO18_duathlon) C++14
100 / 100
333 ms 39728 KB
#include <bits/stdc++.h>

using namespace std;

#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define INF (1LL << 55)
#define MOD (1000 * 1000 * 1000 + 7)
#define maxn 200111

typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;


vector<int> adj[maxn], edge[maxn], tree[maxn];
int num[maxn], low[maxn];
ll c[maxn], two_path[maxn];
bool new_component[maxn];

int n, nn, cnt, BCC;
ll ans;

void DFS(int x){
	nn++;
	num[x] = low[x] = ++cnt;
	for(int v : adj[x]){
		if(!num[v]){
			DFS(v);
			if(low[v] >= num[x])
				new_component[v] = 1;

			tree[x].pb(v);
			low[x] = min(low[x], low[v]);
		}
		else
			low[x] = min(low[x], num[v]);
	}
}

void Add_Edge(int x, int y){
	edge[x].pb(y);
	edge[y].pb(x);
}

void Make_BBC(int x, int component){
	if(component != 0)
		Add_Edge(x, component);

	for(int v : tree[x]){
		if(new_component[v]){
			BCC++;
			Add_Edge(x, BCC);
			Make_BBC(v, BCC);
		}
		else
			Make_BBC(v, component);
	}
}

void Calc(int x, int par){
	if(x <= n)
		c[x] = 1;

	for(int v : edge[x]){
		if(v == par)
			continue;

		Calc(v, x);
		c[x] += c[v];
	}

	for(int v : edge[x]){
		if(v == par)
			two_path[x] += (nn - c[x]) * (nn - c[x] - 1);
		else
			two_path[x] += c[v] * (c[v] - 1);
	}
}

void Go(int x, int par){
	for(int v : edge[x]){
		if(v == par)
			continue;

		Go(v, x);
	}

	if(x > n)
		return;

	ll all_paths = 1LL * (nn - 1) * (nn - 2);
	ll not_valid = 0;
	for(int v : edge[x]){
		if(v == par)
			not_valid += two_path[v] - c[x] * (c[x] - 1);
		else
			not_valid += two_path[v] - (nn - c[v]) * (nn - c[v] - 1);
	}
	ans += all_paths - not_valid;
}

int main(){
	int m;
	scanf("%d%d", &n, &m);
	for(int i = 0; i < m; i++){
		int a, b;
		scanf("%d%d", &a, &b);
		adj[a].pb(b);
		adj[b].pb(a);
	}

	BCC = n;
	for(int i = 1; i <= n; i++){
		if(!num[i]){
			nn = 0;
			DFS(i);
			Make_BBC(i, 0);
			Calc(i, 0);
			Go(i, 0);
		}
	}

	printf("%lld\n", ans);
	return 0;
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:107:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d", &n, &m);
  ~~~~~^~~~~~~~~~~~~~~~
count_triplets.cpp:110:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d", &a, &b);
   ~~~~~^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14456 KB Output is correct
2 Correct 15 ms 14564 KB Output is correct
3 Correct 17 ms 14564 KB Output is correct
4 Correct 13 ms 14588 KB Output is correct
5 Correct 14 ms 14608 KB Output is correct
6 Correct 13 ms 14608 KB Output is correct
7 Correct 13 ms 14608 KB Output is correct
8 Correct 15 ms 14676 KB Output is correct
9 Correct 14 ms 14692 KB Output is correct
10 Correct 12 ms 14692 KB Output is correct
11 Correct 15 ms 14692 KB Output is correct
12 Correct 14 ms 14712 KB Output is correct
13 Correct 13 ms 14712 KB Output is correct
14 Correct 13 ms 14716 KB Output is correct
15 Correct 18 ms 14716 KB Output is correct
16 Correct 13 ms 14716 KB Output is correct
17 Correct 12 ms 14716 KB Output is correct
18 Correct 14 ms 14716 KB Output is correct
19 Correct 13 ms 14716 KB Output is correct
20 Correct 15 ms 14716 KB Output is correct
21 Correct 15 ms 14716 KB Output is correct
22 Correct 18 ms 14716 KB Output is correct
23 Correct 17 ms 14716 KB Output is correct
24 Correct 15 ms 14716 KB Output is correct
25 Correct 13 ms 14716 KB Output is correct
26 Correct 13 ms 14716 KB Output is correct
27 Correct 14 ms 14840 KB Output is correct
28 Correct 15 ms 14840 KB Output is correct
29 Correct 13 ms 14840 KB Output is correct
30 Correct 15 ms 14840 KB Output is correct
31 Correct 17 ms 14840 KB Output is correct
32 Correct 17 ms 14840 KB Output is correct
33 Correct 13 ms 14840 KB Output is correct
34 Correct 14 ms 14840 KB Output is correct
35 Correct 15 ms 14840 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14456 KB Output is correct
2 Correct 15 ms 14564 KB Output is correct
3 Correct 17 ms 14564 KB Output is correct
4 Correct 13 ms 14588 KB Output is correct
5 Correct 14 ms 14608 KB Output is correct
6 Correct 13 ms 14608 KB Output is correct
7 Correct 13 ms 14608 KB Output is correct
8 Correct 15 ms 14676 KB Output is correct
9 Correct 14 ms 14692 KB Output is correct
10 Correct 12 ms 14692 KB Output is correct
11 Correct 15 ms 14692 KB Output is correct
12 Correct 14 ms 14712 KB Output is correct
13 Correct 13 ms 14712 KB Output is correct
14 Correct 13 ms 14716 KB Output is correct
15 Correct 18 ms 14716 KB Output is correct
16 Correct 13 ms 14716 KB Output is correct
17 Correct 12 ms 14716 KB Output is correct
18 Correct 14 ms 14716 KB Output is correct
19 Correct 13 ms 14716 KB Output is correct
20 Correct 15 ms 14716 KB Output is correct
21 Correct 15 ms 14716 KB Output is correct
22 Correct 18 ms 14716 KB Output is correct
23 Correct 17 ms 14716 KB Output is correct
24 Correct 15 ms 14716 KB Output is correct
25 Correct 13 ms 14716 KB Output is correct
26 Correct 13 ms 14716 KB Output is correct
27 Correct 14 ms 14840 KB Output is correct
28 Correct 15 ms 14840 KB Output is correct
29 Correct 13 ms 14840 KB Output is correct
30 Correct 15 ms 14840 KB Output is correct
31 Correct 17 ms 14840 KB Output is correct
32 Correct 17 ms 14840 KB Output is correct
33 Correct 13 ms 14840 KB Output is correct
34 Correct 14 ms 14840 KB Output is correct
35 Correct 15 ms 14840 KB Output is correct
36 Correct 16 ms 14840 KB Output is correct
37 Correct 19 ms 14840 KB Output is correct
38 Correct 16 ms 14840 KB Output is correct
39 Correct 15 ms 14840 KB Output is correct
40 Correct 19 ms 14840 KB Output is correct
41 Correct 15 ms 14840 KB Output is correct
42 Correct 15 ms 14840 KB Output is correct
43 Correct 15 ms 14840 KB Output is correct
44 Correct 16 ms 14840 KB Output is correct
45 Correct 15 ms 14840 KB Output is correct
46 Correct 13 ms 14840 KB Output is correct
47 Correct 13 ms 14840 KB Output is correct
48 Correct 17 ms 14840 KB Output is correct
49 Correct 17 ms 14840 KB Output is correct
50 Correct 15 ms 14840 KB Output is correct
51 Correct 15 ms 14840 KB Output is correct
52 Correct 15 ms 14840 KB Output is correct
53 Correct 18 ms 14840 KB Output is correct
54 Correct 17 ms 14840 KB Output is correct
55 Correct 18 ms 14840 KB Output is correct
56 Correct 13 ms 14840 KB Output is correct
57 Correct 12 ms 14840 KB Output is correct
58 Correct 12 ms 14840 KB Output is correct
59 Correct 13 ms 14840 KB Output is correct
60 Correct 12 ms 14840 KB Output is correct
61 Correct 12 ms 14840 KB Output is correct
62 Correct 13 ms 14840 KB Output is correct
63 Correct 13 ms 14840 KB Output is correct
64 Correct 14 ms 14840 KB Output is correct
65 Correct 14 ms 14840 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 156 ms 37812 KB Output is correct
2 Correct 151 ms 37812 KB Output is correct
3 Correct 209 ms 37812 KB Output is correct
4 Correct 254 ms 37812 KB Output is correct
5 Correct 181 ms 37812 KB Output is correct
6 Correct 200 ms 37812 KB Output is correct
7 Correct 232 ms 37812 KB Output is correct
8 Correct 255 ms 37812 KB Output is correct
9 Correct 273 ms 37812 KB Output is correct
10 Correct 274 ms 37812 KB Output is correct
11 Correct 215 ms 37812 KB Output is correct
12 Correct 125 ms 37812 KB Output is correct
13 Correct 120 ms 37812 KB Output is correct
14 Correct 128 ms 37812 KB Output is correct
15 Correct 160 ms 37812 KB Output is correct
16 Correct 119 ms 37812 KB Output is correct
17 Correct 18 ms 37812 KB Output is correct
18 Correct 18 ms 37812 KB Output is correct
19 Correct 19 ms 37812 KB Output is correct
20 Correct 22 ms 37812 KB Output is correct
21 Correct 20 ms 37812 KB Output is correct
22 Correct 20 ms 37812 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 18 ms 37812 KB Output is correct
2 Correct 19 ms 37812 KB Output is correct
3 Correct 16 ms 37812 KB Output is correct
4 Correct 14 ms 37812 KB Output is correct
5 Correct 15 ms 37812 KB Output is correct
6 Correct 14 ms 37812 KB Output is correct
7 Correct 19 ms 37812 KB Output is correct
8 Correct 17 ms 37812 KB Output is correct
9 Correct 15 ms 37812 KB Output is correct
10 Correct 14 ms 37812 KB Output is correct
11 Correct 15 ms 37812 KB Output is correct
12 Correct 14 ms 37812 KB Output is correct
13 Correct 14 ms 37812 KB Output is correct
14 Correct 16 ms 37812 KB Output is correct
15 Correct 17 ms 37812 KB Output is correct
16 Correct 17 ms 37812 KB Output is correct
17 Correct 17 ms 37812 KB Output is correct
18 Correct 17 ms 37812 KB Output is correct
19 Correct 15 ms 37812 KB Output is correct
20 Correct 16 ms 37812 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 238 ms 37812 KB Output is correct
2 Correct 241 ms 37812 KB Output is correct
3 Correct 223 ms 37812 KB Output is correct
4 Correct 179 ms 37812 KB Output is correct
5 Correct 244 ms 37812 KB Output is correct
6 Correct 296 ms 39728 KB Output is correct
7 Correct 311 ms 39728 KB Output is correct
8 Correct 290 ms 39728 KB Output is correct
9 Correct 333 ms 39728 KB Output is correct
10 Correct 247 ms 39728 KB Output is correct
11 Correct 248 ms 39728 KB Output is correct
12 Correct 251 ms 39728 KB Output is correct
13 Correct 253 ms 39728 KB Output is correct
14 Correct 206 ms 39728 KB Output is correct
15 Correct 189 ms 39728 KB Output is correct
16 Correct 123 ms 39728 KB Output is correct
17 Correct 178 ms 39728 KB Output is correct
18 Correct 213 ms 39728 KB Output is correct
19 Correct 166 ms 39728 KB Output is correct
20 Correct 180 ms 39728 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 39728 KB Output is correct
2 Correct 19 ms 39728 KB Output is correct
3 Correct 16 ms 39728 KB Output is correct
4 Correct 18 ms 39728 KB Output is correct
5 Correct 19 ms 39728 KB Output is correct
6 Correct 15 ms 39728 KB Output is correct
7 Correct 16 ms 39728 KB Output is correct
8 Correct 19 ms 39728 KB Output is correct
9 Correct 16 ms 39728 KB Output is correct
10 Correct 19 ms 39728 KB Output is correct
11 Correct 20 ms 39728 KB Output is correct
12 Correct 20 ms 39728 KB Output is correct
13 Correct 19 ms 39728 KB Output is correct
14 Correct 15 ms 39728 KB Output is correct
15 Correct 17 ms 39728 KB Output is correct
16 Correct 16 ms 39728 KB Output is correct
17 Correct 16 ms 39728 KB Output is correct
18 Correct 19 ms 39728 KB Output is correct
19 Correct 14 ms 39728 KB Output is correct
20 Correct 16 ms 39728 KB Output is correct
21 Correct 16 ms 39728 KB Output is correct
22 Correct 18 ms 39728 KB Output is correct
23 Correct 17 ms 39728 KB Output is correct
24 Correct 16 ms 39728 KB Output is correct
25 Correct 17 ms 39728 KB Output is correct
26 Correct 17 ms 39728 KB Output is correct
27 Correct 17 ms 39728 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 245 ms 39728 KB Output is correct
2 Correct 289 ms 39728 KB Output is correct
3 Correct 237 ms 39728 KB Output is correct
4 Correct 278 ms 39728 KB Output is correct
5 Correct 230 ms 39728 KB Output is correct
6 Correct 207 ms 39728 KB Output is correct
7 Correct 224 ms 39728 KB Output is correct
8 Correct 238 ms 39728 KB Output is correct
9 Correct 207 ms 39728 KB Output is correct
10 Correct 192 ms 39728 KB Output is correct
11 Correct 194 ms 39728 KB Output is correct
12 Correct 188 ms 39728 KB Output is correct
13 Correct 194 ms 39728 KB Output is correct
14 Correct 147 ms 39728 KB Output is correct
15 Correct 287 ms 39728 KB Output is correct
16 Correct 260 ms 39728 KB Output is correct
17 Correct 291 ms 39728 KB Output is correct
18 Correct 329 ms 39728 KB Output is correct
19 Correct 248 ms 39728 KB Output is correct
20 Correct 253 ms 39728 KB Output is correct
21 Correct 180 ms 39728 KB Output is correct
22 Correct 149 ms 39728 KB Output is correct
23 Correct 161 ms 39728 KB Output is correct
24 Correct 168 ms 39728 KB Output is correct
25 Correct 169 ms 39728 KB Output is correct
26 Correct 183 ms 39728 KB Output is correct
27 Correct 220 ms 39728 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14456 KB Output is correct
2 Correct 15 ms 14564 KB Output is correct
3 Correct 17 ms 14564 KB Output is correct
4 Correct 13 ms 14588 KB Output is correct
5 Correct 14 ms 14608 KB Output is correct
6 Correct 13 ms 14608 KB Output is correct
7 Correct 13 ms 14608 KB Output is correct
8 Correct 15 ms 14676 KB Output is correct
9 Correct 14 ms 14692 KB Output is correct
10 Correct 12 ms 14692 KB Output is correct
11 Correct 15 ms 14692 KB Output is correct
12 Correct 14 ms 14712 KB Output is correct
13 Correct 13 ms 14712 KB Output is correct
14 Correct 13 ms 14716 KB Output is correct
15 Correct 18 ms 14716 KB Output is correct
16 Correct 13 ms 14716 KB Output is correct
17 Correct 12 ms 14716 KB Output is correct
18 Correct 14 ms 14716 KB Output is correct
19 Correct 13 ms 14716 KB Output is correct
20 Correct 15 ms 14716 KB Output is correct
21 Correct 15 ms 14716 KB Output is correct
22 Correct 18 ms 14716 KB Output is correct
23 Correct 17 ms 14716 KB Output is correct
24 Correct 15 ms 14716 KB Output is correct
25 Correct 13 ms 14716 KB Output is correct
26 Correct 13 ms 14716 KB Output is correct
27 Correct 14 ms 14840 KB Output is correct
28 Correct 15 ms 14840 KB Output is correct
29 Correct 13 ms 14840 KB Output is correct
30 Correct 15 ms 14840 KB Output is correct
31 Correct 17 ms 14840 KB Output is correct
32 Correct 17 ms 14840 KB Output is correct
33 Correct 13 ms 14840 KB Output is correct
34 Correct 14 ms 14840 KB Output is correct
35 Correct 15 ms 14840 KB Output is correct
36 Correct 16 ms 14840 KB Output is correct
37 Correct 19 ms 14840 KB Output is correct
38 Correct 16 ms 14840 KB Output is correct
39 Correct 15 ms 14840 KB Output is correct
40 Correct 19 ms 14840 KB Output is correct
41 Correct 15 ms 14840 KB Output is correct
42 Correct 15 ms 14840 KB Output is correct
43 Correct 15 ms 14840 KB Output is correct
44 Correct 16 ms 14840 KB Output is correct
45 Correct 15 ms 14840 KB Output is correct
46 Correct 13 ms 14840 KB Output is correct
47 Correct 13 ms 14840 KB Output is correct
48 Correct 17 ms 14840 KB Output is correct
49 Correct 17 ms 14840 KB Output is correct
50 Correct 15 ms 14840 KB Output is correct
51 Correct 15 ms 14840 KB Output is correct
52 Correct 15 ms 14840 KB Output is correct
53 Correct 18 ms 14840 KB Output is correct
54 Correct 17 ms 14840 KB Output is correct
55 Correct 18 ms 14840 KB Output is correct
56 Correct 13 ms 14840 KB Output is correct
57 Correct 12 ms 14840 KB Output is correct
58 Correct 12 ms 14840 KB Output is correct
59 Correct 13 ms 14840 KB Output is correct
60 Correct 12 ms 14840 KB Output is correct
61 Correct 12 ms 14840 KB Output is correct
62 Correct 13 ms 14840 KB Output is correct
63 Correct 13 ms 14840 KB Output is correct
64 Correct 14 ms 14840 KB Output is correct
65 Correct 14 ms 14840 KB Output is correct
66 Correct 13 ms 39728 KB Output is correct
67 Correct 14 ms 39728 KB Output is correct
68 Correct 14 ms 39728 KB Output is correct
69 Correct 14 ms 39728 KB Output is correct
70 Correct 17 ms 39728 KB Output is correct
71 Correct 14 ms 39728 KB Output is correct
72 Correct 36 ms 39728 KB Output is correct
73 Correct 15 ms 39728 KB Output is correct
74 Correct 15 ms 39728 KB Output is correct
75 Correct 16 ms 39728 KB Output is correct
76 Correct 15 ms 39728 KB Output is correct
77 Correct 16 ms 39728 KB Output is correct
78 Correct 15 ms 39728 KB Output is correct
79 Correct 15 ms 39728 KB Output is correct
80 Correct 16 ms 39728 KB Output is correct
81 Correct 16 ms 39728 KB Output is correct
82 Correct 16 ms 39728 KB Output is correct
83 Correct 17 ms 39728 KB Output is correct
84 Correct 16 ms 39728 KB Output is correct
85 Correct 21 ms 39728 KB Output is correct
86 Correct 16 ms 39728 KB Output is correct
87 Correct 18 ms 39728 KB Output is correct
88 Correct 16 ms 39728 KB Output is correct
89 Correct 20 ms 39728 KB Output is correct
90 Correct 15 ms 39728 KB Output is correct
91 Correct 21 ms 39728 KB Output is correct
92 Correct 19 ms 39728 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 14 ms 14456 KB Output is correct
2 Correct 15 ms 14564 KB Output is correct
3 Correct 17 ms 14564 KB Output is correct
4 Correct 13 ms 14588 KB Output is correct
5 Correct 14 ms 14608 KB Output is correct
6 Correct 13 ms 14608 KB Output is correct
7 Correct 13 ms 14608 KB Output is correct
8 Correct 15 ms 14676 KB Output is correct
9 Correct 14 ms 14692 KB Output is correct
10 Correct 12 ms 14692 KB Output is correct
11 Correct 15 ms 14692 KB Output is correct
12 Correct 14 ms 14712 KB Output is correct
13 Correct 13 ms 14712 KB Output is correct
14 Correct 13 ms 14716 KB Output is correct
15 Correct 18 ms 14716 KB Output is correct
16 Correct 13 ms 14716 KB Output is correct
17 Correct 12 ms 14716 KB Output is correct
18 Correct 14 ms 14716 KB Output is correct
19 Correct 13 ms 14716 KB Output is correct
20 Correct 15 ms 14716 KB Output is correct
21 Correct 15 ms 14716 KB Output is correct
22 Correct 18 ms 14716 KB Output is correct
23 Correct 17 ms 14716 KB Output is correct
24 Correct 15 ms 14716 KB Output is correct
25 Correct 13 ms 14716 KB Output is correct
26 Correct 13 ms 14716 KB Output is correct
27 Correct 14 ms 14840 KB Output is correct
28 Correct 15 ms 14840 KB Output is correct
29 Correct 13 ms 14840 KB Output is correct
30 Correct 15 ms 14840 KB Output is correct
31 Correct 17 ms 14840 KB Output is correct
32 Correct 17 ms 14840 KB Output is correct
33 Correct 13 ms 14840 KB Output is correct
34 Correct 14 ms 14840 KB Output is correct
35 Correct 15 ms 14840 KB Output is correct
36 Correct 16 ms 14840 KB Output is correct
37 Correct 19 ms 14840 KB Output is correct
38 Correct 16 ms 14840 KB Output is correct
39 Correct 15 ms 14840 KB Output is correct
40 Correct 19 ms 14840 KB Output is correct
41 Correct 15 ms 14840 KB Output is correct
42 Correct 15 ms 14840 KB Output is correct
43 Correct 15 ms 14840 KB Output is correct
44 Correct 16 ms 14840 KB Output is correct
45 Correct 15 ms 14840 KB Output is correct
46 Correct 13 ms 14840 KB Output is correct
47 Correct 13 ms 14840 KB Output is correct
48 Correct 17 ms 14840 KB Output is correct
49 Correct 17 ms 14840 KB Output is correct
50 Correct 15 ms 14840 KB Output is correct
51 Correct 15 ms 14840 KB Output is correct
52 Correct 15 ms 14840 KB Output is correct
53 Correct 18 ms 14840 KB Output is correct
54 Correct 17 ms 14840 KB Output is correct
55 Correct 18 ms 14840 KB Output is correct
56 Correct 13 ms 14840 KB Output is correct
57 Correct 12 ms 14840 KB Output is correct
58 Correct 12 ms 14840 KB Output is correct
59 Correct 13 ms 14840 KB Output is correct
60 Correct 12 ms 14840 KB Output is correct
61 Correct 12 ms 14840 KB Output is correct
62 Correct 13 ms 14840 KB Output is correct
63 Correct 13 ms 14840 KB Output is correct
64 Correct 14 ms 14840 KB Output is correct
65 Correct 14 ms 14840 KB Output is correct
66 Correct 156 ms 37812 KB Output is correct
67 Correct 151 ms 37812 KB Output is correct
68 Correct 209 ms 37812 KB Output is correct
69 Correct 254 ms 37812 KB Output is correct
70 Correct 181 ms 37812 KB Output is correct
71 Correct 200 ms 37812 KB Output is correct
72 Correct 232 ms 37812 KB Output is correct
73 Correct 255 ms 37812 KB Output is correct
74 Correct 273 ms 37812 KB Output is correct
75 Correct 274 ms 37812 KB Output is correct
76 Correct 215 ms 37812 KB Output is correct
77 Correct 125 ms 37812 KB Output is correct
78 Correct 120 ms 37812 KB Output is correct
79 Correct 128 ms 37812 KB Output is correct
80 Correct 160 ms 37812 KB Output is correct
81 Correct 119 ms 37812 KB Output is correct
82 Correct 18 ms 37812 KB Output is correct
83 Correct 18 ms 37812 KB Output is correct
84 Correct 19 ms 37812 KB Output is correct
85 Correct 22 ms 37812 KB Output is correct
86 Correct 20 ms 37812 KB Output is correct
87 Correct 20 ms 37812 KB Output is correct
88 Correct 18 ms 37812 KB Output is correct
89 Correct 19 ms 37812 KB Output is correct
90 Correct 16 ms 37812 KB Output is correct
91 Correct 14 ms 37812 KB Output is correct
92 Correct 15 ms 37812 KB Output is correct
93 Correct 14 ms 37812 KB Output is correct
94 Correct 19 ms 37812 KB Output is correct
95 Correct 17 ms 37812 KB Output is correct
96 Correct 15 ms 37812 KB Output is correct
97 Correct 14 ms 37812 KB Output is correct
98 Correct 15 ms 37812 KB Output is correct
99 Correct 14 ms 37812 KB Output is correct
100 Correct 14 ms 37812 KB Output is correct
101 Correct 16 ms 37812 KB Output is correct
102 Correct 17 ms 37812 KB Output is correct
103 Correct 17 ms 37812 KB Output is correct
104 Correct 17 ms 37812 KB Output is correct
105 Correct 17 ms 37812 KB Output is correct
106 Correct 15 ms 37812 KB Output is correct
107 Correct 16 ms 37812 KB Output is correct
108 Correct 238 ms 37812 KB Output is correct
109 Correct 241 ms 37812 KB Output is correct
110 Correct 223 ms 37812 KB Output is correct
111 Correct 179 ms 37812 KB Output is correct
112 Correct 244 ms 37812 KB Output is correct
113 Correct 296 ms 39728 KB Output is correct
114 Correct 311 ms 39728 KB Output is correct
115 Correct 290 ms 39728 KB Output is correct
116 Correct 333 ms 39728 KB Output is correct
117 Correct 247 ms 39728 KB Output is correct
118 Correct 248 ms 39728 KB Output is correct
119 Correct 251 ms 39728 KB Output is correct
120 Correct 253 ms 39728 KB Output is correct
121 Correct 206 ms 39728 KB Output is correct
122 Correct 189 ms 39728 KB Output is correct
123 Correct 123 ms 39728 KB Output is correct
124 Correct 178 ms 39728 KB Output is correct
125 Correct 213 ms 39728 KB Output is correct
126 Correct 166 ms 39728 KB Output is correct
127 Correct 180 ms 39728 KB Output is correct
128 Correct 19 ms 39728 KB Output is correct
129 Correct 19 ms 39728 KB Output is correct
130 Correct 16 ms 39728 KB Output is correct
131 Correct 18 ms 39728 KB Output is correct
132 Correct 19 ms 39728 KB Output is correct
133 Correct 15 ms 39728 KB Output is correct
134 Correct 16 ms 39728 KB Output is correct
135 Correct 19 ms 39728 KB Output is correct
136 Correct 16 ms 39728 KB Output is correct
137 Correct 19 ms 39728 KB Output is correct
138 Correct 20 ms 39728 KB Output is correct
139 Correct 20 ms 39728 KB Output is correct
140 Correct 19 ms 39728 KB Output is correct
141 Correct 15 ms 39728 KB Output is correct
142 Correct 17 ms 39728 KB Output is correct
143 Correct 16 ms 39728 KB Output is correct
144 Correct 16 ms 39728 KB Output is correct
145 Correct 19 ms 39728 KB Output is correct
146 Correct 14 ms 39728 KB Output is correct
147 Correct 16 ms 39728 KB Output is correct
148 Correct 16 ms 39728 KB Output is correct
149 Correct 18 ms 39728 KB Output is correct
150 Correct 17 ms 39728 KB Output is correct
151 Correct 16 ms 39728 KB Output is correct
152 Correct 17 ms 39728 KB Output is correct
153 Correct 17 ms 39728 KB Output is correct
154 Correct 17 ms 39728 KB Output is correct
155 Correct 245 ms 39728 KB Output is correct
156 Correct 289 ms 39728 KB Output is correct
157 Correct 237 ms 39728 KB Output is correct
158 Correct 278 ms 39728 KB Output is correct
159 Correct 230 ms 39728 KB Output is correct
160 Correct 207 ms 39728 KB Output is correct
161 Correct 224 ms 39728 KB Output is correct
162 Correct 238 ms 39728 KB Output is correct
163 Correct 207 ms 39728 KB Output is correct
164 Correct 192 ms 39728 KB Output is correct
165 Correct 194 ms 39728 KB Output is correct
166 Correct 188 ms 39728 KB Output is correct
167 Correct 194 ms 39728 KB Output is correct
168 Correct 147 ms 39728 KB Output is correct
169 Correct 287 ms 39728 KB Output is correct
170 Correct 260 ms 39728 KB Output is correct
171 Correct 291 ms 39728 KB Output is correct
172 Correct 329 ms 39728 KB Output is correct
173 Correct 248 ms 39728 KB Output is correct
174 Correct 253 ms 39728 KB Output is correct
175 Correct 180 ms 39728 KB Output is correct
176 Correct 149 ms 39728 KB Output is correct
177 Correct 161 ms 39728 KB Output is correct
178 Correct 168 ms 39728 KB Output is correct
179 Correct 169 ms 39728 KB Output is correct
180 Correct 183 ms 39728 KB Output is correct
181 Correct 220 ms 39728 KB Output is correct
182 Correct 13 ms 39728 KB Output is correct
183 Correct 14 ms 39728 KB Output is correct
184 Correct 14 ms 39728 KB Output is correct
185 Correct 14 ms 39728 KB Output is correct
186 Correct 17 ms 39728 KB Output is correct
187 Correct 14 ms 39728 KB Output is correct
188 Correct 36 ms 39728 KB Output is correct
189 Correct 15 ms 39728 KB Output is correct
190 Correct 15 ms 39728 KB Output is correct
191 Correct 16 ms 39728 KB Output is correct
192 Correct 15 ms 39728 KB Output is correct
193 Correct 16 ms 39728 KB Output is correct
194 Correct 15 ms 39728 KB Output is correct
195 Correct 15 ms 39728 KB Output is correct
196 Correct 16 ms 39728 KB Output is correct
197 Correct 16 ms 39728 KB Output is correct
198 Correct 16 ms 39728 KB Output is correct
199 Correct 17 ms 39728 KB Output is correct
200 Correct 16 ms 39728 KB Output is correct
201 Correct 21 ms 39728 KB Output is correct
202 Correct 16 ms 39728 KB Output is correct
203 Correct 18 ms 39728 KB Output is correct
204 Correct 16 ms 39728 KB Output is correct
205 Correct 20 ms 39728 KB Output is correct
206 Correct 15 ms 39728 KB Output is correct
207 Correct 21 ms 39728 KB Output is correct
208 Correct 19 ms 39728 KB Output is correct
209 Correct 16 ms 39728 KB Output is correct
210 Correct 96 ms 39728 KB Output is correct
211 Correct 194 ms 39728 KB Output is correct
212 Correct 202 ms 39728 KB Output is correct
213 Correct 289 ms 39728 KB Output is correct
214 Correct 95 ms 39728 KB Output is correct
215 Correct 98 ms 39728 KB Output is correct
216 Correct 257 ms 39728 KB Output is correct
217 Correct 214 ms 39728 KB Output is correct
218 Correct 207 ms 39728 KB Output is correct
219 Correct 197 ms 39728 KB Output is correct
220 Correct 221 ms 39728 KB Output is correct
221 Correct 197 ms 39728 KB Output is correct
222 Correct 191 ms 39728 KB Output is correct
223 Correct 226 ms 39728 KB Output is correct
224 Correct 219 ms 39728 KB Output is correct
225 Correct 216 ms 39728 KB Output is correct
226 Correct 199 ms 39728 KB Output is correct
227 Correct 183 ms 39728 KB Output is correct
228 Correct 177 ms 39728 KB Output is correct
229 Correct 157 ms 39728 KB Output is correct
230 Correct 169 ms 39728 KB Output is correct
231 Correct 182 ms 39728 KB Output is correct