답안 #57775

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
57775 2018-07-16T05:05:10 Z Crown 철인 이종 경기 (APIO18_duathlon) C++14
100 / 100
514 ms 98968 KB
#include <bits/stdc++.h>
using namespace std;
#define X first
#define Y second
#define pb push_back
typedef long long ll;
typedef pair<int, int> ii;

const int maxn = 1e5+5;
const int maxm = 2e5+5;

int n, m; 

vector< ii > adj[maxn];
int U[maxm], V[maxm];
int num[maxn], low[maxn];
int now = 1;
bool instack[maxm];
stack<int> s;
int compno;
int col[maxm];

vector<int> tree[2*(maxn+maxm)];
int cnt[2*(maxn+maxm)];
bool use[maxn+maxm];
ll pong[maxn+maxm];

void tarjan(int u, int p)
{
	num[u] = low[u] = now;
	now++;
	for(auto earn : adj[u])
	{
		int v = earn.X, id = earn.Y;
		if(!num[v])
		{
			if(!instack[id])
			{
				s.push(id);
				instack[id] = true;
			}
			tarjan(v, u);
			low[u] = min(low[u], low[v]);
			if(low[v]>= num[u])
			{
				// u is an articulation point
				compno++;
				while(!s.empty())
				{
					int x = s.top(); s.pop();
					col[x] = compno;
					if(x == id) break;
				}
			}
		}
		else if(v != p)
		{
			if(!instack[id])
			{
				s.push(id);
				instack[id] = true;
			}
			low[u] = min(low[u], num[v]);
		}
	}
}

ll res;

ll sel3(int x){ return 1LL*x*(x-1)*(x-2); } 
ll sel2(int x){ return 1LL*x*(x-1); }

void dfs(int u, int p)
{
	use[u] = true;
	cnt[u] = u<=n;
	for(auto v : tree[u])
	{
		if(v == p) continue;
		dfs(v, u);
		cnt[u] += cnt[v];
		if(u> n) pong[u] += sel2(cnt[v]);
	}
}

ll total = 0;

void solve(int u, int p)
{
	for(auto v : tree[u])
	{
		if(v == p) continue;
		solve(v, u);
	}
	if(u> n) return;
	for(auto v : tree[u])
	{
		if(v != p) res -= pong[v];
		else res -= pong[v] - sel2(cnt[u]) + sel2(total-cnt[v]);
	}
}

int main()
{
	scanf("%d %d", &n, &m);
	for(int i = 1; i<= m; i++)
	{
		int u, v; scanf("%d %d", &u, &v);
		U[i] = u; V[i] = v;
		adj[u].pb(ii(v, i));
		adj[v].pb(ii(u, i));
	}
	for(int i = 1; i<= n; i++)
	{
		if(num[i]) continue;
		tarjan(i, 0);
		if(!s.empty())
		{
			compno++;
			while(!s.empty())
			{
				int x = s.top(); s.pop();
				col[x] = compno;
			}
		}
	}
	for(int i = 1; i<= m; i++)
	{
		int x = col[i];
		int u = U[i], v = V[i];
		tree[u].pb(n+x);
		tree[n+x].pb(u);
		tree[v].pb(n+x);
		tree[n+x].pb(v);
	}
	for(int i = 1; i<= compno+n; i++)
	{
		sort(tree[i].begin(), tree[i].end());
		tree[i].resize(unique(tree[i].begin(), tree[i].end())-tree[i].begin());
	}
	for(int i = 1; i<= n; i++)
	{
		if(use[i]) continue;
		dfs(i, 0);
		total = cnt[i];
		res += sel3(total);
		solve(i, 0);
	}
	printf("%lld\n", res);
}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:105:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &n, &m);
  ~~~~~^~~~~~~~~~~~~~~~~
count_triplets.cpp:108:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   int u, v; scanf("%d %d", &u, &v);
             ~~~~~^~~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 18 ms 16760 KB Output is correct
2 Correct 16 ms 16996 KB Output is correct
3 Correct 17 ms 16996 KB Output is correct
4 Correct 16 ms 16996 KB Output is correct
5 Correct 19 ms 16996 KB Output is correct
6 Correct 17 ms 16996 KB Output is correct
7 Correct 15 ms 16996 KB Output is correct
8 Correct 17 ms 16996 KB Output is correct
9 Correct 16 ms 16996 KB Output is correct
10 Correct 17 ms 17080 KB Output is correct
11 Correct 17 ms 17116 KB Output is correct
12 Correct 16 ms 17116 KB Output is correct
13 Correct 19 ms 17252 KB Output is correct
14 Correct 16 ms 17252 KB Output is correct
15 Correct 18 ms 17252 KB Output is correct
16 Correct 17 ms 17256 KB Output is correct
17 Correct 17 ms 17256 KB Output is correct
18 Correct 20 ms 17256 KB Output is correct
19 Correct 18 ms 17256 KB Output is correct
20 Correct 19 ms 17256 KB Output is correct
21 Correct 21 ms 17280 KB Output is correct
22 Correct 19 ms 17280 KB Output is correct
23 Correct 18 ms 17280 KB Output is correct
24 Correct 18 ms 17280 KB Output is correct
25 Correct 16 ms 17280 KB Output is correct
26 Correct 19 ms 17300 KB Output is correct
27 Correct 19 ms 17300 KB Output is correct
28 Correct 17 ms 17300 KB Output is correct
29 Correct 17 ms 17300 KB Output is correct
30 Correct 18 ms 17300 KB Output is correct
31 Correct 18 ms 17300 KB Output is correct
32 Correct 18 ms 17300 KB Output is correct
33 Correct 17 ms 17300 KB Output is correct
34 Correct 19 ms 17300 KB Output is correct
35 Correct 22 ms 17300 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 18 ms 16760 KB Output is correct
2 Correct 16 ms 16996 KB Output is correct
3 Correct 17 ms 16996 KB Output is correct
4 Correct 16 ms 16996 KB Output is correct
5 Correct 19 ms 16996 KB Output is correct
6 Correct 17 ms 16996 KB Output is correct
7 Correct 15 ms 16996 KB Output is correct
8 Correct 17 ms 16996 KB Output is correct
9 Correct 16 ms 16996 KB Output is correct
10 Correct 17 ms 17080 KB Output is correct
11 Correct 17 ms 17116 KB Output is correct
12 Correct 16 ms 17116 KB Output is correct
13 Correct 19 ms 17252 KB Output is correct
14 Correct 16 ms 17252 KB Output is correct
15 Correct 18 ms 17252 KB Output is correct
16 Correct 17 ms 17256 KB Output is correct
17 Correct 17 ms 17256 KB Output is correct
18 Correct 20 ms 17256 KB Output is correct
19 Correct 18 ms 17256 KB Output is correct
20 Correct 19 ms 17256 KB Output is correct
21 Correct 21 ms 17280 KB Output is correct
22 Correct 19 ms 17280 KB Output is correct
23 Correct 18 ms 17280 KB Output is correct
24 Correct 18 ms 17280 KB Output is correct
25 Correct 16 ms 17280 KB Output is correct
26 Correct 19 ms 17300 KB Output is correct
27 Correct 19 ms 17300 KB Output is correct
28 Correct 17 ms 17300 KB Output is correct
29 Correct 17 ms 17300 KB Output is correct
30 Correct 18 ms 17300 KB Output is correct
31 Correct 18 ms 17300 KB Output is correct
32 Correct 18 ms 17300 KB Output is correct
33 Correct 17 ms 17300 KB Output is correct
34 Correct 19 ms 17300 KB Output is correct
35 Correct 22 ms 17300 KB Output is correct
36 Correct 21 ms 17300 KB Output is correct
37 Correct 17 ms 17300 KB Output is correct
38 Correct 18 ms 17300 KB Output is correct
39 Correct 21 ms 17300 KB Output is correct
40 Correct 19 ms 17300 KB Output is correct
41 Correct 20 ms 17400 KB Output is correct
42 Correct 19 ms 17400 KB Output is correct
43 Correct 21 ms 17400 KB Output is correct
44 Correct 20 ms 17400 KB Output is correct
45 Correct 18 ms 17400 KB Output is correct
46 Correct 16 ms 17400 KB Output is correct
47 Correct 18 ms 17400 KB Output is correct
48 Correct 19 ms 17400 KB Output is correct
49 Correct 19 ms 17400 KB Output is correct
50 Correct 17 ms 17400 KB Output is correct
51 Correct 18 ms 17400 KB Output is correct
52 Correct 20 ms 17400 KB Output is correct
53 Correct 18 ms 17400 KB Output is correct
54 Correct 18 ms 17400 KB Output is correct
55 Correct 19 ms 17400 KB Output is correct
56 Correct 19 ms 17400 KB Output is correct
57 Correct 20 ms 17400 KB Output is correct
58 Correct 18 ms 17400 KB Output is correct
59 Correct 16 ms 17400 KB Output is correct
60 Correct 17 ms 17400 KB Output is correct
61 Correct 18 ms 17400 KB Output is correct
62 Correct 20 ms 17408 KB Output is correct
63 Correct 18 ms 17436 KB Output is correct
64 Correct 19 ms 17436 KB Output is correct
65 Correct 19 ms 17436 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 208 ms 36360 KB Output is correct
2 Correct 208 ms 36424 KB Output is correct
3 Correct 273 ms 36424 KB Output is correct
4 Correct 237 ms 36424 KB Output is correct
5 Correct 251 ms 36424 KB Output is correct
6 Correct 297 ms 36424 KB Output is correct
7 Correct 250 ms 36424 KB Output is correct
8 Correct 320 ms 36424 KB Output is correct
9 Correct 290 ms 36424 KB Output is correct
10 Correct 278 ms 36424 KB Output is correct
11 Correct 194 ms 36424 KB Output is correct
12 Correct 219 ms 36424 KB Output is correct
13 Correct 199 ms 36424 KB Output is correct
14 Correct 170 ms 36424 KB Output is correct
15 Correct 189 ms 36424 KB Output is correct
16 Correct 169 ms 36424 KB Output is correct
17 Correct 22 ms 36424 KB Output is correct
18 Correct 20 ms 36424 KB Output is correct
19 Correct 20 ms 36424 KB Output is correct
20 Correct 21 ms 36424 KB Output is correct
21 Correct 23 ms 36424 KB Output is correct
22 Correct 22 ms 36424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 20 ms 36424 KB Output is correct
2 Correct 22 ms 36424 KB Output is correct
3 Correct 19 ms 36424 KB Output is correct
4 Correct 21 ms 36424 KB Output is correct
5 Correct 21 ms 36424 KB Output is correct
6 Correct 17 ms 36424 KB Output is correct
7 Correct 22 ms 36424 KB Output is correct
8 Correct 20 ms 36424 KB Output is correct
9 Correct 18 ms 36424 KB Output is correct
10 Correct 21 ms 36424 KB Output is correct
11 Correct 22 ms 36424 KB Output is correct
12 Correct 18 ms 36424 KB Output is correct
13 Correct 23 ms 36424 KB Output is correct
14 Correct 17 ms 36424 KB Output is correct
15 Correct 19 ms 36424 KB Output is correct
16 Correct 21 ms 36424 KB Output is correct
17 Correct 17 ms 36424 KB Output is correct
18 Correct 20 ms 36424 KB Output is correct
19 Correct 17 ms 36424 KB Output is correct
20 Correct 20 ms 36424 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 290 ms 36424 KB Output is correct
2 Correct 324 ms 36424 KB Output is correct
3 Correct 268 ms 36424 KB Output is correct
4 Correct 256 ms 36424 KB Output is correct
5 Correct 287 ms 36424 KB Output is correct
6 Correct 318 ms 39164 KB Output is correct
7 Correct 356 ms 39164 KB Output is correct
8 Correct 386 ms 39164 KB Output is correct
9 Correct 362 ms 39164 KB Output is correct
10 Correct 371 ms 39164 KB Output is correct
11 Correct 360 ms 39164 KB Output is correct
12 Correct 367 ms 39164 KB Output is correct
13 Correct 336 ms 39164 KB Output is correct
14 Correct 269 ms 39164 KB Output is correct
15 Correct 207 ms 39164 KB Output is correct
16 Correct 129 ms 39164 KB Output is correct
17 Correct 182 ms 39164 KB Output is correct
18 Correct 212 ms 39164 KB Output is correct
19 Correct 204 ms 39164 KB Output is correct
20 Correct 156 ms 39164 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 20 ms 39164 KB Output is correct
2 Correct 19 ms 39164 KB Output is correct
3 Correct 17 ms 39164 KB Output is correct
4 Correct 18 ms 39164 KB Output is correct
5 Correct 18 ms 39164 KB Output is correct
6 Correct 22 ms 39164 KB Output is correct
7 Correct 21 ms 39164 KB Output is correct
8 Correct 20 ms 39164 KB Output is correct
9 Correct 21 ms 39164 KB Output is correct
10 Correct 17 ms 39164 KB Output is correct
11 Correct 24 ms 39164 KB Output is correct
12 Correct 19 ms 39164 KB Output is correct
13 Correct 21 ms 39164 KB Output is correct
14 Correct 19 ms 39164 KB Output is correct
15 Correct 21 ms 39164 KB Output is correct
16 Correct 22 ms 39164 KB Output is correct
17 Correct 20 ms 39164 KB Output is correct
18 Correct 17 ms 39164 KB Output is correct
19 Correct 20 ms 39164 KB Output is correct
20 Correct 19 ms 39164 KB Output is correct
21 Correct 19 ms 39164 KB Output is correct
22 Correct 19 ms 39164 KB Output is correct
23 Correct 18 ms 39164 KB Output is correct
24 Correct 17 ms 39164 KB Output is correct
25 Correct 16 ms 39164 KB Output is correct
26 Correct 18 ms 39164 KB Output is correct
27 Correct 21 ms 39164 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 272 ms 39164 KB Output is correct
2 Correct 328 ms 39164 KB Output is correct
3 Correct 303 ms 39164 KB Output is correct
4 Correct 377 ms 39164 KB Output is correct
5 Correct 276 ms 39164 KB Output is correct
6 Correct 271 ms 39164 KB Output is correct
7 Correct 304 ms 39164 KB Output is correct
8 Correct 210 ms 39164 KB Output is correct
9 Correct 172 ms 39164 KB Output is correct
10 Correct 238 ms 39164 KB Output is correct
11 Correct 253 ms 39164 KB Output is correct
12 Correct 220 ms 40296 KB Output is correct
13 Correct 230 ms 41604 KB Output is correct
14 Correct 206 ms 44876 KB Output is correct
15 Correct 394 ms 53436 KB Output is correct
16 Correct 404 ms 53436 KB Output is correct
17 Correct 312 ms 55064 KB Output is correct
18 Correct 289 ms 55064 KB Output is correct
19 Correct 362 ms 55064 KB Output is correct
20 Correct 307 ms 55064 KB Output is correct
21 Correct 307 ms 55804 KB Output is correct
22 Correct 271 ms 56492 KB Output is correct
23 Correct 198 ms 56788 KB Output is correct
24 Correct 308 ms 60848 KB Output is correct
25 Correct 322 ms 62440 KB Output is correct
26 Correct 267 ms 63248 KB Output is correct
27 Correct 294 ms 64892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 18 ms 16760 KB Output is correct
2 Correct 16 ms 16996 KB Output is correct
3 Correct 17 ms 16996 KB Output is correct
4 Correct 16 ms 16996 KB Output is correct
5 Correct 19 ms 16996 KB Output is correct
6 Correct 17 ms 16996 KB Output is correct
7 Correct 15 ms 16996 KB Output is correct
8 Correct 17 ms 16996 KB Output is correct
9 Correct 16 ms 16996 KB Output is correct
10 Correct 17 ms 17080 KB Output is correct
11 Correct 17 ms 17116 KB Output is correct
12 Correct 16 ms 17116 KB Output is correct
13 Correct 19 ms 17252 KB Output is correct
14 Correct 16 ms 17252 KB Output is correct
15 Correct 18 ms 17252 KB Output is correct
16 Correct 17 ms 17256 KB Output is correct
17 Correct 17 ms 17256 KB Output is correct
18 Correct 20 ms 17256 KB Output is correct
19 Correct 18 ms 17256 KB Output is correct
20 Correct 19 ms 17256 KB Output is correct
21 Correct 21 ms 17280 KB Output is correct
22 Correct 19 ms 17280 KB Output is correct
23 Correct 18 ms 17280 KB Output is correct
24 Correct 18 ms 17280 KB Output is correct
25 Correct 16 ms 17280 KB Output is correct
26 Correct 19 ms 17300 KB Output is correct
27 Correct 19 ms 17300 KB Output is correct
28 Correct 17 ms 17300 KB Output is correct
29 Correct 17 ms 17300 KB Output is correct
30 Correct 18 ms 17300 KB Output is correct
31 Correct 18 ms 17300 KB Output is correct
32 Correct 18 ms 17300 KB Output is correct
33 Correct 17 ms 17300 KB Output is correct
34 Correct 19 ms 17300 KB Output is correct
35 Correct 22 ms 17300 KB Output is correct
36 Correct 21 ms 17300 KB Output is correct
37 Correct 17 ms 17300 KB Output is correct
38 Correct 18 ms 17300 KB Output is correct
39 Correct 21 ms 17300 KB Output is correct
40 Correct 19 ms 17300 KB Output is correct
41 Correct 20 ms 17400 KB Output is correct
42 Correct 19 ms 17400 KB Output is correct
43 Correct 21 ms 17400 KB Output is correct
44 Correct 20 ms 17400 KB Output is correct
45 Correct 18 ms 17400 KB Output is correct
46 Correct 16 ms 17400 KB Output is correct
47 Correct 18 ms 17400 KB Output is correct
48 Correct 19 ms 17400 KB Output is correct
49 Correct 19 ms 17400 KB Output is correct
50 Correct 17 ms 17400 KB Output is correct
51 Correct 18 ms 17400 KB Output is correct
52 Correct 20 ms 17400 KB Output is correct
53 Correct 18 ms 17400 KB Output is correct
54 Correct 18 ms 17400 KB Output is correct
55 Correct 19 ms 17400 KB Output is correct
56 Correct 19 ms 17400 KB Output is correct
57 Correct 20 ms 17400 KB Output is correct
58 Correct 18 ms 17400 KB Output is correct
59 Correct 16 ms 17400 KB Output is correct
60 Correct 17 ms 17400 KB Output is correct
61 Correct 18 ms 17400 KB Output is correct
62 Correct 20 ms 17408 KB Output is correct
63 Correct 18 ms 17436 KB Output is correct
64 Correct 19 ms 17436 KB Output is correct
65 Correct 19 ms 17436 KB Output is correct
66 Correct 18 ms 64892 KB Output is correct
67 Correct 17 ms 64892 KB Output is correct
68 Correct 18 ms 64892 KB Output is correct
69 Correct 18 ms 64892 KB Output is correct
70 Correct 22 ms 64892 KB Output is correct
71 Correct 21 ms 64892 KB Output is correct
72 Correct 21 ms 64892 KB Output is correct
73 Correct 22 ms 64892 KB Output is correct
74 Correct 21 ms 64892 KB Output is correct
75 Correct 20 ms 64892 KB Output is correct
76 Correct 18 ms 64892 KB Output is correct
77 Correct 21 ms 64892 KB Output is correct
78 Correct 22 ms 64892 KB Output is correct
79 Correct 19 ms 64892 KB Output is correct
80 Correct 20 ms 64892 KB Output is correct
81 Correct 17 ms 64892 KB Output is correct
82 Correct 18 ms 64892 KB Output is correct
83 Correct 21 ms 64892 KB Output is correct
84 Correct 19 ms 64892 KB Output is correct
85 Correct 22 ms 64892 KB Output is correct
86 Correct 19 ms 64892 KB Output is correct
87 Correct 19 ms 64892 KB Output is correct
88 Correct 19 ms 64892 KB Output is correct
89 Correct 20 ms 64892 KB Output is correct
90 Correct 19 ms 64892 KB Output is correct
91 Correct 20 ms 64892 KB Output is correct
92 Correct 23 ms 64892 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 18 ms 16760 KB Output is correct
2 Correct 16 ms 16996 KB Output is correct
3 Correct 17 ms 16996 KB Output is correct
4 Correct 16 ms 16996 KB Output is correct
5 Correct 19 ms 16996 KB Output is correct
6 Correct 17 ms 16996 KB Output is correct
7 Correct 15 ms 16996 KB Output is correct
8 Correct 17 ms 16996 KB Output is correct
9 Correct 16 ms 16996 KB Output is correct
10 Correct 17 ms 17080 KB Output is correct
11 Correct 17 ms 17116 KB Output is correct
12 Correct 16 ms 17116 KB Output is correct
13 Correct 19 ms 17252 KB Output is correct
14 Correct 16 ms 17252 KB Output is correct
15 Correct 18 ms 17252 KB Output is correct
16 Correct 17 ms 17256 KB Output is correct
17 Correct 17 ms 17256 KB Output is correct
18 Correct 20 ms 17256 KB Output is correct
19 Correct 18 ms 17256 KB Output is correct
20 Correct 19 ms 17256 KB Output is correct
21 Correct 21 ms 17280 KB Output is correct
22 Correct 19 ms 17280 KB Output is correct
23 Correct 18 ms 17280 KB Output is correct
24 Correct 18 ms 17280 KB Output is correct
25 Correct 16 ms 17280 KB Output is correct
26 Correct 19 ms 17300 KB Output is correct
27 Correct 19 ms 17300 KB Output is correct
28 Correct 17 ms 17300 KB Output is correct
29 Correct 17 ms 17300 KB Output is correct
30 Correct 18 ms 17300 KB Output is correct
31 Correct 18 ms 17300 KB Output is correct
32 Correct 18 ms 17300 KB Output is correct
33 Correct 17 ms 17300 KB Output is correct
34 Correct 19 ms 17300 KB Output is correct
35 Correct 22 ms 17300 KB Output is correct
36 Correct 21 ms 17300 KB Output is correct
37 Correct 17 ms 17300 KB Output is correct
38 Correct 18 ms 17300 KB Output is correct
39 Correct 21 ms 17300 KB Output is correct
40 Correct 19 ms 17300 KB Output is correct
41 Correct 20 ms 17400 KB Output is correct
42 Correct 19 ms 17400 KB Output is correct
43 Correct 21 ms 17400 KB Output is correct
44 Correct 20 ms 17400 KB Output is correct
45 Correct 18 ms 17400 KB Output is correct
46 Correct 16 ms 17400 KB Output is correct
47 Correct 18 ms 17400 KB Output is correct
48 Correct 19 ms 17400 KB Output is correct
49 Correct 19 ms 17400 KB Output is correct
50 Correct 17 ms 17400 KB Output is correct
51 Correct 18 ms 17400 KB Output is correct
52 Correct 20 ms 17400 KB Output is correct
53 Correct 18 ms 17400 KB Output is correct
54 Correct 18 ms 17400 KB Output is correct
55 Correct 19 ms 17400 KB Output is correct
56 Correct 19 ms 17400 KB Output is correct
57 Correct 20 ms 17400 KB Output is correct
58 Correct 18 ms 17400 KB Output is correct
59 Correct 16 ms 17400 KB Output is correct
60 Correct 17 ms 17400 KB Output is correct
61 Correct 18 ms 17400 KB Output is correct
62 Correct 20 ms 17408 KB Output is correct
63 Correct 18 ms 17436 KB Output is correct
64 Correct 19 ms 17436 KB Output is correct
65 Correct 19 ms 17436 KB Output is correct
66 Correct 208 ms 36360 KB Output is correct
67 Correct 208 ms 36424 KB Output is correct
68 Correct 273 ms 36424 KB Output is correct
69 Correct 237 ms 36424 KB Output is correct
70 Correct 251 ms 36424 KB Output is correct
71 Correct 297 ms 36424 KB Output is correct
72 Correct 250 ms 36424 KB Output is correct
73 Correct 320 ms 36424 KB Output is correct
74 Correct 290 ms 36424 KB Output is correct
75 Correct 278 ms 36424 KB Output is correct
76 Correct 194 ms 36424 KB Output is correct
77 Correct 219 ms 36424 KB Output is correct
78 Correct 199 ms 36424 KB Output is correct
79 Correct 170 ms 36424 KB Output is correct
80 Correct 189 ms 36424 KB Output is correct
81 Correct 169 ms 36424 KB Output is correct
82 Correct 22 ms 36424 KB Output is correct
83 Correct 20 ms 36424 KB Output is correct
84 Correct 20 ms 36424 KB Output is correct
85 Correct 21 ms 36424 KB Output is correct
86 Correct 23 ms 36424 KB Output is correct
87 Correct 22 ms 36424 KB Output is correct
88 Correct 20 ms 36424 KB Output is correct
89 Correct 22 ms 36424 KB Output is correct
90 Correct 19 ms 36424 KB Output is correct
91 Correct 21 ms 36424 KB Output is correct
92 Correct 21 ms 36424 KB Output is correct
93 Correct 17 ms 36424 KB Output is correct
94 Correct 22 ms 36424 KB Output is correct
95 Correct 20 ms 36424 KB Output is correct
96 Correct 18 ms 36424 KB Output is correct
97 Correct 21 ms 36424 KB Output is correct
98 Correct 22 ms 36424 KB Output is correct
99 Correct 18 ms 36424 KB Output is correct
100 Correct 23 ms 36424 KB Output is correct
101 Correct 17 ms 36424 KB Output is correct
102 Correct 19 ms 36424 KB Output is correct
103 Correct 21 ms 36424 KB Output is correct
104 Correct 17 ms 36424 KB Output is correct
105 Correct 20 ms 36424 KB Output is correct
106 Correct 17 ms 36424 KB Output is correct
107 Correct 20 ms 36424 KB Output is correct
108 Correct 290 ms 36424 KB Output is correct
109 Correct 324 ms 36424 KB Output is correct
110 Correct 268 ms 36424 KB Output is correct
111 Correct 256 ms 36424 KB Output is correct
112 Correct 287 ms 36424 KB Output is correct
113 Correct 318 ms 39164 KB Output is correct
114 Correct 356 ms 39164 KB Output is correct
115 Correct 386 ms 39164 KB Output is correct
116 Correct 362 ms 39164 KB Output is correct
117 Correct 371 ms 39164 KB Output is correct
118 Correct 360 ms 39164 KB Output is correct
119 Correct 367 ms 39164 KB Output is correct
120 Correct 336 ms 39164 KB Output is correct
121 Correct 269 ms 39164 KB Output is correct
122 Correct 207 ms 39164 KB Output is correct
123 Correct 129 ms 39164 KB Output is correct
124 Correct 182 ms 39164 KB Output is correct
125 Correct 212 ms 39164 KB Output is correct
126 Correct 204 ms 39164 KB Output is correct
127 Correct 156 ms 39164 KB Output is correct
128 Correct 20 ms 39164 KB Output is correct
129 Correct 19 ms 39164 KB Output is correct
130 Correct 17 ms 39164 KB Output is correct
131 Correct 18 ms 39164 KB Output is correct
132 Correct 18 ms 39164 KB Output is correct
133 Correct 22 ms 39164 KB Output is correct
134 Correct 21 ms 39164 KB Output is correct
135 Correct 20 ms 39164 KB Output is correct
136 Correct 21 ms 39164 KB Output is correct
137 Correct 17 ms 39164 KB Output is correct
138 Correct 24 ms 39164 KB Output is correct
139 Correct 19 ms 39164 KB Output is correct
140 Correct 21 ms 39164 KB Output is correct
141 Correct 19 ms 39164 KB Output is correct
142 Correct 21 ms 39164 KB Output is correct
143 Correct 22 ms 39164 KB Output is correct
144 Correct 20 ms 39164 KB Output is correct
145 Correct 17 ms 39164 KB Output is correct
146 Correct 20 ms 39164 KB Output is correct
147 Correct 19 ms 39164 KB Output is correct
148 Correct 19 ms 39164 KB Output is correct
149 Correct 19 ms 39164 KB Output is correct
150 Correct 18 ms 39164 KB Output is correct
151 Correct 17 ms 39164 KB Output is correct
152 Correct 16 ms 39164 KB Output is correct
153 Correct 18 ms 39164 KB Output is correct
154 Correct 21 ms 39164 KB Output is correct
155 Correct 272 ms 39164 KB Output is correct
156 Correct 328 ms 39164 KB Output is correct
157 Correct 303 ms 39164 KB Output is correct
158 Correct 377 ms 39164 KB Output is correct
159 Correct 276 ms 39164 KB Output is correct
160 Correct 271 ms 39164 KB Output is correct
161 Correct 304 ms 39164 KB Output is correct
162 Correct 210 ms 39164 KB Output is correct
163 Correct 172 ms 39164 KB Output is correct
164 Correct 238 ms 39164 KB Output is correct
165 Correct 253 ms 39164 KB Output is correct
166 Correct 220 ms 40296 KB Output is correct
167 Correct 230 ms 41604 KB Output is correct
168 Correct 206 ms 44876 KB Output is correct
169 Correct 394 ms 53436 KB Output is correct
170 Correct 404 ms 53436 KB Output is correct
171 Correct 312 ms 55064 KB Output is correct
172 Correct 289 ms 55064 KB Output is correct
173 Correct 362 ms 55064 KB Output is correct
174 Correct 307 ms 55064 KB Output is correct
175 Correct 307 ms 55804 KB Output is correct
176 Correct 271 ms 56492 KB Output is correct
177 Correct 198 ms 56788 KB Output is correct
178 Correct 308 ms 60848 KB Output is correct
179 Correct 322 ms 62440 KB Output is correct
180 Correct 267 ms 63248 KB Output is correct
181 Correct 294 ms 64892 KB Output is correct
182 Correct 18 ms 64892 KB Output is correct
183 Correct 17 ms 64892 KB Output is correct
184 Correct 18 ms 64892 KB Output is correct
185 Correct 18 ms 64892 KB Output is correct
186 Correct 22 ms 64892 KB Output is correct
187 Correct 21 ms 64892 KB Output is correct
188 Correct 21 ms 64892 KB Output is correct
189 Correct 22 ms 64892 KB Output is correct
190 Correct 21 ms 64892 KB Output is correct
191 Correct 20 ms 64892 KB Output is correct
192 Correct 18 ms 64892 KB Output is correct
193 Correct 21 ms 64892 KB Output is correct
194 Correct 22 ms 64892 KB Output is correct
195 Correct 19 ms 64892 KB Output is correct
196 Correct 20 ms 64892 KB Output is correct
197 Correct 17 ms 64892 KB Output is correct
198 Correct 18 ms 64892 KB Output is correct
199 Correct 21 ms 64892 KB Output is correct
200 Correct 19 ms 64892 KB Output is correct
201 Correct 22 ms 64892 KB Output is correct
202 Correct 19 ms 64892 KB Output is correct
203 Correct 19 ms 64892 KB Output is correct
204 Correct 19 ms 64892 KB Output is correct
205 Correct 20 ms 64892 KB Output is correct
206 Correct 19 ms 64892 KB Output is correct
207 Correct 20 ms 64892 KB Output is correct
208 Correct 23 ms 64892 KB Output is correct
209 Correct 22 ms 64892 KB Output is correct
210 Correct 110 ms 64892 KB Output is correct
211 Correct 301 ms 67072 KB Output is correct
212 Correct 344 ms 73204 KB Output is correct
213 Correct 514 ms 79236 KB Output is correct
214 Correct 99 ms 79236 KB Output is correct
215 Correct 140 ms 79236 KB Output is correct
216 Correct 364 ms 79236 KB Output is correct
217 Correct 272 ms 79236 KB Output is correct
218 Correct 302 ms 79236 KB Output is correct
219 Correct 208 ms 79236 KB Output is correct
220 Correct 258 ms 79236 KB Output is correct
221 Correct 204 ms 80040 KB Output is correct
222 Correct 224 ms 82356 KB Output is correct
223 Correct 347 ms 88452 KB Output is correct
224 Correct 317 ms 89392 KB Output is correct
225 Correct 328 ms 89392 KB Output is correct
226 Correct 304 ms 90700 KB Output is correct
227 Correct 335 ms 92308 KB Output is correct
228 Correct 191 ms 92820 KB Output is correct
229 Correct 234 ms 93380 KB Output is correct
230 Correct 257 ms 97180 KB Output is correct
231 Correct 251 ms 98968 KB Output is correct