답안 #239987

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
239987 2020-06-17T16:02:12 Z alishahali1382 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
249 ms 25572 KB
#include <bits/stdc++.h>
#pragma GCC optimize ("O2,unroll-loops")
//#pragma GCC optimize("no-stack-protector,fast-math")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<pii, int> piii;
typedef pair<ll, ll> pll;
#define debug(x) cerr<<#x<<'='<<(x)<<endl;
#define debugp(x) cerr<<#x<<"= {"<<(x.first)<<", "<<(x.second)<<"}"<<endl;
#define debug2(x, y) cerr<<"{"<<#x<<", "<<#y<<"} = {"<<(x)<<", "<<(y)<<"}"<<endl;
#define debugv(v) {cerr<<#v<<" : ";for (auto x:v) cerr<<x<<' ';cerr<<endl;}
#define all(x) x.begin(), x.end()
#define pb push_back
#define kill(x) return cout<<x<<'\n', 0;

const ld eps=1e-7;
const int inf=1000000010;
const ll INF=10000000000000010LL;
const int mod=1000000007;
const int MAXN=200010, LOG=20;

int n, m, k, u, v, x, y, t, a, b;
ll sz[MAXN], dp[MAXN], ans;
int par[MAXN], h[MAXN];
bool good[MAXN];
vector<int> G[MAXN], bcc;
vector<pii> E;

int dfs1(int node){
	int res=h[node]=h[par[node]]+1;
	bcc.pb(node);
	for (int v:G[node]){
		if (!h[v]) par[v]=node, res=min(res, dfs1(v));
		else res=min(res, h[v]);
	}
	if (res==h[par[node]]){
		while (1){
			int v=bcc.back();
			bcc.pop_back();
			E.pb({node+n, v});
			if (v==node) break ;
		}
		E.pb({node+n, par[node]});
	}
	if (!par[node]) bcc.pop_back();
	return res;
}

void dfs2(int node){
	sz[node]=(node<=n);
	for (int v:G[node]) if (v!=par[node]){
		par[v]=node;
		dfs2(v);
		sz[node]+=sz[v];
	}
}

void dfs3(int node, ll ted){
	dp[node]=(ted-2*(node<=n))*(ted-1)-(ted-sz[node])*(ted-sz[node]-1);
	for (int v:G[node]) if (v!=par[node]) dp[node]-=sz[v]*(sz[v]-1);
	for (int v:G[node]) if (v!=par[node]) dfs3(v, ted);
}

void dfs4(int node, ll ted){
	if (node<=n){
		ans+=dp[node];
//		ll shit=ans;
		for (int v:G[node]) if (v!=par[node]) ans+=dp[v]-2*sz[v]*(ted-sz[v]);
		if (par[node]){
			ans+=dp[par[node]];
			ans-=2*sz[node]*(ted-sz[node]);
		}
//		debug2(node, ans-shit)
	
	}
	for (int v:G[node]) if (v!=par[node]) dfs4(v, ted);
}

int main(){
	ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
	//freopen("input.txt", "r", stdin);
	//freopen("output.txt", "w", stdout);
	cin>>n>>m;
	while (m--){
		cin>>u>>v;
		G[u].pb(v);
		G[v].pb(u);
	}
	for (int i=1; i<=n; i++){
		if (!h[i]) dfs1(i);
		G[i].clear();
		par[i]=0;
	}
	for (pii p:E){
//		debugp(p)
		G[p.first].pb(p.second);
		G[p.second].pb(p.first);
	}
	for (int i=1; i<=n; i++) if (!par[i]){
		dfs2(i);
		dfs3(i, sz[i]);
		dfs4(i, sz[i]);
	}
	cout<<ans<<'\n';
//	debug(dp[1])
	
//	debug(dp[7])
	
	return 0;
}
/*
4 3
1 2
2 3
3 4

4 4
1 2
2 3
3 4
4 2

*/
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 4992 KB Output is correct
2 Correct 9 ms 5120 KB Output is correct
3 Correct 7 ms 4992 KB Output is correct
4 Correct 8 ms 5040 KB Output is correct
5 Correct 7 ms 5120 KB Output is correct
6 Correct 7 ms 5120 KB Output is correct
7 Correct 7 ms 4992 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 7 ms 4992 KB Output is correct
10 Correct 7 ms 4992 KB Output is correct
11 Correct 7 ms 5120 KB Output is correct
12 Correct 8 ms 5120 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 4992 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 7 ms 4992 KB Output is correct
18 Correct 7 ms 5120 KB Output is correct
19 Correct 7 ms 5120 KB Output is correct
20 Correct 7 ms 4992 KB Output is correct
21 Correct 7 ms 5120 KB Output is correct
22 Correct 7 ms 4992 KB Output is correct
23 Correct 7 ms 5120 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 5120 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 4992 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 4992 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 7 ms 5120 KB Output is correct
32 Correct 7 ms 4992 KB Output is correct
33 Correct 8 ms 5120 KB Output is correct
34 Correct 7 ms 4992 KB Output is correct
35 Correct 9 ms 4992 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 4992 KB Output is correct
2 Correct 9 ms 5120 KB Output is correct
3 Correct 7 ms 4992 KB Output is correct
4 Correct 8 ms 5040 KB Output is correct
5 Correct 7 ms 5120 KB Output is correct
6 Correct 7 ms 5120 KB Output is correct
7 Correct 7 ms 4992 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 7 ms 4992 KB Output is correct
10 Correct 7 ms 4992 KB Output is correct
11 Correct 7 ms 5120 KB Output is correct
12 Correct 8 ms 5120 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 4992 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 7 ms 4992 KB Output is correct
18 Correct 7 ms 5120 KB Output is correct
19 Correct 7 ms 5120 KB Output is correct
20 Correct 7 ms 4992 KB Output is correct
21 Correct 7 ms 5120 KB Output is correct
22 Correct 7 ms 4992 KB Output is correct
23 Correct 7 ms 5120 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 5120 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 4992 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 4992 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 7 ms 5120 KB Output is correct
32 Correct 7 ms 4992 KB Output is correct
33 Correct 8 ms 5120 KB Output is correct
34 Correct 7 ms 4992 KB Output is correct
35 Correct 9 ms 4992 KB Output is correct
36 Correct 7 ms 5120 KB Output is correct
37 Correct 7 ms 5120 KB Output is correct
38 Correct 7 ms 5120 KB Output is correct
39 Correct 7 ms 5120 KB Output is correct
40 Correct 7 ms 5120 KB Output is correct
41 Correct 7 ms 5120 KB Output is correct
42 Correct 8 ms 5120 KB Output is correct
43 Correct 7 ms 5120 KB Output is correct
44 Correct 8 ms 5120 KB Output is correct
45 Correct 7 ms 5120 KB Output is correct
46 Correct 7 ms 5120 KB Output is correct
47 Correct 7 ms 4992 KB Output is correct
48 Correct 7 ms 5120 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 7 ms 5120 KB Output is correct
51 Correct 8 ms 5120 KB Output is correct
52 Correct 7 ms 5120 KB Output is correct
53 Correct 7 ms 5120 KB Output is correct
54 Correct 7 ms 5120 KB Output is correct
55 Correct 7 ms 5120 KB Output is correct
56 Correct 7 ms 5120 KB Output is correct
57 Correct 8 ms 5120 KB Output is correct
58 Correct 7 ms 5120 KB Output is correct
59 Correct 7 ms 5120 KB Output is correct
60 Correct 7 ms 5120 KB Output is correct
61 Correct 7 ms 5120 KB Output is correct
62 Correct 7 ms 5120 KB Output is correct
63 Correct 8 ms 5120 KB Output is correct
64 Correct 7 ms 5120 KB Output is correct
65 Correct 8 ms 5120 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 101 ms 21740 KB Output is correct
2 Correct 101 ms 21736 KB Output is correct
3 Correct 152 ms 21992 KB Output is correct
4 Correct 137 ms 22576 KB Output is correct
5 Correct 129 ms 19560 KB Output is correct
6 Correct 160 ms 21192 KB Output is correct
7 Correct 161 ms 19688 KB Output is correct
8 Correct 162 ms 20244 KB Output is correct
9 Correct 196 ms 18404 KB Output is correct
10 Correct 156 ms 18504 KB Output is correct
11 Correct 109 ms 16108 KB Output is correct
12 Correct 100 ms 15980 KB Output is correct
13 Correct 104 ms 15724 KB Output is correct
14 Correct 101 ms 15596 KB Output is correct
15 Correct 74 ms 14572 KB Output is correct
16 Correct 81 ms 14444 KB Output is correct
17 Correct 12 ms 8576 KB Output is correct
18 Correct 11 ms 8704 KB Output is correct
19 Correct 11 ms 8448 KB Output is correct
20 Correct 11 ms 8448 KB Output is correct
21 Correct 11 ms 8192 KB Output is correct
22 Correct 11 ms 8192 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 5248 KB Output is correct
2 Correct 8 ms 5248 KB Output is correct
3 Correct 8 ms 5248 KB Output is correct
4 Correct 8 ms 5376 KB Output is correct
5 Correct 8 ms 5248 KB Output is correct
6 Correct 8 ms 5248 KB Output is correct
7 Correct 8 ms 5248 KB Output is correct
8 Correct 9 ms 5248 KB Output is correct
9 Correct 9 ms 5248 KB Output is correct
10 Correct 8 ms 5248 KB Output is correct
11 Correct 8 ms 5248 KB Output is correct
12 Correct 8 ms 5248 KB Output is correct
13 Correct 8 ms 5248 KB Output is correct
14 Correct 8 ms 5120 KB Output is correct
15 Correct 8 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 8 ms 5248 KB Output is correct
19 Correct 9 ms 5248 KB Output is correct
20 Correct 9 ms 5248 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 173 ms 18532 KB Output is correct
2 Correct 191 ms 18676 KB Output is correct
3 Correct 189 ms 18652 KB Output is correct
4 Correct 169 ms 18532 KB Output is correct
5 Correct 173 ms 18536 KB Output is correct
6 Correct 214 ms 25572 KB Output is correct
7 Correct 226 ms 23212 KB Output is correct
8 Correct 197 ms 21884 KB Output is correct
9 Correct 201 ms 20840 KB Output is correct
10 Correct 244 ms 18536 KB Output is correct
11 Correct 249 ms 18532 KB Output is correct
12 Correct 167 ms 18532 KB Output is correct
13 Correct 159 ms 18532 KB Output is correct
14 Correct 125 ms 17900 KB Output is correct
15 Correct 138 ms 17128 KB Output is correct
16 Correct 114 ms 14704 KB Output is correct
17 Correct 110 ms 18916 KB Output is correct
18 Correct 120 ms 18788 KB Output is correct
19 Correct 117 ms 18780 KB Output is correct
20 Correct 121 ms 18792 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 8 ms 5248 KB Output is correct
2 Correct 8 ms 5120 KB Output is correct
3 Correct 8 ms 5248 KB Output is correct
4 Correct 8 ms 5120 KB Output is correct
5 Correct 8 ms 5120 KB Output is correct
6 Correct 8 ms 5120 KB Output is correct
7 Correct 8 ms 5120 KB Output is correct
8 Correct 8 ms 5120 KB Output is correct
9 Correct 9 ms 5120 KB Output is correct
10 Correct 8 ms 5120 KB Output is correct
11 Correct 8 ms 5248 KB Output is correct
12 Correct 8 ms 5248 KB Output is correct
13 Correct 8 ms 5376 KB Output is correct
14 Correct 8 ms 5248 KB Output is correct
15 Correct 8 ms 5248 KB Output is correct
16 Correct 8 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 8 ms 5120 KB Output is correct
20 Correct 8 ms 5120 KB Output is correct
21 Correct 8 ms 5120 KB Output is correct
22 Correct 8 ms 5248 KB Output is correct
23 Correct 8 ms 5248 KB Output is correct
24 Correct 8 ms 5120 KB Output is correct
25 Correct 7 ms 5120 KB Output is correct
26 Correct 8 ms 5120 KB Output is correct
27 Correct 8 ms 5120 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 179 ms 18532 KB Output is correct
2 Correct 188 ms 18632 KB Output is correct
3 Correct 182 ms 18024 KB Output is correct
4 Correct 168 ms 17256 KB Output is correct
5 Correct 144 ms 16400 KB Output is correct
6 Correct 133 ms 16104 KB Output is correct
7 Correct 207 ms 15728 KB Output is correct
8 Correct 133 ms 15596 KB Output is correct
9 Correct 105 ms 15528 KB Output is correct
10 Correct 108 ms 15596 KB Output is correct
11 Correct 101 ms 15340 KB Output is correct
12 Correct 100 ms 15340 KB Output is correct
13 Correct 93 ms 15280 KB Output is correct
14 Correct 91 ms 15848 KB Output is correct
15 Correct 210 ms 22888 KB Output is correct
16 Correct 204 ms 21348 KB Output is correct
17 Correct 190 ms 21740 KB Output is correct
18 Correct 218 ms 20288 KB Output is correct
19 Correct 162 ms 17256 KB Output is correct
20 Correct 196 ms 17336 KB Output is correct
21 Correct 194 ms 17256 KB Output is correct
22 Correct 157 ms 16612 KB Output is correct
23 Correct 115 ms 15984 KB Output is correct
24 Correct 225 ms 18284 KB Output is correct
25 Correct 189 ms 18220 KB Output is correct
26 Correct 160 ms 17636 KB Output is correct
27 Correct 158 ms 17640 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 4992 KB Output is correct
2 Correct 9 ms 5120 KB Output is correct
3 Correct 7 ms 4992 KB Output is correct
4 Correct 8 ms 5040 KB Output is correct
5 Correct 7 ms 5120 KB Output is correct
6 Correct 7 ms 5120 KB Output is correct
7 Correct 7 ms 4992 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 7 ms 4992 KB Output is correct
10 Correct 7 ms 4992 KB Output is correct
11 Correct 7 ms 5120 KB Output is correct
12 Correct 8 ms 5120 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 4992 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 7 ms 4992 KB Output is correct
18 Correct 7 ms 5120 KB Output is correct
19 Correct 7 ms 5120 KB Output is correct
20 Correct 7 ms 4992 KB Output is correct
21 Correct 7 ms 5120 KB Output is correct
22 Correct 7 ms 4992 KB Output is correct
23 Correct 7 ms 5120 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 5120 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 4992 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 4992 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 7 ms 5120 KB Output is correct
32 Correct 7 ms 4992 KB Output is correct
33 Correct 8 ms 5120 KB Output is correct
34 Correct 7 ms 4992 KB Output is correct
35 Correct 9 ms 4992 KB Output is correct
36 Correct 7 ms 5120 KB Output is correct
37 Correct 7 ms 5120 KB Output is correct
38 Correct 7 ms 5120 KB Output is correct
39 Correct 7 ms 5120 KB Output is correct
40 Correct 7 ms 5120 KB Output is correct
41 Correct 7 ms 5120 KB Output is correct
42 Correct 8 ms 5120 KB Output is correct
43 Correct 7 ms 5120 KB Output is correct
44 Correct 8 ms 5120 KB Output is correct
45 Correct 7 ms 5120 KB Output is correct
46 Correct 7 ms 5120 KB Output is correct
47 Correct 7 ms 4992 KB Output is correct
48 Correct 7 ms 5120 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 7 ms 5120 KB Output is correct
51 Correct 8 ms 5120 KB Output is correct
52 Correct 7 ms 5120 KB Output is correct
53 Correct 7 ms 5120 KB Output is correct
54 Correct 7 ms 5120 KB Output is correct
55 Correct 7 ms 5120 KB Output is correct
56 Correct 7 ms 5120 KB Output is correct
57 Correct 8 ms 5120 KB Output is correct
58 Correct 7 ms 5120 KB Output is correct
59 Correct 7 ms 5120 KB Output is correct
60 Correct 7 ms 5120 KB Output is correct
61 Correct 7 ms 5120 KB Output is correct
62 Correct 7 ms 5120 KB Output is correct
63 Correct 8 ms 5120 KB Output is correct
64 Correct 7 ms 5120 KB Output is correct
65 Correct 8 ms 5120 KB Output is correct
66 Correct 7 ms 5120 KB Output is correct
67 Correct 7 ms 5120 KB Output is correct
68 Correct 8 ms 5248 KB Output is correct
69 Correct 8 ms 5248 KB Output is correct
70 Correct 9 ms 5248 KB Output is correct
71 Correct 7 ms 5120 KB Output is correct
72 Correct 7 ms 5120 KB Output is correct
73 Correct 8 ms 5248 KB Output is correct
74 Correct 8 ms 5120 KB Output is correct
75 Correct 8 ms 5248 KB Output is correct
76 Correct 7 ms 5120 KB Output is correct
77 Correct 9 ms 5248 KB Output is correct
78 Correct 8 ms 5120 KB Output is correct
79 Correct 8 ms 5120 KB Output is correct
80 Correct 7 ms 5248 KB Output is correct
81 Correct 8 ms 5120 KB Output is correct
82 Correct 7 ms 5248 KB Output is correct
83 Correct 7 ms 5248 KB Output is correct
84 Correct 8 ms 5248 KB Output is correct
85 Correct 8 ms 5248 KB Output is correct
86 Correct 8 ms 5120 KB Output is correct
87 Correct 8 ms 5248 KB Output is correct
88 Correct 8 ms 5120 KB Output is correct
89 Correct 8 ms 5120 KB Output is correct
90 Correct 8 ms 5120 KB Output is correct
91 Correct 8 ms 5120 KB Output is correct
92 Correct 8 ms 5120 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 4992 KB Output is correct
2 Correct 9 ms 5120 KB Output is correct
3 Correct 7 ms 4992 KB Output is correct
4 Correct 8 ms 5040 KB Output is correct
5 Correct 7 ms 5120 KB Output is correct
6 Correct 7 ms 5120 KB Output is correct
7 Correct 7 ms 4992 KB Output is correct
8 Correct 7 ms 5120 KB Output is correct
9 Correct 7 ms 4992 KB Output is correct
10 Correct 7 ms 4992 KB Output is correct
11 Correct 7 ms 5120 KB Output is correct
12 Correct 8 ms 5120 KB Output is correct
13 Correct 7 ms 4992 KB Output is correct
14 Correct 7 ms 4992 KB Output is correct
15 Correct 7 ms 4992 KB Output is correct
16 Correct 7 ms 4992 KB Output is correct
17 Correct 7 ms 4992 KB Output is correct
18 Correct 7 ms 5120 KB Output is correct
19 Correct 7 ms 5120 KB Output is correct
20 Correct 7 ms 4992 KB Output is correct
21 Correct 7 ms 5120 KB Output is correct
22 Correct 7 ms 4992 KB Output is correct
23 Correct 7 ms 5120 KB Output is correct
24 Correct 7 ms 4992 KB Output is correct
25 Correct 7 ms 5120 KB Output is correct
26 Correct 7 ms 4992 KB Output is correct
27 Correct 7 ms 4992 KB Output is correct
28 Correct 7 ms 4992 KB Output is correct
29 Correct 7 ms 4992 KB Output is correct
30 Correct 7 ms 4992 KB Output is correct
31 Correct 7 ms 5120 KB Output is correct
32 Correct 7 ms 4992 KB Output is correct
33 Correct 8 ms 5120 KB Output is correct
34 Correct 7 ms 4992 KB Output is correct
35 Correct 9 ms 4992 KB Output is correct
36 Correct 7 ms 5120 KB Output is correct
37 Correct 7 ms 5120 KB Output is correct
38 Correct 7 ms 5120 KB Output is correct
39 Correct 7 ms 5120 KB Output is correct
40 Correct 7 ms 5120 KB Output is correct
41 Correct 7 ms 5120 KB Output is correct
42 Correct 8 ms 5120 KB Output is correct
43 Correct 7 ms 5120 KB Output is correct
44 Correct 8 ms 5120 KB Output is correct
45 Correct 7 ms 5120 KB Output is correct
46 Correct 7 ms 5120 KB Output is correct
47 Correct 7 ms 4992 KB Output is correct
48 Correct 7 ms 5120 KB Output is correct
49 Correct 7 ms 5120 KB Output is correct
50 Correct 7 ms 5120 KB Output is correct
51 Correct 8 ms 5120 KB Output is correct
52 Correct 7 ms 5120 KB Output is correct
53 Correct 7 ms 5120 KB Output is correct
54 Correct 7 ms 5120 KB Output is correct
55 Correct 7 ms 5120 KB Output is correct
56 Correct 7 ms 5120 KB Output is correct
57 Correct 8 ms 5120 KB Output is correct
58 Correct 7 ms 5120 KB Output is correct
59 Correct 7 ms 5120 KB Output is correct
60 Correct 7 ms 5120 KB Output is correct
61 Correct 7 ms 5120 KB Output is correct
62 Correct 7 ms 5120 KB Output is correct
63 Correct 8 ms 5120 KB Output is correct
64 Correct 7 ms 5120 KB Output is correct
65 Correct 8 ms 5120 KB Output is correct
66 Correct 101 ms 21740 KB Output is correct
67 Correct 101 ms 21736 KB Output is correct
68 Correct 152 ms 21992 KB Output is correct
69 Correct 137 ms 22576 KB Output is correct
70 Correct 129 ms 19560 KB Output is correct
71 Correct 160 ms 21192 KB Output is correct
72 Correct 161 ms 19688 KB Output is correct
73 Correct 162 ms 20244 KB Output is correct
74 Correct 196 ms 18404 KB Output is correct
75 Correct 156 ms 18504 KB Output is correct
76 Correct 109 ms 16108 KB Output is correct
77 Correct 100 ms 15980 KB Output is correct
78 Correct 104 ms 15724 KB Output is correct
79 Correct 101 ms 15596 KB Output is correct
80 Correct 74 ms 14572 KB Output is correct
81 Correct 81 ms 14444 KB Output is correct
82 Correct 12 ms 8576 KB Output is correct
83 Correct 11 ms 8704 KB Output is correct
84 Correct 11 ms 8448 KB Output is correct
85 Correct 11 ms 8448 KB Output is correct
86 Correct 11 ms 8192 KB Output is correct
87 Correct 11 ms 8192 KB Output is correct
88 Correct 9 ms 5248 KB Output is correct
89 Correct 8 ms 5248 KB Output is correct
90 Correct 8 ms 5248 KB Output is correct
91 Correct 8 ms 5376 KB Output is correct
92 Correct 8 ms 5248 KB Output is correct
93 Correct 8 ms 5248 KB Output is correct
94 Correct 8 ms 5248 KB Output is correct
95 Correct 9 ms 5248 KB Output is correct
96 Correct 9 ms 5248 KB Output is correct
97 Correct 8 ms 5248 KB Output is correct
98 Correct 8 ms 5248 KB Output is correct
99 Correct 8 ms 5248 KB Output is correct
100 Correct 8 ms 5248 KB Output is correct
101 Correct 8 ms 5120 KB Output is correct
102 Correct 8 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 8 ms 5248 KB Output is correct
106 Correct 9 ms 5248 KB Output is correct
107 Correct 9 ms 5248 KB Output is correct
108 Correct 173 ms 18532 KB Output is correct
109 Correct 191 ms 18676 KB Output is correct
110 Correct 189 ms 18652 KB Output is correct
111 Correct 169 ms 18532 KB Output is correct
112 Correct 173 ms 18536 KB Output is correct
113 Correct 214 ms 25572 KB Output is correct
114 Correct 226 ms 23212 KB Output is correct
115 Correct 197 ms 21884 KB Output is correct
116 Correct 201 ms 20840 KB Output is correct
117 Correct 244 ms 18536 KB Output is correct
118 Correct 249 ms 18532 KB Output is correct
119 Correct 167 ms 18532 KB Output is correct
120 Correct 159 ms 18532 KB Output is correct
121 Correct 125 ms 17900 KB Output is correct
122 Correct 138 ms 17128 KB Output is correct
123 Correct 114 ms 14704 KB Output is correct
124 Correct 110 ms 18916 KB Output is correct
125 Correct 120 ms 18788 KB Output is correct
126 Correct 117 ms 18780 KB Output is correct
127 Correct 121 ms 18792 KB Output is correct
128 Correct 8 ms 5248 KB Output is correct
129 Correct 8 ms 5120 KB Output is correct
130 Correct 8 ms 5248 KB Output is correct
131 Correct 8 ms 5120 KB Output is correct
132 Correct 8 ms 5120 KB Output is correct
133 Correct 8 ms 5120 KB Output is correct
134 Correct 8 ms 5120 KB Output is correct
135 Correct 8 ms 5120 KB Output is correct
136 Correct 9 ms 5120 KB Output is correct
137 Correct 8 ms 5120 KB Output is correct
138 Correct 8 ms 5248 KB Output is correct
139 Correct 8 ms 5248 KB Output is correct
140 Correct 8 ms 5376 KB Output is correct
141 Correct 8 ms 5248 KB Output is correct
142 Correct 8 ms 5248 KB Output is correct
143 Correct 8 ms 5120 KB Output is correct
144 Correct 8 ms 5120 KB Output is correct
145 Correct 8 ms 5120 KB Output is correct
146 Correct 8 ms 5120 KB Output is correct
147 Correct 8 ms 5120 KB Output is correct
148 Correct 8 ms 5120 KB Output is correct
149 Correct 8 ms 5248 KB Output is correct
150 Correct 8 ms 5248 KB Output is correct
151 Correct 8 ms 5120 KB Output is correct
152 Correct 7 ms 5120 KB Output is correct
153 Correct 8 ms 5120 KB Output is correct
154 Correct 8 ms 5120 KB Output is correct
155 Correct 179 ms 18532 KB Output is correct
156 Correct 188 ms 18632 KB Output is correct
157 Correct 182 ms 18024 KB Output is correct
158 Correct 168 ms 17256 KB Output is correct
159 Correct 144 ms 16400 KB Output is correct
160 Correct 133 ms 16104 KB Output is correct
161 Correct 207 ms 15728 KB Output is correct
162 Correct 133 ms 15596 KB Output is correct
163 Correct 105 ms 15528 KB Output is correct
164 Correct 108 ms 15596 KB Output is correct
165 Correct 101 ms 15340 KB Output is correct
166 Correct 100 ms 15340 KB Output is correct
167 Correct 93 ms 15280 KB Output is correct
168 Correct 91 ms 15848 KB Output is correct
169 Correct 210 ms 22888 KB Output is correct
170 Correct 204 ms 21348 KB Output is correct
171 Correct 190 ms 21740 KB Output is correct
172 Correct 218 ms 20288 KB Output is correct
173 Correct 162 ms 17256 KB Output is correct
174 Correct 196 ms 17336 KB Output is correct
175 Correct 194 ms 17256 KB Output is correct
176 Correct 157 ms 16612 KB Output is correct
177 Correct 115 ms 15984 KB Output is correct
178 Correct 225 ms 18284 KB Output is correct
179 Correct 189 ms 18220 KB Output is correct
180 Correct 160 ms 17636 KB Output is correct
181 Correct 158 ms 17640 KB Output is correct
182 Correct 7 ms 5120 KB Output is correct
183 Correct 7 ms 5120 KB Output is correct
184 Correct 8 ms 5248 KB Output is correct
185 Correct 8 ms 5248 KB Output is correct
186 Correct 9 ms 5248 KB Output is correct
187 Correct 7 ms 5120 KB Output is correct
188 Correct 7 ms 5120 KB Output is correct
189 Correct 8 ms 5248 KB Output is correct
190 Correct 8 ms 5120 KB Output is correct
191 Correct 8 ms 5248 KB Output is correct
192 Correct 7 ms 5120 KB Output is correct
193 Correct 9 ms 5248 KB Output is correct
194 Correct 8 ms 5120 KB Output is correct
195 Correct 8 ms 5120 KB Output is correct
196 Correct 7 ms 5248 KB Output is correct
197 Correct 8 ms 5120 KB Output is correct
198 Correct 7 ms 5248 KB Output is correct
199 Correct 7 ms 5248 KB Output is correct
200 Correct 8 ms 5248 KB Output is correct
201 Correct 8 ms 5248 KB Output is correct
202 Correct 8 ms 5120 KB Output is correct
203 Correct 8 ms 5248 KB Output is correct
204 Correct 8 ms 5120 KB Output is correct
205 Correct 8 ms 5120 KB Output is correct
206 Correct 8 ms 5120 KB Output is correct
207 Correct 8 ms 5120 KB Output is correct
208 Correct 8 ms 5120 KB Output is correct
209 Correct 11 ms 7424 KB Output is correct
210 Correct 79 ms 14320 KB Output is correct
211 Correct 117 ms 18028 KB Output is correct
212 Correct 158 ms 20848 KB Output is correct
213 Correct 168 ms 22952 KB Output is correct
214 Correct 64 ms 16112 KB Output is correct
215 Correct 67 ms 15856 KB Output is correct
216 Correct 167 ms 17896 KB Output is correct
217 Correct 148 ms 16876 KB Output is correct
218 Correct 113 ms 15784 KB Output is correct
219 Correct 96 ms 15344 KB Output is correct
220 Correct 114 ms 15376 KB Output is correct
221 Correct 88 ms 15084 KB Output is correct
222 Correct 94 ms 14640 KB Output is correct
223 Correct 153 ms 18964 KB Output is correct
224 Correct 150 ms 18280 KB Output is correct
225 Correct 134 ms 16620 KB Output is correct
226 Correct 135 ms 16620 KB Output is correct
227 Correct 146 ms 16588 KB Output is correct
228 Correct 106 ms 16112 KB Output is correct
229 Correct 107 ms 15724 KB Output is correct
230 Correct 208 ms 16868 KB Output is correct
231 Correct 132 ms 16996 KB Output is correct