#include <stdio.h>
#include <stdlib.h>
#include <bits/stdc++.h>
using namespace std;
#include "dreaming.h"
long long ww,lv[300005],lv1[300005],mx,vert,fix[300005],x1,x2,x,y,anss;
std::vector <long long> v[300005],vv,ans;
map < pair <long long, long long > , long long > mp;
void dfs(int a, int p)
{
fix[a]=1;
if (ww==1) vv.push_back(a);
if (p!=-1)
lv[a]=lv[p]+mp[{a,p}];
else lv[a]=0;
if (lv[a]>mx)
{
vert=a;
mx=lv[a];
}
for (int i=0; i<v[a].size(); i++)
{
if (v[a][i]!=p)
{
dfs(v[a][i],a);
}
}
}
void dfs1(int a, int p)
{
if (p!=-1)
lv1[a]=lv1[p]+mp[{a,p}];
else lv1[a]=0;
for (int i=0; i<v[a].size(); i++)
{
if (v[a][i]!=p)
{
dfs1(v[a][i],a);
}
}
}
int travelTime(int N, int M, int L, int A[], int B[], int T[])
{
for (int i=0; i<=1e5; i++)
v[i].clear();
ans.clear();
for (int i=0; i<M; i++)
{
mp[{A[i],B[i]}]=T[i];
mp[{B[i],A[i]}]=T[i];
v[A[i]].push_back(B[i]);
v[B[i]].push_back(A[i]);
}
for (int i=0; i<N; i++)
{
mx=0;
if (!fix[i])
{
vv.clear();
ww=1;
dfs(i,-1);
x1=vert;
ww=0;
mx=0;
dfs(x1,-1);
x2=vert;
dfs1(x2,-1);
x=1e9;
for (int j=0; j<vv.size(); j++)
{
anss=max(anss, lv[vv[j]]);
anss=max(anss, lv1[vv[j]]);
y=max(lv[vv[j]], lv1[vv[j]]);
x=min(x, y);
}
ans.push_back(x);
// cout<<x<<endl;
}
}
sort(ans.begin(), ans.end());
reverse(ans.begin(), ans.end());
if (ans.size()>=3)
{
anss=max(anss,ans[1]+ans[2]+2*L);
anss=max(anss, ans[0]+ans[1]+L);
return anss;
// cout<<anss<<endl;
}
if (ans.size()>=2)
{
anss=max(anss, ans[0]+ans[1]+L);
return anss;
// cout<<anss<<endl;
}
return 0;
}
Compilation message
dreaming.cpp: In function 'void dfs(int, int)':
dreaming.cpp:22:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (int i=0; i<v[a].size(); i++)
| ~^~~~~~~~~~~~
dreaming.cpp: In function 'void dfs1(int, int)':
dreaming.cpp:35:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i=0; i<v[a].size(); i++)
| ~^~~~~~~~~~~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:72:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
72 | for (int j=0; j<vv.size(); j++)
| ~^~~~~~~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
343 ms |
34404 KB |
Output is correct |
2 |
Correct |
351 ms |
35560 KB |
Output is correct |
3 |
Correct |
208 ms |
25960 KB |
Output is correct |
4 |
Correct |
29 ms |
11628 KB |
Output is correct |
5 |
Correct |
24 ms |
9984 KB |
Output is correct |
6 |
Correct |
50 ms |
13700 KB |
Output is correct |
7 |
Correct |
6 ms |
7532 KB |
Output is correct |
8 |
Correct |
145 ms |
18152 KB |
Output is correct |
9 |
Correct |
199 ms |
21988 KB |
Output is correct |
10 |
Correct |
6 ms |
7552 KB |
Output is correct |
11 |
Correct |
302 ms |
26988 KB |
Output is correct |
12 |
Correct |
368 ms |
31076 KB |
Output is correct |
13 |
Correct |
7 ms |
7660 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
343 ms |
34404 KB |
Output is correct |
2 |
Correct |
351 ms |
35560 KB |
Output is correct |
3 |
Correct |
208 ms |
25960 KB |
Output is correct |
4 |
Correct |
29 ms |
11628 KB |
Output is correct |
5 |
Correct |
24 ms |
9984 KB |
Output is correct |
6 |
Correct |
50 ms |
13700 KB |
Output is correct |
7 |
Correct |
6 ms |
7532 KB |
Output is correct |
8 |
Correct |
145 ms |
18152 KB |
Output is correct |
9 |
Correct |
199 ms |
21988 KB |
Output is correct |
10 |
Correct |
6 ms |
7552 KB |
Output is correct |
11 |
Correct |
302 ms |
26988 KB |
Output is correct |
12 |
Correct |
368 ms |
31076 KB |
Output is correct |
13 |
Correct |
7 ms |
7660 KB |
Output is correct |
14 |
Correct |
5 ms |
7404 KB |
Output is correct |
15 |
Correct |
5 ms |
7404 KB |
Output is correct |
16 |
Correct |
5 ms |
7404 KB |
Output is correct |
17 |
Correct |
6 ms |
7404 KB |
Output is correct |
18 |
Correct |
6 ms |
7404 KB |
Output is correct |
19 |
Correct |
6 ms |
7404 KB |
Output is correct |
20 |
Correct |
6 ms |
7404 KB |
Output is correct |
21 |
Correct |
6 ms |
7404 KB |
Output is correct |
22 |
Correct |
6 ms |
7404 KB |
Output is correct |
23 |
Correct |
6 ms |
7404 KB |
Output is correct |
24 |
Correct |
5 ms |
7404 KB |
Output is correct |
25 |
Correct |
6 ms |
7404 KB |
Output is correct |
26 |
Correct |
6 ms |
7404 KB |
Output is correct |
27 |
Correct |
6 ms |
7404 KB |
Output is correct |
28 |
Correct |
5 ms |
7404 KB |
Output is correct |
29 |
Correct |
5 ms |
7404 KB |
Output is correct |
30 |
Correct |
5 ms |
7404 KB |
Output is correct |
31 |
Correct |
5 ms |
7404 KB |
Output is correct |
32 |
Correct |
5 ms |
7404 KB |
Output is correct |
33 |
Correct |
5 ms |
7404 KB |
Output is correct |
34 |
Correct |
6 ms |
7404 KB |
Output is correct |
35 |
Correct |
6 ms |
7404 KB |
Output is correct |
36 |
Correct |
5 ms |
7404 KB |
Output is correct |
37 |
Correct |
5 ms |
7404 KB |
Output is correct |
38 |
Correct |
5 ms |
7404 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
343 ms |
34404 KB |
Output is correct |
2 |
Correct |
351 ms |
35560 KB |
Output is correct |
3 |
Correct |
208 ms |
25960 KB |
Output is correct |
4 |
Correct |
29 ms |
11628 KB |
Output is correct |
5 |
Correct |
24 ms |
9984 KB |
Output is correct |
6 |
Correct |
50 ms |
13700 KB |
Output is correct |
7 |
Correct |
6 ms |
7532 KB |
Output is correct |
8 |
Correct |
145 ms |
18152 KB |
Output is correct |
9 |
Correct |
199 ms |
21988 KB |
Output is correct |
10 |
Correct |
6 ms |
7552 KB |
Output is correct |
11 |
Correct |
302 ms |
26988 KB |
Output is correct |
12 |
Correct |
368 ms |
31076 KB |
Output is correct |
13 |
Correct |
7 ms |
7660 KB |
Output is correct |
14 |
Correct |
5 ms |
7404 KB |
Output is correct |
15 |
Correct |
5 ms |
7404 KB |
Output is correct |
16 |
Correct |
5 ms |
7404 KB |
Output is correct |
17 |
Correct |
6 ms |
7404 KB |
Output is correct |
18 |
Correct |
6 ms |
7404 KB |
Output is correct |
19 |
Correct |
6 ms |
7404 KB |
Output is correct |
20 |
Correct |
6 ms |
7404 KB |
Output is correct |
21 |
Correct |
6 ms |
7404 KB |
Output is correct |
22 |
Correct |
6 ms |
7404 KB |
Output is correct |
23 |
Correct |
6 ms |
7404 KB |
Output is correct |
24 |
Correct |
5 ms |
7404 KB |
Output is correct |
25 |
Correct |
6 ms |
7404 KB |
Output is correct |
26 |
Correct |
6 ms |
7404 KB |
Output is correct |
27 |
Correct |
6 ms |
7404 KB |
Output is correct |
28 |
Correct |
5 ms |
7404 KB |
Output is correct |
29 |
Correct |
5 ms |
7404 KB |
Output is correct |
30 |
Correct |
5 ms |
7404 KB |
Output is correct |
31 |
Correct |
5 ms |
7404 KB |
Output is correct |
32 |
Correct |
5 ms |
7404 KB |
Output is correct |
33 |
Correct |
5 ms |
7404 KB |
Output is correct |
34 |
Correct |
6 ms |
7404 KB |
Output is correct |
35 |
Correct |
6 ms |
7404 KB |
Output is correct |
36 |
Correct |
5 ms |
7404 KB |
Output is correct |
37 |
Correct |
5 ms |
7404 KB |
Output is correct |
38 |
Correct |
5 ms |
7404 KB |
Output is correct |
39 |
Correct |
345 ms |
35684 KB |
Output is correct |
40 |
Correct |
349 ms |
35488 KB |
Output is correct |
41 |
Correct |
199 ms |
26088 KB |
Output is correct |
42 |
Correct |
29 ms |
11628 KB |
Output is correct |
43 |
Correct |
5 ms |
7404 KB |
Output is correct |
44 |
Correct |
5 ms |
7552 KB |
Output is correct |
45 |
Correct |
5 ms |
7404 KB |
Output is correct |
46 |
Correct |
5 ms |
7404 KB |
Output is correct |
47 |
Correct |
5 ms |
7404 KB |
Output is correct |
48 |
Correct |
6 ms |
7404 KB |
Output is correct |
49 |
Correct |
5 ms |
7404 KB |
Output is correct |
50 |
Correct |
6 ms |
7404 KB |
Output is correct |
51 |
Correct |
5 ms |
7404 KB |
Output is correct |
52 |
Correct |
6 ms |
7404 KB |
Output is correct |
53 |
Correct |
5 ms |
7404 KB |
Output is correct |
54 |
Correct |
5 ms |
7404 KB |
Output is correct |
55 |
Correct |
8 ms |
7404 KB |
Output is correct |
56 |
Correct |
5 ms |
7404 KB |
Output is correct |
57 |
Correct |
464 ms |
29920 KB |
Output is correct |
58 |
Correct |
478 ms |
29488 KB |
Output is correct |
59 |
Correct |
488 ms |
29672 KB |
Output is correct |
60 |
Correct |
480 ms |
29416 KB |
Output is correct |
61 |
Correct |
482 ms |
29672 KB |
Output is correct |
62 |
Correct |
480 ms |
29504 KB |
Output is correct |
63 |
Correct |
487 ms |
29416 KB |
Output is correct |
64 |
Correct |
636 ms |
29672 KB |
Output is correct |
65 |
Correct |
481 ms |
29700 KB |
Output is correct |
66 |
Correct |
482 ms |
29668 KB |
Output is correct |
67 |
Correct |
478 ms |
29668 KB |
Output is correct |
68 |
Correct |
475 ms |
29824 KB |
Output is correct |
69 |
Correct |
471 ms |
29800 KB |
Output is correct |
70 |
Correct |
462 ms |
29756 KB |
Output is correct |
71 |
Correct |
5 ms |
7404 KB |
Output is correct |
72 |
Correct |
10 ms |
8044 KB |
Output is correct |
73 |
Correct |
10 ms |
8044 KB |
Output is correct |
74 |
Correct |
11 ms |
8044 KB |
Output is correct |
75 |
Correct |
10 ms |
8044 KB |
Output is correct |
76 |
Correct |
10 ms |
8044 KB |
Output is correct |
77 |
Correct |
10 ms |
8044 KB |
Output is correct |
78 |
Correct |
10 ms |
8044 KB |
Output is correct |
79 |
Correct |
10 ms |
8188 KB |
Output is correct |
80 |
Correct |
483 ms |
29932 KB |
Output is correct |
81 |
Correct |
480 ms |
29540 KB |
Output is correct |
82 |
Correct |
489 ms |
29672 KB |
Output is correct |
83 |
Correct |
477 ms |
29672 KB |
Output is correct |
84 |
Correct |
9 ms |
7916 KB |
Output is correct |
85 |
Correct |
8 ms |
7916 KB |
Output is correct |
86 |
Correct |
9 ms |
7916 KB |
Output is correct |
87 |
Correct |
9 ms |
7916 KB |
Output is correct |
88 |
Correct |
10 ms |
7916 KB |
Output is correct |
89 |
Correct |
9 ms |
7916 KB |
Output is correct |
90 |
Correct |
9 ms |
7916 KB |
Output is correct |
91 |
Correct |
10 ms |
8044 KB |
Output is correct |
92 |
Correct |
10 ms |
8044 KB |
Output is correct |
93 |
Correct |
10 ms |
7916 KB |
Output is correct |
94 |
Correct |
6 ms |
7404 KB |
Output is correct |
95 |
Correct |
5 ms |
7404 KB |
Output is correct |
96 |
Correct |
5 ms |
7404 KB |
Output is correct |
97 |
Correct |
5 ms |
7404 KB |
Output is correct |
98 |
Correct |
5 ms |
7404 KB |
Output is correct |
99 |
Correct |
5 ms |
7404 KB |
Output is correct |
100 |
Correct |
5 ms |
7404 KB |
Output is correct |
101 |
Correct |
6 ms |
7404 KB |
Output is correct |
102 |
Correct |
7 ms |
7404 KB |
Output is correct |
103 |
Correct |
5 ms |
7404 KB |
Output is correct |
104 |
Correct |
24 ms |
9964 KB |
Output is correct |
105 |
Correct |
49 ms |
13680 KB |
Output is correct |
106 |
Correct |
6 ms |
7532 KB |
Output is correct |
107 |
Correct |
132 ms |
18152 KB |
Output is correct |
108 |
Correct |
179 ms |
21860 KB |
Output is correct |
109 |
Correct |
6 ms |
7532 KB |
Output is correct |
110 |
Correct |
292 ms |
26860 KB |
Output is correct |
111 |
Correct |
357 ms |
30948 KB |
Output is correct |
112 |
Correct |
7 ms |
7660 KB |
Output is correct |
113 |
Correct |
665 ms |
38496 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
94 ms |
16488 KB |
Output is correct |
2 |
Correct |
94 ms |
16496 KB |
Output is correct |
3 |
Correct |
92 ms |
16488 KB |
Output is correct |
4 |
Correct |
90 ms |
16488 KB |
Output is correct |
5 |
Correct |
87 ms |
16488 KB |
Output is correct |
6 |
Correct |
96 ms |
17508 KB |
Output is correct |
7 |
Correct |
94 ms |
16872 KB |
Output is correct |
8 |
Correct |
88 ms |
16368 KB |
Output is correct |
9 |
Correct |
93 ms |
16232 KB |
Output is correct |
10 |
Correct |
103 ms |
16876 KB |
Output is correct |
11 |
Correct |
5 ms |
7404 KB |
Output is correct |
12 |
Correct |
16 ms |
10852 KB |
Output is correct |
13 |
Correct |
17 ms |
10988 KB |
Output is correct |
14 |
Correct |
16 ms |
10724 KB |
Output is correct |
15 |
Correct |
16 ms |
10984 KB |
Output is correct |
16 |
Correct |
16 ms |
10596 KB |
Output is correct |
17 |
Correct |
15 ms |
10080 KB |
Output is correct |
18 |
Correct |
17 ms |
10980 KB |
Output is correct |
19 |
Correct |
17 ms |
10724 KB |
Output is correct |
20 |
Correct |
5 ms |
7404 KB |
Output is correct |
21 |
Correct |
5 ms |
7404 KB |
Output is correct |
22 |
Correct |
5 ms |
7532 KB |
Output is correct |
23 |
Correct |
16 ms |
10724 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
343 ms |
34404 KB |
Output is correct |
2 |
Correct |
351 ms |
35560 KB |
Output is correct |
3 |
Correct |
208 ms |
25960 KB |
Output is correct |
4 |
Correct |
29 ms |
11628 KB |
Output is correct |
5 |
Correct |
24 ms |
9984 KB |
Output is correct |
6 |
Correct |
50 ms |
13700 KB |
Output is correct |
7 |
Correct |
6 ms |
7532 KB |
Output is correct |
8 |
Correct |
145 ms |
18152 KB |
Output is correct |
9 |
Correct |
199 ms |
21988 KB |
Output is correct |
10 |
Correct |
6 ms |
7552 KB |
Output is correct |
11 |
Correct |
302 ms |
26988 KB |
Output is correct |
12 |
Correct |
368 ms |
31076 KB |
Output is correct |
13 |
Correct |
7 ms |
7660 KB |
Output is correct |
14 |
Correct |
7 ms |
7532 KB |
Output is correct |
15 |
Correct |
8 ms |
7788 KB |
Output is correct |
16 |
Correct |
9 ms |
7916 KB |
Output is correct |
17 |
Correct |
6 ms |
7532 KB |
Output is correct |
18 |
Correct |
8 ms |
7788 KB |
Output is correct |
19 |
Correct |
11 ms |
7916 KB |
Output is correct |
20 |
Correct |
6 ms |
7532 KB |
Output is correct |
21 |
Correct |
8 ms |
7788 KB |
Output is correct |
22 |
Correct |
9 ms |
7916 KB |
Output is correct |
23 |
Correct |
5 ms |
7404 KB |
Output is correct |
24 |
Correct |
6 ms |
7404 KB |
Output is correct |
25 |
Correct |
5 ms |
7404 KB |
Output is correct |
26 |
Correct |
6 ms |
7404 KB |
Output is correct |
27 |
Correct |
5 ms |
7404 KB |
Output is correct |
28 |
Correct |
5 ms |
7404 KB |
Output is correct |
29 |
Correct |
5 ms |
7404 KB |
Output is correct |
30 |
Correct |
6 ms |
7404 KB |
Output is correct |
31 |
Correct |
5 ms |
7404 KB |
Output is correct |
32 |
Correct |
5 ms |
7404 KB |
Output is correct |
33 |
Correct |
5 ms |
7424 KB |
Output is correct |
34 |
Correct |
5 ms |
7404 KB |
Output is correct |
35 |
Correct |
5 ms |
7404 KB |
Output is correct |
36 |
Correct |
6 ms |
7404 KB |
Output is correct |
37 |
Correct |
6 ms |
7404 KB |
Output is correct |
38 |
Correct |
5 ms |
7404 KB |
Output is correct |
39 |
Correct |
5 ms |
7404 KB |
Output is correct |
40 |
Correct |
5 ms |
7532 KB |
Output is correct |
41 |
Correct |
5 ms |
7404 KB |
Output is correct |
42 |
Incorrect |
10 ms |
8300 KB |
Output isn't correct |
43 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
343 ms |
34404 KB |
Output is correct |
2 |
Correct |
351 ms |
35560 KB |
Output is correct |
3 |
Correct |
208 ms |
25960 KB |
Output is correct |
4 |
Correct |
29 ms |
11628 KB |
Output is correct |
5 |
Correct |
24 ms |
9984 KB |
Output is correct |
6 |
Correct |
50 ms |
13700 KB |
Output is correct |
7 |
Correct |
6 ms |
7532 KB |
Output is correct |
8 |
Correct |
145 ms |
18152 KB |
Output is correct |
9 |
Correct |
199 ms |
21988 KB |
Output is correct |
10 |
Correct |
6 ms |
7552 KB |
Output is correct |
11 |
Correct |
302 ms |
26988 KB |
Output is correct |
12 |
Correct |
368 ms |
31076 KB |
Output is correct |
13 |
Correct |
7 ms |
7660 KB |
Output is correct |
14 |
Correct |
5 ms |
7404 KB |
Output is correct |
15 |
Correct |
5 ms |
7404 KB |
Output is correct |
16 |
Correct |
5 ms |
7404 KB |
Output is correct |
17 |
Correct |
6 ms |
7404 KB |
Output is correct |
18 |
Correct |
6 ms |
7404 KB |
Output is correct |
19 |
Correct |
6 ms |
7404 KB |
Output is correct |
20 |
Correct |
6 ms |
7404 KB |
Output is correct |
21 |
Correct |
6 ms |
7404 KB |
Output is correct |
22 |
Correct |
6 ms |
7404 KB |
Output is correct |
23 |
Correct |
6 ms |
7404 KB |
Output is correct |
24 |
Correct |
5 ms |
7404 KB |
Output is correct |
25 |
Correct |
6 ms |
7404 KB |
Output is correct |
26 |
Correct |
6 ms |
7404 KB |
Output is correct |
27 |
Correct |
6 ms |
7404 KB |
Output is correct |
28 |
Correct |
5 ms |
7404 KB |
Output is correct |
29 |
Correct |
5 ms |
7404 KB |
Output is correct |
30 |
Correct |
5 ms |
7404 KB |
Output is correct |
31 |
Correct |
5 ms |
7404 KB |
Output is correct |
32 |
Correct |
5 ms |
7404 KB |
Output is correct |
33 |
Correct |
5 ms |
7404 KB |
Output is correct |
34 |
Correct |
6 ms |
7404 KB |
Output is correct |
35 |
Correct |
6 ms |
7404 KB |
Output is correct |
36 |
Correct |
5 ms |
7404 KB |
Output is correct |
37 |
Correct |
5 ms |
7404 KB |
Output is correct |
38 |
Correct |
5 ms |
7404 KB |
Output is correct |
39 |
Correct |
345 ms |
35684 KB |
Output is correct |
40 |
Correct |
349 ms |
35488 KB |
Output is correct |
41 |
Correct |
199 ms |
26088 KB |
Output is correct |
42 |
Correct |
29 ms |
11628 KB |
Output is correct |
43 |
Correct |
5 ms |
7404 KB |
Output is correct |
44 |
Correct |
5 ms |
7552 KB |
Output is correct |
45 |
Correct |
5 ms |
7404 KB |
Output is correct |
46 |
Correct |
5 ms |
7404 KB |
Output is correct |
47 |
Correct |
5 ms |
7404 KB |
Output is correct |
48 |
Correct |
6 ms |
7404 KB |
Output is correct |
49 |
Correct |
5 ms |
7404 KB |
Output is correct |
50 |
Correct |
6 ms |
7404 KB |
Output is correct |
51 |
Correct |
5 ms |
7404 KB |
Output is correct |
52 |
Correct |
6 ms |
7404 KB |
Output is correct |
53 |
Correct |
5 ms |
7404 KB |
Output is correct |
54 |
Correct |
5 ms |
7404 KB |
Output is correct |
55 |
Correct |
8 ms |
7404 KB |
Output is correct |
56 |
Correct |
5 ms |
7404 KB |
Output is correct |
57 |
Correct |
464 ms |
29920 KB |
Output is correct |
58 |
Correct |
478 ms |
29488 KB |
Output is correct |
59 |
Correct |
488 ms |
29672 KB |
Output is correct |
60 |
Correct |
480 ms |
29416 KB |
Output is correct |
61 |
Correct |
482 ms |
29672 KB |
Output is correct |
62 |
Correct |
480 ms |
29504 KB |
Output is correct |
63 |
Correct |
487 ms |
29416 KB |
Output is correct |
64 |
Correct |
636 ms |
29672 KB |
Output is correct |
65 |
Correct |
481 ms |
29700 KB |
Output is correct |
66 |
Correct |
482 ms |
29668 KB |
Output is correct |
67 |
Correct |
478 ms |
29668 KB |
Output is correct |
68 |
Correct |
475 ms |
29824 KB |
Output is correct |
69 |
Correct |
471 ms |
29800 KB |
Output is correct |
70 |
Correct |
462 ms |
29756 KB |
Output is correct |
71 |
Correct |
5 ms |
7404 KB |
Output is correct |
72 |
Correct |
10 ms |
8044 KB |
Output is correct |
73 |
Correct |
10 ms |
8044 KB |
Output is correct |
74 |
Correct |
11 ms |
8044 KB |
Output is correct |
75 |
Correct |
10 ms |
8044 KB |
Output is correct |
76 |
Correct |
10 ms |
8044 KB |
Output is correct |
77 |
Correct |
10 ms |
8044 KB |
Output is correct |
78 |
Correct |
10 ms |
8044 KB |
Output is correct |
79 |
Correct |
10 ms |
8188 KB |
Output is correct |
80 |
Correct |
483 ms |
29932 KB |
Output is correct |
81 |
Correct |
480 ms |
29540 KB |
Output is correct |
82 |
Correct |
489 ms |
29672 KB |
Output is correct |
83 |
Correct |
477 ms |
29672 KB |
Output is correct |
84 |
Correct |
9 ms |
7916 KB |
Output is correct |
85 |
Correct |
8 ms |
7916 KB |
Output is correct |
86 |
Correct |
9 ms |
7916 KB |
Output is correct |
87 |
Correct |
9 ms |
7916 KB |
Output is correct |
88 |
Correct |
10 ms |
7916 KB |
Output is correct |
89 |
Correct |
9 ms |
7916 KB |
Output is correct |
90 |
Correct |
9 ms |
7916 KB |
Output is correct |
91 |
Correct |
10 ms |
8044 KB |
Output is correct |
92 |
Correct |
10 ms |
8044 KB |
Output is correct |
93 |
Correct |
10 ms |
7916 KB |
Output is correct |
94 |
Correct |
6 ms |
7404 KB |
Output is correct |
95 |
Correct |
5 ms |
7404 KB |
Output is correct |
96 |
Correct |
5 ms |
7404 KB |
Output is correct |
97 |
Correct |
5 ms |
7404 KB |
Output is correct |
98 |
Correct |
5 ms |
7404 KB |
Output is correct |
99 |
Correct |
5 ms |
7404 KB |
Output is correct |
100 |
Correct |
5 ms |
7404 KB |
Output is correct |
101 |
Correct |
6 ms |
7404 KB |
Output is correct |
102 |
Correct |
7 ms |
7404 KB |
Output is correct |
103 |
Correct |
5 ms |
7404 KB |
Output is correct |
104 |
Correct |
24 ms |
9964 KB |
Output is correct |
105 |
Correct |
49 ms |
13680 KB |
Output is correct |
106 |
Correct |
6 ms |
7532 KB |
Output is correct |
107 |
Correct |
132 ms |
18152 KB |
Output is correct |
108 |
Correct |
179 ms |
21860 KB |
Output is correct |
109 |
Correct |
6 ms |
7532 KB |
Output is correct |
110 |
Correct |
292 ms |
26860 KB |
Output is correct |
111 |
Correct |
357 ms |
30948 KB |
Output is correct |
112 |
Correct |
7 ms |
7660 KB |
Output is correct |
113 |
Correct |
665 ms |
38496 KB |
Output is correct |
114 |
Correct |
94 ms |
16488 KB |
Output is correct |
115 |
Correct |
94 ms |
16496 KB |
Output is correct |
116 |
Correct |
92 ms |
16488 KB |
Output is correct |
117 |
Correct |
90 ms |
16488 KB |
Output is correct |
118 |
Correct |
87 ms |
16488 KB |
Output is correct |
119 |
Correct |
96 ms |
17508 KB |
Output is correct |
120 |
Correct |
94 ms |
16872 KB |
Output is correct |
121 |
Correct |
88 ms |
16368 KB |
Output is correct |
122 |
Correct |
93 ms |
16232 KB |
Output is correct |
123 |
Correct |
103 ms |
16876 KB |
Output is correct |
124 |
Correct |
5 ms |
7404 KB |
Output is correct |
125 |
Correct |
16 ms |
10852 KB |
Output is correct |
126 |
Correct |
17 ms |
10988 KB |
Output is correct |
127 |
Correct |
16 ms |
10724 KB |
Output is correct |
128 |
Correct |
16 ms |
10984 KB |
Output is correct |
129 |
Correct |
16 ms |
10596 KB |
Output is correct |
130 |
Correct |
15 ms |
10080 KB |
Output is correct |
131 |
Correct |
17 ms |
10980 KB |
Output is correct |
132 |
Correct |
17 ms |
10724 KB |
Output is correct |
133 |
Correct |
5 ms |
7404 KB |
Output is correct |
134 |
Correct |
5 ms |
7404 KB |
Output is correct |
135 |
Correct |
5 ms |
7532 KB |
Output is correct |
136 |
Correct |
16 ms |
10724 KB |
Output is correct |
137 |
Correct |
7 ms |
7532 KB |
Output is correct |
138 |
Correct |
8 ms |
7788 KB |
Output is correct |
139 |
Correct |
9 ms |
7916 KB |
Output is correct |
140 |
Correct |
6 ms |
7532 KB |
Output is correct |
141 |
Correct |
8 ms |
7788 KB |
Output is correct |
142 |
Correct |
11 ms |
7916 KB |
Output is correct |
143 |
Correct |
6 ms |
7532 KB |
Output is correct |
144 |
Correct |
8 ms |
7788 KB |
Output is correct |
145 |
Correct |
9 ms |
7916 KB |
Output is correct |
146 |
Correct |
5 ms |
7404 KB |
Output is correct |
147 |
Correct |
6 ms |
7404 KB |
Output is correct |
148 |
Correct |
5 ms |
7404 KB |
Output is correct |
149 |
Correct |
6 ms |
7404 KB |
Output is correct |
150 |
Correct |
5 ms |
7404 KB |
Output is correct |
151 |
Correct |
5 ms |
7404 KB |
Output is correct |
152 |
Correct |
5 ms |
7404 KB |
Output is correct |
153 |
Correct |
6 ms |
7404 KB |
Output is correct |
154 |
Correct |
5 ms |
7404 KB |
Output is correct |
155 |
Correct |
5 ms |
7404 KB |
Output is correct |
156 |
Correct |
5 ms |
7424 KB |
Output is correct |
157 |
Correct |
5 ms |
7404 KB |
Output is correct |
158 |
Correct |
5 ms |
7404 KB |
Output is correct |
159 |
Correct |
6 ms |
7404 KB |
Output is correct |
160 |
Correct |
6 ms |
7404 KB |
Output is correct |
161 |
Correct |
5 ms |
7404 KB |
Output is correct |
162 |
Correct |
5 ms |
7404 KB |
Output is correct |
163 |
Correct |
5 ms |
7532 KB |
Output is correct |
164 |
Correct |
5 ms |
7404 KB |
Output is correct |
165 |
Incorrect |
10 ms |
8300 KB |
Output isn't correct |
166 |
Halted |
0 ms |
0 KB |
- |