Submission #231737

# Submission time Handle Problem Language Result Execution time Memory
231737 2020-05-14T14:53:27 Z AlexLuchianov Traffic (IOI10_traffic) C++14
100 / 100
1305 ms 159204 KB
#include "traffic.h"
#include <vector>
#include <iostream>

using namespace std;

int const nmax = 1000000;
int v[1 + nmax], sum[1 + nmax];
int far[1 + nmax];
vector<int> g[1 + nmax];

void dfs(int node, int parent){
  far[node] = parent;
  sum[node] = v[node];
  for(int h = 0; h < g[node].size(); h++){
    int to = g[node][h];
    if(to != parent) {
      dfs(to, node);
      sum[node] += sum[to];
    }
  }
}

int eval(int node){
  int result = sum[1] - sum[node];
  for(int h = 0; h < g[node].size(); h++){
    int to = g[node][h];
    if(to != far[node])
      result = max(result, sum[to]);
  }
  return result;
}

int LocateCentre(int n, int *p, int *s, int *d){
  for(int i = 0; i < n - 1; i++){
    s[i]++;
    d[i]++;
    g[s[i]].push_back(d[i]);
    g[d[i]].push_back(s[i]);
  }
  for(int i = 1;i <= n; i++)
    v[i] = p[i - 1];
  dfs(1, 0);
  pair<int,int> sol(eval(1), 1);
  for(int i = 2;i <= n; i++){
    pair<int,int> candidate(eval(i), i);
    sol = min(sol, candidate);
  }
  return sol.second - 1;
}

Compilation message

traffic.cpp: In function 'void dfs(int, int)':
traffic.cpp:15:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int h = 0; h < g[node].size(); h++){
                  ~~^~~~~~~~~~~~~~~~
traffic.cpp: In function 'int eval(int)':
traffic.cpp:26:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int h = 0; h < g[node].size(); h++){
                  ~~^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 19 ms 23808 KB Output is correct
2 Correct 19 ms 23808 KB Output is correct
3 Correct 22 ms 23936 KB Output is correct
4 Correct 19 ms 23936 KB Output is correct
5 Correct 18 ms 23936 KB Output is correct
6 Correct 19 ms 23936 KB Output is correct
7 Correct 25 ms 23936 KB Output is correct
8 Correct 17 ms 23808 KB Output is correct
9 Correct 24 ms 23808 KB Output is correct
10 Correct 17 ms 23936 KB Output is correct
11 Correct 22 ms 23936 KB Output is correct
12 Correct 17 ms 23840 KB Output is correct
13 Correct 17 ms 23808 KB Output is correct
14 Correct 22 ms 23936 KB Output is correct
15 Correct 20 ms 23936 KB Output is correct
16 Correct 18 ms 23808 KB Output is correct
17 Correct 19 ms 23808 KB Output is correct
18 Correct 18 ms 23808 KB Output is correct
19 Correct 22 ms 23808 KB Output is correct
20 Correct 18 ms 23808 KB Output is correct
21 Correct 19 ms 23904 KB Output is correct
22 Correct 21 ms 23928 KB Output is correct
23 Correct 18 ms 23936 KB Output is correct
24 Correct 18 ms 23808 KB Output is correct
25 Correct 19 ms 23808 KB Output is correct
26 Correct 18 ms 23936 KB Output is correct
27 Correct 18 ms 23928 KB Output is correct
28 Correct 18 ms 23936 KB Output is correct
29 Correct 19 ms 23936 KB Output is correct
30 Correct 19 ms 23912 KB Output is correct
31 Correct 34 ms 23932 KB Output is correct
32 Correct 19 ms 23936 KB Output is correct
33 Correct 19 ms 23936 KB Output is correct
34 Correct 19 ms 23936 KB Output is correct
35 Correct 19 ms 23936 KB Output is correct
36 Correct 22 ms 23984 KB Output is correct
37 Correct 19 ms 23936 KB Output is correct
38 Correct 19 ms 23936 KB Output is correct
39 Correct 19 ms 23936 KB Output is correct
40 Correct 23 ms 23928 KB Output is correct
41 Correct 19 ms 23936 KB Output is correct
42 Correct 19 ms 24064 KB Output is correct
43 Correct 20 ms 23808 KB Output is correct
44 Correct 21 ms 23808 KB Output is correct
45 Correct 19 ms 23928 KB Output is correct
46 Correct 20 ms 23936 KB Output is correct
47 Correct 38 ms 23936 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 23808 KB Output is correct
2 Correct 19 ms 23808 KB Output is correct
3 Correct 22 ms 23936 KB Output is correct
4 Correct 19 ms 23936 KB Output is correct
5 Correct 18 ms 23936 KB Output is correct
6 Correct 19 ms 23936 KB Output is correct
7 Correct 25 ms 23936 KB Output is correct
8 Correct 17 ms 23808 KB Output is correct
9 Correct 24 ms 23808 KB Output is correct
10 Correct 17 ms 23936 KB Output is correct
11 Correct 22 ms 23936 KB Output is correct
12 Correct 17 ms 23840 KB Output is correct
13 Correct 17 ms 23808 KB Output is correct
14 Correct 22 ms 23936 KB Output is correct
15 Correct 20 ms 23936 KB Output is correct
16 Correct 18 ms 23808 KB Output is correct
17 Correct 19 ms 23808 KB Output is correct
18 Correct 18 ms 23808 KB Output is correct
19 Correct 22 ms 23808 KB Output is correct
20 Correct 18 ms 23808 KB Output is correct
21 Correct 19 ms 23904 KB Output is correct
22 Correct 21 ms 23928 KB Output is correct
23 Correct 18 ms 23936 KB Output is correct
24 Correct 18 ms 23808 KB Output is correct
25 Correct 19 ms 23808 KB Output is correct
26 Correct 18 ms 23936 KB Output is correct
27 Correct 18 ms 23928 KB Output is correct
28 Correct 18 ms 23936 KB Output is correct
29 Correct 19 ms 23936 KB Output is correct
30 Correct 19 ms 23912 KB Output is correct
31 Correct 34 ms 23932 KB Output is correct
32 Correct 19 ms 23936 KB Output is correct
33 Correct 19 ms 23936 KB Output is correct
34 Correct 19 ms 23936 KB Output is correct
35 Correct 19 ms 23936 KB Output is correct
36 Correct 22 ms 23984 KB Output is correct
37 Correct 19 ms 23936 KB Output is correct
38 Correct 19 ms 23936 KB Output is correct
39 Correct 19 ms 23936 KB Output is correct
40 Correct 23 ms 23928 KB Output is correct
41 Correct 19 ms 23936 KB Output is correct
42 Correct 19 ms 24064 KB Output is correct
43 Correct 20 ms 23808 KB Output is correct
44 Correct 21 ms 23808 KB Output is correct
45 Correct 19 ms 23928 KB Output is correct
46 Correct 20 ms 23936 KB Output is correct
47 Correct 38 ms 23936 KB Output is correct
48 Correct 19 ms 23936 KB Output is correct
49 Correct 21 ms 23912 KB Output is correct
50 Correct 18 ms 23808 KB Output is correct
51 Correct 36 ms 23808 KB Output is correct
52 Correct 18 ms 23808 KB Output is correct
53 Correct 38 ms 23928 KB Output is correct
54 Correct 20 ms 23936 KB Output is correct
55 Correct 18 ms 23808 KB Output is correct
56 Correct 19 ms 23936 KB Output is correct
57 Correct 38 ms 23936 KB Output is correct
58 Correct 19 ms 23808 KB Output is correct
59 Correct 19 ms 23936 KB Output is correct
60 Correct 20 ms 23808 KB Output is correct
61 Correct 36 ms 23808 KB Output is correct
62 Correct 21 ms 23936 KB Output is correct
63 Correct 18 ms 23936 KB Output is correct
64 Correct 19 ms 23936 KB Output is correct
65 Correct 31 ms 23928 KB Output is correct
66 Correct 45 ms 23928 KB Output is correct
67 Correct 19 ms 23808 KB Output is correct
68 Correct 50 ms 30496 KB Output is correct
69 Correct 76 ms 37316 KB Output is correct
70 Correct 18 ms 23808 KB Output is correct
71 Correct 103 ms 44024 KB Output is correct
72 Correct 135 ms 50808 KB Output is correct
73 Correct 158 ms 57604 KB Output is correct
74 Correct 202 ms 64508 KB Output is correct
75 Correct 219 ms 71288 KB Output is correct
76 Correct 241 ms 77944 KB Output is correct
77 Correct 302 ms 84724 KB Output is correct
78 Correct 324 ms 91540 KB Output is correct
79 Correct 329 ms 98296 KB Output is correct
80 Correct 365 ms 105080 KB Output is correct
81 Correct 18 ms 23808 KB Output is correct
82 Correct 381 ms 111864 KB Output is correct
83 Correct 424 ms 118624 KB Output is correct
84 Correct 437 ms 125304 KB Output is correct
85 Correct 471 ms 132088 KB Output is correct
86 Correct 496 ms 138748 KB Output is correct
87 Correct 543 ms 145656 KB Output is correct
88 Correct 563 ms 152264 KB Output is correct
89 Correct 610 ms 159204 KB Output is correct
90 Correct 31 ms 23808 KB Output is correct
91 Correct 19 ms 23808 KB Output is correct
92 Correct 19 ms 23808 KB Output is correct
93 Correct 19 ms 23936 KB Output is correct
94 Correct 19 ms 23808 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 23808 KB Output is correct
2 Correct 19 ms 23808 KB Output is correct
3 Correct 22 ms 23936 KB Output is correct
4 Correct 19 ms 23936 KB Output is correct
5 Correct 18 ms 23936 KB Output is correct
6 Correct 19 ms 23936 KB Output is correct
7 Correct 25 ms 23936 KB Output is correct
8 Correct 17 ms 23808 KB Output is correct
9 Correct 24 ms 23808 KB Output is correct
10 Correct 17 ms 23936 KB Output is correct
11 Correct 22 ms 23936 KB Output is correct
12 Correct 17 ms 23840 KB Output is correct
13 Correct 17 ms 23808 KB Output is correct
14 Correct 22 ms 23936 KB Output is correct
15 Correct 20 ms 23936 KB Output is correct
16 Correct 18 ms 23808 KB Output is correct
17 Correct 19 ms 23808 KB Output is correct
18 Correct 18 ms 23808 KB Output is correct
19 Correct 22 ms 23808 KB Output is correct
20 Correct 18 ms 23808 KB Output is correct
21 Correct 19 ms 23904 KB Output is correct
22 Correct 21 ms 23928 KB Output is correct
23 Correct 18 ms 23936 KB Output is correct
24 Correct 18 ms 23808 KB Output is correct
25 Correct 19 ms 23808 KB Output is correct
26 Correct 18 ms 23936 KB Output is correct
27 Correct 18 ms 23928 KB Output is correct
28 Correct 18 ms 23936 KB Output is correct
29 Correct 19 ms 23936 KB Output is correct
30 Correct 19 ms 23912 KB Output is correct
31 Correct 34 ms 23932 KB Output is correct
32 Correct 19 ms 23936 KB Output is correct
33 Correct 19 ms 23936 KB Output is correct
34 Correct 19 ms 23936 KB Output is correct
35 Correct 19 ms 23936 KB Output is correct
36 Correct 22 ms 23984 KB Output is correct
37 Correct 19 ms 23936 KB Output is correct
38 Correct 19 ms 23936 KB Output is correct
39 Correct 19 ms 23936 KB Output is correct
40 Correct 23 ms 23928 KB Output is correct
41 Correct 19 ms 23936 KB Output is correct
42 Correct 19 ms 24064 KB Output is correct
43 Correct 20 ms 23808 KB Output is correct
44 Correct 21 ms 23808 KB Output is correct
45 Correct 19 ms 23928 KB Output is correct
46 Correct 20 ms 23936 KB Output is correct
47 Correct 38 ms 23936 KB Output is correct
48 Correct 19 ms 23936 KB Output is correct
49 Correct 18 ms 23936 KB Output is correct
50 Correct 18 ms 23808 KB Output is correct
51 Correct 19 ms 23808 KB Output is correct
52 Correct 18 ms 23936 KB Output is correct
53 Correct 46 ms 23808 KB Output is correct
54 Correct 18 ms 23936 KB Output is correct
55 Correct 19 ms 23936 KB Output is correct
56 Correct 21 ms 23936 KB Output is correct
57 Correct 18 ms 23808 KB Output is correct
58 Correct 18 ms 23808 KB Output is correct
59 Correct 19 ms 23808 KB Output is correct
60 Correct 19 ms 23808 KB Output is correct
61 Correct 19 ms 23808 KB Output is correct
62 Correct 18 ms 23936 KB Output is correct
63 Correct 18 ms 23936 KB Output is correct
64 Correct 21 ms 23808 KB Output is correct
65 Correct 18 ms 23808 KB Output is correct
66 Correct 19 ms 23912 KB Output is correct
67 Correct 34 ms 23800 KB Output is correct
68 Correct 19 ms 23936 KB Output is correct
69 Correct 18 ms 23808 KB Output is correct
70 Correct 19 ms 23936 KB Output is correct
71 Correct 20 ms 24016 KB Output is correct
72 Correct 22 ms 23936 KB Output is correct
73 Correct 18 ms 23936 KB Output is correct
74 Correct 20 ms 23800 KB Output is correct
75 Correct 18 ms 23808 KB Output is correct
76 Correct 20 ms 23808 KB Output is correct
77 Correct 36 ms 23936 KB Output is correct
78 Correct 18 ms 23936 KB Output is correct
79 Correct 20 ms 23936 KB Output is correct
80 Correct 18 ms 23936 KB Output is correct
81 Correct 19 ms 23808 KB Output is correct
82 Correct 18 ms 23936 KB Output is correct
83 Correct 18 ms 23936 KB Output is correct
84 Correct 19 ms 23936 KB Output is correct
85 Correct 19 ms 23936 KB Output is correct
86 Correct 19 ms 23936 KB Output is correct
87 Correct 19 ms 23936 KB Output is correct
88 Correct 24 ms 23936 KB Output is correct
89 Correct 28 ms 23896 KB Output is correct
90 Correct 19 ms 23936 KB Output is correct
91 Correct 19 ms 23932 KB Output is correct
92 Correct 18 ms 23808 KB Output is correct
93 Correct 20 ms 23936 KB Output is correct
94 Correct 19 ms 23936 KB Output is correct
95 Correct 19 ms 24064 KB Output is correct
96 Correct 18 ms 23936 KB Output is correct
97 Correct 18 ms 23936 KB Output is correct
98 Correct 18 ms 23808 KB Output is correct
99 Correct 19 ms 23808 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 19 ms 23808 KB Output is correct
2 Correct 19 ms 23808 KB Output is correct
3 Correct 22 ms 23936 KB Output is correct
4 Correct 19 ms 23936 KB Output is correct
5 Correct 18 ms 23936 KB Output is correct
6 Correct 19 ms 23936 KB Output is correct
7 Correct 25 ms 23936 KB Output is correct
8 Correct 17 ms 23808 KB Output is correct
9 Correct 24 ms 23808 KB Output is correct
10 Correct 17 ms 23936 KB Output is correct
11 Correct 22 ms 23936 KB Output is correct
12 Correct 17 ms 23840 KB Output is correct
13 Correct 17 ms 23808 KB Output is correct
14 Correct 22 ms 23936 KB Output is correct
15 Correct 20 ms 23936 KB Output is correct
16 Correct 18 ms 23808 KB Output is correct
17 Correct 19 ms 23808 KB Output is correct
18 Correct 18 ms 23808 KB Output is correct
19 Correct 22 ms 23808 KB Output is correct
20 Correct 18 ms 23808 KB Output is correct
21 Correct 19 ms 23904 KB Output is correct
22 Correct 21 ms 23928 KB Output is correct
23 Correct 18 ms 23936 KB Output is correct
24 Correct 18 ms 23808 KB Output is correct
25 Correct 19 ms 23808 KB Output is correct
26 Correct 18 ms 23936 KB Output is correct
27 Correct 18 ms 23928 KB Output is correct
28 Correct 18 ms 23936 KB Output is correct
29 Correct 19 ms 23936 KB Output is correct
30 Correct 19 ms 23912 KB Output is correct
31 Correct 34 ms 23932 KB Output is correct
32 Correct 19 ms 23936 KB Output is correct
33 Correct 19 ms 23936 KB Output is correct
34 Correct 19 ms 23936 KB Output is correct
35 Correct 19 ms 23936 KB Output is correct
36 Correct 22 ms 23984 KB Output is correct
37 Correct 19 ms 23936 KB Output is correct
38 Correct 19 ms 23936 KB Output is correct
39 Correct 19 ms 23936 KB Output is correct
40 Correct 23 ms 23928 KB Output is correct
41 Correct 19 ms 23936 KB Output is correct
42 Correct 19 ms 24064 KB Output is correct
43 Correct 20 ms 23808 KB Output is correct
44 Correct 21 ms 23808 KB Output is correct
45 Correct 19 ms 23928 KB Output is correct
46 Correct 20 ms 23936 KB Output is correct
47 Correct 38 ms 23936 KB Output is correct
48 Correct 19 ms 23936 KB Output is correct
49 Correct 21 ms 23912 KB Output is correct
50 Correct 18 ms 23808 KB Output is correct
51 Correct 36 ms 23808 KB Output is correct
52 Correct 18 ms 23808 KB Output is correct
53 Correct 38 ms 23928 KB Output is correct
54 Correct 20 ms 23936 KB Output is correct
55 Correct 18 ms 23808 KB Output is correct
56 Correct 19 ms 23936 KB Output is correct
57 Correct 38 ms 23936 KB Output is correct
58 Correct 19 ms 23808 KB Output is correct
59 Correct 19 ms 23936 KB Output is correct
60 Correct 20 ms 23808 KB Output is correct
61 Correct 36 ms 23808 KB Output is correct
62 Correct 21 ms 23936 KB Output is correct
63 Correct 18 ms 23936 KB Output is correct
64 Correct 19 ms 23936 KB Output is correct
65 Correct 31 ms 23928 KB Output is correct
66 Correct 45 ms 23928 KB Output is correct
67 Correct 19 ms 23808 KB Output is correct
68 Correct 50 ms 30496 KB Output is correct
69 Correct 76 ms 37316 KB Output is correct
70 Correct 18 ms 23808 KB Output is correct
71 Correct 103 ms 44024 KB Output is correct
72 Correct 135 ms 50808 KB Output is correct
73 Correct 158 ms 57604 KB Output is correct
74 Correct 202 ms 64508 KB Output is correct
75 Correct 219 ms 71288 KB Output is correct
76 Correct 241 ms 77944 KB Output is correct
77 Correct 302 ms 84724 KB Output is correct
78 Correct 324 ms 91540 KB Output is correct
79 Correct 329 ms 98296 KB Output is correct
80 Correct 365 ms 105080 KB Output is correct
81 Correct 18 ms 23808 KB Output is correct
82 Correct 381 ms 111864 KB Output is correct
83 Correct 424 ms 118624 KB Output is correct
84 Correct 437 ms 125304 KB Output is correct
85 Correct 471 ms 132088 KB Output is correct
86 Correct 496 ms 138748 KB Output is correct
87 Correct 543 ms 145656 KB Output is correct
88 Correct 563 ms 152264 KB Output is correct
89 Correct 610 ms 159204 KB Output is correct
90 Correct 31 ms 23808 KB Output is correct
91 Correct 19 ms 23808 KB Output is correct
92 Correct 19 ms 23808 KB Output is correct
93 Correct 19 ms 23936 KB Output is correct
94 Correct 19 ms 23808 KB Output is correct
95 Correct 19 ms 23936 KB Output is correct
96 Correct 18 ms 23936 KB Output is correct
97 Correct 18 ms 23808 KB Output is correct
98 Correct 19 ms 23808 KB Output is correct
99 Correct 18 ms 23936 KB Output is correct
100 Correct 46 ms 23808 KB Output is correct
101 Correct 18 ms 23936 KB Output is correct
102 Correct 19 ms 23936 KB Output is correct
103 Correct 21 ms 23936 KB Output is correct
104 Correct 18 ms 23808 KB Output is correct
105 Correct 18 ms 23808 KB Output is correct
106 Correct 19 ms 23808 KB Output is correct
107 Correct 19 ms 23808 KB Output is correct
108 Correct 19 ms 23808 KB Output is correct
109 Correct 18 ms 23936 KB Output is correct
110 Correct 18 ms 23936 KB Output is correct
111 Correct 21 ms 23808 KB Output is correct
112 Correct 18 ms 23808 KB Output is correct
113 Correct 19 ms 23912 KB Output is correct
114 Correct 34 ms 23800 KB Output is correct
115 Correct 19 ms 23936 KB Output is correct
116 Correct 18 ms 23808 KB Output is correct
117 Correct 19 ms 23936 KB Output is correct
118 Correct 20 ms 24016 KB Output is correct
119 Correct 22 ms 23936 KB Output is correct
120 Correct 18 ms 23936 KB Output is correct
121 Correct 20 ms 23800 KB Output is correct
122 Correct 18 ms 23808 KB Output is correct
123 Correct 20 ms 23808 KB Output is correct
124 Correct 36 ms 23936 KB Output is correct
125 Correct 18 ms 23936 KB Output is correct
126 Correct 20 ms 23936 KB Output is correct
127 Correct 18 ms 23936 KB Output is correct
128 Correct 19 ms 23808 KB Output is correct
129 Correct 18 ms 23936 KB Output is correct
130 Correct 18 ms 23936 KB Output is correct
131 Correct 19 ms 23936 KB Output is correct
132 Correct 19 ms 23936 KB Output is correct
133 Correct 19 ms 23936 KB Output is correct
134 Correct 19 ms 23936 KB Output is correct
135 Correct 24 ms 23936 KB Output is correct
136 Correct 28 ms 23896 KB Output is correct
137 Correct 19 ms 23936 KB Output is correct
138 Correct 19 ms 23932 KB Output is correct
139 Correct 18 ms 23808 KB Output is correct
140 Correct 20 ms 23936 KB Output is correct
141 Correct 19 ms 23936 KB Output is correct
142 Correct 19 ms 24064 KB Output is correct
143 Correct 18 ms 23936 KB Output is correct
144 Correct 18 ms 23936 KB Output is correct
145 Correct 18 ms 23808 KB Output is correct
146 Correct 19 ms 23808 KB Output is correct
147 Correct 18 ms 23936 KB Output is correct
148 Correct 18 ms 23936 KB Output is correct
149 Correct 19 ms 23808 KB Output is correct
150 Correct 18 ms 23808 KB Output is correct
151 Correct 18 ms 23936 KB Output is correct
152 Correct 18 ms 23808 KB Output is correct
153 Correct 18 ms 23808 KB Output is correct
154 Correct 28 ms 23800 KB Output is correct
155 Correct 19 ms 23808 KB Output is correct
156 Correct 18 ms 23856 KB Output is correct
157 Correct 22 ms 23936 KB Output is correct
158 Correct 24 ms 23808 KB Output is correct
159 Correct 24 ms 23808 KB Output is correct
160 Correct 18 ms 23808 KB Output is correct
161 Correct 18 ms 23936 KB Output is correct
162 Correct 18 ms 23936 KB Output is correct
163 Correct 19 ms 23936 KB Output is correct
164 Correct 19 ms 23936 KB Output is correct
165 Correct 31 ms 23808 KB Output is correct
166 Correct 19 ms 23936 KB Output is correct
167 Correct 18 ms 23936 KB Output is correct
168 Correct 18 ms 23936 KB Output is correct
169 Correct 19 ms 23936 KB Output is correct
170 Correct 37 ms 23928 KB Output is correct
171 Correct 59 ms 27512 KB Output is correct
172 Correct 100 ms 31096 KB Output is correct
173 Correct 165 ms 34764 KB Output is correct
174 Correct 233 ms 38392 KB Output is correct
175 Correct 295 ms 42104 KB Output is correct
176 Correct 348 ms 45948 KB Output is correct
177 Correct 432 ms 49488 KB Output is correct
178 Correct 491 ms 53112 KB Output is correct
179 Correct 580 ms 56824 KB Output is correct
180 Correct 19 ms 23808 KB Output is correct
181 Correct 641 ms 60408 KB Output is correct
182 Correct 685 ms 64248 KB Output is correct
183 Correct 754 ms 67760 KB Output is correct
184 Correct 892 ms 71468 KB Output is correct
185 Correct 908 ms 74996 KB Output is correct
186 Correct 959 ms 78712 KB Output is correct
187 Correct 1070 ms 82332 KB Output is correct
188 Correct 1105 ms 86084 KB Output is correct
189 Correct 1185 ms 89820 KB Output is correct
190 Correct 1228 ms 93412 KB Output is correct
191 Correct 18 ms 23808 KB Output is correct
192 Correct 1305 ms 97004 KB Output is correct
193 Correct 300 ms 90104 KB Output is correct
194 Correct 623 ms 156784 KB Output is correct
195 Correct 18 ms 23808 KB Output is correct
196 Correct 19 ms 23936 KB Output is correct
197 Correct 18 ms 23896 KB Output is correct
198 Correct 18 ms 23808 KB Output is correct