#include <stdio.h>
#define N1 300000
#define N2 300000
#define INF 0x7fffffff
int max(int a, int b) { return a > b ? a : b; }
unsigned int X = 12345;
int rand_() {
return (X *= 3) >> 1;
}
int *xx;
void sort(int *ii, int l, int r) {
while (l < r) {
int i = l, j = l, k = r, i_ = ii[l + rand_() % (r - l)], tmp;
while (j < k)
if (xx[ii[j]] == xx[i_])
j++;
else if (xx[ii[j]] < xx[i_]) {
tmp = ii[i], ii[i] = ii[j], ii[j] = tmp;
i++, j++;
} else {
k--;
tmp = ii[j], ii[j] = ii[k], ii[k] = tmp;
}
sort(ii, l, i);
l = k;
}
}
void read(int *ll, int *rr, int n) {
static int ii[N1], ll_[N1], rr_[N1];
int i;
for (i = 0; i < n; i++) {
scanf("%d%d", &ll[i], &rr[i]);
ii[i] = i;
}
xx = ll, sort(ii, 0, n);
for (i = 0; i < n; i++)
ll_[i] = ll[ii[i]], rr_[i] = rr[ii[i]];
for (i = 0; i < n; i++)
ll[i] = ll_[i], rr[i] = rr_[i];
ll[n] = rr[n] = INF;
}
int search(int *ll, int *rr, int n, int x, int *j_, int *x_) {
int lower, upper;
lower = -1, upper = n;
while (upper - lower > 1) {
int i = (lower + upper) / 2;
if (ll[i] <= x)
lower = i;
else
upper = i;
}
if (lower == -1 || rr[lower] <= x)
*j_ = lower + 1, *x_ = ll[lower + 1];
else
*j_ = lower, *x_ = x;
return lower;
}
int main() {
static int ll1[N1 + 1], rr1[N1 + 1], ll2[N2 + 1], rr2[N2 + 1];
int n1, n2, d, i1, j1, x1, i2, j2, x2, i1_, j1_, x1_, i2_, j2_, x2_, k;
scanf("%d%d%d", &n1, &n2, &d);
read(ll1, rr1, n1);
read(ll2, rr2, n2);
i1 = -1, search(ll1, rr1, n1, 0, &j1, &x1);
i2 = -1, search(ll2, rr2, n2, d, &j2, &x2);
k = 1;
while (1) {
if (x1 == INF) {
i1_ = j2, search(ll1, rr1, n1, max(x2 + d, ll1[i2 + 1]), &j1_, &x1_);
i2_ = i2, j2_ = j2 + 1, x2_ = ll2[j2 + 1];
} else if (x2 == INF) {
i1_ = i1, j1_ = j1 + 1, x1_ = ll1[j1 + 1];
i2_ = j1, search(ll2, rr2, n2, max(x1 + d, ll2[i1 + 1]), &j2_, &x2_);
} else {
i1_ = j2, search(ll1, rr1, n1, max(x2 + d, ll1[i2 + 1]), &j1_, &x1_);
if (i1_ >= i1 && j1_ >= j1 + 1)
i1_ = i1, j1_ = j1 + 1, x1_ = ll1[j1 + 1];
i2_ = j1, search(ll2, rr2, n2, max(x1 + d, ll2[i1 + 1]), &j2_, &x2_);
if (i2_ >= i2 && j2_ >= j2 + 1)
i2_ = i2, j2_ = j2 + 1, x2_ = ll2[j2 + 1];
}
i1 = i1_, j1 = j1_, x1 = x1_, i2 = i2_, j2 = j2_, x2 = x2_;
if (x1 == INF && x2 == INF)
break;
k++;
}
printf("%d\n", k);
return 0;
}
Compilation message
Main.c: In function 'read':
Main.c:41:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | scanf("%d%d", &ll[i], &rr[i]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Main.c: In function 'main':
Main.c:75:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
75 | scanf("%d%d%d", &n1, &n2, &d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
296 KB |
Output is correct |
5 |
Correct |
1 ms |
296 KB |
Output is correct |
6 |
Correct |
0 ms |
292 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
300 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
296 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
296 KB |
Output is correct |
21 |
Correct |
0 ms |
292 KB |
Output is correct |
22 |
Correct |
0 ms |
296 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
0 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
296 KB |
Output is correct |
28 |
Correct |
1 ms |
384 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
0 ms |
212 KB |
Output is correct |
33 |
Correct |
0 ms |
300 KB |
Output is correct |
34 |
Correct |
1 ms |
212 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 |
212 KB |
Output is correct |
38 |
Correct |
1 ms |
212 KB |
Output is correct |
39 |
Correct |
1 ms |
212 KB |
Output is correct |
40 |
Correct |
0 ms |
292 KB |
Output is correct |
41 |
Correct |
1 ms |
212 KB |
Output is correct |
42 |
Correct |
1 ms |
212 KB |
Output is correct |
43 |
Correct |
0 ms |
212 KB |
Output is correct |
44 |
Correct |
0 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
212 KB |
Output is correct |
46 |
Correct |
0 ms |
212 KB |
Output is correct |
47 |
Correct |
1 ms |
212 KB |
Output is correct |
48 |
Correct |
0 ms |
212 KB |
Output is correct |
49 |
Correct |
0 ms |
212 KB |
Output is correct |
50 |
Correct |
1 ms |
212 KB |
Output is correct |
51 |
Correct |
0 ms |
212 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
296 KB |
Output is correct |
5 |
Correct |
1 ms |
296 KB |
Output is correct |
6 |
Correct |
0 ms |
292 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
300 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
296 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
296 KB |
Output is correct |
21 |
Correct |
0 ms |
292 KB |
Output is correct |
22 |
Correct |
0 ms |
296 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
0 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
296 KB |
Output is correct |
28 |
Correct |
1 ms |
384 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
0 ms |
212 KB |
Output is correct |
33 |
Correct |
0 ms |
300 KB |
Output is correct |
34 |
Correct |
1 ms |
212 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 |
212 KB |
Output is correct |
38 |
Correct |
1 ms |
212 KB |
Output is correct |
39 |
Correct |
1 ms |
212 KB |
Output is correct |
40 |
Correct |
0 ms |
292 KB |
Output is correct |
41 |
Correct |
1 ms |
212 KB |
Output is correct |
42 |
Correct |
1 ms |
212 KB |
Output is correct |
43 |
Correct |
0 ms |
212 KB |
Output is correct |
44 |
Correct |
0 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
212 KB |
Output is correct |
46 |
Correct |
0 ms |
212 KB |
Output is correct |
47 |
Correct |
1 ms |
212 KB |
Output is correct |
48 |
Correct |
0 ms |
212 KB |
Output is correct |
49 |
Correct |
0 ms |
212 KB |
Output is correct |
50 |
Correct |
1 ms |
212 KB |
Output is correct |
51 |
Correct |
0 ms |
212 KB |
Output is correct |
52 |
Correct |
0 ms |
300 KB |
Output is correct |
53 |
Correct |
1 ms |
212 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
1 ms |
312 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
59 |
Correct |
1 ms |
308 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
212 KB |
Output is correct |
62 |
Correct |
1 ms |
212 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
356 KB |
Output is correct |
71 |
Correct |
1 ms |
340 KB |
Output is correct |
72 |
Correct |
0 ms |
296 KB |
Output is correct |
73 |
Correct |
1 ms |
292 KB |
Output is correct |
74 |
Correct |
1 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
292 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
308 KB |
Output is correct |
78 |
Correct |
1 ms |
340 KB |
Output is correct |
79 |
Correct |
1 ms |
340 KB |
Output is correct |
80 |
Correct |
1 ms |
340 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
0 ms |
340 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
308 KB |
Output is correct |
86 |
Correct |
1 ms |
360 KB |
Output is correct |
87 |
Correct |
0 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
212 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
212 KB |
Output is correct |
91 |
Correct |
0 ms |
296 KB |
Output is correct |
92 |
Correct |
0 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
212 KB |
Output is correct |
94 |
Correct |
1 ms |
212 KB |
Output is correct |
95 |
Correct |
0 ms |
212 KB |
Output is correct |
96 |
Correct |
0 ms |
212 KB |
Output is correct |
97 |
Correct |
0 ms |
212 KB |
Output is correct |
98 |
Correct |
1 ms |
300 KB |
Output is correct |
99 |
Correct |
0 ms |
340 KB |
Output is correct |
100 |
Correct |
1 ms |
300 KB |
Output is correct |
101 |
Correct |
0 ms |
300 KB |
Output is correct |
102 |
Correct |
1 ms |
212 KB |
Output is correct |
103 |
Correct |
1 ms |
340 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
212 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
308 KB |
Output is correct |
3 |
Correct |
2 ms |
432 KB |
Output is correct |
4 |
Correct |
2 ms |
340 KB |
Output is correct |
5 |
Correct |
2 ms |
340 KB |
Output is correct |
6 |
Correct |
1 ms |
380 KB |
Output is correct |
7 |
Correct |
2 ms |
436 KB |
Output is correct |
8 |
Correct |
1 ms |
340 KB |
Output is correct |
9 |
Correct |
2 ms |
308 KB |
Output is correct |
10 |
Correct |
1 ms |
304 KB |
Output is correct |
11 |
Correct |
1 ms |
308 KB |
Output is correct |
12 |
Correct |
1 ms |
352 KB |
Output is correct |
13 |
Correct |
1 ms |
300 KB |
Output is correct |
14 |
Correct |
2 ms |
436 KB |
Output is correct |
15 |
Correct |
2 ms |
340 KB |
Output is correct |
16 |
Correct |
2 ms |
440 KB |
Output is correct |
17 |
Correct |
1 ms |
304 KB |
Output is correct |
18 |
Correct |
1 ms |
340 KB |
Output is correct |
19 |
Correct |
2 ms |
372 KB |
Output is correct |
20 |
Correct |
2 ms |
340 KB |
Output is correct |
21 |
Correct |
2 ms |
468 KB |
Output is correct |
22 |
Correct |
2 ms |
340 KB |
Output is correct |
23 |
Correct |
1 ms |
352 KB |
Output is correct |
24 |
Correct |
1 ms |
340 KB |
Output is correct |
25 |
Correct |
1 ms |
340 KB |
Output is correct |
26 |
Correct |
1 ms |
304 KB |
Output is correct |
27 |
Correct |
1 ms |
340 KB |
Output is correct |
28 |
Correct |
2 ms |
340 KB |
Output is correct |
29 |
Correct |
1 ms |
340 KB |
Output is correct |
30 |
Correct |
1 ms |
304 KB |
Output is correct |
31 |
Correct |
2 ms |
340 KB |
Output is correct |
32 |
Correct |
2 ms |
440 KB |
Output is correct |
33 |
Correct |
0 ms |
212 KB |
Output is correct |
34 |
Correct |
0 ms |
296 KB |
Output is correct |
35 |
Correct |
0 ms |
212 KB |
Output is correct |
36 |
Correct |
0 ms |
292 KB |
Output is correct |
37 |
Correct |
0 ms |
212 KB |
Output is correct |
38 |
Correct |
0 ms |
300 KB |
Output is correct |
39 |
Correct |
0 ms |
296 KB |
Output is correct |
40 |
Correct |
0 ms |
212 KB |
Output is correct |
41 |
Correct |
0 ms |
212 KB |
Output is correct |
42 |
Correct |
2 ms |
340 KB |
Output is correct |
43 |
Correct |
2 ms |
340 KB |
Output is correct |
44 |
Correct |
2 ms |
340 KB |
Output is correct |
45 |
Correct |
2 ms |
392 KB |
Output is correct |
46 |
Correct |
2 ms |
340 KB |
Output is correct |
47 |
Correct |
1 ms |
304 KB |
Output is correct |
48 |
Correct |
1 ms |
340 KB |
Output is correct |
49 |
Correct |
1 ms |
340 KB |
Output is correct |
50 |
Correct |
1 ms |
340 KB |
Output is correct |
51 |
Correct |
1 ms |
340 KB |
Output is correct |
52 |
Correct |
1 ms |
308 KB |
Output is correct |
53 |
Correct |
1 ms |
304 KB |
Output is correct |
54 |
Correct |
1 ms |
340 KB |
Output is correct |
55 |
Correct |
1 ms |
304 KB |
Output is correct |
56 |
Correct |
1 ms |
340 KB |
Output is correct |
57 |
Correct |
1 ms |
340 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
212 KB |
Output is correct |
4 |
Correct |
0 ms |
296 KB |
Output is correct |
5 |
Correct |
1 ms |
296 KB |
Output is correct |
6 |
Correct |
0 ms |
292 KB |
Output is correct |
7 |
Correct |
0 ms |
340 KB |
Output is correct |
8 |
Correct |
0 ms |
212 KB |
Output is correct |
9 |
Correct |
0 ms |
212 KB |
Output is correct |
10 |
Correct |
0 ms |
340 KB |
Output is correct |
11 |
Correct |
1 ms |
340 KB |
Output is correct |
12 |
Correct |
0 ms |
212 KB |
Output is correct |
13 |
Correct |
1 ms |
212 KB |
Output is correct |
14 |
Correct |
0 ms |
212 KB |
Output is correct |
15 |
Correct |
1 ms |
300 KB |
Output is correct |
16 |
Correct |
1 ms |
212 KB |
Output is correct |
17 |
Correct |
0 ms |
296 KB |
Output is correct |
18 |
Correct |
1 ms |
212 KB |
Output is correct |
19 |
Correct |
1 ms |
340 KB |
Output is correct |
20 |
Correct |
0 ms |
296 KB |
Output is correct |
21 |
Correct |
0 ms |
292 KB |
Output is correct |
22 |
Correct |
0 ms |
296 KB |
Output is correct |
23 |
Correct |
0 ms |
212 KB |
Output is correct |
24 |
Correct |
1 ms |
212 KB |
Output is correct |
25 |
Correct |
0 ms |
212 KB |
Output is correct |
26 |
Correct |
0 ms |
212 KB |
Output is correct |
27 |
Correct |
0 ms |
296 KB |
Output is correct |
28 |
Correct |
1 ms |
384 KB |
Output is correct |
29 |
Correct |
1 ms |
212 KB |
Output is correct |
30 |
Correct |
0 ms |
340 KB |
Output is correct |
31 |
Correct |
1 ms |
212 KB |
Output is correct |
32 |
Correct |
0 ms |
212 KB |
Output is correct |
33 |
Correct |
0 ms |
300 KB |
Output is correct |
34 |
Correct |
1 ms |
212 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 |
212 KB |
Output is correct |
38 |
Correct |
1 ms |
212 KB |
Output is correct |
39 |
Correct |
1 ms |
212 KB |
Output is correct |
40 |
Correct |
0 ms |
292 KB |
Output is correct |
41 |
Correct |
1 ms |
212 KB |
Output is correct |
42 |
Correct |
1 ms |
212 KB |
Output is correct |
43 |
Correct |
0 ms |
212 KB |
Output is correct |
44 |
Correct |
0 ms |
340 KB |
Output is correct |
45 |
Correct |
1 ms |
212 KB |
Output is correct |
46 |
Correct |
0 ms |
212 KB |
Output is correct |
47 |
Correct |
1 ms |
212 KB |
Output is correct |
48 |
Correct |
0 ms |
212 KB |
Output is correct |
49 |
Correct |
0 ms |
212 KB |
Output is correct |
50 |
Correct |
1 ms |
212 KB |
Output is correct |
51 |
Correct |
0 ms |
212 KB |
Output is correct |
52 |
Correct |
0 ms |
300 KB |
Output is correct |
53 |
Correct |
1 ms |
212 KB |
Output is correct |
54 |
Correct |
0 ms |
212 KB |
Output is correct |
55 |
Correct |
0 ms |
212 KB |
Output is correct |
56 |
Correct |
0 ms |
212 KB |
Output is correct |
57 |
Correct |
1 ms |
312 KB |
Output is correct |
58 |
Correct |
1 ms |
340 KB |
Output is correct |
59 |
Correct |
1 ms |
308 KB |
Output is correct |
60 |
Correct |
1 ms |
212 KB |
Output is correct |
61 |
Correct |
0 ms |
212 KB |
Output is correct |
62 |
Correct |
1 ms |
212 KB |
Output is correct |
63 |
Correct |
1 ms |
212 KB |
Output is correct |
64 |
Correct |
1 ms |
340 KB |
Output is correct |
65 |
Correct |
1 ms |
340 KB |
Output is correct |
66 |
Correct |
1 ms |
340 KB |
Output is correct |
67 |
Correct |
1 ms |
340 KB |
Output is correct |
68 |
Correct |
1 ms |
340 KB |
Output is correct |
69 |
Correct |
1 ms |
340 KB |
Output is correct |
70 |
Correct |
1 ms |
356 KB |
Output is correct |
71 |
Correct |
1 ms |
340 KB |
Output is correct |
72 |
Correct |
0 ms |
296 KB |
Output is correct |
73 |
Correct |
1 ms |
292 KB |
Output is correct |
74 |
Correct |
1 ms |
212 KB |
Output is correct |
75 |
Correct |
1 ms |
292 KB |
Output is correct |
76 |
Correct |
1 ms |
212 KB |
Output is correct |
77 |
Correct |
1 ms |
308 KB |
Output is correct |
78 |
Correct |
1 ms |
340 KB |
Output is correct |
79 |
Correct |
1 ms |
340 KB |
Output is correct |
80 |
Correct |
1 ms |
340 KB |
Output is correct |
81 |
Correct |
1 ms |
340 KB |
Output is correct |
82 |
Correct |
0 ms |
340 KB |
Output is correct |
83 |
Correct |
1 ms |
340 KB |
Output is correct |
84 |
Correct |
1 ms |
340 KB |
Output is correct |
85 |
Correct |
1 ms |
308 KB |
Output is correct |
86 |
Correct |
1 ms |
360 KB |
Output is correct |
87 |
Correct |
0 ms |
212 KB |
Output is correct |
88 |
Correct |
0 ms |
212 KB |
Output is correct |
89 |
Correct |
1 ms |
212 KB |
Output is correct |
90 |
Correct |
0 ms |
212 KB |
Output is correct |
91 |
Correct |
0 ms |
296 KB |
Output is correct |
92 |
Correct |
0 ms |
212 KB |
Output is correct |
93 |
Correct |
1 ms |
212 KB |
Output is correct |
94 |
Correct |
1 ms |
212 KB |
Output is correct |
95 |
Correct |
0 ms |
212 KB |
Output is correct |
96 |
Correct |
0 ms |
212 KB |
Output is correct |
97 |
Correct |
0 ms |
212 KB |
Output is correct |
98 |
Correct |
1 ms |
300 KB |
Output is correct |
99 |
Correct |
0 ms |
340 KB |
Output is correct |
100 |
Correct |
1 ms |
300 KB |
Output is correct |
101 |
Correct |
0 ms |
300 KB |
Output is correct |
102 |
Correct |
1 ms |
212 KB |
Output is correct |
103 |
Correct |
1 ms |
340 KB |
Output is correct |
104 |
Correct |
0 ms |
212 KB |
Output is correct |
105 |
Correct |
0 ms |
212 KB |
Output is correct |
106 |
Correct |
0 ms |
212 KB |
Output is correct |
107 |
Correct |
1 ms |
308 KB |
Output is correct |
108 |
Correct |
2 ms |
432 KB |
Output is correct |
109 |
Correct |
2 ms |
340 KB |
Output is correct |
110 |
Correct |
2 ms |
340 KB |
Output is correct |
111 |
Correct |
1 ms |
380 KB |
Output is correct |
112 |
Correct |
2 ms |
436 KB |
Output is correct |
113 |
Correct |
1 ms |
340 KB |
Output is correct |
114 |
Correct |
2 ms |
308 KB |
Output is correct |
115 |
Correct |
1 ms |
304 KB |
Output is correct |
116 |
Correct |
1 ms |
308 KB |
Output is correct |
117 |
Correct |
1 ms |
352 KB |
Output is correct |
118 |
Correct |
1 ms |
300 KB |
Output is correct |
119 |
Correct |
2 ms |
436 KB |
Output is correct |
120 |
Correct |
2 ms |
340 KB |
Output is correct |
121 |
Correct |
2 ms |
440 KB |
Output is correct |
122 |
Correct |
1 ms |
304 KB |
Output is correct |
123 |
Correct |
1 ms |
340 KB |
Output is correct |
124 |
Correct |
2 ms |
372 KB |
Output is correct |
125 |
Correct |
2 ms |
340 KB |
Output is correct |
126 |
Correct |
2 ms |
468 KB |
Output is correct |
127 |
Correct |
2 ms |
340 KB |
Output is correct |
128 |
Correct |
1 ms |
352 KB |
Output is correct |
129 |
Correct |
1 ms |
340 KB |
Output is correct |
130 |
Correct |
1 ms |
340 KB |
Output is correct |
131 |
Correct |
1 ms |
304 KB |
Output is correct |
132 |
Correct |
1 ms |
340 KB |
Output is correct |
133 |
Correct |
2 ms |
340 KB |
Output is correct |
134 |
Correct |
1 ms |
340 KB |
Output is correct |
135 |
Correct |
1 ms |
304 KB |
Output is correct |
136 |
Correct |
2 ms |
340 KB |
Output is correct |
137 |
Correct |
2 ms |
440 KB |
Output is correct |
138 |
Correct |
0 ms |
212 KB |
Output is correct |
139 |
Correct |
0 ms |
296 KB |
Output is correct |
140 |
Correct |
0 ms |
212 KB |
Output is correct |
141 |
Correct |
0 ms |
292 KB |
Output is correct |
142 |
Correct |
0 ms |
212 KB |
Output is correct |
143 |
Correct |
0 ms |
300 KB |
Output is correct |
144 |
Correct |
0 ms |
296 KB |
Output is correct |
145 |
Correct |
0 ms |
212 KB |
Output is correct |
146 |
Correct |
0 ms |
212 KB |
Output is correct |
147 |
Correct |
2 ms |
340 KB |
Output is correct |
148 |
Correct |
2 ms |
340 KB |
Output is correct |
149 |
Correct |
2 ms |
340 KB |
Output is correct |
150 |
Correct |
2 ms |
392 KB |
Output is correct |
151 |
Correct |
2 ms |
340 KB |
Output is correct |
152 |
Correct |
1 ms |
304 KB |
Output is correct |
153 |
Correct |
1 ms |
340 KB |
Output is correct |
154 |
Correct |
1 ms |
340 KB |
Output is correct |
155 |
Correct |
1 ms |
340 KB |
Output is correct |
156 |
Correct |
1 ms |
340 KB |
Output is correct |
157 |
Correct |
1 ms |
308 KB |
Output is correct |
158 |
Correct |
1 ms |
304 KB |
Output is correct |
159 |
Correct |
1 ms |
340 KB |
Output is correct |
160 |
Correct |
1 ms |
304 KB |
Output is correct |
161 |
Correct |
1 ms |
340 KB |
Output is correct |
162 |
Correct |
1 ms |
340 KB |
Output is correct |
163 |
Correct |
1 ms |
340 KB |
Output is correct |
164 |
Correct |
1 ms |
212 KB |
Output is correct |
165 |
Correct |
106 ms |
9996 KB |
Output is correct |
166 |
Correct |
267 ms |
20068 KB |
Output is correct |
167 |
Correct |
265 ms |
20076 KB |
Output is correct |
168 |
Correct |
2 ms |
340 KB |
Output is correct |
169 |
Correct |
2 ms |
340 KB |
Output is correct |
170 |
Correct |
14 ms |
1456 KB |
Output is correct |
171 |
Correct |
16 ms |
1484 KB |
Output is correct |
172 |
Correct |
261 ms |
20040 KB |
Output is correct |
173 |
Correct |
263 ms |
19932 KB |
Output is correct |
174 |
Correct |
272 ms |
20060 KB |
Output is correct |
175 |
Correct |
1 ms |
340 KB |
Output is correct |
176 |
Correct |
199 ms |
20200 KB |
Output is correct |
177 |
Correct |
2 ms |
340 KB |
Output is correct |
178 |
Correct |
188 ms |
16256 KB |
Output is correct |
179 |
Correct |
1 ms |
364 KB |
Output is correct |
180 |
Correct |
184 ms |
16212 KB |
Output is correct |
181 |
Correct |
53 ms |
4408 KB |
Output is correct |
182 |
Correct |
102 ms |
7956 KB |
Output is correct |
183 |
Correct |
73 ms |
6232 KB |
Output is correct |
184 |
Correct |
266 ms |
20016 KB |
Output is correct |
185 |
Correct |
271 ms |
20092 KB |
Output is correct |
186 |
Correct |
264 ms |
20096 KB |
Output is correct |
187 |
Correct |
138 ms |
11252 KB |
Output is correct |
188 |
Correct |
76 ms |
6424 KB |
Output is correct |
189 |
Correct |
82 ms |
6768 KB |
Output is correct |
190 |
Correct |
286 ms |
19996 KB |
Output is correct |
191 |
Correct |
273 ms |
20040 KB |
Output is correct |
192 |
Correct |
268 ms |
20028 KB |
Output is correct |
193 |
Correct |
117 ms |
9552 KB |
Output is correct |
194 |
Correct |
114 ms |
9448 KB |
Output is correct |
195 |
Correct |
103 ms |
8580 KB |
Output is correct |
196 |
Correct |
253 ms |
20044 KB |
Output is correct |
197 |
Correct |
250 ms |
20100 KB |
Output is correct |
198 |
Correct |
245 ms |
20196 KB |
Output is correct |
199 |
Correct |
131 ms |
11532 KB |
Output is correct |
200 |
Correct |
64 ms |
6128 KB |
Output is correct |
201 |
Correct |
143 ms |
12728 KB |
Output is correct |
202 |
Correct |
225 ms |
20200 KB |
Output is correct |
203 |
Correct |
231 ms |
20100 KB |
Output is correct |
204 |
Correct |
222 ms |
19992 KB |
Output is correct |
205 |
Correct |
171 ms |
15784 KB |
Output is correct |
206 |
Correct |
57 ms |
6344 KB |
Output is correct |
207 |
Correct |
208 ms |
20096 KB |
Output is correct |
208 |
Correct |
0 ms |
340 KB |
Output is correct |
209 |
Correct |
0 ms |
212 KB |
Output is correct |
210 |
Correct |
0 ms |
212 KB |
Output is correct |
211 |
Correct |
0 ms |
304 KB |
Output is correct |
212 |
Correct |
0 ms |
340 KB |
Output is correct |
213 |
Correct |
1 ms |
296 KB |
Output is correct |
214 |
Correct |
0 ms |
212 KB |
Output is correct |
215 |
Correct |
0 ms |
300 KB |
Output is correct |
216 |
Correct |
3 ms |
340 KB |
Output is correct |
217 |
Correct |
261 ms |
20096 KB |
Output is correct |
218 |
Correct |
265 ms |
20044 KB |
Output is correct |
219 |
Correct |
255 ms |
20244 KB |
Output is correct |
220 |
Correct |
269 ms |
20012 KB |
Output is correct |
221 |
Correct |
266 ms |
20100 KB |
Output is correct |
222 |
Correct |
72 ms |
7244 KB |
Output is correct |
223 |
Correct |
71 ms |
7256 KB |
Output is correct |
224 |
Correct |
90 ms |
8700 KB |
Output is correct |
225 |
Correct |
80 ms |
7068 KB |
Output is correct |
226 |
Correct |
92 ms |
11844 KB |
Output is correct |
227 |
Correct |
108 ms |
11940 KB |
Output is correct |
228 |
Correct |
100 ms |
11896 KB |
Output is correct |
229 |
Correct |
106 ms |
11936 KB |
Output is correct |
230 |
Correct |
107 ms |
11956 KB |
Output is correct |
231 |
Correct |
108 ms |
11852 KB |
Output is correct |
232 |
Correct |
114 ms |
11956 KB |
Output is correct |
233 |
Correct |
107 ms |
11900 KB |
Output is correct |