Submission #681593

# Submission time Handle Problem Language Result Execution time Memory
681593 2023-01-13T12:18:37 Z MilosMilutinovic Duathlon (APIO18_duathlon) C++14
100 / 100
159 ms 36052 KB
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <ctime>
#include <cassert>
#include <complex>
#include <string>
#include <cstring>
#include <chrono>
#include <random>
#include <bitset>
#include <array>
using namespace std;

typedef long long ll;

const int N = 200200;
int n, m;
int ed[N][2];
vector<int> g[N];
bool art[N];
int h[N];
int minH[N];
vector<int> G[2 * N];
int cc;
int q[N];
int topQ;
ll ANS;
int cntVer;
int sz[2 * N];

int getOther(int i, int x) {
	return x ^ ed[i][0] ^ ed[i][1];
}

void addEdge(int v, int u) {
//	printf("new edge %d %d\n", v, u);
	G[v].push_back(u);
	G[u].push_back(v);
}

void dfsArt(int v, int par) {
	minH[v] = h[v];
	q[++topQ] = v;
	cntVer++;
	for (int i : g[v]) if (i != par) {
		int u = getOther(i, v);
		if (h[u] == -1) {
			h[u] = h[v] + 1;
			dfsArt(u, i);
			minH[v] = min(minH[v], minH[u]);
			if (minH[u] >= h[v]) {
				while(G[n + cc].empty() || G[n + cc].back() != u) {
					addEdge(n + cc, q[topQ--]);
				}
				addEdge(n + cc, v);
				cc++;
			}
		} else minH[v] = min(minH[v], h[u]);
	}
}

void dfsCalc(int v, int par) {
	if (v < n) sz[v] = 1;
	for (int u : G[v]) if (u != par) {
		dfsCalc(u, v);
		sz[v] += sz[u];
		if (v >= n)
			ANS -= (ll)(G[v].size() - 1) * (ll)sz[u] * (sz[u] - 1);
	}
	if (v >= n)
		ANS -= (ll)(G[v].size() - 1) * (ll)(cntVer - sz[v]) * (cntVer - sz[v] - 1);
}

int main()
{
//	freopen("input.txt", "r", stdin);
//	freopen("output.txt", "w", stdout);

	scanf("%d%d", &n, &m);
	for (int i = 0; i < m; i++) {
		for (int j = 0; j < 2; j++) {
			scanf("%d", &ed[i][j]);
			ed[i][j]--;
			g[ed[i][j]].push_back(i);
		}
	}
	for (int i = 0; i < n; i++)
		h[i] = -1;
	for (int i = 0; i < n; i++) {
		if (h[i] == -1) {
			h[i] = 0;
			cntVer = 0;
			dfsArt(i, -1);
			dfsCalc(i, -1);
			ANS += (ll)sz[i] * (sz[i] - 1) * (sz[i] - 2);

		}
	}
	printf("%lld\n", ANS);

	return 0;
}

/*
4 3
1 2
2 3
3 4
*/

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:88:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   88 |  scanf("%d%d", &n, &m);
      |  ~~~~~^~~~~~~~~~~~~~~~
count_triplets.cpp:91:9: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   91 |    scanf("%d", &ed[i][j]);
      |    ~~~~~^~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14500 KB Output is correct
2 Correct 8 ms 14440 KB Output is correct
3 Correct 8 ms 14424 KB Output is correct
4 Correct 8 ms 14388 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 9 ms 14412 KB Output is correct
7 Correct 7 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 10 ms 14420 KB Output is correct
10 Correct 8 ms 14420 KB Output is correct
11 Correct 10 ms 14420 KB Output is correct
12 Correct 8 ms 14420 KB Output is correct
13 Correct 8 ms 14432 KB Output is correct
14 Correct 8 ms 14408 KB Output is correct
15 Correct 9 ms 14360 KB Output is correct
16 Correct 8 ms 14436 KB Output is correct
17 Correct 8 ms 14424 KB Output is correct
18 Correct 8 ms 14356 KB Output is correct
19 Correct 8 ms 14428 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 7 ms 14420 KB Output is correct
23 Correct 9 ms 14428 KB Output is correct
24 Correct 10 ms 14396 KB Output is correct
25 Correct 8 ms 14420 KB Output is correct
26 Correct 10 ms 14432 KB Output is correct
27 Correct 7 ms 14436 KB Output is correct
28 Correct 8 ms 14436 KB Output is correct
29 Correct 8 ms 14420 KB Output is correct
30 Correct 8 ms 14420 KB Output is correct
31 Correct 8 ms 14428 KB Output is correct
32 Correct 8 ms 14432 KB Output is correct
33 Correct 8 ms 14420 KB Output is correct
34 Correct 9 ms 14436 KB Output is correct
35 Correct 8 ms 14432 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14500 KB Output is correct
2 Correct 8 ms 14440 KB Output is correct
3 Correct 8 ms 14424 KB Output is correct
4 Correct 8 ms 14388 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 9 ms 14412 KB Output is correct
7 Correct 7 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 10 ms 14420 KB Output is correct
10 Correct 8 ms 14420 KB Output is correct
11 Correct 10 ms 14420 KB Output is correct
12 Correct 8 ms 14420 KB Output is correct
13 Correct 8 ms 14432 KB Output is correct
14 Correct 8 ms 14408 KB Output is correct
15 Correct 9 ms 14360 KB Output is correct
16 Correct 8 ms 14436 KB Output is correct
17 Correct 8 ms 14424 KB Output is correct
18 Correct 8 ms 14356 KB Output is correct
19 Correct 8 ms 14428 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 7 ms 14420 KB Output is correct
23 Correct 9 ms 14428 KB Output is correct
24 Correct 10 ms 14396 KB Output is correct
25 Correct 8 ms 14420 KB Output is correct
26 Correct 10 ms 14432 KB Output is correct
27 Correct 7 ms 14436 KB Output is correct
28 Correct 8 ms 14436 KB Output is correct
29 Correct 8 ms 14420 KB Output is correct
30 Correct 8 ms 14420 KB Output is correct
31 Correct 8 ms 14428 KB Output is correct
32 Correct 8 ms 14432 KB Output is correct
33 Correct 8 ms 14420 KB Output is correct
34 Correct 9 ms 14436 KB Output is correct
35 Correct 8 ms 14432 KB Output is correct
36 Correct 8 ms 14428 KB Output is correct
37 Correct 8 ms 14448 KB Output is correct
38 Correct 8 ms 14428 KB Output is correct
39 Correct 8 ms 14420 KB Output is correct
40 Correct 8 ms 14428 KB Output is correct
41 Correct 8 ms 14432 KB Output is correct
42 Correct 8 ms 14420 KB Output is correct
43 Correct 9 ms 14420 KB Output is correct
44 Correct 8 ms 14420 KB Output is correct
45 Correct 8 ms 14412 KB Output is correct
46 Correct 8 ms 14428 KB Output is correct
47 Correct 8 ms 14432 KB Output is correct
48 Correct 8 ms 14420 KB Output is correct
49 Correct 8 ms 14420 KB Output is correct
50 Correct 8 ms 14420 KB Output is correct
51 Correct 9 ms 14420 KB Output is correct
52 Correct 8 ms 14420 KB Output is correct
53 Correct 8 ms 14420 KB Output is correct
54 Correct 8 ms 14420 KB Output is correct
55 Correct 8 ms 14432 KB Output is correct
56 Correct 8 ms 14444 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 10 ms 14420 KB Output is correct
59 Correct 9 ms 14548 KB Output is correct
60 Correct 8 ms 14420 KB Output is correct
61 Correct 9 ms 14456 KB Output is correct
62 Correct 8 ms 14420 KB Output is correct
63 Correct 8 ms 14452 KB Output is correct
64 Correct 8 ms 14420 KB Output is correct
65 Correct 8 ms 14436 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 87 ms 32516 KB Output is correct
2 Correct 76 ms 32440 KB Output is correct
3 Correct 104 ms 32396 KB Output is correct
4 Correct 95 ms 31192 KB Output is correct
5 Correct 89 ms 29556 KB Output is correct
6 Correct 117 ms 31332 KB Output is correct
7 Correct 120 ms 29260 KB Output is correct
8 Correct 101 ms 29748 KB Output is correct
9 Correct 96 ms 27744 KB Output is correct
10 Correct 92 ms 28024 KB Output is correct
11 Correct 99 ms 25396 KB Output is correct
12 Correct 104 ms 25088 KB Output is correct
13 Correct 71 ms 24936 KB Output is correct
14 Correct 70 ms 24620 KB Output is correct
15 Correct 66 ms 23476 KB Output is correct
16 Correct 64 ms 23308 KB Output is correct
17 Correct 9 ms 16072 KB Output is correct
18 Correct 9 ms 15956 KB Output is correct
19 Correct 10 ms 16012 KB Output is correct
20 Correct 9 ms 15964 KB Output is correct
21 Correct 11 ms 15956 KB Output is correct
22 Correct 10 ms 15956 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 14592 KB Output is correct
2 Correct 9 ms 14564 KB Output is correct
3 Correct 10 ms 14548 KB Output is correct
4 Correct 10 ms 14568 KB Output is correct
5 Correct 8 ms 14548 KB Output is correct
6 Correct 8 ms 14568 KB Output is correct
7 Correct 9 ms 14568 KB Output is correct
8 Correct 8 ms 14516 KB Output is correct
9 Correct 8 ms 14516 KB Output is correct
10 Correct 9 ms 14596 KB Output is correct
11 Correct 8 ms 14548 KB Output is correct
12 Correct 8 ms 14568 KB Output is correct
13 Correct 8 ms 14548 KB Output is correct
14 Correct 9 ms 14548 KB Output is correct
15 Correct 9 ms 14436 KB Output is correct
16 Correct 10 ms 14420 KB Output is correct
17 Correct 8 ms 14556 KB Output is correct
18 Correct 9 ms 14508 KB Output is correct
19 Correct 9 ms 14564 KB Output is correct
20 Correct 8 ms 14516 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 96 ms 27604 KB Output is correct
2 Correct 102 ms 27644 KB Output is correct
3 Correct 99 ms 27632 KB Output is correct
4 Correct 132 ms 27596 KB Output is correct
5 Correct 98 ms 27528 KB Output is correct
6 Correct 101 ms 36052 KB Output is correct
7 Correct 125 ms 33240 KB Output is correct
8 Correct 140 ms 31688 KB Output is correct
9 Correct 118 ms 30432 KB Output is correct
10 Correct 94 ms 27564 KB Output is correct
11 Correct 97 ms 27632 KB Output is correct
12 Correct 99 ms 27580 KB Output is correct
13 Correct 121 ms 27636 KB Output is correct
14 Correct 101 ms 26996 KB Output is correct
15 Correct 75 ms 26096 KB Output is correct
16 Correct 50 ms 23272 KB Output is correct
17 Correct 68 ms 28152 KB Output is correct
18 Correct 79 ms 28180 KB Output is correct
19 Correct 79 ms 28256 KB Output is correct
20 Correct 88 ms 28172 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14484 KB Output is correct
2 Correct 8 ms 14528 KB Output is correct
3 Correct 8 ms 14548 KB Output is correct
4 Correct 10 ms 14444 KB Output is correct
5 Correct 8 ms 14440 KB Output is correct
6 Correct 8 ms 14548 KB Output is correct
7 Correct 9 ms 14548 KB Output is correct
8 Correct 9 ms 14548 KB Output is correct
9 Correct 11 ms 14432 KB Output is correct
10 Correct 8 ms 14440 KB Output is correct
11 Correct 10 ms 14620 KB Output is correct
12 Correct 8 ms 14548 KB Output is correct
13 Correct 9 ms 14612 KB Output is correct
14 Correct 9 ms 14548 KB Output is correct
15 Correct 8 ms 14604 KB Output is correct
16 Correct 8 ms 14440 KB Output is correct
17 Correct 8 ms 14548 KB Output is correct
18 Correct 10 ms 14440 KB Output is correct
19 Correct 8 ms 14548 KB Output is correct
20 Correct 8 ms 14548 KB Output is correct
21 Correct 9 ms 14548 KB Output is correct
22 Correct 8 ms 14476 KB Output is correct
23 Correct 11 ms 14564 KB Output is correct
24 Correct 8 ms 14548 KB Output is correct
25 Correct 8 ms 14468 KB Output is correct
26 Correct 8 ms 14420 KB Output is correct
27 Correct 8 ms 14420 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 97 ms 27728 KB Output is correct
2 Correct 126 ms 27540 KB Output is correct
3 Correct 108 ms 27308 KB Output is correct
4 Correct 110 ms 26524 KB Output is correct
5 Correct 132 ms 25684 KB Output is correct
6 Correct 111 ms 25320 KB Output is correct
7 Correct 93 ms 25132 KB Output is correct
8 Correct 105 ms 24900 KB Output is correct
9 Correct 96 ms 24844 KB Output is correct
10 Correct 89 ms 24680 KB Output is correct
11 Correct 81 ms 24588 KB Output is correct
12 Correct 84 ms 24680 KB Output is correct
13 Correct 83 ms 24684 KB Output is correct
14 Correct 95 ms 26492 KB Output is correct
15 Correct 122 ms 33164 KB Output is correct
16 Correct 126 ms 31244 KB Output is correct
17 Correct 115 ms 32052 KB Output is correct
18 Correct 113 ms 30200 KB Output is correct
19 Correct 102 ms 26472 KB Output is correct
20 Correct 102 ms 26572 KB Output is correct
21 Correct 108 ms 26444 KB Output is correct
22 Correct 98 ms 25896 KB Output is correct
23 Correct 84 ms 25332 KB Output is correct
24 Correct 129 ms 27536 KB Output is correct
25 Correct 112 ms 27660 KB Output is correct
26 Correct 94 ms 27048 KB Output is correct
27 Correct 107 ms 27092 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14500 KB Output is correct
2 Correct 8 ms 14440 KB Output is correct
3 Correct 8 ms 14424 KB Output is correct
4 Correct 8 ms 14388 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 9 ms 14412 KB Output is correct
7 Correct 7 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 10 ms 14420 KB Output is correct
10 Correct 8 ms 14420 KB Output is correct
11 Correct 10 ms 14420 KB Output is correct
12 Correct 8 ms 14420 KB Output is correct
13 Correct 8 ms 14432 KB Output is correct
14 Correct 8 ms 14408 KB Output is correct
15 Correct 9 ms 14360 KB Output is correct
16 Correct 8 ms 14436 KB Output is correct
17 Correct 8 ms 14424 KB Output is correct
18 Correct 8 ms 14356 KB Output is correct
19 Correct 8 ms 14428 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 7 ms 14420 KB Output is correct
23 Correct 9 ms 14428 KB Output is correct
24 Correct 10 ms 14396 KB Output is correct
25 Correct 8 ms 14420 KB Output is correct
26 Correct 10 ms 14432 KB Output is correct
27 Correct 7 ms 14436 KB Output is correct
28 Correct 8 ms 14436 KB Output is correct
29 Correct 8 ms 14420 KB Output is correct
30 Correct 8 ms 14420 KB Output is correct
31 Correct 8 ms 14428 KB Output is correct
32 Correct 8 ms 14432 KB Output is correct
33 Correct 8 ms 14420 KB Output is correct
34 Correct 9 ms 14436 KB Output is correct
35 Correct 8 ms 14432 KB Output is correct
36 Correct 8 ms 14428 KB Output is correct
37 Correct 8 ms 14448 KB Output is correct
38 Correct 8 ms 14428 KB Output is correct
39 Correct 8 ms 14420 KB Output is correct
40 Correct 8 ms 14428 KB Output is correct
41 Correct 8 ms 14432 KB Output is correct
42 Correct 8 ms 14420 KB Output is correct
43 Correct 9 ms 14420 KB Output is correct
44 Correct 8 ms 14420 KB Output is correct
45 Correct 8 ms 14412 KB Output is correct
46 Correct 8 ms 14428 KB Output is correct
47 Correct 8 ms 14432 KB Output is correct
48 Correct 8 ms 14420 KB Output is correct
49 Correct 8 ms 14420 KB Output is correct
50 Correct 8 ms 14420 KB Output is correct
51 Correct 9 ms 14420 KB Output is correct
52 Correct 8 ms 14420 KB Output is correct
53 Correct 8 ms 14420 KB Output is correct
54 Correct 8 ms 14420 KB Output is correct
55 Correct 8 ms 14432 KB Output is correct
56 Correct 8 ms 14444 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 10 ms 14420 KB Output is correct
59 Correct 9 ms 14548 KB Output is correct
60 Correct 8 ms 14420 KB Output is correct
61 Correct 9 ms 14456 KB Output is correct
62 Correct 8 ms 14420 KB Output is correct
63 Correct 8 ms 14452 KB Output is correct
64 Correct 8 ms 14420 KB Output is correct
65 Correct 8 ms 14436 KB Output is correct
66 Correct 8 ms 14420 KB Output is correct
67 Correct 8 ms 14516 KB Output is correct
68 Correct 8 ms 14568 KB Output is correct
69 Correct 9 ms 14548 KB Output is correct
70 Correct 9 ms 14548 KB Output is correct
71 Correct 8 ms 14456 KB Output is correct
72 Correct 9 ms 14432 KB Output is correct
73 Correct 9 ms 14420 KB Output is correct
74 Correct 7 ms 14548 KB Output is correct
75 Correct 8 ms 14548 KB Output is correct
76 Correct 8 ms 14420 KB Output is correct
77 Correct 8 ms 14548 KB Output is correct
78 Correct 9 ms 14548 KB Output is correct
79 Correct 9 ms 14440 KB Output is correct
80 Correct 9 ms 14512 KB Output is correct
81 Correct 9 ms 14472 KB Output is correct
82 Correct 8 ms 14548 KB Output is correct
83 Correct 8 ms 14568 KB Output is correct
84 Correct 8 ms 14548 KB Output is correct
85 Correct 9 ms 14548 KB Output is correct
86 Correct 8 ms 14548 KB Output is correct
87 Correct 10 ms 14540 KB Output is correct
88 Correct 8 ms 14552 KB Output is correct
89 Correct 9 ms 14540 KB Output is correct
90 Correct 8 ms 14464 KB Output is correct
91 Correct 8 ms 14444 KB Output is correct
92 Correct 10 ms 14440 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 14500 KB Output is correct
2 Correct 8 ms 14440 KB Output is correct
3 Correct 8 ms 14424 KB Output is correct
4 Correct 8 ms 14388 KB Output is correct
5 Correct 8 ms 14420 KB Output is correct
6 Correct 9 ms 14412 KB Output is correct
7 Correct 7 ms 14420 KB Output is correct
8 Correct 8 ms 14420 KB Output is correct
9 Correct 10 ms 14420 KB Output is correct
10 Correct 8 ms 14420 KB Output is correct
11 Correct 10 ms 14420 KB Output is correct
12 Correct 8 ms 14420 KB Output is correct
13 Correct 8 ms 14432 KB Output is correct
14 Correct 8 ms 14408 KB Output is correct
15 Correct 9 ms 14360 KB Output is correct
16 Correct 8 ms 14436 KB Output is correct
17 Correct 8 ms 14424 KB Output is correct
18 Correct 8 ms 14356 KB Output is correct
19 Correct 8 ms 14428 KB Output is correct
20 Correct 8 ms 14420 KB Output is correct
21 Correct 8 ms 14420 KB Output is correct
22 Correct 7 ms 14420 KB Output is correct
23 Correct 9 ms 14428 KB Output is correct
24 Correct 10 ms 14396 KB Output is correct
25 Correct 8 ms 14420 KB Output is correct
26 Correct 10 ms 14432 KB Output is correct
27 Correct 7 ms 14436 KB Output is correct
28 Correct 8 ms 14436 KB Output is correct
29 Correct 8 ms 14420 KB Output is correct
30 Correct 8 ms 14420 KB Output is correct
31 Correct 8 ms 14428 KB Output is correct
32 Correct 8 ms 14432 KB Output is correct
33 Correct 8 ms 14420 KB Output is correct
34 Correct 9 ms 14436 KB Output is correct
35 Correct 8 ms 14432 KB Output is correct
36 Correct 8 ms 14428 KB Output is correct
37 Correct 8 ms 14448 KB Output is correct
38 Correct 8 ms 14428 KB Output is correct
39 Correct 8 ms 14420 KB Output is correct
40 Correct 8 ms 14428 KB Output is correct
41 Correct 8 ms 14432 KB Output is correct
42 Correct 8 ms 14420 KB Output is correct
43 Correct 9 ms 14420 KB Output is correct
44 Correct 8 ms 14420 KB Output is correct
45 Correct 8 ms 14412 KB Output is correct
46 Correct 8 ms 14428 KB Output is correct
47 Correct 8 ms 14432 KB Output is correct
48 Correct 8 ms 14420 KB Output is correct
49 Correct 8 ms 14420 KB Output is correct
50 Correct 8 ms 14420 KB Output is correct
51 Correct 9 ms 14420 KB Output is correct
52 Correct 8 ms 14420 KB Output is correct
53 Correct 8 ms 14420 KB Output is correct
54 Correct 8 ms 14420 KB Output is correct
55 Correct 8 ms 14432 KB Output is correct
56 Correct 8 ms 14444 KB Output is correct
57 Correct 8 ms 14420 KB Output is correct
58 Correct 10 ms 14420 KB Output is correct
59 Correct 9 ms 14548 KB Output is correct
60 Correct 8 ms 14420 KB Output is correct
61 Correct 9 ms 14456 KB Output is correct
62 Correct 8 ms 14420 KB Output is correct
63 Correct 8 ms 14452 KB Output is correct
64 Correct 8 ms 14420 KB Output is correct
65 Correct 8 ms 14436 KB Output is correct
66 Correct 87 ms 32516 KB Output is correct
67 Correct 76 ms 32440 KB Output is correct
68 Correct 104 ms 32396 KB Output is correct
69 Correct 95 ms 31192 KB Output is correct
70 Correct 89 ms 29556 KB Output is correct
71 Correct 117 ms 31332 KB Output is correct
72 Correct 120 ms 29260 KB Output is correct
73 Correct 101 ms 29748 KB Output is correct
74 Correct 96 ms 27744 KB Output is correct
75 Correct 92 ms 28024 KB Output is correct
76 Correct 99 ms 25396 KB Output is correct
77 Correct 104 ms 25088 KB Output is correct
78 Correct 71 ms 24936 KB Output is correct
79 Correct 70 ms 24620 KB Output is correct
80 Correct 66 ms 23476 KB Output is correct
81 Correct 64 ms 23308 KB Output is correct
82 Correct 9 ms 16072 KB Output is correct
83 Correct 9 ms 15956 KB Output is correct
84 Correct 10 ms 16012 KB Output is correct
85 Correct 9 ms 15964 KB Output is correct
86 Correct 11 ms 15956 KB Output is correct
87 Correct 10 ms 15956 KB Output is correct
88 Correct 10 ms 14592 KB Output is correct
89 Correct 9 ms 14564 KB Output is correct
90 Correct 10 ms 14548 KB Output is correct
91 Correct 10 ms 14568 KB Output is correct
92 Correct 8 ms 14548 KB Output is correct
93 Correct 8 ms 14568 KB Output is correct
94 Correct 9 ms 14568 KB Output is correct
95 Correct 8 ms 14516 KB Output is correct
96 Correct 8 ms 14516 KB Output is correct
97 Correct 9 ms 14596 KB Output is correct
98 Correct 8 ms 14548 KB Output is correct
99 Correct 8 ms 14568 KB Output is correct
100 Correct 8 ms 14548 KB Output is correct
101 Correct 9 ms 14548 KB Output is correct
102 Correct 9 ms 14436 KB Output is correct
103 Correct 10 ms 14420 KB Output is correct
104 Correct 8 ms 14556 KB Output is correct
105 Correct 9 ms 14508 KB Output is correct
106 Correct 9 ms 14564 KB Output is correct
107 Correct 8 ms 14516 KB Output is correct
108 Correct 96 ms 27604 KB Output is correct
109 Correct 102 ms 27644 KB Output is correct
110 Correct 99 ms 27632 KB Output is correct
111 Correct 132 ms 27596 KB Output is correct
112 Correct 98 ms 27528 KB Output is correct
113 Correct 101 ms 36052 KB Output is correct
114 Correct 125 ms 33240 KB Output is correct
115 Correct 140 ms 31688 KB Output is correct
116 Correct 118 ms 30432 KB Output is correct
117 Correct 94 ms 27564 KB Output is correct
118 Correct 97 ms 27632 KB Output is correct
119 Correct 99 ms 27580 KB Output is correct
120 Correct 121 ms 27636 KB Output is correct
121 Correct 101 ms 26996 KB Output is correct
122 Correct 75 ms 26096 KB Output is correct
123 Correct 50 ms 23272 KB Output is correct
124 Correct 68 ms 28152 KB Output is correct
125 Correct 79 ms 28180 KB Output is correct
126 Correct 79 ms 28256 KB Output is correct
127 Correct 88 ms 28172 KB Output is correct
128 Correct 8 ms 14484 KB Output is correct
129 Correct 8 ms 14528 KB Output is correct
130 Correct 8 ms 14548 KB Output is correct
131 Correct 10 ms 14444 KB Output is correct
132 Correct 8 ms 14440 KB Output is correct
133 Correct 8 ms 14548 KB Output is correct
134 Correct 9 ms 14548 KB Output is correct
135 Correct 9 ms 14548 KB Output is correct
136 Correct 11 ms 14432 KB Output is correct
137 Correct 8 ms 14440 KB Output is correct
138 Correct 10 ms 14620 KB Output is correct
139 Correct 8 ms 14548 KB Output is correct
140 Correct 9 ms 14612 KB Output is correct
141 Correct 9 ms 14548 KB Output is correct
142 Correct 8 ms 14604 KB Output is correct
143 Correct 8 ms 14440 KB Output is correct
144 Correct 8 ms 14548 KB Output is correct
145 Correct 10 ms 14440 KB Output is correct
146 Correct 8 ms 14548 KB Output is correct
147 Correct 8 ms 14548 KB Output is correct
148 Correct 9 ms 14548 KB Output is correct
149 Correct 8 ms 14476 KB Output is correct
150 Correct 11 ms 14564 KB Output is correct
151 Correct 8 ms 14548 KB Output is correct
152 Correct 8 ms 14468 KB Output is correct
153 Correct 8 ms 14420 KB Output is correct
154 Correct 8 ms 14420 KB Output is correct
155 Correct 97 ms 27728 KB Output is correct
156 Correct 126 ms 27540 KB Output is correct
157 Correct 108 ms 27308 KB Output is correct
158 Correct 110 ms 26524 KB Output is correct
159 Correct 132 ms 25684 KB Output is correct
160 Correct 111 ms 25320 KB Output is correct
161 Correct 93 ms 25132 KB Output is correct
162 Correct 105 ms 24900 KB Output is correct
163 Correct 96 ms 24844 KB Output is correct
164 Correct 89 ms 24680 KB Output is correct
165 Correct 81 ms 24588 KB Output is correct
166 Correct 84 ms 24680 KB Output is correct
167 Correct 83 ms 24684 KB Output is correct
168 Correct 95 ms 26492 KB Output is correct
169 Correct 122 ms 33164 KB Output is correct
170 Correct 126 ms 31244 KB Output is correct
171 Correct 115 ms 32052 KB Output is correct
172 Correct 113 ms 30200 KB Output is correct
173 Correct 102 ms 26472 KB Output is correct
174 Correct 102 ms 26572 KB Output is correct
175 Correct 108 ms 26444 KB Output is correct
176 Correct 98 ms 25896 KB Output is correct
177 Correct 84 ms 25332 KB Output is correct
178 Correct 129 ms 27536 KB Output is correct
179 Correct 112 ms 27660 KB Output is correct
180 Correct 94 ms 27048 KB Output is correct
181 Correct 107 ms 27092 KB Output is correct
182 Correct 8 ms 14420 KB Output is correct
183 Correct 8 ms 14516 KB Output is correct
184 Correct 8 ms 14568 KB Output is correct
185 Correct 9 ms 14548 KB Output is correct
186 Correct 9 ms 14548 KB Output is correct
187 Correct 8 ms 14456 KB Output is correct
188 Correct 9 ms 14432 KB Output is correct
189 Correct 9 ms 14420 KB Output is correct
190 Correct 7 ms 14548 KB Output is correct
191 Correct 8 ms 14548 KB Output is correct
192 Correct 8 ms 14420 KB Output is correct
193 Correct 8 ms 14548 KB Output is correct
194 Correct 9 ms 14548 KB Output is correct
195 Correct 9 ms 14440 KB Output is correct
196 Correct 9 ms 14512 KB Output is correct
197 Correct 9 ms 14472 KB Output is correct
198 Correct 8 ms 14548 KB Output is correct
199 Correct 8 ms 14568 KB Output is correct
200 Correct 8 ms 14548 KB Output is correct
201 Correct 9 ms 14548 KB Output is correct
202 Correct 8 ms 14548 KB Output is correct
203 Correct 10 ms 14540 KB Output is correct
204 Correct 8 ms 14552 KB Output is correct
205 Correct 9 ms 14540 KB Output is correct
206 Correct 8 ms 14464 KB Output is correct
207 Correct 8 ms 14444 KB Output is correct
208 Correct 10 ms 14440 KB Output is correct
209 Correct 12 ms 15956 KB Output is correct
210 Correct 69 ms 22532 KB Output is correct
211 Correct 90 ms 26800 KB Output is correct
212 Correct 108 ms 29764 KB Output is correct
213 Correct 159 ms 32036 KB Output is correct
214 Correct 61 ms 25632 KB Output is correct
215 Correct 62 ms 25412 KB Output is correct
216 Correct 106 ms 27340 KB Output is correct
217 Correct 104 ms 26208 KB Output is correct
218 Correct 96 ms 25048 KB Output is correct
219 Correct 105 ms 24652 KB Output is correct
220 Correct 88 ms 24628 KB Output is correct
221 Correct 81 ms 24652 KB Output is correct
222 Correct 88 ms 25548 KB Output is correct
223 Correct 105 ms 28792 KB Output is correct
224 Correct 124 ms 28008 KB Output is correct
225 Correct 98 ms 26056 KB Output is correct
226 Correct 109 ms 26060 KB Output is correct
227 Correct 115 ms 26048 KB Output is correct
228 Correct 99 ms 25584 KB Output is correct
229 Correct 102 ms 25188 KB Output is correct
230 Correct 96 ms 26560 KB Output is correct
231 Correct 104 ms 26572 KB Output is correct