#include "dreaming.h"
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 3e2;
vector<pair<int, int>> g[MAXN];
int d[MAXN];
vector<int> comp;
bool visited[MAXN];
void dfs(int v, int p, int dist){
visited[v] = true;
d[v] = dist;
comp.push_back(v);
for (auto edge : g[v]){
int u = edge.first, w = edge.second;
if (u != p) dfs(u, v, dist + w);
}
}
int dA[MAXN], dB[MAXN];
pair<int, int> get_diameter(int v){
comp.clear();
dfs(v, -1, 0);
int A = v;
for (int x : comp){
if (d[x] > d[A]) A = x;
}
comp.clear();
dfs(A, -1, 0);
int B = v;
for (int x : comp){
if (d[x] > d[B]) B = x;
dA[x] = d[x];
}
comp.clear();
dfs(B, -1, 0);
for (int x : comp){
dB[x] = d[x];
if (max(dA[x], dB[x]) < max(dA[v], dB[v])) v = x;
}
return make_pair(dA[B], v);
}
int travelTime(int N, int M, int L, int A[], int B[], int T[]) {
for (int i = 0; i < M; i++){
g[A[i]].emplace_back(B[i], T[i]);
g[B[i]].emplace_back(A[i], T[i]);
}
vector<pair<int, int>> diameters;
for (int i = 0; i < N; i++){
if (!visited[i]){
diameters.push_back(get_diameter(i));
}
}
sort(diameters.begin(), diameters.end());
for (int i = 0; i < diameters.size() - 1; i++){
int x = diameters[i].second, y = diameters.back().second;
g[x].emplace_back(y, L);
g[y].emplace_back(x, L);
}
return get_diameter(0).first;
}
Compilation message
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:71:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for (int i = 0; i < diameters.size() - 1; i++){
| ~~^~~~~~~~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
71 ms |
16296 KB |
Output is correct |
2 |
Correct |
76 ms |
16148 KB |
Output is correct |
3 |
Correct |
49 ms |
12428 KB |
Output is correct |
4 |
Correct |
13 ms |
6680 KB |
Output is correct |
5 |
Correct |
10 ms |
5964 KB |
Output is correct |
6 |
Correct |
19 ms |
7600 KB |
Output is correct |
7 |
Correct |
4 ms |
4940 KB |
Output is correct |
8 |
Correct |
38 ms |
9072 KB |
Output is correct |
9 |
Correct |
50 ms |
10620 KB |
Output is correct |
10 |
Correct |
4 ms |
5068 KB |
Output is correct |
11 |
Correct |
102 ms |
12556 KB |
Output is correct |
12 |
Correct |
113 ms |
14232 KB |
Output is correct |
13 |
Correct |
4 ms |
5068 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
4932 KB |
Output is correct |
2 |
Correct |
3 ms |
4940 KB |
Output is correct |
3 |
Correct |
4 ms |
5044 KB |
Output is correct |
4 |
Correct |
4 ms |
4940 KB |
Output is correct |
5 |
Correct |
4 ms |
4940 KB |
Output is correct |
6 |
Correct |
3 ms |
4940 KB |
Output is correct |
7 |
Correct |
3 ms |
4940 KB |
Output is correct |
8 |
Correct |
3 ms |
5048 KB |
Output is correct |
9 |
Correct |
3 ms |
4940 KB |
Output is correct |
10 |
Correct |
3 ms |
4940 KB |
Output is correct |
11 |
Correct |
4 ms |
4940 KB |
Output is correct |
12 |
Correct |
3 ms |
4940 KB |
Output is correct |
13 |
Correct |
4 ms |
4940 KB |
Output is correct |
14 |
Correct |
3 ms |
4992 KB |
Output is correct |
15 |
Correct |
3 ms |
4940 KB |
Output is correct |
16 |
Correct |
3 ms |
4940 KB |
Output is correct |
17 |
Correct |
5 ms |
4940 KB |
Output is correct |
18 |
Correct |
4 ms |
4940 KB |
Output is correct |
19 |
Correct |
3 ms |
4940 KB |
Output is correct |
20 |
Correct |
3 ms |
4940 KB |
Output is correct |
21 |
Correct |
3 ms |
4940 KB |
Output is correct |
22 |
Correct |
4 ms |
4940 KB |
Output is correct |
23 |
Correct |
4 ms |
4940 KB |
Output is correct |
24 |
Correct |
3 ms |
4940 KB |
Output is correct |
25 |
Correct |
3 ms |
4940 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
71 ms |
16296 KB |
Output is correct |
2 |
Correct |
76 ms |
16148 KB |
Output is correct |
3 |
Correct |
49 ms |
12428 KB |
Output is correct |
4 |
Correct |
13 ms |
6680 KB |
Output is correct |
5 |
Correct |
10 ms |
5964 KB |
Output is correct |
6 |
Correct |
19 ms |
7600 KB |
Output is correct |
7 |
Correct |
4 ms |
4940 KB |
Output is correct |
8 |
Correct |
38 ms |
9072 KB |
Output is correct |
9 |
Correct |
50 ms |
10620 KB |
Output is correct |
10 |
Correct |
4 ms |
5068 KB |
Output is correct |
11 |
Correct |
102 ms |
12556 KB |
Output is correct |
12 |
Correct |
113 ms |
14232 KB |
Output is correct |
13 |
Correct |
4 ms |
5068 KB |
Output is correct |
14 |
Correct |
4 ms |
4932 KB |
Output is correct |
15 |
Correct |
3 ms |
4940 KB |
Output is correct |
16 |
Correct |
4 ms |
5044 KB |
Output is correct |
17 |
Correct |
4 ms |
4940 KB |
Output is correct |
18 |
Correct |
4 ms |
4940 KB |
Output is correct |
19 |
Correct |
3 ms |
4940 KB |
Output is correct |
20 |
Correct |
3 ms |
4940 KB |
Output is correct |
21 |
Correct |
3 ms |
5048 KB |
Output is correct |
22 |
Correct |
3 ms |
4940 KB |
Output is correct |
23 |
Correct |
3 ms |
4940 KB |
Output is correct |
24 |
Correct |
4 ms |
4940 KB |
Output is correct |
25 |
Correct |
3 ms |
4940 KB |
Output is correct |
26 |
Correct |
4 ms |
4940 KB |
Output is correct |
27 |
Correct |
3 ms |
4992 KB |
Output is correct |
28 |
Correct |
3 ms |
4940 KB |
Output is correct |
29 |
Correct |
3 ms |
4940 KB |
Output is correct |
30 |
Correct |
5 ms |
4940 KB |
Output is correct |
31 |
Correct |
4 ms |
4940 KB |
Output is correct |
32 |
Correct |
3 ms |
4940 KB |
Output is correct |
33 |
Correct |
3 ms |
4940 KB |
Output is correct |
34 |
Correct |
3 ms |
4940 KB |
Output is correct |
35 |
Correct |
4 ms |
4940 KB |
Output is correct |
36 |
Correct |
4 ms |
4940 KB |
Output is correct |
37 |
Correct |
3 ms |
4940 KB |
Output is correct |
38 |
Correct |
3 ms |
4940 KB |
Output is correct |
39 |
Correct |
72 ms |
16232 KB |
Output is correct |
40 |
Correct |
71 ms |
16192 KB |
Output is correct |
41 |
Correct |
45 ms |
12444 KB |
Output is correct |
42 |
Correct |
11 ms |
6732 KB |
Output is correct |
43 |
Correct |
3 ms |
4940 KB |
Output is correct |
44 |
Correct |
3 ms |
4940 KB |
Output is correct |
45 |
Correct |
3 ms |
4940 KB |
Output is correct |
46 |
Correct |
4 ms |
4940 KB |
Output is correct |
47 |
Correct |
3 ms |
4940 KB |
Output is correct |
48 |
Correct |
3 ms |
4940 KB |
Output is correct |
49 |
Correct |
3 ms |
4940 KB |
Output is correct |
50 |
Correct |
3 ms |
4940 KB |
Output is correct |
51 |
Correct |
3 ms |
4940 KB |
Output is correct |
52 |
Correct |
3 ms |
4940 KB |
Output is correct |
53 |
Correct |
3 ms |
4940 KB |
Output is correct |
54 |
Correct |
4 ms |
4940 KB |
Output is correct |
55 |
Correct |
3 ms |
4940 KB |
Output is correct |
56 |
Correct |
4 ms |
4940 KB |
Output is correct |
57 |
Correct |
143 ms |
11920 KB |
Output is correct |
58 |
Correct |
118 ms |
12032 KB |
Output is correct |
59 |
Correct |
140 ms |
11868 KB |
Output is correct |
60 |
Correct |
154 ms |
11972 KB |
Output is correct |
61 |
Correct |
116 ms |
11720 KB |
Output is correct |
62 |
Correct |
169 ms |
11848 KB |
Output is correct |
63 |
Correct |
123 ms |
11760 KB |
Output is correct |
64 |
Correct |
116 ms |
11608 KB |
Output is correct |
65 |
Correct |
114 ms |
11588 KB |
Output is correct |
66 |
Correct |
102 ms |
11600 KB |
Output is correct |
67 |
Correct |
149 ms |
11840 KB |
Output is correct |
68 |
Correct |
125 ms |
11800 KB |
Output is correct |
69 |
Correct |
114 ms |
12028 KB |
Output is correct |
70 |
Correct |
115 ms |
11968 KB |
Output is correct |
71 |
Correct |
3 ms |
4952 KB |
Output is correct |
72 |
Correct |
5 ms |
5188 KB |
Output is correct |
73 |
Correct |
6 ms |
5196 KB |
Output is correct |
74 |
Correct |
5 ms |
5196 KB |
Output is correct |
75 |
Correct |
5 ms |
5196 KB |
Output is correct |
76 |
Correct |
7 ms |
5196 KB |
Output is correct |
77 |
Correct |
6 ms |
5196 KB |
Output is correct |
78 |
Correct |
5 ms |
5196 KB |
Output is correct |
79 |
Correct |
5 ms |
5260 KB |
Output is correct |
80 |
Correct |
135 ms |
11952 KB |
Output is correct |
81 |
Correct |
171 ms |
11868 KB |
Output is correct |
82 |
Correct |
164 ms |
11708 KB |
Output is correct |
83 |
Correct |
148 ms |
11784 KB |
Output is correct |
84 |
Correct |
5 ms |
5196 KB |
Output is correct |
85 |
Correct |
4 ms |
5196 KB |
Output is correct |
86 |
Correct |
5 ms |
5196 KB |
Output is correct |
87 |
Correct |
5 ms |
5196 KB |
Output is correct |
88 |
Correct |
5 ms |
5196 KB |
Output is correct |
89 |
Correct |
5 ms |
5196 KB |
Output is correct |
90 |
Correct |
5 ms |
5196 KB |
Output is correct |
91 |
Correct |
5 ms |
5196 KB |
Output is correct |
92 |
Correct |
5 ms |
5180 KB |
Output is correct |
93 |
Correct |
5 ms |
5196 KB |
Output is correct |
94 |
Correct |
3 ms |
4940 KB |
Output is correct |
95 |
Correct |
4 ms |
4940 KB |
Output is correct |
96 |
Correct |
3 ms |
4940 KB |
Output is correct |
97 |
Correct |
4 ms |
4940 KB |
Output is correct |
98 |
Correct |
3 ms |
4940 KB |
Output is correct |
99 |
Correct |
3 ms |
4940 KB |
Output is correct |
100 |
Correct |
3 ms |
4940 KB |
Output is correct |
101 |
Correct |
4 ms |
4940 KB |
Output is correct |
102 |
Correct |
3 ms |
4940 KB |
Output is correct |
103 |
Correct |
3 ms |
4940 KB |
Output is correct |
104 |
Correct |
10 ms |
5964 KB |
Output is correct |
105 |
Correct |
19 ms |
7528 KB |
Output is correct |
106 |
Correct |
4 ms |
4940 KB |
Output is correct |
107 |
Correct |
39 ms |
9124 KB |
Output is correct |
108 |
Correct |
44 ms |
10636 KB |
Output is correct |
109 |
Correct |
4 ms |
5068 KB |
Output is correct |
110 |
Correct |
88 ms |
12548 KB |
Output is correct |
111 |
Correct |
109 ms |
14148 KB |
Output is correct |
112 |
Correct |
4 ms |
5068 KB |
Output is correct |
113 |
Correct |
144 ms |
17296 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
49 ms |
11332 KB |
Output is correct |
2 |
Correct |
56 ms |
11300 KB |
Output is correct |
3 |
Correct |
48 ms |
11332 KB |
Output is correct |
4 |
Correct |
49 ms |
11388 KB |
Output is correct |
5 |
Correct |
48 ms |
11240 KB |
Output is correct |
6 |
Correct |
53 ms |
11844 KB |
Output is correct |
7 |
Correct |
61 ms |
11584 KB |
Output is correct |
8 |
Correct |
57 ms |
11196 KB |
Output is correct |
9 |
Correct |
49 ms |
11228 KB |
Output is correct |
10 |
Correct |
50 ms |
11588 KB |
Output is correct |
11 |
Correct |
4 ms |
4940 KB |
Output is correct |
12 |
Correct |
32 ms |
11836 KB |
Output is correct |
13 |
Correct |
36 ms |
11864 KB |
Output is correct |
14 |
Correct |
32 ms |
11832 KB |
Output is correct |
15 |
Correct |
32 ms |
11852 KB |
Output is correct |
16 |
Correct |
34 ms |
11828 KB |
Output is correct |
17 |
Correct |
32 ms |
11832 KB |
Output is correct |
18 |
Correct |
30 ms |
11792 KB |
Output is correct |
19 |
Correct |
31 ms |
11916 KB |
Output is correct |
20 |
Correct |
4 ms |
4940 KB |
Output is correct |
21 |
Correct |
3 ms |
4940 KB |
Output is correct |
22 |
Correct |
4 ms |
5196 KB |
Output is correct |
23 |
Correct |
30 ms |
11892 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
4 ms |
4932 KB |
Output is correct |
2 |
Correct |
3 ms |
4940 KB |
Output is correct |
3 |
Correct |
4 ms |
5044 KB |
Output is correct |
4 |
Correct |
4 ms |
4940 KB |
Output is correct |
5 |
Correct |
4 ms |
4940 KB |
Output is correct |
6 |
Correct |
3 ms |
4940 KB |
Output is correct |
7 |
Correct |
3 ms |
4940 KB |
Output is correct |
8 |
Correct |
3 ms |
5048 KB |
Output is correct |
9 |
Correct |
3 ms |
4940 KB |
Output is correct |
10 |
Correct |
3 ms |
4940 KB |
Output is correct |
11 |
Correct |
4 ms |
4940 KB |
Output is correct |
12 |
Correct |
3 ms |
4940 KB |
Output is correct |
13 |
Correct |
4 ms |
4940 KB |
Output is correct |
14 |
Correct |
3 ms |
4992 KB |
Output is correct |
15 |
Correct |
3 ms |
4940 KB |
Output is correct |
16 |
Correct |
3 ms |
4940 KB |
Output is correct |
17 |
Correct |
5 ms |
4940 KB |
Output is correct |
18 |
Correct |
4 ms |
4940 KB |
Output is correct |
19 |
Correct |
3 ms |
4940 KB |
Output is correct |
20 |
Correct |
3 ms |
4940 KB |
Output is correct |
21 |
Correct |
3 ms |
4940 KB |
Output is correct |
22 |
Correct |
4 ms |
4940 KB |
Output is correct |
23 |
Correct |
4 ms |
4940 KB |
Output is correct |
24 |
Correct |
3 ms |
4940 KB |
Output is correct |
25 |
Correct |
3 ms |
4940 KB |
Output is correct |
26 |
Correct |
4 ms |
5068 KB |
Output is correct |
27 |
Correct |
4 ms |
5152 KB |
Output is correct |
28 |
Correct |
5 ms |
5196 KB |
Output is correct |
29 |
Correct |
4 ms |
5068 KB |
Output is correct |
30 |
Correct |
4 ms |
5068 KB |
Output is correct |
31 |
Correct |
5 ms |
5196 KB |
Output is correct |
32 |
Correct |
4 ms |
4996 KB |
Output is correct |
33 |
Correct |
4 ms |
5068 KB |
Output is correct |
34 |
Correct |
5 ms |
5196 KB |
Output is correct |
35 |
Correct |
3 ms |
4940 KB |
Output is correct |
36 |
Correct |
4 ms |
4940 KB |
Output is correct |
37 |
Correct |
3 ms |
4940 KB |
Output is correct |
38 |
Correct |
4 ms |
4940 KB |
Output is correct |
39 |
Correct |
4 ms |
4940 KB |
Output is correct |
40 |
Correct |
3 ms |
4940 KB |
Output is correct |
41 |
Correct |
3 ms |
4940 KB |
Output is correct |
42 |
Correct |
3 ms |
4940 KB |
Output is correct |
43 |
Correct |
3 ms |
4940 KB |
Output is correct |
44 |
Correct |
3 ms |
4940 KB |
Output is correct |
45 |
Correct |
4 ms |
4940 KB |
Output is correct |
46 |
Correct |
4 ms |
5068 KB |
Output is correct |
47 |
Correct |
4 ms |
4940 KB |
Output is correct |
48 |
Correct |
3 ms |
4940 KB |
Output is correct |
49 |
Correct |
3 ms |
4940 KB |
Output is correct |
50 |
Correct |
3 ms |
4940 KB |
Output is correct |
51 |
Correct |
4 ms |
4940 KB |
Output is correct |
52 |
Correct |
3 ms |
4940 KB |
Output is correct |
53 |
Correct |
3 ms |
4940 KB |
Output is correct |
54 |
Correct |
5 ms |
5324 KB |
Output is correct |
55 |
Correct |
5 ms |
5316 KB |
Output is correct |
56 |
Correct |
5 ms |
5196 KB |
Output is correct |
57 |
Correct |
4 ms |
5196 KB |
Output is correct |
58 |
Correct |
5 ms |
5152 KB |
Output is correct |
59 |
Correct |
5 ms |
5196 KB |
Output is correct |
60 |
Correct |
5 ms |
5196 KB |
Output is correct |
61 |
Correct |
4 ms |
5196 KB |
Output is correct |
62 |
Correct |
5 ms |
5196 KB |
Output is correct |
63 |
Correct |
5 ms |
5196 KB |
Output is correct |
64 |
Incorrect |
4 ms |
5196 KB |
Output isn't correct |
65 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
71 ms |
16296 KB |
Output is correct |
2 |
Correct |
76 ms |
16148 KB |
Output is correct |
3 |
Correct |
49 ms |
12428 KB |
Output is correct |
4 |
Correct |
13 ms |
6680 KB |
Output is correct |
5 |
Correct |
10 ms |
5964 KB |
Output is correct |
6 |
Correct |
19 ms |
7600 KB |
Output is correct |
7 |
Correct |
4 ms |
4940 KB |
Output is correct |
8 |
Correct |
38 ms |
9072 KB |
Output is correct |
9 |
Correct |
50 ms |
10620 KB |
Output is correct |
10 |
Correct |
4 ms |
5068 KB |
Output is correct |
11 |
Correct |
102 ms |
12556 KB |
Output is correct |
12 |
Correct |
113 ms |
14232 KB |
Output is correct |
13 |
Correct |
4 ms |
5068 KB |
Output is correct |
14 |
Correct |
4 ms |
4932 KB |
Output is correct |
15 |
Correct |
3 ms |
4940 KB |
Output is correct |
16 |
Correct |
4 ms |
5044 KB |
Output is correct |
17 |
Correct |
4 ms |
4940 KB |
Output is correct |
18 |
Correct |
4 ms |
4940 KB |
Output is correct |
19 |
Correct |
3 ms |
4940 KB |
Output is correct |
20 |
Correct |
3 ms |
4940 KB |
Output is correct |
21 |
Correct |
3 ms |
5048 KB |
Output is correct |
22 |
Correct |
3 ms |
4940 KB |
Output is correct |
23 |
Correct |
3 ms |
4940 KB |
Output is correct |
24 |
Correct |
4 ms |
4940 KB |
Output is correct |
25 |
Correct |
3 ms |
4940 KB |
Output is correct |
26 |
Correct |
4 ms |
4940 KB |
Output is correct |
27 |
Correct |
3 ms |
4992 KB |
Output is correct |
28 |
Correct |
3 ms |
4940 KB |
Output is correct |
29 |
Correct |
3 ms |
4940 KB |
Output is correct |
30 |
Correct |
5 ms |
4940 KB |
Output is correct |
31 |
Correct |
4 ms |
4940 KB |
Output is correct |
32 |
Correct |
3 ms |
4940 KB |
Output is correct |
33 |
Correct |
3 ms |
4940 KB |
Output is correct |
34 |
Correct |
3 ms |
4940 KB |
Output is correct |
35 |
Correct |
4 ms |
4940 KB |
Output is correct |
36 |
Correct |
4 ms |
4940 KB |
Output is correct |
37 |
Correct |
3 ms |
4940 KB |
Output is correct |
38 |
Correct |
3 ms |
4940 KB |
Output is correct |
39 |
Correct |
72 ms |
16232 KB |
Output is correct |
40 |
Correct |
71 ms |
16192 KB |
Output is correct |
41 |
Correct |
45 ms |
12444 KB |
Output is correct |
42 |
Correct |
11 ms |
6732 KB |
Output is correct |
43 |
Correct |
3 ms |
4940 KB |
Output is correct |
44 |
Correct |
3 ms |
4940 KB |
Output is correct |
45 |
Correct |
3 ms |
4940 KB |
Output is correct |
46 |
Correct |
4 ms |
4940 KB |
Output is correct |
47 |
Correct |
3 ms |
4940 KB |
Output is correct |
48 |
Correct |
3 ms |
4940 KB |
Output is correct |
49 |
Correct |
3 ms |
4940 KB |
Output is correct |
50 |
Correct |
3 ms |
4940 KB |
Output is correct |
51 |
Correct |
3 ms |
4940 KB |
Output is correct |
52 |
Correct |
3 ms |
4940 KB |
Output is correct |
53 |
Correct |
3 ms |
4940 KB |
Output is correct |
54 |
Correct |
4 ms |
4940 KB |
Output is correct |
55 |
Correct |
3 ms |
4940 KB |
Output is correct |
56 |
Correct |
4 ms |
4940 KB |
Output is correct |
57 |
Correct |
143 ms |
11920 KB |
Output is correct |
58 |
Correct |
118 ms |
12032 KB |
Output is correct |
59 |
Correct |
140 ms |
11868 KB |
Output is correct |
60 |
Correct |
154 ms |
11972 KB |
Output is correct |
61 |
Correct |
116 ms |
11720 KB |
Output is correct |
62 |
Correct |
169 ms |
11848 KB |
Output is correct |
63 |
Correct |
123 ms |
11760 KB |
Output is correct |
64 |
Correct |
116 ms |
11608 KB |
Output is correct |
65 |
Correct |
114 ms |
11588 KB |
Output is correct |
66 |
Correct |
102 ms |
11600 KB |
Output is correct |
67 |
Correct |
149 ms |
11840 KB |
Output is correct |
68 |
Correct |
125 ms |
11800 KB |
Output is correct |
69 |
Correct |
114 ms |
12028 KB |
Output is correct |
70 |
Correct |
115 ms |
11968 KB |
Output is correct |
71 |
Correct |
3 ms |
4952 KB |
Output is correct |
72 |
Correct |
5 ms |
5188 KB |
Output is correct |
73 |
Correct |
6 ms |
5196 KB |
Output is correct |
74 |
Correct |
5 ms |
5196 KB |
Output is correct |
75 |
Correct |
5 ms |
5196 KB |
Output is correct |
76 |
Correct |
7 ms |
5196 KB |
Output is correct |
77 |
Correct |
6 ms |
5196 KB |
Output is correct |
78 |
Correct |
5 ms |
5196 KB |
Output is correct |
79 |
Correct |
5 ms |
5260 KB |
Output is correct |
80 |
Correct |
135 ms |
11952 KB |
Output is correct |
81 |
Correct |
171 ms |
11868 KB |
Output is correct |
82 |
Correct |
164 ms |
11708 KB |
Output is correct |
83 |
Correct |
148 ms |
11784 KB |
Output is correct |
84 |
Correct |
5 ms |
5196 KB |
Output is correct |
85 |
Correct |
4 ms |
5196 KB |
Output is correct |
86 |
Correct |
5 ms |
5196 KB |
Output is correct |
87 |
Correct |
5 ms |
5196 KB |
Output is correct |
88 |
Correct |
5 ms |
5196 KB |
Output is correct |
89 |
Correct |
5 ms |
5196 KB |
Output is correct |
90 |
Correct |
5 ms |
5196 KB |
Output is correct |
91 |
Correct |
5 ms |
5196 KB |
Output is correct |
92 |
Correct |
5 ms |
5180 KB |
Output is correct |
93 |
Correct |
5 ms |
5196 KB |
Output is correct |
94 |
Correct |
3 ms |
4940 KB |
Output is correct |
95 |
Correct |
4 ms |
4940 KB |
Output is correct |
96 |
Correct |
3 ms |
4940 KB |
Output is correct |
97 |
Correct |
4 ms |
4940 KB |
Output is correct |
98 |
Correct |
3 ms |
4940 KB |
Output is correct |
99 |
Correct |
3 ms |
4940 KB |
Output is correct |
100 |
Correct |
3 ms |
4940 KB |
Output is correct |
101 |
Correct |
4 ms |
4940 KB |
Output is correct |
102 |
Correct |
3 ms |
4940 KB |
Output is correct |
103 |
Correct |
3 ms |
4940 KB |
Output is correct |
104 |
Correct |
10 ms |
5964 KB |
Output is correct |
105 |
Correct |
19 ms |
7528 KB |
Output is correct |
106 |
Correct |
4 ms |
4940 KB |
Output is correct |
107 |
Correct |
39 ms |
9124 KB |
Output is correct |
108 |
Correct |
44 ms |
10636 KB |
Output is correct |
109 |
Correct |
4 ms |
5068 KB |
Output is correct |
110 |
Correct |
88 ms |
12548 KB |
Output is correct |
111 |
Correct |
109 ms |
14148 KB |
Output is correct |
112 |
Correct |
4 ms |
5068 KB |
Output is correct |
113 |
Correct |
144 ms |
17296 KB |
Output is correct |
114 |
Correct |
49 ms |
11332 KB |
Output is correct |
115 |
Correct |
56 ms |
11300 KB |
Output is correct |
116 |
Correct |
48 ms |
11332 KB |
Output is correct |
117 |
Correct |
49 ms |
11388 KB |
Output is correct |
118 |
Correct |
48 ms |
11240 KB |
Output is correct |
119 |
Correct |
53 ms |
11844 KB |
Output is correct |
120 |
Correct |
61 ms |
11584 KB |
Output is correct |
121 |
Correct |
57 ms |
11196 KB |
Output is correct |
122 |
Correct |
49 ms |
11228 KB |
Output is correct |
123 |
Correct |
50 ms |
11588 KB |
Output is correct |
124 |
Correct |
4 ms |
4940 KB |
Output is correct |
125 |
Correct |
32 ms |
11836 KB |
Output is correct |
126 |
Correct |
36 ms |
11864 KB |
Output is correct |
127 |
Correct |
32 ms |
11832 KB |
Output is correct |
128 |
Correct |
32 ms |
11852 KB |
Output is correct |
129 |
Correct |
34 ms |
11828 KB |
Output is correct |
130 |
Correct |
32 ms |
11832 KB |
Output is correct |
131 |
Correct |
30 ms |
11792 KB |
Output is correct |
132 |
Correct |
31 ms |
11916 KB |
Output is correct |
133 |
Correct |
4 ms |
4940 KB |
Output is correct |
134 |
Correct |
3 ms |
4940 KB |
Output is correct |
135 |
Correct |
4 ms |
5196 KB |
Output is correct |
136 |
Correct |
30 ms |
11892 KB |
Output is correct |
137 |
Correct |
4 ms |
5068 KB |
Output is correct |
138 |
Correct |
4 ms |
5152 KB |
Output is correct |
139 |
Correct |
5 ms |
5196 KB |
Output is correct |
140 |
Correct |
4 ms |
5068 KB |
Output is correct |
141 |
Correct |
4 ms |
5068 KB |
Output is correct |
142 |
Correct |
5 ms |
5196 KB |
Output is correct |
143 |
Correct |
4 ms |
4996 KB |
Output is correct |
144 |
Correct |
4 ms |
5068 KB |
Output is correct |
145 |
Correct |
5 ms |
5196 KB |
Output is correct |
146 |
Correct |
3 ms |
4940 KB |
Output is correct |
147 |
Correct |
4 ms |
4940 KB |
Output is correct |
148 |
Correct |
3 ms |
4940 KB |
Output is correct |
149 |
Correct |
4 ms |
4940 KB |
Output is correct |
150 |
Correct |
4 ms |
4940 KB |
Output is correct |
151 |
Correct |
3 ms |
4940 KB |
Output is correct |
152 |
Correct |
3 ms |
4940 KB |
Output is correct |
153 |
Correct |
3 ms |
4940 KB |
Output is correct |
154 |
Correct |
3 ms |
4940 KB |
Output is correct |
155 |
Correct |
3 ms |
4940 KB |
Output is correct |
156 |
Correct |
4 ms |
4940 KB |
Output is correct |
157 |
Correct |
4 ms |
5068 KB |
Output is correct |
158 |
Correct |
4 ms |
4940 KB |
Output is correct |
159 |
Correct |
3 ms |
4940 KB |
Output is correct |
160 |
Correct |
3 ms |
4940 KB |
Output is correct |
161 |
Correct |
3 ms |
4940 KB |
Output is correct |
162 |
Correct |
4 ms |
4940 KB |
Output is correct |
163 |
Correct |
3 ms |
4940 KB |
Output is correct |
164 |
Correct |
3 ms |
4940 KB |
Output is correct |
165 |
Correct |
5 ms |
5324 KB |
Output is correct |
166 |
Correct |
5 ms |
5316 KB |
Output is correct |
167 |
Correct |
5 ms |
5196 KB |
Output is correct |
168 |
Correct |
4 ms |
5196 KB |
Output is correct |
169 |
Correct |
5 ms |
5152 KB |
Output is correct |
170 |
Correct |
5 ms |
5196 KB |
Output is correct |
171 |
Correct |
5 ms |
5196 KB |
Output is correct |
172 |
Correct |
4 ms |
5196 KB |
Output is correct |
173 |
Correct |
5 ms |
5196 KB |
Output is correct |
174 |
Correct |
5 ms |
5196 KB |
Output is correct |
175 |
Incorrect |
4 ms |
5196 KB |
Output isn't correct |
176 |
Halted |
0 ms |
0 KB |
- |