#include<bits/stdc++.h>
#define X first
#define Y second
using namespace std;
typedef pair<int,int> pii;
const int N = 100005, inf = 1e9;
int n, m, s[N], nxt[N], opt[N];
bool non[N];
pii a[N];
vector<int> ans, in[N], out[N];
set<pii> st, ss, es;
void boom () {
puts("impossible");
exit(0);
}
void solve (vector<pair<pii, int> > &V, vector<int> &X) {
int DI;
for(auto &T : V) {
int S = T.X.X, E = T.X.Y, I = T.Y;
if(E == n) {
st.insert({S, I});
DI = I;
}
else {
int J = upper_bound(X.begin(), X.end(), E) - X.begin() - 1;
if(J < 0 || X[J] < S) J = S;
else J = X[J];
auto it = st.lower_bound({J+1, 0});
if(it != st.end() && (it->X) <= E+1) {
st.insert({S, I});
nxt[I] = (it->Y);
}
}
}
if(!nxt[DI]) boom();
ans.push_back(DI);
for(int i=nxt[DI];i!=DI;i=nxt[i]) {
ans.push_back(i);
}
}
void eliminate () {
for(auto &T : ans) {
if(a[T].X > a[T].Y) in[1].push_back(T);
out[a[T].Y+1].push_back(T);
in[a[T].X].push_back(T);
}
for(int i=1;i<=n;i++) {
for(auto &T : out[i]) {
int S = a[T].X, E = a[T].Y;
if(S > E) S -= n;
auto it = ss.find({S, T});
if(it != ss.end()) ss.erase(it);
it = es.find({E, T});
if(it != es.end()) es.erase(it);
}
for(auto &T : in[i]) {
if(non[T]) continue;
int S = a[T].X, E = a[T].Y;
if(S > E) {
if(i == 1) S -= n;
else E += n;
}
ss.insert({S, T});
es.insert({E, T});
}
if(ss.size() > 2) {
auto si = ss.begin(), ei = es.end();
ei--;
int A = si->Y, B = ei->Y;
set<pii> SS, ES;
for(auto &T : ss) {
int I = T.Y;
if(A == I || B == I) SS.insert(T);
else non[I] = true;
}
for(auto &T : es) {
int I = T.Y;
if(A == I || B == I) ES.insert(T);
else non[I] = true;
}
swap(SS, ss);
swap(ES, es);
}
}
vector<int> ANS;
for(auto &T : ans) {
if(!non[T]) ANS.push_back(T);
}
swap(ANS, ans);
}
int main()
{
scanf("%d%d",&n,&m);
for(int i=1;i<=m;i++) {
scanf("%d%d",&a[i].X,&a[i].Y);
if(a[i].X <= a[i].Y) {
s[a[i].X]++;
s[a[i].Y+1]--;
}
else {
s[1]++;
s[a[i].Y+1]--;
s[a[i].X]++;
}
}
int MV = inf, MI;
for(int i=1;i<=n;i++) {
s[i] += s[i-1];
if(MV > s[i]) {
MV = s[i];
MI = i;
}
}
if(MV < 2) boom();
else if(MV == 2) {
vector<pair<pii, int> > V, O;
vector<int> X;
for(int i=1;i<=m;i++) {
a[i].X -= MI;
a[i].Y -= MI;
if(a[i].X <= 0) a[i].X += n;
if(a[i].Y <= 0) a[i].Y += n;
if(a[i].X > a[i].Y || (a[i].X <= n && n <= a[i].Y)) {
O.push_back({{a[i].X, (a[i].Y == n ? 0 : a[i].Y)}, i});
}
else V.push_back({a[i], i});
}
V.push_back({{0, O[0].X.Y}, O[0].Y});
V.push_back({{O[0].X.X, n}, O[0].Y});
sort(V.begin(), V.end());
reverse(V.begin(), V.end());
for(int i=1;i<n;i++) {
int I = (i + MI > n ? i + MI - n : i + MI);
if(s[I] == 2) X.push_back(i);
}
solve(V, X);
}
else {
for(int i=1;i<=m;i++) {
ans.push_back(i);
}
}
eliminate();
for(auto &T : ans) {
opt[T] = 1;
}
for(int i=1;i<=m;i++) {
printf("%d",opt[i]);
}
}
Compilation message
alternating.cpp: In function 'int main()':
alternating.cpp:102:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
~~~~~^~~~~~~~~~~~~~
alternating.cpp:104:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a[i].X,&a[i].Y);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
alternating.cpp:142:15: warning: 'MI' may be used uninitialized in this function [-Wmaybe-uninitialized]
int I = (i + MI > n ? i + MI - n : i + MI);
~~^~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
4988 KB |
Output is correct |
2 |
Correct |
8 ms |
5228 KB |
Output is correct |
3 |
Correct |
6 ms |
5228 KB |
Output is correct |
4 |
Correct |
8 ms |
5228 KB |
Output is correct |
5 |
Correct |
7 ms |
5264 KB |
Output is correct |
6 |
Correct |
7 ms |
5264 KB |
Output is correct |
7 |
Correct |
7 ms |
5264 KB |
Output is correct |
8 |
Correct |
7 ms |
5328 KB |
Output is correct |
9 |
Correct |
6 ms |
5328 KB |
Output is correct |
10 |
Correct |
6 ms |
5328 KB |
Output is correct |
11 |
Correct |
7 ms |
5328 KB |
Output is correct |
12 |
Correct |
7 ms |
5328 KB |
Output is correct |
13 |
Correct |
8 ms |
5328 KB |
Output is correct |
14 |
Correct |
7 ms |
5328 KB |
Output is correct |
15 |
Correct |
9 ms |
5328 KB |
Output is correct |
16 |
Correct |
7 ms |
5328 KB |
Output is correct |
17 |
Correct |
6 ms |
5328 KB |
Output is correct |
18 |
Correct |
6 ms |
5328 KB |
Output is correct |
19 |
Correct |
7 ms |
5328 KB |
Output is correct |
20 |
Correct |
8 ms |
5328 KB |
Output is correct |
21 |
Correct |
6 ms |
5328 KB |
Output is correct |
22 |
Correct |
8 ms |
5328 KB |
Output is correct |
23 |
Correct |
10 ms |
5328 KB |
Output is correct |
24 |
Correct |
7 ms |
5328 KB |
Output is correct |
25 |
Correct |
7 ms |
5328 KB |
Output is correct |
26 |
Correct |
7 ms |
5328 KB |
Output is correct |
27 |
Correct |
8 ms |
5328 KB |
Output is correct |
28 |
Correct |
8 ms |
5328 KB |
Output is correct |
29 |
Correct |
8 ms |
5328 KB |
Output is correct |
30 |
Correct |
7 ms |
5328 KB |
Output is correct |
31 |
Correct |
7 ms |
5328 KB |
Output is correct |
32 |
Correct |
7 ms |
5328 KB |
Output is correct |
33 |
Correct |
7 ms |
5328 KB |
Output is correct |
34 |
Correct |
9 ms |
5328 KB |
Output is correct |
35 |
Correct |
7 ms |
5328 KB |
Output is correct |
36 |
Correct |
8 ms |
5328 KB |
Output is correct |
37 |
Correct |
7 ms |
5328 KB |
Output is correct |
38 |
Correct |
7 ms |
5328 KB |
Output is correct |
39 |
Correct |
6 ms |
5328 KB |
Output is correct |
40 |
Correct |
9 ms |
5328 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
4988 KB |
Output is correct |
2 |
Correct |
8 ms |
5228 KB |
Output is correct |
3 |
Correct |
6 ms |
5228 KB |
Output is correct |
4 |
Correct |
8 ms |
5228 KB |
Output is correct |
5 |
Correct |
7 ms |
5264 KB |
Output is correct |
6 |
Correct |
7 ms |
5264 KB |
Output is correct |
7 |
Correct |
7 ms |
5264 KB |
Output is correct |
8 |
Correct |
7 ms |
5328 KB |
Output is correct |
9 |
Correct |
6 ms |
5328 KB |
Output is correct |
10 |
Correct |
6 ms |
5328 KB |
Output is correct |
11 |
Correct |
7 ms |
5328 KB |
Output is correct |
12 |
Correct |
7 ms |
5328 KB |
Output is correct |
13 |
Correct |
8 ms |
5328 KB |
Output is correct |
14 |
Correct |
7 ms |
5328 KB |
Output is correct |
15 |
Correct |
9 ms |
5328 KB |
Output is correct |
16 |
Correct |
7 ms |
5328 KB |
Output is correct |
17 |
Correct |
6 ms |
5328 KB |
Output is correct |
18 |
Correct |
6 ms |
5328 KB |
Output is correct |
19 |
Correct |
7 ms |
5328 KB |
Output is correct |
20 |
Correct |
8 ms |
5328 KB |
Output is correct |
21 |
Correct |
6 ms |
5328 KB |
Output is correct |
22 |
Correct |
8 ms |
5328 KB |
Output is correct |
23 |
Correct |
10 ms |
5328 KB |
Output is correct |
24 |
Correct |
7 ms |
5328 KB |
Output is correct |
25 |
Correct |
7 ms |
5328 KB |
Output is correct |
26 |
Correct |
7 ms |
5328 KB |
Output is correct |
27 |
Correct |
8 ms |
5328 KB |
Output is correct |
28 |
Correct |
8 ms |
5328 KB |
Output is correct |
29 |
Correct |
8 ms |
5328 KB |
Output is correct |
30 |
Correct |
7 ms |
5328 KB |
Output is correct |
31 |
Correct |
7 ms |
5328 KB |
Output is correct |
32 |
Correct |
7 ms |
5328 KB |
Output is correct |
33 |
Correct |
7 ms |
5328 KB |
Output is correct |
34 |
Correct |
9 ms |
5328 KB |
Output is correct |
35 |
Correct |
7 ms |
5328 KB |
Output is correct |
36 |
Correct |
8 ms |
5328 KB |
Output is correct |
37 |
Correct |
7 ms |
5328 KB |
Output is correct |
38 |
Correct |
7 ms |
5328 KB |
Output is correct |
39 |
Correct |
6 ms |
5328 KB |
Output is correct |
40 |
Correct |
9 ms |
5328 KB |
Output is correct |
41 |
Correct |
8 ms |
5328 KB |
Output is correct |
42 |
Correct |
7 ms |
5328 KB |
Output is correct |
43 |
Correct |
7 ms |
5328 KB |
Output is correct |
44 |
Correct |
6 ms |
5328 KB |
Output is correct |
45 |
Correct |
7 ms |
5328 KB |
Output is correct |
46 |
Correct |
9 ms |
5356 KB |
Output is correct |
47 |
Correct |
6 ms |
5356 KB |
Output is correct |
48 |
Correct |
7 ms |
5356 KB |
Output is correct |
49 |
Correct |
8 ms |
5356 KB |
Output is correct |
50 |
Correct |
7 ms |
5356 KB |
Output is correct |
51 |
Correct |
8 ms |
5356 KB |
Output is correct |
52 |
Correct |
9 ms |
5356 KB |
Output is correct |
53 |
Correct |
8 ms |
5356 KB |
Output is correct |
54 |
Correct |
8 ms |
5356 KB |
Output is correct |
55 |
Correct |
7 ms |
5356 KB |
Output is correct |
56 |
Correct |
8 ms |
5356 KB |
Output is correct |
57 |
Correct |
7 ms |
5356 KB |
Output is correct |
58 |
Correct |
6 ms |
5356 KB |
Output is correct |
59 |
Correct |
8 ms |
5356 KB |
Output is correct |
60 |
Correct |
7 ms |
5356 KB |
Output is correct |
61 |
Correct |
7 ms |
5356 KB |
Output is correct |
62 |
Correct |
9 ms |
5356 KB |
Output is correct |
63 |
Correct |
8 ms |
5356 KB |
Output is correct |
64 |
Correct |
8 ms |
5356 KB |
Output is correct |
65 |
Correct |
7 ms |
5356 KB |
Output is correct |
66 |
Correct |
8 ms |
5356 KB |
Output is correct |
67 |
Correct |
7 ms |
5356 KB |
Output is correct |
68 |
Correct |
7 ms |
5356 KB |
Output is correct |
69 |
Correct |
8 ms |
5356 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
4988 KB |
Output is correct |
2 |
Correct |
8 ms |
5228 KB |
Output is correct |
3 |
Correct |
6 ms |
5228 KB |
Output is correct |
4 |
Correct |
8 ms |
5228 KB |
Output is correct |
5 |
Correct |
7 ms |
5264 KB |
Output is correct |
6 |
Correct |
7 ms |
5264 KB |
Output is correct |
7 |
Correct |
7 ms |
5264 KB |
Output is correct |
8 |
Correct |
7 ms |
5328 KB |
Output is correct |
9 |
Correct |
6 ms |
5328 KB |
Output is correct |
10 |
Correct |
6 ms |
5328 KB |
Output is correct |
11 |
Correct |
7 ms |
5328 KB |
Output is correct |
12 |
Correct |
7 ms |
5328 KB |
Output is correct |
13 |
Correct |
8 ms |
5328 KB |
Output is correct |
14 |
Correct |
7 ms |
5328 KB |
Output is correct |
15 |
Correct |
9 ms |
5328 KB |
Output is correct |
16 |
Correct |
7 ms |
5328 KB |
Output is correct |
17 |
Correct |
6 ms |
5328 KB |
Output is correct |
18 |
Correct |
6 ms |
5328 KB |
Output is correct |
19 |
Correct |
7 ms |
5328 KB |
Output is correct |
20 |
Correct |
8 ms |
5328 KB |
Output is correct |
21 |
Correct |
6 ms |
5328 KB |
Output is correct |
22 |
Correct |
8 ms |
5328 KB |
Output is correct |
23 |
Correct |
10 ms |
5328 KB |
Output is correct |
24 |
Correct |
7 ms |
5328 KB |
Output is correct |
25 |
Correct |
7 ms |
5328 KB |
Output is correct |
26 |
Correct |
7 ms |
5328 KB |
Output is correct |
27 |
Correct |
8 ms |
5328 KB |
Output is correct |
28 |
Correct |
8 ms |
5328 KB |
Output is correct |
29 |
Correct |
8 ms |
5328 KB |
Output is correct |
30 |
Correct |
7 ms |
5328 KB |
Output is correct |
31 |
Correct |
7 ms |
5328 KB |
Output is correct |
32 |
Correct |
7 ms |
5328 KB |
Output is correct |
33 |
Correct |
7 ms |
5328 KB |
Output is correct |
34 |
Correct |
9 ms |
5328 KB |
Output is correct |
35 |
Correct |
7 ms |
5328 KB |
Output is correct |
36 |
Correct |
8 ms |
5328 KB |
Output is correct |
37 |
Correct |
7 ms |
5328 KB |
Output is correct |
38 |
Correct |
7 ms |
5328 KB |
Output is correct |
39 |
Correct |
6 ms |
5328 KB |
Output is correct |
40 |
Correct |
9 ms |
5328 KB |
Output is correct |
41 |
Correct |
8 ms |
5328 KB |
Output is correct |
42 |
Correct |
7 ms |
5328 KB |
Output is correct |
43 |
Correct |
7 ms |
5328 KB |
Output is correct |
44 |
Correct |
6 ms |
5328 KB |
Output is correct |
45 |
Correct |
7 ms |
5328 KB |
Output is correct |
46 |
Correct |
9 ms |
5356 KB |
Output is correct |
47 |
Correct |
6 ms |
5356 KB |
Output is correct |
48 |
Correct |
7 ms |
5356 KB |
Output is correct |
49 |
Correct |
8 ms |
5356 KB |
Output is correct |
50 |
Correct |
7 ms |
5356 KB |
Output is correct |
51 |
Correct |
8 ms |
5356 KB |
Output is correct |
52 |
Correct |
9 ms |
5356 KB |
Output is correct |
53 |
Correct |
8 ms |
5356 KB |
Output is correct |
54 |
Correct |
8 ms |
5356 KB |
Output is correct |
55 |
Correct |
7 ms |
5356 KB |
Output is correct |
56 |
Correct |
8 ms |
5356 KB |
Output is correct |
57 |
Correct |
7 ms |
5356 KB |
Output is correct |
58 |
Correct |
6 ms |
5356 KB |
Output is correct |
59 |
Correct |
8 ms |
5356 KB |
Output is correct |
60 |
Correct |
7 ms |
5356 KB |
Output is correct |
61 |
Correct |
7 ms |
5356 KB |
Output is correct |
62 |
Correct |
9 ms |
5356 KB |
Output is correct |
63 |
Correct |
8 ms |
5356 KB |
Output is correct |
64 |
Correct |
8 ms |
5356 KB |
Output is correct |
65 |
Correct |
7 ms |
5356 KB |
Output is correct |
66 |
Correct |
8 ms |
5356 KB |
Output is correct |
67 |
Correct |
7 ms |
5356 KB |
Output is correct |
68 |
Correct |
7 ms |
5356 KB |
Output is correct |
69 |
Correct |
8 ms |
5356 KB |
Output is correct |
70 |
Correct |
8 ms |
5372 KB |
Output is correct |
71 |
Correct |
9 ms |
5372 KB |
Output is correct |
72 |
Correct |
6 ms |
5372 KB |
Output is correct |
73 |
Correct |
7 ms |
5372 KB |
Output is correct |
74 |
Correct |
7 ms |
5372 KB |
Output is correct |
75 |
Correct |
8 ms |
5372 KB |
Output is correct |
76 |
Correct |
7 ms |
5372 KB |
Output is correct |
77 |
Correct |
8 ms |
5372 KB |
Output is correct |
78 |
Correct |
7 ms |
5372 KB |
Output is correct |
79 |
Correct |
8 ms |
5372 KB |
Output is correct |
80 |
Correct |
8 ms |
5372 KB |
Output is correct |
81 |
Correct |
7 ms |
5372 KB |
Output is correct |
82 |
Correct |
7 ms |
5372 KB |
Output is correct |
83 |
Correct |
8 ms |
5420 KB |
Output is correct |
84 |
Correct |
9 ms |
5512 KB |
Output is correct |
85 |
Correct |
9 ms |
5512 KB |
Output is correct |
86 |
Correct |
7 ms |
5512 KB |
Output is correct |
87 |
Correct |
8 ms |
5512 KB |
Output is correct |
88 |
Correct |
7 ms |
5512 KB |
Output is correct |
89 |
Correct |
8 ms |
5512 KB |
Output is correct |
90 |
Correct |
10 ms |
5512 KB |
Output is correct |
91 |
Correct |
7 ms |
5512 KB |
Output is correct |
92 |
Correct |
8 ms |
5512 KB |
Output is correct |
93 |
Correct |
7 ms |
5512 KB |
Output is correct |
94 |
Correct |
7 ms |
5512 KB |
Output is correct |
95 |
Correct |
7 ms |
5512 KB |
Output is correct |
96 |
Correct |
9 ms |
5512 KB |
Output is correct |
97 |
Correct |
8 ms |
5512 KB |
Output is correct |
98 |
Correct |
10 ms |
5512 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
134 ms |
17460 KB |
Output is correct |
2 |
Correct |
9 ms |
17460 KB |
Output is correct |
3 |
Correct |
27 ms |
17460 KB |
Output is correct |
4 |
Correct |
27 ms |
17460 KB |
Output is correct |
5 |
Correct |
138 ms |
17460 KB |
Output is correct |
6 |
Correct |
40 ms |
17460 KB |
Output is correct |
7 |
Correct |
176 ms |
17460 KB |
Output is correct |
8 |
Correct |
14 ms |
17460 KB |
Output is correct |
9 |
Correct |
12 ms |
17460 KB |
Output is correct |
10 |
Correct |
169 ms |
17460 KB |
Output is correct |
11 |
Correct |
136 ms |
17460 KB |
Output is correct |
12 |
Correct |
99 ms |
17460 KB |
Output is correct |
13 |
Correct |
8 ms |
17460 KB |
Output is correct |
14 |
Correct |
7 ms |
17460 KB |
Output is correct |
15 |
Correct |
69 ms |
17460 KB |
Output is correct |
16 |
Correct |
17 ms |
17460 KB |
Output is correct |
17 |
Correct |
123 ms |
17460 KB |
Output is correct |
18 |
Correct |
82 ms |
17460 KB |
Output is correct |
19 |
Correct |
9 ms |
17460 KB |
Output is correct |
20 |
Correct |
181 ms |
17460 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
6 ms |
4988 KB |
Output is correct |
2 |
Correct |
8 ms |
5228 KB |
Output is correct |
3 |
Correct |
6 ms |
5228 KB |
Output is correct |
4 |
Correct |
8 ms |
5228 KB |
Output is correct |
5 |
Correct |
7 ms |
5264 KB |
Output is correct |
6 |
Correct |
7 ms |
5264 KB |
Output is correct |
7 |
Correct |
7 ms |
5264 KB |
Output is correct |
8 |
Correct |
7 ms |
5328 KB |
Output is correct |
9 |
Correct |
6 ms |
5328 KB |
Output is correct |
10 |
Correct |
6 ms |
5328 KB |
Output is correct |
11 |
Correct |
7 ms |
5328 KB |
Output is correct |
12 |
Correct |
7 ms |
5328 KB |
Output is correct |
13 |
Correct |
8 ms |
5328 KB |
Output is correct |
14 |
Correct |
7 ms |
5328 KB |
Output is correct |
15 |
Correct |
9 ms |
5328 KB |
Output is correct |
16 |
Correct |
7 ms |
5328 KB |
Output is correct |
17 |
Correct |
6 ms |
5328 KB |
Output is correct |
18 |
Correct |
6 ms |
5328 KB |
Output is correct |
19 |
Correct |
7 ms |
5328 KB |
Output is correct |
20 |
Correct |
8 ms |
5328 KB |
Output is correct |
21 |
Correct |
6 ms |
5328 KB |
Output is correct |
22 |
Correct |
8 ms |
5328 KB |
Output is correct |
23 |
Correct |
10 ms |
5328 KB |
Output is correct |
24 |
Correct |
7 ms |
5328 KB |
Output is correct |
25 |
Correct |
7 ms |
5328 KB |
Output is correct |
26 |
Correct |
7 ms |
5328 KB |
Output is correct |
27 |
Correct |
8 ms |
5328 KB |
Output is correct |
28 |
Correct |
8 ms |
5328 KB |
Output is correct |
29 |
Correct |
8 ms |
5328 KB |
Output is correct |
30 |
Correct |
7 ms |
5328 KB |
Output is correct |
31 |
Correct |
7 ms |
5328 KB |
Output is correct |
32 |
Correct |
7 ms |
5328 KB |
Output is correct |
33 |
Correct |
7 ms |
5328 KB |
Output is correct |
34 |
Correct |
9 ms |
5328 KB |
Output is correct |
35 |
Correct |
7 ms |
5328 KB |
Output is correct |
36 |
Correct |
8 ms |
5328 KB |
Output is correct |
37 |
Correct |
7 ms |
5328 KB |
Output is correct |
38 |
Correct |
7 ms |
5328 KB |
Output is correct |
39 |
Correct |
6 ms |
5328 KB |
Output is correct |
40 |
Correct |
9 ms |
5328 KB |
Output is correct |
41 |
Correct |
8 ms |
5328 KB |
Output is correct |
42 |
Correct |
7 ms |
5328 KB |
Output is correct |
43 |
Correct |
7 ms |
5328 KB |
Output is correct |
44 |
Correct |
6 ms |
5328 KB |
Output is correct |
45 |
Correct |
7 ms |
5328 KB |
Output is correct |
46 |
Correct |
9 ms |
5356 KB |
Output is correct |
47 |
Correct |
6 ms |
5356 KB |
Output is correct |
48 |
Correct |
7 ms |
5356 KB |
Output is correct |
49 |
Correct |
8 ms |
5356 KB |
Output is correct |
50 |
Correct |
7 ms |
5356 KB |
Output is correct |
51 |
Correct |
8 ms |
5356 KB |
Output is correct |
52 |
Correct |
9 ms |
5356 KB |
Output is correct |
53 |
Correct |
8 ms |
5356 KB |
Output is correct |
54 |
Correct |
8 ms |
5356 KB |
Output is correct |
55 |
Correct |
7 ms |
5356 KB |
Output is correct |
56 |
Correct |
8 ms |
5356 KB |
Output is correct |
57 |
Correct |
7 ms |
5356 KB |
Output is correct |
58 |
Correct |
6 ms |
5356 KB |
Output is correct |
59 |
Correct |
8 ms |
5356 KB |
Output is correct |
60 |
Correct |
7 ms |
5356 KB |
Output is correct |
61 |
Correct |
7 ms |
5356 KB |
Output is correct |
62 |
Correct |
9 ms |
5356 KB |
Output is correct |
63 |
Correct |
8 ms |
5356 KB |
Output is correct |
64 |
Correct |
8 ms |
5356 KB |
Output is correct |
65 |
Correct |
7 ms |
5356 KB |
Output is correct |
66 |
Correct |
8 ms |
5356 KB |
Output is correct |
67 |
Correct |
7 ms |
5356 KB |
Output is correct |
68 |
Correct |
7 ms |
5356 KB |
Output is correct |
69 |
Correct |
8 ms |
5356 KB |
Output is correct |
70 |
Correct |
8 ms |
5372 KB |
Output is correct |
71 |
Correct |
9 ms |
5372 KB |
Output is correct |
72 |
Correct |
6 ms |
5372 KB |
Output is correct |
73 |
Correct |
7 ms |
5372 KB |
Output is correct |
74 |
Correct |
7 ms |
5372 KB |
Output is correct |
75 |
Correct |
8 ms |
5372 KB |
Output is correct |
76 |
Correct |
7 ms |
5372 KB |
Output is correct |
77 |
Correct |
8 ms |
5372 KB |
Output is correct |
78 |
Correct |
7 ms |
5372 KB |
Output is correct |
79 |
Correct |
8 ms |
5372 KB |
Output is correct |
80 |
Correct |
8 ms |
5372 KB |
Output is correct |
81 |
Correct |
7 ms |
5372 KB |
Output is correct |
82 |
Correct |
7 ms |
5372 KB |
Output is correct |
83 |
Correct |
8 ms |
5420 KB |
Output is correct |
84 |
Correct |
9 ms |
5512 KB |
Output is correct |
85 |
Correct |
9 ms |
5512 KB |
Output is correct |
86 |
Correct |
7 ms |
5512 KB |
Output is correct |
87 |
Correct |
8 ms |
5512 KB |
Output is correct |
88 |
Correct |
7 ms |
5512 KB |
Output is correct |
89 |
Correct |
8 ms |
5512 KB |
Output is correct |
90 |
Correct |
10 ms |
5512 KB |
Output is correct |
91 |
Correct |
7 ms |
5512 KB |
Output is correct |
92 |
Correct |
8 ms |
5512 KB |
Output is correct |
93 |
Correct |
7 ms |
5512 KB |
Output is correct |
94 |
Correct |
7 ms |
5512 KB |
Output is correct |
95 |
Correct |
7 ms |
5512 KB |
Output is correct |
96 |
Correct |
9 ms |
5512 KB |
Output is correct |
97 |
Correct |
8 ms |
5512 KB |
Output is correct |
98 |
Correct |
10 ms |
5512 KB |
Output is correct |
99 |
Correct |
134 ms |
17460 KB |
Output is correct |
100 |
Correct |
9 ms |
17460 KB |
Output is correct |
101 |
Correct |
27 ms |
17460 KB |
Output is correct |
102 |
Correct |
27 ms |
17460 KB |
Output is correct |
103 |
Correct |
138 ms |
17460 KB |
Output is correct |
104 |
Correct |
40 ms |
17460 KB |
Output is correct |
105 |
Correct |
176 ms |
17460 KB |
Output is correct |
106 |
Correct |
14 ms |
17460 KB |
Output is correct |
107 |
Correct |
12 ms |
17460 KB |
Output is correct |
108 |
Correct |
169 ms |
17460 KB |
Output is correct |
109 |
Correct |
136 ms |
17460 KB |
Output is correct |
110 |
Correct |
99 ms |
17460 KB |
Output is correct |
111 |
Correct |
8 ms |
17460 KB |
Output is correct |
112 |
Correct |
7 ms |
17460 KB |
Output is correct |
113 |
Correct |
69 ms |
17460 KB |
Output is correct |
114 |
Correct |
17 ms |
17460 KB |
Output is correct |
115 |
Correct |
123 ms |
17460 KB |
Output is correct |
116 |
Correct |
82 ms |
17460 KB |
Output is correct |
117 |
Correct |
9 ms |
17460 KB |
Output is correct |
118 |
Correct |
181 ms |
17460 KB |
Output is correct |
119 |
Correct |
9 ms |
17460 KB |
Output is correct |
120 |
Correct |
127 ms |
17460 KB |
Output is correct |
121 |
Correct |
67 ms |
17460 KB |
Output is correct |
122 |
Correct |
8 ms |
17460 KB |
Output is correct |
123 |
Correct |
10 ms |
17460 KB |
Output is correct |
124 |
Correct |
19 ms |
17460 KB |
Output is correct |
125 |
Correct |
54 ms |
17460 KB |
Output is correct |
126 |
Correct |
9 ms |
17460 KB |
Output is correct |
127 |
Correct |
24 ms |
17460 KB |
Output is correct |
128 |
Correct |
123 ms |
17460 KB |
Output is correct |
129 |
Correct |
66 ms |
17460 KB |
Output is correct |
130 |
Correct |
79 ms |
17460 KB |
Output is correct |
131 |
Correct |
9 ms |
17460 KB |
Output is correct |
132 |
Correct |
10 ms |
17460 KB |
Output is correct |
133 |
Correct |
242 ms |
17460 KB |
Output is correct |
134 |
Correct |
81 ms |
17460 KB |
Output is correct |
135 |
Correct |
8 ms |
17460 KB |
Output is correct |
136 |
Correct |
26 ms |
17460 KB |
Output is correct |
137 |
Correct |
34 ms |
17460 KB |
Output is correct |
138 |
Correct |
10 ms |
17460 KB |
Output is correct |