#include <bits/stdc++.h>
#include "dreaming.h"
#define ll long long
#define pii pair<int, int>
#define st first
#define nd second
using namespace std;
vector<pii> adj[100010];
vector<int> connect;
bool visited[100010];
int max_dis, min_dis;
int u, v, node;
void dfs(int i, int prt, int dis) {
visited[i] = 1;
if (dis > max_dis) {
u = i;
max_dis = dis;
}
for (auto j : adj[i]) {
if (j.st == prt) continue;
dfs(j.st, i, dis + j.nd);
}
}
int dfs2(int i, int prt, int dis) {
if (i == v) {
min_dis = dis;
return 0;
}
for (auto j : adj[i]) {
if (j.st == prt) continue;
int k = dfs2(j.st, i, dis + j.nd);
if (k == -1) continue;
k += j.nd;
if (max(dis, k) < min_dis) {
node = i;
min_dis = max(dis, k);
}
return k;
}
return -1;
}
int travelTime(int N, int M, int L, int A[], int B[], int T[]) {
for (int i = 0; i < M; ++i) {
adj[A[i]].push_back({B[i], T[i]});
adj[B[i]].push_back({A[i], T[i]});
}
int mx = INT_MIN, max_node;
for (int i = 0; i < N; ++i) {
if (visited[i]) continue;
max_dis = 0, u = i;
dfs(i, -1, 0);
max_dis = 0, v = u;
dfs(v, -1, 0);
min_dis = INT_MAX, node = u;
dfs2(u, -1, 0);
if (mx < max_dis) {
mx = max_dis;
max_node = node;
}
connect.push_back(node);
}
for (int i = 0; i < connect.size(); ++i) {
if (connect[i] == max_node) continue;
adj[max_node].push_back({connect[i], L});
adj[connect[i]].push_back({max_node, L});
}
max_dis = 0, u = 0;
dfs(0, -1, 0);
max_dis = 0;
dfs(u, -1, 0);
return max_dis;
}
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<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for (int i = 0; i < connect.size(); ++i) {
| ~~^~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
47 ms |
12356 KB |
Output is correct |
2 |
Correct |
60 ms |
12300 KB |
Output is correct |
3 |
Correct |
34 ms |
8952 KB |
Output is correct |
4 |
Correct |
8 ms |
4044 KB |
Output is correct |
5 |
Correct |
6 ms |
3404 KB |
Output is correct |
6 |
Correct |
12 ms |
4672 KB |
Output is correct |
7 |
Correct |
2 ms |
2636 KB |
Output is correct |
8 |
Correct |
23 ms |
5908 KB |
Output is correct |
9 |
Correct |
30 ms |
7296 KB |
Output is correct |
10 |
Correct |
2 ms |
2636 KB |
Output is correct |
11 |
Correct |
47 ms |
8728 KB |
Output is correct |
12 |
Correct |
67 ms |
10488 KB |
Output is correct |
13 |
Correct |
3 ms |
2636 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2636 KB |
Output is correct |
2 |
Correct |
2 ms |
2636 KB |
Output is correct |
3 |
Correct |
2 ms |
2608 KB |
Output is correct |
4 |
Correct |
2 ms |
2636 KB |
Output is correct |
5 |
Correct |
2 ms |
2636 KB |
Output is correct |
6 |
Correct |
1 ms |
2636 KB |
Output is correct |
7 |
Correct |
2 ms |
2636 KB |
Output is correct |
8 |
Correct |
1 ms |
2636 KB |
Output is correct |
9 |
Correct |
2 ms |
2636 KB |
Output is correct |
10 |
Correct |
2 ms |
2636 KB |
Output is correct |
11 |
Correct |
2 ms |
2636 KB |
Output is correct |
12 |
Correct |
2 ms |
2636 KB |
Output is correct |
13 |
Correct |
2 ms |
2636 KB |
Output is correct |
14 |
Correct |
2 ms |
2636 KB |
Output is correct |
15 |
Correct |
2 ms |
2636 KB |
Output is correct |
16 |
Correct |
1 ms |
2636 KB |
Output is correct |
17 |
Correct |
2 ms |
2636 KB |
Output is correct |
18 |
Correct |
2 ms |
2636 KB |
Output is correct |
19 |
Correct |
2 ms |
2636 KB |
Output is correct |
20 |
Correct |
1 ms |
2636 KB |
Output is correct |
21 |
Correct |
2 ms |
2636 KB |
Output is correct |
22 |
Correct |
1 ms |
2636 KB |
Output is correct |
23 |
Correct |
1 ms |
2636 KB |
Output is correct |
24 |
Correct |
2 ms |
2636 KB |
Output is correct |
25 |
Correct |
2 ms |
2584 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
47 ms |
12356 KB |
Output is correct |
2 |
Correct |
60 ms |
12300 KB |
Output is correct |
3 |
Correct |
34 ms |
8952 KB |
Output is correct |
4 |
Correct |
8 ms |
4044 KB |
Output is correct |
5 |
Correct |
6 ms |
3404 KB |
Output is correct |
6 |
Correct |
12 ms |
4672 KB |
Output is correct |
7 |
Correct |
2 ms |
2636 KB |
Output is correct |
8 |
Correct |
23 ms |
5908 KB |
Output is correct |
9 |
Correct |
30 ms |
7296 KB |
Output is correct |
10 |
Correct |
2 ms |
2636 KB |
Output is correct |
11 |
Correct |
47 ms |
8728 KB |
Output is correct |
12 |
Correct |
67 ms |
10488 KB |
Output is correct |
13 |
Correct |
3 ms |
2636 KB |
Output is correct |
14 |
Correct |
1 ms |
2636 KB |
Output is correct |
15 |
Correct |
2 ms |
2636 KB |
Output is correct |
16 |
Correct |
2 ms |
2608 KB |
Output is correct |
17 |
Correct |
2 ms |
2636 KB |
Output is correct |
18 |
Correct |
2 ms |
2636 KB |
Output is correct |
19 |
Correct |
1 ms |
2636 KB |
Output is correct |
20 |
Correct |
2 ms |
2636 KB |
Output is correct |
21 |
Correct |
1 ms |
2636 KB |
Output is correct |
22 |
Correct |
2 ms |
2636 KB |
Output is correct |
23 |
Correct |
2 ms |
2636 KB |
Output is correct |
24 |
Correct |
2 ms |
2636 KB |
Output is correct |
25 |
Correct |
2 ms |
2636 KB |
Output is correct |
26 |
Correct |
2 ms |
2636 KB |
Output is correct |
27 |
Correct |
2 ms |
2636 KB |
Output is correct |
28 |
Correct |
2 ms |
2636 KB |
Output is correct |
29 |
Correct |
1 ms |
2636 KB |
Output is correct |
30 |
Correct |
2 ms |
2636 KB |
Output is correct |
31 |
Correct |
2 ms |
2636 KB |
Output is correct |
32 |
Correct |
2 ms |
2636 KB |
Output is correct |
33 |
Correct |
1 ms |
2636 KB |
Output is correct |
34 |
Correct |
2 ms |
2636 KB |
Output is correct |
35 |
Correct |
1 ms |
2636 KB |
Output is correct |
36 |
Correct |
1 ms |
2636 KB |
Output is correct |
37 |
Correct |
2 ms |
2636 KB |
Output is correct |
38 |
Correct |
2 ms |
2584 KB |
Output is correct |
39 |
Correct |
46 ms |
12340 KB |
Output is correct |
40 |
Correct |
60 ms |
12248 KB |
Output is correct |
41 |
Correct |
29 ms |
8900 KB |
Output is correct |
42 |
Correct |
8 ms |
4084 KB |
Output is correct |
43 |
Correct |
2 ms |
2636 KB |
Output is correct |
44 |
Correct |
2 ms |
2636 KB |
Output is correct |
45 |
Correct |
2 ms |
2636 KB |
Output is correct |
46 |
Correct |
2 ms |
2636 KB |
Output is correct |
47 |
Correct |
2 ms |
2636 KB |
Output is correct |
48 |
Correct |
2 ms |
2636 KB |
Output is correct |
49 |
Correct |
1 ms |
2636 KB |
Output is correct |
50 |
Correct |
1 ms |
2636 KB |
Output is correct |
51 |
Correct |
2 ms |
2636 KB |
Output is correct |
52 |
Correct |
2 ms |
2636 KB |
Output is correct |
53 |
Correct |
2 ms |
2636 KB |
Output is correct |
54 |
Correct |
1 ms |
2636 KB |
Output is correct |
55 |
Correct |
2 ms |
2636 KB |
Output is correct |
56 |
Correct |
1 ms |
2636 KB |
Output is correct |
57 |
Correct |
66 ms |
7876 KB |
Output is correct |
58 |
Correct |
62 ms |
7884 KB |
Output is correct |
59 |
Correct |
66 ms |
7772 KB |
Output is correct |
60 |
Correct |
76 ms |
7840 KB |
Output is correct |
61 |
Correct |
69 ms |
7748 KB |
Output is correct |
62 |
Correct |
60 ms |
7712 KB |
Output is correct |
63 |
Correct |
54 ms |
7456 KB |
Output is correct |
64 |
Correct |
65 ms |
7476 KB |
Output is correct |
65 |
Correct |
61 ms |
7564 KB |
Output is correct |
66 |
Correct |
79 ms |
7488 KB |
Output is correct |
67 |
Correct |
69 ms |
7728 KB |
Output is correct |
68 |
Correct |
69 ms |
7820 KB |
Output is correct |
69 |
Correct |
66 ms |
7788 KB |
Output is correct |
70 |
Correct |
65 ms |
7720 KB |
Output is correct |
71 |
Correct |
2 ms |
2636 KB |
Output is correct |
72 |
Correct |
3 ms |
2764 KB |
Output is correct |
73 |
Correct |
4 ms |
2764 KB |
Output is correct |
74 |
Correct |
3 ms |
2764 KB |
Output is correct |
75 |
Correct |
3 ms |
2764 KB |
Output is correct |
76 |
Correct |
3 ms |
2764 KB |
Output is correct |
77 |
Correct |
3 ms |
2764 KB |
Output is correct |
78 |
Correct |
3 ms |
2764 KB |
Output is correct |
79 |
Correct |
3 ms |
2764 KB |
Output is correct |
80 |
Correct |
66 ms |
7792 KB |
Output is correct |
81 |
Correct |
91 ms |
7748 KB |
Output is correct |
82 |
Correct |
59 ms |
7604 KB |
Output is correct |
83 |
Correct |
80 ms |
7620 KB |
Output is correct |
84 |
Correct |
2 ms |
2764 KB |
Output is correct |
85 |
Correct |
2 ms |
2764 KB |
Output is correct |
86 |
Correct |
2 ms |
2764 KB |
Output is correct |
87 |
Correct |
3 ms |
2764 KB |
Output is correct |
88 |
Correct |
2 ms |
2764 KB |
Output is correct |
89 |
Correct |
2 ms |
2764 KB |
Output is correct |
90 |
Correct |
2 ms |
2764 KB |
Output is correct |
91 |
Correct |
2 ms |
2764 KB |
Output is correct |
92 |
Correct |
3 ms |
2764 KB |
Output is correct |
93 |
Correct |
2 ms |
2764 KB |
Output is correct |
94 |
Correct |
2 ms |
2636 KB |
Output is correct |
95 |
Correct |
2 ms |
2636 KB |
Output is correct |
96 |
Correct |
2 ms |
2636 KB |
Output is correct |
97 |
Correct |
1 ms |
2636 KB |
Output is correct |
98 |
Correct |
2 ms |
2636 KB |
Output is correct |
99 |
Correct |
2 ms |
2636 KB |
Output is correct |
100 |
Correct |
2 ms |
2636 KB |
Output is correct |
101 |
Correct |
1 ms |
2636 KB |
Output is correct |
102 |
Correct |
2 ms |
2636 KB |
Output is correct |
103 |
Correct |
2 ms |
2636 KB |
Output is correct |
104 |
Correct |
6 ms |
3404 KB |
Output is correct |
105 |
Correct |
12 ms |
4684 KB |
Output is correct |
106 |
Correct |
2 ms |
2636 KB |
Output is correct |
107 |
Correct |
23 ms |
5828 KB |
Output is correct |
108 |
Correct |
30 ms |
7296 KB |
Output is correct |
109 |
Correct |
2 ms |
2716 KB |
Output is correct |
110 |
Correct |
52 ms |
8640 KB |
Output is correct |
111 |
Correct |
58 ms |
10480 KB |
Output is correct |
112 |
Correct |
2 ms |
2636 KB |
Output is correct |
113 |
Correct |
86 ms |
13288 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
23 ms |
6720 KB |
Output is correct |
2 |
Correct |
35 ms |
6748 KB |
Output is correct |
3 |
Correct |
33 ms |
6752 KB |
Output is correct |
4 |
Correct |
25 ms |
6716 KB |
Output is correct |
5 |
Correct |
34 ms |
6760 KB |
Output is correct |
6 |
Correct |
23 ms |
7532 KB |
Output is correct |
7 |
Correct |
24 ms |
6864 KB |
Output is correct |
8 |
Correct |
26 ms |
6708 KB |
Output is correct |
9 |
Correct |
23 ms |
6584 KB |
Output is correct |
10 |
Correct |
27 ms |
6936 KB |
Output is correct |
11 |
Correct |
3 ms |
2636 KB |
Output is correct |
12 |
Correct |
10 ms |
6976 KB |
Output is correct |
13 |
Correct |
12 ms |
6976 KB |
Output is correct |
14 |
Correct |
10 ms |
6976 KB |
Output is correct |
15 |
Correct |
10 ms |
7076 KB |
Output is correct |
16 |
Correct |
12 ms |
6988 KB |
Output is correct |
17 |
Correct |
13 ms |
6992 KB |
Output is correct |
18 |
Correct |
12 ms |
6976 KB |
Output is correct |
19 |
Correct |
9 ms |
6976 KB |
Output is correct |
20 |
Correct |
2 ms |
2636 KB |
Output is correct |
21 |
Correct |
2 ms |
2636 KB |
Output is correct |
22 |
Correct |
1 ms |
2764 KB |
Output is correct |
23 |
Correct |
11 ms |
6948 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2636 KB |
Output is correct |
2 |
Correct |
2 ms |
2636 KB |
Output is correct |
3 |
Correct |
2 ms |
2608 KB |
Output is correct |
4 |
Correct |
2 ms |
2636 KB |
Output is correct |
5 |
Correct |
2 ms |
2636 KB |
Output is correct |
6 |
Correct |
1 ms |
2636 KB |
Output is correct |
7 |
Correct |
2 ms |
2636 KB |
Output is correct |
8 |
Correct |
1 ms |
2636 KB |
Output is correct |
9 |
Correct |
2 ms |
2636 KB |
Output is correct |
10 |
Correct |
2 ms |
2636 KB |
Output is correct |
11 |
Correct |
2 ms |
2636 KB |
Output is correct |
12 |
Correct |
2 ms |
2636 KB |
Output is correct |
13 |
Correct |
2 ms |
2636 KB |
Output is correct |
14 |
Correct |
2 ms |
2636 KB |
Output is correct |
15 |
Correct |
2 ms |
2636 KB |
Output is correct |
16 |
Correct |
1 ms |
2636 KB |
Output is correct |
17 |
Correct |
2 ms |
2636 KB |
Output is correct |
18 |
Correct |
2 ms |
2636 KB |
Output is correct |
19 |
Correct |
2 ms |
2636 KB |
Output is correct |
20 |
Correct |
1 ms |
2636 KB |
Output is correct |
21 |
Correct |
2 ms |
2636 KB |
Output is correct |
22 |
Correct |
1 ms |
2636 KB |
Output is correct |
23 |
Correct |
1 ms |
2636 KB |
Output is correct |
24 |
Correct |
2 ms |
2636 KB |
Output is correct |
25 |
Correct |
2 ms |
2584 KB |
Output is correct |
26 |
Correct |
2 ms |
2636 KB |
Output is correct |
27 |
Correct |
2 ms |
2764 KB |
Output is correct |
28 |
Correct |
3 ms |
2764 KB |
Output is correct |
29 |
Correct |
3 ms |
2636 KB |
Output is correct |
30 |
Correct |
2 ms |
2764 KB |
Output is correct |
31 |
Correct |
2 ms |
2764 KB |
Output is correct |
32 |
Correct |
2 ms |
2636 KB |
Output is correct |
33 |
Correct |
2 ms |
2764 KB |
Output is correct |
34 |
Correct |
2 ms |
2764 KB |
Output is correct |
35 |
Correct |
1 ms |
2636 KB |
Output is correct |
36 |
Correct |
2 ms |
2636 KB |
Output is correct |
37 |
Correct |
2 ms |
2636 KB |
Output is correct |
38 |
Correct |
1 ms |
2636 KB |
Output is correct |
39 |
Correct |
3 ms |
2636 KB |
Output is correct |
40 |
Correct |
2 ms |
2636 KB |
Output is correct |
41 |
Correct |
1 ms |
2636 KB |
Output is correct |
42 |
Correct |
1 ms |
2636 KB |
Output is correct |
43 |
Correct |
1 ms |
2636 KB |
Output is correct |
44 |
Correct |
1 ms |
2636 KB |
Output is correct |
45 |
Correct |
2 ms |
2636 KB |
Output is correct |
46 |
Correct |
3 ms |
2636 KB |
Output is correct |
47 |
Correct |
1 ms |
2636 KB |
Output is correct |
48 |
Correct |
2 ms |
2636 KB |
Output is correct |
49 |
Correct |
2 ms |
2636 KB |
Output is correct |
50 |
Correct |
2 ms |
2636 KB |
Output is correct |
51 |
Correct |
1 ms |
2636 KB |
Output is correct |
52 |
Correct |
2 ms |
2636 KB |
Output is correct |
53 |
Correct |
1 ms |
2636 KB |
Output is correct |
54 |
Correct |
5 ms |
2884 KB |
Output is correct |
55 |
Correct |
3 ms |
2892 KB |
Output is correct |
56 |
Correct |
2 ms |
2764 KB |
Output is correct |
57 |
Correct |
2 ms |
2764 KB |
Output is correct |
58 |
Correct |
2 ms |
2764 KB |
Output is correct |
59 |
Correct |
3 ms |
2764 KB |
Output is correct |
60 |
Correct |
2 ms |
2764 KB |
Output is correct |
61 |
Correct |
2 ms |
2764 KB |
Output is correct |
62 |
Correct |
3 ms |
2764 KB |
Output is correct |
63 |
Correct |
3 ms |
2764 KB |
Output is correct |
64 |
Incorrect |
2 ms |
2764 KB |
Output isn't correct |
65 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
47 ms |
12356 KB |
Output is correct |
2 |
Correct |
60 ms |
12300 KB |
Output is correct |
3 |
Correct |
34 ms |
8952 KB |
Output is correct |
4 |
Correct |
8 ms |
4044 KB |
Output is correct |
5 |
Correct |
6 ms |
3404 KB |
Output is correct |
6 |
Correct |
12 ms |
4672 KB |
Output is correct |
7 |
Correct |
2 ms |
2636 KB |
Output is correct |
8 |
Correct |
23 ms |
5908 KB |
Output is correct |
9 |
Correct |
30 ms |
7296 KB |
Output is correct |
10 |
Correct |
2 ms |
2636 KB |
Output is correct |
11 |
Correct |
47 ms |
8728 KB |
Output is correct |
12 |
Correct |
67 ms |
10488 KB |
Output is correct |
13 |
Correct |
3 ms |
2636 KB |
Output is correct |
14 |
Correct |
1 ms |
2636 KB |
Output is correct |
15 |
Correct |
2 ms |
2636 KB |
Output is correct |
16 |
Correct |
2 ms |
2608 KB |
Output is correct |
17 |
Correct |
2 ms |
2636 KB |
Output is correct |
18 |
Correct |
2 ms |
2636 KB |
Output is correct |
19 |
Correct |
1 ms |
2636 KB |
Output is correct |
20 |
Correct |
2 ms |
2636 KB |
Output is correct |
21 |
Correct |
1 ms |
2636 KB |
Output is correct |
22 |
Correct |
2 ms |
2636 KB |
Output is correct |
23 |
Correct |
2 ms |
2636 KB |
Output is correct |
24 |
Correct |
2 ms |
2636 KB |
Output is correct |
25 |
Correct |
2 ms |
2636 KB |
Output is correct |
26 |
Correct |
2 ms |
2636 KB |
Output is correct |
27 |
Correct |
2 ms |
2636 KB |
Output is correct |
28 |
Correct |
2 ms |
2636 KB |
Output is correct |
29 |
Correct |
1 ms |
2636 KB |
Output is correct |
30 |
Correct |
2 ms |
2636 KB |
Output is correct |
31 |
Correct |
2 ms |
2636 KB |
Output is correct |
32 |
Correct |
2 ms |
2636 KB |
Output is correct |
33 |
Correct |
1 ms |
2636 KB |
Output is correct |
34 |
Correct |
2 ms |
2636 KB |
Output is correct |
35 |
Correct |
1 ms |
2636 KB |
Output is correct |
36 |
Correct |
1 ms |
2636 KB |
Output is correct |
37 |
Correct |
2 ms |
2636 KB |
Output is correct |
38 |
Correct |
2 ms |
2584 KB |
Output is correct |
39 |
Correct |
46 ms |
12340 KB |
Output is correct |
40 |
Correct |
60 ms |
12248 KB |
Output is correct |
41 |
Correct |
29 ms |
8900 KB |
Output is correct |
42 |
Correct |
8 ms |
4084 KB |
Output is correct |
43 |
Correct |
2 ms |
2636 KB |
Output is correct |
44 |
Correct |
2 ms |
2636 KB |
Output is correct |
45 |
Correct |
2 ms |
2636 KB |
Output is correct |
46 |
Correct |
2 ms |
2636 KB |
Output is correct |
47 |
Correct |
2 ms |
2636 KB |
Output is correct |
48 |
Correct |
2 ms |
2636 KB |
Output is correct |
49 |
Correct |
1 ms |
2636 KB |
Output is correct |
50 |
Correct |
1 ms |
2636 KB |
Output is correct |
51 |
Correct |
2 ms |
2636 KB |
Output is correct |
52 |
Correct |
2 ms |
2636 KB |
Output is correct |
53 |
Correct |
2 ms |
2636 KB |
Output is correct |
54 |
Correct |
1 ms |
2636 KB |
Output is correct |
55 |
Correct |
2 ms |
2636 KB |
Output is correct |
56 |
Correct |
1 ms |
2636 KB |
Output is correct |
57 |
Correct |
66 ms |
7876 KB |
Output is correct |
58 |
Correct |
62 ms |
7884 KB |
Output is correct |
59 |
Correct |
66 ms |
7772 KB |
Output is correct |
60 |
Correct |
76 ms |
7840 KB |
Output is correct |
61 |
Correct |
69 ms |
7748 KB |
Output is correct |
62 |
Correct |
60 ms |
7712 KB |
Output is correct |
63 |
Correct |
54 ms |
7456 KB |
Output is correct |
64 |
Correct |
65 ms |
7476 KB |
Output is correct |
65 |
Correct |
61 ms |
7564 KB |
Output is correct |
66 |
Correct |
79 ms |
7488 KB |
Output is correct |
67 |
Correct |
69 ms |
7728 KB |
Output is correct |
68 |
Correct |
69 ms |
7820 KB |
Output is correct |
69 |
Correct |
66 ms |
7788 KB |
Output is correct |
70 |
Correct |
65 ms |
7720 KB |
Output is correct |
71 |
Correct |
2 ms |
2636 KB |
Output is correct |
72 |
Correct |
3 ms |
2764 KB |
Output is correct |
73 |
Correct |
4 ms |
2764 KB |
Output is correct |
74 |
Correct |
3 ms |
2764 KB |
Output is correct |
75 |
Correct |
3 ms |
2764 KB |
Output is correct |
76 |
Correct |
3 ms |
2764 KB |
Output is correct |
77 |
Correct |
3 ms |
2764 KB |
Output is correct |
78 |
Correct |
3 ms |
2764 KB |
Output is correct |
79 |
Correct |
3 ms |
2764 KB |
Output is correct |
80 |
Correct |
66 ms |
7792 KB |
Output is correct |
81 |
Correct |
91 ms |
7748 KB |
Output is correct |
82 |
Correct |
59 ms |
7604 KB |
Output is correct |
83 |
Correct |
80 ms |
7620 KB |
Output is correct |
84 |
Correct |
2 ms |
2764 KB |
Output is correct |
85 |
Correct |
2 ms |
2764 KB |
Output is correct |
86 |
Correct |
2 ms |
2764 KB |
Output is correct |
87 |
Correct |
3 ms |
2764 KB |
Output is correct |
88 |
Correct |
2 ms |
2764 KB |
Output is correct |
89 |
Correct |
2 ms |
2764 KB |
Output is correct |
90 |
Correct |
2 ms |
2764 KB |
Output is correct |
91 |
Correct |
2 ms |
2764 KB |
Output is correct |
92 |
Correct |
3 ms |
2764 KB |
Output is correct |
93 |
Correct |
2 ms |
2764 KB |
Output is correct |
94 |
Correct |
2 ms |
2636 KB |
Output is correct |
95 |
Correct |
2 ms |
2636 KB |
Output is correct |
96 |
Correct |
2 ms |
2636 KB |
Output is correct |
97 |
Correct |
1 ms |
2636 KB |
Output is correct |
98 |
Correct |
2 ms |
2636 KB |
Output is correct |
99 |
Correct |
2 ms |
2636 KB |
Output is correct |
100 |
Correct |
2 ms |
2636 KB |
Output is correct |
101 |
Correct |
1 ms |
2636 KB |
Output is correct |
102 |
Correct |
2 ms |
2636 KB |
Output is correct |
103 |
Correct |
2 ms |
2636 KB |
Output is correct |
104 |
Correct |
6 ms |
3404 KB |
Output is correct |
105 |
Correct |
12 ms |
4684 KB |
Output is correct |
106 |
Correct |
2 ms |
2636 KB |
Output is correct |
107 |
Correct |
23 ms |
5828 KB |
Output is correct |
108 |
Correct |
30 ms |
7296 KB |
Output is correct |
109 |
Correct |
2 ms |
2716 KB |
Output is correct |
110 |
Correct |
52 ms |
8640 KB |
Output is correct |
111 |
Correct |
58 ms |
10480 KB |
Output is correct |
112 |
Correct |
2 ms |
2636 KB |
Output is correct |
113 |
Correct |
86 ms |
13288 KB |
Output is correct |
114 |
Correct |
23 ms |
6720 KB |
Output is correct |
115 |
Correct |
35 ms |
6748 KB |
Output is correct |
116 |
Correct |
33 ms |
6752 KB |
Output is correct |
117 |
Correct |
25 ms |
6716 KB |
Output is correct |
118 |
Correct |
34 ms |
6760 KB |
Output is correct |
119 |
Correct |
23 ms |
7532 KB |
Output is correct |
120 |
Correct |
24 ms |
6864 KB |
Output is correct |
121 |
Correct |
26 ms |
6708 KB |
Output is correct |
122 |
Correct |
23 ms |
6584 KB |
Output is correct |
123 |
Correct |
27 ms |
6936 KB |
Output is correct |
124 |
Correct |
3 ms |
2636 KB |
Output is correct |
125 |
Correct |
10 ms |
6976 KB |
Output is correct |
126 |
Correct |
12 ms |
6976 KB |
Output is correct |
127 |
Correct |
10 ms |
6976 KB |
Output is correct |
128 |
Correct |
10 ms |
7076 KB |
Output is correct |
129 |
Correct |
12 ms |
6988 KB |
Output is correct |
130 |
Correct |
13 ms |
6992 KB |
Output is correct |
131 |
Correct |
12 ms |
6976 KB |
Output is correct |
132 |
Correct |
9 ms |
6976 KB |
Output is correct |
133 |
Correct |
2 ms |
2636 KB |
Output is correct |
134 |
Correct |
2 ms |
2636 KB |
Output is correct |
135 |
Correct |
1 ms |
2764 KB |
Output is correct |
136 |
Correct |
11 ms |
6948 KB |
Output is correct |
137 |
Correct |
2 ms |
2636 KB |
Output is correct |
138 |
Correct |
2 ms |
2764 KB |
Output is correct |
139 |
Correct |
3 ms |
2764 KB |
Output is correct |
140 |
Correct |
3 ms |
2636 KB |
Output is correct |
141 |
Correct |
2 ms |
2764 KB |
Output is correct |
142 |
Correct |
2 ms |
2764 KB |
Output is correct |
143 |
Correct |
2 ms |
2636 KB |
Output is correct |
144 |
Correct |
2 ms |
2764 KB |
Output is correct |
145 |
Correct |
2 ms |
2764 KB |
Output is correct |
146 |
Correct |
1 ms |
2636 KB |
Output is correct |
147 |
Correct |
2 ms |
2636 KB |
Output is correct |
148 |
Correct |
2 ms |
2636 KB |
Output is correct |
149 |
Correct |
1 ms |
2636 KB |
Output is correct |
150 |
Correct |
3 ms |
2636 KB |
Output is correct |
151 |
Correct |
2 ms |
2636 KB |
Output is correct |
152 |
Correct |
1 ms |
2636 KB |
Output is correct |
153 |
Correct |
1 ms |
2636 KB |
Output is correct |
154 |
Correct |
1 ms |
2636 KB |
Output is correct |
155 |
Correct |
1 ms |
2636 KB |
Output is correct |
156 |
Correct |
2 ms |
2636 KB |
Output is correct |
157 |
Correct |
3 ms |
2636 KB |
Output is correct |
158 |
Correct |
1 ms |
2636 KB |
Output is correct |
159 |
Correct |
2 ms |
2636 KB |
Output is correct |
160 |
Correct |
2 ms |
2636 KB |
Output is correct |
161 |
Correct |
2 ms |
2636 KB |
Output is correct |
162 |
Correct |
1 ms |
2636 KB |
Output is correct |
163 |
Correct |
2 ms |
2636 KB |
Output is correct |
164 |
Correct |
1 ms |
2636 KB |
Output is correct |
165 |
Correct |
5 ms |
2884 KB |
Output is correct |
166 |
Correct |
3 ms |
2892 KB |
Output is correct |
167 |
Correct |
2 ms |
2764 KB |
Output is correct |
168 |
Correct |
2 ms |
2764 KB |
Output is correct |
169 |
Correct |
2 ms |
2764 KB |
Output is correct |
170 |
Correct |
3 ms |
2764 KB |
Output is correct |
171 |
Correct |
2 ms |
2764 KB |
Output is correct |
172 |
Correct |
2 ms |
2764 KB |
Output is correct |
173 |
Correct |
3 ms |
2764 KB |
Output is correct |
174 |
Correct |
3 ms |
2764 KB |
Output is correct |
175 |
Incorrect |
2 ms |
2764 KB |
Output isn't correct |
176 |
Halted |
0 ms |
0 KB |
- |