답안 #716229

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
716229 2023-03-29T10:17:12 Z radal 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
121 ms 33308 KB
#include <bits/stdc++.h>
//#pragma GCC target("sse,sse2,avx2")
#pragma GCC optimize("unroll-loops,O3")
#define rep(i,l,r) for (int i = l; i < r; i++)
#define repr(i,r,l) for (int i = r; i >= l; i--)
#define X first
#define Y second
#define all(x) (x).begin() , (x).end()
#define pb push_back
#define endl '\n'
#define debug(x) cerr << #x << " : " << x << endl;

using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pll;
constexpr int N = 2e5+20,mod = 998244353;
constexpr int inf = 1e9+10;
inline int mkay(int a,int b){
    if (a+b >= mod) return a+b-mod;
    if (a+b < 0) return a+b+mod;
    return a+b;
}
 
inline int poww(int a,int k){
    if (k < 0) return 0;
    int z = 1;
    while (k){
        if (k&1) z = 1ll*z*a%mod;
        a = 1ll*a*a%mod;
        k >>= 1;
    } 
    return z; 
}

int n,m;
vector<int> G[N];
vector<int> adj[N],cmp;
int h[N],mi[N]; 
int sz[N],par[N],deg[N];
int bl[N],sum[N],tot;
int cur;
bool vis[N],cut[N];
ll ans;

void add_ed(int u,int v){
	adj[u].pb(v);
	adj[v].pb(u);
	deg[u]++;
	deg[v]++;
}

void pre(int v,int p){
	cmp.pb(v);
	mi[v] = h[v];
	par[v] = p;
	for (int u : G[v]){
		if (h[u] == -1){
			h[u] = h[v]+1;
			pre(u,v);
			mi[v] = min(mi[v],mi[u]);
			if (mi[u] == h[v]) cut[v] = 1;
		}
		else{
			mi[v] = min(mi[v],h[u]);
		}
	}
}

void dfs(int v){
	vis[v] = 1;
	for (int u : G[v]){
		if (vis[u]) continue;
		if (mi[u] < h[v]){
			bl[u] = bl[v];
		}
		else{
			bl[u] = ++cur;
			sz[cur]++;
		}
		dfs(u);
	}
}

void calc(int v,int p){
	int s;
	if (v <= n) s = 1;
	else s = sz[v];
	sum[v] = s;
	for (int u : adj[v]){
		if (u != p){
			calc(u,v);
			sum[v] += sum[u]-1;
			if (v > n){
				ans -= 1ll*(sz[v]-1)*sum[u]*(sum[u]-1);
			}
		}
	}
	if (p != -1){
		if (v > n)
			ans -= 1ll*(sz[v]-1)*(tot-sum[v])*(tot-sum[v]+1);
	}
}

int main(){
	ios :: sync_with_stdio(0); cin.tie(0);  cout.tie(0);
	memset(h,-1,sizeof h);
	cin >> n >> m;
	rep(i,0,m){
		int u,v;
		cin >> u >> v;
		G[u].pb(v);
		G[v].pb(u);
	}
	cur = n;
	rep(i,1,n+1){
		if (h[i] != -1) continue;
		cmp.clear();
		h[i] = 0;
		pre(i,-1);
		bl[i] = ++cur;
		dfs(i);
		tot = cmp.size();
		for (int v : cmp){
		   	sz[bl[v]]++;
			if (cut[v]){
				add_ed(bl[v],v);
			}
			if (v != i && mi[v]+1 == h[v]){
				add_ed(bl[v],par[v]);
			}
		}
		ans += 1ll*tot*(tot-1)*(tot-2);
		calc(i,-1);
	}
	cout << ans << endl;
} 
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 10452 KB Output is correct
2 Correct 5 ms 10428 KB Output is correct
3 Correct 6 ms 10536 KB Output is correct
4 Correct 5 ms 10452 KB Output is correct
5 Correct 5 ms 10452 KB Output is correct
6 Correct 5 ms 10416 KB Output is correct
7 Correct 5 ms 10452 KB Output is correct
8 Correct 6 ms 10452 KB Output is correct
9 Correct 7 ms 10512 KB Output is correct
10 Correct 6 ms 10452 KB Output is correct
11 Correct 6 ms 10452 KB Output is correct
12 Correct 6 ms 10452 KB Output is correct
13 Correct 5 ms 10452 KB Output is correct
14 Correct 5 ms 10452 KB Output is correct
15 Correct 5 ms 10452 KB Output is correct
16 Correct 7 ms 10452 KB Output is correct
17 Correct 6 ms 10512 KB Output is correct
18 Correct 5 ms 10504 KB Output is correct
19 Correct 6 ms 10504 KB Output is correct
20 Correct 6 ms 10508 KB Output is correct
21 Correct 6 ms 10452 KB Output is correct
22 Correct 6 ms 10500 KB Output is correct
23 Correct 6 ms 10452 KB Output is correct
24 Correct 6 ms 10580 KB Output is correct
25 Correct 6 ms 10444 KB Output is correct
26 Correct 6 ms 10500 KB Output is correct
27 Correct 8 ms 10500 KB Output is correct
28 Correct 6 ms 10500 KB Output is correct
29 Correct 6 ms 10452 KB Output is correct
30 Correct 6 ms 10452 KB Output is correct
31 Correct 5 ms 10452 KB Output is correct
32 Correct 6 ms 10452 KB Output is correct
33 Correct 6 ms 10452 KB Output is correct
34 Correct 7 ms 10452 KB Output is correct
35 Correct 7 ms 10504 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 10452 KB Output is correct
2 Correct 5 ms 10428 KB Output is correct
3 Correct 6 ms 10536 KB Output is correct
4 Correct 5 ms 10452 KB Output is correct
5 Correct 5 ms 10452 KB Output is correct
6 Correct 5 ms 10416 KB Output is correct
7 Correct 5 ms 10452 KB Output is correct
8 Correct 6 ms 10452 KB Output is correct
9 Correct 7 ms 10512 KB Output is correct
10 Correct 6 ms 10452 KB Output is correct
11 Correct 6 ms 10452 KB Output is correct
12 Correct 6 ms 10452 KB Output is correct
13 Correct 5 ms 10452 KB Output is correct
14 Correct 5 ms 10452 KB Output is correct
15 Correct 5 ms 10452 KB Output is correct
16 Correct 7 ms 10452 KB Output is correct
17 Correct 6 ms 10512 KB Output is correct
18 Correct 5 ms 10504 KB Output is correct
19 Correct 6 ms 10504 KB Output is correct
20 Correct 6 ms 10508 KB Output is correct
21 Correct 6 ms 10452 KB Output is correct
22 Correct 6 ms 10500 KB Output is correct
23 Correct 6 ms 10452 KB Output is correct
24 Correct 6 ms 10580 KB Output is correct
25 Correct 6 ms 10444 KB Output is correct
26 Correct 6 ms 10500 KB Output is correct
27 Correct 8 ms 10500 KB Output is correct
28 Correct 6 ms 10500 KB Output is correct
29 Correct 6 ms 10452 KB Output is correct
30 Correct 6 ms 10452 KB Output is correct
31 Correct 5 ms 10452 KB Output is correct
32 Correct 6 ms 10452 KB Output is correct
33 Correct 6 ms 10452 KB Output is correct
34 Correct 7 ms 10452 KB Output is correct
35 Correct 7 ms 10504 KB Output is correct
36 Correct 6 ms 10508 KB Output is correct
37 Correct 7 ms 10504 KB Output is correct
38 Correct 7 ms 10452 KB Output is correct
39 Correct 7 ms 10452 KB Output is correct
40 Correct 6 ms 10452 KB Output is correct
41 Correct 7 ms 10504 KB Output is correct
42 Correct 6 ms 10496 KB Output is correct
43 Correct 6 ms 10452 KB Output is correct
44 Correct 7 ms 10500 KB Output is correct
45 Correct 7 ms 10452 KB Output is correct
46 Correct 6 ms 10452 KB Output is correct
47 Correct 7 ms 10452 KB Output is correct
48 Correct 7 ms 10504 KB Output is correct
49 Correct 6 ms 10544 KB Output is correct
50 Correct 6 ms 10452 KB Output is correct
51 Correct 6 ms 10452 KB Output is correct
52 Correct 7 ms 10480 KB Output is correct
53 Correct 8 ms 10452 KB Output is correct
54 Correct 8 ms 10452 KB Output is correct
55 Correct 7 ms 10452 KB Output is correct
56 Correct 7 ms 10452 KB Output is correct
57 Correct 8 ms 10580 KB Output is correct
58 Correct 7 ms 10520 KB Output is correct
59 Correct 7 ms 10500 KB Output is correct
60 Correct 9 ms 10452 KB Output is correct
61 Correct 7 ms 10504 KB Output is correct
62 Correct 6 ms 10452 KB Output is correct
63 Correct 6 ms 10504 KB Output is correct
64 Correct 6 ms 10504 KB Output is correct
65 Correct 5 ms 10452 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 73 ms 23196 KB Output is correct
2 Correct 73 ms 23188 KB Output is correct
3 Correct 80 ms 26064 KB Output is correct
4 Correct 97 ms 25028 KB Output is correct
5 Correct 100 ms 23796 KB Output is correct
6 Correct 98 ms 26520 KB Output is correct
7 Correct 99 ms 24556 KB Output is correct
8 Correct 95 ms 25144 KB Output is correct
9 Correct 91 ms 23136 KB Output is correct
10 Correct 88 ms 22932 KB Output is correct
11 Correct 68 ms 21280 KB Output is correct
12 Correct 61 ms 21032 KB Output is correct
13 Correct 61 ms 21280 KB Output is correct
14 Correct 61 ms 20804 KB Output is correct
15 Correct 45 ms 20428 KB Output is correct
16 Correct 51 ms 20080 KB Output is correct
17 Correct 9 ms 13524 KB Output is correct
18 Correct 9 ms 13524 KB Output is correct
19 Correct 10 ms 13396 KB Output is correct
20 Correct 10 ms 13396 KB Output is correct
21 Correct 9 ms 13268 KB Output is correct
22 Correct 9 ms 13292 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 10580 KB Output is correct
2 Correct 6 ms 10580 KB Output is correct
3 Correct 6 ms 10636 KB Output is correct
4 Correct 6 ms 10708 KB Output is correct
5 Correct 6 ms 10644 KB Output is correct
6 Correct 6 ms 10696 KB Output is correct
7 Correct 6 ms 10704 KB Output is correct
8 Correct 6 ms 10708 KB Output is correct
9 Correct 6 ms 10708 KB Output is correct
10 Correct 6 ms 10580 KB Output is correct
11 Correct 6 ms 10584 KB Output is correct
12 Correct 6 ms 10580 KB Output is correct
13 Correct 6 ms 10580 KB Output is correct
14 Correct 6 ms 10580 KB Output is correct
15 Correct 6 ms 10580 KB Output is correct
16 Correct 6 ms 10580 KB Output is correct
17 Correct 6 ms 10588 KB Output is correct
18 Correct 6 ms 10580 KB Output is correct
19 Correct 6 ms 10580 KB Output is correct
20 Correct 7 ms 10636 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 74 ms 22260 KB Output is correct
2 Correct 77 ms 23480 KB Output is correct
3 Correct 77 ms 23432 KB Output is correct
4 Correct 83 ms 23556 KB Output is correct
5 Correct 79 ms 23424 KB Output is correct
6 Correct 115 ms 33308 KB Output is correct
7 Correct 111 ms 29684 KB Output is correct
8 Correct 105 ms 28100 KB Output is correct
9 Correct 89 ms 26684 KB Output is correct
10 Correct 85 ms 23340 KB Output is correct
11 Correct 73 ms 23388 KB Output is correct
12 Correct 93 ms 23372 KB Output is correct
13 Correct 88 ms 23124 KB Output is correct
14 Correct 75 ms 22808 KB Output is correct
15 Correct 68 ms 22476 KB Output is correct
16 Correct 49 ms 20328 KB Output is correct
17 Correct 45 ms 21664 KB Output is correct
18 Correct 53 ms 21684 KB Output is correct
19 Correct 49 ms 21824 KB Output is correct
20 Correct 49 ms 21704 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 7 ms 10580 KB Output is correct
2 Correct 6 ms 10636 KB Output is correct
3 Correct 6 ms 10644 KB Output is correct
4 Correct 6 ms 10580 KB Output is correct
5 Correct 6 ms 10508 KB Output is correct
6 Correct 7 ms 10580 KB Output is correct
7 Correct 6 ms 10580 KB Output is correct
8 Correct 6 ms 10580 KB Output is correct
9 Correct 6 ms 10616 KB Output is correct
10 Correct 6 ms 10508 KB Output is correct
11 Correct 6 ms 10580 KB Output is correct
12 Correct 6 ms 10708 KB Output is correct
13 Correct 7 ms 10648 KB Output is correct
14 Correct 6 ms 10708 KB Output is correct
15 Correct 6 ms 10668 KB Output is correct
16 Correct 6 ms 10636 KB Output is correct
17 Correct 6 ms 10580 KB Output is correct
18 Correct 7 ms 10580 KB Output is correct
19 Correct 7 ms 10636 KB Output is correct
20 Correct 6 ms 10580 KB Output is correct
21 Correct 6 ms 10592 KB Output is correct
22 Correct 6 ms 10580 KB Output is correct
23 Correct 6 ms 10580 KB Output is correct
24 Correct 6 ms 10580 KB Output is correct
25 Correct 6 ms 10580 KB Output is correct
26 Correct 6 ms 10580 KB Output is correct
27 Correct 6 ms 10452 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 80 ms 22168 KB Output is correct
2 Correct 102 ms 23680 KB Output is correct
3 Correct 82 ms 22984 KB Output is correct
4 Correct 92 ms 21664 KB Output is correct
5 Correct 87 ms 19952 KB Output is correct
6 Correct 66 ms 19252 KB Output is correct
7 Correct 75 ms 18776 KB Output is correct
8 Correct 76 ms 18436 KB Output is correct
9 Correct 60 ms 18140 KB Output is correct
10 Correct 67 ms 18012 KB Output is correct
11 Correct 70 ms 17800 KB Output is correct
12 Correct 58 ms 17816 KB Output is correct
13 Correct 57 ms 17740 KB Output is correct
14 Correct 71 ms 19332 KB Output is correct
15 Correct 105 ms 29244 KB Output is correct
16 Correct 99 ms 27092 KB Output is correct
17 Correct 107 ms 27532 KB Output is correct
18 Correct 99 ms 25692 KB Output is correct
19 Correct 107 ms 21576 KB Output is correct
20 Correct 96 ms 21420 KB Output is correct
21 Correct 85 ms 21432 KB Output is correct
22 Correct 78 ms 20920 KB Output is correct
23 Correct 67 ms 20600 KB Output is correct
24 Correct 87 ms 22660 KB Output is correct
25 Correct 80 ms 22736 KB Output is correct
26 Correct 77 ms 22012 KB Output is correct
27 Correct 82 ms 21924 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 10452 KB Output is correct
2 Correct 5 ms 10428 KB Output is correct
3 Correct 6 ms 10536 KB Output is correct
4 Correct 5 ms 10452 KB Output is correct
5 Correct 5 ms 10452 KB Output is correct
6 Correct 5 ms 10416 KB Output is correct
7 Correct 5 ms 10452 KB Output is correct
8 Correct 6 ms 10452 KB Output is correct
9 Correct 7 ms 10512 KB Output is correct
10 Correct 6 ms 10452 KB Output is correct
11 Correct 6 ms 10452 KB Output is correct
12 Correct 6 ms 10452 KB Output is correct
13 Correct 5 ms 10452 KB Output is correct
14 Correct 5 ms 10452 KB Output is correct
15 Correct 5 ms 10452 KB Output is correct
16 Correct 7 ms 10452 KB Output is correct
17 Correct 6 ms 10512 KB Output is correct
18 Correct 5 ms 10504 KB Output is correct
19 Correct 6 ms 10504 KB Output is correct
20 Correct 6 ms 10508 KB Output is correct
21 Correct 6 ms 10452 KB Output is correct
22 Correct 6 ms 10500 KB Output is correct
23 Correct 6 ms 10452 KB Output is correct
24 Correct 6 ms 10580 KB Output is correct
25 Correct 6 ms 10444 KB Output is correct
26 Correct 6 ms 10500 KB Output is correct
27 Correct 8 ms 10500 KB Output is correct
28 Correct 6 ms 10500 KB Output is correct
29 Correct 6 ms 10452 KB Output is correct
30 Correct 6 ms 10452 KB Output is correct
31 Correct 5 ms 10452 KB Output is correct
32 Correct 6 ms 10452 KB Output is correct
33 Correct 6 ms 10452 KB Output is correct
34 Correct 7 ms 10452 KB Output is correct
35 Correct 7 ms 10504 KB Output is correct
36 Correct 6 ms 10508 KB Output is correct
37 Correct 7 ms 10504 KB Output is correct
38 Correct 7 ms 10452 KB Output is correct
39 Correct 7 ms 10452 KB Output is correct
40 Correct 6 ms 10452 KB Output is correct
41 Correct 7 ms 10504 KB Output is correct
42 Correct 6 ms 10496 KB Output is correct
43 Correct 6 ms 10452 KB Output is correct
44 Correct 7 ms 10500 KB Output is correct
45 Correct 7 ms 10452 KB Output is correct
46 Correct 6 ms 10452 KB Output is correct
47 Correct 7 ms 10452 KB Output is correct
48 Correct 7 ms 10504 KB Output is correct
49 Correct 6 ms 10544 KB Output is correct
50 Correct 6 ms 10452 KB Output is correct
51 Correct 6 ms 10452 KB Output is correct
52 Correct 7 ms 10480 KB Output is correct
53 Correct 8 ms 10452 KB Output is correct
54 Correct 8 ms 10452 KB Output is correct
55 Correct 7 ms 10452 KB Output is correct
56 Correct 7 ms 10452 KB Output is correct
57 Correct 8 ms 10580 KB Output is correct
58 Correct 7 ms 10520 KB Output is correct
59 Correct 7 ms 10500 KB Output is correct
60 Correct 9 ms 10452 KB Output is correct
61 Correct 7 ms 10504 KB Output is correct
62 Correct 6 ms 10452 KB Output is correct
63 Correct 6 ms 10504 KB Output is correct
64 Correct 6 ms 10504 KB Output is correct
65 Correct 5 ms 10452 KB Output is correct
66 Correct 6 ms 10500 KB Output is correct
67 Correct 6 ms 10580 KB Output is correct
68 Correct 6 ms 10580 KB Output is correct
69 Correct 6 ms 10580 KB Output is correct
70 Correct 6 ms 10560 KB Output is correct
71 Correct 6 ms 10580 KB Output is correct
72 Correct 6 ms 10580 KB Output is correct
73 Correct 6 ms 10580 KB Output is correct
74 Correct 7 ms 10580 KB Output is correct
75 Correct 6 ms 10580 KB Output is correct
76 Correct 6 ms 10452 KB Output is correct
77 Correct 6 ms 10572 KB Output is correct
78 Correct 6 ms 10580 KB Output is correct
79 Correct 6 ms 10580 KB Output is correct
80 Correct 5 ms 10512 KB Output is correct
81 Correct 6 ms 10584 KB Output is correct
82 Correct 6 ms 10640 KB Output is correct
83 Correct 6 ms 10640 KB Output is correct
84 Correct 6 ms 10580 KB Output is correct
85 Correct 6 ms 10644 KB Output is correct
86 Correct 6 ms 10580 KB Output is correct
87 Correct 6 ms 10580 KB Output is correct
88 Correct 6 ms 10580 KB Output is correct
89 Correct 6 ms 10544 KB Output is correct
90 Correct 6 ms 10552 KB Output is correct
91 Correct 6 ms 10520 KB Output is correct
92 Correct 6 ms 10508 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 6 ms 10452 KB Output is correct
2 Correct 5 ms 10428 KB Output is correct
3 Correct 6 ms 10536 KB Output is correct
4 Correct 5 ms 10452 KB Output is correct
5 Correct 5 ms 10452 KB Output is correct
6 Correct 5 ms 10416 KB Output is correct
7 Correct 5 ms 10452 KB Output is correct
8 Correct 6 ms 10452 KB Output is correct
9 Correct 7 ms 10512 KB Output is correct
10 Correct 6 ms 10452 KB Output is correct
11 Correct 6 ms 10452 KB Output is correct
12 Correct 6 ms 10452 KB Output is correct
13 Correct 5 ms 10452 KB Output is correct
14 Correct 5 ms 10452 KB Output is correct
15 Correct 5 ms 10452 KB Output is correct
16 Correct 7 ms 10452 KB Output is correct
17 Correct 6 ms 10512 KB Output is correct
18 Correct 5 ms 10504 KB Output is correct
19 Correct 6 ms 10504 KB Output is correct
20 Correct 6 ms 10508 KB Output is correct
21 Correct 6 ms 10452 KB Output is correct
22 Correct 6 ms 10500 KB Output is correct
23 Correct 6 ms 10452 KB Output is correct
24 Correct 6 ms 10580 KB Output is correct
25 Correct 6 ms 10444 KB Output is correct
26 Correct 6 ms 10500 KB Output is correct
27 Correct 8 ms 10500 KB Output is correct
28 Correct 6 ms 10500 KB Output is correct
29 Correct 6 ms 10452 KB Output is correct
30 Correct 6 ms 10452 KB Output is correct
31 Correct 5 ms 10452 KB Output is correct
32 Correct 6 ms 10452 KB Output is correct
33 Correct 6 ms 10452 KB Output is correct
34 Correct 7 ms 10452 KB Output is correct
35 Correct 7 ms 10504 KB Output is correct
36 Correct 6 ms 10508 KB Output is correct
37 Correct 7 ms 10504 KB Output is correct
38 Correct 7 ms 10452 KB Output is correct
39 Correct 7 ms 10452 KB Output is correct
40 Correct 6 ms 10452 KB Output is correct
41 Correct 7 ms 10504 KB Output is correct
42 Correct 6 ms 10496 KB Output is correct
43 Correct 6 ms 10452 KB Output is correct
44 Correct 7 ms 10500 KB Output is correct
45 Correct 7 ms 10452 KB Output is correct
46 Correct 6 ms 10452 KB Output is correct
47 Correct 7 ms 10452 KB Output is correct
48 Correct 7 ms 10504 KB Output is correct
49 Correct 6 ms 10544 KB Output is correct
50 Correct 6 ms 10452 KB Output is correct
51 Correct 6 ms 10452 KB Output is correct
52 Correct 7 ms 10480 KB Output is correct
53 Correct 8 ms 10452 KB Output is correct
54 Correct 8 ms 10452 KB Output is correct
55 Correct 7 ms 10452 KB Output is correct
56 Correct 7 ms 10452 KB Output is correct
57 Correct 8 ms 10580 KB Output is correct
58 Correct 7 ms 10520 KB Output is correct
59 Correct 7 ms 10500 KB Output is correct
60 Correct 9 ms 10452 KB Output is correct
61 Correct 7 ms 10504 KB Output is correct
62 Correct 6 ms 10452 KB Output is correct
63 Correct 6 ms 10504 KB Output is correct
64 Correct 6 ms 10504 KB Output is correct
65 Correct 5 ms 10452 KB Output is correct
66 Correct 73 ms 23196 KB Output is correct
67 Correct 73 ms 23188 KB Output is correct
68 Correct 80 ms 26064 KB Output is correct
69 Correct 97 ms 25028 KB Output is correct
70 Correct 100 ms 23796 KB Output is correct
71 Correct 98 ms 26520 KB Output is correct
72 Correct 99 ms 24556 KB Output is correct
73 Correct 95 ms 25144 KB Output is correct
74 Correct 91 ms 23136 KB Output is correct
75 Correct 88 ms 22932 KB Output is correct
76 Correct 68 ms 21280 KB Output is correct
77 Correct 61 ms 21032 KB Output is correct
78 Correct 61 ms 21280 KB Output is correct
79 Correct 61 ms 20804 KB Output is correct
80 Correct 45 ms 20428 KB Output is correct
81 Correct 51 ms 20080 KB Output is correct
82 Correct 9 ms 13524 KB Output is correct
83 Correct 9 ms 13524 KB Output is correct
84 Correct 10 ms 13396 KB Output is correct
85 Correct 10 ms 13396 KB Output is correct
86 Correct 9 ms 13268 KB Output is correct
87 Correct 9 ms 13292 KB Output is correct
88 Correct 6 ms 10580 KB Output is correct
89 Correct 6 ms 10580 KB Output is correct
90 Correct 6 ms 10636 KB Output is correct
91 Correct 6 ms 10708 KB Output is correct
92 Correct 6 ms 10644 KB Output is correct
93 Correct 6 ms 10696 KB Output is correct
94 Correct 6 ms 10704 KB Output is correct
95 Correct 6 ms 10708 KB Output is correct
96 Correct 6 ms 10708 KB Output is correct
97 Correct 6 ms 10580 KB Output is correct
98 Correct 6 ms 10584 KB Output is correct
99 Correct 6 ms 10580 KB Output is correct
100 Correct 6 ms 10580 KB Output is correct
101 Correct 6 ms 10580 KB Output is correct
102 Correct 6 ms 10580 KB Output is correct
103 Correct 6 ms 10580 KB Output is correct
104 Correct 6 ms 10588 KB Output is correct
105 Correct 6 ms 10580 KB Output is correct
106 Correct 6 ms 10580 KB Output is correct
107 Correct 7 ms 10636 KB Output is correct
108 Correct 74 ms 22260 KB Output is correct
109 Correct 77 ms 23480 KB Output is correct
110 Correct 77 ms 23432 KB Output is correct
111 Correct 83 ms 23556 KB Output is correct
112 Correct 79 ms 23424 KB Output is correct
113 Correct 115 ms 33308 KB Output is correct
114 Correct 111 ms 29684 KB Output is correct
115 Correct 105 ms 28100 KB Output is correct
116 Correct 89 ms 26684 KB Output is correct
117 Correct 85 ms 23340 KB Output is correct
118 Correct 73 ms 23388 KB Output is correct
119 Correct 93 ms 23372 KB Output is correct
120 Correct 88 ms 23124 KB Output is correct
121 Correct 75 ms 22808 KB Output is correct
122 Correct 68 ms 22476 KB Output is correct
123 Correct 49 ms 20328 KB Output is correct
124 Correct 45 ms 21664 KB Output is correct
125 Correct 53 ms 21684 KB Output is correct
126 Correct 49 ms 21824 KB Output is correct
127 Correct 49 ms 21704 KB Output is correct
128 Correct 7 ms 10580 KB Output is correct
129 Correct 6 ms 10636 KB Output is correct
130 Correct 6 ms 10644 KB Output is correct
131 Correct 6 ms 10580 KB Output is correct
132 Correct 6 ms 10508 KB Output is correct
133 Correct 7 ms 10580 KB Output is correct
134 Correct 6 ms 10580 KB Output is correct
135 Correct 6 ms 10580 KB Output is correct
136 Correct 6 ms 10616 KB Output is correct
137 Correct 6 ms 10508 KB Output is correct
138 Correct 6 ms 10580 KB Output is correct
139 Correct 6 ms 10708 KB Output is correct
140 Correct 7 ms 10648 KB Output is correct
141 Correct 6 ms 10708 KB Output is correct
142 Correct 6 ms 10668 KB Output is correct
143 Correct 6 ms 10636 KB Output is correct
144 Correct 6 ms 10580 KB Output is correct
145 Correct 7 ms 10580 KB Output is correct
146 Correct 7 ms 10636 KB Output is correct
147 Correct 6 ms 10580 KB Output is correct
148 Correct 6 ms 10592 KB Output is correct
149 Correct 6 ms 10580 KB Output is correct
150 Correct 6 ms 10580 KB Output is correct
151 Correct 6 ms 10580 KB Output is correct
152 Correct 6 ms 10580 KB Output is correct
153 Correct 6 ms 10580 KB Output is correct
154 Correct 6 ms 10452 KB Output is correct
155 Correct 80 ms 22168 KB Output is correct
156 Correct 102 ms 23680 KB Output is correct
157 Correct 82 ms 22984 KB Output is correct
158 Correct 92 ms 21664 KB Output is correct
159 Correct 87 ms 19952 KB Output is correct
160 Correct 66 ms 19252 KB Output is correct
161 Correct 75 ms 18776 KB Output is correct
162 Correct 76 ms 18436 KB Output is correct
163 Correct 60 ms 18140 KB Output is correct
164 Correct 67 ms 18012 KB Output is correct
165 Correct 70 ms 17800 KB Output is correct
166 Correct 58 ms 17816 KB Output is correct
167 Correct 57 ms 17740 KB Output is correct
168 Correct 71 ms 19332 KB Output is correct
169 Correct 105 ms 29244 KB Output is correct
170 Correct 99 ms 27092 KB Output is correct
171 Correct 107 ms 27532 KB Output is correct
172 Correct 99 ms 25692 KB Output is correct
173 Correct 107 ms 21576 KB Output is correct
174 Correct 96 ms 21420 KB Output is correct
175 Correct 85 ms 21432 KB Output is correct
176 Correct 78 ms 20920 KB Output is correct
177 Correct 67 ms 20600 KB Output is correct
178 Correct 87 ms 22660 KB Output is correct
179 Correct 80 ms 22736 KB Output is correct
180 Correct 77 ms 22012 KB Output is correct
181 Correct 82 ms 21924 KB Output is correct
182 Correct 6 ms 10500 KB Output is correct
183 Correct 6 ms 10580 KB Output is correct
184 Correct 6 ms 10580 KB Output is correct
185 Correct 6 ms 10580 KB Output is correct
186 Correct 6 ms 10560 KB Output is correct
187 Correct 6 ms 10580 KB Output is correct
188 Correct 6 ms 10580 KB Output is correct
189 Correct 6 ms 10580 KB Output is correct
190 Correct 7 ms 10580 KB Output is correct
191 Correct 6 ms 10580 KB Output is correct
192 Correct 6 ms 10452 KB Output is correct
193 Correct 6 ms 10572 KB Output is correct
194 Correct 6 ms 10580 KB Output is correct
195 Correct 6 ms 10580 KB Output is correct
196 Correct 5 ms 10512 KB Output is correct
197 Correct 6 ms 10584 KB Output is correct
198 Correct 6 ms 10640 KB Output is correct
199 Correct 6 ms 10640 KB Output is correct
200 Correct 6 ms 10580 KB Output is correct
201 Correct 6 ms 10644 KB Output is correct
202 Correct 6 ms 10580 KB Output is correct
203 Correct 6 ms 10580 KB Output is correct
204 Correct 6 ms 10580 KB Output is correct
205 Correct 6 ms 10544 KB Output is correct
206 Correct 6 ms 10552 KB Output is correct
207 Correct 6 ms 10520 KB Output is correct
208 Correct 6 ms 10508 KB Output is correct
209 Correct 8 ms 12548 KB Output is correct
210 Correct 47 ms 19532 KB Output is correct
211 Correct 77 ms 21928 KB Output is correct
212 Correct 92 ms 23200 KB Output is correct
213 Correct 121 ms 24508 KB Output is correct
214 Correct 47 ms 20592 KB Output is correct
215 Correct 49 ms 20068 KB Output is correct
216 Correct 89 ms 22048 KB Output is correct
217 Correct 75 ms 20332 KB Output is correct
218 Correct 77 ms 18464 KB Output is correct
219 Correct 75 ms 18016 KB Output is correct
220 Correct 78 ms 17868 KB Output is correct
221 Correct 82 ms 17688 KB Output is correct
222 Correct 67 ms 17988 KB Output is correct
223 Correct 87 ms 22984 KB Output is correct
224 Correct 89 ms 22256 KB Output is correct
225 Correct 80 ms 20028 KB Output is correct
226 Correct 83 ms 19812 KB Output is correct
227 Correct 85 ms 19872 KB Output is correct
228 Correct 68 ms 19736 KB Output is correct
229 Correct 72 ms 20044 KB Output is correct
230 Correct 76 ms 19264 KB Output is correct
231 Correct 73 ms 19428 KB Output is correct