#include "traffic.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
vector<int> g[1000100];
ll subsum[1000100] = {0};
int ans = 0; ll optimal = numeric_limits<ll>::max();
void dfs(int node, int prev = -1){
for(auto i : g[node]){
if(i != prev){
dfs(i, node);
subsum[node] += subsum[i];
}
}
}
void solve(int node, int prev = -1){
ll maxsubtree = subsum[0] - subsum[node];
for(auto i : g[node]){
if(i != prev){
maxsubtree = max(maxsubtree, subsum[i]);
solve(i, node);
}
}
if(maxsubtree < optimal){
optimal = maxsubtree;
ans = node;
}
}
int LocateCentre(int N, int pp[], int S[], int D[]) {
for(int i = 0; i < N - 1; ++i){
g[S[i]].push_back(D[i]);
g[D[i]].push_back(S[i]);
subsum[i] = pp[i];
}
subsum[N - 1] = pp[N - 1];
dfs(0);
solve(0);
return ans;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
23820 KB |
Output is correct |
2 |
Correct |
10 ms |
23804 KB |
Output is correct |
3 |
Correct |
12 ms |
23804 KB |
Output is correct |
4 |
Correct |
11 ms |
23800 KB |
Output is correct |
5 |
Correct |
10 ms |
23764 KB |
Output is correct |
6 |
Correct |
11 ms |
23804 KB |
Output is correct |
7 |
Correct |
12 ms |
23764 KB |
Output is correct |
8 |
Correct |
11 ms |
23796 KB |
Output is correct |
9 |
Correct |
13 ms |
23828 KB |
Output is correct |
10 |
Correct |
13 ms |
23764 KB |
Output is correct |
11 |
Correct |
11 ms |
23748 KB |
Output is correct |
12 |
Correct |
13 ms |
23804 KB |
Output is correct |
13 |
Correct |
11 ms |
23744 KB |
Output is correct |
14 |
Correct |
11 ms |
23808 KB |
Output is correct |
15 |
Correct |
11 ms |
23764 KB |
Output is correct |
16 |
Correct |
11 ms |
23764 KB |
Output is correct |
17 |
Correct |
11 ms |
23760 KB |
Output is correct |
18 |
Correct |
11 ms |
23764 KB |
Output is correct |
19 |
Correct |
11 ms |
23764 KB |
Output is correct |
20 |
Correct |
11 ms |
23800 KB |
Output is correct |
21 |
Correct |
12 ms |
23892 KB |
Output is correct |
22 |
Correct |
12 ms |
23764 KB |
Output is correct |
23 |
Correct |
11 ms |
23812 KB |
Output is correct |
24 |
Correct |
11 ms |
23764 KB |
Output is correct |
25 |
Correct |
11 ms |
23804 KB |
Output is correct |
26 |
Correct |
12 ms |
23756 KB |
Output is correct |
27 |
Correct |
11 ms |
23748 KB |
Output is correct |
28 |
Correct |
11 ms |
23764 KB |
Output is correct |
29 |
Correct |
13 ms |
23840 KB |
Output is correct |
30 |
Correct |
13 ms |
23764 KB |
Output is correct |
31 |
Correct |
12 ms |
23816 KB |
Output is correct |
32 |
Correct |
11 ms |
23888 KB |
Output is correct |
33 |
Correct |
12 ms |
23892 KB |
Output is correct |
34 |
Correct |
11 ms |
23816 KB |
Output is correct |
35 |
Correct |
14 ms |
23892 KB |
Output is correct |
36 |
Correct |
12 ms |
23816 KB |
Output is correct |
37 |
Correct |
12 ms |
23816 KB |
Output is correct |
38 |
Correct |
11 ms |
23880 KB |
Output is correct |
39 |
Correct |
11 ms |
23944 KB |
Output is correct |
40 |
Correct |
12 ms |
23844 KB |
Output is correct |
41 |
Correct |
11 ms |
23840 KB |
Output is correct |
42 |
Correct |
14 ms |
23948 KB |
Output is correct |
43 |
Correct |
11 ms |
23736 KB |
Output is correct |
44 |
Correct |
11 ms |
23764 KB |
Output is correct |
45 |
Correct |
11 ms |
23728 KB |
Output is correct |
46 |
Correct |
11 ms |
23812 KB |
Output is correct |
47 |
Correct |
13 ms |
23800 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
23820 KB |
Output is correct |
2 |
Correct |
10 ms |
23804 KB |
Output is correct |
3 |
Correct |
12 ms |
23804 KB |
Output is correct |
4 |
Correct |
11 ms |
23800 KB |
Output is correct |
5 |
Correct |
10 ms |
23764 KB |
Output is correct |
6 |
Correct |
11 ms |
23804 KB |
Output is correct |
7 |
Correct |
12 ms |
23764 KB |
Output is correct |
8 |
Correct |
11 ms |
23796 KB |
Output is correct |
9 |
Correct |
13 ms |
23828 KB |
Output is correct |
10 |
Correct |
13 ms |
23764 KB |
Output is correct |
11 |
Correct |
11 ms |
23748 KB |
Output is correct |
12 |
Correct |
13 ms |
23804 KB |
Output is correct |
13 |
Correct |
11 ms |
23744 KB |
Output is correct |
14 |
Correct |
11 ms |
23808 KB |
Output is correct |
15 |
Correct |
11 ms |
23764 KB |
Output is correct |
16 |
Correct |
11 ms |
23764 KB |
Output is correct |
17 |
Correct |
11 ms |
23760 KB |
Output is correct |
18 |
Correct |
11 ms |
23764 KB |
Output is correct |
19 |
Correct |
11 ms |
23764 KB |
Output is correct |
20 |
Correct |
11 ms |
23800 KB |
Output is correct |
21 |
Correct |
12 ms |
23892 KB |
Output is correct |
22 |
Correct |
12 ms |
23764 KB |
Output is correct |
23 |
Correct |
11 ms |
23812 KB |
Output is correct |
24 |
Correct |
11 ms |
23764 KB |
Output is correct |
25 |
Correct |
11 ms |
23804 KB |
Output is correct |
26 |
Correct |
12 ms |
23756 KB |
Output is correct |
27 |
Correct |
11 ms |
23748 KB |
Output is correct |
28 |
Correct |
11 ms |
23764 KB |
Output is correct |
29 |
Correct |
13 ms |
23840 KB |
Output is correct |
30 |
Correct |
13 ms |
23764 KB |
Output is correct |
31 |
Correct |
12 ms |
23816 KB |
Output is correct |
32 |
Correct |
11 ms |
23888 KB |
Output is correct |
33 |
Correct |
12 ms |
23892 KB |
Output is correct |
34 |
Correct |
11 ms |
23816 KB |
Output is correct |
35 |
Correct |
14 ms |
23892 KB |
Output is correct |
36 |
Correct |
12 ms |
23816 KB |
Output is correct |
37 |
Correct |
12 ms |
23816 KB |
Output is correct |
38 |
Correct |
11 ms |
23880 KB |
Output is correct |
39 |
Correct |
11 ms |
23944 KB |
Output is correct |
40 |
Correct |
12 ms |
23844 KB |
Output is correct |
41 |
Correct |
11 ms |
23840 KB |
Output is correct |
42 |
Correct |
14 ms |
23948 KB |
Output is correct |
43 |
Correct |
11 ms |
23736 KB |
Output is correct |
44 |
Correct |
11 ms |
23764 KB |
Output is correct |
45 |
Correct |
11 ms |
23728 KB |
Output is correct |
46 |
Correct |
11 ms |
23812 KB |
Output is correct |
47 |
Correct |
13 ms |
23800 KB |
Output is correct |
48 |
Correct |
11 ms |
23764 KB |
Output is correct |
49 |
Correct |
11 ms |
23820 KB |
Output is correct |
50 |
Correct |
11 ms |
23748 KB |
Output is correct |
51 |
Correct |
11 ms |
23804 KB |
Output is correct |
52 |
Correct |
11 ms |
23764 KB |
Output is correct |
53 |
Correct |
12 ms |
23764 KB |
Output is correct |
54 |
Correct |
11 ms |
23776 KB |
Output is correct |
55 |
Correct |
11 ms |
23808 KB |
Output is correct |
56 |
Correct |
13 ms |
23768 KB |
Output is correct |
57 |
Correct |
11 ms |
23784 KB |
Output is correct |
58 |
Correct |
11 ms |
23804 KB |
Output is correct |
59 |
Correct |
12 ms |
23804 KB |
Output is correct |
60 |
Correct |
11 ms |
23764 KB |
Output is correct |
61 |
Correct |
13 ms |
23764 KB |
Output is correct |
62 |
Correct |
13 ms |
23892 KB |
Output is correct |
63 |
Correct |
11 ms |
23764 KB |
Output is correct |
64 |
Correct |
12 ms |
23764 KB |
Output is correct |
65 |
Correct |
12 ms |
23764 KB |
Output is correct |
66 |
Correct |
11 ms |
23808 KB |
Output is correct |
67 |
Correct |
11 ms |
23728 KB |
Output is correct |
68 |
Correct |
28 ms |
31032 KB |
Output is correct |
69 |
Correct |
43 ms |
38348 KB |
Output is correct |
70 |
Correct |
11 ms |
23800 KB |
Output is correct |
71 |
Correct |
78 ms |
45768 KB |
Output is correct |
72 |
Correct |
82 ms |
53044 KB |
Output is correct |
73 |
Correct |
97 ms |
60364 KB |
Output is correct |
74 |
Correct |
109 ms |
67856 KB |
Output is correct |
75 |
Correct |
129 ms |
75188 KB |
Output is correct |
76 |
Correct |
142 ms |
82504 KB |
Output is correct |
77 |
Correct |
166 ms |
90016 KB |
Output is correct |
78 |
Correct |
179 ms |
97216 KB |
Output is correct |
79 |
Correct |
192 ms |
104652 KB |
Output is correct |
80 |
Correct |
217 ms |
112108 KB |
Output is correct |
81 |
Correct |
11 ms |
23824 KB |
Output is correct |
82 |
Correct |
240 ms |
119348 KB |
Output is correct |
83 |
Correct |
277 ms |
126668 KB |
Output is correct |
84 |
Correct |
283 ms |
134024 KB |
Output is correct |
85 |
Correct |
286 ms |
141388 KB |
Output is correct |
86 |
Correct |
317 ms |
148772 KB |
Output is correct |
87 |
Correct |
338 ms |
156004 KB |
Output is correct |
88 |
Correct |
351 ms |
163364 KB |
Output is correct |
89 |
Correct |
392 ms |
170884 KB |
Output is correct |
90 |
Correct |
12 ms |
23764 KB |
Output is correct |
91 |
Correct |
13 ms |
23744 KB |
Output is correct |
92 |
Correct |
12 ms |
23808 KB |
Output is correct |
93 |
Correct |
12 ms |
23800 KB |
Output is correct |
94 |
Correct |
12 ms |
23792 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
23820 KB |
Output is correct |
2 |
Correct |
10 ms |
23804 KB |
Output is correct |
3 |
Correct |
12 ms |
23804 KB |
Output is correct |
4 |
Correct |
11 ms |
23800 KB |
Output is correct |
5 |
Correct |
10 ms |
23764 KB |
Output is correct |
6 |
Correct |
11 ms |
23804 KB |
Output is correct |
7 |
Correct |
12 ms |
23764 KB |
Output is correct |
8 |
Correct |
11 ms |
23796 KB |
Output is correct |
9 |
Correct |
13 ms |
23828 KB |
Output is correct |
10 |
Correct |
13 ms |
23764 KB |
Output is correct |
11 |
Correct |
11 ms |
23748 KB |
Output is correct |
12 |
Correct |
13 ms |
23804 KB |
Output is correct |
13 |
Correct |
11 ms |
23744 KB |
Output is correct |
14 |
Correct |
11 ms |
23808 KB |
Output is correct |
15 |
Correct |
11 ms |
23764 KB |
Output is correct |
16 |
Correct |
11 ms |
23764 KB |
Output is correct |
17 |
Correct |
11 ms |
23760 KB |
Output is correct |
18 |
Correct |
11 ms |
23764 KB |
Output is correct |
19 |
Correct |
11 ms |
23764 KB |
Output is correct |
20 |
Correct |
11 ms |
23800 KB |
Output is correct |
21 |
Correct |
12 ms |
23892 KB |
Output is correct |
22 |
Correct |
12 ms |
23764 KB |
Output is correct |
23 |
Correct |
11 ms |
23812 KB |
Output is correct |
24 |
Correct |
11 ms |
23764 KB |
Output is correct |
25 |
Correct |
11 ms |
23804 KB |
Output is correct |
26 |
Correct |
12 ms |
23756 KB |
Output is correct |
27 |
Correct |
11 ms |
23748 KB |
Output is correct |
28 |
Correct |
11 ms |
23764 KB |
Output is correct |
29 |
Correct |
13 ms |
23840 KB |
Output is correct |
30 |
Correct |
13 ms |
23764 KB |
Output is correct |
31 |
Correct |
12 ms |
23816 KB |
Output is correct |
32 |
Correct |
11 ms |
23888 KB |
Output is correct |
33 |
Correct |
12 ms |
23892 KB |
Output is correct |
34 |
Correct |
11 ms |
23816 KB |
Output is correct |
35 |
Correct |
14 ms |
23892 KB |
Output is correct |
36 |
Correct |
12 ms |
23816 KB |
Output is correct |
37 |
Correct |
12 ms |
23816 KB |
Output is correct |
38 |
Correct |
11 ms |
23880 KB |
Output is correct |
39 |
Correct |
11 ms |
23944 KB |
Output is correct |
40 |
Correct |
12 ms |
23844 KB |
Output is correct |
41 |
Correct |
11 ms |
23840 KB |
Output is correct |
42 |
Correct |
14 ms |
23948 KB |
Output is correct |
43 |
Correct |
11 ms |
23736 KB |
Output is correct |
44 |
Correct |
11 ms |
23764 KB |
Output is correct |
45 |
Correct |
11 ms |
23728 KB |
Output is correct |
46 |
Correct |
11 ms |
23812 KB |
Output is correct |
47 |
Correct |
13 ms |
23800 KB |
Output is correct |
48 |
Correct |
14 ms |
23764 KB |
Output is correct |
49 |
Correct |
13 ms |
23768 KB |
Output is correct |
50 |
Correct |
13 ms |
23892 KB |
Output is correct |
51 |
Correct |
13 ms |
23764 KB |
Output is correct |
52 |
Correct |
12 ms |
23764 KB |
Output is correct |
53 |
Correct |
13 ms |
23764 KB |
Output is correct |
54 |
Correct |
12 ms |
23796 KB |
Output is correct |
55 |
Correct |
13 ms |
23764 KB |
Output is correct |
56 |
Correct |
13 ms |
23824 KB |
Output is correct |
57 |
Correct |
13 ms |
23808 KB |
Output is correct |
58 |
Correct |
12 ms |
23748 KB |
Output is correct |
59 |
Correct |
13 ms |
23800 KB |
Output is correct |
60 |
Correct |
12 ms |
23732 KB |
Output is correct |
61 |
Correct |
12 ms |
23804 KB |
Output is correct |
62 |
Correct |
12 ms |
23764 KB |
Output is correct |
63 |
Correct |
13 ms |
23720 KB |
Output is correct |
64 |
Correct |
13 ms |
23736 KB |
Output is correct |
65 |
Correct |
13 ms |
23804 KB |
Output is correct |
66 |
Correct |
12 ms |
23764 KB |
Output is correct |
67 |
Correct |
12 ms |
23804 KB |
Output is correct |
68 |
Correct |
13 ms |
23764 KB |
Output is correct |
69 |
Correct |
14 ms |
23764 KB |
Output is correct |
70 |
Correct |
13 ms |
23756 KB |
Output is correct |
71 |
Correct |
13 ms |
23764 KB |
Output is correct |
72 |
Correct |
14 ms |
23768 KB |
Output is correct |
73 |
Correct |
13 ms |
23788 KB |
Output is correct |
74 |
Correct |
13 ms |
23776 KB |
Output is correct |
75 |
Correct |
12 ms |
23760 KB |
Output is correct |
76 |
Correct |
12 ms |
23764 KB |
Output is correct |
77 |
Correct |
12 ms |
23728 KB |
Output is correct |
78 |
Correct |
12 ms |
23808 KB |
Output is correct |
79 |
Correct |
13 ms |
23812 KB |
Output is correct |
80 |
Correct |
12 ms |
23844 KB |
Output is correct |
81 |
Correct |
12 ms |
23764 KB |
Output is correct |
82 |
Correct |
12 ms |
23788 KB |
Output is correct |
83 |
Correct |
12 ms |
23776 KB |
Output is correct |
84 |
Correct |
13 ms |
23824 KB |
Output is correct |
85 |
Correct |
14 ms |
23764 KB |
Output is correct |
86 |
Correct |
12 ms |
23764 KB |
Output is correct |
87 |
Correct |
13 ms |
23804 KB |
Output is correct |
88 |
Correct |
13 ms |
23764 KB |
Output is correct |
89 |
Correct |
13 ms |
23764 KB |
Output is correct |
90 |
Correct |
12 ms |
23820 KB |
Output is correct |
91 |
Correct |
14 ms |
23860 KB |
Output is correct |
92 |
Correct |
12 ms |
23812 KB |
Output is correct |
93 |
Correct |
15 ms |
23832 KB |
Output is correct |
94 |
Correct |
13 ms |
23804 KB |
Output is correct |
95 |
Correct |
13 ms |
23936 KB |
Output is correct |
96 |
Correct |
12 ms |
23764 KB |
Output is correct |
97 |
Correct |
13 ms |
23764 KB |
Output is correct |
98 |
Correct |
12 ms |
23740 KB |
Output is correct |
99 |
Correct |
12 ms |
23748 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
11 ms |
23820 KB |
Output is correct |
2 |
Correct |
10 ms |
23804 KB |
Output is correct |
3 |
Correct |
12 ms |
23804 KB |
Output is correct |
4 |
Correct |
11 ms |
23800 KB |
Output is correct |
5 |
Correct |
10 ms |
23764 KB |
Output is correct |
6 |
Correct |
11 ms |
23804 KB |
Output is correct |
7 |
Correct |
12 ms |
23764 KB |
Output is correct |
8 |
Correct |
11 ms |
23796 KB |
Output is correct |
9 |
Correct |
13 ms |
23828 KB |
Output is correct |
10 |
Correct |
13 ms |
23764 KB |
Output is correct |
11 |
Correct |
11 ms |
23748 KB |
Output is correct |
12 |
Correct |
13 ms |
23804 KB |
Output is correct |
13 |
Correct |
11 ms |
23744 KB |
Output is correct |
14 |
Correct |
11 ms |
23808 KB |
Output is correct |
15 |
Correct |
11 ms |
23764 KB |
Output is correct |
16 |
Correct |
11 ms |
23764 KB |
Output is correct |
17 |
Correct |
11 ms |
23760 KB |
Output is correct |
18 |
Correct |
11 ms |
23764 KB |
Output is correct |
19 |
Correct |
11 ms |
23764 KB |
Output is correct |
20 |
Correct |
11 ms |
23800 KB |
Output is correct |
21 |
Correct |
12 ms |
23892 KB |
Output is correct |
22 |
Correct |
12 ms |
23764 KB |
Output is correct |
23 |
Correct |
11 ms |
23812 KB |
Output is correct |
24 |
Correct |
11 ms |
23764 KB |
Output is correct |
25 |
Correct |
11 ms |
23804 KB |
Output is correct |
26 |
Correct |
12 ms |
23756 KB |
Output is correct |
27 |
Correct |
11 ms |
23748 KB |
Output is correct |
28 |
Correct |
11 ms |
23764 KB |
Output is correct |
29 |
Correct |
13 ms |
23840 KB |
Output is correct |
30 |
Correct |
13 ms |
23764 KB |
Output is correct |
31 |
Correct |
12 ms |
23816 KB |
Output is correct |
32 |
Correct |
11 ms |
23888 KB |
Output is correct |
33 |
Correct |
12 ms |
23892 KB |
Output is correct |
34 |
Correct |
11 ms |
23816 KB |
Output is correct |
35 |
Correct |
14 ms |
23892 KB |
Output is correct |
36 |
Correct |
12 ms |
23816 KB |
Output is correct |
37 |
Correct |
12 ms |
23816 KB |
Output is correct |
38 |
Correct |
11 ms |
23880 KB |
Output is correct |
39 |
Correct |
11 ms |
23944 KB |
Output is correct |
40 |
Correct |
12 ms |
23844 KB |
Output is correct |
41 |
Correct |
11 ms |
23840 KB |
Output is correct |
42 |
Correct |
14 ms |
23948 KB |
Output is correct |
43 |
Correct |
11 ms |
23736 KB |
Output is correct |
44 |
Correct |
11 ms |
23764 KB |
Output is correct |
45 |
Correct |
11 ms |
23728 KB |
Output is correct |
46 |
Correct |
11 ms |
23812 KB |
Output is correct |
47 |
Correct |
13 ms |
23800 KB |
Output is correct |
48 |
Correct |
11 ms |
23764 KB |
Output is correct |
49 |
Correct |
11 ms |
23820 KB |
Output is correct |
50 |
Correct |
11 ms |
23748 KB |
Output is correct |
51 |
Correct |
11 ms |
23804 KB |
Output is correct |
52 |
Correct |
11 ms |
23764 KB |
Output is correct |
53 |
Correct |
12 ms |
23764 KB |
Output is correct |
54 |
Correct |
11 ms |
23776 KB |
Output is correct |
55 |
Correct |
11 ms |
23808 KB |
Output is correct |
56 |
Correct |
13 ms |
23768 KB |
Output is correct |
57 |
Correct |
11 ms |
23784 KB |
Output is correct |
58 |
Correct |
11 ms |
23804 KB |
Output is correct |
59 |
Correct |
12 ms |
23804 KB |
Output is correct |
60 |
Correct |
11 ms |
23764 KB |
Output is correct |
61 |
Correct |
13 ms |
23764 KB |
Output is correct |
62 |
Correct |
13 ms |
23892 KB |
Output is correct |
63 |
Correct |
11 ms |
23764 KB |
Output is correct |
64 |
Correct |
12 ms |
23764 KB |
Output is correct |
65 |
Correct |
12 ms |
23764 KB |
Output is correct |
66 |
Correct |
11 ms |
23808 KB |
Output is correct |
67 |
Correct |
11 ms |
23728 KB |
Output is correct |
68 |
Correct |
28 ms |
31032 KB |
Output is correct |
69 |
Correct |
43 ms |
38348 KB |
Output is correct |
70 |
Correct |
11 ms |
23800 KB |
Output is correct |
71 |
Correct |
78 ms |
45768 KB |
Output is correct |
72 |
Correct |
82 ms |
53044 KB |
Output is correct |
73 |
Correct |
97 ms |
60364 KB |
Output is correct |
74 |
Correct |
109 ms |
67856 KB |
Output is correct |
75 |
Correct |
129 ms |
75188 KB |
Output is correct |
76 |
Correct |
142 ms |
82504 KB |
Output is correct |
77 |
Correct |
166 ms |
90016 KB |
Output is correct |
78 |
Correct |
179 ms |
97216 KB |
Output is correct |
79 |
Correct |
192 ms |
104652 KB |
Output is correct |
80 |
Correct |
217 ms |
112108 KB |
Output is correct |
81 |
Correct |
11 ms |
23824 KB |
Output is correct |
82 |
Correct |
240 ms |
119348 KB |
Output is correct |
83 |
Correct |
277 ms |
126668 KB |
Output is correct |
84 |
Correct |
283 ms |
134024 KB |
Output is correct |
85 |
Correct |
286 ms |
141388 KB |
Output is correct |
86 |
Correct |
317 ms |
148772 KB |
Output is correct |
87 |
Correct |
338 ms |
156004 KB |
Output is correct |
88 |
Correct |
351 ms |
163364 KB |
Output is correct |
89 |
Correct |
392 ms |
170884 KB |
Output is correct |
90 |
Correct |
12 ms |
23764 KB |
Output is correct |
91 |
Correct |
13 ms |
23744 KB |
Output is correct |
92 |
Correct |
12 ms |
23808 KB |
Output is correct |
93 |
Correct |
12 ms |
23800 KB |
Output is correct |
94 |
Correct |
12 ms |
23792 KB |
Output is correct |
95 |
Correct |
14 ms |
23764 KB |
Output is correct |
96 |
Correct |
13 ms |
23768 KB |
Output is correct |
97 |
Correct |
13 ms |
23892 KB |
Output is correct |
98 |
Correct |
13 ms |
23764 KB |
Output is correct |
99 |
Correct |
12 ms |
23764 KB |
Output is correct |
100 |
Correct |
13 ms |
23764 KB |
Output is correct |
101 |
Correct |
12 ms |
23796 KB |
Output is correct |
102 |
Correct |
13 ms |
23764 KB |
Output is correct |
103 |
Correct |
13 ms |
23824 KB |
Output is correct |
104 |
Correct |
13 ms |
23808 KB |
Output is correct |
105 |
Correct |
12 ms |
23748 KB |
Output is correct |
106 |
Correct |
13 ms |
23800 KB |
Output is correct |
107 |
Correct |
12 ms |
23732 KB |
Output is correct |
108 |
Correct |
12 ms |
23804 KB |
Output is correct |
109 |
Correct |
12 ms |
23764 KB |
Output is correct |
110 |
Correct |
13 ms |
23720 KB |
Output is correct |
111 |
Correct |
13 ms |
23736 KB |
Output is correct |
112 |
Correct |
13 ms |
23804 KB |
Output is correct |
113 |
Correct |
12 ms |
23764 KB |
Output is correct |
114 |
Correct |
12 ms |
23804 KB |
Output is correct |
115 |
Correct |
13 ms |
23764 KB |
Output is correct |
116 |
Correct |
14 ms |
23764 KB |
Output is correct |
117 |
Correct |
13 ms |
23756 KB |
Output is correct |
118 |
Correct |
13 ms |
23764 KB |
Output is correct |
119 |
Correct |
14 ms |
23768 KB |
Output is correct |
120 |
Correct |
13 ms |
23788 KB |
Output is correct |
121 |
Correct |
13 ms |
23776 KB |
Output is correct |
122 |
Correct |
12 ms |
23760 KB |
Output is correct |
123 |
Correct |
12 ms |
23764 KB |
Output is correct |
124 |
Correct |
12 ms |
23728 KB |
Output is correct |
125 |
Correct |
12 ms |
23808 KB |
Output is correct |
126 |
Correct |
13 ms |
23812 KB |
Output is correct |
127 |
Correct |
12 ms |
23844 KB |
Output is correct |
128 |
Correct |
12 ms |
23764 KB |
Output is correct |
129 |
Correct |
12 ms |
23788 KB |
Output is correct |
130 |
Correct |
12 ms |
23776 KB |
Output is correct |
131 |
Correct |
13 ms |
23824 KB |
Output is correct |
132 |
Correct |
14 ms |
23764 KB |
Output is correct |
133 |
Correct |
12 ms |
23764 KB |
Output is correct |
134 |
Correct |
13 ms |
23804 KB |
Output is correct |
135 |
Correct |
13 ms |
23764 KB |
Output is correct |
136 |
Correct |
13 ms |
23764 KB |
Output is correct |
137 |
Correct |
12 ms |
23820 KB |
Output is correct |
138 |
Correct |
14 ms |
23860 KB |
Output is correct |
139 |
Correct |
12 ms |
23812 KB |
Output is correct |
140 |
Correct |
15 ms |
23832 KB |
Output is correct |
141 |
Correct |
13 ms |
23804 KB |
Output is correct |
142 |
Correct |
13 ms |
23936 KB |
Output is correct |
143 |
Correct |
12 ms |
23764 KB |
Output is correct |
144 |
Correct |
13 ms |
23764 KB |
Output is correct |
145 |
Correct |
12 ms |
23740 KB |
Output is correct |
146 |
Correct |
12 ms |
23748 KB |
Output is correct |
147 |
Correct |
12 ms |
23792 KB |
Output is correct |
148 |
Correct |
15 ms |
23928 KB |
Output is correct |
149 |
Correct |
13 ms |
23764 KB |
Output is correct |
150 |
Correct |
12 ms |
23764 KB |
Output is correct |
151 |
Correct |
12 ms |
23704 KB |
Output is correct |
152 |
Correct |
13 ms |
23796 KB |
Output is correct |
153 |
Correct |
13 ms |
23784 KB |
Output is correct |
154 |
Correct |
13 ms |
23764 KB |
Output is correct |
155 |
Correct |
13 ms |
23800 KB |
Output is correct |
156 |
Correct |
14 ms |
23724 KB |
Output is correct |
157 |
Correct |
12 ms |
23764 KB |
Output is correct |
158 |
Correct |
12 ms |
23792 KB |
Output is correct |
159 |
Correct |
12 ms |
23804 KB |
Output is correct |
160 |
Correct |
13 ms |
23748 KB |
Output is correct |
161 |
Correct |
12 ms |
23724 KB |
Output is correct |
162 |
Correct |
13 ms |
23772 KB |
Output is correct |
163 |
Correct |
12 ms |
23700 KB |
Output is correct |
164 |
Correct |
13 ms |
23764 KB |
Output is correct |
165 |
Correct |
12 ms |
23800 KB |
Output is correct |
166 |
Correct |
12 ms |
23764 KB |
Output is correct |
167 |
Correct |
13 ms |
23724 KB |
Output is correct |
168 |
Correct |
13 ms |
23808 KB |
Output is correct |
169 |
Correct |
12 ms |
23700 KB |
Output is correct |
170 |
Correct |
13 ms |
23800 KB |
Output is correct |
171 |
Correct |
35 ms |
27220 KB |
Output is correct |
172 |
Correct |
67 ms |
30540 KB |
Output is correct |
173 |
Correct |
81 ms |
34108 KB |
Output is correct |
174 |
Correct |
109 ms |
37608 KB |
Output is correct |
175 |
Correct |
235 ms |
41300 KB |
Output is correct |
176 |
Correct |
194 ms |
44556 KB |
Output is correct |
177 |
Correct |
249 ms |
48060 KB |
Output is correct |
178 |
Correct |
351 ms |
51548 KB |
Output is correct |
179 |
Correct |
361 ms |
55040 KB |
Output is correct |
180 |
Correct |
12 ms |
23800 KB |
Output is correct |
181 |
Correct |
428 ms |
58428 KB |
Output is correct |
182 |
Correct |
476 ms |
61892 KB |
Output is correct |
183 |
Correct |
542 ms |
65364 KB |
Output is correct |
184 |
Correct |
580 ms |
68900 KB |
Output is correct |
185 |
Correct |
647 ms |
72284 KB |
Output is correct |
186 |
Correct |
679 ms |
75828 KB |
Output is correct |
187 |
Correct |
740 ms |
79152 KB |
Output is correct |
188 |
Correct |
837 ms |
82652 KB |
Output is correct |
189 |
Correct |
872 ms |
86136 KB |
Output is correct |
190 |
Correct |
938 ms |
89536 KB |
Output is correct |
191 |
Correct |
14 ms |
23800 KB |
Output is correct |
192 |
Correct |
1008 ms |
92940 KB |
Output is correct |
193 |
Correct |
191 ms |
95976 KB |
Output is correct |
194 |
Correct |
362 ms |
168328 KB |
Output is correct |
195 |
Correct |
12 ms |
23764 KB |
Output is correct |
196 |
Correct |
12 ms |
23820 KB |
Output is correct |
197 |
Correct |
11 ms |
23720 KB |
Output is correct |
198 |
Correct |
12 ms |
23800 KB |
Output is correct |