Submission #1088837

# Submission time Handle Problem Language Result Execution time Memory
1088837 2024-09-15T09:39:13 Z StefanSebez Traffic (IOI10_traffic) C++14
100 / 100
870 ms 194336 KB
#include "traffic.h"
#include<bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define pb push_back
#define ll long long
#define ld long double
const int N=1e6+50;
const ll inf=1e18;
vector<int>E[N];
int a[N],par[N],ind;
ll dp[N],dp1[N],sajz[N],res=inf;
void DFS1(int u,int parent){
	par[u]=parent;
	sajz[u]=a[u];
	for(auto i:E[u]){
		if(i==parent) continue;
		DFS1(i,u);
		sajz[u]+=sajz[i];
		dp[u]+=dp[i]+sajz[i];
	}
}
void DFS(int u){
	int v=par[u];
	if(u!=0) dp1[u]=dp1[v]+dp[v]-dp[u]-sajz[u]+sajz[0]-sajz[u];
	if(res>dp[u]+dp1[u]) ind=u;
	res=min(res,dp[u]+dp1[u]);
	for(auto i:E[u]){
		if(i==par[u]) continue;
		DFS(i);
	}
}
int LocateCentre(int n, int pp[], int S[], int D[]) {
	for(int i=0;i<n;i++) a[i]=pp[i];
	for(int i=0;i<n-1;i++){E[S[i]].pb(D[i]),E[D[i]].pb(S[i]);}
	DFS1(0,-1);
	DFS(0);
	//for(int i=0;i<n;i++) {for(auto j:E[i]) printf("%i ",j);printf("\n");}
	//for(int i=0;i<n;i++) printf("%i: %lld %lld %lld\n",i,dp[i],dp1[i],sajz[i]);
	return ind;
}
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23900 KB Output is correct
2 Correct 9 ms 23900 KB Output is correct
3 Correct 9 ms 23928 KB Output is correct
4 Correct 9 ms 23956 KB Output is correct
5 Correct 9 ms 23984 KB Output is correct
6 Correct 9 ms 23900 KB Output is correct
7 Correct 9 ms 23900 KB Output is correct
8 Correct 9 ms 23900 KB Output is correct
9 Correct 10 ms 23900 KB Output is correct
10 Correct 15 ms 23764 KB Output is correct
11 Correct 10 ms 23896 KB Output is correct
12 Correct 10 ms 23900 KB Output is correct
13 Correct 10 ms 23900 KB Output is correct
14 Correct 10 ms 23896 KB Output is correct
15 Correct 10 ms 23868 KB Output is correct
16 Correct 9 ms 23900 KB Output is correct
17 Correct 10 ms 23980 KB Output is correct
18 Correct 10 ms 23968 KB Output is correct
19 Correct 10 ms 23896 KB Output is correct
20 Correct 10 ms 23900 KB Output is correct
21 Correct 10 ms 23900 KB Output is correct
22 Correct 9 ms 24000 KB Output is correct
23 Correct 10 ms 23896 KB Output is correct
24 Correct 9 ms 23760 KB Output is correct
25 Correct 12 ms 24152 KB Output is correct
26 Correct 12 ms 23896 KB Output is correct
27 Correct 10 ms 23896 KB Output is correct
28 Correct 10 ms 23900 KB Output is correct
29 Correct 10 ms 23860 KB Output is correct
30 Correct 10 ms 23896 KB Output is correct
31 Correct 10 ms 23900 KB Output is correct
32 Correct 10 ms 23900 KB Output is correct
33 Correct 10 ms 24068 KB Output is correct
34 Correct 10 ms 23872 KB Output is correct
35 Correct 10 ms 23900 KB Output is correct
36 Correct 10 ms 23900 KB Output is correct
37 Correct 9 ms 24100 KB Output is correct
38 Correct 9 ms 23900 KB Output is correct
39 Correct 12 ms 24064 KB Output is correct
40 Correct 10 ms 23900 KB Output is correct
41 Correct 9 ms 23992 KB Output is correct
42 Correct 10 ms 23900 KB Output is correct
43 Correct 10 ms 23896 KB Output is correct
44 Correct 10 ms 23856 KB Output is correct
45 Correct 9 ms 23928 KB Output is correct
46 Correct 9 ms 23900 KB Output is correct
47 Correct 9 ms 23900 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23900 KB Output is correct
2 Correct 9 ms 23900 KB Output is correct
3 Correct 9 ms 23928 KB Output is correct
4 Correct 9 ms 23956 KB Output is correct
5 Correct 9 ms 23984 KB Output is correct
6 Correct 9 ms 23900 KB Output is correct
7 Correct 9 ms 23900 KB Output is correct
8 Correct 9 ms 23900 KB Output is correct
9 Correct 10 ms 23900 KB Output is correct
10 Correct 15 ms 23764 KB Output is correct
11 Correct 10 ms 23896 KB Output is correct
12 Correct 10 ms 23900 KB Output is correct
13 Correct 10 ms 23900 KB Output is correct
14 Correct 10 ms 23896 KB Output is correct
15 Correct 10 ms 23868 KB Output is correct
16 Correct 9 ms 23900 KB Output is correct
17 Correct 10 ms 23980 KB Output is correct
18 Correct 10 ms 23968 KB Output is correct
19 Correct 10 ms 23896 KB Output is correct
20 Correct 10 ms 23900 KB Output is correct
21 Correct 10 ms 23900 KB Output is correct
22 Correct 9 ms 24000 KB Output is correct
23 Correct 10 ms 23896 KB Output is correct
24 Correct 9 ms 23760 KB Output is correct
25 Correct 12 ms 24152 KB Output is correct
26 Correct 12 ms 23896 KB Output is correct
27 Correct 10 ms 23896 KB Output is correct
28 Correct 10 ms 23900 KB Output is correct
29 Correct 10 ms 23860 KB Output is correct
30 Correct 10 ms 23896 KB Output is correct
31 Correct 10 ms 23900 KB Output is correct
32 Correct 10 ms 23900 KB Output is correct
33 Correct 10 ms 24068 KB Output is correct
34 Correct 10 ms 23872 KB Output is correct
35 Correct 10 ms 23900 KB Output is correct
36 Correct 10 ms 23900 KB Output is correct
37 Correct 9 ms 24100 KB Output is correct
38 Correct 9 ms 23900 KB Output is correct
39 Correct 12 ms 24064 KB Output is correct
40 Correct 10 ms 23900 KB Output is correct
41 Correct 9 ms 23992 KB Output is correct
42 Correct 10 ms 23900 KB Output is correct
43 Correct 10 ms 23896 KB Output is correct
44 Correct 10 ms 23856 KB Output is correct
45 Correct 9 ms 23928 KB Output is correct
46 Correct 9 ms 23900 KB Output is correct
47 Correct 9 ms 23900 KB Output is correct
48 Correct 10 ms 23900 KB Output is correct
49 Correct 10 ms 23900 KB Output is correct
50 Correct 9 ms 23900 KB Output is correct
51 Correct 10 ms 23900 KB Output is correct
52 Correct 9 ms 23900 KB Output is correct
53 Correct 9 ms 23900 KB Output is correct
54 Correct 10 ms 23896 KB Output is correct
55 Correct 10 ms 23972 KB Output is correct
56 Correct 10 ms 23900 KB Output is correct
57 Correct 9 ms 23900 KB Output is correct
58 Correct 10 ms 23780 KB Output is correct
59 Correct 9 ms 23900 KB Output is correct
60 Correct 9 ms 23900 KB Output is correct
61 Correct 10 ms 23868 KB Output is correct
62 Correct 10 ms 23900 KB Output is correct
63 Correct 9 ms 23900 KB Output is correct
64 Correct 10 ms 23900 KB Output is correct
65 Correct 9 ms 23748 KB Output is correct
66 Correct 10 ms 23900 KB Output is correct
67 Correct 10 ms 23956 KB Output is correct
68 Correct 24 ms 32228 KB Output is correct
69 Correct 39 ms 40808 KB Output is correct
70 Correct 10 ms 23900 KB Output is correct
71 Correct 58 ms 49260 KB Output is correct
72 Correct 71 ms 57936 KB Output is correct
73 Correct 88 ms 66384 KB Output is correct
74 Correct 106 ms 74832 KB Output is correct
75 Correct 117 ms 83540 KB Output is correct
76 Correct 137 ms 91984 KB Output is correct
77 Correct 152 ms 100436 KB Output is correct
78 Correct 178 ms 108972 KB Output is correct
79 Correct 180 ms 117592 KB Output is correct
80 Correct 205 ms 126224 KB Output is correct
81 Correct 9 ms 23900 KB Output is correct
82 Correct 230 ms 134984 KB Output is correct
83 Correct 273 ms 143184 KB Output is correct
84 Correct 245 ms 151648 KB Output is correct
85 Correct 254 ms 160288 KB Output is correct
86 Correct 274 ms 168788 KB Output is correct
87 Correct 293 ms 177148 KB Output is correct
88 Correct 326 ms 185860 KB Output is correct
89 Correct 355 ms 194336 KB Output is correct
90 Correct 9 ms 23896 KB Output is correct
91 Correct 9 ms 23900 KB Output is correct
92 Correct 9 ms 23912 KB Output is correct
93 Correct 10 ms 23872 KB Output is correct
94 Correct 10 ms 23900 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23900 KB Output is correct
2 Correct 9 ms 23900 KB Output is correct
3 Correct 9 ms 23928 KB Output is correct
4 Correct 9 ms 23956 KB Output is correct
5 Correct 9 ms 23984 KB Output is correct
6 Correct 9 ms 23900 KB Output is correct
7 Correct 9 ms 23900 KB Output is correct
8 Correct 9 ms 23900 KB Output is correct
9 Correct 10 ms 23900 KB Output is correct
10 Correct 15 ms 23764 KB Output is correct
11 Correct 10 ms 23896 KB Output is correct
12 Correct 10 ms 23900 KB Output is correct
13 Correct 10 ms 23900 KB Output is correct
14 Correct 10 ms 23896 KB Output is correct
15 Correct 10 ms 23868 KB Output is correct
16 Correct 9 ms 23900 KB Output is correct
17 Correct 10 ms 23980 KB Output is correct
18 Correct 10 ms 23968 KB Output is correct
19 Correct 10 ms 23896 KB Output is correct
20 Correct 10 ms 23900 KB Output is correct
21 Correct 10 ms 23900 KB Output is correct
22 Correct 9 ms 24000 KB Output is correct
23 Correct 10 ms 23896 KB Output is correct
24 Correct 9 ms 23760 KB Output is correct
25 Correct 12 ms 24152 KB Output is correct
26 Correct 12 ms 23896 KB Output is correct
27 Correct 10 ms 23896 KB Output is correct
28 Correct 10 ms 23900 KB Output is correct
29 Correct 10 ms 23860 KB Output is correct
30 Correct 10 ms 23896 KB Output is correct
31 Correct 10 ms 23900 KB Output is correct
32 Correct 10 ms 23900 KB Output is correct
33 Correct 10 ms 24068 KB Output is correct
34 Correct 10 ms 23872 KB Output is correct
35 Correct 10 ms 23900 KB Output is correct
36 Correct 10 ms 23900 KB Output is correct
37 Correct 9 ms 24100 KB Output is correct
38 Correct 9 ms 23900 KB Output is correct
39 Correct 12 ms 24064 KB Output is correct
40 Correct 10 ms 23900 KB Output is correct
41 Correct 9 ms 23992 KB Output is correct
42 Correct 10 ms 23900 KB Output is correct
43 Correct 10 ms 23896 KB Output is correct
44 Correct 10 ms 23856 KB Output is correct
45 Correct 9 ms 23928 KB Output is correct
46 Correct 9 ms 23900 KB Output is correct
47 Correct 9 ms 23900 KB Output is correct
48 Correct 9 ms 23896 KB Output is correct
49 Correct 10 ms 24152 KB Output is correct
50 Correct 10 ms 23900 KB Output is correct
51 Correct 9 ms 23856 KB Output is correct
52 Correct 10 ms 23900 KB Output is correct
53 Correct 10 ms 23900 KB Output is correct
54 Correct 9 ms 23900 KB Output is correct
55 Correct 10 ms 23900 KB Output is correct
56 Correct 10 ms 23900 KB Output is correct
57 Correct 14 ms 23900 KB Output is correct
58 Correct 10 ms 23900 KB Output is correct
59 Correct 14 ms 23976 KB Output is correct
60 Correct 10 ms 23928 KB Output is correct
61 Correct 10 ms 23800 KB Output is correct
62 Correct 9 ms 23900 KB Output is correct
63 Correct 10 ms 23808 KB Output is correct
64 Correct 10 ms 23900 KB Output is correct
65 Correct 11 ms 23900 KB Output is correct
66 Correct 10 ms 23900 KB Output is correct
67 Correct 10 ms 23900 KB Output is correct
68 Correct 11 ms 23972 KB Output is correct
69 Correct 9 ms 23900 KB Output is correct
70 Correct 10 ms 23904 KB Output is correct
71 Correct 9 ms 23900 KB Output is correct
72 Correct 10 ms 23840 KB Output is correct
73 Correct 10 ms 23996 KB Output is correct
74 Correct 9 ms 23896 KB Output is correct
75 Correct 9 ms 23872 KB Output is correct
76 Correct 10 ms 23900 KB Output is correct
77 Correct 10 ms 23900 KB Output is correct
78 Correct 10 ms 23876 KB Output is correct
79 Correct 10 ms 23900 KB Output is correct
80 Correct 9 ms 23900 KB Output is correct
81 Correct 10 ms 23900 KB Output is correct
82 Correct 11 ms 23900 KB Output is correct
83 Correct 11 ms 23812 KB Output is correct
84 Correct 9 ms 23900 KB Output is correct
85 Correct 10 ms 23900 KB Output is correct
86 Correct 9 ms 23900 KB Output is correct
87 Correct 10 ms 24048 KB Output is correct
88 Correct 11 ms 23900 KB Output is correct
89 Correct 10 ms 23944 KB Output is correct
90 Correct 10 ms 23896 KB Output is correct
91 Correct 9 ms 23896 KB Output is correct
92 Correct 9 ms 23804 KB Output is correct
93 Correct 9 ms 23896 KB Output is correct
94 Correct 9 ms 23900 KB Output is correct
95 Correct 10 ms 23900 KB Output is correct
96 Correct 10 ms 23900 KB Output is correct
97 Correct 9 ms 23900 KB Output is correct
98 Correct 9 ms 23900 KB Output is correct
99 Correct 9 ms 23896 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 9 ms 23900 KB Output is correct
2 Correct 9 ms 23900 KB Output is correct
3 Correct 9 ms 23928 KB Output is correct
4 Correct 9 ms 23956 KB Output is correct
5 Correct 9 ms 23984 KB Output is correct
6 Correct 9 ms 23900 KB Output is correct
7 Correct 9 ms 23900 KB Output is correct
8 Correct 9 ms 23900 KB Output is correct
9 Correct 10 ms 23900 KB Output is correct
10 Correct 15 ms 23764 KB Output is correct
11 Correct 10 ms 23896 KB Output is correct
12 Correct 10 ms 23900 KB Output is correct
13 Correct 10 ms 23900 KB Output is correct
14 Correct 10 ms 23896 KB Output is correct
15 Correct 10 ms 23868 KB Output is correct
16 Correct 9 ms 23900 KB Output is correct
17 Correct 10 ms 23980 KB Output is correct
18 Correct 10 ms 23968 KB Output is correct
19 Correct 10 ms 23896 KB Output is correct
20 Correct 10 ms 23900 KB Output is correct
21 Correct 10 ms 23900 KB Output is correct
22 Correct 9 ms 24000 KB Output is correct
23 Correct 10 ms 23896 KB Output is correct
24 Correct 9 ms 23760 KB Output is correct
25 Correct 12 ms 24152 KB Output is correct
26 Correct 12 ms 23896 KB Output is correct
27 Correct 10 ms 23896 KB Output is correct
28 Correct 10 ms 23900 KB Output is correct
29 Correct 10 ms 23860 KB Output is correct
30 Correct 10 ms 23896 KB Output is correct
31 Correct 10 ms 23900 KB Output is correct
32 Correct 10 ms 23900 KB Output is correct
33 Correct 10 ms 24068 KB Output is correct
34 Correct 10 ms 23872 KB Output is correct
35 Correct 10 ms 23900 KB Output is correct
36 Correct 10 ms 23900 KB Output is correct
37 Correct 9 ms 24100 KB Output is correct
38 Correct 9 ms 23900 KB Output is correct
39 Correct 12 ms 24064 KB Output is correct
40 Correct 10 ms 23900 KB Output is correct
41 Correct 9 ms 23992 KB Output is correct
42 Correct 10 ms 23900 KB Output is correct
43 Correct 10 ms 23896 KB Output is correct
44 Correct 10 ms 23856 KB Output is correct
45 Correct 9 ms 23928 KB Output is correct
46 Correct 9 ms 23900 KB Output is correct
47 Correct 9 ms 23900 KB Output is correct
48 Correct 10 ms 23900 KB Output is correct
49 Correct 10 ms 23900 KB Output is correct
50 Correct 9 ms 23900 KB Output is correct
51 Correct 10 ms 23900 KB Output is correct
52 Correct 9 ms 23900 KB Output is correct
53 Correct 9 ms 23900 KB Output is correct
54 Correct 10 ms 23896 KB Output is correct
55 Correct 10 ms 23972 KB Output is correct
56 Correct 10 ms 23900 KB Output is correct
57 Correct 9 ms 23900 KB Output is correct
58 Correct 10 ms 23780 KB Output is correct
59 Correct 9 ms 23900 KB Output is correct
60 Correct 9 ms 23900 KB Output is correct
61 Correct 10 ms 23868 KB Output is correct
62 Correct 10 ms 23900 KB Output is correct
63 Correct 9 ms 23900 KB Output is correct
64 Correct 10 ms 23900 KB Output is correct
65 Correct 9 ms 23748 KB Output is correct
66 Correct 10 ms 23900 KB Output is correct
67 Correct 10 ms 23956 KB Output is correct
68 Correct 24 ms 32228 KB Output is correct
69 Correct 39 ms 40808 KB Output is correct
70 Correct 10 ms 23900 KB Output is correct
71 Correct 58 ms 49260 KB Output is correct
72 Correct 71 ms 57936 KB Output is correct
73 Correct 88 ms 66384 KB Output is correct
74 Correct 106 ms 74832 KB Output is correct
75 Correct 117 ms 83540 KB Output is correct
76 Correct 137 ms 91984 KB Output is correct
77 Correct 152 ms 100436 KB Output is correct
78 Correct 178 ms 108972 KB Output is correct
79 Correct 180 ms 117592 KB Output is correct
80 Correct 205 ms 126224 KB Output is correct
81 Correct 9 ms 23900 KB Output is correct
82 Correct 230 ms 134984 KB Output is correct
83 Correct 273 ms 143184 KB Output is correct
84 Correct 245 ms 151648 KB Output is correct
85 Correct 254 ms 160288 KB Output is correct
86 Correct 274 ms 168788 KB Output is correct
87 Correct 293 ms 177148 KB Output is correct
88 Correct 326 ms 185860 KB Output is correct
89 Correct 355 ms 194336 KB Output is correct
90 Correct 9 ms 23896 KB Output is correct
91 Correct 9 ms 23900 KB Output is correct
92 Correct 9 ms 23912 KB Output is correct
93 Correct 10 ms 23872 KB Output is correct
94 Correct 10 ms 23900 KB Output is correct
95 Correct 9 ms 23896 KB Output is correct
96 Correct 10 ms 24152 KB Output is correct
97 Correct 10 ms 23900 KB Output is correct
98 Correct 9 ms 23856 KB Output is correct
99 Correct 10 ms 23900 KB Output is correct
100 Correct 10 ms 23900 KB Output is correct
101 Correct 9 ms 23900 KB Output is correct
102 Correct 10 ms 23900 KB Output is correct
103 Correct 10 ms 23900 KB Output is correct
104 Correct 14 ms 23900 KB Output is correct
105 Correct 10 ms 23900 KB Output is correct
106 Correct 14 ms 23976 KB Output is correct
107 Correct 10 ms 23928 KB Output is correct
108 Correct 10 ms 23800 KB Output is correct
109 Correct 9 ms 23900 KB Output is correct
110 Correct 10 ms 23808 KB Output is correct
111 Correct 10 ms 23900 KB Output is correct
112 Correct 11 ms 23900 KB Output is correct
113 Correct 10 ms 23900 KB Output is correct
114 Correct 10 ms 23900 KB Output is correct
115 Correct 11 ms 23972 KB Output is correct
116 Correct 9 ms 23900 KB Output is correct
117 Correct 10 ms 23904 KB Output is correct
118 Correct 9 ms 23900 KB Output is correct
119 Correct 10 ms 23840 KB Output is correct
120 Correct 10 ms 23996 KB Output is correct
121 Correct 9 ms 23896 KB Output is correct
122 Correct 9 ms 23872 KB Output is correct
123 Correct 10 ms 23900 KB Output is correct
124 Correct 10 ms 23900 KB Output is correct
125 Correct 10 ms 23876 KB Output is correct
126 Correct 10 ms 23900 KB Output is correct
127 Correct 9 ms 23900 KB Output is correct
128 Correct 10 ms 23900 KB Output is correct
129 Correct 11 ms 23900 KB Output is correct
130 Correct 11 ms 23812 KB Output is correct
131 Correct 9 ms 23900 KB Output is correct
132 Correct 10 ms 23900 KB Output is correct
133 Correct 9 ms 23900 KB Output is correct
134 Correct 10 ms 24048 KB Output is correct
135 Correct 11 ms 23900 KB Output is correct
136 Correct 10 ms 23944 KB Output is correct
137 Correct 10 ms 23896 KB Output is correct
138 Correct 9 ms 23896 KB Output is correct
139 Correct 9 ms 23804 KB Output is correct
140 Correct 9 ms 23896 KB Output is correct
141 Correct 9 ms 23900 KB Output is correct
142 Correct 10 ms 23900 KB Output is correct
143 Correct 10 ms 23900 KB Output is correct
144 Correct 9 ms 23900 KB Output is correct
145 Correct 9 ms 23900 KB Output is correct
146 Correct 9 ms 23896 KB Output is correct
147 Correct 9 ms 23900 KB Output is correct
148 Correct 9 ms 23900 KB Output is correct
149 Correct 9 ms 23896 KB Output is correct
150 Correct 9 ms 23900 KB Output is correct
151 Correct 9 ms 23928 KB Output is correct
152 Correct 9 ms 23900 KB Output is correct
153 Correct 9 ms 23900 KB Output is correct
154 Correct 9 ms 23900 KB Output is correct
155 Correct 9 ms 23896 KB Output is correct
156 Correct 9 ms 23896 KB Output is correct
157 Correct 13 ms 23900 KB Output is correct
158 Correct 9 ms 23752 KB Output is correct
159 Correct 9 ms 23900 KB Output is correct
160 Correct 9 ms 23876 KB Output is correct
161 Correct 9 ms 23900 KB Output is correct
162 Correct 9 ms 23900 KB Output is correct
163 Correct 10 ms 23796 KB Output is correct
164 Correct 11 ms 23900 KB Output is correct
165 Correct 9 ms 23896 KB Output is correct
166 Correct 10 ms 23956 KB Output is correct
167 Correct 10 ms 23900 KB Output is correct
168 Correct 11 ms 23816 KB Output is correct
169 Correct 9 ms 23900 KB Output is correct
170 Correct 10 ms 23984 KB Output is correct
171 Correct 30 ms 28404 KB Output is correct
172 Correct 47 ms 33104 KB Output is correct
173 Correct 80 ms 37716 KB Output is correct
174 Correct 101 ms 42320 KB Output is correct
175 Correct 121 ms 47072 KB Output is correct
176 Correct 151 ms 51840 KB Output is correct
177 Correct 179 ms 56404 KB Output is correct
178 Correct 238 ms 61008 KB Output is correct
179 Correct 287 ms 65544 KB Output is correct
180 Correct 9 ms 23900 KB Output is correct
181 Correct 306 ms 70272 KB Output is correct
182 Correct 345 ms 74876 KB Output is correct
183 Correct 390 ms 79444 KB Output is correct
184 Correct 471 ms 84288 KB Output is correct
185 Correct 525 ms 88656 KB Output is correct
186 Correct 556 ms 93520 KB Output is correct
187 Correct 649 ms 98028 KB Output is correct
188 Correct 643 ms 102908 KB Output is correct
189 Correct 681 ms 107344 KB Output is correct
190 Correct 795 ms 111956 KB Output is correct
191 Correct 11 ms 23900 KB Output is correct
192 Correct 870 ms 116528 KB Output is correct
193 Correct 177 ms 107732 KB Output is correct
194 Correct 336 ms 191976 KB Output is correct
195 Correct 10 ms 23896 KB Output is correct
196 Correct 10 ms 23932 KB Output is correct
197 Correct 11 ms 23900 KB Output is correct
198 Correct 10 ms 23896 KB Output is correct