Submission #1056185

# Submission time Handle Problem Language Result Execution time Memory
1056185 2024-08-13T08:08:35 Z jcelin Closing Time (IOI23_closing) C++17
75 / 100
170 ms 141908 KB
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

typedef pair<int,int> ii;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef vector<ll> vll;
typedef vector<pll> vpll;

#define PB push_back
#define PF push_front
#define PPB pop_back
#define PPF pop_front
#define X first
#define Y second
#define MP make_pair
#define all(x) (x).begin(), (x).end()

const int mod = 1e9 + 7; //998244353;
const int inf = 1e9 + 7;
const ll INF = 1e18 + 7;
const int logo = 20;
const int MAXN = 3001;
const int off = 1 << logo;
const int trsz = off << 1;

vii g[MAXN];
ll dx[MAXN][2], dp[MAXN][2 * MAXN];
vll vec;

void dfs(int u, int f, int p = -1){
	for(auto &y : g[u]){
		int x = y.X, w = y.Y;
		if(x == p) continue;
		dx[x][f] = dx[u][f] + (ll)w;
		dfs(x, f, u);
	}
}

int max_score(int n, int x, int y, ll k, vi u, vi v, vi w){
	for(int i=0; i<n; i++) g[i].clear();
	for(int i=0; i<n-1; i++){
		g[u[i]].PB({v[i], w[i]});
		g[v[i]].PB({u[i], w[i]});
	}
	dx[x][0] = 0;
	dfs(x, 0);
	dx[y][1] = 0;
	dfs(y, 1);
	vec.clear();
	int ret = 0;
	for(int i=0; i<n; i++){
		vec.PB(dx[i][0]);
		vec.PB(dx[i][1]);
		if(dx[i][0] > dx[i][1]) swap(dx[i][0], dx[i][1]);
	}
	sort(all(vec));
	ll csu = 0;
	for(int i=0; i<(int)vec.size(); i++){
		csu += vec[i];
		if(csu <= k) ret = i + 1;
		else break;
	}
	
	if(n > 3000) return ret;
	for(int i=0; i<=n; i++) for(int j=0; j<=2*i; j++) dp[i][j] = INF;
	dp[0][0] = 0;
	for(int i=0; i<n; i++){
		for(int j=0; j<=2*i; j++){
			if(dp[i][j] > k) continue;
			if(dx[i][0] + dx[i][1] != dx[x][1]) dp[i + 1][j] = min(dp[i + 1][j], dp[i][j]);
			dp[i + 1][j + 1] = min(dp[i + 1][j + 1], dp[i][j] + dx[i][0]);
			dp[i + 1][j + 2] = min(dp[i + 1][j + 2], dp[i][j] + dx[i][1]);		
		}
	}
	for(int j=0; j<=2*n; j++) if(dp[n][j] <= k) ret = max(ret, j);
	return ret;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2392 KB Output is correct
# Verdict Execution time Memory Grader output
1 Runtime error 36 ms 13660 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 2396 KB Output is correct
3 Correct 0 ms 2396 KB Output is correct
4 Correct 1 ms 2396 KB Output is correct
5 Correct 0 ms 2652 KB Output is correct
6 Correct 1 ms 4700 KB Output is correct
7 Correct 0 ms 2396 KB Output is correct
8 Correct 0 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 1 ms 4444 KB Output is correct
11 Correct 0 ms 4444 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 2396 KB Output is correct
3 Correct 0 ms 2396 KB Output is correct
4 Correct 1 ms 2396 KB Output is correct
5 Correct 0 ms 2652 KB Output is correct
6 Correct 1 ms 4700 KB Output is correct
7 Correct 0 ms 2396 KB Output is correct
8 Correct 0 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 1 ms 4444 KB Output is correct
11 Correct 0 ms 4444 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 2 ms 6660 KB Output is correct
17 Correct 1 ms 6492 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 3 ms 25180 KB Output is correct
20 Correct 2 ms 23132 KB Output is correct
21 Correct 2 ms 23132 KB Output is correct
22 Correct 3 ms 25180 KB Output is correct
23 Correct 3 ms 25180 KB Output is correct
24 Correct 3 ms 25224 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 2396 KB Output is correct
3 Correct 0 ms 2396 KB Output is correct
4 Correct 1 ms 2396 KB Output is correct
5 Correct 0 ms 2652 KB Output is correct
6 Correct 1 ms 4700 KB Output is correct
7 Correct 0 ms 2396 KB Output is correct
8 Correct 0 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 1 ms 4444 KB Output is correct
11 Correct 0 ms 4444 KB Output is correct
12 Correct 1 ms 6492 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 2 ms 6660 KB Output is correct
17 Correct 1 ms 6492 KB Output is correct
18 Correct 1 ms 2396 KB Output is correct
19 Correct 3 ms 25180 KB Output is correct
20 Correct 2 ms 23132 KB Output is correct
21 Correct 2 ms 23132 KB Output is correct
22 Correct 3 ms 25180 KB Output is correct
23 Correct 3 ms 25180 KB Output is correct
24 Correct 3 ms 25224 KB Output is correct
25 Correct 1 ms 4700 KB Output is correct
26 Correct 29 ms 141876 KB Output is correct
27 Correct 27 ms 132256 KB Output is correct
28 Correct 30 ms 134236 KB Output is correct
29 Correct 31 ms 138332 KB Output is correct
30 Correct 33 ms 132164 KB Output is correct
31 Correct 23 ms 141904 KB Output is correct
32 Correct 27 ms 141908 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2392 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 2396 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 1 ms 2396 KB Output is correct
6 Correct 0 ms 2652 KB Output is correct
7 Correct 0 ms 2396 KB Output is correct
8 Correct 0 ms 2464 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 1 ms 2564 KB Output is correct
11 Correct 0 ms 2392 KB Output is correct
12 Correct 1 ms 2392 KB Output is correct
13 Correct 0 ms 2396 KB Output is correct
14 Correct 1 ms 2396 KB Output is correct
15 Correct 0 ms 2396 KB Output is correct
16 Correct 0 ms 2396 KB Output is correct
17 Correct 0 ms 2396 KB Output is correct
18 Correct 1 ms 2392 KB Output is correct
19 Correct 0 ms 2396 KB Output is correct
20 Correct 0 ms 2396 KB Output is correct
21 Correct 0 ms 2396 KB Output is correct
22 Correct 0 ms 2396 KB Output is correct
23 Correct 0 ms 2396 KB Output is correct
24 Correct 0 ms 2396 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2392 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 2396 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 1 ms 2396 KB Output is correct
6 Correct 0 ms 2652 KB Output is correct
7 Correct 1 ms 4700 KB Output is correct
8 Correct 0 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 1 ms 4444 KB Output is correct
12 Correct 0 ms 4444 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 2 ms 6660 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 0 ms 2396 KB Output is correct
20 Correct 0 ms 2464 KB Output is correct
21 Correct 0 ms 2396 KB Output is correct
22 Correct 1 ms 2564 KB Output is correct
23 Correct 0 ms 2392 KB Output is correct
24 Correct 1 ms 2392 KB Output is correct
25 Correct 0 ms 2396 KB Output is correct
26 Correct 1 ms 2396 KB Output is correct
27 Correct 0 ms 2396 KB Output is correct
28 Correct 0 ms 2396 KB Output is correct
29 Correct 0 ms 2396 KB Output is correct
30 Correct 1 ms 2392 KB Output is correct
31 Correct 0 ms 2396 KB Output is correct
32 Correct 0 ms 2396 KB Output is correct
33 Correct 0 ms 2396 KB Output is correct
34 Correct 0 ms 2396 KB Output is correct
35 Correct 0 ms 2396 KB Output is correct
36 Correct 0 ms 2396 KB Output is correct
37 Correct 0 ms 2392 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 1 ms 6664 KB Output is correct
40 Correct 1 ms 6660 KB Output is correct
41 Correct 1 ms 6492 KB Output is correct
42 Correct 1 ms 6660 KB Output is correct
43 Correct 1 ms 6492 KB Output is correct
44 Correct 1 ms 6492 KB Output is correct
45 Correct 1 ms 6492 KB Output is correct
46 Correct 1 ms 6492 KB Output is correct
47 Correct 1 ms 6492 KB Output is correct
48 Correct 1 ms 4440 KB Output is correct
49 Correct 1 ms 4444 KB Output is correct
50 Correct 1 ms 2396 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2392 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 2396 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 1 ms 2396 KB Output is correct
6 Correct 0 ms 2652 KB Output is correct
7 Correct 1 ms 4700 KB Output is correct
8 Correct 0 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 1 ms 4444 KB Output is correct
12 Correct 0 ms 4444 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 2 ms 6660 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 3 ms 25180 KB Output is correct
21 Correct 2 ms 23132 KB Output is correct
22 Correct 2 ms 23132 KB Output is correct
23 Correct 3 ms 25180 KB Output is correct
24 Correct 3 ms 25180 KB Output is correct
25 Correct 3 ms 25224 KB Output is correct
26 Correct 0 ms 2396 KB Output is correct
27 Correct 0 ms 2464 KB Output is correct
28 Correct 0 ms 2396 KB Output is correct
29 Correct 1 ms 2564 KB Output is correct
30 Correct 0 ms 2392 KB Output is correct
31 Correct 1 ms 2392 KB Output is correct
32 Correct 0 ms 2396 KB Output is correct
33 Correct 1 ms 2396 KB Output is correct
34 Correct 0 ms 2396 KB Output is correct
35 Correct 0 ms 2396 KB Output is correct
36 Correct 0 ms 2396 KB Output is correct
37 Correct 1 ms 2392 KB Output is correct
38 Correct 0 ms 2396 KB Output is correct
39 Correct 0 ms 2396 KB Output is correct
40 Correct 0 ms 2396 KB Output is correct
41 Correct 0 ms 2396 KB Output is correct
42 Correct 0 ms 2396 KB Output is correct
43 Correct 0 ms 2396 KB Output is correct
44 Correct 0 ms 2392 KB Output is correct
45 Correct 0 ms 2396 KB Output is correct
46 Correct 1 ms 6664 KB Output is correct
47 Correct 1 ms 6660 KB Output is correct
48 Correct 1 ms 6492 KB Output is correct
49 Correct 1 ms 6660 KB Output is correct
50 Correct 1 ms 6492 KB Output is correct
51 Correct 1 ms 6492 KB Output is correct
52 Correct 1 ms 6492 KB Output is correct
53 Correct 1 ms 6492 KB Output is correct
54 Correct 1 ms 6492 KB Output is correct
55 Correct 1 ms 4440 KB Output is correct
56 Correct 1 ms 4444 KB Output is correct
57 Correct 1 ms 2396 KB Output is correct
58 Correct 1 ms 2396 KB Output is correct
59 Correct 1 ms 6492 KB Output is correct
60 Correct 1 ms 6492 KB Output is correct
61 Correct 1 ms 8540 KB Output is correct
62 Correct 1 ms 8540 KB Output is correct
63 Correct 3 ms 25180 KB Output is correct
64 Correct 2 ms 23132 KB Output is correct
65 Correct 2 ms 23132 KB Output is correct
66 Correct 2 ms 23144 KB Output is correct
67 Correct 3 ms 25164 KB Output is correct
68 Correct 2 ms 23132 KB Output is correct
69 Correct 3 ms 25180 KB Output is correct
70 Correct 2 ms 23164 KB Output is correct
71 Correct 2 ms 23132 KB Output is correct
72 Correct 3 ms 25180 KB Output is correct
73 Correct 2 ms 19036 KB Output is correct
74 Correct 2 ms 21084 KB Output is correct
75 Correct 1 ms 6492 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2392 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 2396 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 1 ms 2396 KB Output is correct
6 Correct 0 ms 2652 KB Output is correct
7 Correct 1 ms 4700 KB Output is correct
8 Correct 0 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 1 ms 4444 KB Output is correct
12 Correct 0 ms 4444 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 2 ms 6660 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 3 ms 25180 KB Output is correct
21 Correct 2 ms 23132 KB Output is correct
22 Correct 2 ms 23132 KB Output is correct
23 Correct 3 ms 25180 KB Output is correct
24 Correct 3 ms 25180 KB Output is correct
25 Correct 3 ms 25224 KB Output is correct
26 Correct 1 ms 4700 KB Output is correct
27 Correct 29 ms 141876 KB Output is correct
28 Correct 27 ms 132256 KB Output is correct
29 Correct 30 ms 134236 KB Output is correct
30 Correct 31 ms 138332 KB Output is correct
31 Correct 33 ms 132164 KB Output is correct
32 Correct 23 ms 141904 KB Output is correct
33 Correct 27 ms 141908 KB Output is correct
34 Correct 0 ms 2396 KB Output is correct
35 Correct 0 ms 2464 KB Output is correct
36 Correct 0 ms 2396 KB Output is correct
37 Correct 1 ms 2564 KB Output is correct
38 Correct 0 ms 2392 KB Output is correct
39 Correct 1 ms 2392 KB Output is correct
40 Correct 0 ms 2396 KB Output is correct
41 Correct 1 ms 2396 KB Output is correct
42 Correct 0 ms 2396 KB Output is correct
43 Correct 0 ms 2396 KB Output is correct
44 Correct 0 ms 2396 KB Output is correct
45 Correct 1 ms 2392 KB Output is correct
46 Correct 0 ms 2396 KB Output is correct
47 Correct 0 ms 2396 KB Output is correct
48 Correct 0 ms 2396 KB Output is correct
49 Correct 0 ms 2396 KB Output is correct
50 Correct 0 ms 2396 KB Output is correct
51 Correct 0 ms 2396 KB Output is correct
52 Correct 0 ms 2392 KB Output is correct
53 Correct 0 ms 2396 KB Output is correct
54 Correct 1 ms 6664 KB Output is correct
55 Correct 1 ms 6660 KB Output is correct
56 Correct 1 ms 6492 KB Output is correct
57 Correct 1 ms 6660 KB Output is correct
58 Correct 1 ms 6492 KB Output is correct
59 Correct 1 ms 6492 KB Output is correct
60 Correct 1 ms 6492 KB Output is correct
61 Correct 1 ms 6492 KB Output is correct
62 Correct 1 ms 6492 KB Output is correct
63 Correct 1 ms 4440 KB Output is correct
64 Correct 1 ms 4444 KB Output is correct
65 Correct 1 ms 2396 KB Output is correct
66 Correct 1 ms 2396 KB Output is correct
67 Correct 1 ms 6492 KB Output is correct
68 Correct 1 ms 6492 KB Output is correct
69 Correct 1 ms 8540 KB Output is correct
70 Correct 1 ms 8540 KB Output is correct
71 Correct 3 ms 25180 KB Output is correct
72 Correct 2 ms 23132 KB Output is correct
73 Correct 2 ms 23132 KB Output is correct
74 Correct 2 ms 23144 KB Output is correct
75 Correct 3 ms 25164 KB Output is correct
76 Correct 2 ms 23132 KB Output is correct
77 Correct 3 ms 25180 KB Output is correct
78 Correct 2 ms 23164 KB Output is correct
79 Correct 2 ms 23132 KB Output is correct
80 Correct 3 ms 25180 KB Output is correct
81 Correct 2 ms 19036 KB Output is correct
82 Correct 2 ms 21084 KB Output is correct
83 Correct 1 ms 6492 KB Output is correct
84 Correct 1 ms 4700 KB Output is correct
85 Correct 3 ms 14940 KB Output is correct
86 Correct 2 ms 6668 KB Output is correct
87 Correct 4 ms 8796 KB Output is correct
88 Correct 2 ms 8796 KB Output is correct
89 Correct 28 ms 141660 KB Output is correct
90 Correct 28 ms 130136 KB Output is correct
91 Correct 21 ms 140888 KB Output is correct
92 Correct 18 ms 132100 KB Output is correct
93 Correct 18 ms 134236 KB Output is correct
94 Correct 19 ms 136272 KB Output is correct
95 Correct 22 ms 138332 KB Output is correct
96 Correct 18 ms 130140 KB Output is correct
97 Correct 24 ms 138332 KB Output is correct
98 Correct 20 ms 136300 KB Output is correct
99 Correct 28 ms 141660 KB Output is correct
100 Correct 13 ms 99164 KB Output is correct
101 Correct 5 ms 25264 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 2392 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Correct 1 ms 2396 KB Output is correct
4 Correct 0 ms 2396 KB Output is correct
5 Correct 1 ms 2396 KB Output is correct
6 Correct 0 ms 2652 KB Output is correct
7 Correct 1 ms 4700 KB Output is correct
8 Correct 0 ms 2396 KB Output is correct
9 Correct 0 ms 2396 KB Output is correct
10 Correct 0 ms 2396 KB Output is correct
11 Correct 1 ms 4444 KB Output is correct
12 Correct 0 ms 4444 KB Output is correct
13 Correct 1 ms 6492 KB Output is correct
14 Correct 1 ms 6492 KB Output is correct
15 Correct 1 ms 6492 KB Output is correct
16 Correct 1 ms 6492 KB Output is correct
17 Correct 2 ms 6660 KB Output is correct
18 Correct 1 ms 6492 KB Output is correct
19 Correct 1 ms 2396 KB Output is correct
20 Correct 3 ms 25180 KB Output is correct
21 Correct 2 ms 23132 KB Output is correct
22 Correct 2 ms 23132 KB Output is correct
23 Correct 3 ms 25180 KB Output is correct
24 Correct 3 ms 25180 KB Output is correct
25 Correct 3 ms 25224 KB Output is correct
26 Correct 1 ms 4700 KB Output is correct
27 Correct 29 ms 141876 KB Output is correct
28 Correct 27 ms 132256 KB Output is correct
29 Correct 30 ms 134236 KB Output is correct
30 Correct 31 ms 138332 KB Output is correct
31 Correct 33 ms 132164 KB Output is correct
32 Correct 23 ms 141904 KB Output is correct
33 Correct 27 ms 141908 KB Output is correct
34 Correct 0 ms 2396 KB Output is correct
35 Correct 0 ms 2464 KB Output is correct
36 Correct 0 ms 2396 KB Output is correct
37 Correct 1 ms 2564 KB Output is correct
38 Correct 0 ms 2392 KB Output is correct
39 Correct 1 ms 2392 KB Output is correct
40 Correct 0 ms 2396 KB Output is correct
41 Correct 1 ms 2396 KB Output is correct
42 Correct 0 ms 2396 KB Output is correct
43 Correct 0 ms 2396 KB Output is correct
44 Correct 0 ms 2396 KB Output is correct
45 Correct 1 ms 2392 KB Output is correct
46 Correct 0 ms 2396 KB Output is correct
47 Correct 0 ms 2396 KB Output is correct
48 Correct 0 ms 2396 KB Output is correct
49 Correct 0 ms 2396 KB Output is correct
50 Correct 0 ms 2396 KB Output is correct
51 Correct 0 ms 2396 KB Output is correct
52 Correct 0 ms 2392 KB Output is correct
53 Correct 0 ms 2396 KB Output is correct
54 Correct 1 ms 6664 KB Output is correct
55 Correct 1 ms 6660 KB Output is correct
56 Correct 1 ms 6492 KB Output is correct
57 Correct 1 ms 6660 KB Output is correct
58 Correct 1 ms 6492 KB Output is correct
59 Correct 1 ms 6492 KB Output is correct
60 Correct 1 ms 6492 KB Output is correct
61 Correct 1 ms 6492 KB Output is correct
62 Correct 1 ms 6492 KB Output is correct
63 Correct 1 ms 4440 KB Output is correct
64 Correct 1 ms 4444 KB Output is correct
65 Correct 1 ms 2396 KB Output is correct
66 Correct 1 ms 2396 KB Output is correct
67 Correct 1 ms 6492 KB Output is correct
68 Correct 1 ms 6492 KB Output is correct
69 Correct 1 ms 8540 KB Output is correct
70 Correct 1 ms 8540 KB Output is correct
71 Correct 3 ms 25180 KB Output is correct
72 Correct 2 ms 23132 KB Output is correct
73 Correct 2 ms 23132 KB Output is correct
74 Correct 2 ms 23144 KB Output is correct
75 Correct 3 ms 25164 KB Output is correct
76 Correct 2 ms 23132 KB Output is correct
77 Correct 3 ms 25180 KB Output is correct
78 Correct 2 ms 23164 KB Output is correct
79 Correct 2 ms 23132 KB Output is correct
80 Correct 3 ms 25180 KB Output is correct
81 Correct 2 ms 19036 KB Output is correct
82 Correct 2 ms 21084 KB Output is correct
83 Correct 1 ms 6492 KB Output is correct
84 Correct 1 ms 4700 KB Output is correct
85 Correct 3 ms 14940 KB Output is correct
86 Correct 2 ms 6668 KB Output is correct
87 Correct 4 ms 8796 KB Output is correct
88 Correct 2 ms 8796 KB Output is correct
89 Correct 28 ms 141660 KB Output is correct
90 Correct 28 ms 130136 KB Output is correct
91 Correct 21 ms 140888 KB Output is correct
92 Correct 18 ms 132100 KB Output is correct
93 Correct 18 ms 134236 KB Output is correct
94 Correct 19 ms 136272 KB Output is correct
95 Correct 22 ms 138332 KB Output is correct
96 Correct 18 ms 130140 KB Output is correct
97 Correct 24 ms 138332 KB Output is correct
98 Correct 20 ms 136300 KB Output is correct
99 Correct 28 ms 141660 KB Output is correct
100 Correct 13 ms 99164 KB Output is correct
101 Correct 5 ms 25264 KB Output is correct
102 Correct 73 ms 11604 KB Output is correct
103 Correct 170 ms 26284 KB Output is correct
104 Runtime error 40 ms 13564 KB Execution killed with signal 11
105 Halted 0 ms 0 KB -