답안 #97141

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
97141 2019-02-14T04:34:48 Z fefe 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
275 ms 29388 KB
#include<bits/stdc++.h>
#define MAX_N 100005
#define MAX_M 200005
#define pb push_back
#define mp make_pair
#define all(V) (V).begin(),(V).end()
#define reset(V) (V).clear();(V).resize(0);
#define sq(x) ((x)*(x))
#define abs(x) ((x)>0?(x):(-(x)))
#define fi first
#define se second
#define LL_inf (1LL<<60)
#define full_inf 0x7fffffff
#define half_inf 0x3fffffff
#define inf 0x3fffffff
#define MOD 1000000007LL
#define cpx_mod(x) (((LD)(((LL)x.real())%MOD)),((LD)(((LL)x.imag())%MOD)))
using namespace std;
typedef long long LL;
typedef long double LD;
typedef pair<int,int> pii;
typedef pair<LL,LL> pil;
typedef pair<LL,string> pls;
typedef complex<LD> Complex;
typedef long double LD;
int n,m,ln,dep[MAX_N],loc[MAX_N],val[MAX_N];
LL ans;
bool vis[MAX_N];
vector<int> E[MAX_N],L,lst[MAX_N];
vector<pii> bcc[MAX_N];
void merge(int x,int y){
	int p,q;
	p=loc[x];
	q=loc[y];
	if(bcc[p].size()<bcc[q].size())	swap(p,q);
	loc[x]=p;
	while(bcc[q].size()){
		bcc[p].pb(bcc[q].back());		
		bcc[q].pop_back();
	}
}
int make_bcc(int x){
	int z=dep[x]-1,k;
	m++;
	loc[x]=ln++;
	bcc[loc[x]].pb({x,0});
	for(int y:E[x]){
		if(dep[y]){
			z=min(z,dep[y]);
			continue;
		}
		dep[y]=dep[x]+1;
		k=make_bcc(y);
		z=min(z,k);
		if(k==dep[x]){
			bcc[loc[y]].pb({x,0});
			L.pb(loc[y]);
			continue;
		}
		merge(x,y);
	}
	return z;
}
int dfs(int x,int y){
	int sum=0;
	vis[x]=true;
	for(pii &p:bcc[x]){
		p.se++;
		if(p.fi==y)	continue;
		for(int q:lst[p.fi]){
			if(vis[q])	continue;
			p.se+=dfs(q,p.fi)-1;
		}
	}
	for(pii p:bcc[x])	sum+=p.se;
	for(pii &p:bcc[x]){
		if(p.fi==y)	p.se=m-sum+1;
		ans+=((LL)(bcc[x].size()-2))*(LL)p.se*((LL)(m-p.se));
		ans+=2*((LL)val[p.fi])*((LL)(m-p.se));
		val[p.fi]+=(m-p.se);
	}
	return sum;
}
int main(){
	int i,x,y;
	scanf("%d %d",&n,&m);
	for(i=0;i<m;i++){
		scanf("%d %d",&x,&y);
		E[x].pb(y);
		E[y].pb(x);
	}
	for(i=1;i<=n;i++){
		if(dep[i])	continue;
		L.clear();
		L.resize(0);
		dep[i]=1;
		m=0;
		make_bcc(i);
		if(m<2)	continue;
		for(int p:L){
			for(pii z:bcc[p]){
				lst[z.fi].pb(p);
			}
		}
		x=bcc[L[0]][0].fi;
		for(int q:lst[x]){
			dfs(q,x);
		}
	}	
	for(i=1;i<=n;i++)	dep[i]=0;	//dep --> count node under me
	
	printf("%lld\n",ans);
	return 0;
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:86:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&n,&m);
  ~~~~~^~~~~~~~~~~~~~~
count_triplets.cpp:88:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d",&x,&y);
   ~~~~~^~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 9 ms 7424 KB Output is correct
4 Correct 9 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 10 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 11 ms 7552 KB Output is correct
9 Correct 11 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 10 ms 7424 KB Output is correct
12 Correct 11 ms 7424 KB Output is correct
13 Correct 10 ms 7424 KB Output is correct
14 Correct 9 ms 7424 KB Output is correct
15 Correct 10 ms 7424 KB Output is correct
16 Correct 10 ms 7424 KB Output is correct
17 Correct 10 ms 7424 KB Output is correct
18 Correct 10 ms 7424 KB Output is correct
19 Correct 10 ms 7424 KB Output is correct
20 Correct 11 ms 7424 KB Output is correct
21 Correct 10 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 9 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 10 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 10 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 10 ms 7424 KB Output is correct
30 Correct 11 ms 7424 KB Output is correct
31 Correct 10 ms 7468 KB Output is correct
32 Correct 10 ms 7384 KB Output is correct
33 Correct 10 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 10 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 9 ms 7424 KB Output is correct
4 Correct 9 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 10 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 11 ms 7552 KB Output is correct
9 Correct 11 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 10 ms 7424 KB Output is correct
12 Correct 11 ms 7424 KB Output is correct
13 Correct 10 ms 7424 KB Output is correct
14 Correct 9 ms 7424 KB Output is correct
15 Correct 10 ms 7424 KB Output is correct
16 Correct 10 ms 7424 KB Output is correct
17 Correct 10 ms 7424 KB Output is correct
18 Correct 10 ms 7424 KB Output is correct
19 Correct 10 ms 7424 KB Output is correct
20 Correct 11 ms 7424 KB Output is correct
21 Correct 10 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 9 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 10 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 10 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 10 ms 7424 KB Output is correct
30 Correct 11 ms 7424 KB Output is correct
31 Correct 10 ms 7468 KB Output is correct
32 Correct 10 ms 7384 KB Output is correct
33 Correct 10 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 10 ms 7424 KB Output is correct
36 Correct 10 ms 7340 KB Output is correct
37 Correct 11 ms 7424 KB Output is correct
38 Correct 10 ms 7424 KB Output is correct
39 Correct 9 ms 7396 KB Output is correct
40 Correct 10 ms 7424 KB Output is correct
41 Correct 10 ms 7424 KB Output is correct
42 Correct 10 ms 7424 KB Output is correct
43 Correct 11 ms 7424 KB Output is correct
44 Correct 10 ms 7424 KB Output is correct
45 Correct 12 ms 7508 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 10 ms 7424 KB Output is correct
48 Correct 11 ms 7424 KB Output is correct
49 Correct 11 ms 7424 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 11 ms 7424 KB Output is correct
52 Correct 11 ms 7396 KB Output is correct
53 Correct 9 ms 7524 KB Output is correct
54 Correct 10 ms 7424 KB Output is correct
55 Correct 10 ms 7424 KB Output is correct
56 Correct 10 ms 7452 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 10 ms 7424 KB Output is correct
60 Correct 10 ms 7424 KB Output is correct
61 Correct 11 ms 7424 KB Output is correct
62 Correct 8 ms 7424 KB Output is correct
63 Correct 8 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 10 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 185 ms 29344 KB Output is correct
2 Correct 188 ms 29388 KB Output is correct
3 Correct 189 ms 24532 KB Output is correct
4 Correct 174 ms 27052 KB Output is correct
5 Correct 196 ms 23028 KB Output is correct
6 Correct 231 ms 24264 KB Output is correct
7 Correct 190 ms 21516 KB Output is correct
8 Correct 188 ms 22516 KB Output is correct
9 Correct 247 ms 20556 KB Output is correct
10 Correct 225 ms 21624 KB Output is correct
11 Correct 174 ms 19368 KB Output is correct
12 Correct 167 ms 19212 KB Output is correct
13 Correct 161 ms 18988 KB Output is correct
14 Correct 155 ms 18744 KB Output is correct
15 Correct 133 ms 17752 KB Output is correct
16 Correct 121 ms 17568 KB Output is correct
17 Correct 26 ms 11768 KB Output is correct
18 Correct 23 ms 11776 KB Output is correct
19 Correct 19 ms 11776 KB Output is correct
20 Correct 19 ms 11776 KB Output is correct
21 Correct 25 ms 11648 KB Output is correct
22 Correct 19 ms 11648 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 7552 KB Output is correct
2 Correct 11 ms 7552 KB Output is correct
3 Correct 10 ms 7524 KB Output is correct
4 Correct 11 ms 7552 KB Output is correct
5 Correct 11 ms 7552 KB Output is correct
6 Correct 11 ms 7552 KB Output is correct
7 Correct 13 ms 7552 KB Output is correct
8 Correct 11 ms 7552 KB Output is correct
9 Correct 13 ms 7552 KB Output is correct
10 Correct 10 ms 7488 KB Output is correct
11 Correct 12 ms 7552 KB Output is correct
12 Correct 12 ms 7552 KB Output is correct
13 Correct 11 ms 7424 KB Output is correct
14 Correct 11 ms 7552 KB Output is correct
15 Correct 11 ms 7424 KB Output is correct
16 Correct 12 ms 7424 KB Output is correct
17 Correct 13 ms 7612 KB Output is correct
18 Correct 10 ms 7552 KB Output is correct
19 Correct 11 ms 7552 KB Output is correct
20 Correct 11 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 207 ms 19924 KB Output is correct
2 Correct 204 ms 19952 KB Output is correct
3 Correct 229 ms 19972 KB Output is correct
4 Correct 196 ms 20016 KB Output is correct
5 Correct 200 ms 20032 KB Output is correct
6 Correct 218 ms 27536 KB Output is correct
7 Correct 224 ms 23160 KB Output is correct
8 Correct 224 ms 22384 KB Output is correct
9 Correct 213 ms 21364 KB Output is correct
10 Correct 193 ms 19800 KB Output is correct
11 Correct 210 ms 19876 KB Output is correct
12 Correct 211 ms 19672 KB Output is correct
13 Correct 217 ms 19576 KB Output is correct
14 Correct 171 ms 19292 KB Output is correct
15 Correct 185 ms 18888 KB Output is correct
16 Correct 108 ms 17188 KB Output is correct
17 Correct 161 ms 20496 KB Output is correct
18 Correct 153 ms 20460 KB Output is correct
19 Correct 169 ms 20584 KB Output is correct
20 Correct 167 ms 20536 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 10 ms 7424 KB Output is correct
2 Correct 13 ms 7552 KB Output is correct
3 Correct 12 ms 7552 KB Output is correct
4 Correct 13 ms 7552 KB Output is correct
5 Correct 12 ms 7552 KB Output is correct
6 Correct 11 ms 7552 KB Output is correct
7 Correct 11 ms 7552 KB Output is correct
8 Correct 11 ms 7552 KB Output is correct
9 Correct 11 ms 7552 KB Output is correct
10 Correct 9 ms 7552 KB Output is correct
11 Correct 9 ms 7552 KB Output is correct
12 Correct 10 ms 7552 KB Output is correct
13 Correct 12 ms 7552 KB Output is correct
14 Correct 11 ms 7680 KB Output is correct
15 Correct 9 ms 7552 KB Output is correct
16 Correct 13 ms 7672 KB Output is correct
17 Correct 11 ms 7552 KB Output is correct
18 Correct 11 ms 7552 KB Output is correct
19 Correct 11 ms 7584 KB Output is correct
20 Correct 10 ms 7424 KB Output is correct
21 Correct 11 ms 7552 KB Output is correct
22 Correct 12 ms 7552 KB Output is correct
23 Correct 10 ms 7552 KB Output is correct
24 Correct 10 ms 7552 KB Output is correct
25 Correct 11 ms 7424 KB Output is correct
26 Correct 10 ms 7424 KB Output is correct
27 Correct 10 ms 7424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 176 ms 19924 KB Output is correct
2 Correct 204 ms 19824 KB Output is correct
3 Correct 221 ms 20336 KB Output is correct
4 Correct 231 ms 20488 KB Output is correct
5 Correct 204 ms 20408 KB Output is correct
6 Correct 188 ms 20420 KB Output is correct
7 Correct 180 ms 20600 KB Output is correct
8 Correct 161 ms 20472 KB Output is correct
9 Correct 155 ms 20600 KB Output is correct
10 Correct 180 ms 20568 KB Output is correct
11 Correct 189 ms 20748 KB Output is correct
12 Correct 142 ms 20600 KB Output is correct
13 Correct 156 ms 20704 KB Output is correct
14 Correct 188 ms 22760 KB Output is correct
15 Correct 202 ms 24044 KB Output is correct
16 Correct 247 ms 22636 KB Output is correct
17 Correct 224 ms 23796 KB Output is correct
18 Correct 193 ms 22512 KB Output is correct
19 Correct 212 ms 20468 KB Output is correct
20 Correct 190 ms 20312 KB Output is correct
21 Correct 209 ms 20220 KB Output is correct
22 Correct 183 ms 19832 KB Output is correct
23 Correct 160 ms 19744 KB Output is correct
24 Correct 171 ms 20464 KB Output is correct
25 Correct 168 ms 20636 KB Output is correct
26 Correct 196 ms 20464 KB Output is correct
27 Correct 165 ms 20464 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 9 ms 7424 KB Output is correct
4 Correct 9 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 10 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 11 ms 7552 KB Output is correct
9 Correct 11 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 10 ms 7424 KB Output is correct
12 Correct 11 ms 7424 KB Output is correct
13 Correct 10 ms 7424 KB Output is correct
14 Correct 9 ms 7424 KB Output is correct
15 Correct 10 ms 7424 KB Output is correct
16 Correct 10 ms 7424 KB Output is correct
17 Correct 10 ms 7424 KB Output is correct
18 Correct 10 ms 7424 KB Output is correct
19 Correct 10 ms 7424 KB Output is correct
20 Correct 11 ms 7424 KB Output is correct
21 Correct 10 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 9 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 10 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 10 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 10 ms 7424 KB Output is correct
30 Correct 11 ms 7424 KB Output is correct
31 Correct 10 ms 7468 KB Output is correct
32 Correct 10 ms 7384 KB Output is correct
33 Correct 10 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 10 ms 7424 KB Output is correct
36 Correct 10 ms 7340 KB Output is correct
37 Correct 11 ms 7424 KB Output is correct
38 Correct 10 ms 7424 KB Output is correct
39 Correct 9 ms 7396 KB Output is correct
40 Correct 10 ms 7424 KB Output is correct
41 Correct 10 ms 7424 KB Output is correct
42 Correct 10 ms 7424 KB Output is correct
43 Correct 11 ms 7424 KB Output is correct
44 Correct 10 ms 7424 KB Output is correct
45 Correct 12 ms 7508 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 10 ms 7424 KB Output is correct
48 Correct 11 ms 7424 KB Output is correct
49 Correct 11 ms 7424 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 11 ms 7424 KB Output is correct
52 Correct 11 ms 7396 KB Output is correct
53 Correct 9 ms 7524 KB Output is correct
54 Correct 10 ms 7424 KB Output is correct
55 Correct 10 ms 7424 KB Output is correct
56 Correct 10 ms 7452 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 10 ms 7424 KB Output is correct
60 Correct 10 ms 7424 KB Output is correct
61 Correct 11 ms 7424 KB Output is correct
62 Correct 8 ms 7424 KB Output is correct
63 Correct 8 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 10 ms 7424 KB Output is correct
66 Correct 9 ms 7424 KB Output is correct
67 Correct 11 ms 7552 KB Output is correct
68 Correct 11 ms 7552 KB Output is correct
69 Correct 12 ms 7552 KB Output is correct
70 Correct 12 ms 7676 KB Output is correct
71 Correct 10 ms 7424 KB Output is correct
72 Correct 12 ms 7552 KB Output is correct
73 Correct 10 ms 7424 KB Output is correct
74 Correct 11 ms 7424 KB Output is correct
75 Correct 11 ms 7552 KB Output is correct
76 Correct 10 ms 7424 KB Output is correct
77 Correct 10 ms 7552 KB Output is correct
78 Correct 11 ms 7552 KB Output is correct
79 Correct 12 ms 7552 KB Output is correct
80 Correct 12 ms 7552 KB Output is correct
81 Correct 12 ms 7552 KB Output is correct
82 Correct 13 ms 7552 KB Output is correct
83 Correct 10 ms 7552 KB Output is correct
84 Correct 11 ms 7552 KB Output is correct
85 Correct 12 ms 7552 KB Output is correct
86 Correct 11 ms 7552 KB Output is correct
87 Correct 11 ms 7552 KB Output is correct
88 Correct 13 ms 7552 KB Output is correct
89 Correct 10 ms 7552 KB Output is correct
90 Correct 11 ms 7500 KB Output is correct
91 Correct 10 ms 7552 KB Output is correct
92 Correct 11 ms 7552 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 7424 KB Output is correct
2 Correct 10 ms 7424 KB Output is correct
3 Correct 9 ms 7424 KB Output is correct
4 Correct 9 ms 7424 KB Output is correct
5 Correct 8 ms 7424 KB Output is correct
6 Correct 10 ms 7424 KB Output is correct
7 Correct 9 ms 7424 KB Output is correct
8 Correct 11 ms 7552 KB Output is correct
9 Correct 11 ms 7424 KB Output is correct
10 Correct 10 ms 7424 KB Output is correct
11 Correct 10 ms 7424 KB Output is correct
12 Correct 11 ms 7424 KB Output is correct
13 Correct 10 ms 7424 KB Output is correct
14 Correct 9 ms 7424 KB Output is correct
15 Correct 10 ms 7424 KB Output is correct
16 Correct 10 ms 7424 KB Output is correct
17 Correct 10 ms 7424 KB Output is correct
18 Correct 10 ms 7424 KB Output is correct
19 Correct 10 ms 7424 KB Output is correct
20 Correct 11 ms 7424 KB Output is correct
21 Correct 10 ms 7424 KB Output is correct
22 Correct 9 ms 7424 KB Output is correct
23 Correct 9 ms 7424 KB Output is correct
24 Correct 9 ms 7424 KB Output is correct
25 Correct 10 ms 7424 KB Output is correct
26 Correct 9 ms 7424 KB Output is correct
27 Correct 10 ms 7424 KB Output is correct
28 Correct 9 ms 7424 KB Output is correct
29 Correct 10 ms 7424 KB Output is correct
30 Correct 11 ms 7424 KB Output is correct
31 Correct 10 ms 7468 KB Output is correct
32 Correct 10 ms 7384 KB Output is correct
33 Correct 10 ms 7424 KB Output is correct
34 Correct 9 ms 7424 KB Output is correct
35 Correct 10 ms 7424 KB Output is correct
36 Correct 10 ms 7340 KB Output is correct
37 Correct 11 ms 7424 KB Output is correct
38 Correct 10 ms 7424 KB Output is correct
39 Correct 9 ms 7396 KB Output is correct
40 Correct 10 ms 7424 KB Output is correct
41 Correct 10 ms 7424 KB Output is correct
42 Correct 10 ms 7424 KB Output is correct
43 Correct 11 ms 7424 KB Output is correct
44 Correct 10 ms 7424 KB Output is correct
45 Correct 12 ms 7508 KB Output is correct
46 Correct 9 ms 7424 KB Output is correct
47 Correct 10 ms 7424 KB Output is correct
48 Correct 11 ms 7424 KB Output is correct
49 Correct 11 ms 7424 KB Output is correct
50 Correct 9 ms 7424 KB Output is correct
51 Correct 11 ms 7424 KB Output is correct
52 Correct 11 ms 7396 KB Output is correct
53 Correct 9 ms 7524 KB Output is correct
54 Correct 10 ms 7424 KB Output is correct
55 Correct 10 ms 7424 KB Output is correct
56 Correct 10 ms 7452 KB Output is correct
57 Correct 9 ms 7424 KB Output is correct
58 Correct 8 ms 7424 KB Output is correct
59 Correct 10 ms 7424 KB Output is correct
60 Correct 10 ms 7424 KB Output is correct
61 Correct 11 ms 7424 KB Output is correct
62 Correct 8 ms 7424 KB Output is correct
63 Correct 8 ms 7424 KB Output is correct
64 Correct 9 ms 7424 KB Output is correct
65 Correct 10 ms 7424 KB Output is correct
66 Correct 185 ms 29344 KB Output is correct
67 Correct 188 ms 29388 KB Output is correct
68 Correct 189 ms 24532 KB Output is correct
69 Correct 174 ms 27052 KB Output is correct
70 Correct 196 ms 23028 KB Output is correct
71 Correct 231 ms 24264 KB Output is correct
72 Correct 190 ms 21516 KB Output is correct
73 Correct 188 ms 22516 KB Output is correct
74 Correct 247 ms 20556 KB Output is correct
75 Correct 225 ms 21624 KB Output is correct
76 Correct 174 ms 19368 KB Output is correct
77 Correct 167 ms 19212 KB Output is correct
78 Correct 161 ms 18988 KB Output is correct
79 Correct 155 ms 18744 KB Output is correct
80 Correct 133 ms 17752 KB Output is correct
81 Correct 121 ms 17568 KB Output is correct
82 Correct 26 ms 11768 KB Output is correct
83 Correct 23 ms 11776 KB Output is correct
84 Correct 19 ms 11776 KB Output is correct
85 Correct 19 ms 11776 KB Output is correct
86 Correct 25 ms 11648 KB Output is correct
87 Correct 19 ms 11648 KB Output is correct
88 Correct 10 ms 7552 KB Output is correct
89 Correct 11 ms 7552 KB Output is correct
90 Correct 10 ms 7524 KB Output is correct
91 Correct 11 ms 7552 KB Output is correct
92 Correct 11 ms 7552 KB Output is correct
93 Correct 11 ms 7552 KB Output is correct
94 Correct 13 ms 7552 KB Output is correct
95 Correct 11 ms 7552 KB Output is correct
96 Correct 13 ms 7552 KB Output is correct
97 Correct 10 ms 7488 KB Output is correct
98 Correct 12 ms 7552 KB Output is correct
99 Correct 12 ms 7552 KB Output is correct
100 Correct 11 ms 7424 KB Output is correct
101 Correct 11 ms 7552 KB Output is correct
102 Correct 11 ms 7424 KB Output is correct
103 Correct 12 ms 7424 KB Output is correct
104 Correct 13 ms 7612 KB Output is correct
105 Correct 10 ms 7552 KB Output is correct
106 Correct 11 ms 7552 KB Output is correct
107 Correct 11 ms 7552 KB Output is correct
108 Correct 207 ms 19924 KB Output is correct
109 Correct 204 ms 19952 KB Output is correct
110 Correct 229 ms 19972 KB Output is correct
111 Correct 196 ms 20016 KB Output is correct
112 Correct 200 ms 20032 KB Output is correct
113 Correct 218 ms 27536 KB Output is correct
114 Correct 224 ms 23160 KB Output is correct
115 Correct 224 ms 22384 KB Output is correct
116 Correct 213 ms 21364 KB Output is correct
117 Correct 193 ms 19800 KB Output is correct
118 Correct 210 ms 19876 KB Output is correct
119 Correct 211 ms 19672 KB Output is correct
120 Correct 217 ms 19576 KB Output is correct
121 Correct 171 ms 19292 KB Output is correct
122 Correct 185 ms 18888 KB Output is correct
123 Correct 108 ms 17188 KB Output is correct
124 Correct 161 ms 20496 KB Output is correct
125 Correct 153 ms 20460 KB Output is correct
126 Correct 169 ms 20584 KB Output is correct
127 Correct 167 ms 20536 KB Output is correct
128 Correct 10 ms 7424 KB Output is correct
129 Correct 13 ms 7552 KB Output is correct
130 Correct 12 ms 7552 KB Output is correct
131 Correct 13 ms 7552 KB Output is correct
132 Correct 12 ms 7552 KB Output is correct
133 Correct 11 ms 7552 KB Output is correct
134 Correct 11 ms 7552 KB Output is correct
135 Correct 11 ms 7552 KB Output is correct
136 Correct 11 ms 7552 KB Output is correct
137 Correct 9 ms 7552 KB Output is correct
138 Correct 9 ms 7552 KB Output is correct
139 Correct 10 ms 7552 KB Output is correct
140 Correct 12 ms 7552 KB Output is correct
141 Correct 11 ms 7680 KB Output is correct
142 Correct 9 ms 7552 KB Output is correct
143 Correct 13 ms 7672 KB Output is correct
144 Correct 11 ms 7552 KB Output is correct
145 Correct 11 ms 7552 KB Output is correct
146 Correct 11 ms 7584 KB Output is correct
147 Correct 10 ms 7424 KB Output is correct
148 Correct 11 ms 7552 KB Output is correct
149 Correct 12 ms 7552 KB Output is correct
150 Correct 10 ms 7552 KB Output is correct
151 Correct 10 ms 7552 KB Output is correct
152 Correct 11 ms 7424 KB Output is correct
153 Correct 10 ms 7424 KB Output is correct
154 Correct 10 ms 7424 KB Output is correct
155 Correct 176 ms 19924 KB Output is correct
156 Correct 204 ms 19824 KB Output is correct
157 Correct 221 ms 20336 KB Output is correct
158 Correct 231 ms 20488 KB Output is correct
159 Correct 204 ms 20408 KB Output is correct
160 Correct 188 ms 20420 KB Output is correct
161 Correct 180 ms 20600 KB Output is correct
162 Correct 161 ms 20472 KB Output is correct
163 Correct 155 ms 20600 KB Output is correct
164 Correct 180 ms 20568 KB Output is correct
165 Correct 189 ms 20748 KB Output is correct
166 Correct 142 ms 20600 KB Output is correct
167 Correct 156 ms 20704 KB Output is correct
168 Correct 188 ms 22760 KB Output is correct
169 Correct 202 ms 24044 KB Output is correct
170 Correct 247 ms 22636 KB Output is correct
171 Correct 224 ms 23796 KB Output is correct
172 Correct 193 ms 22512 KB Output is correct
173 Correct 212 ms 20468 KB Output is correct
174 Correct 190 ms 20312 KB Output is correct
175 Correct 209 ms 20220 KB Output is correct
176 Correct 183 ms 19832 KB Output is correct
177 Correct 160 ms 19744 KB Output is correct
178 Correct 171 ms 20464 KB Output is correct
179 Correct 168 ms 20636 KB Output is correct
180 Correct 196 ms 20464 KB Output is correct
181 Correct 165 ms 20464 KB Output is correct
182 Correct 9 ms 7424 KB Output is correct
183 Correct 11 ms 7552 KB Output is correct
184 Correct 11 ms 7552 KB Output is correct
185 Correct 12 ms 7552 KB Output is correct
186 Correct 12 ms 7676 KB Output is correct
187 Correct 10 ms 7424 KB Output is correct
188 Correct 12 ms 7552 KB Output is correct
189 Correct 10 ms 7424 KB Output is correct
190 Correct 11 ms 7424 KB Output is correct
191 Correct 11 ms 7552 KB Output is correct
192 Correct 10 ms 7424 KB Output is correct
193 Correct 10 ms 7552 KB Output is correct
194 Correct 11 ms 7552 KB Output is correct
195 Correct 12 ms 7552 KB Output is correct
196 Correct 12 ms 7552 KB Output is correct
197 Correct 12 ms 7552 KB Output is correct
198 Correct 13 ms 7552 KB Output is correct
199 Correct 10 ms 7552 KB Output is correct
200 Correct 11 ms 7552 KB Output is correct
201 Correct 12 ms 7552 KB Output is correct
202 Correct 11 ms 7552 KB Output is correct
203 Correct 11 ms 7552 KB Output is correct
204 Correct 13 ms 7552 KB Output is correct
205 Correct 10 ms 7552 KB Output is correct
206 Correct 11 ms 7500 KB Output is correct
207 Correct 10 ms 7552 KB Output is correct
208 Correct 11 ms 7552 KB Output is correct
209 Correct 18 ms 11264 KB Output is correct
210 Correct 115 ms 16368 KB Output is correct
211 Correct 210 ms 21796 KB Output is correct
212 Correct 250 ms 25324 KB Output is correct
213 Correct 275 ms 27800 KB Output is correct
214 Correct 83 ms 19908 KB Output is correct
215 Correct 94 ms 19984 KB Output is correct
216 Correct 237 ms 21148 KB Output is correct
217 Correct 227 ms 20976 KB Output is correct
218 Correct 206 ms 20604 KB Output is correct
219 Correct 180 ms 20564 KB Output is correct
220 Correct 197 ms 20604 KB Output is correct
221 Correct 198 ms 20660 KB Output is correct
222 Correct 185 ms 21532 KB Output is correct
223 Correct 250 ms 23256 KB Output is correct
224 Correct 242 ms 22640 KB Output is correct
225 Correct 223 ms 20956 KB Output is correct
226 Correct 241 ms 21056 KB Output is correct
227 Correct 241 ms 20988 KB Output is correct
228 Correct 231 ms 20472 KB Output is correct
229 Correct 197 ms 20088 KB Output is correct
230 Correct 201 ms 21108 KB Output is correct
231 Correct 208 ms 21080 KB Output is correct