#include <bits/stdc++.h>
#include "parks.h"
using namespace std;
#define pb push_back
#define st first
#define nd second
typedef long long ll;
typedef long double ld;
const ll I = 1000LL * 1000LL * 1000LL * 1000LL * 1000LL * 1000LL;
const int II = 2 * 1000 * 1000 * 1000;
const ll M = 1000LL * 1000LL * 1000LL + 7LL;
const int N = 1000 * 1000 + 7;
int fau[N];
pair<int, int> tab[N], ntab[N];
map<pair<int, int>, int> pts;
vector<pair<int, int>> ed;
vector<pair<int, int>> ben;
vector<int> ans1, ans2, ans3, ans4;
int Find(int v)
{
return (fau[v] = (fau[v] == v ? v : Find(fau[v])));
}
void Union(int a, int b)
{
fau[Find(b)] = Find(a);
}
int Check(int x, int y)
{
if(pts.find(make_pair(x, y)) != pts.end())
return pts[make_pair(x, y)];
return -1;
}
bool Clr(pair<int, int> a)
{
return (((a.st + a.nd) / 2) % 2 == 0);
}
void MakE(int n)
{
for(int i = 0; i < n; ++i)
{
int v = Check(ntab[i].st, ntab[i].nd);
int u = Check(ntab[i].st, ntab[i].nd + 2), l = Check(ntab[i].st - 2, ntab[i].nd);
if(u != -1 && l != -1 && Check(ntab[i].st - 2, ntab[i].nd + 2) != -1)
{
//cerr << "XDKURAWdasljlsdfkjakd\n";
if(Clr(ntab[i])) ed.pb(make_pair(v, u));
else ed.pb(make_pair(v, l));
continue;
}
if(u != -1)
ed.pb(make_pair(v, u));
if(l != -1)
ed.pb(make_pair(v, l));
}
}
void SpTree()
{
vector<pair<int, int>> nxt;
for(int i = 0; i < (int)ed.size(); ++i)
{
//cerr << ed[i].st << " " << ed[i].nd << "\n";
if(Find(ed[i].st) != Find(ed[i].nd))
{
Union(ed[i].st, ed[i].nd);
nxt.pb(ed[i]);
}
}
ed = nxt;
}
void DoB()
{
for(int i = 0; i < (int)ed.size(); ++i)
{
int v = ed[i].st, u = ed[i].nd;
//cerr << "ed: " << Clr(tab[v]) << "\n";
if(tab[u].st == tab[v].st)
{
if(Clr(tab[v]))
ben.pb(make_pair(tab[v].st + 1, tab[v].nd + 1));
else
ben.pb(make_pair(tab[v].st - 1, tab[v].nd + 1));
}else
{
if(Clr(tab[v]))
ben.pb(make_pair(tab[v].st - 1, tab[v].nd + 1));
else
ben.pb(make_pair(tab[v].st - 1, tab[v].nd - 1));
}
}
}
void ConstructAnswer()
{
for(int i = 0; i < (int)ed.size(); ++i)
{
ans1.pb(ed[i].st); ans2.pb(ed[i].nd);
ans3.pb(ben[i].st); ans4.pb(ben[i].nd);
}
}
int construct_roads(vector<int> _x, vector<int> _y)
{
int n = _x.size();
//cerr << "Input " << "\n";
for(int i = 0; i < n; ++i)
{
tab[i] = make_pair(_x[i], _y[i]);
//cerr << i << " " << tab[i].st << " " << tab[i].nd << "\n";
pts[tab[i]] = i;
fau[i] = i;
ntab[i] = tab[i];
}
sort(ntab, ntab + n);
MakE(n);
//cerr << "xd\n";
SpTree();
//cerr << "xd\n";
if((int)ed.size() < n - 1) return 0;
DoB();
ConstructAnswer();
build(ans1, ans2, ans3, ans4);
return 1;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4544 KB |
Output is correct |
3 |
Correct |
1 ms |
4536 KB |
Output is correct |
4 |
Correct |
1 ms |
4444 KB |
Output is correct |
5 |
Correct |
1 ms |
4444 KB |
Output is correct |
6 |
Correct |
0 ms |
4444 KB |
Output is correct |
7 |
Correct |
1 ms |
4444 KB |
Output is correct |
8 |
Correct |
1 ms |
4444 KB |
Output is correct |
9 |
Correct |
111 ms |
25372 KB |
Output is correct |
10 |
Correct |
9 ms |
6412 KB |
Output is correct |
11 |
Correct |
43 ms |
15624 KB |
Output is correct |
12 |
Correct |
12 ms |
7140 KB |
Output is correct |
13 |
Correct |
35 ms |
11476 KB |
Output is correct |
14 |
Correct |
2 ms |
4444 KB |
Output is correct |
15 |
Correct |
2 ms |
4700 KB |
Output is correct |
16 |
Correct |
96 ms |
25520 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4544 KB |
Output is correct |
3 |
Correct |
1 ms |
4536 KB |
Output is correct |
4 |
Correct |
1 ms |
4444 KB |
Output is correct |
5 |
Correct |
1 ms |
4444 KB |
Output is correct |
6 |
Correct |
0 ms |
4444 KB |
Output is correct |
7 |
Correct |
1 ms |
4444 KB |
Output is correct |
8 |
Correct |
1 ms |
4444 KB |
Output is correct |
9 |
Correct |
111 ms |
25372 KB |
Output is correct |
10 |
Correct |
9 ms |
6412 KB |
Output is correct |
11 |
Correct |
43 ms |
15624 KB |
Output is correct |
12 |
Correct |
12 ms |
7140 KB |
Output is correct |
13 |
Correct |
35 ms |
11476 KB |
Output is correct |
14 |
Correct |
2 ms |
4444 KB |
Output is correct |
15 |
Correct |
2 ms |
4700 KB |
Output is correct |
16 |
Correct |
96 ms |
25520 KB |
Output is correct |
17 |
Correct |
1 ms |
4444 KB |
Output is correct |
18 |
Correct |
1 ms |
4540 KB |
Output is correct |
19 |
Correct |
1 ms |
4444 KB |
Output is correct |
20 |
Correct |
1 ms |
4440 KB |
Output is correct |
21 |
Correct |
1 ms |
4444 KB |
Output is correct |
22 |
Correct |
1 ms |
4440 KB |
Output is correct |
23 |
Correct |
230 ms |
42496 KB |
Output is correct |
24 |
Correct |
1 ms |
4440 KB |
Output is correct |
25 |
Correct |
2 ms |
4700 KB |
Output is correct |
26 |
Correct |
3 ms |
4700 KB |
Output is correct |
27 |
Correct |
4 ms |
4956 KB |
Output is correct |
28 |
Correct |
78 ms |
22328 KB |
Output is correct |
29 |
Correct |
133 ms |
28680 KB |
Output is correct |
30 |
Correct |
184 ms |
36468 KB |
Output is correct |
31 |
Correct |
227 ms |
42456 KB |
Output is correct |
32 |
Correct |
1 ms |
4444 KB |
Output is correct |
33 |
Correct |
1 ms |
4444 KB |
Output is correct |
34 |
Correct |
1 ms |
4444 KB |
Output is correct |
35 |
Correct |
1 ms |
4444 KB |
Output is correct |
36 |
Correct |
1 ms |
4444 KB |
Output is correct |
37 |
Correct |
1 ms |
4444 KB |
Output is correct |
38 |
Correct |
0 ms |
4444 KB |
Output is correct |
39 |
Correct |
1 ms |
4700 KB |
Output is correct |
40 |
Correct |
1 ms |
4444 KB |
Output is correct |
41 |
Correct |
1 ms |
4444 KB |
Output is correct |
42 |
Correct |
1 ms |
4444 KB |
Output is correct |
43 |
Correct |
2 ms |
4776 KB |
Output is correct |
44 |
Correct |
2 ms |
4840 KB |
Output is correct |
45 |
Correct |
98 ms |
25640 KB |
Output is correct |
46 |
Correct |
153 ms |
34180 KB |
Output is correct |
47 |
Correct |
154 ms |
34144 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4544 KB |
Output is correct |
3 |
Correct |
1 ms |
4536 KB |
Output is correct |
4 |
Correct |
1 ms |
4444 KB |
Output is correct |
5 |
Correct |
1 ms |
4444 KB |
Output is correct |
6 |
Correct |
0 ms |
4444 KB |
Output is correct |
7 |
Correct |
1 ms |
4444 KB |
Output is correct |
8 |
Correct |
1 ms |
4444 KB |
Output is correct |
9 |
Correct |
111 ms |
25372 KB |
Output is correct |
10 |
Correct |
9 ms |
6412 KB |
Output is correct |
11 |
Correct |
43 ms |
15624 KB |
Output is correct |
12 |
Correct |
12 ms |
7140 KB |
Output is correct |
13 |
Correct |
35 ms |
11476 KB |
Output is correct |
14 |
Correct |
2 ms |
4444 KB |
Output is correct |
15 |
Correct |
2 ms |
4700 KB |
Output is correct |
16 |
Correct |
96 ms |
25520 KB |
Output is correct |
17 |
Correct |
1 ms |
4444 KB |
Output is correct |
18 |
Correct |
1 ms |
4540 KB |
Output is correct |
19 |
Correct |
1 ms |
4444 KB |
Output is correct |
20 |
Correct |
1 ms |
4440 KB |
Output is correct |
21 |
Correct |
1 ms |
4444 KB |
Output is correct |
22 |
Correct |
1 ms |
4440 KB |
Output is correct |
23 |
Correct |
230 ms |
42496 KB |
Output is correct |
24 |
Correct |
1 ms |
4440 KB |
Output is correct |
25 |
Correct |
2 ms |
4700 KB |
Output is correct |
26 |
Correct |
3 ms |
4700 KB |
Output is correct |
27 |
Correct |
4 ms |
4956 KB |
Output is correct |
28 |
Correct |
78 ms |
22328 KB |
Output is correct |
29 |
Correct |
133 ms |
28680 KB |
Output is correct |
30 |
Correct |
184 ms |
36468 KB |
Output is correct |
31 |
Correct |
227 ms |
42456 KB |
Output is correct |
32 |
Correct |
1 ms |
4444 KB |
Output is correct |
33 |
Correct |
1 ms |
4444 KB |
Output is correct |
34 |
Correct |
1 ms |
4444 KB |
Output is correct |
35 |
Correct |
1 ms |
4444 KB |
Output is correct |
36 |
Correct |
1 ms |
4444 KB |
Output is correct |
37 |
Correct |
1 ms |
4444 KB |
Output is correct |
38 |
Correct |
0 ms |
4444 KB |
Output is correct |
39 |
Correct |
1 ms |
4700 KB |
Output is correct |
40 |
Correct |
1 ms |
4444 KB |
Output is correct |
41 |
Correct |
1 ms |
4444 KB |
Output is correct |
42 |
Correct |
1 ms |
4444 KB |
Output is correct |
43 |
Correct |
2 ms |
4776 KB |
Output is correct |
44 |
Correct |
2 ms |
4840 KB |
Output is correct |
45 |
Correct |
98 ms |
25640 KB |
Output is correct |
46 |
Correct |
153 ms |
34180 KB |
Output is correct |
47 |
Correct |
154 ms |
34144 KB |
Output is correct |
48 |
Correct |
1 ms |
4444 KB |
Output is correct |
49 |
Correct |
1 ms |
4444 KB |
Output is correct |
50 |
Correct |
1 ms |
4444 KB |
Output is correct |
51 |
Correct |
1 ms |
4444 KB |
Output is correct |
52 |
Correct |
1 ms |
4444 KB |
Output is correct |
53 |
Correct |
1 ms |
4476 KB |
Output is correct |
54 |
Correct |
1 ms |
4444 KB |
Output is correct |
55 |
Correct |
270 ms |
42880 KB |
Output is correct |
56 |
Correct |
1 ms |
4440 KB |
Output is correct |
57 |
Correct |
2 ms |
4700 KB |
Output is correct |
58 |
Correct |
6 ms |
5400 KB |
Output is correct |
59 |
Correct |
8 ms |
5720 KB |
Output is correct |
60 |
Correct |
106 ms |
25468 KB |
Output is correct |
61 |
Correct |
177 ms |
32596 KB |
Output is correct |
62 |
Correct |
190 ms |
37936 KB |
Output is correct |
63 |
Correct |
232 ms |
43020 KB |
Output is correct |
64 |
Correct |
1 ms |
4444 KB |
Output is correct |
65 |
Correct |
1 ms |
4444 KB |
Output is correct |
66 |
Correct |
1 ms |
4444 KB |
Output is correct |
67 |
Correct |
211 ms |
42504 KB |
Output is correct |
68 |
Correct |
236 ms |
42756 KB |
Output is correct |
69 |
Correct |
209 ms |
42448 KB |
Output is correct |
70 |
Correct |
4 ms |
4956 KB |
Output is correct |
71 |
Correct |
6 ms |
5468 KB |
Output is correct |
72 |
Correct |
103 ms |
25368 KB |
Output is correct |
73 |
Correct |
160 ms |
34824 KB |
Output is correct |
74 |
Correct |
231 ms |
42696 KB |
Output is correct |
75 |
Correct |
230 ms |
43172 KB |
Output is correct |
76 |
Correct |
229 ms |
42584 KB |
Output is correct |
77 |
Correct |
4 ms |
4952 KB |
Output is correct |
78 |
Correct |
7 ms |
5468 KB |
Output is correct |
79 |
Correct |
120 ms |
25520 KB |
Output is correct |
80 |
Correct |
165 ms |
35088 KB |
Output is correct |
81 |
Correct |
232 ms |
42764 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4544 KB |
Output is correct |
3 |
Correct |
1 ms |
4536 KB |
Output is correct |
4 |
Correct |
1 ms |
4444 KB |
Output is correct |
5 |
Correct |
1 ms |
4444 KB |
Output is correct |
6 |
Correct |
0 ms |
4444 KB |
Output is correct |
7 |
Correct |
1 ms |
4444 KB |
Output is correct |
8 |
Correct |
1 ms |
4444 KB |
Output is correct |
9 |
Correct |
111 ms |
25372 KB |
Output is correct |
10 |
Correct |
9 ms |
6412 KB |
Output is correct |
11 |
Correct |
43 ms |
15624 KB |
Output is correct |
12 |
Correct |
12 ms |
7140 KB |
Output is correct |
13 |
Correct |
35 ms |
11476 KB |
Output is correct |
14 |
Correct |
2 ms |
4444 KB |
Output is correct |
15 |
Correct |
2 ms |
4700 KB |
Output is correct |
16 |
Correct |
96 ms |
25520 KB |
Output is correct |
17 |
Correct |
1 ms |
4444 KB |
Output is correct |
18 |
Correct |
1 ms |
4544 KB |
Output is correct |
19 |
Correct |
1 ms |
4444 KB |
Output is correct |
20 |
Correct |
232 ms |
44264 KB |
Output is correct |
21 |
Correct |
215 ms |
44300 KB |
Output is correct |
22 |
Correct |
244 ms |
43780 KB |
Output is correct |
23 |
Correct |
194 ms |
38712 KB |
Output is correct |
24 |
Correct |
157 ms |
26060 KB |
Output is correct |
25 |
Correct |
172 ms |
30624 KB |
Output is correct |
26 |
Correct |
157 ms |
30580 KB |
Output is correct |
27 |
Correct |
220 ms |
42504 KB |
Output is correct |
28 |
Correct |
222 ms |
42508 KB |
Output is correct |
29 |
Correct |
229 ms |
42288 KB |
Output is correct |
30 |
Correct |
228 ms |
42500 KB |
Output is correct |
31 |
Correct |
1 ms |
4444 KB |
Output is correct |
32 |
Correct |
14 ms |
7148 KB |
Output is correct |
33 |
Correct |
77 ms |
17712 KB |
Output is correct |
34 |
Correct |
222 ms |
44292 KB |
Output is correct |
35 |
Correct |
8 ms |
5724 KB |
Output is correct |
36 |
Correct |
38 ms |
12364 KB |
Output is correct |
37 |
Correct |
83 ms |
20176 KB |
Output is correct |
38 |
Correct |
79 ms |
23396 KB |
Output is correct |
39 |
Correct |
123 ms |
27992 KB |
Output is correct |
40 |
Correct |
150 ms |
34740 KB |
Output is correct |
41 |
Correct |
199 ms |
39376 KB |
Output is correct |
42 |
Correct |
244 ms |
44304 KB |
Output is correct |
43 |
Correct |
1 ms |
4440 KB |
Output is correct |
44 |
Correct |
1 ms |
4444 KB |
Output is correct |
45 |
Correct |
1 ms |
4444 KB |
Output is correct |
46 |
Correct |
1 ms |
4444 KB |
Output is correct |
47 |
Correct |
1 ms |
4444 KB |
Output is correct |
48 |
Correct |
1 ms |
4444 KB |
Output is correct |
49 |
Correct |
1 ms |
4540 KB |
Output is correct |
50 |
Correct |
1 ms |
4440 KB |
Output is correct |
51 |
Correct |
1 ms |
4552 KB |
Output is correct |
52 |
Correct |
1 ms |
4440 KB |
Output is correct |
53 |
Correct |
1 ms |
4444 KB |
Output is correct |
54 |
Correct |
2 ms |
4696 KB |
Output is correct |
55 |
Correct |
3 ms |
4840 KB |
Output is correct |
56 |
Correct |
119 ms |
25520 KB |
Output is correct |
57 |
Correct |
167 ms |
34108 KB |
Output is correct |
58 |
Correct |
168 ms |
34088 KB |
Output is correct |
59 |
Correct |
1 ms |
4444 KB |
Output is correct |
60 |
Correct |
1 ms |
4444 KB |
Output is correct |
61 |
Correct |
1 ms |
4444 KB |
Output is correct |
62 |
Correct |
222 ms |
42420 KB |
Output is correct |
63 |
Correct |
212 ms |
42596 KB |
Output is correct |
64 |
Correct |
204 ms |
42244 KB |
Output is correct |
65 |
Correct |
3 ms |
4952 KB |
Output is correct |
66 |
Correct |
6 ms |
5468 KB |
Output is correct |
67 |
Correct |
97 ms |
25484 KB |
Output is correct |
68 |
Correct |
162 ms |
35084 KB |
Output is correct |
69 |
Correct |
226 ms |
42544 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4544 KB |
Output is correct |
3 |
Correct |
1 ms |
4536 KB |
Output is correct |
4 |
Correct |
1 ms |
4444 KB |
Output is correct |
5 |
Correct |
1 ms |
4444 KB |
Output is correct |
6 |
Correct |
0 ms |
4444 KB |
Output is correct |
7 |
Correct |
1 ms |
4444 KB |
Output is correct |
8 |
Correct |
1 ms |
4444 KB |
Output is correct |
9 |
Correct |
111 ms |
25372 KB |
Output is correct |
10 |
Correct |
9 ms |
6412 KB |
Output is correct |
11 |
Correct |
43 ms |
15624 KB |
Output is correct |
12 |
Correct |
12 ms |
7140 KB |
Output is correct |
13 |
Correct |
35 ms |
11476 KB |
Output is correct |
14 |
Correct |
2 ms |
4444 KB |
Output is correct |
15 |
Correct |
2 ms |
4700 KB |
Output is correct |
16 |
Correct |
96 ms |
25520 KB |
Output is correct |
17 |
Correct |
231 ms |
43384 KB |
Output is correct |
18 |
Correct |
233 ms |
43528 KB |
Output is correct |
19 |
Correct |
225 ms |
43780 KB |
Output is correct |
20 |
Correct |
223 ms |
42304 KB |
Output is correct |
21 |
Correct |
245 ms |
38780 KB |
Output is correct |
22 |
Correct |
1 ms |
4440 KB |
Output is correct |
23 |
Correct |
29 ms |
12320 KB |
Output is correct |
24 |
Correct |
18 ms |
6876 KB |
Output is correct |
25 |
Correct |
56 ms |
17348 KB |
Output is correct |
26 |
Correct |
100 ms |
22612 KB |
Output is correct |
27 |
Correct |
102 ms |
26408 KB |
Output is correct |
28 |
Correct |
137 ms |
30780 KB |
Output is correct |
29 |
Correct |
163 ms |
36880 KB |
Output is correct |
30 |
Correct |
196 ms |
40088 KB |
Output is correct |
31 |
Correct |
241 ms |
44556 KB |
Output is correct |
32 |
Correct |
225 ms |
43792 KB |
Output is correct |
33 |
Correct |
206 ms |
42576 KB |
Output is correct |
34 |
Correct |
4 ms |
4956 KB |
Output is correct |
35 |
Correct |
6 ms |
5468 KB |
Output is correct |
36 |
Correct |
104 ms |
25448 KB |
Output is correct |
37 |
Correct |
160 ms |
35084 KB |
Output is correct |
38 |
Correct |
223 ms |
42776 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
4444 KB |
Output is correct |
2 |
Correct |
1 ms |
4544 KB |
Output is correct |
3 |
Correct |
1 ms |
4536 KB |
Output is correct |
4 |
Correct |
1 ms |
4444 KB |
Output is correct |
5 |
Correct |
1 ms |
4444 KB |
Output is correct |
6 |
Correct |
0 ms |
4444 KB |
Output is correct |
7 |
Correct |
1 ms |
4444 KB |
Output is correct |
8 |
Correct |
1 ms |
4444 KB |
Output is correct |
9 |
Correct |
111 ms |
25372 KB |
Output is correct |
10 |
Correct |
9 ms |
6412 KB |
Output is correct |
11 |
Correct |
43 ms |
15624 KB |
Output is correct |
12 |
Correct |
12 ms |
7140 KB |
Output is correct |
13 |
Correct |
35 ms |
11476 KB |
Output is correct |
14 |
Correct |
2 ms |
4444 KB |
Output is correct |
15 |
Correct |
2 ms |
4700 KB |
Output is correct |
16 |
Correct |
96 ms |
25520 KB |
Output is correct |
17 |
Correct |
1 ms |
4444 KB |
Output is correct |
18 |
Correct |
1 ms |
4540 KB |
Output is correct |
19 |
Correct |
1 ms |
4444 KB |
Output is correct |
20 |
Correct |
1 ms |
4440 KB |
Output is correct |
21 |
Correct |
1 ms |
4444 KB |
Output is correct |
22 |
Correct |
1 ms |
4440 KB |
Output is correct |
23 |
Correct |
230 ms |
42496 KB |
Output is correct |
24 |
Correct |
1 ms |
4440 KB |
Output is correct |
25 |
Correct |
2 ms |
4700 KB |
Output is correct |
26 |
Correct |
3 ms |
4700 KB |
Output is correct |
27 |
Correct |
4 ms |
4956 KB |
Output is correct |
28 |
Correct |
78 ms |
22328 KB |
Output is correct |
29 |
Correct |
133 ms |
28680 KB |
Output is correct |
30 |
Correct |
184 ms |
36468 KB |
Output is correct |
31 |
Correct |
227 ms |
42456 KB |
Output is correct |
32 |
Correct |
1 ms |
4444 KB |
Output is correct |
33 |
Correct |
1 ms |
4444 KB |
Output is correct |
34 |
Correct |
1 ms |
4444 KB |
Output is correct |
35 |
Correct |
1 ms |
4444 KB |
Output is correct |
36 |
Correct |
1 ms |
4444 KB |
Output is correct |
37 |
Correct |
1 ms |
4444 KB |
Output is correct |
38 |
Correct |
0 ms |
4444 KB |
Output is correct |
39 |
Correct |
1 ms |
4700 KB |
Output is correct |
40 |
Correct |
1 ms |
4444 KB |
Output is correct |
41 |
Correct |
1 ms |
4444 KB |
Output is correct |
42 |
Correct |
1 ms |
4444 KB |
Output is correct |
43 |
Correct |
2 ms |
4776 KB |
Output is correct |
44 |
Correct |
2 ms |
4840 KB |
Output is correct |
45 |
Correct |
98 ms |
25640 KB |
Output is correct |
46 |
Correct |
153 ms |
34180 KB |
Output is correct |
47 |
Correct |
154 ms |
34144 KB |
Output is correct |
48 |
Correct |
1 ms |
4444 KB |
Output is correct |
49 |
Correct |
1 ms |
4444 KB |
Output is correct |
50 |
Correct |
1 ms |
4444 KB |
Output is correct |
51 |
Correct |
1 ms |
4444 KB |
Output is correct |
52 |
Correct |
1 ms |
4444 KB |
Output is correct |
53 |
Correct |
1 ms |
4476 KB |
Output is correct |
54 |
Correct |
1 ms |
4444 KB |
Output is correct |
55 |
Correct |
270 ms |
42880 KB |
Output is correct |
56 |
Correct |
1 ms |
4440 KB |
Output is correct |
57 |
Correct |
2 ms |
4700 KB |
Output is correct |
58 |
Correct |
6 ms |
5400 KB |
Output is correct |
59 |
Correct |
8 ms |
5720 KB |
Output is correct |
60 |
Correct |
106 ms |
25468 KB |
Output is correct |
61 |
Correct |
177 ms |
32596 KB |
Output is correct |
62 |
Correct |
190 ms |
37936 KB |
Output is correct |
63 |
Correct |
232 ms |
43020 KB |
Output is correct |
64 |
Correct |
1 ms |
4444 KB |
Output is correct |
65 |
Correct |
1 ms |
4444 KB |
Output is correct |
66 |
Correct |
1 ms |
4444 KB |
Output is correct |
67 |
Correct |
211 ms |
42504 KB |
Output is correct |
68 |
Correct |
236 ms |
42756 KB |
Output is correct |
69 |
Correct |
209 ms |
42448 KB |
Output is correct |
70 |
Correct |
4 ms |
4956 KB |
Output is correct |
71 |
Correct |
6 ms |
5468 KB |
Output is correct |
72 |
Correct |
103 ms |
25368 KB |
Output is correct |
73 |
Correct |
160 ms |
34824 KB |
Output is correct |
74 |
Correct |
231 ms |
42696 KB |
Output is correct |
75 |
Correct |
230 ms |
43172 KB |
Output is correct |
76 |
Correct |
229 ms |
42584 KB |
Output is correct |
77 |
Correct |
4 ms |
4952 KB |
Output is correct |
78 |
Correct |
7 ms |
5468 KB |
Output is correct |
79 |
Correct |
120 ms |
25520 KB |
Output is correct |
80 |
Correct |
165 ms |
35088 KB |
Output is correct |
81 |
Correct |
232 ms |
42764 KB |
Output is correct |
82 |
Correct |
1 ms |
4444 KB |
Output is correct |
83 |
Correct |
1 ms |
4544 KB |
Output is correct |
84 |
Correct |
1 ms |
4444 KB |
Output is correct |
85 |
Correct |
232 ms |
44264 KB |
Output is correct |
86 |
Correct |
215 ms |
44300 KB |
Output is correct |
87 |
Correct |
244 ms |
43780 KB |
Output is correct |
88 |
Correct |
194 ms |
38712 KB |
Output is correct |
89 |
Correct |
157 ms |
26060 KB |
Output is correct |
90 |
Correct |
172 ms |
30624 KB |
Output is correct |
91 |
Correct |
157 ms |
30580 KB |
Output is correct |
92 |
Correct |
220 ms |
42504 KB |
Output is correct |
93 |
Correct |
222 ms |
42508 KB |
Output is correct |
94 |
Correct |
229 ms |
42288 KB |
Output is correct |
95 |
Correct |
228 ms |
42500 KB |
Output is correct |
96 |
Correct |
1 ms |
4444 KB |
Output is correct |
97 |
Correct |
14 ms |
7148 KB |
Output is correct |
98 |
Correct |
77 ms |
17712 KB |
Output is correct |
99 |
Correct |
222 ms |
44292 KB |
Output is correct |
100 |
Correct |
8 ms |
5724 KB |
Output is correct |
101 |
Correct |
38 ms |
12364 KB |
Output is correct |
102 |
Correct |
83 ms |
20176 KB |
Output is correct |
103 |
Correct |
79 ms |
23396 KB |
Output is correct |
104 |
Correct |
123 ms |
27992 KB |
Output is correct |
105 |
Correct |
150 ms |
34740 KB |
Output is correct |
106 |
Correct |
199 ms |
39376 KB |
Output is correct |
107 |
Correct |
244 ms |
44304 KB |
Output is correct |
108 |
Correct |
1 ms |
4440 KB |
Output is correct |
109 |
Correct |
1 ms |
4444 KB |
Output is correct |
110 |
Correct |
1 ms |
4444 KB |
Output is correct |
111 |
Correct |
1 ms |
4444 KB |
Output is correct |
112 |
Correct |
1 ms |
4444 KB |
Output is correct |
113 |
Correct |
1 ms |
4444 KB |
Output is correct |
114 |
Correct |
1 ms |
4540 KB |
Output is correct |
115 |
Correct |
1 ms |
4440 KB |
Output is correct |
116 |
Correct |
1 ms |
4552 KB |
Output is correct |
117 |
Correct |
1 ms |
4440 KB |
Output is correct |
118 |
Correct |
1 ms |
4444 KB |
Output is correct |
119 |
Correct |
2 ms |
4696 KB |
Output is correct |
120 |
Correct |
3 ms |
4840 KB |
Output is correct |
121 |
Correct |
119 ms |
25520 KB |
Output is correct |
122 |
Correct |
167 ms |
34108 KB |
Output is correct |
123 |
Correct |
168 ms |
34088 KB |
Output is correct |
124 |
Correct |
1 ms |
4444 KB |
Output is correct |
125 |
Correct |
1 ms |
4444 KB |
Output is correct |
126 |
Correct |
1 ms |
4444 KB |
Output is correct |
127 |
Correct |
222 ms |
42420 KB |
Output is correct |
128 |
Correct |
212 ms |
42596 KB |
Output is correct |
129 |
Correct |
204 ms |
42244 KB |
Output is correct |
130 |
Correct |
3 ms |
4952 KB |
Output is correct |
131 |
Correct |
6 ms |
5468 KB |
Output is correct |
132 |
Correct |
97 ms |
25484 KB |
Output is correct |
133 |
Correct |
162 ms |
35084 KB |
Output is correct |
134 |
Correct |
226 ms |
42544 KB |
Output is correct |
135 |
Correct |
231 ms |
43384 KB |
Output is correct |
136 |
Correct |
233 ms |
43528 KB |
Output is correct |
137 |
Correct |
225 ms |
43780 KB |
Output is correct |
138 |
Correct |
223 ms |
42304 KB |
Output is correct |
139 |
Correct |
245 ms |
38780 KB |
Output is correct |
140 |
Correct |
1 ms |
4440 KB |
Output is correct |
141 |
Correct |
29 ms |
12320 KB |
Output is correct |
142 |
Correct |
18 ms |
6876 KB |
Output is correct |
143 |
Correct |
56 ms |
17348 KB |
Output is correct |
144 |
Correct |
100 ms |
22612 KB |
Output is correct |
145 |
Correct |
102 ms |
26408 KB |
Output is correct |
146 |
Correct |
137 ms |
30780 KB |
Output is correct |
147 |
Correct |
163 ms |
36880 KB |
Output is correct |
148 |
Correct |
196 ms |
40088 KB |
Output is correct |
149 |
Correct |
241 ms |
44556 KB |
Output is correct |
150 |
Correct |
225 ms |
43792 KB |
Output is correct |
151 |
Correct |
206 ms |
42576 KB |
Output is correct |
152 |
Correct |
4 ms |
4956 KB |
Output is correct |
153 |
Correct |
6 ms |
5468 KB |
Output is correct |
154 |
Correct |
104 ms |
25448 KB |
Output is correct |
155 |
Correct |
160 ms |
35084 KB |
Output is correct |
156 |
Correct |
223 ms |
42776 KB |
Output is correct |
157 |
Correct |
1 ms |
4444 KB |
Output is correct |
158 |
Correct |
1 ms |
4444 KB |
Output is correct |
159 |
Correct |
1 ms |
4444 KB |
Output is correct |
160 |
Correct |
1 ms |
4444 KB |
Output is correct |
161 |
Correct |
249 ms |
42916 KB |
Output is correct |
162 |
Correct |
219 ms |
44300 KB |
Output is correct |
163 |
Correct |
221 ms |
44036 KB |
Output is correct |
164 |
Correct |
230 ms |
44036 KB |
Output is correct |
165 |
Correct |
230 ms |
43904 KB |
Output is correct |
166 |
Correct |
247 ms |
43276 KB |
Output is correct |
167 |
Correct |
51 ms |
14884 KB |
Output is correct |
168 |
Correct |
27 ms |
10068 KB |
Output is correct |
169 |
Correct |
76 ms |
18260 KB |
Output is correct |
170 |
Correct |
144 ms |
26536 KB |
Output is correct |
171 |
Correct |
204 ms |
31484 KB |
Output is correct |
172 |
Correct |
114 ms |
26404 KB |
Output is correct |
173 |
Correct |
132 ms |
29684 KB |
Output is correct |
174 |
Correct |
168 ms |
34620 KB |
Output is correct |
175 |
Correct |
197 ms |
37468 KB |
Output is correct |
176 |
Correct |
226 ms |
41112 KB |
Output is correct |
177 |
Correct |
250 ms |
44296 KB |
Output is correct |