#include <bits/stdc++.h>
#include "dreaming.h"
using namespace std;
using ll = long long;
const int N = 1e5 + 2;
vector<array<ll, 2>> g[N];
bool vis[N];
array<ll, 2> par[N];
vector<array<ll, 2>> cost;
array<ll, 2> dfs(ll v, ll p, ll d) {
vis[v] = true;
par[v] = {p, d};
array<ll, 2> ret = {d, v};
for(auto tx : g[v]) {
ll u = tx[0], w = tx[1];
if(u == p) continue;
ret = max(ret, dfs(u, v, d + w));
}
return ret;
}
int travelTime(int N, int M, int L, int A[], int B[], int T[]) {
for(ll i = 0; i < M; i++) {
g[A[i]].push_back({B[i], T[i]});
g[B[i]].push_back({A[i], T[i]});
}
for(ll i = 0; i < N; i++) {
if(vis[i]) continue;
array<ll, 2> x = dfs(i, -1, 0);
array<ll, 2> d = dfs(x[1], -1, 0);
array<ll, 2> v = {d[1], d[0]};
array<ll, 4> ans = {d[0], d[0], 0, d[1]};
while(v[0] != -1) {
array<ll, 2> x = {v[0], par[v[0]][1]};
ans = min(ans, {abs(d[0] - 2 * x[1]), d[0] - x[1], x[1], x[0]});
v = par[v[0]];
}
//cout << ans[1] << ' ' << ans[2] << ' ' << ans[3] << '\n';
cost.push_back({d[0], ans[3]});
}
sort(cost.rbegin(), cost.rend());
for(int i = 1; i < cost.size(); i++) {
g[cost[0][1]].push_back({cost[i][1], L});
g[cost[i][1]].push_back({cost[0][1], L});
}
array<ll, 2> x = dfs(1, -1, 0);
ll answer = dfs(x[1], -1, 0)[0];
return answer;
}
Compilation message
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:43:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int i = 1; i < cost.size(); i++) {
| ~~^~~~~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19148 KB |
Output is correct |
2 |
Correct |
92 ms |
19052 KB |
Output is correct |
3 |
Correct |
48 ms |
13548 KB |
Output is correct |
4 |
Correct |
15 ms |
5100 KB |
Output is correct |
5 |
Correct |
9 ms |
4204 KB |
Output is correct |
6 |
Correct |
20 ms |
6508 KB |
Output is correct |
7 |
Correct |
2 ms |
2796 KB |
Output is correct |
8 |
Correct |
47 ms |
8684 KB |
Output is correct |
9 |
Correct |
67 ms |
11116 KB |
Output is correct |
10 |
Correct |
2 ms |
2796 KB |
Output is correct |
11 |
Correct |
102 ms |
13676 KB |
Output is correct |
12 |
Correct |
114 ms |
16492 KB |
Output is correct |
13 |
Correct |
3 ms |
2816 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19148 KB |
Output is correct |
2 |
Correct |
92 ms |
19052 KB |
Output is correct |
3 |
Correct |
48 ms |
13548 KB |
Output is correct |
4 |
Correct |
15 ms |
5100 KB |
Output is correct |
5 |
Correct |
9 ms |
4204 KB |
Output is correct |
6 |
Correct |
20 ms |
6508 KB |
Output is correct |
7 |
Correct |
2 ms |
2796 KB |
Output is correct |
8 |
Correct |
47 ms |
8684 KB |
Output is correct |
9 |
Correct |
67 ms |
11116 KB |
Output is correct |
10 |
Correct |
2 ms |
2796 KB |
Output is correct |
11 |
Correct |
102 ms |
13676 KB |
Output is correct |
12 |
Correct |
114 ms |
16492 KB |
Output is correct |
13 |
Correct |
3 ms |
2816 KB |
Output is correct |
14 |
Correct |
2 ms |
2668 KB |
Output is correct |
15 |
Correct |
2 ms |
2668 KB |
Output is correct |
16 |
Correct |
2 ms |
2668 KB |
Output is correct |
17 |
Correct |
2 ms |
2688 KB |
Output is correct |
18 |
Correct |
2 ms |
2668 KB |
Output is correct |
19 |
Correct |
2 ms |
2668 KB |
Output is correct |
20 |
Correct |
2 ms |
2668 KB |
Output is correct |
21 |
Correct |
2 ms |
2668 KB |
Output is correct |
22 |
Correct |
2 ms |
2668 KB |
Output is correct |
23 |
Correct |
3 ms |
2668 KB |
Output is correct |
24 |
Correct |
2 ms |
2668 KB |
Output is correct |
25 |
Correct |
2 ms |
2668 KB |
Output is correct |
26 |
Correct |
2 ms |
2668 KB |
Output is correct |
27 |
Correct |
2 ms |
2668 KB |
Output is correct |
28 |
Correct |
2 ms |
2668 KB |
Output is correct |
29 |
Correct |
2 ms |
2668 KB |
Output is correct |
30 |
Correct |
2 ms |
2668 KB |
Output is correct |
31 |
Correct |
3 ms |
2668 KB |
Output is correct |
32 |
Correct |
2 ms |
2668 KB |
Output is correct |
33 |
Correct |
2 ms |
2668 KB |
Output is correct |
34 |
Correct |
3 ms |
2816 KB |
Output is correct |
35 |
Correct |
2 ms |
2668 KB |
Output is correct |
36 |
Correct |
2 ms |
2540 KB |
Output is correct |
37 |
Correct |
2 ms |
2668 KB |
Output is correct |
38 |
Correct |
2 ms |
2668 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19148 KB |
Output is correct |
2 |
Correct |
92 ms |
19052 KB |
Output is correct |
3 |
Correct |
48 ms |
13548 KB |
Output is correct |
4 |
Correct |
15 ms |
5100 KB |
Output is correct |
5 |
Correct |
9 ms |
4204 KB |
Output is correct |
6 |
Correct |
20 ms |
6508 KB |
Output is correct |
7 |
Correct |
2 ms |
2796 KB |
Output is correct |
8 |
Correct |
47 ms |
8684 KB |
Output is correct |
9 |
Correct |
67 ms |
11116 KB |
Output is correct |
10 |
Correct |
2 ms |
2796 KB |
Output is correct |
11 |
Correct |
102 ms |
13676 KB |
Output is correct |
12 |
Correct |
114 ms |
16492 KB |
Output is correct |
13 |
Correct |
3 ms |
2816 KB |
Output is correct |
14 |
Correct |
2 ms |
2668 KB |
Output is correct |
15 |
Correct |
2 ms |
2668 KB |
Output is correct |
16 |
Correct |
2 ms |
2668 KB |
Output is correct |
17 |
Correct |
2 ms |
2688 KB |
Output is correct |
18 |
Correct |
2 ms |
2668 KB |
Output is correct |
19 |
Correct |
2 ms |
2668 KB |
Output is correct |
20 |
Correct |
2 ms |
2668 KB |
Output is correct |
21 |
Correct |
2 ms |
2668 KB |
Output is correct |
22 |
Correct |
2 ms |
2668 KB |
Output is correct |
23 |
Correct |
3 ms |
2668 KB |
Output is correct |
24 |
Correct |
2 ms |
2668 KB |
Output is correct |
25 |
Correct |
2 ms |
2668 KB |
Output is correct |
26 |
Correct |
2 ms |
2668 KB |
Output is correct |
27 |
Correct |
2 ms |
2668 KB |
Output is correct |
28 |
Correct |
2 ms |
2668 KB |
Output is correct |
29 |
Correct |
2 ms |
2668 KB |
Output is correct |
30 |
Correct |
2 ms |
2668 KB |
Output is correct |
31 |
Correct |
3 ms |
2668 KB |
Output is correct |
32 |
Correct |
2 ms |
2668 KB |
Output is correct |
33 |
Correct |
2 ms |
2668 KB |
Output is correct |
34 |
Correct |
3 ms |
2816 KB |
Output is correct |
35 |
Correct |
2 ms |
2668 KB |
Output is correct |
36 |
Correct |
2 ms |
2540 KB |
Output is correct |
37 |
Correct |
2 ms |
2668 KB |
Output is correct |
38 |
Correct |
2 ms |
2668 KB |
Output is correct |
39 |
Correct |
83 ms |
19284 KB |
Output is correct |
40 |
Correct |
88 ms |
19052 KB |
Output is correct |
41 |
Correct |
52 ms |
13804 KB |
Output is correct |
42 |
Correct |
10 ms |
5100 KB |
Output is correct |
43 |
Correct |
2 ms |
2668 KB |
Output is correct |
44 |
Correct |
2 ms |
2668 KB |
Output is correct |
45 |
Correct |
2 ms |
2668 KB |
Output is correct |
46 |
Correct |
2 ms |
2668 KB |
Output is correct |
47 |
Correct |
2 ms |
2668 KB |
Output is correct |
48 |
Correct |
3 ms |
2668 KB |
Output is correct |
49 |
Correct |
3 ms |
2668 KB |
Output is correct |
50 |
Correct |
3 ms |
2668 KB |
Output is correct |
51 |
Correct |
2 ms |
2668 KB |
Output is correct |
52 |
Correct |
2 ms |
2668 KB |
Output is correct |
53 |
Correct |
2 ms |
2816 KB |
Output is correct |
54 |
Correct |
4 ms |
2796 KB |
Output is correct |
55 |
Correct |
2 ms |
2668 KB |
Output is correct |
56 |
Correct |
2 ms |
2668 KB |
Output is correct |
57 |
Correct |
136 ms |
11928 KB |
Output is correct |
58 |
Correct |
136 ms |
12140 KB |
Output is correct |
59 |
Correct |
136 ms |
11756 KB |
Output is correct |
60 |
Correct |
124 ms |
11884 KB |
Output is correct |
61 |
Correct |
120 ms |
11884 KB |
Output is correct |
62 |
Correct |
127 ms |
11756 KB |
Output is correct |
63 |
Correct |
116 ms |
11500 KB |
Output is correct |
64 |
Correct |
113 ms |
11276 KB |
Output is correct |
65 |
Correct |
116 ms |
11520 KB |
Output is correct |
66 |
Correct |
116 ms |
11628 KB |
Output is correct |
67 |
Correct |
136 ms |
11948 KB |
Output is correct |
68 |
Correct |
124 ms |
11756 KB |
Output is correct |
69 |
Correct |
132 ms |
12140 KB |
Output is correct |
70 |
Correct |
128 ms |
12012 KB |
Output is correct |
71 |
Correct |
2 ms |
2668 KB |
Output is correct |
72 |
Correct |
4 ms |
2924 KB |
Output is correct |
73 |
Correct |
4 ms |
2924 KB |
Output is correct |
74 |
Correct |
4 ms |
2924 KB |
Output is correct |
75 |
Correct |
4 ms |
2924 KB |
Output is correct |
76 |
Correct |
4 ms |
2924 KB |
Output is correct |
77 |
Correct |
4 ms |
2924 KB |
Output is correct |
78 |
Correct |
4 ms |
3052 KB |
Output is correct |
79 |
Correct |
4 ms |
3052 KB |
Output is correct |
80 |
Correct |
129 ms |
11952 KB |
Output is correct |
81 |
Correct |
129 ms |
11884 KB |
Output is correct |
82 |
Correct |
123 ms |
11756 KB |
Output is correct |
83 |
Correct |
125 ms |
11776 KB |
Output is correct |
84 |
Correct |
3 ms |
2924 KB |
Output is correct |
85 |
Correct |
3 ms |
2924 KB |
Output is correct |
86 |
Correct |
3 ms |
2924 KB |
Output is correct |
87 |
Correct |
4 ms |
2924 KB |
Output is correct |
88 |
Correct |
4 ms |
2924 KB |
Output is correct |
89 |
Correct |
4 ms |
2924 KB |
Output is correct |
90 |
Correct |
4 ms |
2924 KB |
Output is correct |
91 |
Correct |
4 ms |
2924 KB |
Output is correct |
92 |
Correct |
4 ms |
2924 KB |
Output is correct |
93 |
Correct |
4 ms |
2924 KB |
Output is correct |
94 |
Correct |
2 ms |
2668 KB |
Output is correct |
95 |
Correct |
2 ms |
2668 KB |
Output is correct |
96 |
Correct |
2 ms |
2668 KB |
Output is correct |
97 |
Correct |
2 ms |
2668 KB |
Output is correct |
98 |
Correct |
2 ms |
2668 KB |
Output is correct |
99 |
Correct |
2 ms |
2668 KB |
Output is correct |
100 |
Correct |
2 ms |
2668 KB |
Output is correct |
101 |
Correct |
2 ms |
2668 KB |
Output is correct |
102 |
Correct |
2 ms |
2668 KB |
Output is correct |
103 |
Correct |
2 ms |
2668 KB |
Output is correct |
104 |
Correct |
9 ms |
4204 KB |
Output is correct |
105 |
Correct |
18 ms |
6508 KB |
Output is correct |
106 |
Correct |
2 ms |
2796 KB |
Output is correct |
107 |
Correct |
46 ms |
8684 KB |
Output is correct |
108 |
Correct |
71 ms |
11116 KB |
Output is correct |
109 |
Correct |
3 ms |
2796 KB |
Output is correct |
110 |
Correct |
101 ms |
13804 KB |
Output is correct |
111 |
Correct |
122 ms |
16492 KB |
Output is correct |
112 |
Correct |
3 ms |
2796 KB |
Output is correct |
113 |
Correct |
157 ms |
20972 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
54 ms |
10620 KB |
Output is correct |
2 |
Correct |
54 ms |
10596 KB |
Output is correct |
3 |
Correct |
58 ms |
10600 KB |
Output is correct |
4 |
Correct |
53 ms |
10620 KB |
Output is correct |
5 |
Correct |
54 ms |
10596 KB |
Output is correct |
6 |
Correct |
60 ms |
12004 KB |
Output is correct |
7 |
Correct |
57 ms |
10984 KB |
Output is correct |
8 |
Correct |
55 ms |
10472 KB |
Output is correct |
9 |
Correct |
52 ms |
10336 KB |
Output is correct |
10 |
Correct |
60 ms |
10848 KB |
Output is correct |
11 |
Correct |
2 ms |
2668 KB |
Output is correct |
12 |
Correct |
28 ms |
10588 KB |
Output is correct |
13 |
Correct |
28 ms |
10588 KB |
Output is correct |
14 |
Correct |
29 ms |
10588 KB |
Output is correct |
15 |
Correct |
29 ms |
10588 KB |
Output is correct |
16 |
Correct |
28 ms |
10588 KB |
Output is correct |
17 |
Correct |
30 ms |
10588 KB |
Output is correct |
18 |
Correct |
27 ms |
10588 KB |
Output is correct |
19 |
Correct |
29 ms |
10588 KB |
Output is correct |
20 |
Correct |
2 ms |
2668 KB |
Output is correct |
21 |
Correct |
2 ms |
2668 KB |
Output is correct |
22 |
Correct |
3 ms |
2924 KB |
Output is correct |
23 |
Correct |
29 ms |
10588 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19148 KB |
Output is correct |
2 |
Correct |
92 ms |
19052 KB |
Output is correct |
3 |
Correct |
48 ms |
13548 KB |
Output is correct |
4 |
Correct |
15 ms |
5100 KB |
Output is correct |
5 |
Correct |
9 ms |
4204 KB |
Output is correct |
6 |
Correct |
20 ms |
6508 KB |
Output is correct |
7 |
Correct |
2 ms |
2796 KB |
Output is correct |
8 |
Correct |
47 ms |
8684 KB |
Output is correct |
9 |
Correct |
67 ms |
11116 KB |
Output is correct |
10 |
Correct |
2 ms |
2796 KB |
Output is correct |
11 |
Correct |
102 ms |
13676 KB |
Output is correct |
12 |
Correct |
114 ms |
16492 KB |
Output is correct |
13 |
Correct |
3 ms |
2816 KB |
Output is correct |
14 |
Correct |
3 ms |
2796 KB |
Output is correct |
15 |
Correct |
3 ms |
2924 KB |
Output is correct |
16 |
Correct |
4 ms |
2924 KB |
Output is correct |
17 |
Correct |
3 ms |
2796 KB |
Output is correct |
18 |
Correct |
3 ms |
2924 KB |
Output is correct |
19 |
Correct |
4 ms |
2924 KB |
Output is correct |
20 |
Correct |
3 ms |
2796 KB |
Output is correct |
21 |
Correct |
3 ms |
2924 KB |
Output is correct |
22 |
Correct |
4 ms |
2924 KB |
Output is correct |
23 |
Correct |
3 ms |
2668 KB |
Output is correct |
24 |
Correct |
2 ms |
2668 KB |
Output is correct |
25 |
Correct |
2 ms |
2668 KB |
Output is correct |
26 |
Correct |
2 ms |
2668 KB |
Output is correct |
27 |
Correct |
2 ms |
2668 KB |
Output is correct |
28 |
Correct |
2 ms |
2668 KB |
Output is correct |
29 |
Correct |
2 ms |
2668 KB |
Output is correct |
30 |
Correct |
2 ms |
2668 KB |
Output is correct |
31 |
Correct |
2 ms |
2668 KB |
Output is correct |
32 |
Correct |
2 ms |
2668 KB |
Output is correct |
33 |
Correct |
2 ms |
2668 KB |
Output is correct |
34 |
Correct |
2 ms |
2668 KB |
Output is correct |
35 |
Correct |
2 ms |
2668 KB |
Output is correct |
36 |
Correct |
2 ms |
2668 KB |
Output is correct |
37 |
Correct |
2 ms |
2688 KB |
Output is correct |
38 |
Correct |
2 ms |
2668 KB |
Output is correct |
39 |
Correct |
2 ms |
2668 KB |
Output is correct |
40 |
Correct |
2 ms |
2668 KB |
Output is correct |
41 |
Correct |
2 ms |
2668 KB |
Output is correct |
42 |
Correct |
4 ms |
3308 KB |
Output is correct |
43 |
Correct |
4 ms |
3308 KB |
Output is correct |
44 |
Correct |
3 ms |
2924 KB |
Output is correct |
45 |
Correct |
3 ms |
2924 KB |
Output is correct |
46 |
Correct |
4 ms |
2924 KB |
Output is correct |
47 |
Correct |
4 ms |
2924 KB |
Output is correct |
48 |
Correct |
3 ms |
2924 KB |
Output is correct |
49 |
Correct |
3 ms |
2924 KB |
Output is correct |
50 |
Correct |
4 ms |
2924 KB |
Output is correct |
51 |
Correct |
4 ms |
3072 KB |
Output is correct |
52 |
Incorrect |
3 ms |
2924 KB |
Output isn't correct |
53 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
91 ms |
19148 KB |
Output is correct |
2 |
Correct |
92 ms |
19052 KB |
Output is correct |
3 |
Correct |
48 ms |
13548 KB |
Output is correct |
4 |
Correct |
15 ms |
5100 KB |
Output is correct |
5 |
Correct |
9 ms |
4204 KB |
Output is correct |
6 |
Correct |
20 ms |
6508 KB |
Output is correct |
7 |
Correct |
2 ms |
2796 KB |
Output is correct |
8 |
Correct |
47 ms |
8684 KB |
Output is correct |
9 |
Correct |
67 ms |
11116 KB |
Output is correct |
10 |
Correct |
2 ms |
2796 KB |
Output is correct |
11 |
Correct |
102 ms |
13676 KB |
Output is correct |
12 |
Correct |
114 ms |
16492 KB |
Output is correct |
13 |
Correct |
3 ms |
2816 KB |
Output is correct |
14 |
Correct |
2 ms |
2668 KB |
Output is correct |
15 |
Correct |
2 ms |
2668 KB |
Output is correct |
16 |
Correct |
2 ms |
2668 KB |
Output is correct |
17 |
Correct |
2 ms |
2688 KB |
Output is correct |
18 |
Correct |
2 ms |
2668 KB |
Output is correct |
19 |
Correct |
2 ms |
2668 KB |
Output is correct |
20 |
Correct |
2 ms |
2668 KB |
Output is correct |
21 |
Correct |
2 ms |
2668 KB |
Output is correct |
22 |
Correct |
2 ms |
2668 KB |
Output is correct |
23 |
Correct |
3 ms |
2668 KB |
Output is correct |
24 |
Correct |
2 ms |
2668 KB |
Output is correct |
25 |
Correct |
2 ms |
2668 KB |
Output is correct |
26 |
Correct |
2 ms |
2668 KB |
Output is correct |
27 |
Correct |
2 ms |
2668 KB |
Output is correct |
28 |
Correct |
2 ms |
2668 KB |
Output is correct |
29 |
Correct |
2 ms |
2668 KB |
Output is correct |
30 |
Correct |
2 ms |
2668 KB |
Output is correct |
31 |
Correct |
3 ms |
2668 KB |
Output is correct |
32 |
Correct |
2 ms |
2668 KB |
Output is correct |
33 |
Correct |
2 ms |
2668 KB |
Output is correct |
34 |
Correct |
3 ms |
2816 KB |
Output is correct |
35 |
Correct |
2 ms |
2668 KB |
Output is correct |
36 |
Correct |
2 ms |
2540 KB |
Output is correct |
37 |
Correct |
2 ms |
2668 KB |
Output is correct |
38 |
Correct |
2 ms |
2668 KB |
Output is correct |
39 |
Correct |
83 ms |
19284 KB |
Output is correct |
40 |
Correct |
88 ms |
19052 KB |
Output is correct |
41 |
Correct |
52 ms |
13804 KB |
Output is correct |
42 |
Correct |
10 ms |
5100 KB |
Output is correct |
43 |
Correct |
2 ms |
2668 KB |
Output is correct |
44 |
Correct |
2 ms |
2668 KB |
Output is correct |
45 |
Correct |
2 ms |
2668 KB |
Output is correct |
46 |
Correct |
2 ms |
2668 KB |
Output is correct |
47 |
Correct |
2 ms |
2668 KB |
Output is correct |
48 |
Correct |
3 ms |
2668 KB |
Output is correct |
49 |
Correct |
3 ms |
2668 KB |
Output is correct |
50 |
Correct |
3 ms |
2668 KB |
Output is correct |
51 |
Correct |
2 ms |
2668 KB |
Output is correct |
52 |
Correct |
2 ms |
2668 KB |
Output is correct |
53 |
Correct |
2 ms |
2816 KB |
Output is correct |
54 |
Correct |
4 ms |
2796 KB |
Output is correct |
55 |
Correct |
2 ms |
2668 KB |
Output is correct |
56 |
Correct |
2 ms |
2668 KB |
Output is correct |
57 |
Correct |
136 ms |
11928 KB |
Output is correct |
58 |
Correct |
136 ms |
12140 KB |
Output is correct |
59 |
Correct |
136 ms |
11756 KB |
Output is correct |
60 |
Correct |
124 ms |
11884 KB |
Output is correct |
61 |
Correct |
120 ms |
11884 KB |
Output is correct |
62 |
Correct |
127 ms |
11756 KB |
Output is correct |
63 |
Correct |
116 ms |
11500 KB |
Output is correct |
64 |
Correct |
113 ms |
11276 KB |
Output is correct |
65 |
Correct |
116 ms |
11520 KB |
Output is correct |
66 |
Correct |
116 ms |
11628 KB |
Output is correct |
67 |
Correct |
136 ms |
11948 KB |
Output is correct |
68 |
Correct |
124 ms |
11756 KB |
Output is correct |
69 |
Correct |
132 ms |
12140 KB |
Output is correct |
70 |
Correct |
128 ms |
12012 KB |
Output is correct |
71 |
Correct |
2 ms |
2668 KB |
Output is correct |
72 |
Correct |
4 ms |
2924 KB |
Output is correct |
73 |
Correct |
4 ms |
2924 KB |
Output is correct |
74 |
Correct |
4 ms |
2924 KB |
Output is correct |
75 |
Correct |
4 ms |
2924 KB |
Output is correct |
76 |
Correct |
4 ms |
2924 KB |
Output is correct |
77 |
Correct |
4 ms |
2924 KB |
Output is correct |
78 |
Correct |
4 ms |
3052 KB |
Output is correct |
79 |
Correct |
4 ms |
3052 KB |
Output is correct |
80 |
Correct |
129 ms |
11952 KB |
Output is correct |
81 |
Correct |
129 ms |
11884 KB |
Output is correct |
82 |
Correct |
123 ms |
11756 KB |
Output is correct |
83 |
Correct |
125 ms |
11776 KB |
Output is correct |
84 |
Correct |
3 ms |
2924 KB |
Output is correct |
85 |
Correct |
3 ms |
2924 KB |
Output is correct |
86 |
Correct |
3 ms |
2924 KB |
Output is correct |
87 |
Correct |
4 ms |
2924 KB |
Output is correct |
88 |
Correct |
4 ms |
2924 KB |
Output is correct |
89 |
Correct |
4 ms |
2924 KB |
Output is correct |
90 |
Correct |
4 ms |
2924 KB |
Output is correct |
91 |
Correct |
4 ms |
2924 KB |
Output is correct |
92 |
Correct |
4 ms |
2924 KB |
Output is correct |
93 |
Correct |
4 ms |
2924 KB |
Output is correct |
94 |
Correct |
2 ms |
2668 KB |
Output is correct |
95 |
Correct |
2 ms |
2668 KB |
Output is correct |
96 |
Correct |
2 ms |
2668 KB |
Output is correct |
97 |
Correct |
2 ms |
2668 KB |
Output is correct |
98 |
Correct |
2 ms |
2668 KB |
Output is correct |
99 |
Correct |
2 ms |
2668 KB |
Output is correct |
100 |
Correct |
2 ms |
2668 KB |
Output is correct |
101 |
Correct |
2 ms |
2668 KB |
Output is correct |
102 |
Correct |
2 ms |
2668 KB |
Output is correct |
103 |
Correct |
2 ms |
2668 KB |
Output is correct |
104 |
Correct |
9 ms |
4204 KB |
Output is correct |
105 |
Correct |
18 ms |
6508 KB |
Output is correct |
106 |
Correct |
2 ms |
2796 KB |
Output is correct |
107 |
Correct |
46 ms |
8684 KB |
Output is correct |
108 |
Correct |
71 ms |
11116 KB |
Output is correct |
109 |
Correct |
3 ms |
2796 KB |
Output is correct |
110 |
Correct |
101 ms |
13804 KB |
Output is correct |
111 |
Correct |
122 ms |
16492 KB |
Output is correct |
112 |
Correct |
3 ms |
2796 KB |
Output is correct |
113 |
Correct |
157 ms |
20972 KB |
Output is correct |
114 |
Correct |
54 ms |
10620 KB |
Output is correct |
115 |
Correct |
54 ms |
10596 KB |
Output is correct |
116 |
Correct |
58 ms |
10600 KB |
Output is correct |
117 |
Correct |
53 ms |
10620 KB |
Output is correct |
118 |
Correct |
54 ms |
10596 KB |
Output is correct |
119 |
Correct |
60 ms |
12004 KB |
Output is correct |
120 |
Correct |
57 ms |
10984 KB |
Output is correct |
121 |
Correct |
55 ms |
10472 KB |
Output is correct |
122 |
Correct |
52 ms |
10336 KB |
Output is correct |
123 |
Correct |
60 ms |
10848 KB |
Output is correct |
124 |
Correct |
2 ms |
2668 KB |
Output is correct |
125 |
Correct |
28 ms |
10588 KB |
Output is correct |
126 |
Correct |
28 ms |
10588 KB |
Output is correct |
127 |
Correct |
29 ms |
10588 KB |
Output is correct |
128 |
Correct |
29 ms |
10588 KB |
Output is correct |
129 |
Correct |
28 ms |
10588 KB |
Output is correct |
130 |
Correct |
30 ms |
10588 KB |
Output is correct |
131 |
Correct |
27 ms |
10588 KB |
Output is correct |
132 |
Correct |
29 ms |
10588 KB |
Output is correct |
133 |
Correct |
2 ms |
2668 KB |
Output is correct |
134 |
Correct |
2 ms |
2668 KB |
Output is correct |
135 |
Correct |
3 ms |
2924 KB |
Output is correct |
136 |
Correct |
29 ms |
10588 KB |
Output is correct |
137 |
Correct |
3 ms |
2796 KB |
Output is correct |
138 |
Correct |
3 ms |
2924 KB |
Output is correct |
139 |
Correct |
4 ms |
2924 KB |
Output is correct |
140 |
Correct |
3 ms |
2796 KB |
Output is correct |
141 |
Correct |
3 ms |
2924 KB |
Output is correct |
142 |
Correct |
4 ms |
2924 KB |
Output is correct |
143 |
Correct |
3 ms |
2796 KB |
Output is correct |
144 |
Correct |
3 ms |
2924 KB |
Output is correct |
145 |
Correct |
4 ms |
2924 KB |
Output is correct |
146 |
Correct |
3 ms |
2668 KB |
Output is correct |
147 |
Correct |
2 ms |
2668 KB |
Output is correct |
148 |
Correct |
2 ms |
2668 KB |
Output is correct |
149 |
Correct |
2 ms |
2668 KB |
Output is correct |
150 |
Correct |
2 ms |
2668 KB |
Output is correct |
151 |
Correct |
2 ms |
2668 KB |
Output is correct |
152 |
Correct |
2 ms |
2668 KB |
Output is correct |
153 |
Correct |
2 ms |
2668 KB |
Output is correct |
154 |
Correct |
2 ms |
2668 KB |
Output is correct |
155 |
Correct |
2 ms |
2668 KB |
Output is correct |
156 |
Correct |
2 ms |
2668 KB |
Output is correct |
157 |
Correct |
2 ms |
2668 KB |
Output is correct |
158 |
Correct |
2 ms |
2668 KB |
Output is correct |
159 |
Correct |
2 ms |
2668 KB |
Output is correct |
160 |
Correct |
2 ms |
2688 KB |
Output is correct |
161 |
Correct |
2 ms |
2668 KB |
Output is correct |
162 |
Correct |
2 ms |
2668 KB |
Output is correct |
163 |
Correct |
2 ms |
2668 KB |
Output is correct |
164 |
Correct |
2 ms |
2668 KB |
Output is correct |
165 |
Correct |
4 ms |
3308 KB |
Output is correct |
166 |
Correct |
4 ms |
3308 KB |
Output is correct |
167 |
Correct |
3 ms |
2924 KB |
Output is correct |
168 |
Correct |
3 ms |
2924 KB |
Output is correct |
169 |
Correct |
4 ms |
2924 KB |
Output is correct |
170 |
Correct |
4 ms |
2924 KB |
Output is correct |
171 |
Correct |
3 ms |
2924 KB |
Output is correct |
172 |
Correct |
3 ms |
2924 KB |
Output is correct |
173 |
Correct |
4 ms |
2924 KB |
Output is correct |
174 |
Correct |
4 ms |
3072 KB |
Output is correct |
175 |
Incorrect |
3 ms |
2924 KB |
Output isn't correct |
176 |
Halted |
0 ms |
0 KB |
- |