#include "bits/stdc++.h"
using namespace std;
using ll = long long;
const ll inf = 1e9;
const int md1 = 1e9+7;
const int md2 = 998244353;
#define sz(v) ((int)v.size())
#define pb push_back
#define pry cout << "YES\n"
#define prn cout << "NO\n"
#define endl '\n'
#define fst first
#define scn second
/* #define ONPC */
#define addedg bench.insert(tpls); uni(ind, tind); u.pb(ind); v.pb(tind); ansa.pb(tpls%X); ansb.pb(tpls/X);
using vi = vector<int>;
const ll X= 2e5+10;
int p[X];
set<ll> bench;
set<ll> fount;
map<ll, int> fnt;
int ucount;
int getp(int x) { return p[x] = (p[x] == x) ? x : getp(p[x]); }
ll cord(ll x, ll y) { return y * X + x; }
void build (vi u, vi v, vi a, vi b);
void
uni(int a, int b)
{
a = getp(a);
b = getp(b);
if (a == b) return;
++ucount;
p[a] = b;
return;
}
int
construct_roads(vi x, vi y)
{
int n = sz(x);
vector<ll> q;
for (int i = 0; i < n; ++i) {
p[i] = i;
fount.insert(cord(x[i],y[i]));
fnt[(cord(x[i],y[i]))] = i;
q.pb(cord(x[i],y[i]));
}
sort(q.begin(), q.end());
ll a,b, ind, tind;
ll tpls;
vi u, v, ansa, ansb;
for (int i = 0; i < n; ++i) {
a = q[i] % X;
b = q[i] / X;
ind = fnt[q[i]];
if (fount.count(cord(a+2,b))) {
tind = fnt[cord(a+2,b)];
if (getp(tind) != getp(ind)) {
if ((a+b) & 2) tpls = cord(a+1,b-1);
else tpls = cord(a+1,b+1);
if (bench.count(tpls) == 0) {
addedg;
}
}
}
if (fount.count(cord(a,b+2))) {
tind = fnt[cord(a,b+2)];
if (getp(tind) != getp(ind)) {
if ((a+b) & 2) tpls = cord(a+1,b+1);
else tpls = cord(a-1,b+1);
if (bench.count(tpls) == 0) {
addedg;
}
}
}
}
if (ucount != n-1) return 0;
build(u, v, ansa, ansb);
return 1;
}
#ifdef ONPC
void
build(vi u, vi v, vi a, vi b)
{
}
void
solve()
{
int n;
cin >> n;
vi x(n), y(n);
for (int i = 0; i < n; ++i) {
cin >> x[i] >> y[i];
}
cout << construct_roads(x, y) << endl;
}
int32_t
main(int argc, char **argv)
{
if (argc >= 2) {
freopen(argv[1], "r", stdin);
} else
ios_base::sync_with_stdio(0);cin.tie(0);
int t = 1;
/* cin >> t; */
while(t--)
solve();
}
#endif
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
213 ms |
23912 KB |
Output is correct |
10 |
Correct |
12 ms |
2788 KB |
Output is correct |
11 |
Correct |
80 ms |
13272 KB |
Output is correct |
12 |
Correct |
18 ms |
4052 KB |
Output is correct |
13 |
Correct |
53 ms |
9412 KB |
Output is correct |
14 |
Correct |
2 ms |
436 KB |
Output is correct |
15 |
Correct |
3 ms |
724 KB |
Output is correct |
16 |
Correct |
179 ms |
24188 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
213 ms |
23912 KB |
Output is correct |
10 |
Correct |
12 ms |
2788 KB |
Output is correct |
11 |
Correct |
80 ms |
13272 KB |
Output is correct |
12 |
Correct |
18 ms |
4052 KB |
Output is correct |
13 |
Correct |
53 ms |
9412 KB |
Output is correct |
14 |
Correct |
2 ms |
436 KB |
Output is correct |
15 |
Correct |
3 ms |
724 KB |
Output is correct |
16 |
Correct |
179 ms |
24188 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
308 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
464 ms |
48072 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
2 ms |
596 KB |
Output is correct |
26 |
Correct |
3 ms |
852 KB |
Output is correct |
27 |
Correct |
5 ms |
1108 KB |
Output is correct |
28 |
Correct |
148 ms |
19348 KB |
Output is correct |
29 |
Correct |
235 ms |
28812 KB |
Output is correct |
30 |
Correct |
350 ms |
38672 KB |
Output is correct |
31 |
Correct |
460 ms |
47992 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
0 ms |
316 KB |
Output is correct |
34 |
Correct |
1 ms |
308 KB |
Output is correct |
35 |
Correct |
1 ms |
212 KB |
Output is correct |
36 |
Correct |
1 ms |
212 KB |
Output is correct |
37 |
Correct |
1 ms |
312 KB |
Output is correct |
38 |
Correct |
0 ms |
312 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
212 KB |
Output is correct |
41 |
Correct |
1 ms |
212 KB |
Output is correct |
42 |
Correct |
1 ms |
308 KB |
Output is correct |
43 |
Correct |
3 ms |
724 KB |
Output is correct |
44 |
Correct |
3 ms |
828 KB |
Output is correct |
45 |
Correct |
185 ms |
24136 KB |
Output is correct |
46 |
Correct |
309 ms |
35544 KB |
Output is correct |
47 |
Correct |
312 ms |
35464 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
213 ms |
23912 KB |
Output is correct |
10 |
Correct |
12 ms |
2788 KB |
Output is correct |
11 |
Correct |
80 ms |
13272 KB |
Output is correct |
12 |
Correct |
18 ms |
4052 KB |
Output is correct |
13 |
Correct |
53 ms |
9412 KB |
Output is correct |
14 |
Correct |
2 ms |
436 KB |
Output is correct |
15 |
Correct |
3 ms |
724 KB |
Output is correct |
16 |
Correct |
179 ms |
24188 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
308 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
464 ms |
48072 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
2 ms |
596 KB |
Output is correct |
26 |
Correct |
3 ms |
852 KB |
Output is correct |
27 |
Correct |
5 ms |
1108 KB |
Output is correct |
28 |
Correct |
148 ms |
19348 KB |
Output is correct |
29 |
Correct |
235 ms |
28812 KB |
Output is correct |
30 |
Correct |
350 ms |
38672 KB |
Output is correct |
31 |
Correct |
460 ms |
47992 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
0 ms |
316 KB |
Output is correct |
34 |
Correct |
1 ms |
308 KB |
Output is correct |
35 |
Correct |
1 ms |
212 KB |
Output is correct |
36 |
Correct |
1 ms |
212 KB |
Output is correct |
37 |
Correct |
1 ms |
312 KB |
Output is correct |
38 |
Correct |
0 ms |
312 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
212 KB |
Output is correct |
41 |
Correct |
1 ms |
212 KB |
Output is correct |
42 |
Correct |
1 ms |
308 KB |
Output is correct |
43 |
Correct |
3 ms |
724 KB |
Output is correct |
44 |
Correct |
3 ms |
828 KB |
Output is correct |
45 |
Correct |
185 ms |
24136 KB |
Output is correct |
46 |
Correct |
309 ms |
35544 KB |
Output is correct |
47 |
Correct |
312 ms |
35464 KB |
Output is correct |
48 |
Correct |
0 ms |
212 KB |
Output is correct |
49 |
Correct |
1 ms |
212 KB |
Output is correct |
50 |
Correct |
1 ms |
316 KB |
Output is correct |
51 |
Correct |
1 ms |
212 KB |
Output is correct |
52 |
Correct |
1 ms |
212 KB |
Output is correct |
53 |
Correct |
1 ms |
212 KB |
Output is correct |
54 |
Correct |
1 ms |
308 KB |
Output is correct |
55 |
Correct |
433 ms |
47856 KB |
Output is correct |
56 |
Correct |
1 ms |
212 KB |
Output is correct |
57 |
Correct |
4 ms |
724 KB |
Output is correct |
58 |
Correct |
9 ms |
1764 KB |
Output is correct |
59 |
Correct |
16 ms |
2380 KB |
Output is correct |
60 |
Correct |
229 ms |
24020 KB |
Output is correct |
61 |
Correct |
289 ms |
33492 KB |
Output is correct |
62 |
Correct |
352 ms |
39924 KB |
Output is correct |
63 |
Correct |
467 ms |
48052 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
0 ms |
212 KB |
Output is correct |
66 |
Correct |
1 ms |
308 KB |
Output is correct |
67 |
Correct |
442 ms |
48004 KB |
Output is correct |
68 |
Correct |
434 ms |
47920 KB |
Output is correct |
69 |
Correct |
432 ms |
47748 KB |
Output is correct |
70 |
Correct |
5 ms |
1108 KB |
Output is correct |
71 |
Correct |
11 ms |
1876 KB |
Output is correct |
72 |
Correct |
192 ms |
24068 KB |
Output is correct |
73 |
Correct |
269 ms |
36424 KB |
Output is correct |
74 |
Correct |
412 ms |
47944 KB |
Output is correct |
75 |
Correct |
416 ms |
47992 KB |
Output is correct |
76 |
Correct |
436 ms |
47924 KB |
Output is correct |
77 |
Correct |
5 ms |
1364 KB |
Output is correct |
78 |
Correct |
11 ms |
2260 KB |
Output is correct |
79 |
Correct |
179 ms |
24056 KB |
Output is correct |
80 |
Correct |
295 ms |
36396 KB |
Output is correct |
81 |
Correct |
421 ms |
47984 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
213 ms |
23912 KB |
Output is correct |
10 |
Correct |
12 ms |
2788 KB |
Output is correct |
11 |
Correct |
80 ms |
13272 KB |
Output is correct |
12 |
Correct |
18 ms |
4052 KB |
Output is correct |
13 |
Correct |
53 ms |
9412 KB |
Output is correct |
14 |
Correct |
2 ms |
436 KB |
Output is correct |
15 |
Correct |
3 ms |
724 KB |
Output is correct |
16 |
Correct |
179 ms |
24188 KB |
Output is correct |
17 |
Correct |
1 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
312 KB |
Output is correct |
19 |
Correct |
1 ms |
308 KB |
Output is correct |
20 |
Correct |
428 ms |
49144 KB |
Output is correct |
21 |
Correct |
463 ms |
48840 KB |
Output is correct |
22 |
Correct |
435 ms |
48964 KB |
Output is correct |
23 |
Correct |
365 ms |
41668 KB |
Output is correct |
24 |
Correct |
269 ms |
27880 KB |
Output is correct |
25 |
Correct |
345 ms |
40664 KB |
Output is correct |
26 |
Correct |
413 ms |
40624 KB |
Output is correct |
27 |
Correct |
474 ms |
48140 KB |
Output is correct |
28 |
Correct |
469 ms |
47964 KB |
Output is correct |
29 |
Correct |
426 ms |
48096 KB |
Output is correct |
30 |
Correct |
405 ms |
47988 KB |
Output is correct |
31 |
Correct |
1 ms |
312 KB |
Output is correct |
32 |
Correct |
29 ms |
3820 KB |
Output is correct |
33 |
Correct |
112 ms |
14228 KB |
Output is correct |
34 |
Correct |
412 ms |
49080 KB |
Output is correct |
35 |
Correct |
11 ms |
2388 KB |
Output is correct |
36 |
Correct |
62 ms |
10516 KB |
Output is correct |
37 |
Correct |
155 ms |
20556 KB |
Output is correct |
38 |
Correct |
167 ms |
19908 KB |
Output is correct |
39 |
Correct |
203 ms |
26992 KB |
Output is correct |
40 |
Correct |
280 ms |
35300 KB |
Output is correct |
41 |
Correct |
402 ms |
41820 KB |
Output is correct |
42 |
Correct |
468 ms |
49016 KB |
Output is correct |
43 |
Correct |
0 ms |
212 KB |
Output is correct |
44 |
Correct |
0 ms |
212 KB |
Output is correct |
45 |
Correct |
1 ms |
212 KB |
Output is correct |
46 |
Correct |
1 ms |
212 KB |
Output is correct |
47 |
Correct |
1 ms |
212 KB |
Output is correct |
48 |
Correct |
1 ms |
212 KB |
Output is correct |
49 |
Correct |
1 ms |
312 KB |
Output is correct |
50 |
Correct |
1 ms |
212 KB |
Output is correct |
51 |
Correct |
0 ms |
212 KB |
Output is correct |
52 |
Correct |
1 ms |
212 KB |
Output is correct |
53 |
Correct |
0 ms |
212 KB |
Output is correct |
54 |
Correct |
2 ms |
724 KB |
Output is correct |
55 |
Correct |
3 ms |
964 KB |
Output is correct |
56 |
Correct |
186 ms |
24200 KB |
Output is correct |
57 |
Correct |
318 ms |
35556 KB |
Output is correct |
58 |
Correct |
325 ms |
35552 KB |
Output is correct |
59 |
Correct |
1 ms |
212 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
1 ms |
212 KB |
Output is correct |
62 |
Correct |
455 ms |
48164 KB |
Output is correct |
63 |
Correct |
426 ms |
48084 KB |
Output is correct |
64 |
Correct |
403 ms |
47844 KB |
Output is correct |
65 |
Correct |
5 ms |
1108 KB |
Output is correct |
66 |
Correct |
8 ms |
1876 KB |
Output is correct |
67 |
Correct |
166 ms |
24120 KB |
Output is correct |
68 |
Correct |
320 ms |
36564 KB |
Output is correct |
69 |
Correct |
436 ms |
48168 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
213 ms |
23912 KB |
Output is correct |
10 |
Correct |
12 ms |
2788 KB |
Output is correct |
11 |
Correct |
80 ms |
13272 KB |
Output is correct |
12 |
Correct |
18 ms |
4052 KB |
Output is correct |
13 |
Correct |
53 ms |
9412 KB |
Output is correct |
14 |
Correct |
2 ms |
436 KB |
Output is correct |
15 |
Correct |
3 ms |
724 KB |
Output is correct |
16 |
Correct |
179 ms |
24188 KB |
Output is correct |
17 |
Correct |
414 ms |
49004 KB |
Output is correct |
18 |
Correct |
403 ms |
48892 KB |
Output is correct |
19 |
Correct |
407 ms |
48736 KB |
Output is correct |
20 |
Correct |
418 ms |
47208 KB |
Output is correct |
21 |
Correct |
378 ms |
42260 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
55 ms |
8128 KB |
Output is correct |
24 |
Correct |
35 ms |
4544 KB |
Output is correct |
25 |
Correct |
101 ms |
14996 KB |
Output is correct |
26 |
Correct |
190 ms |
24472 KB |
Output is correct |
27 |
Correct |
184 ms |
24748 KB |
Output is correct |
28 |
Correct |
245 ms |
30744 KB |
Output is correct |
29 |
Correct |
330 ms |
37380 KB |
Output is correct |
30 |
Correct |
374 ms |
42812 KB |
Output is correct |
31 |
Correct |
416 ms |
49188 KB |
Output is correct |
32 |
Correct |
438 ms |
48052 KB |
Output is correct |
33 |
Correct |
445 ms |
48100 KB |
Output is correct |
34 |
Correct |
6 ms |
1364 KB |
Output is correct |
35 |
Correct |
12 ms |
2140 KB |
Output is correct |
36 |
Correct |
211 ms |
24076 KB |
Output is correct |
37 |
Correct |
285 ms |
36604 KB |
Output is correct |
38 |
Correct |
401 ms |
48096 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
0 ms |
212 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
212 KB |
Output is correct |
5 |
Correct |
0 ms |
212 KB |
Output is correct |
6 |
Correct |
1 ms |
212 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
213 ms |
23912 KB |
Output is correct |
10 |
Correct |
12 ms |
2788 KB |
Output is correct |
11 |
Correct |
80 ms |
13272 KB |
Output is correct |
12 |
Correct |
18 ms |
4052 KB |
Output is correct |
13 |
Correct |
53 ms |
9412 KB |
Output is correct |
14 |
Correct |
2 ms |
436 KB |
Output is correct |
15 |
Correct |
3 ms |
724 KB |
Output is correct |
16 |
Correct |
179 ms |
24188 KB |
Output is correct |
17 |
Correct |
0 ms |
212 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
308 KB |
Output is correct |
20 |
Correct |
0 ms |
212 KB |
Output is correct |
21 |
Correct |
1 ms |
212 KB |
Output is correct |
22 |
Correct |
1 ms |
212 KB |
Output is correct |
23 |
Correct |
464 ms |
48072 KB |
Output is correct |
24 |
Correct |
0 ms |
212 KB |
Output is correct |
25 |
Correct |
2 ms |
596 KB |
Output is correct |
26 |
Correct |
3 ms |
852 KB |
Output is correct |
27 |
Correct |
5 ms |
1108 KB |
Output is correct |
28 |
Correct |
148 ms |
19348 KB |
Output is correct |
29 |
Correct |
235 ms |
28812 KB |
Output is correct |
30 |
Correct |
350 ms |
38672 KB |
Output is correct |
31 |
Correct |
460 ms |
47992 KB |
Output is correct |
32 |
Correct |
1 ms |
212 KB |
Output is correct |
33 |
Correct |
0 ms |
316 KB |
Output is correct |
34 |
Correct |
1 ms |
308 KB |
Output is correct |
35 |
Correct |
1 ms |
212 KB |
Output is correct |
36 |
Correct |
1 ms |
212 KB |
Output is correct |
37 |
Correct |
1 ms |
312 KB |
Output is correct |
38 |
Correct |
0 ms |
312 KB |
Output is correct |
39 |
Correct |
1 ms |
340 KB |
Output is correct |
40 |
Correct |
1 ms |
212 KB |
Output is correct |
41 |
Correct |
1 ms |
212 KB |
Output is correct |
42 |
Correct |
1 ms |
308 KB |
Output is correct |
43 |
Correct |
3 ms |
724 KB |
Output is correct |
44 |
Correct |
3 ms |
828 KB |
Output is correct |
45 |
Correct |
185 ms |
24136 KB |
Output is correct |
46 |
Correct |
309 ms |
35544 KB |
Output is correct |
47 |
Correct |
312 ms |
35464 KB |
Output is correct |
48 |
Correct |
0 ms |
212 KB |
Output is correct |
49 |
Correct |
1 ms |
212 KB |
Output is correct |
50 |
Correct |
1 ms |
316 KB |
Output is correct |
51 |
Correct |
1 ms |
212 KB |
Output is correct |
52 |
Correct |
1 ms |
212 KB |
Output is correct |
53 |
Correct |
1 ms |
212 KB |
Output is correct |
54 |
Correct |
1 ms |
308 KB |
Output is correct |
55 |
Correct |
433 ms |
47856 KB |
Output is correct |
56 |
Correct |
1 ms |
212 KB |
Output is correct |
57 |
Correct |
4 ms |
724 KB |
Output is correct |
58 |
Correct |
9 ms |
1764 KB |
Output is correct |
59 |
Correct |
16 ms |
2380 KB |
Output is correct |
60 |
Correct |
229 ms |
24020 KB |
Output is correct |
61 |
Correct |
289 ms |
33492 KB |
Output is correct |
62 |
Correct |
352 ms |
39924 KB |
Output is correct |
63 |
Correct |
467 ms |
48052 KB |
Output is correct |
64 |
Correct |
1 ms |
212 KB |
Output is correct |
65 |
Correct |
0 ms |
212 KB |
Output is correct |
66 |
Correct |
1 ms |
308 KB |
Output is correct |
67 |
Correct |
442 ms |
48004 KB |
Output is correct |
68 |
Correct |
434 ms |
47920 KB |
Output is correct |
69 |
Correct |
432 ms |
47748 KB |
Output is correct |
70 |
Correct |
5 ms |
1108 KB |
Output is correct |
71 |
Correct |
11 ms |
1876 KB |
Output is correct |
72 |
Correct |
192 ms |
24068 KB |
Output is correct |
73 |
Correct |
269 ms |
36424 KB |
Output is correct |
74 |
Correct |
412 ms |
47944 KB |
Output is correct |
75 |
Correct |
416 ms |
47992 KB |
Output is correct |
76 |
Correct |
436 ms |
47924 KB |
Output is correct |
77 |
Correct |
5 ms |
1364 KB |
Output is correct |
78 |
Correct |
11 ms |
2260 KB |
Output is correct |
79 |
Correct |
179 ms |
24056 KB |
Output is correct |
80 |
Correct |
295 ms |
36396 KB |
Output is correct |
81 |
Correct |
421 ms |
47984 KB |
Output is correct |
82 |
Correct |
1 ms |
212 KB |
Output is correct |
83 |
Correct |
1 ms |
312 KB |
Output is correct |
84 |
Correct |
1 ms |
308 KB |
Output is correct |
85 |
Correct |
428 ms |
49144 KB |
Output is correct |
86 |
Correct |
463 ms |
48840 KB |
Output is correct |
87 |
Correct |
435 ms |
48964 KB |
Output is correct |
88 |
Correct |
365 ms |
41668 KB |
Output is correct |
89 |
Correct |
269 ms |
27880 KB |
Output is correct |
90 |
Correct |
345 ms |
40664 KB |
Output is correct |
91 |
Correct |
413 ms |
40624 KB |
Output is correct |
92 |
Correct |
474 ms |
48140 KB |
Output is correct |
93 |
Correct |
469 ms |
47964 KB |
Output is correct |
94 |
Correct |
426 ms |
48096 KB |
Output is correct |
95 |
Correct |
405 ms |
47988 KB |
Output is correct |
96 |
Correct |
1 ms |
312 KB |
Output is correct |
97 |
Correct |
29 ms |
3820 KB |
Output is correct |
98 |
Correct |
112 ms |
14228 KB |
Output is correct |
99 |
Correct |
412 ms |
49080 KB |
Output is correct |
100 |
Correct |
11 ms |
2388 KB |
Output is correct |
101 |
Correct |
62 ms |
10516 KB |
Output is correct |
102 |
Correct |
155 ms |
20556 KB |
Output is correct |
103 |
Correct |
167 ms |
19908 KB |
Output is correct |
104 |
Correct |
203 ms |
26992 KB |
Output is correct |
105 |
Correct |
280 ms |
35300 KB |
Output is correct |
106 |
Correct |
402 ms |
41820 KB |
Output is correct |
107 |
Correct |
468 ms |
49016 KB |
Output is correct |
108 |
Correct |
0 ms |
212 KB |
Output is correct |
109 |
Correct |
0 ms |
212 KB |
Output is correct |
110 |
Correct |
1 ms |
212 KB |
Output is correct |
111 |
Correct |
1 ms |
212 KB |
Output is correct |
112 |
Correct |
1 ms |
212 KB |
Output is correct |
113 |
Correct |
1 ms |
212 KB |
Output is correct |
114 |
Correct |
1 ms |
312 KB |
Output is correct |
115 |
Correct |
1 ms |
212 KB |
Output is correct |
116 |
Correct |
0 ms |
212 KB |
Output is correct |
117 |
Correct |
1 ms |
212 KB |
Output is correct |
118 |
Correct |
0 ms |
212 KB |
Output is correct |
119 |
Correct |
2 ms |
724 KB |
Output is correct |
120 |
Correct |
3 ms |
964 KB |
Output is correct |
121 |
Correct |
186 ms |
24200 KB |
Output is correct |
122 |
Correct |
318 ms |
35556 KB |
Output is correct |
123 |
Correct |
325 ms |
35552 KB |
Output is correct |
124 |
Correct |
1 ms |
212 KB |
Output is correct |
125 |
Correct |
1 ms |
212 KB |
Output is correct |
126 |
Correct |
1 ms |
212 KB |
Output is correct |
127 |
Correct |
455 ms |
48164 KB |
Output is correct |
128 |
Correct |
426 ms |
48084 KB |
Output is correct |
129 |
Correct |
403 ms |
47844 KB |
Output is correct |
130 |
Correct |
5 ms |
1108 KB |
Output is correct |
131 |
Correct |
8 ms |
1876 KB |
Output is correct |
132 |
Correct |
166 ms |
24120 KB |
Output is correct |
133 |
Correct |
320 ms |
36564 KB |
Output is correct |
134 |
Correct |
436 ms |
48168 KB |
Output is correct |
135 |
Correct |
414 ms |
49004 KB |
Output is correct |
136 |
Correct |
403 ms |
48892 KB |
Output is correct |
137 |
Correct |
407 ms |
48736 KB |
Output is correct |
138 |
Correct |
418 ms |
47208 KB |
Output is correct |
139 |
Correct |
378 ms |
42260 KB |
Output is correct |
140 |
Correct |
1 ms |
212 KB |
Output is correct |
141 |
Correct |
55 ms |
8128 KB |
Output is correct |
142 |
Correct |
35 ms |
4544 KB |
Output is correct |
143 |
Correct |
101 ms |
14996 KB |
Output is correct |
144 |
Correct |
190 ms |
24472 KB |
Output is correct |
145 |
Correct |
184 ms |
24748 KB |
Output is correct |
146 |
Correct |
245 ms |
30744 KB |
Output is correct |
147 |
Correct |
330 ms |
37380 KB |
Output is correct |
148 |
Correct |
374 ms |
42812 KB |
Output is correct |
149 |
Correct |
416 ms |
49188 KB |
Output is correct |
150 |
Correct |
438 ms |
48052 KB |
Output is correct |
151 |
Correct |
445 ms |
48100 KB |
Output is correct |
152 |
Correct |
6 ms |
1364 KB |
Output is correct |
153 |
Correct |
12 ms |
2140 KB |
Output is correct |
154 |
Correct |
211 ms |
24076 KB |
Output is correct |
155 |
Correct |
285 ms |
36604 KB |
Output is correct |
156 |
Correct |
401 ms |
48096 KB |
Output is correct |
157 |
Correct |
1 ms |
212 KB |
Output is correct |
158 |
Correct |
0 ms |
212 KB |
Output is correct |
159 |
Correct |
1 ms |
308 KB |
Output is correct |
160 |
Correct |
0 ms |
212 KB |
Output is correct |
161 |
Correct |
442 ms |
50076 KB |
Output is correct |
162 |
Correct |
411 ms |
51296 KB |
Output is correct |
163 |
Correct |
415 ms |
50980 KB |
Output is correct |
164 |
Correct |
434 ms |
51044 KB |
Output is correct |
165 |
Correct |
413 ms |
50764 KB |
Output is correct |
166 |
Correct |
411 ms |
50144 KB |
Output is correct |
167 |
Correct |
88 ms |
12008 KB |
Output is correct |
168 |
Correct |
36 ms |
6600 KB |
Output is correct |
169 |
Correct |
117 ms |
17424 KB |
Output is correct |
170 |
Correct |
256 ms |
32688 KB |
Output is correct |
171 |
Correct |
372 ms |
42924 KB |
Output is correct |
172 |
Correct |
185 ms |
25700 KB |
Output is correct |
173 |
Correct |
245 ms |
30740 KB |
Output is correct |
174 |
Correct |
292 ms |
36816 KB |
Output is correct |
175 |
Correct |
326 ms |
40964 KB |
Output is correct |
176 |
Correct |
394 ms |
46344 KB |
Output is correct |
177 |
Correct |
521 ms |
51428 KB |
Output is correct |