Submission #368974

# Submission time Handle Problem Language Result Execution time Memory
368974 2021-02-20T08:24:35 Z YJU Duathlon (APIO18_duathlon) C++14
100 / 100
239 ms 70508 KB
#include<bits/stdc++.h>
#pragma GCC optimize("unroll-loops,no-stack-protector,Ofast")
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> pll;
const ll MOD=1e9+7;
const ll MOD2=998244353;
const ll N=1e6+5;
const ld pi=acos(-1);
const ll INF=(1LL<<60);
#define SQ(i) ((i)*(i))
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define pb push_back
#define mp make_pair
#define X first
#define Y second
#define setp setprecision
#define lwb lower_bound
#define SZ(_a) (ll)_a.size()

ll n,m,x,y;
ll low[N],depth[N],cnt=0,ptr,w[N],ans,sz[N];
vector<ll> G[N],v[N];

ll stk[N],now;

void DFS1(ll nd,ll pa){
	++cnt;
	low[nd]=depth[nd]=depth[pa]+1;
	stk[++now]=nd;
	for(ll i:v[nd]){
		if(i==pa)continue;
		if(depth[i]){
			low[nd]=min(low[nd],depth[i]);
		}else{
			//
			//
			DFS1(i,nd);
			if(low[i]>=depth[nd]){
				//cout<<"FIND BCC\n";
				++ptr;
				while(stk[now]!=i){
					//cout<<stk[now]<<" ";
					++w[ptr];w[stk[now]]=-1;
					G[stk[now]].pb(ptr);
					G[ptr].pb(stk[now]);
					--now;
				}
				w[stk[now]]=-1;++w[ptr];
				G[stk[now]].pb(ptr);
				G[ptr].pb(stk[now]);
				--now;
				//cout<<stk[now]<<"\n";
				++w[ptr];w[nd]=-1;
				G[nd].pb(ptr);
				G[ptr].pb(nd);
			}
			low[nd]=min(low[nd],low[i]);
		}
	}
}

void DFS2(ll nd,ll pa){
	sz[nd]=(nd<=n?1:0);
	for(auto i:G[nd]){
		if(i==pa)continue;
		DFS2(i,nd);
		ans+=2*w[nd]*sz[nd]*sz[i];
		sz[nd]+=sz[i];
	}
	ans+=2*w[nd]*sz[nd]*(cnt-sz[nd]);
}

int main(){
	ios_base::sync_with_stdio(0);cin.tie(0);
	cin>>n>>m;
	ptr=n;
	REP(i,m){
		cin>>x>>y;
		v[x].pb(y),v[y].pb(x);
	}
	REP1(i,n){
		if(!depth[i]){
			cnt=now=0;
			DFS1(i,0);
			DFS2(i,0);
		}
	}
	cout<<ans<<"\n";
	return 0;
}

# Verdict Execution time Memory Grader output
1 Correct 29 ms 47340 KB Output is correct
2 Correct 33 ms 47340 KB Output is correct
3 Correct 29 ms 47340 KB Output is correct
4 Correct 33 ms 47340 KB Output is correct
5 Correct 31 ms 47340 KB Output is correct
6 Correct 35 ms 47340 KB Output is correct
7 Correct 30 ms 47340 KB Output is correct
8 Correct 35 ms 47340 KB Output is correct
9 Correct 32 ms 47340 KB Output is correct
10 Correct 37 ms 47488 KB Output is correct
11 Correct 38 ms 47340 KB Output is correct
12 Correct 33 ms 47340 KB Output is correct
13 Correct 38 ms 47340 KB Output is correct
14 Correct 29 ms 47340 KB Output is correct
15 Correct 33 ms 47488 KB Output is correct
16 Correct 29 ms 47340 KB Output is correct
17 Correct 33 ms 47484 KB Output is correct
18 Correct 30 ms 47340 KB Output is correct
19 Correct 31 ms 47340 KB Output is correct
20 Correct 30 ms 47340 KB Output is correct
21 Correct 33 ms 47340 KB Output is correct
22 Correct 30 ms 47340 KB Output is correct
23 Correct 35 ms 47392 KB Output is correct
24 Correct 33 ms 47468 KB Output is correct
25 Correct 34 ms 47340 KB Output is correct
26 Correct 32 ms 47340 KB Output is correct
27 Correct 31 ms 47468 KB Output is correct
28 Correct 30 ms 47340 KB Output is correct
29 Correct 31 ms 47340 KB Output is correct
30 Correct 30 ms 47352 KB Output is correct
31 Correct 30 ms 47340 KB Output is correct
32 Correct 32 ms 47340 KB Output is correct
33 Correct 34 ms 47488 KB Output is correct
34 Correct 33 ms 47340 KB Output is correct
35 Correct 31 ms 47340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 29 ms 47340 KB Output is correct
2 Correct 33 ms 47340 KB Output is correct
3 Correct 29 ms 47340 KB Output is correct
4 Correct 33 ms 47340 KB Output is correct
5 Correct 31 ms 47340 KB Output is correct
6 Correct 35 ms 47340 KB Output is correct
7 Correct 30 ms 47340 KB Output is correct
8 Correct 35 ms 47340 KB Output is correct
9 Correct 32 ms 47340 KB Output is correct
10 Correct 37 ms 47488 KB Output is correct
11 Correct 38 ms 47340 KB Output is correct
12 Correct 33 ms 47340 KB Output is correct
13 Correct 38 ms 47340 KB Output is correct
14 Correct 29 ms 47340 KB Output is correct
15 Correct 33 ms 47488 KB Output is correct
16 Correct 29 ms 47340 KB Output is correct
17 Correct 33 ms 47484 KB Output is correct
18 Correct 30 ms 47340 KB Output is correct
19 Correct 31 ms 47340 KB Output is correct
20 Correct 30 ms 47340 KB Output is correct
21 Correct 33 ms 47340 KB Output is correct
22 Correct 30 ms 47340 KB Output is correct
23 Correct 35 ms 47392 KB Output is correct
24 Correct 33 ms 47468 KB Output is correct
25 Correct 34 ms 47340 KB Output is correct
26 Correct 32 ms 47340 KB Output is correct
27 Correct 31 ms 47468 KB Output is correct
28 Correct 30 ms 47340 KB Output is correct
29 Correct 31 ms 47340 KB Output is correct
30 Correct 30 ms 47352 KB Output is correct
31 Correct 30 ms 47340 KB Output is correct
32 Correct 32 ms 47340 KB Output is correct
33 Correct 34 ms 47488 KB Output is correct
34 Correct 33 ms 47340 KB Output is correct
35 Correct 31 ms 47340 KB Output is correct
36 Correct 30 ms 47468 KB Output is correct
37 Correct 33 ms 47340 KB Output is correct
38 Correct 33 ms 47468 KB Output is correct
39 Correct 34 ms 47340 KB Output is correct
40 Correct 30 ms 47340 KB Output is correct
41 Correct 29 ms 47340 KB Output is correct
42 Correct 31 ms 47404 KB Output is correct
43 Correct 30 ms 47340 KB Output is correct
44 Correct 29 ms 47340 KB Output is correct
45 Correct 32 ms 47340 KB Output is correct
46 Correct 31 ms 47340 KB Output is correct
47 Correct 30 ms 47468 KB Output is correct
48 Correct 30 ms 47340 KB Output is correct
49 Correct 31 ms 47340 KB Output is correct
50 Correct 29 ms 47340 KB Output is correct
51 Correct 30 ms 47340 KB Output is correct
52 Correct 30 ms 47340 KB Output is correct
53 Correct 31 ms 47340 KB Output is correct
54 Correct 31 ms 47340 KB Output is correct
55 Correct 33 ms 47340 KB Output is correct
56 Correct 30 ms 47340 KB Output is correct
57 Correct 31 ms 47340 KB Output is correct
58 Correct 35 ms 47340 KB Output is correct
59 Correct 34 ms 47340 KB Output is correct
60 Correct 40 ms 47340 KB Output is correct
61 Correct 38 ms 47340 KB Output is correct
62 Correct 30 ms 47468 KB Output is correct
63 Correct 33 ms 47340 KB Output is correct
64 Correct 30 ms 47340 KB Output is correct
65 Correct 32 ms 47340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 161 ms 67680 KB Output is correct
2 Correct 143 ms 67680 KB Output is correct
3 Correct 164 ms 66292 KB Output is correct
4 Correct 149 ms 66276 KB Output is correct
5 Correct 151 ms 63332 KB Output is correct
6 Correct 157 ms 65124 KB Output is correct
7 Correct 148 ms 63080 KB Output is correct
8 Correct 162 ms 63592 KB Output is correct
9 Correct 166 ms 61540 KB Output is correct
10 Correct 196 ms 61804 KB Output is correct
11 Correct 146 ms 59244 KB Output is correct
12 Correct 126 ms 59116 KB Output is correct
13 Correct 116 ms 58988 KB Output is correct
14 Correct 116 ms 58604 KB Output is correct
15 Correct 132 ms 57580 KB Output is correct
16 Correct 99 ms 57372 KB Output is correct
17 Correct 33 ms 50412 KB Output is correct
18 Correct 40 ms 50412 KB Output is correct
19 Correct 40 ms 50284 KB Output is correct
20 Correct 34 ms 50284 KB Output is correct
21 Correct 33 ms 50284 KB Output is correct
22 Correct 33 ms 50156 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 31 ms 47448 KB Output is correct
2 Correct 30 ms 47508 KB Output is correct
3 Correct 30 ms 47468 KB Output is correct
4 Correct 35 ms 47596 KB Output is correct
5 Correct 38 ms 47596 KB Output is correct
6 Correct 36 ms 47596 KB Output is correct
7 Correct 31 ms 47596 KB Output is correct
8 Correct 34 ms 47596 KB Output is correct
9 Correct 34 ms 47596 KB Output is correct
10 Correct 31 ms 47468 KB Output is correct
11 Correct 33 ms 47864 KB Output is correct
12 Correct 30 ms 47468 KB Output is correct
13 Correct 32 ms 47468 KB Output is correct
14 Correct 30 ms 47468 KB Output is correct
15 Correct 31 ms 47596 KB Output is correct
16 Correct 31 ms 47468 KB Output is correct
17 Correct 39 ms 47468 KB Output is correct
18 Correct 39 ms 47468 KB Output is correct
19 Correct 33 ms 47468 KB Output is correct
20 Correct 42 ms 47468 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 171 ms 62700 KB Output is correct
2 Correct 156 ms 62660 KB Output is correct
3 Correct 162 ms 62700 KB Output is correct
4 Correct 152 ms 62700 KB Output is correct
5 Correct 140 ms 62700 KB Output is correct
6 Correct 198 ms 70508 KB Output is correct
7 Correct 197 ms 68212 KB Output is correct
8 Correct 195 ms 66676 KB Output is correct
9 Correct 195 ms 65260 KB Output is correct
10 Correct 163 ms 62700 KB Output is correct
11 Correct 181 ms 62612 KB Output is correct
12 Correct 187 ms 62700 KB Output is correct
13 Correct 176 ms 62692 KB Output is correct
14 Correct 162 ms 61804 KB Output is correct
15 Correct 160 ms 60780 KB Output is correct
16 Correct 107 ms 57708 KB Output is correct
17 Correct 139 ms 62944 KB Output is correct
18 Correct 118 ms 63068 KB Output is correct
19 Correct 132 ms 63320 KB Output is correct
20 Correct 131 ms 63068 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 38 ms 47468 KB Output is correct
2 Correct 34 ms 47468 KB Output is correct
3 Correct 31 ms 47468 KB Output is correct
4 Correct 30 ms 47468 KB Output is correct
5 Correct 35 ms 47468 KB Output is correct
6 Correct 35 ms 47468 KB Output is correct
7 Correct 38 ms 47668 KB Output is correct
8 Correct 40 ms 47468 KB Output is correct
9 Correct 30 ms 47468 KB Output is correct
10 Correct 38 ms 47468 KB Output is correct
11 Correct 31 ms 47468 KB Output is correct
12 Correct 30 ms 47596 KB Output is correct
13 Correct 31 ms 47596 KB Output is correct
14 Correct 32 ms 47596 KB Output is correct
15 Correct 30 ms 47488 KB Output is correct
16 Correct 38 ms 47468 KB Output is correct
17 Correct 36 ms 47468 KB Output is correct
18 Correct 30 ms 47468 KB Output is correct
19 Correct 30 ms 47468 KB Output is correct
20 Correct 31 ms 47468 KB Output is correct
21 Correct 31 ms 47468 KB Output is correct
22 Correct 31 ms 47468 KB Output is correct
23 Correct 36 ms 47508 KB Output is correct
24 Correct 36 ms 47616 KB Output is correct
25 Correct 34 ms 47468 KB Output is correct
26 Correct 47 ms 47336 KB Output is correct
27 Correct 39 ms 47340 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 184 ms 62676 KB Output is correct
2 Correct 180 ms 62360 KB Output is correct
3 Correct 186 ms 61936 KB Output is correct
4 Correct 181 ms 60908 KB Output is correct
5 Correct 171 ms 59756 KB Output is correct
6 Correct 144 ms 59244 KB Output is correct
7 Correct 161 ms 58860 KB Output is correct
8 Correct 136 ms 58604 KB Output is correct
9 Correct 137 ms 58476 KB Output is correct
10 Correct 132 ms 58276 KB Output is correct
11 Correct 139 ms 58220 KB Output is correct
12 Correct 150 ms 58220 KB Output is correct
13 Correct 146 ms 58220 KB Output is correct
14 Correct 127 ms 60396 KB Output is correct
15 Correct 209 ms 67948 KB Output is correct
16 Correct 239 ms 66176 KB Output is correct
17 Correct 188 ms 66488 KB Output is correct
18 Correct 213 ms 64748 KB Output is correct
19 Correct 164 ms 60908 KB Output is correct
20 Correct 165 ms 60908 KB Output is correct
21 Correct 170 ms 60992 KB Output is correct
22 Correct 167 ms 60140 KB Output is correct
23 Correct 143 ms 59520 KB Output is correct
24 Correct 169 ms 61924 KB Output is correct
25 Correct 171 ms 62044 KB Output is correct
26 Correct 195 ms 61284 KB Output is correct
27 Correct 164 ms 61296 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 29 ms 47340 KB Output is correct
2 Correct 33 ms 47340 KB Output is correct
3 Correct 29 ms 47340 KB Output is correct
4 Correct 33 ms 47340 KB Output is correct
5 Correct 31 ms 47340 KB Output is correct
6 Correct 35 ms 47340 KB Output is correct
7 Correct 30 ms 47340 KB Output is correct
8 Correct 35 ms 47340 KB Output is correct
9 Correct 32 ms 47340 KB Output is correct
10 Correct 37 ms 47488 KB Output is correct
11 Correct 38 ms 47340 KB Output is correct
12 Correct 33 ms 47340 KB Output is correct
13 Correct 38 ms 47340 KB Output is correct
14 Correct 29 ms 47340 KB Output is correct
15 Correct 33 ms 47488 KB Output is correct
16 Correct 29 ms 47340 KB Output is correct
17 Correct 33 ms 47484 KB Output is correct
18 Correct 30 ms 47340 KB Output is correct
19 Correct 31 ms 47340 KB Output is correct
20 Correct 30 ms 47340 KB Output is correct
21 Correct 33 ms 47340 KB Output is correct
22 Correct 30 ms 47340 KB Output is correct
23 Correct 35 ms 47392 KB Output is correct
24 Correct 33 ms 47468 KB Output is correct
25 Correct 34 ms 47340 KB Output is correct
26 Correct 32 ms 47340 KB Output is correct
27 Correct 31 ms 47468 KB Output is correct
28 Correct 30 ms 47340 KB Output is correct
29 Correct 31 ms 47340 KB Output is correct
30 Correct 30 ms 47352 KB Output is correct
31 Correct 30 ms 47340 KB Output is correct
32 Correct 32 ms 47340 KB Output is correct
33 Correct 34 ms 47488 KB Output is correct
34 Correct 33 ms 47340 KB Output is correct
35 Correct 31 ms 47340 KB Output is correct
36 Correct 30 ms 47468 KB Output is correct
37 Correct 33 ms 47340 KB Output is correct
38 Correct 33 ms 47468 KB Output is correct
39 Correct 34 ms 47340 KB Output is correct
40 Correct 30 ms 47340 KB Output is correct
41 Correct 29 ms 47340 KB Output is correct
42 Correct 31 ms 47404 KB Output is correct
43 Correct 30 ms 47340 KB Output is correct
44 Correct 29 ms 47340 KB Output is correct
45 Correct 32 ms 47340 KB Output is correct
46 Correct 31 ms 47340 KB Output is correct
47 Correct 30 ms 47468 KB Output is correct
48 Correct 30 ms 47340 KB Output is correct
49 Correct 31 ms 47340 KB Output is correct
50 Correct 29 ms 47340 KB Output is correct
51 Correct 30 ms 47340 KB Output is correct
52 Correct 30 ms 47340 KB Output is correct
53 Correct 31 ms 47340 KB Output is correct
54 Correct 31 ms 47340 KB Output is correct
55 Correct 33 ms 47340 KB Output is correct
56 Correct 30 ms 47340 KB Output is correct
57 Correct 31 ms 47340 KB Output is correct
58 Correct 35 ms 47340 KB Output is correct
59 Correct 34 ms 47340 KB Output is correct
60 Correct 40 ms 47340 KB Output is correct
61 Correct 38 ms 47340 KB Output is correct
62 Correct 30 ms 47468 KB Output is correct
63 Correct 33 ms 47340 KB Output is correct
64 Correct 30 ms 47340 KB Output is correct
65 Correct 32 ms 47340 KB Output is correct
66 Correct 30 ms 47340 KB Output is correct
67 Correct 35 ms 47468 KB Output is correct
68 Correct 31 ms 47468 KB Output is correct
69 Correct 31 ms 47468 KB Output is correct
70 Correct 31 ms 47596 KB Output is correct
71 Correct 31 ms 47468 KB Output is correct
72 Correct 31 ms 47468 KB Output is correct
73 Correct 32 ms 47468 KB Output is correct
74 Correct 37 ms 47468 KB Output is correct
75 Correct 31 ms 47468 KB Output is correct
76 Correct 33 ms 47340 KB Output is correct
77 Correct 30 ms 47468 KB Output is correct
78 Correct 32 ms 47468 KB Output is correct
79 Correct 36 ms 47468 KB Output is correct
80 Correct 37 ms 47468 KB Output is correct
81 Correct 38 ms 47468 KB Output is correct
82 Correct 34 ms 47468 KB Output is correct
83 Correct 31 ms 47492 KB Output is correct
84 Correct 31 ms 47468 KB Output is correct
85 Correct 31 ms 47500 KB Output is correct
86 Correct 30 ms 47468 KB Output is correct
87 Correct 31 ms 47596 KB Output is correct
88 Correct 30 ms 47468 KB Output is correct
89 Correct 32 ms 47468 KB Output is correct
90 Correct 30 ms 47468 KB Output is correct
91 Correct 31 ms 47468 KB Output is correct
92 Correct 31 ms 47468 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 29 ms 47340 KB Output is correct
2 Correct 33 ms 47340 KB Output is correct
3 Correct 29 ms 47340 KB Output is correct
4 Correct 33 ms 47340 KB Output is correct
5 Correct 31 ms 47340 KB Output is correct
6 Correct 35 ms 47340 KB Output is correct
7 Correct 30 ms 47340 KB Output is correct
8 Correct 35 ms 47340 KB Output is correct
9 Correct 32 ms 47340 KB Output is correct
10 Correct 37 ms 47488 KB Output is correct
11 Correct 38 ms 47340 KB Output is correct
12 Correct 33 ms 47340 KB Output is correct
13 Correct 38 ms 47340 KB Output is correct
14 Correct 29 ms 47340 KB Output is correct
15 Correct 33 ms 47488 KB Output is correct
16 Correct 29 ms 47340 KB Output is correct
17 Correct 33 ms 47484 KB Output is correct
18 Correct 30 ms 47340 KB Output is correct
19 Correct 31 ms 47340 KB Output is correct
20 Correct 30 ms 47340 KB Output is correct
21 Correct 33 ms 47340 KB Output is correct
22 Correct 30 ms 47340 KB Output is correct
23 Correct 35 ms 47392 KB Output is correct
24 Correct 33 ms 47468 KB Output is correct
25 Correct 34 ms 47340 KB Output is correct
26 Correct 32 ms 47340 KB Output is correct
27 Correct 31 ms 47468 KB Output is correct
28 Correct 30 ms 47340 KB Output is correct
29 Correct 31 ms 47340 KB Output is correct
30 Correct 30 ms 47352 KB Output is correct
31 Correct 30 ms 47340 KB Output is correct
32 Correct 32 ms 47340 KB Output is correct
33 Correct 34 ms 47488 KB Output is correct
34 Correct 33 ms 47340 KB Output is correct
35 Correct 31 ms 47340 KB Output is correct
36 Correct 30 ms 47468 KB Output is correct
37 Correct 33 ms 47340 KB Output is correct
38 Correct 33 ms 47468 KB Output is correct
39 Correct 34 ms 47340 KB Output is correct
40 Correct 30 ms 47340 KB Output is correct
41 Correct 29 ms 47340 KB Output is correct
42 Correct 31 ms 47404 KB Output is correct
43 Correct 30 ms 47340 KB Output is correct
44 Correct 29 ms 47340 KB Output is correct
45 Correct 32 ms 47340 KB Output is correct
46 Correct 31 ms 47340 KB Output is correct
47 Correct 30 ms 47468 KB Output is correct
48 Correct 30 ms 47340 KB Output is correct
49 Correct 31 ms 47340 KB Output is correct
50 Correct 29 ms 47340 KB Output is correct
51 Correct 30 ms 47340 KB Output is correct
52 Correct 30 ms 47340 KB Output is correct
53 Correct 31 ms 47340 KB Output is correct
54 Correct 31 ms 47340 KB Output is correct
55 Correct 33 ms 47340 KB Output is correct
56 Correct 30 ms 47340 KB Output is correct
57 Correct 31 ms 47340 KB Output is correct
58 Correct 35 ms 47340 KB Output is correct
59 Correct 34 ms 47340 KB Output is correct
60 Correct 40 ms 47340 KB Output is correct
61 Correct 38 ms 47340 KB Output is correct
62 Correct 30 ms 47468 KB Output is correct
63 Correct 33 ms 47340 KB Output is correct
64 Correct 30 ms 47340 KB Output is correct
65 Correct 32 ms 47340 KB Output is correct
66 Correct 161 ms 67680 KB Output is correct
67 Correct 143 ms 67680 KB Output is correct
68 Correct 164 ms 66292 KB Output is correct
69 Correct 149 ms 66276 KB Output is correct
70 Correct 151 ms 63332 KB Output is correct
71 Correct 157 ms 65124 KB Output is correct
72 Correct 148 ms 63080 KB Output is correct
73 Correct 162 ms 63592 KB Output is correct
74 Correct 166 ms 61540 KB Output is correct
75 Correct 196 ms 61804 KB Output is correct
76 Correct 146 ms 59244 KB Output is correct
77 Correct 126 ms 59116 KB Output is correct
78 Correct 116 ms 58988 KB Output is correct
79 Correct 116 ms 58604 KB Output is correct
80 Correct 132 ms 57580 KB Output is correct
81 Correct 99 ms 57372 KB Output is correct
82 Correct 33 ms 50412 KB Output is correct
83 Correct 40 ms 50412 KB Output is correct
84 Correct 40 ms 50284 KB Output is correct
85 Correct 34 ms 50284 KB Output is correct
86 Correct 33 ms 50284 KB Output is correct
87 Correct 33 ms 50156 KB Output is correct
88 Correct 31 ms 47448 KB Output is correct
89 Correct 30 ms 47508 KB Output is correct
90 Correct 30 ms 47468 KB Output is correct
91 Correct 35 ms 47596 KB Output is correct
92 Correct 38 ms 47596 KB Output is correct
93 Correct 36 ms 47596 KB Output is correct
94 Correct 31 ms 47596 KB Output is correct
95 Correct 34 ms 47596 KB Output is correct
96 Correct 34 ms 47596 KB Output is correct
97 Correct 31 ms 47468 KB Output is correct
98 Correct 33 ms 47864 KB Output is correct
99 Correct 30 ms 47468 KB Output is correct
100 Correct 32 ms 47468 KB Output is correct
101 Correct 30 ms 47468 KB Output is correct
102 Correct 31 ms 47596 KB Output is correct
103 Correct 31 ms 47468 KB Output is correct
104 Correct 39 ms 47468 KB Output is correct
105 Correct 39 ms 47468 KB Output is correct
106 Correct 33 ms 47468 KB Output is correct
107 Correct 42 ms 47468 KB Output is correct
108 Correct 171 ms 62700 KB Output is correct
109 Correct 156 ms 62660 KB Output is correct
110 Correct 162 ms 62700 KB Output is correct
111 Correct 152 ms 62700 KB Output is correct
112 Correct 140 ms 62700 KB Output is correct
113 Correct 198 ms 70508 KB Output is correct
114 Correct 197 ms 68212 KB Output is correct
115 Correct 195 ms 66676 KB Output is correct
116 Correct 195 ms 65260 KB Output is correct
117 Correct 163 ms 62700 KB Output is correct
118 Correct 181 ms 62612 KB Output is correct
119 Correct 187 ms 62700 KB Output is correct
120 Correct 176 ms 62692 KB Output is correct
121 Correct 162 ms 61804 KB Output is correct
122 Correct 160 ms 60780 KB Output is correct
123 Correct 107 ms 57708 KB Output is correct
124 Correct 139 ms 62944 KB Output is correct
125 Correct 118 ms 63068 KB Output is correct
126 Correct 132 ms 63320 KB Output is correct
127 Correct 131 ms 63068 KB Output is correct
128 Correct 38 ms 47468 KB Output is correct
129 Correct 34 ms 47468 KB Output is correct
130 Correct 31 ms 47468 KB Output is correct
131 Correct 30 ms 47468 KB Output is correct
132 Correct 35 ms 47468 KB Output is correct
133 Correct 35 ms 47468 KB Output is correct
134 Correct 38 ms 47668 KB Output is correct
135 Correct 40 ms 47468 KB Output is correct
136 Correct 30 ms 47468 KB Output is correct
137 Correct 38 ms 47468 KB Output is correct
138 Correct 31 ms 47468 KB Output is correct
139 Correct 30 ms 47596 KB Output is correct
140 Correct 31 ms 47596 KB Output is correct
141 Correct 32 ms 47596 KB Output is correct
142 Correct 30 ms 47488 KB Output is correct
143 Correct 38 ms 47468 KB Output is correct
144 Correct 36 ms 47468 KB Output is correct
145 Correct 30 ms 47468 KB Output is correct
146 Correct 30 ms 47468 KB Output is correct
147 Correct 31 ms 47468 KB Output is correct
148 Correct 31 ms 47468 KB Output is correct
149 Correct 31 ms 47468 KB Output is correct
150 Correct 36 ms 47508 KB Output is correct
151 Correct 36 ms 47616 KB Output is correct
152 Correct 34 ms 47468 KB Output is correct
153 Correct 47 ms 47336 KB Output is correct
154 Correct 39 ms 47340 KB Output is correct
155 Correct 184 ms 62676 KB Output is correct
156 Correct 180 ms 62360 KB Output is correct
157 Correct 186 ms 61936 KB Output is correct
158 Correct 181 ms 60908 KB Output is correct
159 Correct 171 ms 59756 KB Output is correct
160 Correct 144 ms 59244 KB Output is correct
161 Correct 161 ms 58860 KB Output is correct
162 Correct 136 ms 58604 KB Output is correct
163 Correct 137 ms 58476 KB Output is correct
164 Correct 132 ms 58276 KB Output is correct
165 Correct 139 ms 58220 KB Output is correct
166 Correct 150 ms 58220 KB Output is correct
167 Correct 146 ms 58220 KB Output is correct
168 Correct 127 ms 60396 KB Output is correct
169 Correct 209 ms 67948 KB Output is correct
170 Correct 239 ms 66176 KB Output is correct
171 Correct 188 ms 66488 KB Output is correct
172 Correct 213 ms 64748 KB Output is correct
173 Correct 164 ms 60908 KB Output is correct
174 Correct 165 ms 60908 KB Output is correct
175 Correct 170 ms 60992 KB Output is correct
176 Correct 167 ms 60140 KB Output is correct
177 Correct 143 ms 59520 KB Output is correct
178 Correct 169 ms 61924 KB Output is correct
179 Correct 171 ms 62044 KB Output is correct
180 Correct 195 ms 61284 KB Output is correct
181 Correct 164 ms 61296 KB Output is correct
182 Correct 30 ms 47340 KB Output is correct
183 Correct 35 ms 47468 KB Output is correct
184 Correct 31 ms 47468 KB Output is correct
185 Correct 31 ms 47468 KB Output is correct
186 Correct 31 ms 47596 KB Output is correct
187 Correct 31 ms 47468 KB Output is correct
188 Correct 31 ms 47468 KB Output is correct
189 Correct 32 ms 47468 KB Output is correct
190 Correct 37 ms 47468 KB Output is correct
191 Correct 31 ms 47468 KB Output is correct
192 Correct 33 ms 47340 KB Output is correct
193 Correct 30 ms 47468 KB Output is correct
194 Correct 32 ms 47468 KB Output is correct
195 Correct 36 ms 47468 KB Output is correct
196 Correct 37 ms 47468 KB Output is correct
197 Correct 38 ms 47468 KB Output is correct
198 Correct 34 ms 47468 KB Output is correct
199 Correct 31 ms 47492 KB Output is correct
200 Correct 31 ms 47468 KB Output is correct
201 Correct 31 ms 47500 KB Output is correct
202 Correct 30 ms 47468 KB Output is correct
203 Correct 31 ms 47596 KB Output is correct
204 Correct 30 ms 47468 KB Output is correct
205 Correct 32 ms 47468 KB Output is correct
206 Correct 30 ms 47468 KB Output is correct
207 Correct 31 ms 47468 KB Output is correct
208 Correct 31 ms 47468 KB Output is correct
209 Correct 37 ms 49644 KB Output is correct
210 Correct 85 ms 57324 KB Output is correct
211 Correct 133 ms 61616 KB Output is correct
212 Correct 198 ms 64480 KB Output is correct
213 Correct 214 ms 66656 KB Output is correct
214 Correct 82 ms 59512 KB Output is correct
215 Correct 122 ms 59372 KB Output is correct
216 Correct 217 ms 61860 KB Output is correct
217 Correct 199 ms 60300 KB Output is correct
218 Correct 168 ms 58608 KB Output is correct
219 Correct 151 ms 58220 KB Output is correct
220 Correct 141 ms 58092 KB Output is correct
221 Correct 140 ms 58092 KB Output is correct
222 Correct 147 ms 59244 KB Output is correct
223 Correct 171 ms 63104 KB Output is correct
224 Correct 232 ms 62060 KB Output is correct
225 Correct 152 ms 60140 KB Output is correct
226 Correct 162 ms 60140 KB Output is correct
227 Correct 153 ms 60012 KB Output is correct
228 Correct 147 ms 59372 KB Output is correct
229 Correct 134 ms 58860 KB Output is correct
230 Correct 162 ms 60300 KB Output is correct
231 Correct 167 ms 60380 KB Output is correct