답안 #407766

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
407766 2021-05-19T04:31:05 Z oolimry 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
219 ms 30388 KB
#include <bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(), (x).end()
#define sz(x) ((int) x.size())
#define show(x) cerr << #x << " is " << x << endl;
#define show2(x, y) cerr << #x << " is " << x << ", " << #y << " is " << y << endl;
#define show3(x, y, z) cerr << #x << " is " << x << ", " << #y << " is " << y << ", " << #z << " is " << z << endl;
typedef long long lint;
typedef pair<int, int> ii;

int n, m; 
int low[100005];
int depth[100005];
vector<int> adj[100005];
vector<int> tree[200005];
int cnt;
stack<int> S;
lint num = 0;
void tarjan(int u){
	low[u] = depth[u];
	S.push(u);
	num++;
	for(int v : adj[u]){
		if(low[v] == 0){ ///not visisted
			depth[v] = depth[u]+1;
			tarjan(v);
			low[u] = min(low[u], low[v]);
			if(low[v] >= depth[u]){
				while(true){
					int nv = S.top();
					tree[cnt].push_back(nv);
					tree[nv].push_back(cnt);
					S.pop();
					if(nv == v) break;
				}
				tree[cnt].push_back(u);
				tree[u].push_back(cnt);
				cnt++;
			}
		}
		else if(depth[v] != depth[u]-1) low[u] = min(low[u], depth[v]);
	}
}

lint ans = 0;
lint sz[200005];
lint weight[200005];
void dfs(int u, int p){
	sz[u] = (u <= n);
	if(u <= n) weight[u] = -1;
	else weight[u] = sz(tree[u]);
	for(int v : tree[u]){
		if(v != p){
			dfs(v, u);
	
			ans += weight[u] * (2LL * sz[v] * sz[u]);
			sz[u] += sz[v];
		}
	}
	
	ans += weight[u] * (2LL * sz[u] * (num-sz[u]));
}


int main(){
	ios_base::sync_with_stdio(false); cin.tie(0);
	
	cin >> n >> m;
	cnt = n+1;
	
	for(int i = 1;i <= m;i++){
		int a, b; cin >> a >> b;
		adj[a].push_back(b);
		adj[b].push_back(a);
	}
	
	for(int i = 1;i <= n;i++){
		if(depth[i] == 0){
			depth[i] = 1; num = 0; while(not S.empty()) S.pop();
			tarjan(i);
			dfs(i, 0);
		}
	}
	
	cout << ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7372 KB Output is correct
2 Correct 5 ms 7372 KB Output is correct
3 Correct 5 ms 7372 KB Output is correct
4 Correct 5 ms 7372 KB Output is correct
5 Correct 6 ms 7372 KB Output is correct
6 Correct 5 ms 7372 KB Output is correct
7 Correct 6 ms 7500 KB Output is correct
8 Correct 5 ms 7488 KB Output is correct
9 Correct 5 ms 7372 KB Output is correct
10 Correct 6 ms 7392 KB Output is correct
11 Correct 5 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 5 ms 7296 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 5 ms 7380 KB Output is correct
16 Correct 7 ms 7356 KB Output is correct
17 Correct 5 ms 7376 KB Output is correct
18 Correct 5 ms 7372 KB Output is correct
19 Correct 5 ms 7372 KB Output is correct
20 Correct 5 ms 7372 KB Output is correct
21 Correct 5 ms 7372 KB Output is correct
22 Correct 6 ms 7372 KB Output is correct
23 Correct 7 ms 7372 KB Output is correct
24 Correct 5 ms 7376 KB Output is correct
25 Correct 5 ms 7372 KB Output is correct
26 Correct 6 ms 7332 KB Output is correct
27 Correct 6 ms 7372 KB Output is correct
28 Correct 7 ms 7372 KB Output is correct
29 Correct 5 ms 7372 KB Output is correct
30 Correct 6 ms 7372 KB Output is correct
31 Correct 6 ms 7372 KB Output is correct
32 Correct 5 ms 7380 KB Output is correct
33 Correct 5 ms 7500 KB Output is correct
34 Correct 5 ms 7372 KB Output is correct
35 Correct 5 ms 7376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7372 KB Output is correct
2 Correct 5 ms 7372 KB Output is correct
3 Correct 5 ms 7372 KB Output is correct
4 Correct 5 ms 7372 KB Output is correct
5 Correct 6 ms 7372 KB Output is correct
6 Correct 5 ms 7372 KB Output is correct
7 Correct 6 ms 7500 KB Output is correct
8 Correct 5 ms 7488 KB Output is correct
9 Correct 5 ms 7372 KB Output is correct
10 Correct 6 ms 7392 KB Output is correct
11 Correct 5 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 5 ms 7296 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 5 ms 7380 KB Output is correct
16 Correct 7 ms 7356 KB Output is correct
17 Correct 5 ms 7376 KB Output is correct
18 Correct 5 ms 7372 KB Output is correct
19 Correct 5 ms 7372 KB Output is correct
20 Correct 5 ms 7372 KB Output is correct
21 Correct 5 ms 7372 KB Output is correct
22 Correct 6 ms 7372 KB Output is correct
23 Correct 7 ms 7372 KB Output is correct
24 Correct 5 ms 7376 KB Output is correct
25 Correct 5 ms 7372 KB Output is correct
26 Correct 6 ms 7332 KB Output is correct
27 Correct 6 ms 7372 KB Output is correct
28 Correct 7 ms 7372 KB Output is correct
29 Correct 5 ms 7372 KB Output is correct
30 Correct 6 ms 7372 KB Output is correct
31 Correct 6 ms 7372 KB Output is correct
32 Correct 5 ms 7380 KB Output is correct
33 Correct 5 ms 7500 KB Output is correct
34 Correct 5 ms 7372 KB Output is correct
35 Correct 5 ms 7376 KB Output is correct
36 Correct 5 ms 7372 KB Output is correct
37 Correct 5 ms 7372 KB Output is correct
38 Correct 5 ms 7372 KB Output is correct
39 Correct 5 ms 7396 KB Output is correct
40 Correct 5 ms 7380 KB Output is correct
41 Correct 5 ms 7372 KB Output is correct
42 Correct 5 ms 7500 KB Output is correct
43 Correct 6 ms 7372 KB Output is correct
44 Correct 7 ms 7380 KB Output is correct
45 Correct 5 ms 7372 KB Output is correct
46 Correct 5 ms 7372 KB Output is correct
47 Correct 5 ms 7372 KB Output is correct
48 Correct 5 ms 7376 KB Output is correct
49 Correct 5 ms 7372 KB Output is correct
50 Correct 6 ms 7372 KB Output is correct
51 Correct 5 ms 7384 KB Output is correct
52 Correct 5 ms 7380 KB Output is correct
53 Correct 5 ms 7372 KB Output is correct
54 Correct 5 ms 7372 KB Output is correct
55 Correct 5 ms 7372 KB Output is correct
56 Correct 6 ms 7380 KB Output is correct
57 Correct 5 ms 7372 KB Output is correct
58 Correct 5 ms 7372 KB Output is correct
59 Correct 5 ms 7380 KB Output is correct
60 Correct 6 ms 7380 KB Output is correct
61 Correct 7 ms 7372 KB Output is correct
62 Correct 5 ms 7372 KB Output is correct
63 Correct 5 ms 7372 KB Output is correct
64 Correct 5 ms 7380 KB Output is correct
65 Correct 5 ms 7372 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 93 ms 28476 KB Output is correct
2 Correct 127 ms 28476 KB Output is correct
3 Correct 109 ms 26084 KB Output is correct
4 Correct 85 ms 26848 KB Output is correct
5 Correct 112 ms 23228 KB Output is correct
6 Correct 99 ms 25172 KB Output is correct
7 Correct 119 ms 23224 KB Output is correct
8 Correct 116 ms 23684 KB Output is correct
9 Correct 138 ms 21796 KB Output is correct
10 Correct 104 ms 21952 KB Output is correct
11 Correct 79 ms 19288 KB Output is correct
12 Correct 95 ms 19096 KB Output is correct
13 Correct 105 ms 18920 KB Output is correct
14 Correct 80 ms 18568 KB Output is correct
15 Correct 73 ms 17400 KB Output is correct
16 Correct 71 ms 17140 KB Output is correct
17 Correct 8 ms 9680 KB Output is correct
18 Correct 8 ms 9680 KB Output is correct
19 Correct 8 ms 9676 KB Output is correct
20 Correct 8 ms 9676 KB Output is correct
21 Correct 8 ms 9676 KB Output is correct
22 Correct 10 ms 9688 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 7536 KB Output is correct
2 Correct 6 ms 7500 KB Output is correct
3 Correct 7 ms 7500 KB Output is correct
4 Correct 15 ms 7640 KB Output is correct
5 Correct 6 ms 7500 KB Output is correct
6 Correct 5 ms 7500 KB Output is correct
7 Correct 5 ms 7500 KB Output is correct
8 Correct 6 ms 7500 KB Output is correct
9 Correct 6 ms 7516 KB Output is correct
10 Correct 6 ms 7500 KB Output is correct
11 Correct 6 ms 7500 KB Output is correct
12 Correct 6 ms 7500 KB Output is correct
13 Correct 6 ms 7500 KB Output is correct
14 Correct 5 ms 7500 KB Output is correct
15 Correct 6 ms 7500 KB Output is correct
16 Correct 7 ms 7372 KB Output is correct
17 Correct 6 ms 7512 KB Output is correct
18 Correct 5 ms 7500 KB Output is correct
19 Correct 6 ms 7516 KB Output is correct
20 Correct 6 ms 7500 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 109 ms 21944 KB Output is correct
2 Correct 112 ms 22040 KB Output is correct
3 Correct 117 ms 22120 KB Output is correct
4 Correct 123 ms 22068 KB Output is correct
5 Correct 151 ms 22032 KB Output is correct
6 Correct 165 ms 30388 KB Output is correct
7 Correct 166 ms 27584 KB Output is correct
8 Correct 140 ms 26092 KB Output is correct
9 Correct 137 ms 24700 KB Output is correct
10 Correct 158 ms 22000 KB Output is correct
11 Correct 154 ms 22108 KB Output is correct
12 Correct 157 ms 22108 KB Output is correct
13 Correct 144 ms 22068 KB Output is correct
14 Correct 105 ms 21312 KB Output is correct
15 Correct 127 ms 20452 KB Output is correct
16 Correct 83 ms 17360 KB Output is correct
17 Correct 97 ms 22660 KB Output is correct
18 Correct 92 ms 22620 KB Output is correct
19 Correct 121 ms 22736 KB Output is correct
20 Correct 98 ms 22708 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 7500 KB Output is correct
2 Correct 7 ms 7556 KB Output is correct
3 Correct 7 ms 7500 KB Output is correct
4 Correct 7 ms 7684 KB Output is correct
5 Correct 6 ms 7500 KB Output is correct
6 Correct 5 ms 7500 KB Output is correct
7 Correct 6 ms 7388 KB Output is correct
8 Correct 6 ms 7500 KB Output is correct
9 Correct 6 ms 7384 KB Output is correct
10 Correct 6 ms 7388 KB Output is correct
11 Correct 7 ms 7516 KB Output is correct
12 Correct 6 ms 7500 KB Output is correct
13 Correct 6 ms 7500 KB Output is correct
14 Correct 7 ms 7500 KB Output is correct
15 Correct 7 ms 7492 KB Output is correct
16 Correct 6 ms 7500 KB Output is correct
17 Correct 7 ms 7500 KB Output is correct
18 Correct 7 ms 7500 KB Output is correct
19 Correct 5 ms 7520 KB Output is correct
20 Correct 6 ms 7432 KB Output is correct
21 Correct 7 ms 7500 KB Output is correct
22 Correct 7 ms 7500 KB Output is correct
23 Correct 6 ms 7436 KB Output is correct
24 Correct 6 ms 7500 KB Output is correct
25 Correct 5 ms 7380 KB Output is correct
26 Correct 5 ms 7372 KB Output is correct
27 Correct 7 ms 7376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 154 ms 21956 KB Output is correct
2 Correct 163 ms 22004 KB Output is correct
3 Correct 167 ms 21420 KB Output is correct
4 Correct 184 ms 20388 KB Output is correct
5 Correct 145 ms 19280 KB Output is correct
6 Correct 153 ms 18764 KB Output is correct
7 Correct 133 ms 18548 KB Output is correct
8 Correct 116 ms 18244 KB Output is correct
9 Correct 113 ms 18164 KB Output is correct
10 Correct 105 ms 18064 KB Output is correct
11 Correct 103 ms 18008 KB Output is correct
12 Correct 95 ms 18024 KB Output is correct
13 Correct 103 ms 18140 KB Output is correct
14 Correct 93 ms 20616 KB Output is correct
15 Correct 161 ms 27220 KB Output is correct
16 Correct 168 ms 25220 KB Output is correct
17 Correct 168 ms 25816 KB Output is correct
18 Correct 178 ms 24108 KB Output is correct
19 Correct 169 ms 20368 KB Output is correct
20 Correct 162 ms 20416 KB Output is correct
21 Correct 161 ms 20428 KB Output is correct
22 Correct 137 ms 19664 KB Output is correct
23 Correct 132 ms 19048 KB Output is correct
24 Correct 157 ms 21752 KB Output is correct
25 Correct 147 ms 21704 KB Output is correct
26 Correct 143 ms 21076 KB Output is correct
27 Correct 139 ms 20988 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7372 KB Output is correct
2 Correct 5 ms 7372 KB Output is correct
3 Correct 5 ms 7372 KB Output is correct
4 Correct 5 ms 7372 KB Output is correct
5 Correct 6 ms 7372 KB Output is correct
6 Correct 5 ms 7372 KB Output is correct
7 Correct 6 ms 7500 KB Output is correct
8 Correct 5 ms 7488 KB Output is correct
9 Correct 5 ms 7372 KB Output is correct
10 Correct 6 ms 7392 KB Output is correct
11 Correct 5 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 5 ms 7296 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 5 ms 7380 KB Output is correct
16 Correct 7 ms 7356 KB Output is correct
17 Correct 5 ms 7376 KB Output is correct
18 Correct 5 ms 7372 KB Output is correct
19 Correct 5 ms 7372 KB Output is correct
20 Correct 5 ms 7372 KB Output is correct
21 Correct 5 ms 7372 KB Output is correct
22 Correct 6 ms 7372 KB Output is correct
23 Correct 7 ms 7372 KB Output is correct
24 Correct 5 ms 7376 KB Output is correct
25 Correct 5 ms 7372 KB Output is correct
26 Correct 6 ms 7332 KB Output is correct
27 Correct 6 ms 7372 KB Output is correct
28 Correct 7 ms 7372 KB Output is correct
29 Correct 5 ms 7372 KB Output is correct
30 Correct 6 ms 7372 KB Output is correct
31 Correct 6 ms 7372 KB Output is correct
32 Correct 5 ms 7380 KB Output is correct
33 Correct 5 ms 7500 KB Output is correct
34 Correct 5 ms 7372 KB Output is correct
35 Correct 5 ms 7376 KB Output is correct
36 Correct 5 ms 7372 KB Output is correct
37 Correct 5 ms 7372 KB Output is correct
38 Correct 5 ms 7372 KB Output is correct
39 Correct 5 ms 7396 KB Output is correct
40 Correct 5 ms 7380 KB Output is correct
41 Correct 5 ms 7372 KB Output is correct
42 Correct 5 ms 7500 KB Output is correct
43 Correct 6 ms 7372 KB Output is correct
44 Correct 7 ms 7380 KB Output is correct
45 Correct 5 ms 7372 KB Output is correct
46 Correct 5 ms 7372 KB Output is correct
47 Correct 5 ms 7372 KB Output is correct
48 Correct 5 ms 7376 KB Output is correct
49 Correct 5 ms 7372 KB Output is correct
50 Correct 6 ms 7372 KB Output is correct
51 Correct 5 ms 7384 KB Output is correct
52 Correct 5 ms 7380 KB Output is correct
53 Correct 5 ms 7372 KB Output is correct
54 Correct 5 ms 7372 KB Output is correct
55 Correct 5 ms 7372 KB Output is correct
56 Correct 6 ms 7380 KB Output is correct
57 Correct 5 ms 7372 KB Output is correct
58 Correct 5 ms 7372 KB Output is correct
59 Correct 5 ms 7380 KB Output is correct
60 Correct 6 ms 7380 KB Output is correct
61 Correct 7 ms 7372 KB Output is correct
62 Correct 5 ms 7372 KB Output is correct
63 Correct 5 ms 7372 KB Output is correct
64 Correct 5 ms 7380 KB Output is correct
65 Correct 5 ms 7372 KB Output is correct
66 Correct 7 ms 7380 KB Output is correct
67 Correct 6 ms 7384 KB Output is correct
68 Correct 7 ms 7516 KB Output is correct
69 Correct 6 ms 7524 KB Output is correct
70 Correct 6 ms 7500 KB Output is correct
71 Correct 6 ms 7384 KB Output is correct
72 Correct 7 ms 7400 KB Output is correct
73 Correct 7 ms 7492 KB Output is correct
74 Correct 6 ms 7500 KB Output is correct
75 Correct 6 ms 7448 KB Output is correct
76 Correct 7 ms 7372 KB Output is correct
77 Correct 7 ms 7500 KB Output is correct
78 Correct 6 ms 7500 KB Output is correct
79 Correct 7 ms 7384 KB Output is correct
80 Correct 7 ms 7500 KB Output is correct
81 Correct 6 ms 7516 KB Output is correct
82 Correct 7 ms 7512 KB Output is correct
83 Correct 8 ms 7516 KB Output is correct
84 Correct 8 ms 7516 KB Output is correct
85 Correct 7 ms 7500 KB Output is correct
86 Correct 8 ms 7500 KB Output is correct
87 Correct 6 ms 7500 KB Output is correct
88 Correct 8 ms 7500 KB Output is correct
89 Correct 7 ms 7504 KB Output is correct
90 Correct 7 ms 7500 KB Output is correct
91 Correct 8 ms 7664 KB Output is correct
92 Correct 8 ms 7680 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 7372 KB Output is correct
2 Correct 5 ms 7372 KB Output is correct
3 Correct 5 ms 7372 KB Output is correct
4 Correct 5 ms 7372 KB Output is correct
5 Correct 6 ms 7372 KB Output is correct
6 Correct 5 ms 7372 KB Output is correct
7 Correct 6 ms 7500 KB Output is correct
8 Correct 5 ms 7488 KB Output is correct
9 Correct 5 ms 7372 KB Output is correct
10 Correct 6 ms 7392 KB Output is correct
11 Correct 5 ms 7372 KB Output is correct
12 Correct 5 ms 7372 KB Output is correct
13 Correct 5 ms 7296 KB Output is correct
14 Correct 5 ms 7372 KB Output is correct
15 Correct 5 ms 7380 KB Output is correct
16 Correct 7 ms 7356 KB Output is correct
17 Correct 5 ms 7376 KB Output is correct
18 Correct 5 ms 7372 KB Output is correct
19 Correct 5 ms 7372 KB Output is correct
20 Correct 5 ms 7372 KB Output is correct
21 Correct 5 ms 7372 KB Output is correct
22 Correct 6 ms 7372 KB Output is correct
23 Correct 7 ms 7372 KB Output is correct
24 Correct 5 ms 7376 KB Output is correct
25 Correct 5 ms 7372 KB Output is correct
26 Correct 6 ms 7332 KB Output is correct
27 Correct 6 ms 7372 KB Output is correct
28 Correct 7 ms 7372 KB Output is correct
29 Correct 5 ms 7372 KB Output is correct
30 Correct 6 ms 7372 KB Output is correct
31 Correct 6 ms 7372 KB Output is correct
32 Correct 5 ms 7380 KB Output is correct
33 Correct 5 ms 7500 KB Output is correct
34 Correct 5 ms 7372 KB Output is correct
35 Correct 5 ms 7376 KB Output is correct
36 Correct 5 ms 7372 KB Output is correct
37 Correct 5 ms 7372 KB Output is correct
38 Correct 5 ms 7372 KB Output is correct
39 Correct 5 ms 7396 KB Output is correct
40 Correct 5 ms 7380 KB Output is correct
41 Correct 5 ms 7372 KB Output is correct
42 Correct 5 ms 7500 KB Output is correct
43 Correct 6 ms 7372 KB Output is correct
44 Correct 7 ms 7380 KB Output is correct
45 Correct 5 ms 7372 KB Output is correct
46 Correct 5 ms 7372 KB Output is correct
47 Correct 5 ms 7372 KB Output is correct
48 Correct 5 ms 7376 KB Output is correct
49 Correct 5 ms 7372 KB Output is correct
50 Correct 6 ms 7372 KB Output is correct
51 Correct 5 ms 7384 KB Output is correct
52 Correct 5 ms 7380 KB Output is correct
53 Correct 5 ms 7372 KB Output is correct
54 Correct 5 ms 7372 KB Output is correct
55 Correct 5 ms 7372 KB Output is correct
56 Correct 6 ms 7380 KB Output is correct
57 Correct 5 ms 7372 KB Output is correct
58 Correct 5 ms 7372 KB Output is correct
59 Correct 5 ms 7380 KB Output is correct
60 Correct 6 ms 7380 KB Output is correct
61 Correct 7 ms 7372 KB Output is correct
62 Correct 5 ms 7372 KB Output is correct
63 Correct 5 ms 7372 KB Output is correct
64 Correct 5 ms 7380 KB Output is correct
65 Correct 5 ms 7372 KB Output is correct
66 Correct 93 ms 28476 KB Output is correct
67 Correct 127 ms 28476 KB Output is correct
68 Correct 109 ms 26084 KB Output is correct
69 Correct 85 ms 26848 KB Output is correct
70 Correct 112 ms 23228 KB Output is correct
71 Correct 99 ms 25172 KB Output is correct
72 Correct 119 ms 23224 KB Output is correct
73 Correct 116 ms 23684 KB Output is correct
74 Correct 138 ms 21796 KB Output is correct
75 Correct 104 ms 21952 KB Output is correct
76 Correct 79 ms 19288 KB Output is correct
77 Correct 95 ms 19096 KB Output is correct
78 Correct 105 ms 18920 KB Output is correct
79 Correct 80 ms 18568 KB Output is correct
80 Correct 73 ms 17400 KB Output is correct
81 Correct 71 ms 17140 KB Output is correct
82 Correct 8 ms 9680 KB Output is correct
83 Correct 8 ms 9680 KB Output is correct
84 Correct 8 ms 9676 KB Output is correct
85 Correct 8 ms 9676 KB Output is correct
86 Correct 8 ms 9676 KB Output is correct
87 Correct 10 ms 9688 KB Output is correct
88 Correct 7 ms 7536 KB Output is correct
89 Correct 6 ms 7500 KB Output is correct
90 Correct 7 ms 7500 KB Output is correct
91 Correct 15 ms 7640 KB Output is correct
92 Correct 6 ms 7500 KB Output is correct
93 Correct 5 ms 7500 KB Output is correct
94 Correct 5 ms 7500 KB Output is correct
95 Correct 6 ms 7500 KB Output is correct
96 Correct 6 ms 7516 KB Output is correct
97 Correct 6 ms 7500 KB Output is correct
98 Correct 6 ms 7500 KB Output is correct
99 Correct 6 ms 7500 KB Output is correct
100 Correct 6 ms 7500 KB Output is correct
101 Correct 5 ms 7500 KB Output is correct
102 Correct 6 ms 7500 KB Output is correct
103 Correct 7 ms 7372 KB Output is correct
104 Correct 6 ms 7512 KB Output is correct
105 Correct 5 ms 7500 KB Output is correct
106 Correct 6 ms 7516 KB Output is correct
107 Correct 6 ms 7500 KB Output is correct
108 Correct 109 ms 21944 KB Output is correct
109 Correct 112 ms 22040 KB Output is correct
110 Correct 117 ms 22120 KB Output is correct
111 Correct 123 ms 22068 KB Output is correct
112 Correct 151 ms 22032 KB Output is correct
113 Correct 165 ms 30388 KB Output is correct
114 Correct 166 ms 27584 KB Output is correct
115 Correct 140 ms 26092 KB Output is correct
116 Correct 137 ms 24700 KB Output is correct
117 Correct 158 ms 22000 KB Output is correct
118 Correct 154 ms 22108 KB Output is correct
119 Correct 157 ms 22108 KB Output is correct
120 Correct 144 ms 22068 KB Output is correct
121 Correct 105 ms 21312 KB Output is correct
122 Correct 127 ms 20452 KB Output is correct
123 Correct 83 ms 17360 KB Output is correct
124 Correct 97 ms 22660 KB Output is correct
125 Correct 92 ms 22620 KB Output is correct
126 Correct 121 ms 22736 KB Output is correct
127 Correct 98 ms 22708 KB Output is correct
128 Correct 7 ms 7500 KB Output is correct
129 Correct 7 ms 7556 KB Output is correct
130 Correct 7 ms 7500 KB Output is correct
131 Correct 7 ms 7684 KB Output is correct
132 Correct 6 ms 7500 KB Output is correct
133 Correct 5 ms 7500 KB Output is correct
134 Correct 6 ms 7388 KB Output is correct
135 Correct 6 ms 7500 KB Output is correct
136 Correct 6 ms 7384 KB Output is correct
137 Correct 6 ms 7388 KB Output is correct
138 Correct 7 ms 7516 KB Output is correct
139 Correct 6 ms 7500 KB Output is correct
140 Correct 6 ms 7500 KB Output is correct
141 Correct 7 ms 7500 KB Output is correct
142 Correct 7 ms 7492 KB Output is correct
143 Correct 6 ms 7500 KB Output is correct
144 Correct 7 ms 7500 KB Output is correct
145 Correct 7 ms 7500 KB Output is correct
146 Correct 5 ms 7520 KB Output is correct
147 Correct 6 ms 7432 KB Output is correct
148 Correct 7 ms 7500 KB Output is correct
149 Correct 7 ms 7500 KB Output is correct
150 Correct 6 ms 7436 KB Output is correct
151 Correct 6 ms 7500 KB Output is correct
152 Correct 5 ms 7380 KB Output is correct
153 Correct 5 ms 7372 KB Output is correct
154 Correct 7 ms 7376 KB Output is correct
155 Correct 154 ms 21956 KB Output is correct
156 Correct 163 ms 22004 KB Output is correct
157 Correct 167 ms 21420 KB Output is correct
158 Correct 184 ms 20388 KB Output is correct
159 Correct 145 ms 19280 KB Output is correct
160 Correct 153 ms 18764 KB Output is correct
161 Correct 133 ms 18548 KB Output is correct
162 Correct 116 ms 18244 KB Output is correct
163 Correct 113 ms 18164 KB Output is correct
164 Correct 105 ms 18064 KB Output is correct
165 Correct 103 ms 18008 KB Output is correct
166 Correct 95 ms 18024 KB Output is correct
167 Correct 103 ms 18140 KB Output is correct
168 Correct 93 ms 20616 KB Output is correct
169 Correct 161 ms 27220 KB Output is correct
170 Correct 168 ms 25220 KB Output is correct
171 Correct 168 ms 25816 KB Output is correct
172 Correct 178 ms 24108 KB Output is correct
173 Correct 169 ms 20368 KB Output is correct
174 Correct 162 ms 20416 KB Output is correct
175 Correct 161 ms 20428 KB Output is correct
176 Correct 137 ms 19664 KB Output is correct
177 Correct 132 ms 19048 KB Output is correct
178 Correct 157 ms 21752 KB Output is correct
179 Correct 147 ms 21704 KB Output is correct
180 Correct 143 ms 21076 KB Output is correct
181 Correct 139 ms 20988 KB Output is correct
182 Correct 7 ms 7380 KB Output is correct
183 Correct 6 ms 7384 KB Output is correct
184 Correct 7 ms 7516 KB Output is correct
185 Correct 6 ms 7524 KB Output is correct
186 Correct 6 ms 7500 KB Output is correct
187 Correct 6 ms 7384 KB Output is correct
188 Correct 7 ms 7400 KB Output is correct
189 Correct 7 ms 7492 KB Output is correct
190 Correct 6 ms 7500 KB Output is correct
191 Correct 6 ms 7448 KB Output is correct
192 Correct 7 ms 7372 KB Output is correct
193 Correct 7 ms 7500 KB Output is correct
194 Correct 6 ms 7500 KB Output is correct
195 Correct 7 ms 7384 KB Output is correct
196 Correct 7 ms 7500 KB Output is correct
197 Correct 6 ms 7516 KB Output is correct
198 Correct 7 ms 7512 KB Output is correct
199 Correct 8 ms 7516 KB Output is correct
200 Correct 8 ms 7516 KB Output is correct
201 Correct 7 ms 7500 KB Output is correct
202 Correct 8 ms 7500 KB Output is correct
203 Correct 6 ms 7500 KB Output is correct
204 Correct 8 ms 7500 KB Output is correct
205 Correct 7 ms 7504 KB Output is correct
206 Correct 7 ms 7500 KB Output is correct
207 Correct 8 ms 7664 KB Output is correct
208 Correct 8 ms 7680 KB Output is correct
209 Correct 11 ms 9676 KB Output is correct
210 Correct 90 ms 16580 KB Output is correct
211 Correct 131 ms 21184 KB Output is correct
212 Correct 154 ms 24140 KB Output is correct
213 Correct 219 ms 26260 KB Output is correct
214 Correct 67 ms 19096 KB Output is correct
215 Correct 70 ms 18760 KB Output is correct
216 Correct 142 ms 21128 KB Output is correct
217 Correct 178 ms 19860 KB Output is correct
218 Correct 138 ms 18380 KB Output is correct
219 Correct 106 ms 18108 KB Output is correct
220 Correct 113 ms 17912 KB Output is correct
221 Correct 113 ms 17932 KB Output is correct
222 Correct 99 ms 19288 KB Output is correct
223 Correct 178 ms 22684 KB Output is correct
224 Correct 148 ms 21740 KB Output is correct
225 Correct 127 ms 19572 KB Output is correct
226 Correct 168 ms 19524 KB Output is correct
227 Correct 174 ms 19524 KB Output is correct
228 Correct 138 ms 18984 KB Output is correct
229 Correct 149 ms 18616 KB Output is correct
230 Correct 143 ms 19988 KB Output is correct
231 Correct 154 ms 20144 KB Output is correct