답안 #1112874

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1112874 2024-11-15T06:50:30 Z VectorLi 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
96 ms 35912 KB
#include <bits/stdc++.h>
#define I64 long long

using namespace std;

const int V = (int) 1E5;

int S;
vector<int> A[V];

namespace VBCC {
	int n;
	int d[V], f[V], t;
	stack<int> s;
	vector<int> e[V];
	
	void add(int u, int v) {
		e[u].push_back(v);
		e[v].push_back(u);
	}
	
	void DFS(int u, int p) {
		d[u] = t;
		t = t + 1;
		f[u] = d[u];
		s.push(u);
		
		int c = 0;
		for (auto v : e[u]) {
			if (d[v] < 0) {
				c = c + 1;
				DFS(v, u);
				f[u] = min(f[u], f[v]);
				if (f[v] == d[u]) {
					int w;
					do {
						w = s.top();
						s.pop();
						A[S].push_back(w);
					} while (w != v);
					A[S].push_back(u);
					S = S + 1;
				}
			} else {
				f[u] = min(f[u], d[v]);
			}
		}
		
		if (p < 0 && c == 0) {
			A[S].push_back(u);
			S = S + 1;
		}
	}
	
	void run(int x) {
		n = x;
		fill(d, d + n, 0 - 1);
		for (int u = 0; u < n; u++) {
			if (d[u] < 0) {
				DFS(u, 0 - 1);
				s.pop();
			}
		}
	}
};

int n, m;

vector<int> e[V * 2];
int a[V * 2], s[V * 2], p[V * 2];
int t[V * 2];
I64 c;

void DFS(int u) {
	s[u] = (u < n);
	for (auto v : e[u]) {
		if (v != p[u]) {
			p[v] = u;
			t[v] = t[u];
			DFS(v);
			c = c + (I64) a[u] * s[v] * s[u] * 2;
			s[u] = s[u] + s[v];
		}
	}
}

void solve() {
	cin >> n >> m;
	for (int i = 0; i < m; i++) {
		int u, v;
		cin >> u >> v;
		u = u - 1;
		v = v - 1;
		VBCC::add(u, v);
	}
	VBCC::run(n);
	
	for (int i = 0; i < S; i++) {
		int u = n + i;
		for (auto v : A[i]) {
			e[u].push_back(v);
			e[v].push_back(u);
		}
	}
	for (int u = 0; u < n; u++) {
		a[u] = 0 - 1;
	}
	for (int i = 0; i < S; i++) {
		a[i + n] = (int) A[i].size();
	}
	
	fill(p, p + n + S, 0 - 1);
	for (int u = 0; u < n + S; u++) {
		if (p[u] < 0) {
			p[u] = 0 - 1;
			t[u] = u;
			DFS(u);
		}
	}
	for (int u = 0; u < n + S; u++) {
		c = c + (I64) a[u] * s[u] * (s[t[u]] - s[u]) * 2;
	}
	cout << c << "\n";
} 

int main() {
	ios::sync_with_stdio(0);
	cin.tie(nullptr);
	solve();
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 9808 KB Output is correct
2 Correct 6 ms 9892 KB Output is correct
3 Correct 7 ms 9808 KB Output is correct
4 Correct 7 ms 9868 KB Output is correct
5 Correct 7 ms 9980 KB Output is correct
6 Correct 7 ms 9808 KB Output is correct
7 Correct 7 ms 9836 KB Output is correct
8 Correct 7 ms 9808 KB Output is correct
9 Correct 6 ms 9808 KB Output is correct
10 Correct 7 ms 9816 KB Output is correct
11 Correct 10 ms 9808 KB Output is correct
12 Correct 7 ms 9808 KB Output is correct
13 Correct 7 ms 9808 KB Output is correct
14 Correct 7 ms 9808 KB Output is correct
15 Correct 7 ms 9808 KB Output is correct
16 Correct 7 ms 9808 KB Output is correct
17 Correct 7 ms 9868 KB Output is correct
18 Correct 8 ms 9808 KB Output is correct
19 Correct 7 ms 9808 KB Output is correct
20 Correct 8 ms 9976 KB Output is correct
21 Correct 7 ms 9808 KB Output is correct
22 Correct 7 ms 9808 KB Output is correct
23 Correct 8 ms 9808 KB Output is correct
24 Correct 9 ms 9808 KB Output is correct
25 Correct 7 ms 9808 KB Output is correct
26 Correct 8 ms 9808 KB Output is correct
27 Correct 8 ms 9808 KB Output is correct
28 Correct 8 ms 9808 KB Output is correct
29 Correct 7 ms 9832 KB Output is correct
30 Correct 7 ms 9808 KB Output is correct
31 Correct 8 ms 9808 KB Output is correct
32 Correct 7 ms 9808 KB Output is correct
33 Correct 9 ms 9976 KB Output is correct
34 Correct 7 ms 9808 KB Output is correct
35 Correct 8 ms 9808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 9808 KB Output is correct
2 Correct 6 ms 9892 KB Output is correct
3 Correct 7 ms 9808 KB Output is correct
4 Correct 7 ms 9868 KB Output is correct
5 Correct 7 ms 9980 KB Output is correct
6 Correct 7 ms 9808 KB Output is correct
7 Correct 7 ms 9836 KB Output is correct
8 Correct 7 ms 9808 KB Output is correct
9 Correct 6 ms 9808 KB Output is correct
10 Correct 7 ms 9816 KB Output is correct
11 Correct 10 ms 9808 KB Output is correct
12 Correct 7 ms 9808 KB Output is correct
13 Correct 7 ms 9808 KB Output is correct
14 Correct 7 ms 9808 KB Output is correct
15 Correct 7 ms 9808 KB Output is correct
16 Correct 7 ms 9808 KB Output is correct
17 Correct 7 ms 9868 KB Output is correct
18 Correct 8 ms 9808 KB Output is correct
19 Correct 7 ms 9808 KB Output is correct
20 Correct 8 ms 9976 KB Output is correct
21 Correct 7 ms 9808 KB Output is correct
22 Correct 7 ms 9808 KB Output is correct
23 Correct 8 ms 9808 KB Output is correct
24 Correct 9 ms 9808 KB Output is correct
25 Correct 7 ms 9808 KB Output is correct
26 Correct 8 ms 9808 KB Output is correct
27 Correct 8 ms 9808 KB Output is correct
28 Correct 8 ms 9808 KB Output is correct
29 Correct 7 ms 9832 KB Output is correct
30 Correct 7 ms 9808 KB Output is correct
31 Correct 8 ms 9808 KB Output is correct
32 Correct 7 ms 9808 KB Output is correct
33 Correct 9 ms 9976 KB Output is correct
34 Correct 7 ms 9808 KB Output is correct
35 Correct 8 ms 9808 KB Output is correct
36 Correct 8 ms 9808 KB Output is correct
37 Correct 8 ms 9808 KB Output is correct
38 Correct 7 ms 9808 KB Output is correct
39 Correct 7 ms 9812 KB Output is correct
40 Correct 8 ms 9808 KB Output is correct
41 Correct 8 ms 9808 KB Output is correct
42 Correct 7 ms 9808 KB Output is correct
43 Correct 7 ms 9808 KB Output is correct
44 Correct 7 ms 9808 KB Output is correct
45 Correct 7 ms 9808 KB Output is correct
46 Correct 7 ms 9808 KB Output is correct
47 Correct 7 ms 10064 KB Output is correct
48 Correct 7 ms 9728 KB Output is correct
49 Correct 8 ms 9976 KB Output is correct
50 Correct 6 ms 9868 KB Output is correct
51 Correct 7 ms 9868 KB Output is correct
52 Correct 8 ms 9976 KB Output is correct
53 Correct 7 ms 9896 KB Output is correct
54 Correct 7 ms 9808 KB Output is correct
55 Correct 7 ms 9808 KB Output is correct
56 Correct 8 ms 9864 KB Output is correct
57 Correct 7 ms 9808 KB Output is correct
58 Correct 7 ms 9808 KB Output is correct
59 Correct 8 ms 9808 KB Output is correct
60 Correct 8 ms 9860 KB Output is correct
61 Correct 7 ms 9808 KB Output is correct
62 Correct 7 ms 9808 KB Output is correct
63 Correct 8 ms 9868 KB Output is correct
64 Correct 8 ms 9868 KB Output is correct
65 Correct 7 ms 9808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 62 ms 31428 KB Output is correct
2 Correct 60 ms 31364 KB Output is correct
3 Correct 88 ms 30276 KB Output is correct
4 Correct 75 ms 30484 KB Output is correct
5 Correct 58 ms 26948 KB Output is correct
6 Correct 74 ms 29548 KB Output is correct
7 Correct 70 ms 27720 KB Output is correct
8 Correct 80 ms 28232 KB Output is correct
9 Correct 73 ms 26268 KB Output is correct
10 Correct 73 ms 26184 KB Output is correct
11 Correct 56 ms 23368 KB Output is correct
12 Correct 62 ms 23664 KB Output is correct
13 Correct 51 ms 23368 KB Output is correct
14 Correct 52 ms 23368 KB Output is correct
15 Correct 44 ms 23120 KB Output is correct
16 Correct 55 ms 23120 KB Output is correct
17 Correct 26 ms 23120 KB Output is correct
18 Correct 26 ms 23120 KB Output is correct
19 Correct 30 ms 23140 KB Output is correct
20 Correct 25 ms 23120 KB Output is correct
21 Correct 26 ms 23288 KB Output is correct
22 Correct 27 ms 23120 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 10064 KB Output is correct
2 Correct 8 ms 10064 KB Output is correct
3 Correct 8 ms 9996 KB Output is correct
4 Correct 8 ms 10064 KB Output is correct
5 Correct 8 ms 10076 KB Output is correct
6 Correct 7 ms 10064 KB Output is correct
7 Correct 8 ms 9916 KB Output is correct
8 Correct 9 ms 10232 KB Output is correct
9 Correct 8 ms 10064 KB Output is correct
10 Correct 8 ms 9848 KB Output is correct
11 Correct 8 ms 10064 KB Output is correct
12 Correct 7 ms 9908 KB Output is correct
13 Correct 8 ms 10228 KB Output is correct
14 Correct 8 ms 10076 KB Output is correct
15 Correct 7 ms 9824 KB Output is correct
16 Correct 8 ms 9808 KB Output is correct
17 Correct 8 ms 10064 KB Output is correct
18 Correct 8 ms 10116 KB Output is correct
19 Correct 8 ms 10076 KB Output is correct
20 Correct 7 ms 10064 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 83 ms 27728 KB Output is correct
2 Correct 78 ms 27720 KB Output is correct
3 Correct 90 ms 27524 KB Output is correct
4 Correct 77 ms 27720 KB Output is correct
5 Correct 74 ms 27720 KB Output is correct
6 Correct 81 ms 35912 KB Output is correct
7 Correct 74 ms 33212 KB Output is correct
8 Correct 93 ms 31560 KB Output is correct
9 Correct 89 ms 30280 KB Output is correct
10 Correct 79 ms 27716 KB Output is correct
11 Correct 89 ms 27652 KB Output is correct
12 Correct 78 ms 27720 KB Output is correct
13 Correct 96 ms 27720 KB Output is correct
14 Correct 81 ms 26676 KB Output is correct
15 Correct 62 ms 25940 KB Output is correct
16 Correct 47 ms 24136 KB Output is correct
17 Correct 72 ms 28100 KB Output is correct
18 Correct 61 ms 28164 KB Output is correct
19 Correct 66 ms 28348 KB Output is correct
20 Correct 62 ms 28232 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 10080 KB Output is correct
2 Correct 8 ms 10064 KB Output is correct
3 Correct 7 ms 10064 KB Output is correct
4 Correct 8 ms 9976 KB Output is correct
5 Correct 9 ms 9972 KB Output is correct
6 Correct 8 ms 9808 KB Output is correct
7 Correct 8 ms 9808 KB Output is correct
8 Correct 8 ms 9808 KB Output is correct
9 Correct 8 ms 9808 KB Output is correct
10 Correct 8 ms 9808 KB Output is correct
11 Correct 9 ms 9808 KB Output is correct
12 Correct 8 ms 10064 KB Output is correct
13 Correct 8 ms 10064 KB Output is correct
14 Correct 8 ms 10064 KB Output is correct
15 Correct 8 ms 10064 KB Output is correct
16 Correct 8 ms 9808 KB Output is correct
17 Correct 8 ms 9808 KB Output is correct
18 Correct 10 ms 9916 KB Output is correct
19 Correct 7 ms 9808 KB Output is correct
20 Correct 8 ms 9808 KB Output is correct
21 Correct 7 ms 10236 KB Output is correct
22 Correct 9 ms 10064 KB Output is correct
23 Correct 10 ms 9836 KB Output is correct
24 Correct 9 ms 9808 KB Output is correct
25 Correct 8 ms 9808 KB Output is correct
26 Correct 7 ms 9808 KB Output is correct
27 Correct 8 ms 9808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 87 ms 27716 KB Output is correct
2 Correct 94 ms 27528 KB Output is correct
3 Correct 78 ms 26440 KB Output is correct
4 Correct 73 ms 24728 KB Output is correct
5 Correct 64 ms 23112 KB Output is correct
6 Correct 61 ms 22444 KB Output is correct
7 Correct 60 ms 22088 KB Output is correct
8 Correct 74 ms 21588 KB Output is correct
9 Correct 57 ms 21320 KB Output is correct
10 Correct 59 ms 21264 KB Output is correct
11 Correct 51 ms 21064 KB Output is correct
12 Correct 54 ms 21084 KB Output is correct
13 Correct 53 ms 21176 KB Output is correct
14 Correct 53 ms 23376 KB Output is correct
15 Correct 89 ms 32328 KB Output is correct
16 Correct 81 ms 30280 KB Output is correct
17 Correct 75 ms 30460 KB Output is correct
18 Correct 73 ms 28820 KB Output is correct
19 Correct 68 ms 24792 KB Output is correct
20 Correct 76 ms 24904 KB Output is correct
21 Correct 87 ms 24796 KB Output is correct
22 Correct 64 ms 23992 KB Output is correct
23 Correct 53 ms 23112 KB Output is correct
24 Correct 64 ms 26708 KB Output is correct
25 Correct 66 ms 26928 KB Output is correct
26 Correct 62 ms 25540 KB Output is correct
27 Correct 70 ms 25688 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 9808 KB Output is correct
2 Correct 6 ms 9892 KB Output is correct
3 Correct 7 ms 9808 KB Output is correct
4 Correct 7 ms 9868 KB Output is correct
5 Correct 7 ms 9980 KB Output is correct
6 Correct 7 ms 9808 KB Output is correct
7 Correct 7 ms 9836 KB Output is correct
8 Correct 7 ms 9808 KB Output is correct
9 Correct 6 ms 9808 KB Output is correct
10 Correct 7 ms 9816 KB Output is correct
11 Correct 10 ms 9808 KB Output is correct
12 Correct 7 ms 9808 KB Output is correct
13 Correct 7 ms 9808 KB Output is correct
14 Correct 7 ms 9808 KB Output is correct
15 Correct 7 ms 9808 KB Output is correct
16 Correct 7 ms 9808 KB Output is correct
17 Correct 7 ms 9868 KB Output is correct
18 Correct 8 ms 9808 KB Output is correct
19 Correct 7 ms 9808 KB Output is correct
20 Correct 8 ms 9976 KB Output is correct
21 Correct 7 ms 9808 KB Output is correct
22 Correct 7 ms 9808 KB Output is correct
23 Correct 8 ms 9808 KB Output is correct
24 Correct 9 ms 9808 KB Output is correct
25 Correct 7 ms 9808 KB Output is correct
26 Correct 8 ms 9808 KB Output is correct
27 Correct 8 ms 9808 KB Output is correct
28 Correct 8 ms 9808 KB Output is correct
29 Correct 7 ms 9832 KB Output is correct
30 Correct 7 ms 9808 KB Output is correct
31 Correct 8 ms 9808 KB Output is correct
32 Correct 7 ms 9808 KB Output is correct
33 Correct 9 ms 9976 KB Output is correct
34 Correct 7 ms 9808 KB Output is correct
35 Correct 8 ms 9808 KB Output is correct
36 Correct 8 ms 9808 KB Output is correct
37 Correct 8 ms 9808 KB Output is correct
38 Correct 7 ms 9808 KB Output is correct
39 Correct 7 ms 9812 KB Output is correct
40 Correct 8 ms 9808 KB Output is correct
41 Correct 8 ms 9808 KB Output is correct
42 Correct 7 ms 9808 KB Output is correct
43 Correct 7 ms 9808 KB Output is correct
44 Correct 7 ms 9808 KB Output is correct
45 Correct 7 ms 9808 KB Output is correct
46 Correct 7 ms 9808 KB Output is correct
47 Correct 7 ms 10064 KB Output is correct
48 Correct 7 ms 9728 KB Output is correct
49 Correct 8 ms 9976 KB Output is correct
50 Correct 6 ms 9868 KB Output is correct
51 Correct 7 ms 9868 KB Output is correct
52 Correct 8 ms 9976 KB Output is correct
53 Correct 7 ms 9896 KB Output is correct
54 Correct 7 ms 9808 KB Output is correct
55 Correct 7 ms 9808 KB Output is correct
56 Correct 8 ms 9864 KB Output is correct
57 Correct 7 ms 9808 KB Output is correct
58 Correct 7 ms 9808 KB Output is correct
59 Correct 8 ms 9808 KB Output is correct
60 Correct 8 ms 9860 KB Output is correct
61 Correct 7 ms 9808 KB Output is correct
62 Correct 7 ms 9808 KB Output is correct
63 Correct 8 ms 9868 KB Output is correct
64 Correct 8 ms 9868 KB Output is correct
65 Correct 7 ms 9808 KB Output is correct
66 Correct 7 ms 9808 KB Output is correct
67 Correct 7 ms 9852 KB Output is correct
68 Correct 7 ms 10064 KB Output is correct
69 Correct 7 ms 10044 KB Output is correct
70 Correct 7 ms 10064 KB Output is correct
71 Correct 7 ms 9808 KB Output is correct
72 Correct 10 ms 9908 KB Output is correct
73 Correct 7 ms 9808 KB Output is correct
74 Correct 7 ms 9808 KB Output is correct
75 Correct 8 ms 9808 KB Output is correct
76 Correct 8 ms 9876 KB Output is correct
77 Correct 7 ms 9808 KB Output is correct
78 Correct 8 ms 9808 KB Output is correct
79 Correct 7 ms 9808 KB Output is correct
80 Correct 7 ms 9808 KB Output is correct
81 Correct 7 ms 9808 KB Output is correct
82 Correct 7 ms 10064 KB Output is correct
83 Correct 8 ms 10080 KB Output is correct
84 Correct 8 ms 9808 KB Output is correct
85 Correct 8 ms 9808 KB Output is correct
86 Correct 8 ms 9808 KB Output is correct
87 Correct 8 ms 9980 KB Output is correct
88 Correct 8 ms 9892 KB Output is correct
89 Correct 10 ms 9784 KB Output is correct
90 Correct 7 ms 9808 KB Output is correct
91 Correct 8 ms 9816 KB Output is correct
92 Correct 8 ms 9808 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 9808 KB Output is correct
2 Correct 6 ms 9892 KB Output is correct
3 Correct 7 ms 9808 KB Output is correct
4 Correct 7 ms 9868 KB Output is correct
5 Correct 7 ms 9980 KB Output is correct
6 Correct 7 ms 9808 KB Output is correct
7 Correct 7 ms 9836 KB Output is correct
8 Correct 7 ms 9808 KB Output is correct
9 Correct 6 ms 9808 KB Output is correct
10 Correct 7 ms 9816 KB Output is correct
11 Correct 10 ms 9808 KB Output is correct
12 Correct 7 ms 9808 KB Output is correct
13 Correct 7 ms 9808 KB Output is correct
14 Correct 7 ms 9808 KB Output is correct
15 Correct 7 ms 9808 KB Output is correct
16 Correct 7 ms 9808 KB Output is correct
17 Correct 7 ms 9868 KB Output is correct
18 Correct 8 ms 9808 KB Output is correct
19 Correct 7 ms 9808 KB Output is correct
20 Correct 8 ms 9976 KB Output is correct
21 Correct 7 ms 9808 KB Output is correct
22 Correct 7 ms 9808 KB Output is correct
23 Correct 8 ms 9808 KB Output is correct
24 Correct 9 ms 9808 KB Output is correct
25 Correct 7 ms 9808 KB Output is correct
26 Correct 8 ms 9808 KB Output is correct
27 Correct 8 ms 9808 KB Output is correct
28 Correct 8 ms 9808 KB Output is correct
29 Correct 7 ms 9832 KB Output is correct
30 Correct 7 ms 9808 KB Output is correct
31 Correct 8 ms 9808 KB Output is correct
32 Correct 7 ms 9808 KB Output is correct
33 Correct 9 ms 9976 KB Output is correct
34 Correct 7 ms 9808 KB Output is correct
35 Correct 8 ms 9808 KB Output is correct
36 Correct 8 ms 9808 KB Output is correct
37 Correct 8 ms 9808 KB Output is correct
38 Correct 7 ms 9808 KB Output is correct
39 Correct 7 ms 9812 KB Output is correct
40 Correct 8 ms 9808 KB Output is correct
41 Correct 8 ms 9808 KB Output is correct
42 Correct 7 ms 9808 KB Output is correct
43 Correct 7 ms 9808 KB Output is correct
44 Correct 7 ms 9808 KB Output is correct
45 Correct 7 ms 9808 KB Output is correct
46 Correct 7 ms 9808 KB Output is correct
47 Correct 7 ms 10064 KB Output is correct
48 Correct 7 ms 9728 KB Output is correct
49 Correct 8 ms 9976 KB Output is correct
50 Correct 6 ms 9868 KB Output is correct
51 Correct 7 ms 9868 KB Output is correct
52 Correct 8 ms 9976 KB Output is correct
53 Correct 7 ms 9896 KB Output is correct
54 Correct 7 ms 9808 KB Output is correct
55 Correct 7 ms 9808 KB Output is correct
56 Correct 8 ms 9864 KB Output is correct
57 Correct 7 ms 9808 KB Output is correct
58 Correct 7 ms 9808 KB Output is correct
59 Correct 8 ms 9808 KB Output is correct
60 Correct 8 ms 9860 KB Output is correct
61 Correct 7 ms 9808 KB Output is correct
62 Correct 7 ms 9808 KB Output is correct
63 Correct 8 ms 9868 KB Output is correct
64 Correct 8 ms 9868 KB Output is correct
65 Correct 7 ms 9808 KB Output is correct
66 Correct 62 ms 31428 KB Output is correct
67 Correct 60 ms 31364 KB Output is correct
68 Correct 88 ms 30276 KB Output is correct
69 Correct 75 ms 30484 KB Output is correct
70 Correct 58 ms 26948 KB Output is correct
71 Correct 74 ms 29548 KB Output is correct
72 Correct 70 ms 27720 KB Output is correct
73 Correct 80 ms 28232 KB Output is correct
74 Correct 73 ms 26268 KB Output is correct
75 Correct 73 ms 26184 KB Output is correct
76 Correct 56 ms 23368 KB Output is correct
77 Correct 62 ms 23664 KB Output is correct
78 Correct 51 ms 23368 KB Output is correct
79 Correct 52 ms 23368 KB Output is correct
80 Correct 44 ms 23120 KB Output is correct
81 Correct 55 ms 23120 KB Output is correct
82 Correct 26 ms 23120 KB Output is correct
83 Correct 26 ms 23120 KB Output is correct
84 Correct 30 ms 23140 KB Output is correct
85 Correct 25 ms 23120 KB Output is correct
86 Correct 26 ms 23288 KB Output is correct
87 Correct 27 ms 23120 KB Output is correct
88 Correct 8 ms 10064 KB Output is correct
89 Correct 8 ms 10064 KB Output is correct
90 Correct 8 ms 9996 KB Output is correct
91 Correct 8 ms 10064 KB Output is correct
92 Correct 8 ms 10076 KB Output is correct
93 Correct 7 ms 10064 KB Output is correct
94 Correct 8 ms 9916 KB Output is correct
95 Correct 9 ms 10232 KB Output is correct
96 Correct 8 ms 10064 KB Output is correct
97 Correct 8 ms 9848 KB Output is correct
98 Correct 8 ms 10064 KB Output is correct
99 Correct 7 ms 9908 KB Output is correct
100 Correct 8 ms 10228 KB Output is correct
101 Correct 8 ms 10076 KB Output is correct
102 Correct 7 ms 9824 KB Output is correct
103 Correct 8 ms 9808 KB Output is correct
104 Correct 8 ms 10064 KB Output is correct
105 Correct 8 ms 10116 KB Output is correct
106 Correct 8 ms 10076 KB Output is correct
107 Correct 7 ms 10064 KB Output is correct
108 Correct 83 ms 27728 KB Output is correct
109 Correct 78 ms 27720 KB Output is correct
110 Correct 90 ms 27524 KB Output is correct
111 Correct 77 ms 27720 KB Output is correct
112 Correct 74 ms 27720 KB Output is correct
113 Correct 81 ms 35912 KB Output is correct
114 Correct 74 ms 33212 KB Output is correct
115 Correct 93 ms 31560 KB Output is correct
116 Correct 89 ms 30280 KB Output is correct
117 Correct 79 ms 27716 KB Output is correct
118 Correct 89 ms 27652 KB Output is correct
119 Correct 78 ms 27720 KB Output is correct
120 Correct 96 ms 27720 KB Output is correct
121 Correct 81 ms 26676 KB Output is correct
122 Correct 62 ms 25940 KB Output is correct
123 Correct 47 ms 24136 KB Output is correct
124 Correct 72 ms 28100 KB Output is correct
125 Correct 61 ms 28164 KB Output is correct
126 Correct 66 ms 28348 KB Output is correct
127 Correct 62 ms 28232 KB Output is correct
128 Correct 8 ms 10080 KB Output is correct
129 Correct 8 ms 10064 KB Output is correct
130 Correct 7 ms 10064 KB Output is correct
131 Correct 8 ms 9976 KB Output is correct
132 Correct 9 ms 9972 KB Output is correct
133 Correct 8 ms 9808 KB Output is correct
134 Correct 8 ms 9808 KB Output is correct
135 Correct 8 ms 9808 KB Output is correct
136 Correct 8 ms 9808 KB Output is correct
137 Correct 8 ms 9808 KB Output is correct
138 Correct 9 ms 9808 KB Output is correct
139 Correct 8 ms 10064 KB Output is correct
140 Correct 8 ms 10064 KB Output is correct
141 Correct 8 ms 10064 KB Output is correct
142 Correct 8 ms 10064 KB Output is correct
143 Correct 8 ms 9808 KB Output is correct
144 Correct 8 ms 9808 KB Output is correct
145 Correct 10 ms 9916 KB Output is correct
146 Correct 7 ms 9808 KB Output is correct
147 Correct 8 ms 9808 KB Output is correct
148 Correct 7 ms 10236 KB Output is correct
149 Correct 9 ms 10064 KB Output is correct
150 Correct 10 ms 9836 KB Output is correct
151 Correct 9 ms 9808 KB Output is correct
152 Correct 8 ms 9808 KB Output is correct
153 Correct 7 ms 9808 KB Output is correct
154 Correct 8 ms 9808 KB Output is correct
155 Correct 87 ms 27716 KB Output is correct
156 Correct 94 ms 27528 KB Output is correct
157 Correct 78 ms 26440 KB Output is correct
158 Correct 73 ms 24728 KB Output is correct
159 Correct 64 ms 23112 KB Output is correct
160 Correct 61 ms 22444 KB Output is correct
161 Correct 60 ms 22088 KB Output is correct
162 Correct 74 ms 21588 KB Output is correct
163 Correct 57 ms 21320 KB Output is correct
164 Correct 59 ms 21264 KB Output is correct
165 Correct 51 ms 21064 KB Output is correct
166 Correct 54 ms 21084 KB Output is correct
167 Correct 53 ms 21176 KB Output is correct
168 Correct 53 ms 23376 KB Output is correct
169 Correct 89 ms 32328 KB Output is correct
170 Correct 81 ms 30280 KB Output is correct
171 Correct 75 ms 30460 KB Output is correct
172 Correct 73 ms 28820 KB Output is correct
173 Correct 68 ms 24792 KB Output is correct
174 Correct 76 ms 24904 KB Output is correct
175 Correct 87 ms 24796 KB Output is correct
176 Correct 64 ms 23992 KB Output is correct
177 Correct 53 ms 23112 KB Output is correct
178 Correct 64 ms 26708 KB Output is correct
179 Correct 66 ms 26928 KB Output is correct
180 Correct 62 ms 25540 KB Output is correct
181 Correct 70 ms 25688 KB Output is correct
182 Correct 7 ms 9808 KB Output is correct
183 Correct 7 ms 9852 KB Output is correct
184 Correct 7 ms 10064 KB Output is correct
185 Correct 7 ms 10044 KB Output is correct
186 Correct 7 ms 10064 KB Output is correct
187 Correct 7 ms 9808 KB Output is correct
188 Correct 10 ms 9908 KB Output is correct
189 Correct 7 ms 9808 KB Output is correct
190 Correct 7 ms 9808 KB Output is correct
191 Correct 8 ms 9808 KB Output is correct
192 Correct 8 ms 9876 KB Output is correct
193 Correct 7 ms 9808 KB Output is correct
194 Correct 8 ms 9808 KB Output is correct
195 Correct 7 ms 9808 KB Output is correct
196 Correct 7 ms 9808 KB Output is correct
197 Correct 7 ms 9808 KB Output is correct
198 Correct 7 ms 10064 KB Output is correct
199 Correct 8 ms 10080 KB Output is correct
200 Correct 8 ms 9808 KB Output is correct
201 Correct 8 ms 9808 KB Output is correct
202 Correct 8 ms 9808 KB Output is correct
203 Correct 8 ms 9980 KB Output is correct
204 Correct 8 ms 9892 KB Output is correct
205 Correct 10 ms 9784 KB Output is correct
206 Correct 7 ms 9808 KB Output is correct
207 Correct 8 ms 9816 KB Output is correct
208 Correct 8 ms 9808 KB Output is correct
209 Correct 26 ms 23120 KB Output is correct
210 Correct 60 ms 24576 KB Output is correct
211 Correct 63 ms 26336 KB Output is correct
212 Correct 69 ms 27840 KB Output is correct
213 Correct 89 ms 29428 KB Output is correct
214 Correct 50 ms 23408 KB Output is correct
215 Correct 46 ms 22600 KB Output is correct
216 Correct 75 ms 25672 KB Output is correct
217 Correct 82 ms 23632 KB Output is correct
218 Correct 61 ms 21576 KB Output is correct
219 Correct 58 ms 21280 KB Output is correct
220 Correct 54 ms 21064 KB Output is correct
221 Correct 53 ms 21072 KB Output is correct
222 Correct 52 ms 22096 KB Output is correct
223 Correct 71 ms 26264 KB Output is correct
224 Correct 73 ms 25416 KB Output is correct
225 Correct 67 ms 23068 KB Output is correct
226 Correct 76 ms 23112 KB Output is correct
227 Correct 83 ms 23292 KB Output is correct
228 Correct 69 ms 22520 KB Output is correct
229 Correct 62 ms 22088 KB Output is correct
230 Correct 72 ms 23816 KB Output is correct
231 Correct 74 ms 23804 KB Output is correct