Submission #103234

# Submission time Handle Problem Language Result Execution time Memory
103234 2019-03-29T09:31:47 Z E869120 Duathlon (APIO18_duathlon) C++14
47 / 100
158 ms 13760 KB
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
#pragma warning (disable: 4996)

long long N, M, A[200009], B[200009], col[100009], col2[100009], dp[100009], cnt1, cnt2, cnts, cntv;
vector<int>X[100009], Y[100009], V;
vector<int>G[59][59];

void dfs(int pos) {
	if (col[pos] >= 1) return;
	col[pos] = cnts; cnt1 += 1; cnt2 += X[pos].size();
	for (int i = 0; i < X[pos].size(); i++) {
		dfs(X[pos][i]);
	}
}

void dfs2(int pos) {
	if (col2[pos] >= 1) return;
	col2[pos] = cntv;
	for (int i = 0; i < Y[pos].size(); i++) {
		dfs2(Y[pos][i]);
	}
}

void dfs3(int pos) {
	dp[pos] = 1; V.push_back(pos);
	for (int i = 0; i < X[pos].size(); i++) {
		if (dp[X[pos][i]] >= 1) continue;
		dfs3(X[pos][i]);
		dp[pos] += dp[X[pos][i]];
	}
}

long long solve_subtask2() {
	for (int i = 1; i <= N; i++) {
		if (col[i] >= 1) continue;
		cnts++; dfs(i);
	}

	for (int i = 1; i <= N; i++) {
		for (int j = 1; j <= N; j++) Y[j].clear();
		for (int j = 1; j <= M; j++) {
			if (A[j] == i || B[j] == i) continue;
			Y[A[j]].push_back(B[j]);
			Y[B[j]].push_back(A[j]);
		}

		cntv = 0;
		for (int j = 1; j <= N; j++) col2[j] = 0;
		for (int j = 1; j <= N; j++) {
			if (col2[j] >= 1) continue;
			cntv++; dfs2(j);
		}

		for (int j = 1; j <= N; j++) {
			for (int k = 1; k <= N; k++) {
				if (col[j] != col[k]) continue;
				if (col2[j] != col2[k]) G[j][k].push_back(i);
			}
		}
	}

	int cnt = 0;

	for (int i = 1; i <= N; i++) {
		for (int j = 1; j <= N; j++) {
			for (int k = 1; k <= N; k++) {
				if (i == j || i == k || j == k || col[i] != col[j] || col[j] != col[k]) continue;

				int d[55]; for (int l = 0; l < 55; l++) d[l] = 0;
				for (int l : G[i][j]) d[l]++;
				for (int l : G[j][k]) d[l]++;

				bool flag = false;
				for (int l = 0; l < 55; l++) {
					if (d[l] >= 2 && l != j) flag = true;
				}

				if (flag == false) {
					cnt++;
				}
			}
		}
	}
	return 1LL * cnt;
}

long long solve_subtask3() {
	long long ans = 0; cnts = 1;
	for (int i = 1; i <= N; i++) {
		if (col[i] >= 1) continue;
		cnt1 = 0; cnt2 = 0;
		dfs(i); cnt2 /= 2;

		if (cnt1 == cnt2) ans += 1LL * cnt1 * (cnt1 - 1) * (cnt1 - 2);
		else ans += 1LL * cnt1 * (cnt1 - 1) * (cnt1 - 2) / 3LL;
	}
	return ans;
}

long long solve_subtask5() {
	long long ans = 0;
	for (int i = 1; i <= N; i++) {
		if (dp[i] >= 1) continue;
		V.clear();
		dfs3(i);

		long long size_ = V.size();
		ans += size_ * (size_ - 1) * (size_ - 2);

		for (int pos : V) {
			long long rem = size_ - 1;
			for (int j = 0; j < X[pos].size(); j++) {
				if (dp[X[pos][j]] > dp[pos]) continue;
				ans -= dp[X[pos][j]] * (dp[X[pos][j]] - 1);
				rem -= dp[X[pos][j]];
			}
			ans -= rem * (rem - 1);
		}
	}
	return ans;
}

int main() {
	scanf("%lld%lld", &N, &M);
	for (int i = 1; i <= M; i++) {
		scanf("%lld%lld", &A[i], &B[i]);
		X[A[i]].push_back(B[i]);
		X[B[i]].push_back(A[i]);
	}
	
	int max_degree = 0;
	for (int i = 1; i <= N; i++) max_degree = max(max_degree, (int)X[i].size());

	if (N <= 50 && M <= 100) {
		cout << solve_subtask2() << endl;
	}
	else if (max_degree <= 2) {
		cout << solve_subtask3() << endl;
	}
	else {
		cout << solve_subtask5() << endl;
	}
	return 0;
}

Compilation message

count_triplets.cpp:5:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning (disable: 4996)
 
count_triplets.cpp: In function 'void dfs(int)':
count_triplets.cpp:14:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < X[pos].size(); i++) {
                  ~~^~~~~~~~~~~~~~~
count_triplets.cpp: In function 'void dfs2(int)':
count_triplets.cpp:22:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < Y[pos].size(); i++) {
                  ~~^~~~~~~~~~~~~~~
count_triplets.cpp: In function 'void dfs3(int)':
count_triplets.cpp:29:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < X[pos].size(); i++) {
                  ~~^~~~~~~~~~~~~~~
count_triplets.cpp: In function 'long long int solve_subtask5()':
count_triplets.cpp:115:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (int j = 0; j < X[pos].size(); j++) {
                    ~~^~~~~~~~~~~~~~~
count_triplets.cpp: In function 'int main()':
count_triplets.cpp:127:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld%lld", &N, &M);
  ~~~~~^~~~~~~~~~~~~~~~~~~~
count_triplets.cpp:129:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld%lld", &A[i], &B[i]);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 6 ms 5120 KB Output is correct
2 Correct 6 ms 5120 KB Output is correct
3 Correct 6 ms 5120 KB Output is correct
4 Correct 6 ms 5120 KB Output is correct
5 Correct 7 ms 5148 KB Output is correct
6 Correct 9 ms 5120 KB Output is correct
7 Correct 6 ms 5120 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 8 ms 5120 KB Output is correct
10 Correct 7 ms 5120 KB Output is correct
11 Correct 6 ms 5120 KB Output is correct
12 Correct 7 ms 5120 KB Output is correct
13 Correct 9 ms 5120 KB Output is correct
14 Correct 7 ms 5120 KB Output is correct
15 Correct 7 ms 5120 KB Output is correct
16 Correct 6 ms 5120 KB Output is correct
17 Correct 8 ms 5120 KB Output is correct
18 Correct 8 ms 5120 KB Output is correct
19 Correct 6 ms 5120 KB Output is correct
20 Correct 6 ms 5120 KB Output is correct
21 Correct 7 ms 5120 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 5120 KB Output is correct
24 Correct 7 ms 5120 KB Output is correct
25 Correct 6 ms 5120 KB Output is correct
26 Correct 6 ms 5120 KB Output is correct
27 Correct 9 ms 5120 KB Output is correct
28 Correct 7 ms 5120 KB Output is correct
29 Correct 8 ms 5120 KB Output is correct
30 Correct 7 ms 5120 KB Output is correct
31 Correct 6 ms 5120 KB Output is correct
32 Correct 7 ms 5120 KB Output is correct
33 Correct 7 ms 5120 KB Output is correct
34 Correct 7 ms 5120 KB Output is correct
35 Correct 6 ms 5120 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 6 ms 5120 KB Output is correct
2 Correct 6 ms 5120 KB Output is correct
3 Correct 6 ms 5120 KB Output is correct
4 Correct 6 ms 5120 KB Output is correct
5 Correct 7 ms 5148 KB Output is correct
6 Correct 9 ms 5120 KB Output is correct
7 Correct 6 ms 5120 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 8 ms 5120 KB Output is correct
10 Correct 7 ms 5120 KB Output is correct
11 Correct 6 ms 5120 KB Output is correct
12 Correct 7 ms 5120 KB Output is correct
13 Correct 9 ms 5120 KB Output is correct
14 Correct 7 ms 5120 KB Output is correct
15 Correct 7 ms 5120 KB Output is correct
16 Correct 6 ms 5120 KB Output is correct
17 Correct 8 ms 5120 KB Output is correct
18 Correct 8 ms 5120 KB Output is correct
19 Correct 6 ms 5120 KB Output is correct
20 Correct 6 ms 5120 KB Output is correct
21 Correct 7 ms 5120 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 5120 KB Output is correct
24 Correct 7 ms 5120 KB Output is correct
25 Correct 6 ms 5120 KB Output is correct
26 Correct 6 ms 5120 KB Output is correct
27 Correct 9 ms 5120 KB Output is correct
28 Correct 7 ms 5120 KB Output is correct
29 Correct 8 ms 5120 KB Output is correct
30 Correct 7 ms 5120 KB Output is correct
31 Correct 6 ms 5120 KB Output is correct
32 Correct 7 ms 5120 KB Output is correct
33 Correct 7 ms 5120 KB Output is correct
34 Correct 7 ms 5120 KB Output is correct
35 Correct 6 ms 5120 KB Output is correct
36 Correct 8 ms 5120 KB Output is correct
37 Correct 7 ms 5248 KB Output is correct
38 Correct 18 ms 5120 KB Output is correct
39 Correct 25 ms 5252 KB Output is correct
40 Correct 25 ms 5248 KB Output is correct
41 Correct 9 ms 5120 KB Output is correct
42 Correct 7 ms 5120 KB Output is correct
43 Correct 9 ms 5120 KB Output is correct
44 Correct 8 ms 5120 KB Output is correct
45 Correct 8 ms 5120 KB Output is correct
46 Correct 8 ms 5120 KB Output is correct
47 Correct 7 ms 5120 KB Output is correct
48 Correct 8 ms 5120 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 8 ms 5120 KB Output is correct
51 Correct 25 ms 5248 KB Output is correct
52 Correct 24 ms 5248 KB Output is correct
53 Correct 26 ms 5248 KB Output is correct
54 Correct 21 ms 5248 KB Output is correct
55 Correct 28 ms 5152 KB Output is correct
56 Correct 29 ms 5248 KB Output is correct
57 Correct 32 ms 5248 KB Output is correct
58 Correct 24 ms 5220 KB Output is correct
59 Correct 16 ms 5248 KB Output is correct
60 Correct 13 ms 5120 KB Output is correct
61 Correct 10 ms 5120 KB Output is correct
62 Correct 8 ms 5120 KB Output is correct
63 Correct 20 ms 5248 KB Output is correct
64 Correct 28 ms 5248 KB Output is correct
65 Correct 23 ms 5220 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 140 ms 13680 KB Output is correct
2 Correct 116 ms 13760 KB Output is correct
3 Correct 124 ms 12160 KB Output is correct
4 Correct 108 ms 12868 KB Output is correct
5 Correct 111 ms 11640 KB Output is correct
6 Correct 116 ms 11768 KB Output is correct
7 Correct 133 ms 11152 KB Output is correct
8 Correct 110 ms 11384 KB Output is correct
9 Correct 121 ms 10952 KB Output is correct
10 Correct 121 ms 11128 KB Output is correct
11 Correct 94 ms 10360 KB Output is correct
12 Correct 99 ms 10232 KB Output is correct
13 Correct 79 ms 10076 KB Output is correct
14 Correct 87 ms 9916 KB Output is correct
15 Correct 57 ms 9336 KB Output is correct
16 Correct 82 ms 9208 KB Output is correct
17 Correct 8 ms 5888 KB Output is correct
18 Correct 9 ms 5888 KB Output is correct
19 Correct 10 ms 5860 KB Output is correct
20 Correct 16 ms 5888 KB Output is correct
21 Correct 11 ms 5984 KB Output is correct
22 Correct 10 ms 5888 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 8 ms 5220 KB Output is correct
2 Correct 8 ms 5120 KB Output is correct
3 Correct 9 ms 5120 KB Output is correct
4 Correct 8 ms 5248 KB Output is correct
5 Correct 8 ms 5248 KB Output is correct
6 Correct 8 ms 5248 KB Output is correct
7 Correct 12 ms 5248 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 9 ms 5220 KB Output is correct
10 Correct 8 ms 5120 KB Output is correct
11 Correct 9 ms 5180 KB Output is correct
12 Correct 9 ms 5120 KB Output is correct
13 Correct 9 ms 5120 KB Output is correct
14 Correct 9 ms 5220 KB Output is correct
15 Correct 6 ms 5120 KB Output is correct
16 Correct 8 ms 5248 KB Output is correct
17 Correct 8 ms 5248 KB Output is correct
18 Correct 7 ms 5120 KB Output is correct
19 Correct 8 ms 5248 KB Output is correct
20 Correct 9 ms 5276 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 124 ms 11384 KB Output is correct
2 Correct 103 ms 12608 KB Output is correct
3 Correct 126 ms 12656 KB Output is correct
4 Correct 138 ms 12716 KB Output is correct
5 Correct 131 ms 12536 KB Output is correct
6 Correct 121 ms 13540 KB Output is correct
7 Correct 131 ms 13536 KB Output is correct
8 Correct 105 ms 13180 KB Output is correct
9 Correct 110 ms 13140 KB Output is correct
10 Correct 100 ms 12316 KB Output is correct
11 Correct 158 ms 12648 KB Output is correct
12 Correct 99 ms 12152 KB Output is correct
13 Correct 105 ms 12332 KB Output is correct
14 Correct 79 ms 11512 KB Output is correct
15 Correct 85 ms 11256 KB Output is correct
16 Correct 52 ms 9720 KB Output is correct
17 Correct 62 ms 13040 KB Output is correct
18 Correct 55 ms 12912 KB Output is correct
19 Correct 96 ms 12912 KB Output is correct
20 Correct 105 ms 12936 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 7 ms 5220 KB Output is correct
2 Correct 9 ms 5248 KB Output is correct
3 Incorrect 9 ms 5120 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 107 ms 11488 KB Output is correct
2 Correct 116 ms 12664 KB Output is correct
3 Incorrect 130 ms 13208 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 5120 KB Output is correct
2 Correct 6 ms 5120 KB Output is correct
3 Correct 6 ms 5120 KB Output is correct
4 Correct 6 ms 5120 KB Output is correct
5 Correct 7 ms 5148 KB Output is correct
6 Correct 9 ms 5120 KB Output is correct
7 Correct 6 ms 5120 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 8 ms 5120 KB Output is correct
10 Correct 7 ms 5120 KB Output is correct
11 Correct 6 ms 5120 KB Output is correct
12 Correct 7 ms 5120 KB Output is correct
13 Correct 9 ms 5120 KB Output is correct
14 Correct 7 ms 5120 KB Output is correct
15 Correct 7 ms 5120 KB Output is correct
16 Correct 6 ms 5120 KB Output is correct
17 Correct 8 ms 5120 KB Output is correct
18 Correct 8 ms 5120 KB Output is correct
19 Correct 6 ms 5120 KB Output is correct
20 Correct 6 ms 5120 KB Output is correct
21 Correct 7 ms 5120 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 5120 KB Output is correct
24 Correct 7 ms 5120 KB Output is correct
25 Correct 6 ms 5120 KB Output is correct
26 Correct 6 ms 5120 KB Output is correct
27 Correct 9 ms 5120 KB Output is correct
28 Correct 7 ms 5120 KB Output is correct
29 Correct 8 ms 5120 KB Output is correct
30 Correct 7 ms 5120 KB Output is correct
31 Correct 6 ms 5120 KB Output is correct
32 Correct 7 ms 5120 KB Output is correct
33 Correct 7 ms 5120 KB Output is correct
34 Correct 7 ms 5120 KB Output is correct
35 Correct 6 ms 5120 KB Output is correct
36 Correct 8 ms 5120 KB Output is correct
37 Correct 7 ms 5248 KB Output is correct
38 Correct 18 ms 5120 KB Output is correct
39 Correct 25 ms 5252 KB Output is correct
40 Correct 25 ms 5248 KB Output is correct
41 Correct 9 ms 5120 KB Output is correct
42 Correct 7 ms 5120 KB Output is correct
43 Correct 9 ms 5120 KB Output is correct
44 Correct 8 ms 5120 KB Output is correct
45 Correct 8 ms 5120 KB Output is correct
46 Correct 8 ms 5120 KB Output is correct
47 Correct 7 ms 5120 KB Output is correct
48 Correct 8 ms 5120 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 8 ms 5120 KB Output is correct
51 Correct 25 ms 5248 KB Output is correct
52 Correct 24 ms 5248 KB Output is correct
53 Correct 26 ms 5248 KB Output is correct
54 Correct 21 ms 5248 KB Output is correct
55 Correct 28 ms 5152 KB Output is correct
56 Correct 29 ms 5248 KB Output is correct
57 Correct 32 ms 5248 KB Output is correct
58 Correct 24 ms 5220 KB Output is correct
59 Correct 16 ms 5248 KB Output is correct
60 Correct 13 ms 5120 KB Output is correct
61 Correct 10 ms 5120 KB Output is correct
62 Correct 8 ms 5120 KB Output is correct
63 Correct 20 ms 5248 KB Output is correct
64 Correct 28 ms 5248 KB Output is correct
65 Correct 23 ms 5220 KB Output is correct
66 Correct 7 ms 5092 KB Output is correct
67 Correct 6 ms 5120 KB Output is correct
68 Incorrect 8 ms 5248 KB Output isn't correct
69 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 6 ms 5120 KB Output is correct
2 Correct 6 ms 5120 KB Output is correct
3 Correct 6 ms 5120 KB Output is correct
4 Correct 6 ms 5120 KB Output is correct
5 Correct 7 ms 5148 KB Output is correct
6 Correct 9 ms 5120 KB Output is correct
7 Correct 6 ms 5120 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 8 ms 5120 KB Output is correct
10 Correct 7 ms 5120 KB Output is correct
11 Correct 6 ms 5120 KB Output is correct
12 Correct 7 ms 5120 KB Output is correct
13 Correct 9 ms 5120 KB Output is correct
14 Correct 7 ms 5120 KB Output is correct
15 Correct 7 ms 5120 KB Output is correct
16 Correct 6 ms 5120 KB Output is correct
17 Correct 8 ms 5120 KB Output is correct
18 Correct 8 ms 5120 KB Output is correct
19 Correct 6 ms 5120 KB Output is correct
20 Correct 6 ms 5120 KB Output is correct
21 Correct 7 ms 5120 KB Output is correct
22 Correct 7 ms 5120 KB Output is correct
23 Correct 7 ms 5120 KB Output is correct
24 Correct 7 ms 5120 KB Output is correct
25 Correct 6 ms 5120 KB Output is correct
26 Correct 6 ms 5120 KB Output is correct
27 Correct 9 ms 5120 KB Output is correct
28 Correct 7 ms 5120 KB Output is correct
29 Correct 8 ms 5120 KB Output is correct
30 Correct 7 ms 5120 KB Output is correct
31 Correct 6 ms 5120 KB Output is correct
32 Correct 7 ms 5120 KB Output is correct
33 Correct 7 ms 5120 KB Output is correct
34 Correct 7 ms 5120 KB Output is correct
35 Correct 6 ms 5120 KB Output is correct
36 Correct 8 ms 5120 KB Output is correct
37 Correct 7 ms 5248 KB Output is correct
38 Correct 18 ms 5120 KB Output is correct
39 Correct 25 ms 5252 KB Output is correct
40 Correct 25 ms 5248 KB Output is correct
41 Correct 9 ms 5120 KB Output is correct
42 Correct 7 ms 5120 KB Output is correct
43 Correct 9 ms 5120 KB Output is correct
44 Correct 8 ms 5120 KB Output is correct
45 Correct 8 ms 5120 KB Output is correct
46 Correct 8 ms 5120 KB Output is correct
47 Correct 7 ms 5120 KB Output is correct
48 Correct 8 ms 5120 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 8 ms 5120 KB Output is correct
51 Correct 25 ms 5248 KB Output is correct
52 Correct 24 ms 5248 KB Output is correct
53 Correct 26 ms 5248 KB Output is correct
54 Correct 21 ms 5248 KB Output is correct
55 Correct 28 ms 5152 KB Output is correct
56 Correct 29 ms 5248 KB Output is correct
57 Correct 32 ms 5248 KB Output is correct
58 Correct 24 ms 5220 KB Output is correct
59 Correct 16 ms 5248 KB Output is correct
60 Correct 13 ms 5120 KB Output is correct
61 Correct 10 ms 5120 KB Output is correct
62 Correct 8 ms 5120 KB Output is correct
63 Correct 20 ms 5248 KB Output is correct
64 Correct 28 ms 5248 KB Output is correct
65 Correct 23 ms 5220 KB Output is correct
66 Correct 140 ms 13680 KB Output is correct
67 Correct 116 ms 13760 KB Output is correct
68 Correct 124 ms 12160 KB Output is correct
69 Correct 108 ms 12868 KB Output is correct
70 Correct 111 ms 11640 KB Output is correct
71 Correct 116 ms 11768 KB Output is correct
72 Correct 133 ms 11152 KB Output is correct
73 Correct 110 ms 11384 KB Output is correct
74 Correct 121 ms 10952 KB Output is correct
75 Correct 121 ms 11128 KB Output is correct
76 Correct 94 ms 10360 KB Output is correct
77 Correct 99 ms 10232 KB Output is correct
78 Correct 79 ms 10076 KB Output is correct
79 Correct 87 ms 9916 KB Output is correct
80 Correct 57 ms 9336 KB Output is correct
81 Correct 82 ms 9208 KB Output is correct
82 Correct 8 ms 5888 KB Output is correct
83 Correct 9 ms 5888 KB Output is correct
84 Correct 10 ms 5860 KB Output is correct
85 Correct 16 ms 5888 KB Output is correct
86 Correct 11 ms 5984 KB Output is correct
87 Correct 10 ms 5888 KB Output is correct
88 Correct 8 ms 5220 KB Output is correct
89 Correct 8 ms 5120 KB Output is correct
90 Correct 9 ms 5120 KB Output is correct
91 Correct 8 ms 5248 KB Output is correct
92 Correct 8 ms 5248 KB Output is correct
93 Correct 8 ms 5248 KB Output is correct
94 Correct 12 ms 5248 KB Output is correct
95 Correct 7 ms 5120 KB Output is correct
96 Correct 9 ms 5220 KB Output is correct
97 Correct 8 ms 5120 KB Output is correct
98 Correct 9 ms 5180 KB Output is correct
99 Correct 9 ms 5120 KB Output is correct
100 Correct 9 ms 5120 KB Output is correct
101 Correct 9 ms 5220 KB Output is correct
102 Correct 6 ms 5120 KB Output is correct
103 Correct 8 ms 5248 KB Output is correct
104 Correct 8 ms 5248 KB Output is correct
105 Correct 7 ms 5120 KB Output is correct
106 Correct 8 ms 5248 KB Output is correct
107 Correct 9 ms 5276 KB Output is correct
108 Correct 124 ms 11384 KB Output is correct
109 Correct 103 ms 12608 KB Output is correct
110 Correct 126 ms 12656 KB Output is correct
111 Correct 138 ms 12716 KB Output is correct
112 Correct 131 ms 12536 KB Output is correct
113 Correct 121 ms 13540 KB Output is correct
114 Correct 131 ms 13536 KB Output is correct
115 Correct 105 ms 13180 KB Output is correct
116 Correct 110 ms 13140 KB Output is correct
117 Correct 100 ms 12316 KB Output is correct
118 Correct 158 ms 12648 KB Output is correct
119 Correct 99 ms 12152 KB Output is correct
120 Correct 105 ms 12332 KB Output is correct
121 Correct 79 ms 11512 KB Output is correct
122 Correct 85 ms 11256 KB Output is correct
123 Correct 52 ms 9720 KB Output is correct
124 Correct 62 ms 13040 KB Output is correct
125 Correct 55 ms 12912 KB Output is correct
126 Correct 96 ms 12912 KB Output is correct
127 Correct 105 ms 12936 KB Output is correct
128 Correct 7 ms 5220 KB Output is correct
129 Correct 9 ms 5248 KB Output is correct
130 Incorrect 9 ms 5120 KB Output isn't correct
131 Halted 0 ms 0 KB -