Submission #99855

# Submission time Handle Problem Language Result Execution time Memory
99855 2019-03-07T20:58:00 Z TadijaSebez Duathlon (APIO18_duathlon) C++11
100 / 100
277 ms 37368 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
const int N=200050;
vector<int> G[N],E[N];
void AddEdge(int u, int v){ E[u].pb(v);E[v].pb(u);}
int cnt,disc[N],low[N],tid,n,csz[N];
bool in[N];
stack<int> s;
void Tarjan(int u)
{
	disc[u]=low[u]=++tid;
	in[u]=1;s.push(u);
	for(int v:G[u])
	{
		if(!disc[v])
		{
			Tarjan(v);
			low[u]=min(low[u],low[v]);
			if(low[v]>=disc[u])
			{
				++cnt;
				AddEdge(u,cnt);
				csz[cnt]++;
				int h;
				do
				{
					h=s.top();
					s.pop();
					in[h]=0;
					AddEdge(h,cnt);
					csz[cnt]++;
				}while(h!=v);
			}
		}
		else if(in[v]) low[u]=min(low[u],disc[v]);
	}
}
ll ans;
int sz[N],dep[N],up[N];
void DFSSZ(int u, int p)
{
	sz[u]=u<=n;
	dep[u]=dep[p]+(u<=n);
	up[u]=n;
	for(int v:E[u]) if(v!=p) DFSSZ(v,u),sz[u]+=sz[v],up[u]-=sz[v];
}
int rt[N],par[N];
ll all[N],up_all[N],down_all[N];
void Solve(int u, int p, int root)
{
	par[u]=p;
	all[u]=(ll)(sz[root]-(u<=n))*(sz[root]-(u<=n)-1);
	all[u]-=(ll)(sz[root]-sz[u])*(sz[root]-sz[u]-1);
	for(int v:E[u]) if(v!=p) all[u]-=(ll)sz[v]*(sz[v]-1);
	down_all[u]=(ll)(sz[u]-(u<=n))*(sz[u]-(u<=n)-1);
	for(int v:E[u]) if(v!=p) down_all[u]-=(ll)sz[v]*(sz[v]-1);
	if(p)
	{
		/*ll sum=0;
		for(int v:E[p]) if(v!=par[p] && v!=u) sum+=sz[v];
		sum+=sz[root]-sz[p];
		up_all[u]=(ll)sum*(sum-1);
		for(int v:E[p]) if(v!=par[p] && v!=u) up_all[u]-=(ll)sz[v]*(sz[v]-1);
		up_all[u]-=(ll)(sz[root]-sz[p])*(sz[root]-sz[p]-1);*/
		up_all[u]=all[p]-(ll)sz[u]*(sz[root]-(p<=n)-sz[u])*2;
	}
	for(int v:E[u]) if(v!=p) Solve(v,u,root);
	if(u<=n)
	{
		ans+=all[u];
		for(int v:E[u]) if(v!=p) ans+=down_all[v];
		if(p) ans+=up_all[u];
	}
	//printf("u:%i ans:%lld all:%lld up_all:%lld down_all:%lld\n",u,ans,all[u],up_all[u],down_all[u]);
	/*ll all=(ll)sz[u]*(sz[u]-1);
	int ch=0;
	for(int v:E[u]) if(v!=p) all-=(ll)sz[v]*(sz[v]-1),ch+=csz[v]-1;
	if(u<=n) ans+=(ll)(sz[root]-1)*dep[p]*2;
	ans-=all*(dep[u]+dep[p]);
	//else ans-=all*(dep[u]+dep[p]);
	//printf("all:%lld\n",all);
	/*if(u<=n)
	{
		if(p) ans-=(ll)sz[u]*(csz[p]-1)*2*2;
		ans-=(ll)up[u]*ch*2*2;
		//printf("u:%i ans:%lld sz:%i up:%i dep:%i ch:%i csz[p]:%i\n",u,ans,sz[u],up[u],dep[u],ch,csz[p]);
	}*//*
	if(u>n)
	{
		//ans-=(ll)sz[root]*(csz[u]-1)*4;
		ans+=(ll)(sz[root]-csz[u])*(csz[u]-1)*(csz[u]-2)*2;
		ans+=(ll)csz[u]*(csz[u]-1)*(csz[u]-2);
		for(int v:E[u]) if(v!=p)
		{
			//ans-=(ll)(sz[u]-sz[v]);
			ans+=(ll)(sz[root]-sz[v]-csz[u]+1)*(sz[v]-1)*(csz[u]-2);
		}
		ans+=(ll)(sz[root]-up[p]-csz[u]+1)*(up[p]-1)*(csz[u]-2);
	}
	rt[u]=root;
	//else printf("u:%i ans:%i\n",u,ans);*/
}
int main()
{
	int m,u,v;
	scanf("%i %i",&n,&m);
	cnt=n;
	for(int i=1;i<=m;i++) scanf("%i %i",&u,&v),G[u].pb(v),G[v].pb(u);
	vector<int> root;
	for(int i=1;i<=n;i++) if(!disc[i]) Tarjan(i),root.pb(i);
	for(int i:root) DFSSZ(i,0),Solve(i,0,i);
	//for(int i=n+1;i<=cnt;i++) ans+=(ll)csz[i]*(csz[i]-1)*sz[rt[i]]*2-(ll)csz[i]*(csz[i]-1)*(csz[i]-2);
	printf("%lld\n",ans);
	return 0;
}

Compilation message

count_triplets.cpp:84:2: warning: "/*" within comment [-Wcomment]
  /*if(u<=n)
   
count_triplets.cpp: In function 'int main()':
count_triplets.cpp:108:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%i %i",&n,&m);
  ~~~~~^~~~~~~~~~~~~~~
count_triplets.cpp:110:55: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(int i=1;i<=m;i++) scanf("%i %i",&u,&v),G[u].pb(v),G[v].pb(u);
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 10 ms 9856 KB Output is correct
2 Correct 13 ms 9856 KB Output is correct
3 Correct 10 ms 9856 KB Output is correct
4 Correct 10 ms 9856 KB Output is correct
5 Correct 10 ms 9728 KB Output is correct
6 Correct 10 ms 9728 KB Output is correct
7 Correct 11 ms 9728 KB Output is correct
8 Correct 11 ms 9856 KB Output is correct
9 Correct 10 ms 9856 KB Output is correct
10 Correct 10 ms 9728 KB Output is correct
11 Correct 10 ms 9728 KB Output is correct
12 Correct 10 ms 9728 KB Output is correct
13 Correct 10 ms 9728 KB Output is correct
14 Correct 10 ms 9856 KB Output is correct
15 Correct 10 ms 9856 KB Output is correct
16 Correct 12 ms 9856 KB Output is correct
17 Correct 11 ms 9856 KB Output is correct
18 Correct 12 ms 9856 KB Output is correct
19 Correct 11 ms 9728 KB Output is correct
20 Correct 11 ms 9856 KB Output is correct
21 Correct 10 ms 9728 KB Output is correct
22 Correct 11 ms 9728 KB Output is correct
23 Correct 12 ms 9856 KB Output is correct
24 Correct 10 ms 9856 KB Output is correct
25 Correct 10 ms 9728 KB Output is correct
26 Correct 10 ms 9808 KB Output is correct
27 Correct 12 ms 9728 KB Output is correct
28 Correct 10 ms 9728 KB Output is correct
29 Correct 10 ms 9728 KB Output is correct
30 Correct 11 ms 9856 KB Output is correct
31 Correct 12 ms 9772 KB Output is correct
32 Correct 10 ms 9856 KB Output is correct
33 Correct 10 ms 9728 KB Output is correct
34 Correct 12 ms 9856 KB Output is correct
35 Correct 12 ms 9728 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 9856 KB Output is correct
2 Correct 13 ms 9856 KB Output is correct
3 Correct 10 ms 9856 KB Output is correct
4 Correct 10 ms 9856 KB Output is correct
5 Correct 10 ms 9728 KB Output is correct
6 Correct 10 ms 9728 KB Output is correct
7 Correct 11 ms 9728 KB Output is correct
8 Correct 11 ms 9856 KB Output is correct
9 Correct 10 ms 9856 KB Output is correct
10 Correct 10 ms 9728 KB Output is correct
11 Correct 10 ms 9728 KB Output is correct
12 Correct 10 ms 9728 KB Output is correct
13 Correct 10 ms 9728 KB Output is correct
14 Correct 10 ms 9856 KB Output is correct
15 Correct 10 ms 9856 KB Output is correct
16 Correct 12 ms 9856 KB Output is correct
17 Correct 11 ms 9856 KB Output is correct
18 Correct 12 ms 9856 KB Output is correct
19 Correct 11 ms 9728 KB Output is correct
20 Correct 11 ms 9856 KB Output is correct
21 Correct 10 ms 9728 KB Output is correct
22 Correct 11 ms 9728 KB Output is correct
23 Correct 12 ms 9856 KB Output is correct
24 Correct 10 ms 9856 KB Output is correct
25 Correct 10 ms 9728 KB Output is correct
26 Correct 10 ms 9808 KB Output is correct
27 Correct 12 ms 9728 KB Output is correct
28 Correct 10 ms 9728 KB Output is correct
29 Correct 10 ms 9728 KB Output is correct
30 Correct 11 ms 9856 KB Output is correct
31 Correct 12 ms 9772 KB Output is correct
32 Correct 10 ms 9856 KB Output is correct
33 Correct 10 ms 9728 KB Output is correct
34 Correct 12 ms 9856 KB Output is correct
35 Correct 12 ms 9728 KB Output is correct
36 Correct 12 ms 9728 KB Output is correct
37 Correct 10 ms 9856 KB Output is correct
38 Correct 11 ms 9856 KB Output is correct
39 Correct 10 ms 9856 KB Output is correct
40 Correct 12 ms 9728 KB Output is correct
41 Correct 11 ms 9856 KB Output is correct
42 Correct 12 ms 9856 KB Output is correct
43 Correct 11 ms 9856 KB Output is correct
44 Correct 11 ms 9856 KB Output is correct
45 Correct 12 ms 9856 KB Output is correct
46 Correct 11 ms 9728 KB Output is correct
47 Correct 10 ms 9856 KB Output is correct
48 Correct 10 ms 9728 KB Output is correct
49 Correct 12 ms 9728 KB Output is correct
50 Correct 10 ms 9728 KB Output is correct
51 Correct 10 ms 9856 KB Output is correct
52 Correct 12 ms 9828 KB Output is correct
53 Correct 10 ms 9728 KB Output is correct
54 Correct 12 ms 9728 KB Output is correct
55 Correct 10 ms 9856 KB Output is correct
56 Correct 10 ms 9856 KB Output is correct
57 Correct 12 ms 9856 KB Output is correct
58 Correct 12 ms 9828 KB Output is correct
59 Correct 12 ms 9856 KB Output is correct
60 Correct 10 ms 9828 KB Output is correct
61 Correct 10 ms 9856 KB Output is correct
62 Correct 10 ms 9728 KB Output is correct
63 Correct 10 ms 9856 KB Output is correct
64 Correct 11 ms 9856 KB Output is correct
65 Correct 10 ms 9856 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 179 ms 32736 KB Output is correct
2 Correct 137 ms 33264 KB Output is correct
3 Correct 191 ms 32272 KB Output is correct
4 Correct 170 ms 31856 KB Output is correct
5 Correct 167 ms 28404 KB Output is correct
6 Correct 187 ms 31124 KB Output is correct
7 Correct 180 ms 29148 KB Output is correct
8 Correct 196 ms 29752 KB Output is correct
9 Correct 178 ms 27640 KB Output is correct
10 Correct 181 ms 27556 KB Output is correct
11 Correct 137 ms 25208 KB Output is correct
12 Correct 141 ms 24952 KB Output is correct
13 Correct 138 ms 25076 KB Output is correct
14 Correct 146 ms 24620 KB Output is correct
15 Correct 113 ms 23636 KB Output is correct
16 Correct 117 ms 23412 KB Output is correct
17 Correct 17 ms 15016 KB Output is correct
18 Correct 17 ms 15096 KB Output is correct
19 Correct 18 ms 15008 KB Output is correct
20 Correct 17 ms 15068 KB Output is correct
21 Correct 16 ms 14968 KB Output is correct
22 Correct 16 ms 14840 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 9984 KB Output is correct
2 Correct 11 ms 9984 KB Output is correct
3 Correct 12 ms 9984 KB Output is correct
4 Correct 11 ms 10112 KB Output is correct
5 Correct 11 ms 10112 KB Output is correct
6 Correct 14 ms 10112 KB Output is correct
7 Correct 11 ms 10112 KB Output is correct
8 Correct 11 ms 9984 KB Output is correct
9 Correct 11 ms 9984 KB Output is correct
10 Correct 11 ms 9984 KB Output is correct
11 Correct 11 ms 9984 KB Output is correct
12 Correct 12 ms 9984 KB Output is correct
13 Correct 11 ms 9984 KB Output is correct
14 Correct 11 ms 9984 KB Output is correct
15 Correct 12 ms 9984 KB Output is correct
16 Correct 11 ms 9984 KB Output is correct
17 Correct 11 ms 9984 KB Output is correct
18 Correct 11 ms 9984 KB Output is correct
19 Correct 11 ms 9984 KB Output is correct
20 Correct 12 ms 10084 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 226 ms 29036 KB Output is correct
2 Correct 211 ms 28972 KB Output is correct
3 Correct 217 ms 29088 KB Output is correct
4 Correct 205 ms 29048 KB Output is correct
5 Correct 277 ms 28980 KB Output is correct
6 Correct 263 ms 37368 KB Output is correct
7 Correct 230 ms 34684 KB Output is correct
8 Correct 226 ms 33032 KB Output is correct
9 Correct 219 ms 31608 KB Output is correct
10 Correct 227 ms 29048 KB Output is correct
11 Correct 212 ms 28968 KB Output is correct
12 Correct 194 ms 28920 KB Output is correct
13 Correct 180 ms 28840 KB Output is correct
14 Correct 175 ms 27988 KB Output is correct
15 Correct 167 ms 27128 KB Output is correct
16 Correct 113 ms 23784 KB Output is correct
17 Correct 177 ms 29424 KB Output is correct
18 Correct 165 ms 29664 KB Output is correct
19 Correct 163 ms 29744 KB Output is correct
20 Correct 168 ms 29628 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 12 ms 10112 KB Output is correct
2 Correct 11 ms 9984 KB Output is correct
3 Correct 11 ms 9984 KB Output is correct
4 Correct 14 ms 9984 KB Output is correct
5 Correct 11 ms 9856 KB Output is correct
6 Correct 14 ms 9984 KB Output is correct
7 Correct 11 ms 9984 KB Output is correct
8 Correct 11 ms 9856 KB Output is correct
9 Correct 11 ms 9984 KB Output is correct
10 Correct 12 ms 9984 KB Output is correct
11 Correct 12 ms 9984 KB Output is correct
12 Correct 12 ms 9984 KB Output is correct
13 Correct 13 ms 9984 KB Output is correct
14 Correct 12 ms 9984 KB Output is correct
15 Correct 12 ms 9984 KB Output is correct
16 Correct 11 ms 9984 KB Output is correct
17 Correct 12 ms 9984 KB Output is correct
18 Correct 13 ms 9984 KB Output is correct
19 Correct 11 ms 9984 KB Output is correct
20 Correct 12 ms 9856 KB Output is correct
21 Correct 12 ms 9984 KB Output is correct
22 Correct 11 ms 9984 KB Output is correct
23 Correct 13 ms 9956 KB Output is correct
24 Correct 11 ms 9984 KB Output is correct
25 Correct 11 ms 9856 KB Output is correct
26 Correct 11 ms 9856 KB Output is correct
27 Correct 12 ms 9856 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 208 ms 28536 KB Output is correct
2 Correct 210 ms 28508 KB Output is correct
3 Correct 210 ms 27256 KB Output is correct
4 Correct 164 ms 25592 KB Output is correct
5 Correct 174 ms 23928 KB Output is correct
6 Correct 183 ms 23104 KB Output is correct
7 Correct 242 ms 22804 KB Output is correct
8 Correct 157 ms 22264 KB Output is correct
9 Correct 153 ms 22172 KB Output is correct
10 Correct 154 ms 22008 KB Output is correct
11 Correct 155 ms 21972 KB Output is correct
12 Correct 160 ms 21980 KB Output is correct
13 Correct 138 ms 21980 KB Output is correct
14 Correct 148 ms 24312 KB Output is correct
15 Correct 227 ms 33644 KB Output is correct
16 Correct 222 ms 31708 KB Output is correct
17 Correct 276 ms 31736 KB Output is correct
18 Correct 212 ms 30200 KB Output is correct
19 Correct 198 ms 26104 KB Output is correct
20 Correct 198 ms 27000 KB Output is correct
21 Correct 187 ms 26876 KB Output is correct
22 Correct 188 ms 26104 KB Output is correct
23 Correct 180 ms 25336 KB Output is correct
24 Correct 199 ms 28920 KB Output is correct
25 Correct 208 ms 29048 KB Output is correct
26 Correct 221 ms 27904 KB Output is correct
27 Correct 189 ms 27896 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 9856 KB Output is correct
2 Correct 13 ms 9856 KB Output is correct
3 Correct 10 ms 9856 KB Output is correct
4 Correct 10 ms 9856 KB Output is correct
5 Correct 10 ms 9728 KB Output is correct
6 Correct 10 ms 9728 KB Output is correct
7 Correct 11 ms 9728 KB Output is correct
8 Correct 11 ms 9856 KB Output is correct
9 Correct 10 ms 9856 KB Output is correct
10 Correct 10 ms 9728 KB Output is correct
11 Correct 10 ms 9728 KB Output is correct
12 Correct 10 ms 9728 KB Output is correct
13 Correct 10 ms 9728 KB Output is correct
14 Correct 10 ms 9856 KB Output is correct
15 Correct 10 ms 9856 KB Output is correct
16 Correct 12 ms 9856 KB Output is correct
17 Correct 11 ms 9856 KB Output is correct
18 Correct 12 ms 9856 KB Output is correct
19 Correct 11 ms 9728 KB Output is correct
20 Correct 11 ms 9856 KB Output is correct
21 Correct 10 ms 9728 KB Output is correct
22 Correct 11 ms 9728 KB Output is correct
23 Correct 12 ms 9856 KB Output is correct
24 Correct 10 ms 9856 KB Output is correct
25 Correct 10 ms 9728 KB Output is correct
26 Correct 10 ms 9808 KB Output is correct
27 Correct 12 ms 9728 KB Output is correct
28 Correct 10 ms 9728 KB Output is correct
29 Correct 10 ms 9728 KB Output is correct
30 Correct 11 ms 9856 KB Output is correct
31 Correct 12 ms 9772 KB Output is correct
32 Correct 10 ms 9856 KB Output is correct
33 Correct 10 ms 9728 KB Output is correct
34 Correct 12 ms 9856 KB Output is correct
35 Correct 12 ms 9728 KB Output is correct
36 Correct 12 ms 9728 KB Output is correct
37 Correct 10 ms 9856 KB Output is correct
38 Correct 11 ms 9856 KB Output is correct
39 Correct 10 ms 9856 KB Output is correct
40 Correct 12 ms 9728 KB Output is correct
41 Correct 11 ms 9856 KB Output is correct
42 Correct 12 ms 9856 KB Output is correct
43 Correct 11 ms 9856 KB Output is correct
44 Correct 11 ms 9856 KB Output is correct
45 Correct 12 ms 9856 KB Output is correct
46 Correct 11 ms 9728 KB Output is correct
47 Correct 10 ms 9856 KB Output is correct
48 Correct 10 ms 9728 KB Output is correct
49 Correct 12 ms 9728 KB Output is correct
50 Correct 10 ms 9728 KB Output is correct
51 Correct 10 ms 9856 KB Output is correct
52 Correct 12 ms 9828 KB Output is correct
53 Correct 10 ms 9728 KB Output is correct
54 Correct 12 ms 9728 KB Output is correct
55 Correct 10 ms 9856 KB Output is correct
56 Correct 10 ms 9856 KB Output is correct
57 Correct 12 ms 9856 KB Output is correct
58 Correct 12 ms 9828 KB Output is correct
59 Correct 12 ms 9856 KB Output is correct
60 Correct 10 ms 9828 KB Output is correct
61 Correct 10 ms 9856 KB Output is correct
62 Correct 10 ms 9728 KB Output is correct
63 Correct 10 ms 9856 KB Output is correct
64 Correct 11 ms 9856 KB Output is correct
65 Correct 10 ms 9856 KB Output is correct
66 Correct 10 ms 9856 KB Output is correct
67 Correct 11 ms 9868 KB Output is correct
68 Correct 12 ms 9984 KB Output is correct
69 Correct 12 ms 9984 KB Output is correct
70 Correct 12 ms 9984 KB Output is correct
71 Correct 11 ms 9984 KB Output is correct
72 Correct 11 ms 9984 KB Output is correct
73 Correct 11 ms 9984 KB Output is correct
74 Correct 15 ms 9984 KB Output is correct
75 Correct 12 ms 9984 KB Output is correct
76 Correct 10 ms 9856 KB Output is correct
77 Correct 12 ms 9984 KB Output is correct
78 Correct 14 ms 9984 KB Output is correct
79 Correct 11 ms 9856 KB Output is correct
80 Correct 13 ms 9984 KB Output is correct
81 Correct 12 ms 9984 KB Output is correct
82 Correct 13 ms 9984 KB Output is correct
83 Correct 11 ms 9984 KB Output is correct
84 Correct 12 ms 9984 KB Output is correct
85 Correct 12 ms 9984 KB Output is correct
86 Correct 11 ms 9900 KB Output is correct
87 Correct 11 ms 9856 KB Output is correct
88 Correct 11 ms 9956 KB Output is correct
89 Correct 11 ms 9856 KB Output is correct
90 Correct 11 ms 9856 KB Output is correct
91 Correct 13 ms 9984 KB Output is correct
92 Correct 11 ms 9984 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 10 ms 9856 KB Output is correct
2 Correct 13 ms 9856 KB Output is correct
3 Correct 10 ms 9856 KB Output is correct
4 Correct 10 ms 9856 KB Output is correct
5 Correct 10 ms 9728 KB Output is correct
6 Correct 10 ms 9728 KB Output is correct
7 Correct 11 ms 9728 KB Output is correct
8 Correct 11 ms 9856 KB Output is correct
9 Correct 10 ms 9856 KB Output is correct
10 Correct 10 ms 9728 KB Output is correct
11 Correct 10 ms 9728 KB Output is correct
12 Correct 10 ms 9728 KB Output is correct
13 Correct 10 ms 9728 KB Output is correct
14 Correct 10 ms 9856 KB Output is correct
15 Correct 10 ms 9856 KB Output is correct
16 Correct 12 ms 9856 KB Output is correct
17 Correct 11 ms 9856 KB Output is correct
18 Correct 12 ms 9856 KB Output is correct
19 Correct 11 ms 9728 KB Output is correct
20 Correct 11 ms 9856 KB Output is correct
21 Correct 10 ms 9728 KB Output is correct
22 Correct 11 ms 9728 KB Output is correct
23 Correct 12 ms 9856 KB Output is correct
24 Correct 10 ms 9856 KB Output is correct
25 Correct 10 ms 9728 KB Output is correct
26 Correct 10 ms 9808 KB Output is correct
27 Correct 12 ms 9728 KB Output is correct
28 Correct 10 ms 9728 KB Output is correct
29 Correct 10 ms 9728 KB Output is correct
30 Correct 11 ms 9856 KB Output is correct
31 Correct 12 ms 9772 KB Output is correct
32 Correct 10 ms 9856 KB Output is correct
33 Correct 10 ms 9728 KB Output is correct
34 Correct 12 ms 9856 KB Output is correct
35 Correct 12 ms 9728 KB Output is correct
36 Correct 12 ms 9728 KB Output is correct
37 Correct 10 ms 9856 KB Output is correct
38 Correct 11 ms 9856 KB Output is correct
39 Correct 10 ms 9856 KB Output is correct
40 Correct 12 ms 9728 KB Output is correct
41 Correct 11 ms 9856 KB Output is correct
42 Correct 12 ms 9856 KB Output is correct
43 Correct 11 ms 9856 KB Output is correct
44 Correct 11 ms 9856 KB Output is correct
45 Correct 12 ms 9856 KB Output is correct
46 Correct 11 ms 9728 KB Output is correct
47 Correct 10 ms 9856 KB Output is correct
48 Correct 10 ms 9728 KB Output is correct
49 Correct 12 ms 9728 KB Output is correct
50 Correct 10 ms 9728 KB Output is correct
51 Correct 10 ms 9856 KB Output is correct
52 Correct 12 ms 9828 KB Output is correct
53 Correct 10 ms 9728 KB Output is correct
54 Correct 12 ms 9728 KB Output is correct
55 Correct 10 ms 9856 KB Output is correct
56 Correct 10 ms 9856 KB Output is correct
57 Correct 12 ms 9856 KB Output is correct
58 Correct 12 ms 9828 KB Output is correct
59 Correct 12 ms 9856 KB Output is correct
60 Correct 10 ms 9828 KB Output is correct
61 Correct 10 ms 9856 KB Output is correct
62 Correct 10 ms 9728 KB Output is correct
63 Correct 10 ms 9856 KB Output is correct
64 Correct 11 ms 9856 KB Output is correct
65 Correct 10 ms 9856 KB Output is correct
66 Correct 179 ms 32736 KB Output is correct
67 Correct 137 ms 33264 KB Output is correct
68 Correct 191 ms 32272 KB Output is correct
69 Correct 170 ms 31856 KB Output is correct
70 Correct 167 ms 28404 KB Output is correct
71 Correct 187 ms 31124 KB Output is correct
72 Correct 180 ms 29148 KB Output is correct
73 Correct 196 ms 29752 KB Output is correct
74 Correct 178 ms 27640 KB Output is correct
75 Correct 181 ms 27556 KB Output is correct
76 Correct 137 ms 25208 KB Output is correct
77 Correct 141 ms 24952 KB Output is correct
78 Correct 138 ms 25076 KB Output is correct
79 Correct 146 ms 24620 KB Output is correct
80 Correct 113 ms 23636 KB Output is correct
81 Correct 117 ms 23412 KB Output is correct
82 Correct 17 ms 15016 KB Output is correct
83 Correct 17 ms 15096 KB Output is correct
84 Correct 18 ms 15008 KB Output is correct
85 Correct 17 ms 15068 KB Output is correct
86 Correct 16 ms 14968 KB Output is correct
87 Correct 16 ms 14840 KB Output is correct
88 Correct 10 ms 9984 KB Output is correct
89 Correct 11 ms 9984 KB Output is correct
90 Correct 12 ms 9984 KB Output is correct
91 Correct 11 ms 10112 KB Output is correct
92 Correct 11 ms 10112 KB Output is correct
93 Correct 14 ms 10112 KB Output is correct
94 Correct 11 ms 10112 KB Output is correct
95 Correct 11 ms 9984 KB Output is correct
96 Correct 11 ms 9984 KB Output is correct
97 Correct 11 ms 9984 KB Output is correct
98 Correct 11 ms 9984 KB Output is correct
99 Correct 12 ms 9984 KB Output is correct
100 Correct 11 ms 9984 KB Output is correct
101 Correct 11 ms 9984 KB Output is correct
102 Correct 12 ms 9984 KB Output is correct
103 Correct 11 ms 9984 KB Output is correct
104 Correct 11 ms 9984 KB Output is correct
105 Correct 11 ms 9984 KB Output is correct
106 Correct 11 ms 9984 KB Output is correct
107 Correct 12 ms 10084 KB Output is correct
108 Correct 226 ms 29036 KB Output is correct
109 Correct 211 ms 28972 KB Output is correct
110 Correct 217 ms 29088 KB Output is correct
111 Correct 205 ms 29048 KB Output is correct
112 Correct 277 ms 28980 KB Output is correct
113 Correct 263 ms 37368 KB Output is correct
114 Correct 230 ms 34684 KB Output is correct
115 Correct 226 ms 33032 KB Output is correct
116 Correct 219 ms 31608 KB Output is correct
117 Correct 227 ms 29048 KB Output is correct
118 Correct 212 ms 28968 KB Output is correct
119 Correct 194 ms 28920 KB Output is correct
120 Correct 180 ms 28840 KB Output is correct
121 Correct 175 ms 27988 KB Output is correct
122 Correct 167 ms 27128 KB Output is correct
123 Correct 113 ms 23784 KB Output is correct
124 Correct 177 ms 29424 KB Output is correct
125 Correct 165 ms 29664 KB Output is correct
126 Correct 163 ms 29744 KB Output is correct
127 Correct 168 ms 29628 KB Output is correct
128 Correct 12 ms 10112 KB Output is correct
129 Correct 11 ms 9984 KB Output is correct
130 Correct 11 ms 9984 KB Output is correct
131 Correct 14 ms 9984 KB Output is correct
132 Correct 11 ms 9856 KB Output is correct
133 Correct 14 ms 9984 KB Output is correct
134 Correct 11 ms 9984 KB Output is correct
135 Correct 11 ms 9856 KB Output is correct
136 Correct 11 ms 9984 KB Output is correct
137 Correct 12 ms 9984 KB Output is correct
138 Correct 12 ms 9984 KB Output is correct
139 Correct 12 ms 9984 KB Output is correct
140 Correct 13 ms 9984 KB Output is correct
141 Correct 12 ms 9984 KB Output is correct
142 Correct 12 ms 9984 KB Output is correct
143 Correct 11 ms 9984 KB Output is correct
144 Correct 12 ms 9984 KB Output is correct
145 Correct 13 ms 9984 KB Output is correct
146 Correct 11 ms 9984 KB Output is correct
147 Correct 12 ms 9856 KB Output is correct
148 Correct 12 ms 9984 KB Output is correct
149 Correct 11 ms 9984 KB Output is correct
150 Correct 13 ms 9956 KB Output is correct
151 Correct 11 ms 9984 KB Output is correct
152 Correct 11 ms 9856 KB Output is correct
153 Correct 11 ms 9856 KB Output is correct
154 Correct 12 ms 9856 KB Output is correct
155 Correct 208 ms 28536 KB Output is correct
156 Correct 210 ms 28508 KB Output is correct
157 Correct 210 ms 27256 KB Output is correct
158 Correct 164 ms 25592 KB Output is correct
159 Correct 174 ms 23928 KB Output is correct
160 Correct 183 ms 23104 KB Output is correct
161 Correct 242 ms 22804 KB Output is correct
162 Correct 157 ms 22264 KB Output is correct
163 Correct 153 ms 22172 KB Output is correct
164 Correct 154 ms 22008 KB Output is correct
165 Correct 155 ms 21972 KB Output is correct
166 Correct 160 ms 21980 KB Output is correct
167 Correct 138 ms 21980 KB Output is correct
168 Correct 148 ms 24312 KB Output is correct
169 Correct 227 ms 33644 KB Output is correct
170 Correct 222 ms 31708 KB Output is correct
171 Correct 276 ms 31736 KB Output is correct
172 Correct 212 ms 30200 KB Output is correct
173 Correct 198 ms 26104 KB Output is correct
174 Correct 198 ms 27000 KB Output is correct
175 Correct 187 ms 26876 KB Output is correct
176 Correct 188 ms 26104 KB Output is correct
177 Correct 180 ms 25336 KB Output is correct
178 Correct 199 ms 28920 KB Output is correct
179 Correct 208 ms 29048 KB Output is correct
180 Correct 221 ms 27904 KB Output is correct
181 Correct 189 ms 27896 KB Output is correct
182 Correct 10 ms 9856 KB Output is correct
183 Correct 11 ms 9868 KB Output is correct
184 Correct 12 ms 9984 KB Output is correct
185 Correct 12 ms 9984 KB Output is correct
186 Correct 12 ms 9984 KB Output is correct
187 Correct 11 ms 9984 KB Output is correct
188 Correct 11 ms 9984 KB Output is correct
189 Correct 11 ms 9984 KB Output is correct
190 Correct 15 ms 9984 KB Output is correct
191 Correct 12 ms 9984 KB Output is correct
192 Correct 10 ms 9856 KB Output is correct
193 Correct 12 ms 9984 KB Output is correct
194 Correct 14 ms 9984 KB Output is correct
195 Correct 11 ms 9856 KB Output is correct
196 Correct 13 ms 9984 KB Output is correct
197 Correct 12 ms 9984 KB Output is correct
198 Correct 13 ms 9984 KB Output is correct
199 Correct 11 ms 9984 KB Output is correct
200 Correct 12 ms 9984 KB Output is correct
201 Correct 12 ms 9984 KB Output is correct
202 Correct 11 ms 9900 KB Output is correct
203 Correct 11 ms 9856 KB Output is correct
204 Correct 11 ms 9956 KB Output is correct
205 Correct 11 ms 9856 KB Output is correct
206 Correct 11 ms 9856 KB Output is correct
207 Correct 13 ms 9984 KB Output is correct
208 Correct 11 ms 9984 KB Output is correct
209 Correct 17 ms 14584 KB Output is correct
210 Correct 102 ms 23284 KB Output is correct
211 Correct 163 ms 27228 KB Output is correct
212 Correct 183 ms 29552 KB Output is correct
213 Correct 219 ms 31472 KB Output is correct
214 Correct 79 ms 25400 KB Output is correct
215 Correct 74 ms 24628 KB Output is correct
216 Correct 235 ms 28024 KB Output is correct
217 Correct 242 ms 25984 KB Output is correct
218 Correct 165 ms 23672 KB Output is correct
219 Correct 179 ms 23164 KB Output is correct
220 Correct 158 ms 23032 KB Output is correct
221 Correct 143 ms 23032 KB Output is correct
222 Correct 182 ms 24196 KB Output is correct
223 Correct 193 ms 28664 KB Output is correct
224 Correct 195 ms 27752 KB Output is correct
225 Correct 180 ms 25420 KB Output is correct
226 Correct 201 ms 25336 KB Output is correct
227 Correct 220 ms 25404 KB Output is correct
228 Correct 147 ms 24796 KB Output is correct
229 Correct 143 ms 24408 KB Output is correct
230 Correct 175 ms 26076 KB Output is correct
231 Correct 171 ms 26164 KB Output is correct