Submission #414129

# Submission time Handle Problem Language Result Execution time Memory
414129 2021-05-30T06:21:33 Z O_o Traffic (IOI10_traffic) C++14
100 / 100
1202 ms 186444 KB
#include "traffic.h"
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define ld long double

#define rep(i,a,b) for(int i=a;i<b;i++)
#define repb(i,a,b) for(int i=a;i>=b;i--)

#define pb push_back
#define mp make_pair
#define all(A) A.begin(),A.end()
#define allr(A) A.rbegin(),A.rend()
#define precise(i) fixed << setprecision(i)
#define fi first
#define se second
#define sz(x) ((int)(x).size())

#define err() cout<<"\n==================================\n";
#define errA(A) for(auto i:A) cout<<i<<" "; cout<<"\n";
#define err1(a) cout<<#a<<" "<<a<<"\n";
#define err2(a,b) cout<<#a<<" "<<a<<" "<<#b<<" "<<b<<"\n";
#define err3(a,b,c) cout<<#a<<" "<<a<<" "<<#b<<" "<<b<<" "<<#c<<" "<<c<<"\n";
#define err4(a,b,c,d) cout<<#a<<" "<<a<<" "<<#b<<" "<<b<<" "<<#c<<" "<<c<<" "<<#d<<" "<<d<<"\n";

#define Pii pair<int,int>
#define Vi vector<ll>
#define Vpii vector<Pii>

Vi adj[1000003];
Vi loc(1000003);
Vi ans(1000003);
Vi subtree(1000003);
ll tot;

void dfs(int x, int p)
{
	subtree[x]+= loc[x];
	for(auto e: adj[x])
	{
		if(e != p)
		{
			dfs(e, x);
			subtree[x]+= subtree[e];
			ans[x]= max(ans[x], subtree[e]);
		}
	}
	ans[x]= max(ans[x], tot-subtree[x]);
}

int LocateCentre(int n, int p[], int s[], int d[])
{
	tot= 0;
	rep(c,0,n)
	{
		loc[c]= p[c];
		tot+= p[c];
	}
	rep(c,0,n-1)
	{
		adj[s[c]].pb(d[c]);
		adj[d[c]].pb(s[c]);
	}
	dfs(0, -1);
	int res;
	ll val= 1e18;
	rep(c,0,n)
	{
		if(ans[c] < val)
		{
			res= c;
			val= ans[c];
		}
	}
	return res;
}

Compilation message

traffic.cpp: In function 'int LocateCentre(int, int*, int*, int*)':
traffic.cpp:76:9: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
   76 |  return res;
      |         ^~~
# Verdict Execution time Memory Grader output
1 Correct 25 ms 47180 KB Output is correct
2 Correct 24 ms 47252 KB Output is correct
3 Correct 25 ms 47208 KB Output is correct
4 Correct 25 ms 47212 KB Output is correct
5 Correct 25 ms 47248 KB Output is correct
6 Correct 25 ms 47168 KB Output is correct
7 Correct 24 ms 47308 KB Output is correct
8 Correct 25 ms 47308 KB Output is correct
9 Correct 36 ms 47296 KB Output is correct
10 Correct 27 ms 47300 KB Output is correct
11 Correct 25 ms 47252 KB Output is correct
12 Correct 25 ms 47272 KB Output is correct
13 Correct 25 ms 47268 KB Output is correct
14 Correct 24 ms 47244 KB Output is correct
15 Correct 27 ms 47180 KB Output is correct
16 Correct 27 ms 47268 KB Output is correct
17 Correct 25 ms 47308 KB Output is correct
18 Correct 24 ms 47284 KB Output is correct
19 Correct 24 ms 47200 KB Output is correct
20 Correct 25 ms 47268 KB Output is correct
21 Correct 25 ms 47260 KB Output is correct
22 Correct 24 ms 47320 KB Output is correct
23 Correct 25 ms 47180 KB Output is correct
24 Correct 24 ms 47308 KB Output is correct
25 Correct 25 ms 47268 KB Output is correct
26 Correct 26 ms 47312 KB Output is correct
27 Correct 24 ms 47308 KB Output is correct
28 Correct 25 ms 47296 KB Output is correct
29 Correct 25 ms 47296 KB Output is correct
30 Correct 25 ms 47392 KB Output is correct
31 Correct 24 ms 47308 KB Output is correct
32 Correct 25 ms 47296 KB Output is correct
33 Correct 26 ms 47292 KB Output is correct
34 Correct 25 ms 47224 KB Output is correct
35 Correct 25 ms 47324 KB Output is correct
36 Correct 25 ms 47308 KB Output is correct
37 Correct 25 ms 47292 KB Output is correct
38 Correct 24 ms 47356 KB Output is correct
39 Correct 26 ms 47308 KB Output is correct
40 Correct 25 ms 47412 KB Output is correct
41 Correct 26 ms 47388 KB Output is correct
42 Correct 25 ms 47304 KB Output is correct
43 Correct 28 ms 47216 KB Output is correct
44 Correct 26 ms 47252 KB Output is correct
45 Correct 25 ms 47204 KB Output is correct
46 Correct 25 ms 47304 KB Output is correct
47 Correct 28 ms 47308 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 47180 KB Output is correct
2 Correct 24 ms 47252 KB Output is correct
3 Correct 25 ms 47208 KB Output is correct
4 Correct 25 ms 47212 KB Output is correct
5 Correct 25 ms 47248 KB Output is correct
6 Correct 25 ms 47168 KB Output is correct
7 Correct 24 ms 47308 KB Output is correct
8 Correct 25 ms 47308 KB Output is correct
9 Correct 36 ms 47296 KB Output is correct
10 Correct 27 ms 47300 KB Output is correct
11 Correct 25 ms 47252 KB Output is correct
12 Correct 25 ms 47272 KB Output is correct
13 Correct 25 ms 47268 KB Output is correct
14 Correct 24 ms 47244 KB Output is correct
15 Correct 27 ms 47180 KB Output is correct
16 Correct 27 ms 47268 KB Output is correct
17 Correct 25 ms 47308 KB Output is correct
18 Correct 24 ms 47284 KB Output is correct
19 Correct 24 ms 47200 KB Output is correct
20 Correct 25 ms 47268 KB Output is correct
21 Correct 25 ms 47260 KB Output is correct
22 Correct 24 ms 47320 KB Output is correct
23 Correct 25 ms 47180 KB Output is correct
24 Correct 24 ms 47308 KB Output is correct
25 Correct 25 ms 47268 KB Output is correct
26 Correct 26 ms 47312 KB Output is correct
27 Correct 24 ms 47308 KB Output is correct
28 Correct 25 ms 47296 KB Output is correct
29 Correct 25 ms 47296 KB Output is correct
30 Correct 25 ms 47392 KB Output is correct
31 Correct 24 ms 47308 KB Output is correct
32 Correct 25 ms 47296 KB Output is correct
33 Correct 26 ms 47292 KB Output is correct
34 Correct 25 ms 47224 KB Output is correct
35 Correct 25 ms 47324 KB Output is correct
36 Correct 25 ms 47308 KB Output is correct
37 Correct 25 ms 47292 KB Output is correct
38 Correct 24 ms 47356 KB Output is correct
39 Correct 26 ms 47308 KB Output is correct
40 Correct 25 ms 47412 KB Output is correct
41 Correct 26 ms 47388 KB Output is correct
42 Correct 25 ms 47304 KB Output is correct
43 Correct 28 ms 47216 KB Output is correct
44 Correct 26 ms 47252 KB Output is correct
45 Correct 25 ms 47204 KB Output is correct
46 Correct 25 ms 47304 KB Output is correct
47 Correct 28 ms 47308 KB Output is correct
48 Correct 24 ms 47300 KB Output is correct
49 Correct 24 ms 47188 KB Output is correct
50 Correct 28 ms 47300 KB Output is correct
51 Correct 25 ms 47308 KB Output is correct
52 Correct 25 ms 47192 KB Output is correct
53 Correct 25 ms 47228 KB Output is correct
54 Correct 24 ms 47264 KB Output is correct
55 Correct 24 ms 47240 KB Output is correct
56 Correct 24 ms 47292 KB Output is correct
57 Correct 25 ms 47308 KB Output is correct
58 Correct 25 ms 47268 KB Output is correct
59 Correct 25 ms 47288 KB Output is correct
60 Correct 24 ms 47308 KB Output is correct
61 Correct 26 ms 47284 KB Output is correct
62 Correct 24 ms 47288 KB Output is correct
63 Correct 25 ms 47208 KB Output is correct
64 Correct 25 ms 47296 KB Output is correct
65 Correct 24 ms 47204 KB Output is correct
66 Correct 25 ms 47216 KB Output is correct
67 Correct 25 ms 47288 KB Output is correct
68 Correct 49 ms 54156 KB Output is correct
69 Correct 88 ms 60996 KB Output is correct
70 Correct 25 ms 47188 KB Output is correct
71 Correct 111 ms 68028 KB Output is correct
72 Correct 143 ms 74992 KB Output is correct
73 Correct 151 ms 81896 KB Output is correct
74 Correct 172 ms 88884 KB Output is correct
75 Correct 196 ms 95940 KB Output is correct
76 Correct 224 ms 102840 KB Output is correct
77 Correct 250 ms 109932 KB Output is correct
78 Correct 271 ms 117048 KB Output is correct
79 Correct 293 ms 123752 KB Output is correct
80 Correct 354 ms 130828 KB Output is correct
81 Correct 25 ms 47180 KB Output is correct
82 Correct 346 ms 137664 KB Output is correct
83 Correct 377 ms 144768 KB Output is correct
84 Correct 395 ms 151660 KB Output is correct
85 Correct 424 ms 158632 KB Output is correct
86 Correct 462 ms 165648 KB Output is correct
87 Correct 476 ms 172504 KB Output is correct
88 Correct 508 ms 179376 KB Output is correct
89 Correct 532 ms 186444 KB Output is correct
90 Correct 25 ms 47192 KB Output is correct
91 Correct 25 ms 47228 KB Output is correct
92 Correct 25 ms 47204 KB Output is correct
93 Correct 25 ms 47256 KB Output is correct
94 Correct 26 ms 47300 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 47180 KB Output is correct
2 Correct 24 ms 47252 KB Output is correct
3 Correct 25 ms 47208 KB Output is correct
4 Correct 25 ms 47212 KB Output is correct
5 Correct 25 ms 47248 KB Output is correct
6 Correct 25 ms 47168 KB Output is correct
7 Correct 24 ms 47308 KB Output is correct
8 Correct 25 ms 47308 KB Output is correct
9 Correct 36 ms 47296 KB Output is correct
10 Correct 27 ms 47300 KB Output is correct
11 Correct 25 ms 47252 KB Output is correct
12 Correct 25 ms 47272 KB Output is correct
13 Correct 25 ms 47268 KB Output is correct
14 Correct 24 ms 47244 KB Output is correct
15 Correct 27 ms 47180 KB Output is correct
16 Correct 27 ms 47268 KB Output is correct
17 Correct 25 ms 47308 KB Output is correct
18 Correct 24 ms 47284 KB Output is correct
19 Correct 24 ms 47200 KB Output is correct
20 Correct 25 ms 47268 KB Output is correct
21 Correct 25 ms 47260 KB Output is correct
22 Correct 24 ms 47320 KB Output is correct
23 Correct 25 ms 47180 KB Output is correct
24 Correct 24 ms 47308 KB Output is correct
25 Correct 25 ms 47268 KB Output is correct
26 Correct 26 ms 47312 KB Output is correct
27 Correct 24 ms 47308 KB Output is correct
28 Correct 25 ms 47296 KB Output is correct
29 Correct 25 ms 47296 KB Output is correct
30 Correct 25 ms 47392 KB Output is correct
31 Correct 24 ms 47308 KB Output is correct
32 Correct 25 ms 47296 KB Output is correct
33 Correct 26 ms 47292 KB Output is correct
34 Correct 25 ms 47224 KB Output is correct
35 Correct 25 ms 47324 KB Output is correct
36 Correct 25 ms 47308 KB Output is correct
37 Correct 25 ms 47292 KB Output is correct
38 Correct 24 ms 47356 KB Output is correct
39 Correct 26 ms 47308 KB Output is correct
40 Correct 25 ms 47412 KB Output is correct
41 Correct 26 ms 47388 KB Output is correct
42 Correct 25 ms 47304 KB Output is correct
43 Correct 28 ms 47216 KB Output is correct
44 Correct 26 ms 47252 KB Output is correct
45 Correct 25 ms 47204 KB Output is correct
46 Correct 25 ms 47304 KB Output is correct
47 Correct 28 ms 47308 KB Output is correct
48 Correct 25 ms 47292 KB Output is correct
49 Correct 24 ms 47264 KB Output is correct
50 Correct 26 ms 47276 KB Output is correct
51 Correct 25 ms 47300 KB Output is correct
52 Correct 26 ms 47296 KB Output is correct
53 Correct 25 ms 47168 KB Output is correct
54 Correct 25 ms 47184 KB Output is correct
55 Correct 26 ms 47180 KB Output is correct
56 Correct 24 ms 47284 KB Output is correct
57 Correct 26 ms 47252 KB Output is correct
58 Correct 25 ms 47252 KB Output is correct
59 Correct 25 ms 47216 KB Output is correct
60 Correct 24 ms 47276 KB Output is correct
61 Correct 24 ms 47296 KB Output is correct
62 Correct 25 ms 47296 KB Output is correct
63 Correct 25 ms 47276 KB Output is correct
64 Correct 25 ms 47228 KB Output is correct
65 Correct 26 ms 47236 KB Output is correct
66 Correct 24 ms 47308 KB Output is correct
67 Correct 28 ms 47188 KB Output is correct
68 Correct 24 ms 47288 KB Output is correct
69 Correct 25 ms 47244 KB Output is correct
70 Correct 25 ms 47264 KB Output is correct
71 Correct 27 ms 47308 KB Output is correct
72 Correct 28 ms 47308 KB Output is correct
73 Correct 25 ms 47308 KB Output is correct
74 Correct 25 ms 47252 KB Output is correct
75 Correct 25 ms 47320 KB Output is correct
76 Correct 25 ms 47308 KB Output is correct
77 Correct 25 ms 47240 KB Output is correct
78 Correct 26 ms 47300 KB Output is correct
79 Correct 27 ms 47240 KB Output is correct
80 Correct 25 ms 47320 KB Output is correct
81 Correct 24 ms 47196 KB Output is correct
82 Correct 25 ms 47280 KB Output is correct
83 Correct 26 ms 47232 KB Output is correct
84 Correct 26 ms 47244 KB Output is correct
85 Correct 25 ms 47300 KB Output is correct
86 Correct 26 ms 47308 KB Output is correct
87 Correct 26 ms 47276 KB Output is correct
88 Correct 26 ms 47296 KB Output is correct
89 Correct 26 ms 47300 KB Output is correct
90 Correct 25 ms 47348 KB Output is correct
91 Correct 26 ms 47300 KB Output is correct
92 Correct 24 ms 47232 KB Output is correct
93 Correct 25 ms 47296 KB Output is correct
94 Correct 26 ms 47308 KB Output is correct
95 Correct 26 ms 47316 KB Output is correct
96 Correct 26 ms 47180 KB Output is correct
97 Correct 25 ms 47264 KB Output is correct
98 Correct 24 ms 47172 KB Output is correct
99 Correct 25 ms 47192 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 25 ms 47180 KB Output is correct
2 Correct 24 ms 47252 KB Output is correct
3 Correct 25 ms 47208 KB Output is correct
4 Correct 25 ms 47212 KB Output is correct
5 Correct 25 ms 47248 KB Output is correct
6 Correct 25 ms 47168 KB Output is correct
7 Correct 24 ms 47308 KB Output is correct
8 Correct 25 ms 47308 KB Output is correct
9 Correct 36 ms 47296 KB Output is correct
10 Correct 27 ms 47300 KB Output is correct
11 Correct 25 ms 47252 KB Output is correct
12 Correct 25 ms 47272 KB Output is correct
13 Correct 25 ms 47268 KB Output is correct
14 Correct 24 ms 47244 KB Output is correct
15 Correct 27 ms 47180 KB Output is correct
16 Correct 27 ms 47268 KB Output is correct
17 Correct 25 ms 47308 KB Output is correct
18 Correct 24 ms 47284 KB Output is correct
19 Correct 24 ms 47200 KB Output is correct
20 Correct 25 ms 47268 KB Output is correct
21 Correct 25 ms 47260 KB Output is correct
22 Correct 24 ms 47320 KB Output is correct
23 Correct 25 ms 47180 KB Output is correct
24 Correct 24 ms 47308 KB Output is correct
25 Correct 25 ms 47268 KB Output is correct
26 Correct 26 ms 47312 KB Output is correct
27 Correct 24 ms 47308 KB Output is correct
28 Correct 25 ms 47296 KB Output is correct
29 Correct 25 ms 47296 KB Output is correct
30 Correct 25 ms 47392 KB Output is correct
31 Correct 24 ms 47308 KB Output is correct
32 Correct 25 ms 47296 KB Output is correct
33 Correct 26 ms 47292 KB Output is correct
34 Correct 25 ms 47224 KB Output is correct
35 Correct 25 ms 47324 KB Output is correct
36 Correct 25 ms 47308 KB Output is correct
37 Correct 25 ms 47292 KB Output is correct
38 Correct 24 ms 47356 KB Output is correct
39 Correct 26 ms 47308 KB Output is correct
40 Correct 25 ms 47412 KB Output is correct
41 Correct 26 ms 47388 KB Output is correct
42 Correct 25 ms 47304 KB Output is correct
43 Correct 28 ms 47216 KB Output is correct
44 Correct 26 ms 47252 KB Output is correct
45 Correct 25 ms 47204 KB Output is correct
46 Correct 25 ms 47304 KB Output is correct
47 Correct 28 ms 47308 KB Output is correct
48 Correct 24 ms 47300 KB Output is correct
49 Correct 24 ms 47188 KB Output is correct
50 Correct 28 ms 47300 KB Output is correct
51 Correct 25 ms 47308 KB Output is correct
52 Correct 25 ms 47192 KB Output is correct
53 Correct 25 ms 47228 KB Output is correct
54 Correct 24 ms 47264 KB Output is correct
55 Correct 24 ms 47240 KB Output is correct
56 Correct 24 ms 47292 KB Output is correct
57 Correct 25 ms 47308 KB Output is correct
58 Correct 25 ms 47268 KB Output is correct
59 Correct 25 ms 47288 KB Output is correct
60 Correct 24 ms 47308 KB Output is correct
61 Correct 26 ms 47284 KB Output is correct
62 Correct 24 ms 47288 KB Output is correct
63 Correct 25 ms 47208 KB Output is correct
64 Correct 25 ms 47296 KB Output is correct
65 Correct 24 ms 47204 KB Output is correct
66 Correct 25 ms 47216 KB Output is correct
67 Correct 25 ms 47288 KB Output is correct
68 Correct 49 ms 54156 KB Output is correct
69 Correct 88 ms 60996 KB Output is correct
70 Correct 25 ms 47188 KB Output is correct
71 Correct 111 ms 68028 KB Output is correct
72 Correct 143 ms 74992 KB Output is correct
73 Correct 151 ms 81896 KB Output is correct
74 Correct 172 ms 88884 KB Output is correct
75 Correct 196 ms 95940 KB Output is correct
76 Correct 224 ms 102840 KB Output is correct
77 Correct 250 ms 109932 KB Output is correct
78 Correct 271 ms 117048 KB Output is correct
79 Correct 293 ms 123752 KB Output is correct
80 Correct 354 ms 130828 KB Output is correct
81 Correct 25 ms 47180 KB Output is correct
82 Correct 346 ms 137664 KB Output is correct
83 Correct 377 ms 144768 KB Output is correct
84 Correct 395 ms 151660 KB Output is correct
85 Correct 424 ms 158632 KB Output is correct
86 Correct 462 ms 165648 KB Output is correct
87 Correct 476 ms 172504 KB Output is correct
88 Correct 508 ms 179376 KB Output is correct
89 Correct 532 ms 186444 KB Output is correct
90 Correct 25 ms 47192 KB Output is correct
91 Correct 25 ms 47228 KB Output is correct
92 Correct 25 ms 47204 KB Output is correct
93 Correct 25 ms 47256 KB Output is correct
94 Correct 26 ms 47300 KB Output is correct
95 Correct 25 ms 47292 KB Output is correct
96 Correct 24 ms 47264 KB Output is correct
97 Correct 26 ms 47276 KB Output is correct
98 Correct 25 ms 47300 KB Output is correct
99 Correct 26 ms 47296 KB Output is correct
100 Correct 25 ms 47168 KB Output is correct
101 Correct 25 ms 47184 KB Output is correct
102 Correct 26 ms 47180 KB Output is correct
103 Correct 24 ms 47284 KB Output is correct
104 Correct 26 ms 47252 KB Output is correct
105 Correct 25 ms 47252 KB Output is correct
106 Correct 25 ms 47216 KB Output is correct
107 Correct 24 ms 47276 KB Output is correct
108 Correct 24 ms 47296 KB Output is correct
109 Correct 25 ms 47296 KB Output is correct
110 Correct 25 ms 47276 KB Output is correct
111 Correct 25 ms 47228 KB Output is correct
112 Correct 26 ms 47236 KB Output is correct
113 Correct 24 ms 47308 KB Output is correct
114 Correct 28 ms 47188 KB Output is correct
115 Correct 24 ms 47288 KB Output is correct
116 Correct 25 ms 47244 KB Output is correct
117 Correct 25 ms 47264 KB Output is correct
118 Correct 27 ms 47308 KB Output is correct
119 Correct 28 ms 47308 KB Output is correct
120 Correct 25 ms 47308 KB Output is correct
121 Correct 25 ms 47252 KB Output is correct
122 Correct 25 ms 47320 KB Output is correct
123 Correct 25 ms 47308 KB Output is correct
124 Correct 25 ms 47240 KB Output is correct
125 Correct 26 ms 47300 KB Output is correct
126 Correct 27 ms 47240 KB Output is correct
127 Correct 25 ms 47320 KB Output is correct
128 Correct 24 ms 47196 KB Output is correct
129 Correct 25 ms 47280 KB Output is correct
130 Correct 26 ms 47232 KB Output is correct
131 Correct 26 ms 47244 KB Output is correct
132 Correct 25 ms 47300 KB Output is correct
133 Correct 26 ms 47308 KB Output is correct
134 Correct 26 ms 47276 KB Output is correct
135 Correct 26 ms 47296 KB Output is correct
136 Correct 26 ms 47300 KB Output is correct
137 Correct 25 ms 47348 KB Output is correct
138 Correct 26 ms 47300 KB Output is correct
139 Correct 24 ms 47232 KB Output is correct
140 Correct 25 ms 47296 KB Output is correct
141 Correct 26 ms 47308 KB Output is correct
142 Correct 26 ms 47316 KB Output is correct
143 Correct 26 ms 47180 KB Output is correct
144 Correct 25 ms 47264 KB Output is correct
145 Correct 24 ms 47172 KB Output is correct
146 Correct 25 ms 47192 KB Output is correct
147 Correct 26 ms 47192 KB Output is correct
148 Correct 25 ms 47276 KB Output is correct
149 Correct 26 ms 47220 KB Output is correct
150 Correct 25 ms 47284 KB Output is correct
151 Correct 25 ms 47180 KB Output is correct
152 Correct 25 ms 47248 KB Output is correct
153 Correct 26 ms 47304 KB Output is correct
154 Correct 29 ms 47228 KB Output is correct
155 Correct 27 ms 47260 KB Output is correct
156 Correct 24 ms 47308 KB Output is correct
157 Correct 25 ms 47288 KB Output is correct
158 Correct 28 ms 47264 KB Output is correct
159 Correct 25 ms 47172 KB Output is correct
160 Correct 24 ms 47288 KB Output is correct
161 Correct 24 ms 47284 KB Output is correct
162 Correct 24 ms 47212 KB Output is correct
163 Correct 27 ms 47180 KB Output is correct
164 Correct 24 ms 47272 KB Output is correct
165 Correct 25 ms 47264 KB Output is correct
166 Correct 27 ms 47180 KB Output is correct
167 Correct 27 ms 47160 KB Output is correct
168 Correct 25 ms 47308 KB Output is correct
169 Correct 25 ms 47276 KB Output is correct
170 Correct 29 ms 47300 KB Output is correct
171 Correct 54 ms 50492 KB Output is correct
172 Correct 96 ms 53784 KB Output is correct
173 Correct 178 ms 57156 KB Output is correct
174 Correct 256 ms 60460 KB Output is correct
175 Correct 272 ms 63760 KB Output is correct
176 Correct 335 ms 67136 KB Output is correct
177 Correct 371 ms 70700 KB Output is correct
178 Correct 421 ms 73776 KB Output is correct
179 Correct 478 ms 77252 KB Output is correct
180 Correct 25 ms 47180 KB Output is correct
181 Correct 543 ms 80536 KB Output is correct
182 Correct 595 ms 83760 KB Output is correct
183 Correct 663 ms 87104 KB Output is correct
184 Correct 713 ms 90640 KB Output is correct
185 Correct 781 ms 93868 KB Output is correct
186 Correct 823 ms 97084 KB Output is correct
187 Correct 884 ms 100388 KB Output is correct
188 Correct 939 ms 103720 KB Output is correct
189 Correct 1012 ms 106944 KB Output is correct
190 Correct 1094 ms 110184 KB Output is correct
191 Correct 26 ms 47220 KB Output is correct
192 Correct 1202 ms 113368 KB Output is correct
193 Correct 269 ms 115748 KB Output is correct
194 Correct 507 ms 184020 KB Output is correct
195 Correct 25 ms 47180 KB Output is correct
196 Correct 26 ms 47252 KB Output is correct
197 Correct 25 ms 47180 KB Output is correct
198 Correct 26 ms 47240 KB Output is correct