#include <bits/stdc++.h>
#include "dreaming.h"
using namespace std;
#define fi first
#define se second
#define INF (int)(1e9)
#define ll long long
vector<vector<pair<ll,ll> > > vec;
bool vis[100005];
ll maxi=0,a,idx=0;
vector<pair<ll,ll> > tree_d;
pair<ll,ll> p[100005],center[100005];
vector<ll> nodes;
void dfs(ll node,ll d){
nodes.push_back(node);
if(d>maxi)
a=node,maxi=d;
vis[node]=1;
for(auto child:vec[node])
if(child.fi!=p[node].fi){
p[child.fi]={node,child.se};
dfs(child.fi,d+child.se);
}
}
pair<ll,ll> findCenter(ll node){
maxi=0;
dfs(node,0);
for(auto i:nodes)
p[i]={-1,-1};
nodes.clear();
ll B=a,sum=0,mini=INF,c=node,sh=INF;
maxi=0;
if(B!=-1)
dfs(B,0);
nodes.clear();
for(;a!=-1;sum+=p[a].se,a=p[a].fi){
if(abs(maxi/2-sum)<mini)
mini=abs(maxi/2-sum),c=a,sh=sum;
if(maxi%2&&abs((maxi/2)+1-sum)<mini)
mini=abs((maxi/2)+1-sum),c=a,sh=sum;
}
tree_d.push_back({maxi,idx});
return {c,max(maxi-sh,0LL)};
}
int travelTime(int N, int M, int L, int A[], int B[], int T[]) {
vec.resize(N);
memset(p,-1,sizeof p);
for (ll i = 0; i < M; ++i)
{
vec[A[i]].push_back({B[i],T[i]});
vec[B[i]].push_back({A[i],T[i]});
}
for (ll i = 0; i < N; ++i)
if(!vis[i])
center[idx++]=findCenter(i);
sort(tree_d.begin(),tree_d.end(),greater<pair<ll,ll> >());
for (ll i = 1; i < idx; ++i)
{
vec[center[tree_d[i].se].fi].push_back({center[tree_d[0].se].fi,L});
vec[center[tree_d[0].se].fi].push_back({center[tree_d[i].se].fi,L});
}
maxi=0;
memset(p,-1,sizeof p);
dfs(0,0);
nodes.clear();
ll b=a;
if(b==-1)return maxi;
memset(p,-1,sizeof p);
maxi=0;
dfs(b,0);
return maxi;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
73 ms |
14572 KB |
Output is correct |
2 |
Correct |
105 ms |
14572 KB |
Output is correct |
3 |
Correct |
64 ms |
10224 KB |
Output is correct |
4 |
Correct |
12 ms |
3840 KB |
Output is correct |
5 |
Correct |
10 ms |
3328 KB |
Output is correct |
6 |
Correct |
19 ms |
4988 KB |
Output is correct |
7 |
Correct |
3 ms |
1920 KB |
Output is correct |
8 |
Correct |
41 ms |
7284 KB |
Output is correct |
9 |
Correct |
51 ms |
8816 KB |
Output is correct |
10 |
Correct |
4 ms |
2048 KB |
Output is correct |
11 |
Correct |
77 ms |
11512 KB |
Output is correct |
12 |
Correct |
90 ms |
12908 KB |
Output is correct |
13 |
Correct |
4 ms |
2048 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
73 ms |
14572 KB |
Output is correct |
2 |
Correct |
105 ms |
14572 KB |
Output is correct |
3 |
Correct |
64 ms |
10224 KB |
Output is correct |
4 |
Correct |
12 ms |
3840 KB |
Output is correct |
5 |
Correct |
10 ms |
3328 KB |
Output is correct |
6 |
Correct |
19 ms |
4988 KB |
Output is correct |
7 |
Correct |
3 ms |
1920 KB |
Output is correct |
8 |
Correct |
41 ms |
7284 KB |
Output is correct |
9 |
Correct |
51 ms |
8816 KB |
Output is correct |
10 |
Correct |
4 ms |
2048 KB |
Output is correct |
11 |
Correct |
77 ms |
11512 KB |
Output is correct |
12 |
Correct |
90 ms |
12908 KB |
Output is correct |
13 |
Correct |
4 ms |
2048 KB |
Output is correct |
14 |
Correct |
3 ms |
1920 KB |
Output is correct |
15 |
Correct |
3 ms |
1920 KB |
Output is correct |
16 |
Correct |
3 ms |
1920 KB |
Output is correct |
17 |
Correct |
4 ms |
1920 KB |
Output is correct |
18 |
Correct |
3 ms |
1920 KB |
Output is correct |
19 |
Correct |
3 ms |
1920 KB |
Output is correct |
20 |
Correct |
3 ms |
1920 KB |
Output is correct |
21 |
Correct |
4 ms |
1920 KB |
Output is correct |
22 |
Correct |
4 ms |
1920 KB |
Output is correct |
23 |
Correct |
3 ms |
1920 KB |
Output is correct |
24 |
Correct |
3 ms |
1920 KB |
Output is correct |
25 |
Correct |
3 ms |
1920 KB |
Output is correct |
26 |
Correct |
3 ms |
1920 KB |
Output is correct |
27 |
Correct |
3 ms |
1920 KB |
Output is correct |
28 |
Correct |
4 ms |
1920 KB |
Output is correct |
29 |
Correct |
3 ms |
1920 KB |
Output is correct |
30 |
Correct |
3 ms |
1920 KB |
Output is correct |
31 |
Correct |
3 ms |
1920 KB |
Output is correct |
32 |
Correct |
3 ms |
1920 KB |
Output is correct |
33 |
Correct |
3 ms |
1920 KB |
Output is correct |
34 |
Correct |
3 ms |
1920 KB |
Output is correct |
35 |
Correct |
3 ms |
1920 KB |
Output is correct |
36 |
Correct |
4 ms |
1920 KB |
Output is correct |
37 |
Correct |
3 ms |
1920 KB |
Output is correct |
38 |
Correct |
3 ms |
1920 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
73 ms |
14572 KB |
Output is correct |
2 |
Correct |
105 ms |
14572 KB |
Output is correct |
3 |
Correct |
64 ms |
10224 KB |
Output is correct |
4 |
Correct |
12 ms |
3840 KB |
Output is correct |
5 |
Correct |
10 ms |
3328 KB |
Output is correct |
6 |
Correct |
19 ms |
4988 KB |
Output is correct |
7 |
Correct |
3 ms |
1920 KB |
Output is correct |
8 |
Correct |
41 ms |
7284 KB |
Output is correct |
9 |
Correct |
51 ms |
8816 KB |
Output is correct |
10 |
Correct |
4 ms |
2048 KB |
Output is correct |
11 |
Correct |
77 ms |
11512 KB |
Output is correct |
12 |
Correct |
90 ms |
12908 KB |
Output is correct |
13 |
Correct |
4 ms |
2048 KB |
Output is correct |
14 |
Correct |
3 ms |
1920 KB |
Output is correct |
15 |
Correct |
3 ms |
1920 KB |
Output is correct |
16 |
Correct |
3 ms |
1920 KB |
Output is correct |
17 |
Correct |
4 ms |
1920 KB |
Output is correct |
18 |
Correct |
3 ms |
1920 KB |
Output is correct |
19 |
Correct |
3 ms |
1920 KB |
Output is correct |
20 |
Correct |
3 ms |
1920 KB |
Output is correct |
21 |
Correct |
4 ms |
1920 KB |
Output is correct |
22 |
Correct |
4 ms |
1920 KB |
Output is correct |
23 |
Correct |
3 ms |
1920 KB |
Output is correct |
24 |
Correct |
3 ms |
1920 KB |
Output is correct |
25 |
Correct |
3 ms |
1920 KB |
Output is correct |
26 |
Correct |
3 ms |
1920 KB |
Output is correct |
27 |
Correct |
3 ms |
1920 KB |
Output is correct |
28 |
Correct |
4 ms |
1920 KB |
Output is correct |
29 |
Correct |
3 ms |
1920 KB |
Output is correct |
30 |
Correct |
3 ms |
1920 KB |
Output is correct |
31 |
Correct |
3 ms |
1920 KB |
Output is correct |
32 |
Correct |
3 ms |
1920 KB |
Output is correct |
33 |
Correct |
3 ms |
1920 KB |
Output is correct |
34 |
Correct |
3 ms |
1920 KB |
Output is correct |
35 |
Correct |
3 ms |
1920 KB |
Output is correct |
36 |
Correct |
4 ms |
1920 KB |
Output is correct |
37 |
Correct |
3 ms |
1920 KB |
Output is correct |
38 |
Correct |
3 ms |
1920 KB |
Output is correct |
39 |
Correct |
115 ms |
14572 KB |
Output is correct |
40 |
Correct |
69 ms |
14580 KB |
Output is correct |
41 |
Correct |
53 ms |
10224 KB |
Output is correct |
42 |
Correct |
12 ms |
3840 KB |
Output is correct |
43 |
Correct |
3 ms |
1920 KB |
Output is correct |
44 |
Correct |
3 ms |
1920 KB |
Output is correct |
45 |
Correct |
4 ms |
1920 KB |
Output is correct |
46 |
Correct |
3 ms |
1920 KB |
Output is correct |
47 |
Correct |
3 ms |
1920 KB |
Output is correct |
48 |
Correct |
4 ms |
1920 KB |
Output is correct |
49 |
Correct |
3 ms |
1920 KB |
Output is correct |
50 |
Correct |
4 ms |
1920 KB |
Output is correct |
51 |
Correct |
3 ms |
1920 KB |
Output is correct |
52 |
Correct |
3 ms |
1920 KB |
Output is correct |
53 |
Correct |
3 ms |
1920 KB |
Output is correct |
54 |
Correct |
3 ms |
1920 KB |
Output is correct |
55 |
Correct |
3 ms |
1920 KB |
Output is correct |
56 |
Correct |
3 ms |
1920 KB |
Output is correct |
57 |
Correct |
113 ms |
12660 KB |
Output is correct |
58 |
Correct |
118 ms |
12580 KB |
Output is correct |
59 |
Correct |
131 ms |
12280 KB |
Output is correct |
60 |
Correct |
130 ms |
12220 KB |
Output is correct |
61 |
Correct |
83 ms |
12144 KB |
Output is correct |
62 |
Correct |
84 ms |
12144 KB |
Output is correct |
63 |
Correct |
99 ms |
11760 KB |
Output is correct |
64 |
Correct |
76 ms |
11888 KB |
Output is correct |
65 |
Correct |
108 ms |
11888 KB |
Output is correct |
66 |
Correct |
113 ms |
11896 KB |
Output is correct |
67 |
Correct |
119 ms |
12276 KB |
Output is correct |
68 |
Correct |
135 ms |
12272 KB |
Output is correct |
69 |
Correct |
97 ms |
12408 KB |
Output is correct |
70 |
Correct |
111 ms |
12256 KB |
Output is correct |
71 |
Correct |
3 ms |
1920 KB |
Output is correct |
72 |
Correct |
4 ms |
2176 KB |
Output is correct |
73 |
Correct |
5 ms |
2168 KB |
Output is correct |
74 |
Correct |
5 ms |
2304 KB |
Output is correct |
75 |
Correct |
5 ms |
2176 KB |
Output is correct |
76 |
Correct |
5 ms |
2304 KB |
Output is correct |
77 |
Correct |
5 ms |
2304 KB |
Output is correct |
78 |
Correct |
5 ms |
2304 KB |
Output is correct |
79 |
Correct |
6 ms |
2304 KB |
Output is correct |
80 |
Correct |
132 ms |
12276 KB |
Output is correct |
81 |
Correct |
113 ms |
12296 KB |
Output is correct |
82 |
Correct |
98 ms |
12116 KB |
Output is correct |
83 |
Correct |
89 ms |
12144 KB |
Output is correct |
84 |
Correct |
5 ms |
2176 KB |
Output is correct |
85 |
Correct |
4 ms |
2176 KB |
Output is correct |
86 |
Correct |
4 ms |
2176 KB |
Output is correct |
87 |
Correct |
5 ms |
2176 KB |
Output is correct |
88 |
Correct |
5 ms |
2176 KB |
Output is correct |
89 |
Correct |
5 ms |
2176 KB |
Output is correct |
90 |
Correct |
4 ms |
2176 KB |
Output is correct |
91 |
Correct |
5 ms |
2304 KB |
Output is correct |
92 |
Correct |
5 ms |
2176 KB |
Output is correct |
93 |
Correct |
4 ms |
2176 KB |
Output is correct |
94 |
Correct |
3 ms |
1920 KB |
Output is correct |
95 |
Correct |
4 ms |
1920 KB |
Output is correct |
96 |
Correct |
3 ms |
1920 KB |
Output is correct |
97 |
Correct |
3 ms |
1920 KB |
Output is correct |
98 |
Correct |
3 ms |
1920 KB |
Output is correct |
99 |
Correct |
3 ms |
1920 KB |
Output is correct |
100 |
Correct |
3 ms |
1920 KB |
Output is correct |
101 |
Correct |
3 ms |
1920 KB |
Output is correct |
102 |
Correct |
3 ms |
1920 KB |
Output is correct |
103 |
Correct |
3 ms |
1920 KB |
Output is correct |
104 |
Correct |
11 ms |
3328 KB |
Output is correct |
105 |
Correct |
19 ms |
4988 KB |
Output is correct |
106 |
Correct |
3 ms |
1920 KB |
Output is correct |
107 |
Correct |
34 ms |
7284 KB |
Output is correct |
108 |
Correct |
43 ms |
8688 KB |
Output is correct |
109 |
Correct |
4 ms |
2048 KB |
Output is correct |
110 |
Correct |
67 ms |
11480 KB |
Output is correct |
111 |
Correct |
97 ms |
12908 KB |
Output is correct |
112 |
Correct |
4 ms |
2048 KB |
Output is correct |
113 |
Correct |
142 ms |
16364 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
48 ms |
12532 KB |
Output is correct |
2 |
Correct |
48 ms |
12652 KB |
Output is correct |
3 |
Correct |
52 ms |
12656 KB |
Output is correct |
4 |
Correct |
56 ms |
12724 KB |
Output is correct |
5 |
Correct |
56 ms |
12528 KB |
Output is correct |
6 |
Correct |
63 ms |
13424 KB |
Output is correct |
7 |
Correct |
59 ms |
13044 KB |
Output is correct |
8 |
Correct |
58 ms |
12400 KB |
Output is correct |
9 |
Correct |
50 ms |
12396 KB |
Output is correct |
10 |
Correct |
59 ms |
12908 KB |
Output is correct |
11 |
Correct |
3 ms |
1920 KB |
Output is correct |
12 |
Correct |
24 ms |
13936 KB |
Output is correct |
13 |
Correct |
26 ms |
14064 KB |
Output is correct |
14 |
Correct |
26 ms |
14064 KB |
Output is correct |
15 |
Correct |
26 ms |
14064 KB |
Output is correct |
16 |
Correct |
26 ms |
14064 KB |
Output is correct |
17 |
Correct |
24 ms |
13956 KB |
Output is correct |
18 |
Correct |
28 ms |
14064 KB |
Output is correct |
19 |
Correct |
27 ms |
14056 KB |
Output is correct |
20 |
Correct |
3 ms |
1920 KB |
Output is correct |
21 |
Correct |
4 ms |
1920 KB |
Output is correct |
22 |
Correct |
4 ms |
2304 KB |
Output is correct |
23 |
Correct |
26 ms |
13936 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
73 ms |
14572 KB |
Output is correct |
2 |
Correct |
105 ms |
14572 KB |
Output is correct |
3 |
Correct |
64 ms |
10224 KB |
Output is correct |
4 |
Correct |
12 ms |
3840 KB |
Output is correct |
5 |
Correct |
10 ms |
3328 KB |
Output is correct |
6 |
Correct |
19 ms |
4988 KB |
Output is correct |
7 |
Correct |
3 ms |
1920 KB |
Output is correct |
8 |
Correct |
41 ms |
7284 KB |
Output is correct |
9 |
Correct |
51 ms |
8816 KB |
Output is correct |
10 |
Correct |
4 ms |
2048 KB |
Output is correct |
11 |
Correct |
77 ms |
11512 KB |
Output is correct |
12 |
Correct |
90 ms |
12908 KB |
Output is correct |
13 |
Correct |
4 ms |
2048 KB |
Output is correct |
14 |
Correct |
4 ms |
2048 KB |
Output is correct |
15 |
Correct |
5 ms |
2176 KB |
Output is correct |
16 |
Correct |
4 ms |
2176 KB |
Output is correct |
17 |
Correct |
4 ms |
2048 KB |
Output is correct |
18 |
Correct |
4 ms |
2176 KB |
Output is correct |
19 |
Correct |
5 ms |
2304 KB |
Output is correct |
20 |
Correct |
4 ms |
2048 KB |
Output is correct |
21 |
Correct |
4 ms |
2176 KB |
Output is correct |
22 |
Correct |
5 ms |
2304 KB |
Output is correct |
23 |
Correct |
4 ms |
1996 KB |
Output is correct |
24 |
Correct |
3 ms |
1920 KB |
Output is correct |
25 |
Correct |
4 ms |
2048 KB |
Output is correct |
26 |
Correct |
8 ms |
1920 KB |
Output is correct |
27 |
Correct |
4 ms |
1920 KB |
Output is correct |
28 |
Correct |
3 ms |
1920 KB |
Output is correct |
29 |
Correct |
3 ms |
1920 KB |
Output is correct |
30 |
Correct |
3 ms |
1920 KB |
Output is correct |
31 |
Correct |
3 ms |
1920 KB |
Output is correct |
32 |
Correct |
3 ms |
1920 KB |
Output is correct |
33 |
Correct |
3 ms |
1920 KB |
Output is correct |
34 |
Correct |
3 ms |
1920 KB |
Output is correct |
35 |
Correct |
3 ms |
1920 KB |
Output is correct |
36 |
Correct |
3 ms |
1920 KB |
Output is correct |
37 |
Correct |
3 ms |
1920 KB |
Output is correct |
38 |
Correct |
3 ms |
1920 KB |
Output is correct |
39 |
Correct |
4 ms |
1920 KB |
Output is correct |
40 |
Correct |
3 ms |
1920 KB |
Output is correct |
41 |
Correct |
4 ms |
1920 KB |
Output is correct |
42 |
Correct |
6 ms |
2432 KB |
Output is correct |
43 |
Correct |
5 ms |
2432 KB |
Output is correct |
44 |
Correct |
5 ms |
2304 KB |
Output is correct |
45 |
Correct |
4 ms |
2304 KB |
Output is correct |
46 |
Correct |
5 ms |
2176 KB |
Output is correct |
47 |
Correct |
6 ms |
2304 KB |
Output is correct |
48 |
Correct |
4 ms |
2176 KB |
Output is correct |
49 |
Correct |
4 ms |
2304 KB |
Output is correct |
50 |
Correct |
5 ms |
2304 KB |
Output is correct |
51 |
Correct |
5 ms |
2304 KB |
Output is correct |
52 |
Incorrect |
4 ms |
2432 KB |
Output isn't correct |
53 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
73 ms |
14572 KB |
Output is correct |
2 |
Correct |
105 ms |
14572 KB |
Output is correct |
3 |
Correct |
64 ms |
10224 KB |
Output is correct |
4 |
Correct |
12 ms |
3840 KB |
Output is correct |
5 |
Correct |
10 ms |
3328 KB |
Output is correct |
6 |
Correct |
19 ms |
4988 KB |
Output is correct |
7 |
Correct |
3 ms |
1920 KB |
Output is correct |
8 |
Correct |
41 ms |
7284 KB |
Output is correct |
9 |
Correct |
51 ms |
8816 KB |
Output is correct |
10 |
Correct |
4 ms |
2048 KB |
Output is correct |
11 |
Correct |
77 ms |
11512 KB |
Output is correct |
12 |
Correct |
90 ms |
12908 KB |
Output is correct |
13 |
Correct |
4 ms |
2048 KB |
Output is correct |
14 |
Correct |
3 ms |
1920 KB |
Output is correct |
15 |
Correct |
3 ms |
1920 KB |
Output is correct |
16 |
Correct |
3 ms |
1920 KB |
Output is correct |
17 |
Correct |
4 ms |
1920 KB |
Output is correct |
18 |
Correct |
3 ms |
1920 KB |
Output is correct |
19 |
Correct |
3 ms |
1920 KB |
Output is correct |
20 |
Correct |
3 ms |
1920 KB |
Output is correct |
21 |
Correct |
4 ms |
1920 KB |
Output is correct |
22 |
Correct |
4 ms |
1920 KB |
Output is correct |
23 |
Correct |
3 ms |
1920 KB |
Output is correct |
24 |
Correct |
3 ms |
1920 KB |
Output is correct |
25 |
Correct |
3 ms |
1920 KB |
Output is correct |
26 |
Correct |
3 ms |
1920 KB |
Output is correct |
27 |
Correct |
3 ms |
1920 KB |
Output is correct |
28 |
Correct |
4 ms |
1920 KB |
Output is correct |
29 |
Correct |
3 ms |
1920 KB |
Output is correct |
30 |
Correct |
3 ms |
1920 KB |
Output is correct |
31 |
Correct |
3 ms |
1920 KB |
Output is correct |
32 |
Correct |
3 ms |
1920 KB |
Output is correct |
33 |
Correct |
3 ms |
1920 KB |
Output is correct |
34 |
Correct |
3 ms |
1920 KB |
Output is correct |
35 |
Correct |
3 ms |
1920 KB |
Output is correct |
36 |
Correct |
4 ms |
1920 KB |
Output is correct |
37 |
Correct |
3 ms |
1920 KB |
Output is correct |
38 |
Correct |
3 ms |
1920 KB |
Output is correct |
39 |
Correct |
115 ms |
14572 KB |
Output is correct |
40 |
Correct |
69 ms |
14580 KB |
Output is correct |
41 |
Correct |
53 ms |
10224 KB |
Output is correct |
42 |
Correct |
12 ms |
3840 KB |
Output is correct |
43 |
Correct |
3 ms |
1920 KB |
Output is correct |
44 |
Correct |
3 ms |
1920 KB |
Output is correct |
45 |
Correct |
4 ms |
1920 KB |
Output is correct |
46 |
Correct |
3 ms |
1920 KB |
Output is correct |
47 |
Correct |
3 ms |
1920 KB |
Output is correct |
48 |
Correct |
4 ms |
1920 KB |
Output is correct |
49 |
Correct |
3 ms |
1920 KB |
Output is correct |
50 |
Correct |
4 ms |
1920 KB |
Output is correct |
51 |
Correct |
3 ms |
1920 KB |
Output is correct |
52 |
Correct |
3 ms |
1920 KB |
Output is correct |
53 |
Correct |
3 ms |
1920 KB |
Output is correct |
54 |
Correct |
3 ms |
1920 KB |
Output is correct |
55 |
Correct |
3 ms |
1920 KB |
Output is correct |
56 |
Correct |
3 ms |
1920 KB |
Output is correct |
57 |
Correct |
113 ms |
12660 KB |
Output is correct |
58 |
Correct |
118 ms |
12580 KB |
Output is correct |
59 |
Correct |
131 ms |
12280 KB |
Output is correct |
60 |
Correct |
130 ms |
12220 KB |
Output is correct |
61 |
Correct |
83 ms |
12144 KB |
Output is correct |
62 |
Correct |
84 ms |
12144 KB |
Output is correct |
63 |
Correct |
99 ms |
11760 KB |
Output is correct |
64 |
Correct |
76 ms |
11888 KB |
Output is correct |
65 |
Correct |
108 ms |
11888 KB |
Output is correct |
66 |
Correct |
113 ms |
11896 KB |
Output is correct |
67 |
Correct |
119 ms |
12276 KB |
Output is correct |
68 |
Correct |
135 ms |
12272 KB |
Output is correct |
69 |
Correct |
97 ms |
12408 KB |
Output is correct |
70 |
Correct |
111 ms |
12256 KB |
Output is correct |
71 |
Correct |
3 ms |
1920 KB |
Output is correct |
72 |
Correct |
4 ms |
2176 KB |
Output is correct |
73 |
Correct |
5 ms |
2168 KB |
Output is correct |
74 |
Correct |
5 ms |
2304 KB |
Output is correct |
75 |
Correct |
5 ms |
2176 KB |
Output is correct |
76 |
Correct |
5 ms |
2304 KB |
Output is correct |
77 |
Correct |
5 ms |
2304 KB |
Output is correct |
78 |
Correct |
5 ms |
2304 KB |
Output is correct |
79 |
Correct |
6 ms |
2304 KB |
Output is correct |
80 |
Correct |
132 ms |
12276 KB |
Output is correct |
81 |
Correct |
113 ms |
12296 KB |
Output is correct |
82 |
Correct |
98 ms |
12116 KB |
Output is correct |
83 |
Correct |
89 ms |
12144 KB |
Output is correct |
84 |
Correct |
5 ms |
2176 KB |
Output is correct |
85 |
Correct |
4 ms |
2176 KB |
Output is correct |
86 |
Correct |
4 ms |
2176 KB |
Output is correct |
87 |
Correct |
5 ms |
2176 KB |
Output is correct |
88 |
Correct |
5 ms |
2176 KB |
Output is correct |
89 |
Correct |
5 ms |
2176 KB |
Output is correct |
90 |
Correct |
4 ms |
2176 KB |
Output is correct |
91 |
Correct |
5 ms |
2304 KB |
Output is correct |
92 |
Correct |
5 ms |
2176 KB |
Output is correct |
93 |
Correct |
4 ms |
2176 KB |
Output is correct |
94 |
Correct |
3 ms |
1920 KB |
Output is correct |
95 |
Correct |
4 ms |
1920 KB |
Output is correct |
96 |
Correct |
3 ms |
1920 KB |
Output is correct |
97 |
Correct |
3 ms |
1920 KB |
Output is correct |
98 |
Correct |
3 ms |
1920 KB |
Output is correct |
99 |
Correct |
3 ms |
1920 KB |
Output is correct |
100 |
Correct |
3 ms |
1920 KB |
Output is correct |
101 |
Correct |
3 ms |
1920 KB |
Output is correct |
102 |
Correct |
3 ms |
1920 KB |
Output is correct |
103 |
Correct |
3 ms |
1920 KB |
Output is correct |
104 |
Correct |
11 ms |
3328 KB |
Output is correct |
105 |
Correct |
19 ms |
4988 KB |
Output is correct |
106 |
Correct |
3 ms |
1920 KB |
Output is correct |
107 |
Correct |
34 ms |
7284 KB |
Output is correct |
108 |
Correct |
43 ms |
8688 KB |
Output is correct |
109 |
Correct |
4 ms |
2048 KB |
Output is correct |
110 |
Correct |
67 ms |
11480 KB |
Output is correct |
111 |
Correct |
97 ms |
12908 KB |
Output is correct |
112 |
Correct |
4 ms |
2048 KB |
Output is correct |
113 |
Correct |
142 ms |
16364 KB |
Output is correct |
114 |
Correct |
48 ms |
12532 KB |
Output is correct |
115 |
Correct |
48 ms |
12652 KB |
Output is correct |
116 |
Correct |
52 ms |
12656 KB |
Output is correct |
117 |
Correct |
56 ms |
12724 KB |
Output is correct |
118 |
Correct |
56 ms |
12528 KB |
Output is correct |
119 |
Correct |
63 ms |
13424 KB |
Output is correct |
120 |
Correct |
59 ms |
13044 KB |
Output is correct |
121 |
Correct |
58 ms |
12400 KB |
Output is correct |
122 |
Correct |
50 ms |
12396 KB |
Output is correct |
123 |
Correct |
59 ms |
12908 KB |
Output is correct |
124 |
Correct |
3 ms |
1920 KB |
Output is correct |
125 |
Correct |
24 ms |
13936 KB |
Output is correct |
126 |
Correct |
26 ms |
14064 KB |
Output is correct |
127 |
Correct |
26 ms |
14064 KB |
Output is correct |
128 |
Correct |
26 ms |
14064 KB |
Output is correct |
129 |
Correct |
26 ms |
14064 KB |
Output is correct |
130 |
Correct |
24 ms |
13956 KB |
Output is correct |
131 |
Correct |
28 ms |
14064 KB |
Output is correct |
132 |
Correct |
27 ms |
14056 KB |
Output is correct |
133 |
Correct |
3 ms |
1920 KB |
Output is correct |
134 |
Correct |
4 ms |
1920 KB |
Output is correct |
135 |
Correct |
4 ms |
2304 KB |
Output is correct |
136 |
Correct |
26 ms |
13936 KB |
Output is correct |
137 |
Correct |
4 ms |
2048 KB |
Output is correct |
138 |
Correct |
5 ms |
2176 KB |
Output is correct |
139 |
Correct |
4 ms |
2176 KB |
Output is correct |
140 |
Correct |
4 ms |
2048 KB |
Output is correct |
141 |
Correct |
4 ms |
2176 KB |
Output is correct |
142 |
Correct |
5 ms |
2304 KB |
Output is correct |
143 |
Correct |
4 ms |
2048 KB |
Output is correct |
144 |
Correct |
4 ms |
2176 KB |
Output is correct |
145 |
Correct |
5 ms |
2304 KB |
Output is correct |
146 |
Correct |
4 ms |
1996 KB |
Output is correct |
147 |
Correct |
3 ms |
1920 KB |
Output is correct |
148 |
Correct |
4 ms |
2048 KB |
Output is correct |
149 |
Correct |
8 ms |
1920 KB |
Output is correct |
150 |
Correct |
4 ms |
1920 KB |
Output is correct |
151 |
Correct |
3 ms |
1920 KB |
Output is correct |
152 |
Correct |
3 ms |
1920 KB |
Output is correct |
153 |
Correct |
3 ms |
1920 KB |
Output is correct |
154 |
Correct |
3 ms |
1920 KB |
Output is correct |
155 |
Correct |
3 ms |
1920 KB |
Output is correct |
156 |
Correct |
3 ms |
1920 KB |
Output is correct |
157 |
Correct |
3 ms |
1920 KB |
Output is correct |
158 |
Correct |
3 ms |
1920 KB |
Output is correct |
159 |
Correct |
3 ms |
1920 KB |
Output is correct |
160 |
Correct |
3 ms |
1920 KB |
Output is correct |
161 |
Correct |
3 ms |
1920 KB |
Output is correct |
162 |
Correct |
4 ms |
1920 KB |
Output is correct |
163 |
Correct |
3 ms |
1920 KB |
Output is correct |
164 |
Correct |
4 ms |
1920 KB |
Output is correct |
165 |
Correct |
6 ms |
2432 KB |
Output is correct |
166 |
Correct |
5 ms |
2432 KB |
Output is correct |
167 |
Correct |
5 ms |
2304 KB |
Output is correct |
168 |
Correct |
4 ms |
2304 KB |
Output is correct |
169 |
Correct |
5 ms |
2176 KB |
Output is correct |
170 |
Correct |
6 ms |
2304 KB |
Output is correct |
171 |
Correct |
4 ms |
2176 KB |
Output is correct |
172 |
Correct |
4 ms |
2304 KB |
Output is correct |
173 |
Correct |
5 ms |
2304 KB |
Output is correct |
174 |
Correct |
5 ms |
2304 KB |
Output is correct |
175 |
Incorrect |
4 ms |
2432 KB |
Output isn't correct |
176 |
Halted |
0 ms |
0 KB |
- |