답안 #1065751

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1065751 2024-08-19T11:29:26 Z raspy 봉쇄 시간 (IOI23_closing) C++17
100 / 100
136 ms 45020 KB
#include "closing.h"

#include <vector>
#include <queue>
#include <iostream>
#define ll long long
#define vi vector<ll>
#define pb push_back
#define ii pair<ll, ll>
#define f first
#define s second
#define inf 1'000'000'000'000'000'000

using namespace std;

vector<ii> graf[200005];
vi dis1, dis2;

void dfs(ll u, vi& dis, ll p = -1)
{
	for (auto [v, w]:graf[u])
	{
		if (v == p) continue;
		dis[v] = dis[u]+w;
		dfs(v, dis, u);
	}
}

ll sol1(ll n, ll x, ll y, ll k)
{
	priority_queue<ll, vi, greater<ll>> pq;
	for (ll i = 0; i < n; i++)
		pq.push(dis2[i]);
	ll tk = 0;
	ll rez = 0;
	while (pq.size() && tk+pq.top() <= k)
	{
		tk+=pq.top();
		pq.pop();
		rez++;
	}
	return rez;
}

ll sol2(ll n, ll x, ll y, ll k)
{
	priority_queue<ii, vector<ii>, greater<ii>> pq;
	priority_queue<ii, vector<ii>, greater<ii>> pq1;
	priority_queue<ii, vector<ii>, greater<ii>> pq2;
	ll tk = 0;
	ll rez = 0;
	vi dod(n);
	for (ll i = 0; i < n; i++)
	{
		if (dis1[i]+dis2[i] == dis1[x])
		{
			rez++;
			tk += dis2[i];
			pq.push({dis1[i]-dis2[i], i});
		}
		else
		{
			if (dis2[i]*2 <= dis1[i])
			{
				pq.push({dis2[i], i});
				pq.push({dis1[i]-dis2[i], i});
			}
			else
			{
				pq1.push({dis1[i], i});
				pq2.push({dis2[i], i});
			}
		}
	}
	if (tk > k)
		return 0;
	while (pq1.size() && tk+pq1.top().f <= k)
	{
		if (pq.size() <= 1)
		{
			rez+=2;
			tk += pq1.top().f;
			dod[pq1.top().s] = 1;
			pq1.pop();
			continue;
		}
		ii pqt = pq.top();
		pq.pop();
		if (pqt.f+pq.top().f < pq1.top().f)
		{
			tk += pqt.f;
			rez++;
			continue;
		}
		pq.push(pqt);
		rez+=2;
		tk += pq1.top().f;
		dod[pq1.top().s] = 1;
		pq1.pop();
	}
	while (pq.size() && tk+pq.top().f <= k)
	{
		auto [d, u] = pq.top();
		pq.pop();
		tk+=d;
		rez++;
	}
	while (pq2.size() && pq2.top().f+tk <= k)
	{
		if (dod[pq2.top().s]) {pq2.pop();continue;}
		rez++;
		tk+=pq2.top().f;
		pq2.pop();
	}
	return rez;
}

int max_score(int n, int x, int y, long long k, vector<int> U, vector<int> V, vector<int> W)
{
	for (ll i = 0; i <= n; i++)
		graf[i].clear();
	dis1.clear();
	dis2.clear();
	dis1 = dis2 = vi(n, 0);
	for (ll i = 0; i < n-1; i++)
	{
		graf[U[i]].pb({V[i], W[i]});
		graf[V[i]].pb({U[i], W[i]});
	}
	dfs(x, dis1);
	dfs(y, dis2);
	for (ll i = 0; i < n; i++)
		if (dis1[i] < dis2[i])
			swap(dis1[i], dis2[i]);
	ll rez = sol1(n, x, y, k);
	rez = max(rez, sol2(n, x, y, k));
	return rez;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 103 ms 37032 KB Output is correct
2 Correct 93 ms 41620 KB Output is correct
3 Correct 49 ms 7772 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
2 Correct 1 ms 4956 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 1 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 1 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 4956 KB Output is correct
11 Correct 1 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
2 Correct 1 ms 4956 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 1 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 1 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 4956 KB Output is correct
11 Correct 1 ms 4956 KB Output is correct
12 Correct 2 ms 4952 KB Output is correct
13 Correct 2 ms 4956 KB Output is correct
14 Correct 1 ms 4956 KB Output is correct
15 Correct 1 ms 4956 KB Output is correct
16 Correct 1 ms 4952 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 5212 KB Output is correct
20 Correct 1 ms 5136 KB Output is correct
21 Correct 2 ms 5212 KB Output is correct
22 Correct 1 ms 5212 KB Output is correct
23 Correct 1 ms 5212 KB Output is correct
24 Correct 1 ms 5212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
2 Correct 1 ms 4956 KB Output is correct
3 Correct 2 ms 4956 KB Output is correct
4 Correct 1 ms 4956 KB Output is correct
5 Correct 1 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 1 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 4956 KB Output is correct
11 Correct 1 ms 4956 KB Output is correct
12 Correct 2 ms 4952 KB Output is correct
13 Correct 2 ms 4956 KB Output is correct
14 Correct 1 ms 4956 KB Output is correct
15 Correct 1 ms 4956 KB Output is correct
16 Correct 1 ms 4952 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 5212 KB Output is correct
20 Correct 1 ms 5136 KB Output is correct
21 Correct 2 ms 5212 KB Output is correct
22 Correct 1 ms 5212 KB Output is correct
23 Correct 1 ms 5212 KB Output is correct
24 Correct 1 ms 5212 KB Output is correct
25 Correct 2 ms 5208 KB Output is correct
26 Correct 2 ms 5664 KB Output is correct
27 Correct 2 ms 5724 KB Output is correct
28 Correct 2 ms 5660 KB Output is correct
29 Correct 2 ms 5724 KB Output is correct
30 Correct 2 ms 5724 KB Output is correct
31 Correct 2 ms 5724 KB Output is correct
32 Correct 2 ms 5724 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
2 Correct 1 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 1 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 1 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 4956 KB Output is correct
11 Correct 1 ms 4956 KB Output is correct
12 Correct 1 ms 4956 KB Output is correct
13 Correct 1 ms 4956 KB Output is correct
14 Correct 1 ms 4956 KB Output is correct
15 Correct 1 ms 4956 KB Output is correct
16 Correct 1 ms 4952 KB Output is correct
17 Correct 1 ms 4956 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 4952 KB Output is correct
20 Correct 1 ms 4956 KB Output is correct
21 Correct 1 ms 4956 KB Output is correct
22 Correct 1 ms 4956 KB Output is correct
23 Correct 1 ms 4956 KB Output is correct
24 Correct 1 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
2 Correct 1 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 1 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 1 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 4956 KB Output is correct
11 Correct 1 ms 4956 KB Output is correct
12 Correct 1 ms 4956 KB Output is correct
13 Correct 2 ms 4952 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 1 ms 4956 KB Output is correct
16 Correct 1 ms 4956 KB Output is correct
17 Correct 1 ms 4952 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 4956 KB Output is correct
20 Correct 1 ms 4956 KB Output is correct
21 Correct 1 ms 4956 KB Output is correct
22 Correct 1 ms 4956 KB Output is correct
23 Correct 1 ms 4956 KB Output is correct
24 Correct 1 ms 4956 KB Output is correct
25 Correct 1 ms 4956 KB Output is correct
26 Correct 1 ms 4956 KB Output is correct
27 Correct 1 ms 4956 KB Output is correct
28 Correct 1 ms 4952 KB Output is correct
29 Correct 1 ms 4956 KB Output is correct
30 Correct 1 ms 4956 KB Output is correct
31 Correct 1 ms 4952 KB Output is correct
32 Correct 1 ms 4956 KB Output is correct
33 Correct 1 ms 4956 KB Output is correct
34 Correct 1 ms 4956 KB Output is correct
35 Correct 1 ms 4956 KB Output is correct
36 Correct 1 ms 4956 KB Output is correct
37 Correct 2 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 2 ms 4956 KB Output is correct
40 Correct 1 ms 4956 KB Output is correct
41 Correct 1 ms 4956 KB Output is correct
42 Correct 1 ms 4956 KB Output is correct
43 Correct 1 ms 4956 KB Output is correct
44 Correct 1 ms 4956 KB Output is correct
45 Correct 1 ms 4956 KB Output is correct
46 Correct 1 ms 4952 KB Output is correct
47 Correct 2 ms 4944 KB Output is correct
48 Correct 1 ms 4956 KB Output is correct
49 Correct 1 ms 4956 KB Output is correct
50 Correct 1 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
2 Correct 1 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 1 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 1 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 4956 KB Output is correct
11 Correct 1 ms 4956 KB Output is correct
12 Correct 1 ms 4956 KB Output is correct
13 Correct 2 ms 4952 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 1 ms 4956 KB Output is correct
16 Correct 1 ms 4956 KB Output is correct
17 Correct 1 ms 4952 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 4956 KB Output is correct
20 Correct 1 ms 5212 KB Output is correct
21 Correct 1 ms 5136 KB Output is correct
22 Correct 2 ms 5212 KB Output is correct
23 Correct 1 ms 5212 KB Output is correct
24 Correct 1 ms 5212 KB Output is correct
25 Correct 1 ms 5212 KB Output is correct
26 Correct 1 ms 4956 KB Output is correct
27 Correct 1 ms 4956 KB Output is correct
28 Correct 1 ms 4956 KB Output is correct
29 Correct 1 ms 4956 KB Output is correct
30 Correct 1 ms 4956 KB Output is correct
31 Correct 1 ms 4956 KB Output is correct
32 Correct 1 ms 4956 KB Output is correct
33 Correct 1 ms 4956 KB Output is correct
34 Correct 1 ms 4956 KB Output is correct
35 Correct 1 ms 4952 KB Output is correct
36 Correct 1 ms 4956 KB Output is correct
37 Correct 1 ms 4956 KB Output is correct
38 Correct 1 ms 4952 KB Output is correct
39 Correct 1 ms 4956 KB Output is correct
40 Correct 1 ms 4956 KB Output is correct
41 Correct 1 ms 4956 KB Output is correct
42 Correct 1 ms 4956 KB Output is correct
43 Correct 1 ms 4956 KB Output is correct
44 Correct 2 ms 4956 KB Output is correct
45 Correct 1 ms 4956 KB Output is correct
46 Correct 2 ms 4956 KB Output is correct
47 Correct 1 ms 4956 KB Output is correct
48 Correct 1 ms 4956 KB Output is correct
49 Correct 1 ms 4956 KB Output is correct
50 Correct 1 ms 4956 KB Output is correct
51 Correct 1 ms 4956 KB Output is correct
52 Correct 1 ms 4956 KB Output is correct
53 Correct 1 ms 4952 KB Output is correct
54 Correct 2 ms 4944 KB Output is correct
55 Correct 1 ms 4956 KB Output is correct
56 Correct 1 ms 4956 KB Output is correct
57 Correct 1 ms 4956 KB Output is correct
58 Correct 1 ms 4952 KB Output is correct
59 Correct 1 ms 4956 KB Output is correct
60 Correct 1 ms 4956 KB Output is correct
61 Correct 1 ms 4956 KB Output is correct
62 Correct 1 ms 4956 KB Output is correct
63 Correct 2 ms 5212 KB Output is correct
64 Correct 2 ms 5212 KB Output is correct
65 Correct 1 ms 5208 KB Output is correct
66 Correct 1 ms 5212 KB Output is correct
67 Correct 1 ms 4956 KB Output is correct
68 Correct 1 ms 5212 KB Output is correct
69 Correct 1 ms 5212 KB Output is correct
70 Correct 1 ms 5212 KB Output is correct
71 Correct 1 ms 5212 KB Output is correct
72 Correct 2 ms 5212 KB Output is correct
73 Correct 1 ms 4956 KB Output is correct
74 Correct 1 ms 5140 KB Output is correct
75 Correct 1 ms 4956 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
2 Correct 1 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 1 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 1 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 4956 KB Output is correct
11 Correct 1 ms 4956 KB Output is correct
12 Correct 1 ms 4956 KB Output is correct
13 Correct 2 ms 4952 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 1 ms 4956 KB Output is correct
16 Correct 1 ms 4956 KB Output is correct
17 Correct 1 ms 4952 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 4956 KB Output is correct
20 Correct 1 ms 5212 KB Output is correct
21 Correct 1 ms 5136 KB Output is correct
22 Correct 2 ms 5212 KB Output is correct
23 Correct 1 ms 5212 KB Output is correct
24 Correct 1 ms 5212 KB Output is correct
25 Correct 1 ms 5212 KB Output is correct
26 Correct 2 ms 5208 KB Output is correct
27 Correct 2 ms 5664 KB Output is correct
28 Correct 2 ms 5724 KB Output is correct
29 Correct 2 ms 5660 KB Output is correct
30 Correct 2 ms 5724 KB Output is correct
31 Correct 2 ms 5724 KB Output is correct
32 Correct 2 ms 5724 KB Output is correct
33 Correct 2 ms 5724 KB Output is correct
34 Correct 1 ms 4956 KB Output is correct
35 Correct 1 ms 4956 KB Output is correct
36 Correct 1 ms 4956 KB Output is correct
37 Correct 1 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 1 ms 4956 KB Output is correct
40 Correct 1 ms 4956 KB Output is correct
41 Correct 1 ms 4956 KB Output is correct
42 Correct 1 ms 4956 KB Output is correct
43 Correct 1 ms 4952 KB Output is correct
44 Correct 1 ms 4956 KB Output is correct
45 Correct 1 ms 4956 KB Output is correct
46 Correct 1 ms 4952 KB Output is correct
47 Correct 1 ms 4956 KB Output is correct
48 Correct 1 ms 4956 KB Output is correct
49 Correct 1 ms 4956 KB Output is correct
50 Correct 1 ms 4956 KB Output is correct
51 Correct 1 ms 4956 KB Output is correct
52 Correct 2 ms 4956 KB Output is correct
53 Correct 1 ms 4956 KB Output is correct
54 Correct 2 ms 4956 KB Output is correct
55 Correct 1 ms 4956 KB Output is correct
56 Correct 1 ms 4956 KB Output is correct
57 Correct 1 ms 4956 KB Output is correct
58 Correct 1 ms 4956 KB Output is correct
59 Correct 1 ms 4956 KB Output is correct
60 Correct 1 ms 4956 KB Output is correct
61 Correct 1 ms 4952 KB Output is correct
62 Correct 2 ms 4944 KB Output is correct
63 Correct 1 ms 4956 KB Output is correct
64 Correct 1 ms 4956 KB Output is correct
65 Correct 1 ms 4956 KB Output is correct
66 Correct 1 ms 4952 KB Output is correct
67 Correct 1 ms 4956 KB Output is correct
68 Correct 1 ms 4956 KB Output is correct
69 Correct 1 ms 4956 KB Output is correct
70 Correct 1 ms 4956 KB Output is correct
71 Correct 2 ms 5212 KB Output is correct
72 Correct 2 ms 5212 KB Output is correct
73 Correct 1 ms 5208 KB Output is correct
74 Correct 1 ms 5212 KB Output is correct
75 Correct 1 ms 4956 KB Output is correct
76 Correct 1 ms 5212 KB Output is correct
77 Correct 1 ms 5212 KB Output is correct
78 Correct 1 ms 5212 KB Output is correct
79 Correct 1 ms 5212 KB Output is correct
80 Correct 2 ms 5212 KB Output is correct
81 Correct 1 ms 4956 KB Output is correct
82 Correct 1 ms 5140 KB Output is correct
83 Correct 1 ms 4956 KB Output is correct
84 Correct 2 ms 5212 KB Output is correct
85 Correct 2 ms 5212 KB Output is correct
86 Correct 2 ms 5184 KB Output is correct
87 Correct 2 ms 5152 KB Output is correct
88 Correct 2 ms 5212 KB Output is correct
89 Correct 3 ms 5468 KB Output is correct
90 Correct 3 ms 5468 KB Output is correct
91 Correct 4 ms 5468 KB Output is correct
92 Correct 2 ms 5468 KB Output is correct
93 Correct 2 ms 5468 KB Output is correct
94 Correct 2 ms 5468 KB Output is correct
95 Correct 2 ms 5716 KB Output is correct
96 Correct 2 ms 5468 KB Output is correct
97 Correct 3 ms 5464 KB Output is correct
98 Correct 3 ms 5468 KB Output is correct
99 Correct 4 ms 5468 KB Output is correct
100 Correct 3 ms 5468 KB Output is correct
101 Correct 3 ms 5212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 4956 KB Output is correct
2 Correct 1 ms 4956 KB Output is correct
3 Correct 1 ms 4956 KB Output is correct
4 Correct 2 ms 4956 KB Output is correct
5 Correct 1 ms 4956 KB Output is correct
6 Correct 1 ms 4956 KB Output is correct
7 Correct 1 ms 4956 KB Output is correct
8 Correct 1 ms 4956 KB Output is correct
9 Correct 1 ms 4956 KB Output is correct
10 Correct 1 ms 4956 KB Output is correct
11 Correct 1 ms 4956 KB Output is correct
12 Correct 1 ms 4956 KB Output is correct
13 Correct 2 ms 4952 KB Output is correct
14 Correct 2 ms 4956 KB Output is correct
15 Correct 1 ms 4956 KB Output is correct
16 Correct 1 ms 4956 KB Output is correct
17 Correct 1 ms 4952 KB Output is correct
18 Correct 1 ms 4956 KB Output is correct
19 Correct 1 ms 4956 KB Output is correct
20 Correct 1 ms 5212 KB Output is correct
21 Correct 1 ms 5136 KB Output is correct
22 Correct 2 ms 5212 KB Output is correct
23 Correct 1 ms 5212 KB Output is correct
24 Correct 1 ms 5212 KB Output is correct
25 Correct 1 ms 5212 KB Output is correct
26 Correct 2 ms 5208 KB Output is correct
27 Correct 2 ms 5664 KB Output is correct
28 Correct 2 ms 5724 KB Output is correct
29 Correct 2 ms 5660 KB Output is correct
30 Correct 2 ms 5724 KB Output is correct
31 Correct 2 ms 5724 KB Output is correct
32 Correct 2 ms 5724 KB Output is correct
33 Correct 2 ms 5724 KB Output is correct
34 Correct 1 ms 4956 KB Output is correct
35 Correct 1 ms 4956 KB Output is correct
36 Correct 1 ms 4956 KB Output is correct
37 Correct 1 ms 4956 KB Output is correct
38 Correct 1 ms 4956 KB Output is correct
39 Correct 1 ms 4956 KB Output is correct
40 Correct 1 ms 4956 KB Output is correct
41 Correct 1 ms 4956 KB Output is correct
42 Correct 1 ms 4956 KB Output is correct
43 Correct 1 ms 4952 KB Output is correct
44 Correct 1 ms 4956 KB Output is correct
45 Correct 1 ms 4956 KB Output is correct
46 Correct 1 ms 4952 KB Output is correct
47 Correct 1 ms 4956 KB Output is correct
48 Correct 1 ms 4956 KB Output is correct
49 Correct 1 ms 4956 KB Output is correct
50 Correct 1 ms 4956 KB Output is correct
51 Correct 1 ms 4956 KB Output is correct
52 Correct 2 ms 4956 KB Output is correct
53 Correct 1 ms 4956 KB Output is correct
54 Correct 2 ms 4956 KB Output is correct
55 Correct 1 ms 4956 KB Output is correct
56 Correct 1 ms 4956 KB Output is correct
57 Correct 1 ms 4956 KB Output is correct
58 Correct 1 ms 4956 KB Output is correct
59 Correct 1 ms 4956 KB Output is correct
60 Correct 1 ms 4956 KB Output is correct
61 Correct 1 ms 4952 KB Output is correct
62 Correct 2 ms 4944 KB Output is correct
63 Correct 1 ms 4956 KB Output is correct
64 Correct 1 ms 4956 KB Output is correct
65 Correct 1 ms 4956 KB Output is correct
66 Correct 1 ms 4952 KB Output is correct
67 Correct 1 ms 4956 KB Output is correct
68 Correct 1 ms 4956 KB Output is correct
69 Correct 1 ms 4956 KB Output is correct
70 Correct 1 ms 4956 KB Output is correct
71 Correct 2 ms 5212 KB Output is correct
72 Correct 2 ms 5212 KB Output is correct
73 Correct 1 ms 5208 KB Output is correct
74 Correct 1 ms 5212 KB Output is correct
75 Correct 1 ms 4956 KB Output is correct
76 Correct 1 ms 5212 KB Output is correct
77 Correct 1 ms 5212 KB Output is correct
78 Correct 1 ms 5212 KB Output is correct
79 Correct 1 ms 5212 KB Output is correct
80 Correct 2 ms 5212 KB Output is correct
81 Correct 1 ms 4956 KB Output is correct
82 Correct 1 ms 5140 KB Output is correct
83 Correct 1 ms 4956 KB Output is correct
84 Correct 2 ms 5212 KB Output is correct
85 Correct 2 ms 5212 KB Output is correct
86 Correct 2 ms 5184 KB Output is correct
87 Correct 2 ms 5152 KB Output is correct
88 Correct 2 ms 5212 KB Output is correct
89 Correct 3 ms 5468 KB Output is correct
90 Correct 3 ms 5468 KB Output is correct
91 Correct 4 ms 5468 KB Output is correct
92 Correct 2 ms 5468 KB Output is correct
93 Correct 2 ms 5468 KB Output is correct
94 Correct 2 ms 5468 KB Output is correct
95 Correct 2 ms 5716 KB Output is correct
96 Correct 2 ms 5468 KB Output is correct
97 Correct 3 ms 5464 KB Output is correct
98 Correct 3 ms 5468 KB Output is correct
99 Correct 4 ms 5468 KB Output is correct
100 Correct 3 ms 5468 KB Output is correct
101 Correct 3 ms 5212 KB Output is correct
102 Correct 67 ms 10212 KB Output is correct
103 Correct 69 ms 10324 KB Output is correct
104 Correct 136 ms 44232 KB Output is correct
105 Correct 66 ms 12240 KB Output is correct
106 Correct 72 ms 11780 KB Output is correct
107 Correct 81 ms 33064 KB Output is correct
108 Correct 81 ms 34820 KB Output is correct
109 Correct 64 ms 44032 KB Output is correct
110 Correct 131 ms 41868 KB Output is correct
111 Correct 101 ms 44540 KB Output is correct
112 Correct 92 ms 40392 KB Output is correct
113 Correct 98 ms 39152 KB Output is correct
114 Correct 79 ms 40324 KB Output is correct
115 Correct 86 ms 45020 KB Output is correct
116 Correct 111 ms 42788 KB Output is correct
117 Correct 122 ms 40192 KB Output is correct
118 Correct 114 ms 40212 KB Output is correct
119 Correct 84 ms 15584 KB Output is correct
120 Correct 70 ms 9676 KB Output is correct