#include <bits/stdc++.h>
using namespace std;
constexpr int maxn = 3e5+10;
int pref[maxn];
int mx = 0, ini_mx = 0, n, m;
struct Wire {
int l, r, id;
int sz() const { return r >= l ? r - l + 1 : r + (n - l + 1); }
bool operator<(const Wire& o) const {
if(l == o.l) return this->sz() > o.sz();
return l < o.l;
}
bool inside(const Wire& o) const {
int st = (l - o.l + n) % n;
return st + this->sz() <= o.sz();
}
} wr[maxn];
int pai[maxn];
int main() {
scanf("%d %d", &n, &m);
for(int i = 0; i < m; i++) {
scanf("%d %d", &wr[i].l, &wr[i].r); wr[i].id = i;
if(wr[i].l <= wr[i].r) {
pref[wr[i].l]++;
pref[wr[i].r+1]--;
} else {
pref[wr[i].l]++;
pref[1]++;
pref[wr[i].r+1]--;
}
}
for(int i = 1; i <= n; i++) {
pref[i] += pref[i-1];
pref[i+n] = pref[i];
if(pref[i] < 2) return puts("impossible"), 0;
}
sort(wr, wr+m);
int virou = 0;
int fim = 0, aberto = -1;
vector<Wire> brabos;
memset(pai, -1, sizeof pai);
Wire last = wr[0];
for(int rep = 0; rep < 2; rep++) {
for(int i = !rep; i < m; i++) {
if(wr[i].inside(last) && wr[i].id != last.id) {
if(rep) pai[wr[i].id] = last.id;
} else {
if(rep) brabos.push_back(wr[i]);
last = wr[i];
}
}
}
/* puts("BRABOS: ");
printf("Size: %ld\n", brabos.size());
for(Wire x : brabos)
printf("(%d %d %d) ", x.l, x.r, x.id);
puts(""); */
vector<int> ans(m);
auto print = [&]() {
for(int i = 0; i < m; i++)
printf("%d", ans[i]);
puts("");
exit(0);
};
if(brabos[0].sz() == n) {
ans[brabos[0].id] = 1;
print();
}
if(brabos.size() % 2 == 0) {
for(int i = 0; i < brabos.size(); i++)
ans[brabos[i].id] = i&1;
for(int i = 0; i < m; i++)
if(pai[i] != -1) ans[i] = 1^ans[pai[i]];
print();
}
sort(brabos.begin(), brabos.end(), [](const Wire& a, const Wire& b) { return a.l < b.l; });
for(int i = 0; i < brabos.size(); i++) {
auto nxt = [&](int x) { return (x+1) % brabos.size(); };
auto eu = brabos[i], prox = brabos[nxt(i)];
int l = prox.l, r = eu.r;
if(r < l) r += n;
bool tem = 1;
for(int j = l; j <= r; j++)
tem &= pref[j] >= 3;
auto no_intersection = [](Wire a, Wire b) {
if(a.r < a.l) a.r += n;
if(b.r < b.l) b.r += n;
if(a.r < b.l) return 1;
return 0;
};
if(tem || no_intersection(eu, prox)) {
// printf("BOM %d | %d %d\n", i, l, r);
bool opa = 0;
ans[ brabos[i].id ] = opa;
for(int j = nxt(i); j != i; j = nxt(j)) {
// printf("to %d %d\n", j, opa);
ans[ brabos[j].id ] = opa;
opa ^= 1;
}
for(int i = 0; i < m; i++)
if(pai[i] != -1) ans[i] = 1^ans[pai[i]];
// else printf("sai corno %d\n", i);
print();
}
}
puts("impossible");
}
Compilation message
alternating.cpp: In function 'int main()':
alternating.cpp:85:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Wire>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
85 | for(int i = 0; i < brabos.size(); i++)
| ~~^~~~~~~~~~~~~~~
alternating.cpp:96:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Wire>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
96 | for(int i = 0; i < brabos.size(); i++) {
| ~~^~~~~~~~~~~~~~~
alternating.cpp:46:6: warning: unused variable 'virou' [-Wunused-variable]
46 | int virou = 0;
| ^~~~~
alternating.cpp:47:6: warning: unused variable 'fim' [-Wunused-variable]
47 | int fim = 0, aberto = -1;
| ^~~
alternating.cpp:47:15: warning: unused variable 'aberto' [-Wunused-variable]
47 | int fim = 0, aberto = -1;
| ^~~~~~
alternating.cpp:25:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
25 | scanf("%d %d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~~
alternating.cpp:27:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | scanf("%d %d", &wr[i].l, &wr[i].r); wr[i].id = i;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
1356 KB |
Output is correct |
2 |
Correct |
1 ms |
1448 KB |
Output is correct |
3 |
Correct |
1 ms |
1484 KB |
Output is correct |
4 |
Correct |
1 ms |
1484 KB |
Output is correct |
5 |
Correct |
1 ms |
1356 KB |
Output is correct |
6 |
Correct |
1 ms |
1452 KB |
Output is correct |
7 |
Correct |
1 ms |
1356 KB |
Output is correct |
8 |
Correct |
0 ms |
304 KB |
Output is correct |
9 |
Correct |
1 ms |
1484 KB |
Output is correct |
10 |
Correct |
1 ms |
204 KB |
Output is correct |
11 |
Correct |
0 ms |
204 KB |
Output is correct |
12 |
Correct |
1 ms |
1356 KB |
Output is correct |
13 |
Correct |
1 ms |
204 KB |
Output is correct |
14 |
Correct |
1 ms |
1484 KB |
Output is correct |
15 |
Correct |
1 ms |
1484 KB |
Output is correct |
16 |
Correct |
1 ms |
1452 KB |
Output is correct |
17 |
Correct |
1 ms |
1356 KB |
Output is correct |
18 |
Correct |
1 ms |
1444 KB |
Output is correct |
19 |
Correct |
1 ms |
1484 KB |
Output is correct |
20 |
Correct |
1 ms |
1484 KB |
Output is correct |
21 |
Correct |
1 ms |
1356 KB |
Output is correct |
22 |
Correct |
1 ms |
1484 KB |
Output is correct |
23 |
Correct |
1 ms |
1484 KB |
Output is correct |
24 |
Correct |
1 ms |
1484 KB |
Output is correct |
25 |
Correct |
1 ms |
1448 KB |
Output is correct |
26 |
Correct |
1 ms |
1484 KB |
Output is correct |
27 |
Correct |
0 ms |
204 KB |
Output is correct |
28 |
Correct |
1 ms |
1484 KB |
Output is correct |
29 |
Correct |
1 ms |
296 KB |
Output is correct |
30 |
Correct |
0 ms |
204 KB |
Output is correct |
31 |
Correct |
1 ms |
1448 KB |
Output is correct |
32 |
Correct |
1 ms |
204 KB |
Output is correct |
33 |
Correct |
1 ms |
1484 KB |
Output is correct |
34 |
Correct |
0 ms |
204 KB |
Output is correct |
35 |
Correct |
1 ms |
288 KB |
Output is correct |
36 |
Correct |
1 ms |
1612 KB |
Output is correct |
37 |
Correct |
1 ms |
1456 KB |
Output is correct |
38 |
Correct |
0 ms |
296 KB |
Output is correct |
39 |
Correct |
1 ms |
1484 KB |
Output is correct |
40 |
Correct |
1 ms |
1484 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
1356 KB |
Output is correct |
2 |
Correct |
1 ms |
1448 KB |
Output is correct |
3 |
Correct |
1 ms |
1484 KB |
Output is correct |
4 |
Correct |
1 ms |
1484 KB |
Output is correct |
5 |
Correct |
1 ms |
1356 KB |
Output is correct |
6 |
Correct |
1 ms |
1452 KB |
Output is correct |
7 |
Correct |
1 ms |
1356 KB |
Output is correct |
8 |
Correct |
0 ms |
304 KB |
Output is correct |
9 |
Correct |
1 ms |
1484 KB |
Output is correct |
10 |
Correct |
1 ms |
204 KB |
Output is correct |
11 |
Correct |
0 ms |
204 KB |
Output is correct |
12 |
Correct |
1 ms |
1356 KB |
Output is correct |
13 |
Correct |
1 ms |
204 KB |
Output is correct |
14 |
Correct |
1 ms |
1484 KB |
Output is correct |
15 |
Correct |
1 ms |
1484 KB |
Output is correct |
16 |
Correct |
1 ms |
1452 KB |
Output is correct |
17 |
Correct |
1 ms |
1356 KB |
Output is correct |
18 |
Correct |
1 ms |
1444 KB |
Output is correct |
19 |
Correct |
1 ms |
1484 KB |
Output is correct |
20 |
Correct |
1 ms |
1484 KB |
Output is correct |
21 |
Correct |
1 ms |
1356 KB |
Output is correct |
22 |
Correct |
1 ms |
1484 KB |
Output is correct |
23 |
Correct |
1 ms |
1484 KB |
Output is correct |
24 |
Correct |
1 ms |
1484 KB |
Output is correct |
25 |
Correct |
1 ms |
1448 KB |
Output is correct |
26 |
Correct |
1 ms |
1484 KB |
Output is correct |
27 |
Correct |
0 ms |
204 KB |
Output is correct |
28 |
Correct |
1 ms |
1484 KB |
Output is correct |
29 |
Correct |
1 ms |
296 KB |
Output is correct |
30 |
Correct |
0 ms |
204 KB |
Output is correct |
31 |
Correct |
1 ms |
1448 KB |
Output is correct |
32 |
Correct |
1 ms |
204 KB |
Output is correct |
33 |
Correct |
1 ms |
1484 KB |
Output is correct |
34 |
Correct |
0 ms |
204 KB |
Output is correct |
35 |
Correct |
1 ms |
288 KB |
Output is correct |
36 |
Correct |
1 ms |
1612 KB |
Output is correct |
37 |
Correct |
1 ms |
1456 KB |
Output is correct |
38 |
Correct |
0 ms |
296 KB |
Output is correct |
39 |
Correct |
1 ms |
1484 KB |
Output is correct |
40 |
Correct |
1 ms |
1484 KB |
Output is correct |
41 |
Correct |
1 ms |
1356 KB |
Output is correct |
42 |
Correct |
1 ms |
1484 KB |
Output is correct |
43 |
Correct |
1 ms |
1452 KB |
Output is correct |
44 |
Correct |
1 ms |
1484 KB |
Output is correct |
45 |
Correct |
1 ms |
1488 KB |
Output is correct |
46 |
Correct |
1 ms |
1352 KB |
Output is correct |
47 |
Correct |
1 ms |
1488 KB |
Output is correct |
48 |
Correct |
1 ms |
208 KB |
Output is correct |
49 |
Correct |
1 ms |
1456 KB |
Output is correct |
50 |
Correct |
1 ms |
208 KB |
Output is correct |
51 |
Correct |
1 ms |
304 KB |
Output is correct |
52 |
Correct |
1 ms |
208 KB |
Output is correct |
53 |
Correct |
1 ms |
208 KB |
Output is correct |
54 |
Correct |
1 ms |
1452 KB |
Output is correct |
55 |
Correct |
1 ms |
1488 KB |
Output is correct |
56 |
Correct |
1 ms |
1488 KB |
Output is correct |
57 |
Correct |
1 ms |
1488 KB |
Output is correct |
58 |
Correct |
1 ms |
1460 KB |
Output is correct |
59 |
Correct |
1 ms |
1488 KB |
Output is correct |
60 |
Correct |
1 ms |
1488 KB |
Output is correct |
61 |
Correct |
1 ms |
1488 KB |
Output is correct |
62 |
Correct |
0 ms |
208 KB |
Output is correct |
63 |
Correct |
1 ms |
208 KB |
Output is correct |
64 |
Correct |
1 ms |
1488 KB |
Output is correct |
65 |
Correct |
0 ms |
208 KB |
Output is correct |
66 |
Correct |
1 ms |
1456 KB |
Output is correct |
67 |
Correct |
1 ms |
1488 KB |
Output is correct |
68 |
Correct |
1 ms |
1360 KB |
Output is correct |
69 |
Correct |
1 ms |
1488 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
1356 KB |
Output is correct |
2 |
Correct |
1 ms |
1448 KB |
Output is correct |
3 |
Correct |
1 ms |
1484 KB |
Output is correct |
4 |
Correct |
1 ms |
1484 KB |
Output is correct |
5 |
Correct |
1 ms |
1356 KB |
Output is correct |
6 |
Correct |
1 ms |
1452 KB |
Output is correct |
7 |
Correct |
1 ms |
1356 KB |
Output is correct |
8 |
Correct |
0 ms |
304 KB |
Output is correct |
9 |
Correct |
1 ms |
1484 KB |
Output is correct |
10 |
Correct |
1 ms |
204 KB |
Output is correct |
11 |
Correct |
0 ms |
204 KB |
Output is correct |
12 |
Correct |
1 ms |
1356 KB |
Output is correct |
13 |
Correct |
1 ms |
204 KB |
Output is correct |
14 |
Correct |
1 ms |
1484 KB |
Output is correct |
15 |
Correct |
1 ms |
1484 KB |
Output is correct |
16 |
Correct |
1 ms |
1452 KB |
Output is correct |
17 |
Correct |
1 ms |
1356 KB |
Output is correct |
18 |
Correct |
1 ms |
1444 KB |
Output is correct |
19 |
Correct |
1 ms |
1484 KB |
Output is correct |
20 |
Correct |
1 ms |
1484 KB |
Output is correct |
21 |
Correct |
1 ms |
1356 KB |
Output is correct |
22 |
Correct |
1 ms |
1484 KB |
Output is correct |
23 |
Correct |
1 ms |
1484 KB |
Output is correct |
24 |
Correct |
1 ms |
1484 KB |
Output is correct |
25 |
Correct |
1 ms |
1448 KB |
Output is correct |
26 |
Correct |
1 ms |
1484 KB |
Output is correct |
27 |
Correct |
0 ms |
204 KB |
Output is correct |
28 |
Correct |
1 ms |
1484 KB |
Output is correct |
29 |
Correct |
1 ms |
296 KB |
Output is correct |
30 |
Correct |
0 ms |
204 KB |
Output is correct |
31 |
Correct |
1 ms |
1448 KB |
Output is correct |
32 |
Correct |
1 ms |
204 KB |
Output is correct |
33 |
Correct |
1 ms |
1484 KB |
Output is correct |
34 |
Correct |
0 ms |
204 KB |
Output is correct |
35 |
Correct |
1 ms |
288 KB |
Output is correct |
36 |
Correct |
1 ms |
1612 KB |
Output is correct |
37 |
Correct |
1 ms |
1456 KB |
Output is correct |
38 |
Correct |
0 ms |
296 KB |
Output is correct |
39 |
Correct |
1 ms |
1484 KB |
Output is correct |
40 |
Correct |
1 ms |
1484 KB |
Output is correct |
41 |
Correct |
1 ms |
1356 KB |
Output is correct |
42 |
Correct |
1 ms |
1484 KB |
Output is correct |
43 |
Correct |
1 ms |
1452 KB |
Output is correct |
44 |
Correct |
1 ms |
1484 KB |
Output is correct |
45 |
Correct |
1 ms |
1488 KB |
Output is correct |
46 |
Correct |
1 ms |
1352 KB |
Output is correct |
47 |
Correct |
1 ms |
1488 KB |
Output is correct |
48 |
Correct |
1 ms |
208 KB |
Output is correct |
49 |
Correct |
1 ms |
1456 KB |
Output is correct |
50 |
Correct |
1 ms |
208 KB |
Output is correct |
51 |
Correct |
1 ms |
304 KB |
Output is correct |
52 |
Correct |
1 ms |
208 KB |
Output is correct |
53 |
Correct |
1 ms |
208 KB |
Output is correct |
54 |
Correct |
1 ms |
1452 KB |
Output is correct |
55 |
Correct |
1 ms |
1488 KB |
Output is correct |
56 |
Correct |
1 ms |
1488 KB |
Output is correct |
57 |
Correct |
1 ms |
1488 KB |
Output is correct |
58 |
Correct |
1 ms |
1460 KB |
Output is correct |
59 |
Correct |
1 ms |
1488 KB |
Output is correct |
60 |
Correct |
1 ms |
1488 KB |
Output is correct |
61 |
Correct |
1 ms |
1488 KB |
Output is correct |
62 |
Correct |
0 ms |
208 KB |
Output is correct |
63 |
Correct |
1 ms |
208 KB |
Output is correct |
64 |
Correct |
1 ms |
1488 KB |
Output is correct |
65 |
Correct |
0 ms |
208 KB |
Output is correct |
66 |
Correct |
1 ms |
1456 KB |
Output is correct |
67 |
Correct |
1 ms |
1488 KB |
Output is correct |
68 |
Correct |
1 ms |
1360 KB |
Output is correct |
69 |
Correct |
1 ms |
1488 KB |
Output is correct |
70 |
Correct |
1 ms |
1488 KB |
Output is correct |
71 |
Correct |
1 ms |
1488 KB |
Output is correct |
72 |
Correct |
1 ms |
1488 KB |
Output is correct |
73 |
Correct |
1 ms |
1452 KB |
Output is correct |
74 |
Correct |
1 ms |
1488 KB |
Output is correct |
75 |
Correct |
1 ms |
1360 KB |
Output is correct |
76 |
Correct |
1 ms |
208 KB |
Output is correct |
77 |
Correct |
1 ms |
1488 KB |
Output is correct |
78 |
Correct |
0 ms |
208 KB |
Output is correct |
79 |
Correct |
1 ms |
208 KB |
Output is correct |
80 |
Correct |
1 ms |
308 KB |
Output is correct |
81 |
Correct |
1 ms |
1488 KB |
Output is correct |
82 |
Correct |
1 ms |
1488 KB |
Output is correct |
83 |
Correct |
1 ms |
1488 KB |
Output is correct |
84 |
Correct |
1 ms |
1488 KB |
Output is correct |
85 |
Correct |
1 ms |
1488 KB |
Output is correct |
86 |
Correct |
1 ms |
1452 KB |
Output is correct |
87 |
Correct |
1 ms |
1488 KB |
Output is correct |
88 |
Correct |
1 ms |
1488 KB |
Output is correct |
89 |
Correct |
0 ms |
208 KB |
Output is correct |
90 |
Correct |
1 ms |
1488 KB |
Output is correct |
91 |
Correct |
1 ms |
1488 KB |
Output is correct |
92 |
Correct |
1 ms |
1488 KB |
Output is correct |
93 |
Correct |
1 ms |
1488 KB |
Output is correct |
94 |
Correct |
0 ms |
300 KB |
Output is correct |
95 |
Correct |
1 ms |
1488 KB |
Output is correct |
96 |
Correct |
2 ms |
1488 KB |
Output is correct |
97 |
Correct |
1 ms |
1488 KB |
Output is correct |
98 |
Correct |
1 ms |
1460 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
27 ms |
4804 KB |
Output is correct |
2 |
Correct |
2 ms |
2252 KB |
Output is correct |
3 |
Correct |
10 ms |
1720 KB |
Output is correct |
4 |
Correct |
15 ms |
3636 KB |
Output is correct |
5 |
Correct |
36 ms |
5312 KB |
Output is correct |
6 |
Correct |
20 ms |
3012 KB |
Output is correct |
7 |
Correct |
34 ms |
4996 KB |
Output is correct |
8 |
Correct |
2 ms |
2228 KB |
Output is correct |
9 |
Correct |
2 ms |
2228 KB |
Output is correct |
10 |
Correct |
39 ms |
5632 KB |
Output is correct |
11 |
Correct |
28 ms |
4648 KB |
Output is correct |
12 |
Correct |
33 ms |
4740 KB |
Output is correct |
13 |
Correct |
1 ms |
972 KB |
Output is correct |
14 |
Correct |
1 ms |
972 KB |
Output is correct |
15 |
Correct |
36 ms |
5024 KB |
Output is correct |
16 |
Correct |
10 ms |
2148 KB |
Output is correct |
17 |
Correct |
36 ms |
5060 KB |
Output is correct |
18 |
Correct |
36 ms |
4036 KB |
Output is correct |
19 |
Correct |
2 ms |
776 KB |
Output is correct |
20 |
Correct |
38 ms |
5324 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
1356 KB |
Output is correct |
2 |
Correct |
1 ms |
1448 KB |
Output is correct |
3 |
Correct |
1 ms |
1484 KB |
Output is correct |
4 |
Correct |
1 ms |
1484 KB |
Output is correct |
5 |
Correct |
1 ms |
1356 KB |
Output is correct |
6 |
Correct |
1 ms |
1452 KB |
Output is correct |
7 |
Correct |
1 ms |
1356 KB |
Output is correct |
8 |
Correct |
0 ms |
304 KB |
Output is correct |
9 |
Correct |
1 ms |
1484 KB |
Output is correct |
10 |
Correct |
1 ms |
204 KB |
Output is correct |
11 |
Correct |
0 ms |
204 KB |
Output is correct |
12 |
Correct |
1 ms |
1356 KB |
Output is correct |
13 |
Correct |
1 ms |
204 KB |
Output is correct |
14 |
Correct |
1 ms |
1484 KB |
Output is correct |
15 |
Correct |
1 ms |
1484 KB |
Output is correct |
16 |
Correct |
1 ms |
1452 KB |
Output is correct |
17 |
Correct |
1 ms |
1356 KB |
Output is correct |
18 |
Correct |
1 ms |
1444 KB |
Output is correct |
19 |
Correct |
1 ms |
1484 KB |
Output is correct |
20 |
Correct |
1 ms |
1484 KB |
Output is correct |
21 |
Correct |
1 ms |
1356 KB |
Output is correct |
22 |
Correct |
1 ms |
1484 KB |
Output is correct |
23 |
Correct |
1 ms |
1484 KB |
Output is correct |
24 |
Correct |
1 ms |
1484 KB |
Output is correct |
25 |
Correct |
1 ms |
1448 KB |
Output is correct |
26 |
Correct |
1 ms |
1484 KB |
Output is correct |
27 |
Correct |
0 ms |
204 KB |
Output is correct |
28 |
Correct |
1 ms |
1484 KB |
Output is correct |
29 |
Correct |
1 ms |
296 KB |
Output is correct |
30 |
Correct |
0 ms |
204 KB |
Output is correct |
31 |
Correct |
1 ms |
1448 KB |
Output is correct |
32 |
Correct |
1 ms |
204 KB |
Output is correct |
33 |
Correct |
1 ms |
1484 KB |
Output is correct |
34 |
Correct |
0 ms |
204 KB |
Output is correct |
35 |
Correct |
1 ms |
288 KB |
Output is correct |
36 |
Correct |
1 ms |
1612 KB |
Output is correct |
37 |
Correct |
1 ms |
1456 KB |
Output is correct |
38 |
Correct |
0 ms |
296 KB |
Output is correct |
39 |
Correct |
1 ms |
1484 KB |
Output is correct |
40 |
Correct |
1 ms |
1484 KB |
Output is correct |
41 |
Correct |
1 ms |
1356 KB |
Output is correct |
42 |
Correct |
1 ms |
1484 KB |
Output is correct |
43 |
Correct |
1 ms |
1452 KB |
Output is correct |
44 |
Correct |
1 ms |
1484 KB |
Output is correct |
45 |
Correct |
1 ms |
1488 KB |
Output is correct |
46 |
Correct |
1 ms |
1352 KB |
Output is correct |
47 |
Correct |
1 ms |
1488 KB |
Output is correct |
48 |
Correct |
1 ms |
208 KB |
Output is correct |
49 |
Correct |
1 ms |
1456 KB |
Output is correct |
50 |
Correct |
1 ms |
208 KB |
Output is correct |
51 |
Correct |
1 ms |
304 KB |
Output is correct |
52 |
Correct |
1 ms |
208 KB |
Output is correct |
53 |
Correct |
1 ms |
208 KB |
Output is correct |
54 |
Correct |
1 ms |
1452 KB |
Output is correct |
55 |
Correct |
1 ms |
1488 KB |
Output is correct |
56 |
Correct |
1 ms |
1488 KB |
Output is correct |
57 |
Correct |
1 ms |
1488 KB |
Output is correct |
58 |
Correct |
1 ms |
1460 KB |
Output is correct |
59 |
Correct |
1 ms |
1488 KB |
Output is correct |
60 |
Correct |
1 ms |
1488 KB |
Output is correct |
61 |
Correct |
1 ms |
1488 KB |
Output is correct |
62 |
Correct |
0 ms |
208 KB |
Output is correct |
63 |
Correct |
1 ms |
208 KB |
Output is correct |
64 |
Correct |
1 ms |
1488 KB |
Output is correct |
65 |
Correct |
0 ms |
208 KB |
Output is correct |
66 |
Correct |
1 ms |
1456 KB |
Output is correct |
67 |
Correct |
1 ms |
1488 KB |
Output is correct |
68 |
Correct |
1 ms |
1360 KB |
Output is correct |
69 |
Correct |
1 ms |
1488 KB |
Output is correct |
70 |
Correct |
1 ms |
1488 KB |
Output is correct |
71 |
Correct |
1 ms |
1488 KB |
Output is correct |
72 |
Correct |
1 ms |
1488 KB |
Output is correct |
73 |
Correct |
1 ms |
1452 KB |
Output is correct |
74 |
Correct |
1 ms |
1488 KB |
Output is correct |
75 |
Correct |
1 ms |
1360 KB |
Output is correct |
76 |
Correct |
1 ms |
208 KB |
Output is correct |
77 |
Correct |
1 ms |
1488 KB |
Output is correct |
78 |
Correct |
0 ms |
208 KB |
Output is correct |
79 |
Correct |
1 ms |
208 KB |
Output is correct |
80 |
Correct |
1 ms |
308 KB |
Output is correct |
81 |
Correct |
1 ms |
1488 KB |
Output is correct |
82 |
Correct |
1 ms |
1488 KB |
Output is correct |
83 |
Correct |
1 ms |
1488 KB |
Output is correct |
84 |
Correct |
1 ms |
1488 KB |
Output is correct |
85 |
Correct |
1 ms |
1488 KB |
Output is correct |
86 |
Correct |
1 ms |
1452 KB |
Output is correct |
87 |
Correct |
1 ms |
1488 KB |
Output is correct |
88 |
Correct |
1 ms |
1488 KB |
Output is correct |
89 |
Correct |
0 ms |
208 KB |
Output is correct |
90 |
Correct |
1 ms |
1488 KB |
Output is correct |
91 |
Correct |
1 ms |
1488 KB |
Output is correct |
92 |
Correct |
1 ms |
1488 KB |
Output is correct |
93 |
Correct |
1 ms |
1488 KB |
Output is correct |
94 |
Correct |
0 ms |
300 KB |
Output is correct |
95 |
Correct |
1 ms |
1488 KB |
Output is correct |
96 |
Correct |
2 ms |
1488 KB |
Output is correct |
97 |
Correct |
1 ms |
1488 KB |
Output is correct |
98 |
Correct |
1 ms |
1460 KB |
Output is correct |
99 |
Correct |
27 ms |
4804 KB |
Output is correct |
100 |
Correct |
2 ms |
2252 KB |
Output is correct |
101 |
Correct |
10 ms |
1720 KB |
Output is correct |
102 |
Correct |
15 ms |
3636 KB |
Output is correct |
103 |
Correct |
36 ms |
5312 KB |
Output is correct |
104 |
Correct |
20 ms |
3012 KB |
Output is correct |
105 |
Correct |
34 ms |
4996 KB |
Output is correct |
106 |
Correct |
2 ms |
2228 KB |
Output is correct |
107 |
Correct |
2 ms |
2228 KB |
Output is correct |
108 |
Correct |
39 ms |
5632 KB |
Output is correct |
109 |
Correct |
28 ms |
4648 KB |
Output is correct |
110 |
Correct |
33 ms |
4740 KB |
Output is correct |
111 |
Correct |
1 ms |
972 KB |
Output is correct |
112 |
Correct |
1 ms |
972 KB |
Output is correct |
113 |
Correct |
36 ms |
5024 KB |
Output is correct |
114 |
Correct |
10 ms |
2148 KB |
Output is correct |
115 |
Correct |
36 ms |
5060 KB |
Output is correct |
116 |
Correct |
36 ms |
4036 KB |
Output is correct |
117 |
Correct |
2 ms |
776 KB |
Output is correct |
118 |
Correct |
38 ms |
5324 KB |
Output is correct |
119 |
Correct |
1 ms |
2256 KB |
Output is correct |
120 |
Correct |
28 ms |
5560 KB |
Output is correct |
121 |
Correct |
18 ms |
4164 KB |
Output is correct |
122 |
Correct |
1 ms |
1488 KB |
Output is correct |
123 |
Correct |
2 ms |
848 KB |
Output is correct |
124 |
Correct |
8 ms |
1612 KB |
Output is correct |
125 |
Correct |
11 ms |
3216 KB |
Output is correct |
126 |
Correct |
2 ms |
2256 KB |
Output is correct |
127 |
Correct |
5 ms |
2512 KB |
Output is correct |
128 |
Correct |
31 ms |
4912 KB |
Output is correct |
129 |
Correct |
18 ms |
3656 KB |
Output is correct |
130 |
Correct |
22 ms |
4192 KB |
Output is correct |
131 |
Correct |
1 ms |
2256 KB |
Output is correct |
132 |
Correct |
2 ms |
2224 KB |
Output is correct |
133 |
Correct |
40 ms |
5064 KB |
Output is correct |
134 |
Correct |
11 ms |
3016 KB |
Output is correct |
135 |
Correct |
1 ms |
2256 KB |
Output is correct |
136 |
Correct |
12 ms |
2060 KB |
Output is correct |
137 |
Correct |
17 ms |
2740 KB |
Output is correct |
138 |
Correct |
2 ms |
2232 KB |
Output is correct |