Submission #732435

# Submission time Handle Problem Language Result Execution time Memory
732435 2023-04-29T04:18:28 Z minhcool Duathlon (APIO18_duathlon) C++17
70 / 100
889 ms 19436 KB
#include<bits/stdc++.h>
using namespace std;
 
#define ll long long
#define size sizee
#define fi first
#define se second
#define pb push_back
#define mp make_pair
 
typedef pair<int, int> ii;
typedef pair<ii, int> iii;
typedef pair<ii, ii> iiii;
 
const int N = 3e5 + 5;
 
const int oo = 1e18 + 7, mod = 1e9 + 7;
 
/*
Ini algo: 
s, c, f is okay
- find the nearest arculation point from s->c
- erase that point
- check if c and f is the same component
*/
 
int n, m;
 
vector<int> Adj[N];
 
bool arcu[N];
int cnt, tim[N], low[N];
 
void dfs(int u, int p, int root){
	cnt++;
	tim[u] = low[u] = cnt;
	int child = 0;
	for(auto v : Adj[u]){
		if(!tim[v]){
			child++;
			dfs(v, u, root);
			low[u] = min(low[u], low[v]);
			if(u != root && low[v] >= tim[u]) arcu[u] = 1;
		}
		else low[u] = min(low[u], tim[v]);
	}
	if(u == root && child > 1) arcu[u] = 1;
//	cout << u << " " << arcu[u] << "\n";
}
 
bool vis[N];
int p[N];
 
ll ans = 0;
 
int where[3005][3005];
 
int ban;
bool viss[N];
void dfs(int u){
	viss[u] = 1;
	for(auto v : Adj[u]){
		if(viss[v] || v == ban) continue;
		dfs(v);
	}
}
 
int sz = 0, lst[N];
 
void dfs2(int u){
	sz++;
	vis[u] = 1;
	for(auto v : Adj[u]){
		if(vis[v]) continue;
		p[v] = u;
		dfs2(v);
	}
}
 
int tol[3005][3005];
 
void prep(int u, int root, int cnt){
	tol[root][cnt]++;
	where[root][u] = cnt;
	for(auto v : Adj[u]){
		if(v == root || where[root][v]) continue;
		prep(v, root, cnt);
	}
}
 
void solve_small(){
	for(int i = 1; i <= n; i++) if(!tim[i]) dfs(i, i, i);
	for(int i = 1; i <= n; i++){
		if(!arcu[i]) continue;
		int cnt = 0;
		for(auto it : Adj[i]){
			if(where[i][it]) continue;
			cnt++;
			prep(it, i, cnt);
		}
	}
	for(int s = 1; s <= n; s++){
		for(int i = 1; i <= n; i++) vis[i] = p[i] = 0;
		sz = 0;
		dfs2(s);
		for(int c = 1; c <= n; c++){
			if(!vis[c]) continue;
			if(c == s) continue;
			//vector<int> path;
			int cc = p[c];
			while(cc != s && where[cc][s] == where[cc][c]) cc = p[cc];
			if(!arcu[cc]){
				ban = -1;
				//cout << 1 << " " << sz << "\n";
				ans += sz - 2;
			//	for(int i = 1; i <= n; i++) viss[i] = 0;
			//	dfs(c);
			}
			else{
				ban = cc; 
				//cout << 2 << " " << tol[cc][where[cc][c]] << "\n";
				ans += tol[cc][where[cc][c]] - 1;
			//	for(int i = 1; i <= n; i++) viss[i] = 0;
			//	dfs(c);
			}
			//cout << s << " " << c << " " << ans << "\n";
		}
	}
}
 
ll size[N];
 
bool cyc = 0;
 
void dfss(int u, int p){
	size[u] = 1;
	for(auto v : Adj[u]){
		if(v == p || size[v]){
			if(size[v] && v != p) cyc = 1;
			continue;	
		}
		dfss(v, u);
		size[u] += size[v];
	}
}
 
void cal(int u, int p, int root){
	for(auto v : Adj[u]){
		if(v == p) continue;
		cal(v, u, root);
	}
	ll temp = size[root];
	for(auto v : Adj[u]){
		ll x = (v == p ? (size[u] - 1) : size[v]);
		ans += (temp - x - 1) * x;
	}
}
 
void process(){
	cin >> n >> m;
	for(int i = 1; i <= m; i++){
		int x, y;
		cin >> x >> y;
		Adj[x].pb(y);
		Adj[y].pb(x);
	}	
	if(n <= 1000) solve_small();
	else{
		for(int i = 1; i <= n; i++){
			if(size[i]) continue;
			cyc = 0;
			dfss(i, i);
			if(!cyc) cal(i, i, i);
			else{
				ans += (ll)size[i] * (ll)(size[i] - 1) * (ll)(size[i] - 2);
			}
		}
		//cout << ans << "\n";
	}
	//exit(0);
	//arc::process();
	cout << ans;
}
 
signed main(){
	ios_base::sync_with_stdio(0);
	process();
}

Compilation message

count_triplets.cpp:17:21: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
   17 | const int oo = 1e18 + 7, mod = 1e9 + 7;
      |                ~~~~~^~~
count_triplets.cpp: In function 'void solve_small()':
count_triplets.cpp:103:45: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  103 |   for(int i = 1; i <= n; i++) vis[i] = p[i] = 0;
      |                                        ~~~~~^~~
# Verdict Execution time Memory Grader output
1 Correct 4 ms 7380 KB Output is correct
2 Correct 4 ms 7380 KB Output is correct
3 Correct 4 ms 7380 KB Output is correct
4 Correct 4 ms 7380 KB Output is correct
5 Correct 3 ms 7352 KB Output is correct
6 Correct 3 ms 7380 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 4 ms 7380 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 4 ms 7380 KB Output is correct
11 Correct 4 ms 7380 KB Output is correct
12 Correct 3 ms 7380 KB Output is correct
13 Correct 4 ms 7328 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7432 KB Output is correct
16 Correct 4 ms 7380 KB Output is correct
17 Correct 5 ms 7380 KB Output is correct
18 Correct 4 ms 7380 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 4 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 4 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7380 KB Output is correct
29 Correct 5 ms 7380 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 4 ms 7380 KB Output is correct
32 Correct 4 ms 7380 KB Output is correct
33 Correct 4 ms 7380 KB Output is correct
34 Correct 4 ms 7380 KB Output is correct
35 Correct 4 ms 7412 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 7380 KB Output is correct
2 Correct 4 ms 7380 KB Output is correct
3 Correct 4 ms 7380 KB Output is correct
4 Correct 4 ms 7380 KB Output is correct
5 Correct 3 ms 7352 KB Output is correct
6 Correct 3 ms 7380 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 4 ms 7380 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 4 ms 7380 KB Output is correct
11 Correct 4 ms 7380 KB Output is correct
12 Correct 3 ms 7380 KB Output is correct
13 Correct 4 ms 7328 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7432 KB Output is correct
16 Correct 4 ms 7380 KB Output is correct
17 Correct 5 ms 7380 KB Output is correct
18 Correct 4 ms 7380 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 4 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 4 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7380 KB Output is correct
29 Correct 5 ms 7380 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 4 ms 7380 KB Output is correct
32 Correct 4 ms 7380 KB Output is correct
33 Correct 4 ms 7380 KB Output is correct
34 Correct 4 ms 7380 KB Output is correct
35 Correct 4 ms 7412 KB Output is correct
36 Correct 4 ms 7384 KB Output is correct
37 Correct 4 ms 7508 KB Output is correct
38 Correct 5 ms 7508 KB Output is correct
39 Correct 4 ms 7380 KB Output is correct
40 Correct 4 ms 7388 KB Output is correct
41 Correct 4 ms 7380 KB Output is correct
42 Correct 3 ms 7508 KB Output is correct
43 Correct 4 ms 7380 KB Output is correct
44 Correct 4 ms 7508 KB Output is correct
45 Correct 4 ms 7380 KB Output is correct
46 Correct 4 ms 7380 KB Output is correct
47 Correct 4 ms 7296 KB Output is correct
48 Correct 4 ms 7380 KB Output is correct
49 Correct 4 ms 7380 KB Output is correct
50 Correct 4 ms 7508 KB Output is correct
51 Correct 4 ms 7508 KB Output is correct
52 Correct 5 ms 7496 KB Output is correct
53 Correct 4 ms 7476 KB Output is correct
54 Correct 4 ms 7380 KB Output is correct
55 Correct 4 ms 7380 KB Output is correct
56 Correct 5 ms 7364 KB Output is correct
57 Correct 4 ms 7508 KB Output is correct
58 Correct 4 ms 7508 KB Output is correct
59 Correct 5 ms 7380 KB Output is correct
60 Correct 5 ms 7380 KB Output is correct
61 Correct 4 ms 7380 KB Output is correct
62 Correct 4 ms 7380 KB Output is correct
63 Correct 4 ms 7380 KB Output is correct
64 Correct 4 ms 7380 KB Output is correct
65 Correct 4 ms 7380 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 50 ms 19072 KB Output is correct
2 Correct 47 ms 19036 KB Output is correct
3 Correct 58 ms 15184 KB Output is correct
4 Correct 68 ms 17108 KB Output is correct
5 Correct 76 ms 13844 KB Output is correct
6 Correct 57 ms 13820 KB Output is correct
7 Correct 46 ms 12752 KB Output is correct
8 Correct 52 ms 13504 KB Output is correct
9 Correct 44 ms 12024 KB Output is correct
10 Correct 44 ms 12748 KB Output is correct
11 Correct 38 ms 11180 KB Output is correct
12 Correct 39 ms 11032 KB Output is correct
13 Correct 42 ms 11124 KB Output is correct
14 Correct 34 ms 10964 KB Output is correct
15 Correct 25 ms 10708 KB Output is correct
16 Correct 31 ms 10580 KB Output is correct
17 Correct 5 ms 8072 KB Output is correct
18 Correct 5 ms 8148 KB Output is correct
19 Correct 5 ms 8096 KB Output is correct
20 Correct 5 ms 8148 KB Output is correct
21 Correct 5 ms 8148 KB Output is correct
22 Correct 8 ms 8148 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 35 ms 13396 KB Output is correct
2 Correct 35 ms 13408 KB Output is correct
3 Correct 34 ms 13272 KB Output is correct
4 Correct 65 ms 19424 KB Output is correct
5 Correct 54 ms 16588 KB Output is correct
6 Correct 47 ms 16052 KB Output is correct
7 Correct 64 ms 19436 KB Output is correct
8 Correct 53 ms 16492 KB Output is correct
9 Correct 57 ms 15836 KB Output is correct
10 Correct 34 ms 13472 KB Output is correct
11 Correct 31 ms 13460 KB Output is correct
12 Correct 20 ms 13460 KB Output is correct
13 Correct 16 ms 13388 KB Output is correct
14 Correct 13 ms 12756 KB Output is correct
15 Correct 9 ms 12116 KB Output is correct
16 Correct 9 ms 9428 KB Output is correct
17 Correct 14 ms 7484 KB Output is correct
18 Correct 17 ms 7504 KB Output is correct
19 Correct 20 ms 7524 KB Output is correct
20 Correct 19 ms 7508 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 52 ms 11384 KB Output is correct
2 Correct 65 ms 11384 KB Output is correct
3 Correct 50 ms 11292 KB Output is correct
4 Correct 54 ms 11332 KB Output is correct
5 Correct 79 ms 11304 KB Output is correct
6 Correct 67 ms 15540 KB Output is correct
7 Correct 53 ms 14052 KB Output is correct
8 Correct 51 ms 13376 KB Output is correct
9 Correct 48 ms 12688 KB Output is correct
10 Correct 44 ms 11488 KB Output is correct
11 Correct 55 ms 11388 KB Output is correct
12 Correct 54 ms 11388 KB Output is correct
13 Correct 52 ms 11348 KB Output is correct
14 Correct 42 ms 11284 KB Output is correct
15 Correct 44 ms 11168 KB Output is correct
16 Correct 23 ms 10480 KB Output is correct
17 Correct 32 ms 11588 KB Output is correct
18 Correct 33 ms 11572 KB Output is correct
19 Correct 41 ms 11584 KB Output is correct
20 Correct 36 ms 11704 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 33 ms 13384 KB Output is correct
2 Correct 38 ms 14676 KB Output is correct
3 Correct 43 ms 14036 KB Output is correct
4 Correct 49 ms 12556 KB Output is correct
5 Correct 55 ms 10784 KB Output is correct
6 Correct 64 ms 9908 KB Output is correct
7 Correct 68 ms 9408 KB Output is correct
8 Correct 79 ms 9004 KB Output is correct
9 Correct 91 ms 8472 KB Output is correct
10 Correct 90 ms 8280 KB Output is correct
11 Correct 142 ms 8004 KB Output is correct
12 Correct 53 ms 15612 KB Output is correct
13 Correct 49 ms 14804 KB Output is correct
14 Correct 55 ms 14228 KB Output is correct
15 Correct 54 ms 14116 KB Output is correct
16 Correct 43 ms 12500 KB Output is correct
17 Correct 46 ms 12920 KB Output is correct
18 Correct 20 ms 12636 KB Output is correct
19 Correct 9 ms 11404 KB Output is correct
20 Correct 7 ms 9428 KB Output is correct
21 Correct 31 ms 11348 KB Output is correct
22 Correct 35 ms 11672 KB Output is correct
23 Correct 37 ms 10964 KB Output is correct
24 Correct 39 ms 11092 KB Output is correct
25 Correct 6 ms 7508 KB Output is correct
26 Correct 6 ms 7380 KB Output is correct
27 Correct 6 ms 7452 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 74 ms 11340 KB Output is correct
2 Correct 57 ms 11320 KB Output is correct
3 Incorrect 54 ms 11316 KB Output isn't correct
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 4 ms 7380 KB Output is correct
2 Correct 4 ms 7380 KB Output is correct
3 Correct 4 ms 7380 KB Output is correct
4 Correct 4 ms 7380 KB Output is correct
5 Correct 3 ms 7352 KB Output is correct
6 Correct 3 ms 7380 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 4 ms 7380 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 4 ms 7380 KB Output is correct
11 Correct 4 ms 7380 KB Output is correct
12 Correct 3 ms 7380 KB Output is correct
13 Correct 4 ms 7328 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7432 KB Output is correct
16 Correct 4 ms 7380 KB Output is correct
17 Correct 5 ms 7380 KB Output is correct
18 Correct 4 ms 7380 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 4 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 4 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7380 KB Output is correct
29 Correct 5 ms 7380 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 4 ms 7380 KB Output is correct
32 Correct 4 ms 7380 KB Output is correct
33 Correct 4 ms 7380 KB Output is correct
34 Correct 4 ms 7380 KB Output is correct
35 Correct 4 ms 7412 KB Output is correct
36 Correct 4 ms 7384 KB Output is correct
37 Correct 4 ms 7508 KB Output is correct
38 Correct 5 ms 7508 KB Output is correct
39 Correct 4 ms 7380 KB Output is correct
40 Correct 4 ms 7388 KB Output is correct
41 Correct 4 ms 7380 KB Output is correct
42 Correct 3 ms 7508 KB Output is correct
43 Correct 4 ms 7380 KB Output is correct
44 Correct 4 ms 7508 KB Output is correct
45 Correct 4 ms 7380 KB Output is correct
46 Correct 4 ms 7380 KB Output is correct
47 Correct 4 ms 7296 KB Output is correct
48 Correct 4 ms 7380 KB Output is correct
49 Correct 4 ms 7380 KB Output is correct
50 Correct 4 ms 7508 KB Output is correct
51 Correct 4 ms 7508 KB Output is correct
52 Correct 5 ms 7496 KB Output is correct
53 Correct 4 ms 7476 KB Output is correct
54 Correct 4 ms 7380 KB Output is correct
55 Correct 4 ms 7380 KB Output is correct
56 Correct 5 ms 7364 KB Output is correct
57 Correct 4 ms 7508 KB Output is correct
58 Correct 4 ms 7508 KB Output is correct
59 Correct 5 ms 7380 KB Output is correct
60 Correct 5 ms 7380 KB Output is correct
61 Correct 4 ms 7380 KB Output is correct
62 Correct 4 ms 7380 KB Output is correct
63 Correct 4 ms 7380 KB Output is correct
64 Correct 4 ms 7380 KB Output is correct
65 Correct 4 ms 7380 KB Output is correct
66 Correct 8 ms 7380 KB Output is correct
67 Correct 11 ms 10340 KB Output is correct
68 Correct 205 ms 11072 KB Output is correct
69 Correct 582 ms 9360 KB Output is correct
70 Correct 841 ms 8404 KB Output is correct
71 Correct 6 ms 9300 KB Output is correct
72 Correct 6 ms 9468 KB Output is correct
73 Correct 7 ms 9172 KB Output is correct
74 Correct 7 ms 9044 KB Output is correct
75 Correct 7 ms 8532 KB Output is correct
76 Correct 4 ms 7380 KB Output is correct
77 Correct 41 ms 10804 KB Output is correct
78 Correct 43 ms 9920 KB Output is correct
79 Correct 72 ms 8532 KB Output is correct
80 Correct 86 ms 8080 KB Output is correct
81 Correct 78 ms 7928 KB Output is correct
82 Correct 351 ms 7560 KB Output is correct
83 Correct 889 ms 7532 KB Output is correct
84 Correct 54 ms 10604 KB Output is correct
85 Correct 54 ms 10784 KB Output is correct
86 Correct 46 ms 9848 KB Output is correct
87 Correct 22 ms 9688 KB Output is correct
88 Correct 21 ms 9808 KB Output is correct
89 Correct 7 ms 9300 KB Output is correct
90 Correct 7 ms 8148 KB Output is correct
91 Correct 35 ms 7508 KB Output is correct
92 Correct 39 ms 7636 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 4 ms 7380 KB Output is correct
2 Correct 4 ms 7380 KB Output is correct
3 Correct 4 ms 7380 KB Output is correct
4 Correct 4 ms 7380 KB Output is correct
5 Correct 3 ms 7352 KB Output is correct
6 Correct 3 ms 7380 KB Output is correct
7 Correct 4 ms 7380 KB Output is correct
8 Correct 4 ms 7380 KB Output is correct
9 Correct 4 ms 7380 KB Output is correct
10 Correct 4 ms 7380 KB Output is correct
11 Correct 4 ms 7380 KB Output is correct
12 Correct 3 ms 7380 KB Output is correct
13 Correct 4 ms 7328 KB Output is correct
14 Correct 4 ms 7380 KB Output is correct
15 Correct 4 ms 7432 KB Output is correct
16 Correct 4 ms 7380 KB Output is correct
17 Correct 5 ms 7380 KB Output is correct
18 Correct 4 ms 7380 KB Output is correct
19 Correct 4 ms 7380 KB Output is correct
20 Correct 4 ms 7380 KB Output is correct
21 Correct 4 ms 7380 KB Output is correct
22 Correct 4 ms 7380 KB Output is correct
23 Correct 4 ms 7380 KB Output is correct
24 Correct 4 ms 7380 KB Output is correct
25 Correct 4 ms 7380 KB Output is correct
26 Correct 4 ms 7380 KB Output is correct
27 Correct 4 ms 7380 KB Output is correct
28 Correct 5 ms 7380 KB Output is correct
29 Correct 5 ms 7380 KB Output is correct
30 Correct 4 ms 7380 KB Output is correct
31 Correct 4 ms 7380 KB Output is correct
32 Correct 4 ms 7380 KB Output is correct
33 Correct 4 ms 7380 KB Output is correct
34 Correct 4 ms 7380 KB Output is correct
35 Correct 4 ms 7412 KB Output is correct
36 Correct 4 ms 7384 KB Output is correct
37 Correct 4 ms 7508 KB Output is correct
38 Correct 5 ms 7508 KB Output is correct
39 Correct 4 ms 7380 KB Output is correct
40 Correct 4 ms 7388 KB Output is correct
41 Correct 4 ms 7380 KB Output is correct
42 Correct 3 ms 7508 KB Output is correct
43 Correct 4 ms 7380 KB Output is correct
44 Correct 4 ms 7508 KB Output is correct
45 Correct 4 ms 7380 KB Output is correct
46 Correct 4 ms 7380 KB Output is correct
47 Correct 4 ms 7296 KB Output is correct
48 Correct 4 ms 7380 KB Output is correct
49 Correct 4 ms 7380 KB Output is correct
50 Correct 4 ms 7508 KB Output is correct
51 Correct 4 ms 7508 KB Output is correct
52 Correct 5 ms 7496 KB Output is correct
53 Correct 4 ms 7476 KB Output is correct
54 Correct 4 ms 7380 KB Output is correct
55 Correct 4 ms 7380 KB Output is correct
56 Correct 5 ms 7364 KB Output is correct
57 Correct 4 ms 7508 KB Output is correct
58 Correct 4 ms 7508 KB Output is correct
59 Correct 5 ms 7380 KB Output is correct
60 Correct 5 ms 7380 KB Output is correct
61 Correct 4 ms 7380 KB Output is correct
62 Correct 4 ms 7380 KB Output is correct
63 Correct 4 ms 7380 KB Output is correct
64 Correct 4 ms 7380 KB Output is correct
65 Correct 4 ms 7380 KB Output is correct
66 Correct 50 ms 19072 KB Output is correct
67 Correct 47 ms 19036 KB Output is correct
68 Correct 58 ms 15184 KB Output is correct
69 Correct 68 ms 17108 KB Output is correct
70 Correct 76 ms 13844 KB Output is correct
71 Correct 57 ms 13820 KB Output is correct
72 Correct 46 ms 12752 KB Output is correct
73 Correct 52 ms 13504 KB Output is correct
74 Correct 44 ms 12024 KB Output is correct
75 Correct 44 ms 12748 KB Output is correct
76 Correct 38 ms 11180 KB Output is correct
77 Correct 39 ms 11032 KB Output is correct
78 Correct 42 ms 11124 KB Output is correct
79 Correct 34 ms 10964 KB Output is correct
80 Correct 25 ms 10708 KB Output is correct
81 Correct 31 ms 10580 KB Output is correct
82 Correct 5 ms 8072 KB Output is correct
83 Correct 5 ms 8148 KB Output is correct
84 Correct 5 ms 8096 KB Output is correct
85 Correct 5 ms 8148 KB Output is correct
86 Correct 5 ms 8148 KB Output is correct
87 Correct 8 ms 8148 KB Output is correct
88 Correct 35 ms 13396 KB Output is correct
89 Correct 35 ms 13408 KB Output is correct
90 Correct 34 ms 13272 KB Output is correct
91 Correct 65 ms 19424 KB Output is correct
92 Correct 54 ms 16588 KB Output is correct
93 Correct 47 ms 16052 KB Output is correct
94 Correct 64 ms 19436 KB Output is correct
95 Correct 53 ms 16492 KB Output is correct
96 Correct 57 ms 15836 KB Output is correct
97 Correct 34 ms 13472 KB Output is correct
98 Correct 31 ms 13460 KB Output is correct
99 Correct 20 ms 13460 KB Output is correct
100 Correct 16 ms 13388 KB Output is correct
101 Correct 13 ms 12756 KB Output is correct
102 Correct 9 ms 12116 KB Output is correct
103 Correct 9 ms 9428 KB Output is correct
104 Correct 14 ms 7484 KB Output is correct
105 Correct 17 ms 7504 KB Output is correct
106 Correct 20 ms 7524 KB Output is correct
107 Correct 19 ms 7508 KB Output is correct
108 Correct 52 ms 11384 KB Output is correct
109 Correct 65 ms 11384 KB Output is correct
110 Correct 50 ms 11292 KB Output is correct
111 Correct 54 ms 11332 KB Output is correct
112 Correct 79 ms 11304 KB Output is correct
113 Correct 67 ms 15540 KB Output is correct
114 Correct 53 ms 14052 KB Output is correct
115 Correct 51 ms 13376 KB Output is correct
116 Correct 48 ms 12688 KB Output is correct
117 Correct 44 ms 11488 KB Output is correct
118 Correct 55 ms 11388 KB Output is correct
119 Correct 54 ms 11388 KB Output is correct
120 Correct 52 ms 11348 KB Output is correct
121 Correct 42 ms 11284 KB Output is correct
122 Correct 44 ms 11168 KB Output is correct
123 Correct 23 ms 10480 KB Output is correct
124 Correct 32 ms 11588 KB Output is correct
125 Correct 33 ms 11572 KB Output is correct
126 Correct 41 ms 11584 KB Output is correct
127 Correct 36 ms 11704 KB Output is correct
128 Correct 33 ms 13384 KB Output is correct
129 Correct 38 ms 14676 KB Output is correct
130 Correct 43 ms 14036 KB Output is correct
131 Correct 49 ms 12556 KB Output is correct
132 Correct 55 ms 10784 KB Output is correct
133 Correct 64 ms 9908 KB Output is correct
134 Correct 68 ms 9408 KB Output is correct
135 Correct 79 ms 9004 KB Output is correct
136 Correct 91 ms 8472 KB Output is correct
137 Correct 90 ms 8280 KB Output is correct
138 Correct 142 ms 8004 KB Output is correct
139 Correct 53 ms 15612 KB Output is correct
140 Correct 49 ms 14804 KB Output is correct
141 Correct 55 ms 14228 KB Output is correct
142 Correct 54 ms 14116 KB Output is correct
143 Correct 43 ms 12500 KB Output is correct
144 Correct 46 ms 12920 KB Output is correct
145 Correct 20 ms 12636 KB Output is correct
146 Correct 9 ms 11404 KB Output is correct
147 Correct 7 ms 9428 KB Output is correct
148 Correct 31 ms 11348 KB Output is correct
149 Correct 35 ms 11672 KB Output is correct
150 Correct 37 ms 10964 KB Output is correct
151 Correct 39 ms 11092 KB Output is correct
152 Correct 6 ms 7508 KB Output is correct
153 Correct 6 ms 7380 KB Output is correct
154 Correct 6 ms 7452 KB Output is correct
155 Correct 74 ms 11340 KB Output is correct
156 Correct 57 ms 11320 KB Output is correct
157 Incorrect 54 ms 11316 KB Output isn't correct
158 Halted 0 ms 0 KB -