Submission #232069

# Submission time Handle Problem Language Result Execution time Memory
232069 2020-05-16T00:04:56 Z AQT Duathlon (APIO18_duathlon) C++14
100 / 100
181 ms 42212 KB
// Problem : APIO '18 P3 - Duathlon
// Contest : DMOJ
// URL : https://dmoj.ca/problem/apio18p3
// Memory Limit : 1 MB
// Time Limit : 600 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include <bits/stdc++.h>

using namespace std;

int N, M;
vector<int> graph[100005], cgraph[500005];
vector<pair<int, int>> stk;
vector<vector<pair<int, int>>> cmp;
int par[500005], dfn[500005], low[500005], t;
long long sz[500005], csz[500005];
long long ans;

void dfs1(int n){
	low[n] = dfn[n] = ++t;
	int c = 0;
	for(int e : graph[n]){
		if(e == par[n]){
			continue;
		}
		if(!dfn[e]){
			c++;
			par[e] = n;
			stk.emplace_back(n, e);					
			dfs1(e);
			low[n] = min(low[n], low[e]);
			if((!par[n] && c >= 2) || (par[n] && low[e] >= dfn[n])){
				//cout << "enter: " << n << "\n";
				pair<int, int> edg = {0, 0};
				vector<pair<int, int>> tmp;
				do{
					edg = stk.back();
					stk.pop_back();
					tmp.push_back(edg);
					//cout << "indfs: " << edg.first << " " << edg.second << "\n";
				}
				while(edg != make_pair(n, e));
				cmp.push_back(tmp);
			}
		}
		else if(dfn[e] < dfn[n]){
			low[n] = min(dfn[e], low[n]);
			stk.emplace_back(n, e);		
		}
	}
}

void dfs2(int n){
	sz[n] = n <= N;
	for(int e : cgraph[n]){
		if(e != par[n]){
			par[e] = n;
			dfs2(e);
			sz[n] += sz[e];
		}
	}
	if(n > N){
		csz[n] = cgraph[n].size();
	}
}

void dfs3(int n, long long tot){
	if(n > N){
		ans -= (csz[n]-1) * (tot-sz[n]) * (tot-sz[n]-1);
	}
	for(int e : cgraph[n]){
		if(n <= N && e == par[n]){
			ans -= (csz[e]-1)*sz[n]*(sz[n]-1);
		}
		if(e != par[n]){
			dfs3(e, tot);
		}
	}
}

int main(){
	cin.sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	cin >> N >> M;
	for(int i = 1; i<=M; i++){
		int a, b;
		cin >> a >> b;
		graph[a].push_back(b);
		graph[b].push_back(a);
	}
	int C = N;
	for(int i = 1; i<=N; i++){
		if(!dfn[i]){
			dfs1(i);
			if(stk.size()){
				cmp.push_back(stk);
				stk.clear();
			}
			for(auto v : cmp){
				++C;
				for(auto p : v){
					//cout << p.first << " " << p.second << "\n";
					cgraph[C].push_back(p.second);
					cgraph[C].push_back(p.first);
				}
				//cout << "\n";
				sort(cgraph[C].begin(), cgraph[C].end());
				cgraph[C].erase(unique(cgraph[C].begin(), cgraph[C].end()), cgraph[C].end());
				for(int n : cgraph[C]){
					cgraph[n].push_back(C);
				}
			}
			dfs2(i);
			dfs3(i, sz[i]);
			ans += sz[i] * (sz[i]-1) * (sz[i] -2);
			cmp.clear();
		}
	}
	cout << ans << "\n";
}
# Verdict Execution time Memory Grader output
1 Correct 13 ms 14464 KB Output is correct
2 Correct 13 ms 14464 KB Output is correct
3 Correct 13 ms 14464 KB Output is correct
4 Correct 13 ms 14464 KB Output is correct
5 Correct 13 ms 14464 KB Output is correct
6 Correct 13 ms 14464 KB Output is correct
7 Correct 15 ms 14464 KB Output is correct
8 Correct 13 ms 14464 KB Output is correct
9 Correct 13 ms 14464 KB Output is correct
10 Correct 15 ms 14464 KB Output is correct
11 Correct 13 ms 14464 KB Output is correct
12 Correct 14 ms 14464 KB Output is correct
13 Correct 12 ms 14464 KB Output is correct
14 Correct 13 ms 14464 KB Output is correct
15 Correct 15 ms 14464 KB Output is correct
16 Correct 13 ms 14464 KB Output is correct
17 Correct 13 ms 14464 KB Output is correct
18 Correct 13 ms 14464 KB Output is correct
19 Correct 14 ms 14464 KB Output is correct
20 Correct 12 ms 14464 KB Output is correct
21 Correct 12 ms 14464 KB Output is correct
22 Correct 13 ms 14464 KB Output is correct
23 Correct 12 ms 14464 KB Output is correct
24 Correct 13 ms 14464 KB Output is correct
25 Correct 12 ms 14464 KB Output is correct
26 Correct 13 ms 14464 KB Output is correct
27 Correct 13 ms 14464 KB Output is correct
28 Correct 12 ms 14464 KB Output is correct
29 Correct 12 ms 14464 KB Output is correct
30 Correct 13 ms 14464 KB Output is correct
31 Correct 13 ms 14464 KB Output is correct
32 Correct 13 ms 14464 KB Output is correct
33 Correct 14 ms 14464 KB Output is correct
34 Correct 13 ms 14464 KB Output is correct
35 Correct 13 ms 14464 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 14464 KB Output is correct
2 Correct 13 ms 14464 KB Output is correct
3 Correct 13 ms 14464 KB Output is correct
4 Correct 13 ms 14464 KB Output is correct
5 Correct 13 ms 14464 KB Output is correct
6 Correct 13 ms 14464 KB Output is correct
7 Correct 15 ms 14464 KB Output is correct
8 Correct 13 ms 14464 KB Output is correct
9 Correct 13 ms 14464 KB Output is correct
10 Correct 15 ms 14464 KB Output is correct
11 Correct 13 ms 14464 KB Output is correct
12 Correct 14 ms 14464 KB Output is correct
13 Correct 12 ms 14464 KB Output is correct
14 Correct 13 ms 14464 KB Output is correct
15 Correct 15 ms 14464 KB Output is correct
16 Correct 13 ms 14464 KB Output is correct
17 Correct 13 ms 14464 KB Output is correct
18 Correct 13 ms 14464 KB Output is correct
19 Correct 14 ms 14464 KB Output is correct
20 Correct 12 ms 14464 KB Output is correct
21 Correct 12 ms 14464 KB Output is correct
22 Correct 13 ms 14464 KB Output is correct
23 Correct 12 ms 14464 KB Output is correct
24 Correct 13 ms 14464 KB Output is correct
25 Correct 12 ms 14464 KB Output is correct
26 Correct 13 ms 14464 KB Output is correct
27 Correct 13 ms 14464 KB Output is correct
28 Correct 12 ms 14464 KB Output is correct
29 Correct 12 ms 14464 KB Output is correct
30 Correct 13 ms 14464 KB Output is correct
31 Correct 13 ms 14464 KB Output is correct
32 Correct 13 ms 14464 KB Output is correct
33 Correct 14 ms 14464 KB Output is correct
34 Correct 13 ms 14464 KB Output is correct
35 Correct 13 ms 14464 KB Output is correct
36 Correct 13 ms 14464 KB Output is correct
37 Correct 13 ms 14464 KB Output is correct
38 Correct 13 ms 14464 KB Output is correct
39 Correct 12 ms 14464 KB Output is correct
40 Correct 13 ms 14464 KB Output is correct
41 Correct 13 ms 14464 KB Output is correct
42 Correct 13 ms 14464 KB Output is correct
43 Correct 13 ms 14464 KB Output is correct
44 Correct 14 ms 14464 KB Output is correct
45 Correct 14 ms 14464 KB Output is correct
46 Correct 14 ms 14464 KB Output is correct
47 Correct 14 ms 14464 KB Output is correct
48 Correct 13 ms 14464 KB Output is correct
49 Correct 13 ms 14464 KB Output is correct
50 Correct 13 ms 14464 KB Output is correct
51 Correct 12 ms 14464 KB Output is correct
52 Correct 14 ms 14464 KB Output is correct
53 Correct 13 ms 14464 KB Output is correct
54 Correct 13 ms 14464 KB Output is correct
55 Correct 12 ms 14464 KB Output is correct
56 Correct 13 ms 14464 KB Output is correct
57 Correct 12 ms 14464 KB Output is correct
58 Correct 12 ms 14464 KB Output is correct
59 Correct 13 ms 14464 KB Output is correct
60 Correct 13 ms 14464 KB Output is correct
61 Correct 13 ms 14464 KB Output is correct
62 Correct 13 ms 14464 KB Output is correct
63 Correct 13 ms 14464 KB Output is correct
64 Correct 12 ms 14464 KB Output is correct
65 Correct 12 ms 14464 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 108 ms 37612 KB Output is correct
2 Correct 107 ms 37608 KB Output is correct
3 Correct 136 ms 35164 KB Output is correct
4 Correct 113 ms 36264 KB Output is correct
5 Correct 119 ms 31316 KB Output is correct
6 Correct 129 ms 33896 KB Output is correct
7 Correct 125 ms 29996 KB Output is correct
8 Correct 128 ms 31012 KB Output is correct
9 Correct 125 ms 28248 KB Output is correct
10 Correct 120 ms 29100 KB Output is correct
11 Correct 101 ms 25464 KB Output is correct
12 Correct 109 ms 26276 KB Output is correct
13 Correct 96 ms 25976 KB Output is correct
14 Correct 93 ms 25720 KB Output is correct
15 Correct 71 ms 24440 KB Output is correct
16 Correct 72 ms 24188 KB Output is correct
17 Correct 15 ms 16384 KB Output is correct
18 Correct 15 ms 16384 KB Output is correct
19 Correct 15 ms 16256 KB Output is correct
20 Correct 18 ms 16384 KB Output is correct
21 Correct 16 ms 16256 KB Output is correct
22 Correct 15 ms 16256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 14720 KB Output is correct
2 Correct 13 ms 14592 KB Output is correct
3 Correct 13 ms 14592 KB Output is correct
4 Correct 13 ms 14848 KB Output is correct
5 Correct 13 ms 14720 KB Output is correct
6 Correct 13 ms 14720 KB Output is correct
7 Correct 14 ms 14720 KB Output is correct
8 Correct 13 ms 14720 KB Output is correct
9 Correct 13 ms 14720 KB Output is correct
10 Correct 13 ms 14720 KB Output is correct
11 Correct 13 ms 14592 KB Output is correct
12 Correct 14 ms 14592 KB Output is correct
13 Correct 13 ms 14592 KB Output is correct
14 Correct 13 ms 14592 KB Output is correct
15 Correct 13 ms 14592 KB Output is correct
16 Correct 14 ms 14592 KB Output is correct
17 Correct 13 ms 14720 KB Output is correct
18 Correct 14 ms 14720 KB Output is correct
19 Correct 13 ms 14720 KB Output is correct
20 Correct 13 ms 14720 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 134 ms 33448 KB Output is correct
2 Correct 154 ms 33444 KB Output is correct
3 Correct 142 ms 33444 KB Output is correct
4 Correct 142 ms 33440 KB Output is correct
5 Correct 156 ms 33444 KB Output is correct
6 Correct 157 ms 42212 KB Output is correct
7 Correct 147 ms 39268 KB Output is correct
8 Correct 165 ms 37676 KB Output is correct
9 Correct 160 ms 36260 KB Output is correct
10 Correct 143 ms 30636 KB Output is correct
11 Correct 139 ms 32220 KB Output is correct
12 Correct 137 ms 29744 KB Output is correct
13 Correct 141 ms 28972 KB Output is correct
14 Correct 132 ms 28408 KB Output is correct
15 Correct 118 ms 27516 KB Output is correct
16 Correct 71 ms 24312 KB Output is correct
17 Correct 107 ms 35300 KB Output is correct
18 Correct 106 ms 35356 KB Output is correct
19 Correct 116 ms 35356 KB Output is correct
20 Correct 118 ms 35364 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 14592 KB Output is correct
2 Correct 13 ms 14720 KB Output is correct
3 Correct 13 ms 14592 KB Output is correct
4 Correct 17 ms 14592 KB Output is correct
5 Correct 15 ms 14592 KB Output is correct
6 Correct 13 ms 14628 KB Output is correct
7 Correct 13 ms 14592 KB Output is correct
8 Correct 14 ms 14592 KB Output is correct
9 Correct 13 ms 14592 KB Output is correct
10 Correct 13 ms 14592 KB Output is correct
11 Correct 13 ms 14592 KB Output is correct
12 Correct 13 ms 14720 KB Output is correct
13 Correct 14 ms 14720 KB Output is correct
14 Correct 13 ms 14720 KB Output is correct
15 Correct 13 ms 14720 KB Output is correct
16 Correct 13 ms 14592 KB Output is correct
17 Correct 13 ms 14592 KB Output is correct
18 Correct 13 ms 14592 KB Output is correct
19 Correct 15 ms 14720 KB Output is correct
20 Correct 13 ms 14592 KB Output is correct
21 Correct 13 ms 14592 KB Output is correct
22 Correct 13 ms 14592 KB Output is correct
23 Correct 13 ms 14592 KB Output is correct
24 Correct 13 ms 14592 KB Output is correct
25 Correct 12 ms 14720 KB Output is correct
26 Correct 14 ms 14464 KB Output is correct
27 Correct 12 ms 14464 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 140 ms 33620 KB Output is correct
2 Correct 139 ms 33440 KB Output is correct
3 Correct 143 ms 31780 KB Output is correct
4 Correct 139 ms 29880 KB Output is correct
5 Correct 124 ms 27688 KB Output is correct
6 Correct 114 ms 26672 KB Output is correct
7 Correct 111 ms 26288 KB Output is correct
8 Correct 111 ms 25908 KB Output is correct
9 Correct 104 ms 25524 KB Output is correct
10 Correct 100 ms 25464 KB Output is correct
11 Correct 106 ms 25208 KB Output is correct
12 Correct 97 ms 25084 KB Output is correct
13 Correct 94 ms 25084 KB Output is correct
14 Correct 97 ms 28008 KB Output is correct
15 Correct 155 ms 37988 KB Output is correct
16 Correct 159 ms 35988 KB Output is correct
17 Correct 149 ms 36068 KB Output is correct
18 Correct 151 ms 34328 KB Output is correct
19 Correct 137 ms 29228 KB Output is correct
20 Correct 140 ms 27792 KB Output is correct
21 Correct 137 ms 27440 KB Output is correct
22 Correct 131 ms 25756 KB Output is correct
23 Correct 109 ms 26344 KB Output is correct
24 Correct 134 ms 33572 KB Output is correct
25 Correct 133 ms 33708 KB Output is correct
26 Correct 129 ms 32308 KB Output is correct
27 Correct 134 ms 32292 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 14464 KB Output is correct
2 Correct 13 ms 14464 KB Output is correct
3 Correct 13 ms 14464 KB Output is correct
4 Correct 13 ms 14464 KB Output is correct
5 Correct 13 ms 14464 KB Output is correct
6 Correct 13 ms 14464 KB Output is correct
7 Correct 15 ms 14464 KB Output is correct
8 Correct 13 ms 14464 KB Output is correct
9 Correct 13 ms 14464 KB Output is correct
10 Correct 15 ms 14464 KB Output is correct
11 Correct 13 ms 14464 KB Output is correct
12 Correct 14 ms 14464 KB Output is correct
13 Correct 12 ms 14464 KB Output is correct
14 Correct 13 ms 14464 KB Output is correct
15 Correct 15 ms 14464 KB Output is correct
16 Correct 13 ms 14464 KB Output is correct
17 Correct 13 ms 14464 KB Output is correct
18 Correct 13 ms 14464 KB Output is correct
19 Correct 14 ms 14464 KB Output is correct
20 Correct 12 ms 14464 KB Output is correct
21 Correct 12 ms 14464 KB Output is correct
22 Correct 13 ms 14464 KB Output is correct
23 Correct 12 ms 14464 KB Output is correct
24 Correct 13 ms 14464 KB Output is correct
25 Correct 12 ms 14464 KB Output is correct
26 Correct 13 ms 14464 KB Output is correct
27 Correct 13 ms 14464 KB Output is correct
28 Correct 12 ms 14464 KB Output is correct
29 Correct 12 ms 14464 KB Output is correct
30 Correct 13 ms 14464 KB Output is correct
31 Correct 13 ms 14464 KB Output is correct
32 Correct 13 ms 14464 KB Output is correct
33 Correct 14 ms 14464 KB Output is correct
34 Correct 13 ms 14464 KB Output is correct
35 Correct 13 ms 14464 KB Output is correct
36 Correct 13 ms 14464 KB Output is correct
37 Correct 13 ms 14464 KB Output is correct
38 Correct 13 ms 14464 KB Output is correct
39 Correct 12 ms 14464 KB Output is correct
40 Correct 13 ms 14464 KB Output is correct
41 Correct 13 ms 14464 KB Output is correct
42 Correct 13 ms 14464 KB Output is correct
43 Correct 13 ms 14464 KB Output is correct
44 Correct 14 ms 14464 KB Output is correct
45 Correct 14 ms 14464 KB Output is correct
46 Correct 14 ms 14464 KB Output is correct
47 Correct 14 ms 14464 KB Output is correct
48 Correct 13 ms 14464 KB Output is correct
49 Correct 13 ms 14464 KB Output is correct
50 Correct 13 ms 14464 KB Output is correct
51 Correct 12 ms 14464 KB Output is correct
52 Correct 14 ms 14464 KB Output is correct
53 Correct 13 ms 14464 KB Output is correct
54 Correct 13 ms 14464 KB Output is correct
55 Correct 12 ms 14464 KB Output is correct
56 Correct 13 ms 14464 KB Output is correct
57 Correct 12 ms 14464 KB Output is correct
58 Correct 12 ms 14464 KB Output is correct
59 Correct 13 ms 14464 KB Output is correct
60 Correct 13 ms 14464 KB Output is correct
61 Correct 13 ms 14464 KB Output is correct
62 Correct 13 ms 14464 KB Output is correct
63 Correct 13 ms 14464 KB Output is correct
64 Correct 12 ms 14464 KB Output is correct
65 Correct 12 ms 14464 KB Output is correct
66 Correct 12 ms 14592 KB Output is correct
67 Correct 13 ms 14720 KB Output is correct
68 Correct 13 ms 14592 KB Output is correct
69 Correct 14 ms 14720 KB Output is correct
70 Correct 13 ms 14720 KB Output is correct
71 Correct 13 ms 14592 KB Output is correct
72 Correct 13 ms 14592 KB Output is correct
73 Correct 13 ms 14592 KB Output is correct
74 Correct 13 ms 14592 KB Output is correct
75 Correct 13 ms 14592 KB Output is correct
76 Correct 13 ms 14464 KB Output is correct
77 Correct 13 ms 14720 KB Output is correct
78 Correct 14 ms 14592 KB Output is correct
79 Correct 13 ms 14592 KB Output is correct
80 Correct 13 ms 14592 KB Output is correct
81 Correct 14 ms 14592 KB Output is correct
82 Correct 13 ms 14592 KB Output is correct
83 Correct 13 ms 14720 KB Output is correct
84 Correct 13 ms 14592 KB Output is correct
85 Correct 13 ms 14720 KB Output is correct
86 Correct 15 ms 14592 KB Output is correct
87 Correct 14 ms 14592 KB Output is correct
88 Correct 14 ms 14592 KB Output is correct
89 Correct 13 ms 14592 KB Output is correct
90 Correct 14 ms 14592 KB Output is correct
91 Correct 14 ms 14592 KB Output is correct
92 Correct 14 ms 14592 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 14464 KB Output is correct
2 Correct 13 ms 14464 KB Output is correct
3 Correct 13 ms 14464 KB Output is correct
4 Correct 13 ms 14464 KB Output is correct
5 Correct 13 ms 14464 KB Output is correct
6 Correct 13 ms 14464 KB Output is correct
7 Correct 15 ms 14464 KB Output is correct
8 Correct 13 ms 14464 KB Output is correct
9 Correct 13 ms 14464 KB Output is correct
10 Correct 15 ms 14464 KB Output is correct
11 Correct 13 ms 14464 KB Output is correct
12 Correct 14 ms 14464 KB Output is correct
13 Correct 12 ms 14464 KB Output is correct
14 Correct 13 ms 14464 KB Output is correct
15 Correct 15 ms 14464 KB Output is correct
16 Correct 13 ms 14464 KB Output is correct
17 Correct 13 ms 14464 KB Output is correct
18 Correct 13 ms 14464 KB Output is correct
19 Correct 14 ms 14464 KB Output is correct
20 Correct 12 ms 14464 KB Output is correct
21 Correct 12 ms 14464 KB Output is correct
22 Correct 13 ms 14464 KB Output is correct
23 Correct 12 ms 14464 KB Output is correct
24 Correct 13 ms 14464 KB Output is correct
25 Correct 12 ms 14464 KB Output is correct
26 Correct 13 ms 14464 KB Output is correct
27 Correct 13 ms 14464 KB Output is correct
28 Correct 12 ms 14464 KB Output is correct
29 Correct 12 ms 14464 KB Output is correct
30 Correct 13 ms 14464 KB Output is correct
31 Correct 13 ms 14464 KB Output is correct
32 Correct 13 ms 14464 KB Output is correct
33 Correct 14 ms 14464 KB Output is correct
34 Correct 13 ms 14464 KB Output is correct
35 Correct 13 ms 14464 KB Output is correct
36 Correct 13 ms 14464 KB Output is correct
37 Correct 13 ms 14464 KB Output is correct
38 Correct 13 ms 14464 KB Output is correct
39 Correct 12 ms 14464 KB Output is correct
40 Correct 13 ms 14464 KB Output is correct
41 Correct 13 ms 14464 KB Output is correct
42 Correct 13 ms 14464 KB Output is correct
43 Correct 13 ms 14464 KB Output is correct
44 Correct 14 ms 14464 KB Output is correct
45 Correct 14 ms 14464 KB Output is correct
46 Correct 14 ms 14464 KB Output is correct
47 Correct 14 ms 14464 KB Output is correct
48 Correct 13 ms 14464 KB Output is correct
49 Correct 13 ms 14464 KB Output is correct
50 Correct 13 ms 14464 KB Output is correct
51 Correct 12 ms 14464 KB Output is correct
52 Correct 14 ms 14464 KB Output is correct
53 Correct 13 ms 14464 KB Output is correct
54 Correct 13 ms 14464 KB Output is correct
55 Correct 12 ms 14464 KB Output is correct
56 Correct 13 ms 14464 KB Output is correct
57 Correct 12 ms 14464 KB Output is correct
58 Correct 12 ms 14464 KB Output is correct
59 Correct 13 ms 14464 KB Output is correct
60 Correct 13 ms 14464 KB Output is correct
61 Correct 13 ms 14464 KB Output is correct
62 Correct 13 ms 14464 KB Output is correct
63 Correct 13 ms 14464 KB Output is correct
64 Correct 12 ms 14464 KB Output is correct
65 Correct 12 ms 14464 KB Output is correct
66 Correct 108 ms 37612 KB Output is correct
67 Correct 107 ms 37608 KB Output is correct
68 Correct 136 ms 35164 KB Output is correct
69 Correct 113 ms 36264 KB Output is correct
70 Correct 119 ms 31316 KB Output is correct
71 Correct 129 ms 33896 KB Output is correct
72 Correct 125 ms 29996 KB Output is correct
73 Correct 128 ms 31012 KB Output is correct
74 Correct 125 ms 28248 KB Output is correct
75 Correct 120 ms 29100 KB Output is correct
76 Correct 101 ms 25464 KB Output is correct
77 Correct 109 ms 26276 KB Output is correct
78 Correct 96 ms 25976 KB Output is correct
79 Correct 93 ms 25720 KB Output is correct
80 Correct 71 ms 24440 KB Output is correct
81 Correct 72 ms 24188 KB Output is correct
82 Correct 15 ms 16384 KB Output is correct
83 Correct 15 ms 16384 KB Output is correct
84 Correct 15 ms 16256 KB Output is correct
85 Correct 18 ms 16384 KB Output is correct
86 Correct 16 ms 16256 KB Output is correct
87 Correct 15 ms 16256 KB Output is correct
88 Correct 13 ms 14720 KB Output is correct
89 Correct 13 ms 14592 KB Output is correct
90 Correct 13 ms 14592 KB Output is correct
91 Correct 13 ms 14848 KB Output is correct
92 Correct 13 ms 14720 KB Output is correct
93 Correct 13 ms 14720 KB Output is correct
94 Correct 14 ms 14720 KB Output is correct
95 Correct 13 ms 14720 KB Output is correct
96 Correct 13 ms 14720 KB Output is correct
97 Correct 13 ms 14720 KB Output is correct
98 Correct 13 ms 14592 KB Output is correct
99 Correct 14 ms 14592 KB Output is correct
100 Correct 13 ms 14592 KB Output is correct
101 Correct 13 ms 14592 KB Output is correct
102 Correct 13 ms 14592 KB Output is correct
103 Correct 14 ms 14592 KB Output is correct
104 Correct 13 ms 14720 KB Output is correct
105 Correct 14 ms 14720 KB Output is correct
106 Correct 13 ms 14720 KB Output is correct
107 Correct 13 ms 14720 KB Output is correct
108 Correct 134 ms 33448 KB Output is correct
109 Correct 154 ms 33444 KB Output is correct
110 Correct 142 ms 33444 KB Output is correct
111 Correct 142 ms 33440 KB Output is correct
112 Correct 156 ms 33444 KB Output is correct
113 Correct 157 ms 42212 KB Output is correct
114 Correct 147 ms 39268 KB Output is correct
115 Correct 165 ms 37676 KB Output is correct
116 Correct 160 ms 36260 KB Output is correct
117 Correct 143 ms 30636 KB Output is correct
118 Correct 139 ms 32220 KB Output is correct
119 Correct 137 ms 29744 KB Output is correct
120 Correct 141 ms 28972 KB Output is correct
121 Correct 132 ms 28408 KB Output is correct
122 Correct 118 ms 27516 KB Output is correct
123 Correct 71 ms 24312 KB Output is correct
124 Correct 107 ms 35300 KB Output is correct
125 Correct 106 ms 35356 KB Output is correct
126 Correct 116 ms 35356 KB Output is correct
127 Correct 118 ms 35364 KB Output is correct
128 Correct 13 ms 14592 KB Output is correct
129 Correct 13 ms 14720 KB Output is correct
130 Correct 13 ms 14592 KB Output is correct
131 Correct 17 ms 14592 KB Output is correct
132 Correct 15 ms 14592 KB Output is correct
133 Correct 13 ms 14628 KB Output is correct
134 Correct 13 ms 14592 KB Output is correct
135 Correct 14 ms 14592 KB Output is correct
136 Correct 13 ms 14592 KB Output is correct
137 Correct 13 ms 14592 KB Output is correct
138 Correct 13 ms 14592 KB Output is correct
139 Correct 13 ms 14720 KB Output is correct
140 Correct 14 ms 14720 KB Output is correct
141 Correct 13 ms 14720 KB Output is correct
142 Correct 13 ms 14720 KB Output is correct
143 Correct 13 ms 14592 KB Output is correct
144 Correct 13 ms 14592 KB Output is correct
145 Correct 13 ms 14592 KB Output is correct
146 Correct 15 ms 14720 KB Output is correct
147 Correct 13 ms 14592 KB Output is correct
148 Correct 13 ms 14592 KB Output is correct
149 Correct 13 ms 14592 KB Output is correct
150 Correct 13 ms 14592 KB Output is correct
151 Correct 13 ms 14592 KB Output is correct
152 Correct 12 ms 14720 KB Output is correct
153 Correct 14 ms 14464 KB Output is correct
154 Correct 12 ms 14464 KB Output is correct
155 Correct 140 ms 33620 KB Output is correct
156 Correct 139 ms 33440 KB Output is correct
157 Correct 143 ms 31780 KB Output is correct
158 Correct 139 ms 29880 KB Output is correct
159 Correct 124 ms 27688 KB Output is correct
160 Correct 114 ms 26672 KB Output is correct
161 Correct 111 ms 26288 KB Output is correct
162 Correct 111 ms 25908 KB Output is correct
163 Correct 104 ms 25524 KB Output is correct
164 Correct 100 ms 25464 KB Output is correct
165 Correct 106 ms 25208 KB Output is correct
166 Correct 97 ms 25084 KB Output is correct
167 Correct 94 ms 25084 KB Output is correct
168 Correct 97 ms 28008 KB Output is correct
169 Correct 155 ms 37988 KB Output is correct
170 Correct 159 ms 35988 KB Output is correct
171 Correct 149 ms 36068 KB Output is correct
172 Correct 151 ms 34328 KB Output is correct
173 Correct 137 ms 29228 KB Output is correct
174 Correct 140 ms 27792 KB Output is correct
175 Correct 137 ms 27440 KB Output is correct
176 Correct 131 ms 25756 KB Output is correct
177 Correct 109 ms 26344 KB Output is correct
178 Correct 134 ms 33572 KB Output is correct
179 Correct 133 ms 33708 KB Output is correct
180 Correct 129 ms 32308 KB Output is correct
181 Correct 134 ms 32292 KB Output is correct
182 Correct 12 ms 14592 KB Output is correct
183 Correct 13 ms 14720 KB Output is correct
184 Correct 13 ms 14592 KB Output is correct
185 Correct 14 ms 14720 KB Output is correct
186 Correct 13 ms 14720 KB Output is correct
187 Correct 13 ms 14592 KB Output is correct
188 Correct 13 ms 14592 KB Output is correct
189 Correct 13 ms 14592 KB Output is correct
190 Correct 13 ms 14592 KB Output is correct
191 Correct 13 ms 14592 KB Output is correct
192 Correct 13 ms 14464 KB Output is correct
193 Correct 13 ms 14720 KB Output is correct
194 Correct 14 ms 14592 KB Output is correct
195 Correct 13 ms 14592 KB Output is correct
196 Correct 13 ms 14592 KB Output is correct
197 Correct 14 ms 14592 KB Output is correct
198 Correct 13 ms 14592 KB Output is correct
199 Correct 13 ms 14720 KB Output is correct
200 Correct 13 ms 14592 KB Output is correct
201 Correct 13 ms 14720 KB Output is correct
202 Correct 15 ms 14592 KB Output is correct
203 Correct 14 ms 14592 KB Output is correct
204 Correct 14 ms 14592 KB Output is correct
205 Correct 13 ms 14592 KB Output is correct
206 Correct 14 ms 14592 KB Output is correct
207 Correct 14 ms 14592 KB Output is correct
208 Correct 14 ms 14592 KB Output is correct
209 Correct 15 ms 16128 KB Output is correct
210 Correct 76 ms 23672 KB Output is correct
211 Correct 130 ms 31200 KB Output is correct
212 Correct 151 ms 34872 KB Output is correct
213 Correct 181 ms 37988 KB Output is correct
214 Correct 87 ms 26616 KB Output is correct
215 Correct 97 ms 26424 KB Output is correct
216 Correct 142 ms 32164 KB Output is correct
217 Correct 132 ms 29608 KB Output is correct
218 Correct 116 ms 27188 KB Output is correct
219 Correct 104 ms 26616 KB Output is correct
220 Correct 100 ms 26360 KB Output is correct
221 Correct 98 ms 26232 KB Output is correct
222 Correct 100 ms 27752 KB Output is correct
223 Correct 147 ms 33192 KB Output is correct
224 Correct 146 ms 31912 KB Output is correct
225 Correct 131 ms 28344 KB Output is correct
226 Correct 139 ms 27700 KB Output is correct
227 Correct 135 ms 27336 KB Output is correct
228 Correct 125 ms 26488 KB Output is correct
229 Correct 113 ms 26104 KB Output is correct
230 Correct 126 ms 29740 KB Output is correct
231 Correct 134 ms 29736 KB Output is correct