답안 #1013994

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1013994 2024-07-04T09:23:11 Z pcc 철인 이종 경기 (APIO18_duathlon) C++17
100 / 100
79 ms 33740 KB
#include <bits/stdc++.h>
using namespace std;

#define ll long long
const int mxn = 1e5+10;
vector<int> paths[mxn],tree[mxn*2];
int N,M;
bitset<mxn> vis;
ll ans = 0;

namespace TARJAN{
	int idx[mxn],low[mxn],gcnt,cnt;
	vector<int> st,gid[mxn];

	void dfs(int now,int par){
		st.push_back(now);
		low[now] = idx[now] = ++cnt;
		for(auto nxt:paths[now]){
			if(idx[nxt]){
				low[now] = min(low[now],idx[nxt]);
			}
			else{
				dfs(nxt,now);
				low[now] = min(low[now],low[nxt]);
				if(low[nxt] == idx[now]){
					gcnt++;
					int id = st.back();
					do{
						assert(!st.empty());
						id = st.back();st.pop_back();
						gid[id].push_back(gcnt);
						tree[gcnt+N].push_back(id);
						tree[id].push_back(gcnt+N);
					}while(id != nxt);
					gid[now].push_back(gcnt);
					tree[gcnt+N].push_back(now);
					tree[now].push_back(gcnt+N);
				}
			}

		}
		return;
	}

	void GO(){
		for(int i = 1;i<=N;i++){
			if(gid[i].empty())dfs(i,i);
		}
		return;
	}
}

namespace DP{
	int dp[mxn*2];
	bitset<mxn*2> vis;
	void dfs1(int now,int fa){
		if(now<=N)dp[now] = 1;
		else dp[now] = 0;
		vis[now] = true;
		for(auto nxt:tree[now]){
			if(nxt == fa)continue;
			dfs1(nxt,now);
			dp[now] += dp[nxt];
		}
		return;
	}
	void dfs2(int now,int fa,int sz){
		for(auto nxt:tree[now]){
			if(nxt == fa)continue;
			dfs2(nxt,now,sz);
		}
		if(now>N){
			ll tans = 0,sum = 0;
			for(auto nxt:tree[now]){
				if(nxt == fa)continue;
				tans += sum*dp[nxt]*2;
				sum += dp[nxt];
			}
			ll tmp = sz-dp[now];
			tans += sum*tmp*2;
			sum += tmp;
			ans += tans*((int)tree[now].size()-2);
			return;
		}
		else{
			ll sum = 0;
			for(auto nxt:tree[now]){
				if(nxt == fa)continue;
				ans += sum*dp[nxt]*2;
				sum += dp[nxt];
			}
			ll tmp = sz-dp[now];
			ans += sum*tmp*2;
			return;
		}

	}
	void GO(){
		for(int i = 1;i<=N;i++){
			if(vis[i])continue;
			dfs1(i,i);
			dfs2(i,i,dp[i]);
		}
	}
}

int main(){
	ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
	cin>>N>>M;
	for(int i = 0;i<M;i++){
		int a,b;
		cin>>a>>b;
		paths[a].push_back(b);
		paths[b].push_back(a);
	}
	TARJAN::GO();
	DP::GO();
	cout<<ans<<'\n';
	return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9816 KB Output is correct
2 Correct 4 ms 9744 KB Output is correct
3 Correct 4 ms 9820 KB Output is correct
4 Correct 4 ms 9820 KB Output is correct
5 Correct 4 ms 9704 KB Output is correct
6 Correct 4 ms 9816 KB Output is correct
7 Correct 4 ms 9820 KB Output is correct
8 Correct 4 ms 9820 KB Output is correct
9 Correct 4 ms 9864 KB Output is correct
10 Correct 4 ms 9820 KB Output is correct
11 Correct 5 ms 9820 KB Output is correct
12 Correct 4 ms 9820 KB Output is correct
13 Correct 4 ms 9864 KB Output is correct
14 Correct 4 ms 9876 KB Output is correct
15 Correct 4 ms 9820 KB Output is correct
16 Correct 4 ms 9820 KB Output is correct
17 Correct 4 ms 9820 KB Output is correct
18 Correct 4 ms 9820 KB Output is correct
19 Correct 4 ms 9816 KB Output is correct
20 Correct 4 ms 9820 KB Output is correct
21 Correct 4 ms 9820 KB Output is correct
22 Correct 4 ms 9820 KB Output is correct
23 Correct 4 ms 9864 KB Output is correct
24 Correct 5 ms 9820 KB Output is correct
25 Correct 4 ms 9820 KB Output is correct
26 Correct 6 ms 9820 KB Output is correct
27 Correct 4 ms 9864 KB Output is correct
28 Correct 4 ms 9820 KB Output is correct
29 Correct 4 ms 9872 KB Output is correct
30 Correct 4 ms 9820 KB Output is correct
31 Correct 4 ms 9820 KB Output is correct
32 Correct 4 ms 9820 KB Output is correct
33 Correct 4 ms 9820 KB Output is correct
34 Correct 4 ms 9820 KB Output is correct
35 Correct 4 ms 9684 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9816 KB Output is correct
2 Correct 4 ms 9744 KB Output is correct
3 Correct 4 ms 9820 KB Output is correct
4 Correct 4 ms 9820 KB Output is correct
5 Correct 4 ms 9704 KB Output is correct
6 Correct 4 ms 9816 KB Output is correct
7 Correct 4 ms 9820 KB Output is correct
8 Correct 4 ms 9820 KB Output is correct
9 Correct 4 ms 9864 KB Output is correct
10 Correct 4 ms 9820 KB Output is correct
11 Correct 5 ms 9820 KB Output is correct
12 Correct 4 ms 9820 KB Output is correct
13 Correct 4 ms 9864 KB Output is correct
14 Correct 4 ms 9876 KB Output is correct
15 Correct 4 ms 9820 KB Output is correct
16 Correct 4 ms 9820 KB Output is correct
17 Correct 4 ms 9820 KB Output is correct
18 Correct 4 ms 9820 KB Output is correct
19 Correct 4 ms 9816 KB Output is correct
20 Correct 4 ms 9820 KB Output is correct
21 Correct 4 ms 9820 KB Output is correct
22 Correct 4 ms 9820 KB Output is correct
23 Correct 4 ms 9864 KB Output is correct
24 Correct 5 ms 9820 KB Output is correct
25 Correct 4 ms 9820 KB Output is correct
26 Correct 6 ms 9820 KB Output is correct
27 Correct 4 ms 9864 KB Output is correct
28 Correct 4 ms 9820 KB Output is correct
29 Correct 4 ms 9872 KB Output is correct
30 Correct 4 ms 9820 KB Output is correct
31 Correct 4 ms 9820 KB Output is correct
32 Correct 4 ms 9820 KB Output is correct
33 Correct 4 ms 9820 KB Output is correct
34 Correct 4 ms 9820 KB Output is correct
35 Correct 4 ms 9684 KB Output is correct
36 Correct 4 ms 9820 KB Output is correct
37 Correct 4 ms 9872 KB Output is correct
38 Correct 4 ms 9868 KB Output is correct
39 Correct 4 ms 9820 KB Output is correct
40 Correct 4 ms 9820 KB Output is correct
41 Correct 4 ms 9820 KB Output is correct
42 Correct 4 ms 9816 KB Output is correct
43 Correct 4 ms 9816 KB Output is correct
44 Correct 4 ms 9820 KB Output is correct
45 Correct 4 ms 9820 KB Output is correct
46 Correct 5 ms 9820 KB Output is correct
47 Correct 4 ms 9820 KB Output is correct
48 Correct 4 ms 9820 KB Output is correct
49 Correct 4 ms 9820 KB Output is correct
50 Correct 4 ms 9820 KB Output is correct
51 Correct 4 ms 9820 KB Output is correct
52 Correct 4 ms 9820 KB Output is correct
53 Correct 4 ms 9820 KB Output is correct
54 Correct 4 ms 9820 KB Output is correct
55 Correct 4 ms 9820 KB Output is correct
56 Correct 4 ms 9820 KB Output is correct
57 Correct 4 ms 9820 KB Output is correct
58 Correct 4 ms 9820 KB Output is correct
59 Correct 5 ms 9820 KB Output is correct
60 Correct 4 ms 9820 KB Output is correct
61 Correct 4 ms 9820 KB Output is correct
62 Correct 4 ms 9820 KB Output is correct
63 Correct 4 ms 9780 KB Output is correct
64 Correct 4 ms 9820 KB Output is correct
65 Correct 4 ms 9820 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 55 ms 33224 KB Output is correct
2 Correct 55 ms 33224 KB Output is correct
3 Correct 63 ms 30156 KB Output is correct
4 Correct 61 ms 31396 KB Output is correct
5 Correct 65 ms 27164 KB Output is correct
6 Correct 66 ms 29032 KB Output is correct
7 Correct 57 ms 26884 KB Output is correct
8 Correct 62 ms 27476 KB Output is correct
9 Correct 61 ms 25372 KB Output is correct
10 Correct 78 ms 25772 KB Output is correct
11 Correct 50 ms 23036 KB Output is correct
12 Correct 50 ms 22868 KB Output is correct
13 Correct 46 ms 22732 KB Output is correct
14 Correct 46 ms 22216 KB Output is correct
15 Correct 35 ms 20948 KB Output is correct
16 Correct 37 ms 20688 KB Output is correct
17 Correct 6 ms 11500 KB Output is correct
18 Correct 6 ms 11568 KB Output is correct
19 Correct 10 ms 11492 KB Output is correct
20 Correct 6 ms 11496 KB Output is correct
21 Correct 6 ms 11488 KB Output is correct
22 Correct 6 ms 11484 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9820 KB Output is correct
2 Correct 4 ms 9872 KB Output is correct
3 Correct 5 ms 10072 KB Output is correct
4 Correct 5 ms 10076 KB Output is correct
5 Correct 4 ms 10076 KB Output is correct
6 Correct 4 ms 10076 KB Output is correct
7 Correct 4 ms 10076 KB Output is correct
8 Correct 4 ms 10076 KB Output is correct
9 Correct 4 ms 9820 KB Output is correct
10 Correct 5 ms 10004 KB Output is correct
11 Correct 5 ms 9820 KB Output is correct
12 Correct 4 ms 9988 KB Output is correct
13 Correct 4 ms 9820 KB Output is correct
14 Correct 5 ms 9820 KB Output is correct
15 Correct 5 ms 9820 KB Output is correct
16 Correct 4 ms 9820 KB Output is correct
17 Correct 4 ms 9820 KB Output is correct
18 Correct 4 ms 9820 KB Output is correct
19 Correct 4 ms 9820 KB Output is correct
20 Correct 5 ms 9820 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 67 ms 25304 KB Output is correct
2 Correct 75 ms 25428 KB Output is correct
3 Correct 66 ms 25424 KB Output is correct
4 Correct 65 ms 25536 KB Output is correct
5 Correct 70 ms 25528 KB Output is correct
6 Correct 73 ms 33740 KB Output is correct
7 Correct 79 ms 30828 KB Output is correct
8 Correct 74 ms 29472 KB Output is correct
9 Correct 70 ms 27984 KB Output is correct
10 Correct 67 ms 25404 KB Output is correct
11 Correct 65 ms 25316 KB Output is correct
12 Correct 65 ms 25328 KB Output is correct
13 Correct 56 ms 25424 KB Output is correct
14 Correct 63 ms 24620 KB Output is correct
15 Correct 54 ms 23888 KB Output is correct
16 Correct 35 ms 20440 KB Output is correct
17 Correct 51 ms 26220 KB Output is correct
18 Correct 59 ms 26184 KB Output is correct
19 Correct 47 ms 26568 KB Output is correct
20 Correct 57 ms 26272 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 9816 KB Output is correct
2 Correct 4 ms 9820 KB Output is correct
3 Correct 4 ms 9820 KB Output is correct
4 Correct 4 ms 9820 KB Output is correct
5 Correct 4 ms 9784 KB Output is correct
6 Correct 4 ms 9820 KB Output is correct
7 Correct 4 ms 9820 KB Output is correct
8 Correct 4 ms 9820 KB Output is correct
9 Correct 4 ms 9884 KB Output is correct
10 Correct 4 ms 9820 KB Output is correct
11 Correct 4 ms 9820 KB Output is correct
12 Correct 5 ms 10076 KB Output is correct
13 Correct 4 ms 9820 KB Output is correct
14 Correct 4 ms 10076 KB Output is correct
15 Correct 4 ms 9820 KB Output is correct
16 Correct 5 ms 9820 KB Output is correct
17 Correct 4 ms 9876 KB Output is correct
18 Correct 4 ms 9820 KB Output is correct
19 Correct 5 ms 9820 KB Output is correct
20 Correct 5 ms 9820 KB Output is correct
21 Correct 4 ms 9820 KB Output is correct
22 Correct 4 ms 9820 KB Output is correct
23 Correct 4 ms 9820 KB Output is correct
24 Correct 4 ms 9820 KB Output is correct
25 Correct 4 ms 9820 KB Output is correct
26 Correct 4 ms 9820 KB Output is correct
27 Correct 4 ms 9820 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 69 ms 25524 KB Output is correct
2 Correct 71 ms 25172 KB Output is correct
3 Correct 67 ms 24916 KB Output is correct
4 Correct 66 ms 23996 KB Output is correct
5 Correct 58 ms 23300 KB Output is correct
6 Correct 56 ms 22864 KB Output is correct
7 Correct 57 ms 22864 KB Output is correct
8 Correct 51 ms 22608 KB Output is correct
9 Correct 52 ms 22352 KB Output is correct
10 Correct 53 ms 22352 KB Output is correct
11 Correct 59 ms 22356 KB Output is correct
12 Correct 47 ms 22488 KB Output is correct
13 Correct 48 ms 22664 KB Output is correct
14 Correct 57 ms 25040 KB Output is correct
15 Correct 74 ms 30756 KB Output is correct
16 Correct 70 ms 28728 KB Output is correct
17 Correct 72 ms 29608 KB Output is correct
18 Correct 65 ms 27728 KB Output is correct
19 Correct 75 ms 24020 KB Output is correct
20 Correct 71 ms 24092 KB Output is correct
21 Correct 64 ms 24144 KB Output is correct
22 Correct 60 ms 23636 KB Output is correct
23 Correct 52 ms 22884 KB Output is correct
24 Correct 63 ms 25428 KB Output is correct
25 Correct 67 ms 25424 KB Output is correct
26 Correct 58 ms 24784 KB Output is correct
27 Correct 65 ms 24924 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9816 KB Output is correct
2 Correct 4 ms 9744 KB Output is correct
3 Correct 4 ms 9820 KB Output is correct
4 Correct 4 ms 9820 KB Output is correct
5 Correct 4 ms 9704 KB Output is correct
6 Correct 4 ms 9816 KB Output is correct
7 Correct 4 ms 9820 KB Output is correct
8 Correct 4 ms 9820 KB Output is correct
9 Correct 4 ms 9864 KB Output is correct
10 Correct 4 ms 9820 KB Output is correct
11 Correct 5 ms 9820 KB Output is correct
12 Correct 4 ms 9820 KB Output is correct
13 Correct 4 ms 9864 KB Output is correct
14 Correct 4 ms 9876 KB Output is correct
15 Correct 4 ms 9820 KB Output is correct
16 Correct 4 ms 9820 KB Output is correct
17 Correct 4 ms 9820 KB Output is correct
18 Correct 4 ms 9820 KB Output is correct
19 Correct 4 ms 9816 KB Output is correct
20 Correct 4 ms 9820 KB Output is correct
21 Correct 4 ms 9820 KB Output is correct
22 Correct 4 ms 9820 KB Output is correct
23 Correct 4 ms 9864 KB Output is correct
24 Correct 5 ms 9820 KB Output is correct
25 Correct 4 ms 9820 KB Output is correct
26 Correct 6 ms 9820 KB Output is correct
27 Correct 4 ms 9864 KB Output is correct
28 Correct 4 ms 9820 KB Output is correct
29 Correct 4 ms 9872 KB Output is correct
30 Correct 4 ms 9820 KB Output is correct
31 Correct 4 ms 9820 KB Output is correct
32 Correct 4 ms 9820 KB Output is correct
33 Correct 4 ms 9820 KB Output is correct
34 Correct 4 ms 9820 KB Output is correct
35 Correct 4 ms 9684 KB Output is correct
36 Correct 4 ms 9820 KB Output is correct
37 Correct 4 ms 9872 KB Output is correct
38 Correct 4 ms 9868 KB Output is correct
39 Correct 4 ms 9820 KB Output is correct
40 Correct 4 ms 9820 KB Output is correct
41 Correct 4 ms 9820 KB Output is correct
42 Correct 4 ms 9816 KB Output is correct
43 Correct 4 ms 9816 KB Output is correct
44 Correct 4 ms 9820 KB Output is correct
45 Correct 4 ms 9820 KB Output is correct
46 Correct 5 ms 9820 KB Output is correct
47 Correct 4 ms 9820 KB Output is correct
48 Correct 4 ms 9820 KB Output is correct
49 Correct 4 ms 9820 KB Output is correct
50 Correct 4 ms 9820 KB Output is correct
51 Correct 4 ms 9820 KB Output is correct
52 Correct 4 ms 9820 KB Output is correct
53 Correct 4 ms 9820 KB Output is correct
54 Correct 4 ms 9820 KB Output is correct
55 Correct 4 ms 9820 KB Output is correct
56 Correct 4 ms 9820 KB Output is correct
57 Correct 4 ms 9820 KB Output is correct
58 Correct 4 ms 9820 KB Output is correct
59 Correct 5 ms 9820 KB Output is correct
60 Correct 4 ms 9820 KB Output is correct
61 Correct 4 ms 9820 KB Output is correct
62 Correct 4 ms 9820 KB Output is correct
63 Correct 4 ms 9780 KB Output is correct
64 Correct 4 ms 9820 KB Output is correct
65 Correct 4 ms 9820 KB Output is correct
66 Correct 4 ms 9820 KB Output is correct
67 Correct 4 ms 9820 KB Output is correct
68 Correct 4 ms 9820 KB Output is correct
69 Correct 4 ms 9820 KB Output is correct
70 Correct 4 ms 10076 KB Output is correct
71 Correct 4 ms 9820 KB Output is correct
72 Correct 4 ms 9820 KB Output is correct
73 Correct 4 ms 9820 KB Output is correct
74 Correct 7 ms 9908 KB Output is correct
75 Correct 4 ms 9968 KB Output is correct
76 Correct 5 ms 9820 KB Output is correct
77 Correct 6 ms 9816 KB Output is correct
78 Correct 5 ms 9872 KB Output is correct
79 Correct 4 ms 9820 KB Output is correct
80 Correct 4 ms 9820 KB Output is correct
81 Correct 4 ms 9820 KB Output is correct
82 Correct 4 ms 10076 KB Output is correct
83 Correct 4 ms 10084 KB Output is correct
84 Correct 4 ms 9820 KB Output is correct
85 Correct 4 ms 9820 KB Output is correct
86 Correct 4 ms 9924 KB Output is correct
87 Correct 5 ms 10080 KB Output is correct
88 Correct 4 ms 9820 KB Output is correct
89 Correct 4 ms 9908 KB Output is correct
90 Correct 5 ms 9820 KB Output is correct
91 Correct 5 ms 9876 KB Output is correct
92 Correct 4 ms 9820 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 9816 KB Output is correct
2 Correct 4 ms 9744 KB Output is correct
3 Correct 4 ms 9820 KB Output is correct
4 Correct 4 ms 9820 KB Output is correct
5 Correct 4 ms 9704 KB Output is correct
6 Correct 4 ms 9816 KB Output is correct
7 Correct 4 ms 9820 KB Output is correct
8 Correct 4 ms 9820 KB Output is correct
9 Correct 4 ms 9864 KB Output is correct
10 Correct 4 ms 9820 KB Output is correct
11 Correct 5 ms 9820 KB Output is correct
12 Correct 4 ms 9820 KB Output is correct
13 Correct 4 ms 9864 KB Output is correct
14 Correct 4 ms 9876 KB Output is correct
15 Correct 4 ms 9820 KB Output is correct
16 Correct 4 ms 9820 KB Output is correct
17 Correct 4 ms 9820 KB Output is correct
18 Correct 4 ms 9820 KB Output is correct
19 Correct 4 ms 9816 KB Output is correct
20 Correct 4 ms 9820 KB Output is correct
21 Correct 4 ms 9820 KB Output is correct
22 Correct 4 ms 9820 KB Output is correct
23 Correct 4 ms 9864 KB Output is correct
24 Correct 5 ms 9820 KB Output is correct
25 Correct 4 ms 9820 KB Output is correct
26 Correct 6 ms 9820 KB Output is correct
27 Correct 4 ms 9864 KB Output is correct
28 Correct 4 ms 9820 KB Output is correct
29 Correct 4 ms 9872 KB Output is correct
30 Correct 4 ms 9820 KB Output is correct
31 Correct 4 ms 9820 KB Output is correct
32 Correct 4 ms 9820 KB Output is correct
33 Correct 4 ms 9820 KB Output is correct
34 Correct 4 ms 9820 KB Output is correct
35 Correct 4 ms 9684 KB Output is correct
36 Correct 4 ms 9820 KB Output is correct
37 Correct 4 ms 9872 KB Output is correct
38 Correct 4 ms 9868 KB Output is correct
39 Correct 4 ms 9820 KB Output is correct
40 Correct 4 ms 9820 KB Output is correct
41 Correct 4 ms 9820 KB Output is correct
42 Correct 4 ms 9816 KB Output is correct
43 Correct 4 ms 9816 KB Output is correct
44 Correct 4 ms 9820 KB Output is correct
45 Correct 4 ms 9820 KB Output is correct
46 Correct 5 ms 9820 KB Output is correct
47 Correct 4 ms 9820 KB Output is correct
48 Correct 4 ms 9820 KB Output is correct
49 Correct 4 ms 9820 KB Output is correct
50 Correct 4 ms 9820 KB Output is correct
51 Correct 4 ms 9820 KB Output is correct
52 Correct 4 ms 9820 KB Output is correct
53 Correct 4 ms 9820 KB Output is correct
54 Correct 4 ms 9820 KB Output is correct
55 Correct 4 ms 9820 KB Output is correct
56 Correct 4 ms 9820 KB Output is correct
57 Correct 4 ms 9820 KB Output is correct
58 Correct 4 ms 9820 KB Output is correct
59 Correct 5 ms 9820 KB Output is correct
60 Correct 4 ms 9820 KB Output is correct
61 Correct 4 ms 9820 KB Output is correct
62 Correct 4 ms 9820 KB Output is correct
63 Correct 4 ms 9780 KB Output is correct
64 Correct 4 ms 9820 KB Output is correct
65 Correct 4 ms 9820 KB Output is correct
66 Correct 55 ms 33224 KB Output is correct
67 Correct 55 ms 33224 KB Output is correct
68 Correct 63 ms 30156 KB Output is correct
69 Correct 61 ms 31396 KB Output is correct
70 Correct 65 ms 27164 KB Output is correct
71 Correct 66 ms 29032 KB Output is correct
72 Correct 57 ms 26884 KB Output is correct
73 Correct 62 ms 27476 KB Output is correct
74 Correct 61 ms 25372 KB Output is correct
75 Correct 78 ms 25772 KB Output is correct
76 Correct 50 ms 23036 KB Output is correct
77 Correct 50 ms 22868 KB Output is correct
78 Correct 46 ms 22732 KB Output is correct
79 Correct 46 ms 22216 KB Output is correct
80 Correct 35 ms 20948 KB Output is correct
81 Correct 37 ms 20688 KB Output is correct
82 Correct 6 ms 11500 KB Output is correct
83 Correct 6 ms 11568 KB Output is correct
84 Correct 10 ms 11492 KB Output is correct
85 Correct 6 ms 11496 KB Output is correct
86 Correct 6 ms 11488 KB Output is correct
87 Correct 6 ms 11484 KB Output is correct
88 Correct 5 ms 9820 KB Output is correct
89 Correct 4 ms 9872 KB Output is correct
90 Correct 5 ms 10072 KB Output is correct
91 Correct 5 ms 10076 KB Output is correct
92 Correct 4 ms 10076 KB Output is correct
93 Correct 4 ms 10076 KB Output is correct
94 Correct 4 ms 10076 KB Output is correct
95 Correct 4 ms 10076 KB Output is correct
96 Correct 4 ms 9820 KB Output is correct
97 Correct 5 ms 10004 KB Output is correct
98 Correct 5 ms 9820 KB Output is correct
99 Correct 4 ms 9988 KB Output is correct
100 Correct 4 ms 9820 KB Output is correct
101 Correct 5 ms 9820 KB Output is correct
102 Correct 5 ms 9820 KB Output is correct
103 Correct 4 ms 9820 KB Output is correct
104 Correct 4 ms 9820 KB Output is correct
105 Correct 4 ms 9820 KB Output is correct
106 Correct 4 ms 9820 KB Output is correct
107 Correct 5 ms 9820 KB Output is correct
108 Correct 67 ms 25304 KB Output is correct
109 Correct 75 ms 25428 KB Output is correct
110 Correct 66 ms 25424 KB Output is correct
111 Correct 65 ms 25536 KB Output is correct
112 Correct 70 ms 25528 KB Output is correct
113 Correct 73 ms 33740 KB Output is correct
114 Correct 79 ms 30828 KB Output is correct
115 Correct 74 ms 29472 KB Output is correct
116 Correct 70 ms 27984 KB Output is correct
117 Correct 67 ms 25404 KB Output is correct
118 Correct 65 ms 25316 KB Output is correct
119 Correct 65 ms 25328 KB Output is correct
120 Correct 56 ms 25424 KB Output is correct
121 Correct 63 ms 24620 KB Output is correct
122 Correct 54 ms 23888 KB Output is correct
123 Correct 35 ms 20440 KB Output is correct
124 Correct 51 ms 26220 KB Output is correct
125 Correct 59 ms 26184 KB Output is correct
126 Correct 47 ms 26568 KB Output is correct
127 Correct 57 ms 26272 KB Output is correct
128 Correct 4 ms 9816 KB Output is correct
129 Correct 4 ms 9820 KB Output is correct
130 Correct 4 ms 9820 KB Output is correct
131 Correct 4 ms 9820 KB Output is correct
132 Correct 4 ms 9784 KB Output is correct
133 Correct 4 ms 9820 KB Output is correct
134 Correct 4 ms 9820 KB Output is correct
135 Correct 4 ms 9820 KB Output is correct
136 Correct 4 ms 9884 KB Output is correct
137 Correct 4 ms 9820 KB Output is correct
138 Correct 4 ms 9820 KB Output is correct
139 Correct 5 ms 10076 KB Output is correct
140 Correct 4 ms 9820 KB Output is correct
141 Correct 4 ms 10076 KB Output is correct
142 Correct 4 ms 9820 KB Output is correct
143 Correct 5 ms 9820 KB Output is correct
144 Correct 4 ms 9876 KB Output is correct
145 Correct 4 ms 9820 KB Output is correct
146 Correct 5 ms 9820 KB Output is correct
147 Correct 5 ms 9820 KB Output is correct
148 Correct 4 ms 9820 KB Output is correct
149 Correct 4 ms 9820 KB Output is correct
150 Correct 4 ms 9820 KB Output is correct
151 Correct 4 ms 9820 KB Output is correct
152 Correct 4 ms 9820 KB Output is correct
153 Correct 4 ms 9820 KB Output is correct
154 Correct 4 ms 9820 KB Output is correct
155 Correct 69 ms 25524 KB Output is correct
156 Correct 71 ms 25172 KB Output is correct
157 Correct 67 ms 24916 KB Output is correct
158 Correct 66 ms 23996 KB Output is correct
159 Correct 58 ms 23300 KB Output is correct
160 Correct 56 ms 22864 KB Output is correct
161 Correct 57 ms 22864 KB Output is correct
162 Correct 51 ms 22608 KB Output is correct
163 Correct 52 ms 22352 KB Output is correct
164 Correct 53 ms 22352 KB Output is correct
165 Correct 59 ms 22356 KB Output is correct
166 Correct 47 ms 22488 KB Output is correct
167 Correct 48 ms 22664 KB Output is correct
168 Correct 57 ms 25040 KB Output is correct
169 Correct 74 ms 30756 KB Output is correct
170 Correct 70 ms 28728 KB Output is correct
171 Correct 72 ms 29608 KB Output is correct
172 Correct 65 ms 27728 KB Output is correct
173 Correct 75 ms 24020 KB Output is correct
174 Correct 71 ms 24092 KB Output is correct
175 Correct 64 ms 24144 KB Output is correct
176 Correct 60 ms 23636 KB Output is correct
177 Correct 52 ms 22884 KB Output is correct
178 Correct 63 ms 25428 KB Output is correct
179 Correct 67 ms 25424 KB Output is correct
180 Correct 58 ms 24784 KB Output is correct
181 Correct 65 ms 24924 KB Output is correct
182 Correct 4 ms 9820 KB Output is correct
183 Correct 4 ms 9820 KB Output is correct
184 Correct 4 ms 9820 KB Output is correct
185 Correct 4 ms 9820 KB Output is correct
186 Correct 4 ms 10076 KB Output is correct
187 Correct 4 ms 9820 KB Output is correct
188 Correct 4 ms 9820 KB Output is correct
189 Correct 4 ms 9820 KB Output is correct
190 Correct 7 ms 9908 KB Output is correct
191 Correct 4 ms 9968 KB Output is correct
192 Correct 5 ms 9820 KB Output is correct
193 Correct 6 ms 9816 KB Output is correct
194 Correct 5 ms 9872 KB Output is correct
195 Correct 4 ms 9820 KB Output is correct
196 Correct 4 ms 9820 KB Output is correct
197 Correct 4 ms 9820 KB Output is correct
198 Correct 4 ms 10076 KB Output is correct
199 Correct 4 ms 10084 KB Output is correct
200 Correct 4 ms 9820 KB Output is correct
201 Correct 4 ms 9820 KB Output is correct
202 Correct 4 ms 9924 KB Output is correct
203 Correct 5 ms 10080 KB Output is correct
204 Correct 4 ms 9820 KB Output is correct
205 Correct 4 ms 9908 KB Output is correct
206 Correct 5 ms 9820 KB Output is correct
207 Correct 5 ms 9876 KB Output is correct
208 Correct 4 ms 9820 KB Output is correct
209 Correct 6 ms 11484 KB Output is correct
210 Correct 37 ms 19436 KB Output is correct
211 Correct 47 ms 24868 KB Output is correct
212 Correct 66 ms 28520 KB Output is correct
213 Correct 73 ms 30924 KB Output is correct
214 Correct 35 ms 22864 KB Output is correct
215 Correct 33 ms 22792 KB Output is correct
216 Correct 78 ms 24896 KB Output is correct
217 Correct 63 ms 23892 KB Output is correct
218 Correct 57 ms 22612 KB Output is correct
219 Correct 52 ms 22352 KB Output is correct
220 Correct 45 ms 22352 KB Output is correct
221 Correct 48 ms 22612 KB Output is correct
222 Correct 42 ms 23888 KB Output is correct
223 Correct 59 ms 26708 KB Output is correct
224 Correct 63 ms 25684 KB Output is correct
225 Correct 59 ms 23632 KB Output is correct
226 Correct 56 ms 23640 KB Output is correct
227 Correct 54 ms 23632 KB Output is correct
228 Correct 55 ms 23176 KB Output is correct
229 Correct 60 ms 22864 KB Output is correct
230 Correct 63 ms 24060 KB Output is correct
231 Correct 55 ms 24064 KB Output is correct