#include <bits/stdc++.h>
#define CHECK cout << "ok" << endl
#define finish(x) return cout << x << endl, 0
typedef long long ll;
typedef long double ldb;
const int md = 1e9 + 7;
const ll inf = 1e18;
const int OO = 0;
const int OOO = 1;
using namespace std;
struct edge {
int to, i;
edge(int tt = 0, int ii = 0) : to(tt), i(ii) {}
};
int n, m;
int C[100005] = {};
int dp[200005], to[200005];
int range[200005] = {};
vector<edge> g[200005];
vector<int> vis; int nxtcol = 5;
vector<int> path;
string ans;
void add(int l, int r) {
C[l]++;
C[r + 1]--;
}
void pre() {
for (int i = 1; i <= n; i++) C[i] += C[i - 1];
for (int i = 1; i <= n; i++) {
if (C[i] == 1) {
cout << "impossible\n";
exit(0);
}
C[i] = max(0, min(1, C[i] - 2));
if (C[i]) {
if (OO) {
cout << "from C adding " << i << " " << i - 1 << '\n';
}
g[i].push_back(edge(i - 1, -1));
g[i + n].push_back(edge(i - 1 + n, -1));
}
}
}
bool dfs(int v, int tar) {
if (OO) {
cout << "dfsing " << v << " tar " << tar << '\n';
}
if (v == tar) return true;
if (vis[v % n] == nxtcol) return false;
vis[v % n] = nxtcol;
for (const auto &i : g[v]) {
path.push_back(i.i);
if (dfs(i.to, tar)) return true;
path.pop_back();
}
return false;
}
bool check(int v) {
if (OO) {
cout << "starting check on " << v << '\n';
}
nxtcol++;
if (dfs(v, v + n)) return true;
return false;
}
int main() {
ios::sync_with_stdio(0), cin.tie(0);
cin >> n >> m;
for (int i = 0, l, r; i < m; i++) {
cin >> l >> r;
if (l > r) {
add(l, n);
add(1, r);
l--;
r += n;
if (OO) cout << "from input adding " << l << " " << r << '\n';
g[l].push_back(edge(r, i));
g[l + n].push_back(edge(2 * n, i));
}
else {
add(l, r);
l--;
if (OO) cout << "from input adding " << l << " " << r << '\n';
g[l].push_back(edge(r, i));
g[l + n].push_back(edge(r + n, i));
}
}
pre();
ans.resize(m, '1');
vis.resize(n, 0);
for (int i = 0; i < n; i++) {
if (check(i)) {
for (const auto &j : path)
if (j != -1) ans[j] = '0';
finish(ans);
}
}
finish("impossible");
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
4992 KB |
Output is correct |
2 |
Correct |
7 ms |
4992 KB |
Output is correct |
3 |
Correct |
7 ms |
4992 KB |
Output is correct |
4 |
Correct |
7 ms |
5120 KB |
Output is correct |
5 |
Correct |
6 ms |
4992 KB |
Output is correct |
6 |
Correct |
6 ms |
5120 KB |
Output is correct |
7 |
Correct |
7 ms |
5120 KB |
Output is correct |
8 |
Correct |
48 ms |
4992 KB |
Output is correct |
9 |
Correct |
7 ms |
5092 KB |
Output is correct |
10 |
Correct |
6 ms |
4992 KB |
Output is correct |
11 |
Correct |
6 ms |
5120 KB |
Output is correct |
12 |
Correct |
6 ms |
5120 KB |
Output is correct |
13 |
Correct |
5 ms |
5120 KB |
Output is correct |
14 |
Correct |
6 ms |
4992 KB |
Output is correct |
15 |
Correct |
6 ms |
4992 KB |
Output is correct |
16 |
Correct |
6 ms |
5120 KB |
Output is correct |
17 |
Correct |
6 ms |
5120 KB |
Output is correct |
18 |
Correct |
6 ms |
4992 KB |
Output is correct |
19 |
Correct |
6 ms |
4992 KB |
Output is correct |
20 |
Correct |
7 ms |
5120 KB |
Output is correct |
21 |
Correct |
8 ms |
5120 KB |
Output is correct |
22 |
Correct |
6 ms |
5120 KB |
Output is correct |
23 |
Correct |
6 ms |
5148 KB |
Output is correct |
24 |
Correct |
7 ms |
5120 KB |
Output is correct |
25 |
Correct |
6 ms |
5120 KB |
Output is correct |
26 |
Correct |
7 ms |
5120 KB |
Output is correct |
27 |
Correct |
7 ms |
4992 KB |
Output is correct |
28 |
Correct |
8 ms |
5120 KB |
Output is correct |
29 |
Correct |
8 ms |
5120 KB |
Output is correct |
30 |
Correct |
8 ms |
4992 KB |
Output is correct |
31 |
Correct |
7 ms |
5092 KB |
Output is correct |
32 |
Correct |
6 ms |
5120 KB |
Output is correct |
33 |
Correct |
7 ms |
5120 KB |
Output is correct |
34 |
Correct |
7 ms |
5120 KB |
Output is correct |
35 |
Correct |
6 ms |
4992 KB |
Output is correct |
36 |
Correct |
7 ms |
5120 KB |
Output is correct |
37 |
Correct |
6 ms |
4992 KB |
Output is correct |
38 |
Correct |
6 ms |
5120 KB |
Output is correct |
39 |
Correct |
6 ms |
5092 KB |
Output is correct |
40 |
Correct |
7 ms |
5120 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
4992 KB |
Output is correct |
2 |
Correct |
7 ms |
4992 KB |
Output is correct |
3 |
Correct |
7 ms |
4992 KB |
Output is correct |
4 |
Correct |
7 ms |
5120 KB |
Output is correct |
5 |
Correct |
6 ms |
4992 KB |
Output is correct |
6 |
Correct |
6 ms |
5120 KB |
Output is correct |
7 |
Correct |
7 ms |
5120 KB |
Output is correct |
8 |
Correct |
48 ms |
4992 KB |
Output is correct |
9 |
Correct |
7 ms |
5092 KB |
Output is correct |
10 |
Correct |
6 ms |
4992 KB |
Output is correct |
11 |
Correct |
6 ms |
5120 KB |
Output is correct |
12 |
Correct |
6 ms |
5120 KB |
Output is correct |
13 |
Correct |
5 ms |
5120 KB |
Output is correct |
14 |
Correct |
6 ms |
4992 KB |
Output is correct |
15 |
Correct |
6 ms |
4992 KB |
Output is correct |
16 |
Correct |
6 ms |
5120 KB |
Output is correct |
17 |
Correct |
6 ms |
5120 KB |
Output is correct |
18 |
Correct |
6 ms |
4992 KB |
Output is correct |
19 |
Correct |
6 ms |
4992 KB |
Output is correct |
20 |
Correct |
7 ms |
5120 KB |
Output is correct |
21 |
Correct |
8 ms |
5120 KB |
Output is correct |
22 |
Correct |
6 ms |
5120 KB |
Output is correct |
23 |
Correct |
6 ms |
5148 KB |
Output is correct |
24 |
Correct |
7 ms |
5120 KB |
Output is correct |
25 |
Correct |
6 ms |
5120 KB |
Output is correct |
26 |
Correct |
7 ms |
5120 KB |
Output is correct |
27 |
Correct |
7 ms |
4992 KB |
Output is correct |
28 |
Correct |
8 ms |
5120 KB |
Output is correct |
29 |
Correct |
8 ms |
5120 KB |
Output is correct |
30 |
Correct |
8 ms |
4992 KB |
Output is correct |
31 |
Correct |
7 ms |
5092 KB |
Output is correct |
32 |
Correct |
6 ms |
5120 KB |
Output is correct |
33 |
Correct |
7 ms |
5120 KB |
Output is correct |
34 |
Correct |
7 ms |
5120 KB |
Output is correct |
35 |
Correct |
6 ms |
4992 KB |
Output is correct |
36 |
Correct |
7 ms |
5120 KB |
Output is correct |
37 |
Correct |
6 ms |
4992 KB |
Output is correct |
38 |
Correct |
6 ms |
5120 KB |
Output is correct |
39 |
Correct |
6 ms |
5092 KB |
Output is correct |
40 |
Correct |
7 ms |
5120 KB |
Output is correct |
41 |
Correct |
6 ms |
5120 KB |
Output is correct |
42 |
Correct |
6 ms |
4992 KB |
Output is correct |
43 |
Correct |
7 ms |
5120 KB |
Output is correct |
44 |
Correct |
6 ms |
5120 KB |
Output is correct |
45 |
Correct |
6 ms |
4992 KB |
Output is correct |
46 |
Correct |
6 ms |
4992 KB |
Output is correct |
47 |
Correct |
7 ms |
5120 KB |
Output is correct |
48 |
Correct |
6 ms |
4992 KB |
Output is correct |
49 |
Correct |
6 ms |
5120 KB |
Output is correct |
50 |
Correct |
6 ms |
4992 KB |
Output is correct |
51 |
Correct |
6 ms |
5120 KB |
Output is correct |
52 |
Correct |
6 ms |
5120 KB |
Output is correct |
53 |
Correct |
7 ms |
5120 KB |
Output is correct |
54 |
Correct |
6 ms |
5120 KB |
Output is correct |
55 |
Correct |
6 ms |
5120 KB |
Output is correct |
56 |
Correct |
7 ms |
5120 KB |
Output is correct |
57 |
Correct |
6 ms |
5120 KB |
Output is correct |
58 |
Correct |
6 ms |
5120 KB |
Output is correct |
59 |
Correct |
7 ms |
5120 KB |
Output is correct |
60 |
Correct |
7 ms |
4992 KB |
Output is correct |
61 |
Correct |
8 ms |
5120 KB |
Output is correct |
62 |
Correct |
8 ms |
4992 KB |
Output is correct |
63 |
Correct |
7 ms |
4992 KB |
Output is correct |
64 |
Correct |
7 ms |
5120 KB |
Output is correct |
65 |
Correct |
6 ms |
4992 KB |
Output is correct |
66 |
Correct |
6 ms |
4992 KB |
Output is correct |
67 |
Correct |
7 ms |
5092 KB |
Output is correct |
68 |
Correct |
7 ms |
5120 KB |
Output is correct |
69 |
Correct |
7 ms |
5052 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
4992 KB |
Output is correct |
2 |
Correct |
7 ms |
4992 KB |
Output is correct |
3 |
Correct |
7 ms |
4992 KB |
Output is correct |
4 |
Correct |
7 ms |
5120 KB |
Output is correct |
5 |
Correct |
6 ms |
4992 KB |
Output is correct |
6 |
Correct |
6 ms |
5120 KB |
Output is correct |
7 |
Correct |
7 ms |
5120 KB |
Output is correct |
8 |
Correct |
48 ms |
4992 KB |
Output is correct |
9 |
Correct |
7 ms |
5092 KB |
Output is correct |
10 |
Correct |
6 ms |
4992 KB |
Output is correct |
11 |
Correct |
6 ms |
5120 KB |
Output is correct |
12 |
Correct |
6 ms |
5120 KB |
Output is correct |
13 |
Correct |
5 ms |
5120 KB |
Output is correct |
14 |
Correct |
6 ms |
4992 KB |
Output is correct |
15 |
Correct |
6 ms |
4992 KB |
Output is correct |
16 |
Correct |
6 ms |
5120 KB |
Output is correct |
17 |
Correct |
6 ms |
5120 KB |
Output is correct |
18 |
Correct |
6 ms |
4992 KB |
Output is correct |
19 |
Correct |
6 ms |
4992 KB |
Output is correct |
20 |
Correct |
7 ms |
5120 KB |
Output is correct |
21 |
Correct |
8 ms |
5120 KB |
Output is correct |
22 |
Correct |
6 ms |
5120 KB |
Output is correct |
23 |
Correct |
6 ms |
5148 KB |
Output is correct |
24 |
Correct |
7 ms |
5120 KB |
Output is correct |
25 |
Correct |
6 ms |
5120 KB |
Output is correct |
26 |
Correct |
7 ms |
5120 KB |
Output is correct |
27 |
Correct |
7 ms |
4992 KB |
Output is correct |
28 |
Correct |
8 ms |
5120 KB |
Output is correct |
29 |
Correct |
8 ms |
5120 KB |
Output is correct |
30 |
Correct |
8 ms |
4992 KB |
Output is correct |
31 |
Correct |
7 ms |
5092 KB |
Output is correct |
32 |
Correct |
6 ms |
5120 KB |
Output is correct |
33 |
Correct |
7 ms |
5120 KB |
Output is correct |
34 |
Correct |
7 ms |
5120 KB |
Output is correct |
35 |
Correct |
6 ms |
4992 KB |
Output is correct |
36 |
Correct |
7 ms |
5120 KB |
Output is correct |
37 |
Correct |
6 ms |
4992 KB |
Output is correct |
38 |
Correct |
6 ms |
5120 KB |
Output is correct |
39 |
Correct |
6 ms |
5092 KB |
Output is correct |
40 |
Correct |
7 ms |
5120 KB |
Output is correct |
41 |
Correct |
6 ms |
5120 KB |
Output is correct |
42 |
Correct |
6 ms |
4992 KB |
Output is correct |
43 |
Correct |
7 ms |
5120 KB |
Output is correct |
44 |
Correct |
6 ms |
5120 KB |
Output is correct |
45 |
Correct |
6 ms |
4992 KB |
Output is correct |
46 |
Correct |
6 ms |
4992 KB |
Output is correct |
47 |
Correct |
7 ms |
5120 KB |
Output is correct |
48 |
Correct |
6 ms |
4992 KB |
Output is correct |
49 |
Correct |
6 ms |
5120 KB |
Output is correct |
50 |
Correct |
6 ms |
4992 KB |
Output is correct |
51 |
Correct |
6 ms |
5120 KB |
Output is correct |
52 |
Correct |
6 ms |
5120 KB |
Output is correct |
53 |
Correct |
7 ms |
5120 KB |
Output is correct |
54 |
Correct |
6 ms |
5120 KB |
Output is correct |
55 |
Correct |
6 ms |
5120 KB |
Output is correct |
56 |
Correct |
7 ms |
5120 KB |
Output is correct |
57 |
Correct |
6 ms |
5120 KB |
Output is correct |
58 |
Correct |
6 ms |
5120 KB |
Output is correct |
59 |
Correct |
7 ms |
5120 KB |
Output is correct |
60 |
Correct |
7 ms |
4992 KB |
Output is correct |
61 |
Correct |
8 ms |
5120 KB |
Output is correct |
62 |
Correct |
8 ms |
4992 KB |
Output is correct |
63 |
Correct |
7 ms |
4992 KB |
Output is correct |
64 |
Correct |
7 ms |
5120 KB |
Output is correct |
65 |
Correct |
6 ms |
4992 KB |
Output is correct |
66 |
Correct |
6 ms |
4992 KB |
Output is correct |
67 |
Correct |
7 ms |
5092 KB |
Output is correct |
68 |
Correct |
7 ms |
5120 KB |
Output is correct |
69 |
Correct |
7 ms |
5052 KB |
Output is correct |
70 |
Correct |
7 ms |
5120 KB |
Output is correct |
71 |
Correct |
6 ms |
5120 KB |
Output is correct |
72 |
Correct |
5 ms |
4992 KB |
Output is correct |
73 |
Correct |
6 ms |
5120 KB |
Output is correct |
74 |
Correct |
7 ms |
5120 KB |
Output is correct |
75 |
Correct |
7 ms |
4992 KB |
Output is correct |
76 |
Correct |
6 ms |
5120 KB |
Output is correct |
77 |
Correct |
6 ms |
5120 KB |
Output is correct |
78 |
Correct |
6 ms |
4992 KB |
Output is correct |
79 |
Correct |
6 ms |
5120 KB |
Output is correct |
80 |
Correct |
7 ms |
5120 KB |
Output is correct |
81 |
Correct |
7 ms |
5120 KB |
Output is correct |
82 |
Correct |
6 ms |
5120 KB |
Output is correct |
83 |
Correct |
8 ms |
5120 KB |
Output is correct |
84 |
Correct |
7 ms |
5120 KB |
Output is correct |
85 |
Correct |
8 ms |
5120 KB |
Output is correct |
86 |
Correct |
7 ms |
4992 KB |
Output is correct |
87 |
Correct |
7 ms |
5120 KB |
Output is correct |
88 |
Correct |
8 ms |
4980 KB |
Output is correct |
89 |
Correct |
8 ms |
5120 KB |
Output is correct |
90 |
Correct |
6 ms |
5120 KB |
Output is correct |
91 |
Correct |
6 ms |
5120 KB |
Output is correct |
92 |
Correct |
6 ms |
5040 KB |
Output is correct |
93 |
Correct |
7 ms |
5120 KB |
Output is correct |
94 |
Correct |
6 ms |
4992 KB |
Output is correct |
95 |
Correct |
6 ms |
5120 KB |
Output is correct |
96 |
Correct |
7 ms |
5120 KB |
Output is correct |
97 |
Correct |
6 ms |
5120 KB |
Output is correct |
98 |
Correct |
7 ms |
5120 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
40 ms |
13796 KB |
Output is correct |
2 |
Correct |
7 ms |
5888 KB |
Output is correct |
3 |
Correct |
23 ms |
8568 KB |
Output is correct |
4 |
Correct |
40 ms |
12236 KB |
Output is correct |
5 |
Correct |
82 ms |
14680 KB |
Output is correct |
6 |
Correct |
102 ms |
10616 KB |
Output is correct |
7 |
Correct |
77 ms |
14836 KB |
Output is correct |
8 |
Correct |
17 ms |
9216 KB |
Output is correct |
9 |
Correct |
17 ms |
8960 KB |
Output is correct |
10 |
Correct |
93 ms |
15008 KB |
Output is correct |
11 |
Correct |
65 ms |
13200 KB |
Output is correct |
12 |
Correct |
74 ms |
11640 KB |
Output is correct |
13 |
Correct |
10 ms |
5888 KB |
Output is correct |
14 |
Correct |
10 ms |
5888 KB |
Output is correct |
15 |
Correct |
112 ms |
18292 KB |
Output is correct |
16 |
Correct |
32 ms |
12280 KB |
Output is correct |
17 |
Correct |
101 ms |
18932 KB |
Output is correct |
18 |
Correct |
47 ms |
8824 KB |
Output is correct |
19 |
Correct |
10 ms |
5888 KB |
Output is correct |
20 |
Correct |
49 ms |
14196 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
4992 KB |
Output is correct |
2 |
Correct |
7 ms |
4992 KB |
Output is correct |
3 |
Correct |
7 ms |
4992 KB |
Output is correct |
4 |
Correct |
7 ms |
5120 KB |
Output is correct |
5 |
Correct |
6 ms |
4992 KB |
Output is correct |
6 |
Correct |
6 ms |
5120 KB |
Output is correct |
7 |
Correct |
7 ms |
5120 KB |
Output is correct |
8 |
Correct |
48 ms |
4992 KB |
Output is correct |
9 |
Correct |
7 ms |
5092 KB |
Output is correct |
10 |
Correct |
6 ms |
4992 KB |
Output is correct |
11 |
Correct |
6 ms |
5120 KB |
Output is correct |
12 |
Correct |
6 ms |
5120 KB |
Output is correct |
13 |
Correct |
5 ms |
5120 KB |
Output is correct |
14 |
Correct |
6 ms |
4992 KB |
Output is correct |
15 |
Correct |
6 ms |
4992 KB |
Output is correct |
16 |
Correct |
6 ms |
5120 KB |
Output is correct |
17 |
Correct |
6 ms |
5120 KB |
Output is correct |
18 |
Correct |
6 ms |
4992 KB |
Output is correct |
19 |
Correct |
6 ms |
4992 KB |
Output is correct |
20 |
Correct |
7 ms |
5120 KB |
Output is correct |
21 |
Correct |
8 ms |
5120 KB |
Output is correct |
22 |
Correct |
6 ms |
5120 KB |
Output is correct |
23 |
Correct |
6 ms |
5148 KB |
Output is correct |
24 |
Correct |
7 ms |
5120 KB |
Output is correct |
25 |
Correct |
6 ms |
5120 KB |
Output is correct |
26 |
Correct |
7 ms |
5120 KB |
Output is correct |
27 |
Correct |
7 ms |
4992 KB |
Output is correct |
28 |
Correct |
8 ms |
5120 KB |
Output is correct |
29 |
Correct |
8 ms |
5120 KB |
Output is correct |
30 |
Correct |
8 ms |
4992 KB |
Output is correct |
31 |
Correct |
7 ms |
5092 KB |
Output is correct |
32 |
Correct |
6 ms |
5120 KB |
Output is correct |
33 |
Correct |
7 ms |
5120 KB |
Output is correct |
34 |
Correct |
7 ms |
5120 KB |
Output is correct |
35 |
Correct |
6 ms |
4992 KB |
Output is correct |
36 |
Correct |
7 ms |
5120 KB |
Output is correct |
37 |
Correct |
6 ms |
4992 KB |
Output is correct |
38 |
Correct |
6 ms |
5120 KB |
Output is correct |
39 |
Correct |
6 ms |
5092 KB |
Output is correct |
40 |
Correct |
7 ms |
5120 KB |
Output is correct |
41 |
Correct |
6 ms |
5120 KB |
Output is correct |
42 |
Correct |
6 ms |
4992 KB |
Output is correct |
43 |
Correct |
7 ms |
5120 KB |
Output is correct |
44 |
Correct |
6 ms |
5120 KB |
Output is correct |
45 |
Correct |
6 ms |
4992 KB |
Output is correct |
46 |
Correct |
6 ms |
4992 KB |
Output is correct |
47 |
Correct |
7 ms |
5120 KB |
Output is correct |
48 |
Correct |
6 ms |
4992 KB |
Output is correct |
49 |
Correct |
6 ms |
5120 KB |
Output is correct |
50 |
Correct |
6 ms |
4992 KB |
Output is correct |
51 |
Correct |
6 ms |
5120 KB |
Output is correct |
52 |
Correct |
6 ms |
5120 KB |
Output is correct |
53 |
Correct |
7 ms |
5120 KB |
Output is correct |
54 |
Correct |
6 ms |
5120 KB |
Output is correct |
55 |
Correct |
6 ms |
5120 KB |
Output is correct |
56 |
Correct |
7 ms |
5120 KB |
Output is correct |
57 |
Correct |
6 ms |
5120 KB |
Output is correct |
58 |
Correct |
6 ms |
5120 KB |
Output is correct |
59 |
Correct |
7 ms |
5120 KB |
Output is correct |
60 |
Correct |
7 ms |
4992 KB |
Output is correct |
61 |
Correct |
8 ms |
5120 KB |
Output is correct |
62 |
Correct |
8 ms |
4992 KB |
Output is correct |
63 |
Correct |
7 ms |
4992 KB |
Output is correct |
64 |
Correct |
7 ms |
5120 KB |
Output is correct |
65 |
Correct |
6 ms |
4992 KB |
Output is correct |
66 |
Correct |
6 ms |
4992 KB |
Output is correct |
67 |
Correct |
7 ms |
5092 KB |
Output is correct |
68 |
Correct |
7 ms |
5120 KB |
Output is correct |
69 |
Correct |
7 ms |
5052 KB |
Output is correct |
70 |
Correct |
7 ms |
5120 KB |
Output is correct |
71 |
Correct |
6 ms |
5120 KB |
Output is correct |
72 |
Correct |
5 ms |
4992 KB |
Output is correct |
73 |
Correct |
6 ms |
5120 KB |
Output is correct |
74 |
Correct |
7 ms |
5120 KB |
Output is correct |
75 |
Correct |
7 ms |
4992 KB |
Output is correct |
76 |
Correct |
6 ms |
5120 KB |
Output is correct |
77 |
Correct |
6 ms |
5120 KB |
Output is correct |
78 |
Correct |
6 ms |
4992 KB |
Output is correct |
79 |
Correct |
6 ms |
5120 KB |
Output is correct |
80 |
Correct |
7 ms |
5120 KB |
Output is correct |
81 |
Correct |
7 ms |
5120 KB |
Output is correct |
82 |
Correct |
6 ms |
5120 KB |
Output is correct |
83 |
Correct |
8 ms |
5120 KB |
Output is correct |
84 |
Correct |
7 ms |
5120 KB |
Output is correct |
85 |
Correct |
8 ms |
5120 KB |
Output is correct |
86 |
Correct |
7 ms |
4992 KB |
Output is correct |
87 |
Correct |
7 ms |
5120 KB |
Output is correct |
88 |
Correct |
8 ms |
4980 KB |
Output is correct |
89 |
Correct |
8 ms |
5120 KB |
Output is correct |
90 |
Correct |
6 ms |
5120 KB |
Output is correct |
91 |
Correct |
6 ms |
5120 KB |
Output is correct |
92 |
Correct |
6 ms |
5040 KB |
Output is correct |
93 |
Correct |
7 ms |
5120 KB |
Output is correct |
94 |
Correct |
6 ms |
4992 KB |
Output is correct |
95 |
Correct |
6 ms |
5120 KB |
Output is correct |
96 |
Correct |
7 ms |
5120 KB |
Output is correct |
97 |
Correct |
6 ms |
5120 KB |
Output is correct |
98 |
Correct |
7 ms |
5120 KB |
Output is correct |
99 |
Correct |
40 ms |
13796 KB |
Output is correct |
100 |
Correct |
7 ms |
5888 KB |
Output is correct |
101 |
Correct |
23 ms |
8568 KB |
Output is correct |
102 |
Correct |
40 ms |
12236 KB |
Output is correct |
103 |
Correct |
82 ms |
14680 KB |
Output is correct |
104 |
Correct |
102 ms |
10616 KB |
Output is correct |
105 |
Correct |
77 ms |
14836 KB |
Output is correct |
106 |
Correct |
17 ms |
9216 KB |
Output is correct |
107 |
Correct |
17 ms |
8960 KB |
Output is correct |
108 |
Correct |
93 ms |
15008 KB |
Output is correct |
109 |
Correct |
65 ms |
13200 KB |
Output is correct |
110 |
Correct |
74 ms |
11640 KB |
Output is correct |
111 |
Correct |
10 ms |
5888 KB |
Output is correct |
112 |
Correct |
10 ms |
5888 KB |
Output is correct |
113 |
Correct |
112 ms |
18292 KB |
Output is correct |
114 |
Correct |
32 ms |
12280 KB |
Output is correct |
115 |
Correct |
101 ms |
18932 KB |
Output is correct |
116 |
Correct |
47 ms |
8824 KB |
Output is correct |
117 |
Correct |
10 ms |
5888 KB |
Output is correct |
118 |
Correct |
49 ms |
14196 KB |
Output is correct |
119 |
Correct |
8 ms |
6144 KB |
Output is correct |
120 |
Correct |
79 ms |
16756 KB |
Output is correct |
121 |
Correct |
51 ms |
12024 KB |
Output is correct |
122 |
Correct |
8 ms |
4992 KB |
Output is correct |
123 |
Correct |
11 ms |
5760 KB |
Output is correct |
124 |
Correct |
31 ms |
8320 KB |
Output is correct |
125 |
Correct |
32 ms |
10896 KB |
Output is correct |
126 |
Correct |
12 ms |
7552 KB |
Output is correct |
127 |
Correct |
24 ms |
10624 KB |
Output is correct |
128 |
Correct |
66 ms |
14200 KB |
Output is correct |
129 |
Correct |
47 ms |
11500 KB |
Output is correct |
130 |
Correct |
55 ms |
12280 KB |
Output is correct |
131 |
Correct |
8 ms |
5888 KB |
Output is correct |
132 |
Correct |
7 ms |
5888 KB |
Output is correct |
133 |
Correct |
110 ms |
18884 KB |
Output is correct |
134 |
Correct |
54 ms |
18800 KB |
Output is correct |
135 |
Execution timed out |
3099 ms |
13732 KB |
Time limit exceeded |
136 |
Halted |
0 ms |
0 KB |
- |