답안 #1077171

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1077171 2024-08-27T02:26:11 Z emptypringlescan 봉쇄 시간 (IOI23_closing) C++17
100 / 100
296 ms 41272 KB
#include <bits/stdc++.h>
using namespace std;
vector<pair<int,long long> > adj[200005];
pair<long long,long long> cost[200005];
void dfs1(int x, int p, long long d){
	cost[x].first=d;
	for(auto i:adj[x]){
		if(i.first==p) continue;
		dfs1(i.first,x,d+i.second);
	}
}
void dfs2(int x, int p, long long d){
	cost[x].second=d;
	for(auto i:adj[x]){
		if(i.first==p) continue;
		dfs2(i.first,x,d+i.second);
	}
}
bool cmp(pair<long long,long long> a,pair<long long,long long> b){
	return a.first+a.second<b.first+b.second;
}
int max_score(int n, int n1, int n2, long long k, vector<int> u, vector<int> v, vector<int> w){
	for(int i=0; i<n-1; i++){
		adj[u[i]].push_back({v[i],w[i]});
		adj[v[i]].push_back({u[i],w[i]});
	}
	dfs1(n1,-1,0);
	dfs2(n2,-1,0);
	long long pathd=cost[n2].first;
	for(int i=0; i<n; i++){
		if(cost[i].first>cost[i].second) swap(cost[i].first,cost[i].second);
		cost[i].second-=cost[i].first;
	}
	sort(cost,cost+n,cmp);
	multiset<long long> s1,s2;
	long long alr=0;
	int ans=0;
	for(int i=0; i<n; i++) s2.insert(cost[i].first);
	while(!s2.empty()&&alr+*s2.begin()<=k){
		long long x=*s2.begin();
		s1.insert(x);
		alr+=x;
		s2.erase(s2.begin());
	}
	if(alr<=k) ans=max(ans,(int)s1.size());
	//cout << ans << '\n';
	s1.clear(); s2.clear(); alr=0;
	int bas=0;
	for(int i=0; i<n; i++){
		if(cost[i].first+cost[i].first+cost[i].second==pathd){
			bas++;
			alr+=cost[i].first;
			s2.insert(cost[i].second);
			cost[i].first=-1;
		}
		else s2.insert(cost[i].first);
	}
	while(!s2.empty()&&alr+*s2.begin()<=k){
		long long x=*s2.begin();
		s1.insert(x);
		alr+=x;
		s2.erase(s2.begin());
	}
	if(alr<=k) ans=max(ans,(int)s1.size()+bas);
	//cout << ans << '\n';
	for(int i=0; i<n; i++){
		if(cost[i].first==-1) continue;
		//cout << cost[i].first << ' ' << cost[i].second << '\n';
		if(s1.find(cost[i].first)!=s1.end()){
			s1.erase(s1.find(cost[i].first));
		}
		else{
			s2.erase(s2.find(cost[i].first));
			alr+=cost[i].first;
		}
		bas++;
		s2.insert(cost[i].second);
		long long x=*s2.begin();
		s1.insert(x);
		alr+=x;
		s2.erase(s2.begin());
		while(!s1.empty()&&alr>k){
			x=*(--s1.end());
			s2.insert(x);
			s1.erase(--s1.end());
			alr-=x;
		}
		if(alr>k) break;
		ans=max(ans,(int)s1.size()+bas);
		//cout << ans << '\n';
	}
	for(int i=0; i<=n; i++){
		adj[i].clear();
		cost[i]={0,0};
	}
	return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 159 ms 37968 KB Output is correct
2 Correct 161 ms 41272 KB Output is correct
3 Correct 100 ms 10236 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 3 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 3 ms 4956 KB Output is correct
9 Correct 2 ms 4956 KB Output is correct
10 Correct 3 ms 4956 KB Output is correct
11 Correct 4 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 3 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 3 ms 4956 KB Output is correct
9 Correct 2 ms 4956 KB Output is correct
10 Correct 3 ms 4956 KB Output is correct
11 Correct 4 ms 4956 KB Output is correct
12 Correct 3 ms 4956 KB Output is correct
13 Correct 2 ms 4956 KB Output is correct
14 Correct 3 ms 4952 KB Output is correct
15 Correct 2 ms 4952 KB Output is correct
16 Correct 2 ms 4952 KB Output is correct
17 Correct 3 ms 4960 KB Output is correct
18 Correct 3 ms 4956 KB Output is correct
19 Correct 2 ms 5212 KB Output is correct
20 Correct 3 ms 5212 KB Output is correct
21 Correct 2 ms 5212 KB Output is correct
22 Correct 3 ms 5212 KB Output is correct
23 Correct 3 ms 5208 KB Output is correct
24 Correct 3 ms 5212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 4956 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 3 ms 4956 KB Output is correct
7 Correct 2 ms 4956 KB Output is correct
8 Correct 3 ms 4956 KB Output is correct
9 Correct 2 ms 4956 KB Output is correct
10 Correct 3 ms 4956 KB Output is correct
11 Correct 4 ms 4956 KB Output is correct
12 Correct 3 ms 4956 KB Output is correct
13 Correct 2 ms 4956 KB Output is correct
14 Correct 3 ms 4952 KB Output is correct
15 Correct 2 ms 4952 KB Output is correct
16 Correct 2 ms 4952 KB Output is correct
17 Correct 3 ms 4960 KB Output is correct
18 Correct 3 ms 4956 KB Output is correct
19 Correct 2 ms 5212 KB Output is correct
20 Correct 3 ms 5212 KB Output is correct
21 Correct 2 ms 5212 KB Output is correct
22 Correct 3 ms 5212 KB Output is correct
23 Correct 3 ms 5208 KB Output is correct
24 Correct 3 ms 5212 KB Output is correct
25 Correct 4 ms 5208 KB Output is correct
26 Correct 5 ms 5468 KB Output is correct
27 Correct 3 ms 5596 KB Output is correct
28 Correct 4 ms 5460 KB Output is correct
29 Correct 4 ms 5464 KB Output is correct
30 Correct 4 ms 5468 KB Output is correct
31 Correct 4 ms 5468 KB Output is correct
32 Correct 4 ms 5468 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 4952 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 2 ms 4956 KB Output is correct
9 Correct 2 ms 4956 KB Output is correct
10 Correct 2 ms 4956 KB Output is correct
11 Correct 3 ms 5212 KB Output is correct
12 Correct 2 ms 4956 KB Output is correct
13 Correct 3 ms 4956 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 2 ms 4956 KB Output is correct
16 Correct 2 ms 5204 KB Output is correct
17 Correct 2 ms 4948 KB Output is correct
18 Correct 2 ms 4956 KB Output is correct
19 Correct 3 ms 5208 KB Output is correct
20 Correct 2 ms 4952 KB Output is correct
21 Correct 3 ms 4956 KB Output is correct
22 Correct 2 ms 4956 KB Output is correct
23 Correct 2 ms 4956 KB Output is correct
24 Correct 2 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 4952 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 2 ms 4956 KB Output is correct
9 Correct 3 ms 4956 KB Output is correct
10 Correct 2 ms 4956 KB Output is correct
11 Correct 3 ms 4956 KB Output is correct
12 Correct 4 ms 4956 KB Output is correct
13 Correct 3 ms 4956 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 3 ms 4952 KB Output is correct
16 Correct 2 ms 4952 KB Output is correct
17 Correct 2 ms 4952 KB Output is correct
18 Correct 3 ms 4960 KB Output is correct
19 Correct 3 ms 4956 KB Output is correct
20 Correct 2 ms 4956 KB Output is correct
21 Correct 2 ms 4956 KB Output is correct
22 Correct 2 ms 4956 KB Output is correct
23 Correct 3 ms 5212 KB Output is correct
24 Correct 2 ms 4956 KB Output is correct
25 Correct 3 ms 4956 KB Output is correct
26 Correct 2 ms 4956 KB Output is correct
27 Correct 2 ms 4956 KB Output is correct
28 Correct 2 ms 5204 KB Output is correct
29 Correct 2 ms 4948 KB Output is correct
30 Correct 2 ms 4956 KB Output is correct
31 Correct 3 ms 5208 KB Output is correct
32 Correct 2 ms 4952 KB Output is correct
33 Correct 3 ms 4956 KB Output is correct
34 Correct 2 ms 4956 KB Output is correct
35 Correct 2 ms 4956 KB Output is correct
36 Correct 2 ms 4956 KB Output is correct
37 Correct 3 ms 4956 KB Output is correct
38 Correct 3 ms 4956 KB Output is correct
39 Correct 2 ms 4956 KB Output is correct
40 Correct 3 ms 4956 KB Output is correct
41 Correct 2 ms 4956 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 3 ms 4956 KB Output is correct
44 Correct 2 ms 4956 KB Output is correct
45 Correct 2 ms 4956 KB Output is correct
46 Correct 3 ms 4956 KB Output is correct
47 Correct 3 ms 4956 KB Output is correct
48 Correct 2 ms 4952 KB Output is correct
49 Correct 3 ms 4956 KB Output is correct
50 Correct 2 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 4952 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 2 ms 4956 KB Output is correct
9 Correct 3 ms 4956 KB Output is correct
10 Correct 2 ms 4956 KB Output is correct
11 Correct 3 ms 4956 KB Output is correct
12 Correct 4 ms 4956 KB Output is correct
13 Correct 3 ms 4956 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 3 ms 4952 KB Output is correct
16 Correct 2 ms 4952 KB Output is correct
17 Correct 2 ms 4952 KB Output is correct
18 Correct 3 ms 4960 KB Output is correct
19 Correct 3 ms 4956 KB Output is correct
20 Correct 2 ms 5212 KB Output is correct
21 Correct 3 ms 5212 KB Output is correct
22 Correct 2 ms 5212 KB Output is correct
23 Correct 3 ms 5212 KB Output is correct
24 Correct 3 ms 5208 KB Output is correct
25 Correct 3 ms 5212 KB Output is correct
26 Correct 3 ms 4956 KB Output is correct
27 Correct 2 ms 4956 KB Output is correct
28 Correct 2 ms 4956 KB Output is correct
29 Correct 2 ms 4956 KB Output is correct
30 Correct 3 ms 5212 KB Output is correct
31 Correct 2 ms 4956 KB Output is correct
32 Correct 3 ms 4956 KB Output is correct
33 Correct 2 ms 4956 KB Output is correct
34 Correct 2 ms 4956 KB Output is correct
35 Correct 2 ms 5204 KB Output is correct
36 Correct 2 ms 4948 KB Output is correct
37 Correct 2 ms 4956 KB Output is correct
38 Correct 3 ms 5208 KB Output is correct
39 Correct 2 ms 4952 KB Output is correct
40 Correct 3 ms 4956 KB Output is correct
41 Correct 2 ms 4956 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 2 ms 4956 KB Output is correct
44 Correct 3 ms 4956 KB Output is correct
45 Correct 3 ms 4956 KB Output is correct
46 Correct 2 ms 4956 KB Output is correct
47 Correct 3 ms 4956 KB Output is correct
48 Correct 2 ms 4956 KB Output is correct
49 Correct 2 ms 4956 KB Output is correct
50 Correct 3 ms 4956 KB Output is correct
51 Correct 2 ms 4956 KB Output is correct
52 Correct 2 ms 4956 KB Output is correct
53 Correct 3 ms 4956 KB Output is correct
54 Correct 3 ms 4956 KB Output is correct
55 Correct 2 ms 4952 KB Output is correct
56 Correct 3 ms 4956 KB Output is correct
57 Correct 2 ms 4956 KB Output is correct
58 Correct 2 ms 4952 KB Output is correct
59 Correct 3 ms 5084 KB Output is correct
60 Correct 4 ms 4956 KB Output is correct
61 Correct 2 ms 4956 KB Output is correct
62 Correct 3 ms 4956 KB Output is correct
63 Correct 4 ms 4956 KB Output is correct
64 Correct 2 ms 5212 KB Output is correct
65 Correct 2 ms 4956 KB Output is correct
66 Correct 4 ms 4956 KB Output is correct
67 Correct 3 ms 4956 KB Output is correct
68 Correct 2 ms 5212 KB Output is correct
69 Correct 2 ms 5212 KB Output is correct
70 Correct 2 ms 5212 KB Output is correct
71 Correct 3 ms 5076 KB Output is correct
72 Correct 3 ms 4952 KB Output is correct
73 Correct 3 ms 4952 KB Output is correct
74 Correct 3 ms 4960 KB Output is correct
75 Correct 2 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 4952 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 2 ms 4956 KB Output is correct
9 Correct 3 ms 4956 KB Output is correct
10 Correct 2 ms 4956 KB Output is correct
11 Correct 3 ms 4956 KB Output is correct
12 Correct 4 ms 4956 KB Output is correct
13 Correct 3 ms 4956 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 3 ms 4952 KB Output is correct
16 Correct 2 ms 4952 KB Output is correct
17 Correct 2 ms 4952 KB Output is correct
18 Correct 3 ms 4960 KB Output is correct
19 Correct 3 ms 4956 KB Output is correct
20 Correct 2 ms 5212 KB Output is correct
21 Correct 3 ms 5212 KB Output is correct
22 Correct 2 ms 5212 KB Output is correct
23 Correct 3 ms 5212 KB Output is correct
24 Correct 3 ms 5208 KB Output is correct
25 Correct 3 ms 5212 KB Output is correct
26 Correct 4 ms 5208 KB Output is correct
27 Correct 5 ms 5468 KB Output is correct
28 Correct 3 ms 5596 KB Output is correct
29 Correct 4 ms 5460 KB Output is correct
30 Correct 4 ms 5464 KB Output is correct
31 Correct 4 ms 5468 KB Output is correct
32 Correct 4 ms 5468 KB Output is correct
33 Correct 4 ms 5468 KB Output is correct
34 Correct 3 ms 4956 KB Output is correct
35 Correct 2 ms 4956 KB Output is correct
36 Correct 2 ms 4956 KB Output is correct
37 Correct 2 ms 4956 KB Output is correct
38 Correct 3 ms 5212 KB Output is correct
39 Correct 2 ms 4956 KB Output is correct
40 Correct 3 ms 4956 KB Output is correct
41 Correct 2 ms 4956 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 2 ms 5204 KB Output is correct
44 Correct 2 ms 4948 KB Output is correct
45 Correct 2 ms 4956 KB Output is correct
46 Correct 3 ms 5208 KB Output is correct
47 Correct 2 ms 4952 KB Output is correct
48 Correct 3 ms 4956 KB Output is correct
49 Correct 2 ms 4956 KB Output is correct
50 Correct 2 ms 4956 KB Output is correct
51 Correct 2 ms 4956 KB Output is correct
52 Correct 3 ms 4956 KB Output is correct
53 Correct 3 ms 4956 KB Output is correct
54 Correct 2 ms 4956 KB Output is correct
55 Correct 3 ms 4956 KB Output is correct
56 Correct 2 ms 4956 KB Output is correct
57 Correct 2 ms 4956 KB Output is correct
58 Correct 3 ms 4956 KB Output is correct
59 Correct 2 ms 4956 KB Output is correct
60 Correct 2 ms 4956 KB Output is correct
61 Correct 3 ms 4956 KB Output is correct
62 Correct 3 ms 4956 KB Output is correct
63 Correct 2 ms 4952 KB Output is correct
64 Correct 3 ms 4956 KB Output is correct
65 Correct 2 ms 4956 KB Output is correct
66 Correct 2 ms 4952 KB Output is correct
67 Correct 3 ms 5084 KB Output is correct
68 Correct 4 ms 4956 KB Output is correct
69 Correct 2 ms 4956 KB Output is correct
70 Correct 3 ms 4956 KB Output is correct
71 Correct 4 ms 4956 KB Output is correct
72 Correct 2 ms 5212 KB Output is correct
73 Correct 2 ms 4956 KB Output is correct
74 Correct 4 ms 4956 KB Output is correct
75 Correct 3 ms 4956 KB Output is correct
76 Correct 2 ms 5212 KB Output is correct
77 Correct 2 ms 5212 KB Output is correct
78 Correct 2 ms 5212 KB Output is correct
79 Correct 3 ms 5076 KB Output is correct
80 Correct 3 ms 4952 KB Output is correct
81 Correct 3 ms 4952 KB Output is correct
82 Correct 3 ms 4960 KB Output is correct
83 Correct 2 ms 4956 KB Output is correct
84 Correct 4 ms 5212 KB Output is correct
85 Correct 4 ms 5212 KB Output is correct
86 Correct 5 ms 5212 KB Output is correct
87 Correct 4 ms 5216 KB Output is correct
88 Correct 4 ms 5212 KB Output is correct
89 Correct 4 ms 5468 KB Output is correct
90 Correct 5 ms 5468 KB Output is correct
91 Correct 4 ms 5468 KB Output is correct
92 Correct 4 ms 5464 KB Output is correct
93 Correct 4 ms 5468 KB Output is correct
94 Correct 4 ms 5468 KB Output is correct
95 Correct 5 ms 5464 KB Output is correct
96 Correct 5 ms 5468 KB Output is correct
97 Correct 5 ms 5468 KB Output is correct
98 Correct 4 ms 5468 KB Output is correct
99 Correct 6 ms 5468 KB Output is correct
100 Correct 4 ms 5408 KB Output is correct
101 Correct 5 ms 5192 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 4952 KB Output is correct
2 Correct 2 ms 4952 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 2 ms 4956 KB Output is correct
6 Correct 2 ms 4956 KB Output is correct
7 Correct 3 ms 4956 KB Output is correct
8 Correct 2 ms 4956 KB Output is correct
9 Correct 3 ms 4956 KB Output is correct
10 Correct 2 ms 4956 KB Output is correct
11 Correct 3 ms 4956 KB Output is correct
12 Correct 4 ms 4956 KB Output is correct
13 Correct 3 ms 4956 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 3 ms 4952 KB Output is correct
16 Correct 2 ms 4952 KB Output is correct
17 Correct 2 ms 4952 KB Output is correct
18 Correct 3 ms 4960 KB Output is correct
19 Correct 3 ms 4956 KB Output is correct
20 Correct 2 ms 5212 KB Output is correct
21 Correct 3 ms 5212 KB Output is correct
22 Correct 2 ms 5212 KB Output is correct
23 Correct 3 ms 5212 KB Output is correct
24 Correct 3 ms 5208 KB Output is correct
25 Correct 3 ms 5212 KB Output is correct
26 Correct 4 ms 5208 KB Output is correct
27 Correct 5 ms 5468 KB Output is correct
28 Correct 3 ms 5596 KB Output is correct
29 Correct 4 ms 5460 KB Output is correct
30 Correct 4 ms 5464 KB Output is correct
31 Correct 4 ms 5468 KB Output is correct
32 Correct 4 ms 5468 KB Output is correct
33 Correct 4 ms 5468 KB Output is correct
34 Correct 3 ms 4956 KB Output is correct
35 Correct 2 ms 4956 KB Output is correct
36 Correct 2 ms 4956 KB Output is correct
37 Correct 2 ms 4956 KB Output is correct
38 Correct 3 ms 5212 KB Output is correct
39 Correct 2 ms 4956 KB Output is correct
40 Correct 3 ms 4956 KB Output is correct
41 Correct 2 ms 4956 KB Output is correct
42 Correct 2 ms 4956 KB Output is correct
43 Correct 2 ms 5204 KB Output is correct
44 Correct 2 ms 4948 KB Output is correct
45 Correct 2 ms 4956 KB Output is correct
46 Correct 3 ms 5208 KB Output is correct
47 Correct 2 ms 4952 KB Output is correct
48 Correct 3 ms 4956 KB Output is correct
49 Correct 2 ms 4956 KB Output is correct
50 Correct 2 ms 4956 KB Output is correct
51 Correct 2 ms 4956 KB Output is correct
52 Correct 3 ms 4956 KB Output is correct
53 Correct 3 ms 4956 KB Output is correct
54 Correct 2 ms 4956 KB Output is correct
55 Correct 3 ms 4956 KB Output is correct
56 Correct 2 ms 4956 KB Output is correct
57 Correct 2 ms 4956 KB Output is correct
58 Correct 3 ms 4956 KB Output is correct
59 Correct 2 ms 4956 KB Output is correct
60 Correct 2 ms 4956 KB Output is correct
61 Correct 3 ms 4956 KB Output is correct
62 Correct 3 ms 4956 KB Output is correct
63 Correct 2 ms 4952 KB Output is correct
64 Correct 3 ms 4956 KB Output is correct
65 Correct 2 ms 4956 KB Output is correct
66 Correct 2 ms 4952 KB Output is correct
67 Correct 3 ms 5084 KB Output is correct
68 Correct 4 ms 4956 KB Output is correct
69 Correct 2 ms 4956 KB Output is correct
70 Correct 3 ms 4956 KB Output is correct
71 Correct 4 ms 4956 KB Output is correct
72 Correct 2 ms 5212 KB Output is correct
73 Correct 2 ms 4956 KB Output is correct
74 Correct 4 ms 4956 KB Output is correct
75 Correct 3 ms 4956 KB Output is correct
76 Correct 2 ms 5212 KB Output is correct
77 Correct 2 ms 5212 KB Output is correct
78 Correct 2 ms 5212 KB Output is correct
79 Correct 3 ms 5076 KB Output is correct
80 Correct 3 ms 4952 KB Output is correct
81 Correct 3 ms 4952 KB Output is correct
82 Correct 3 ms 4960 KB Output is correct
83 Correct 2 ms 4956 KB Output is correct
84 Correct 4 ms 5212 KB Output is correct
85 Correct 4 ms 5212 KB Output is correct
86 Correct 5 ms 5212 KB Output is correct
87 Correct 4 ms 5216 KB Output is correct
88 Correct 4 ms 5212 KB Output is correct
89 Correct 4 ms 5468 KB Output is correct
90 Correct 5 ms 5468 KB Output is correct
91 Correct 4 ms 5468 KB Output is correct
92 Correct 4 ms 5464 KB Output is correct
93 Correct 4 ms 5468 KB Output is correct
94 Correct 4 ms 5468 KB Output is correct
95 Correct 5 ms 5464 KB Output is correct
96 Correct 5 ms 5468 KB Output is correct
97 Correct 5 ms 5468 KB Output is correct
98 Correct 4 ms 5468 KB Output is correct
99 Correct 6 ms 5468 KB Output is correct
100 Correct 4 ms 5408 KB Output is correct
101 Correct 5 ms 5192 KB Output is correct
102 Correct 121 ms 10256 KB Output is correct
103 Correct 145 ms 10300 KB Output is correct
104 Correct 214 ms 40016 KB Output is correct
105 Correct 135 ms 11860 KB Output is correct
106 Correct 135 ms 11600 KB Output is correct
107 Correct 231 ms 31928 KB Output is correct
108 Correct 202 ms 32696 KB Output is correct
109 Correct 128 ms 38808 KB Output is correct
110 Correct 296 ms 36692 KB Output is correct
111 Correct 256 ms 37460 KB Output is correct
112 Correct 200 ms 36176 KB Output is correct
113 Correct 166 ms 35144 KB Output is correct
114 Correct 184 ms 35668 KB Output is correct
115 Correct 192 ms 40020 KB Output is correct
116 Correct 194 ms 36712 KB Output is correct
117 Correct 175 ms 37716 KB Output is correct
118 Correct 197 ms 36440 KB Output is correct
119 Correct 160 ms 14816 KB Output is correct
120 Correct 102 ms 9812 KB Output is correct