#include <stdio.h>
#include <stdlib.h>
#define C 30000
#define R 174 /* R = ceil(sqrt(C)) */
#define INF 0x3f3f3f3f3f3f3f3fLL
long long min(long long a, long long b) { return a < b ? a : b; }
long long max(long long a, long long b) { return a > b ? a : b; }
int **dpmn[C + 1], **dpmx[C + 1], **dqmn[C + 1], **dqmx[C + 1];
int c;
int solve(long long x1, long long y1, long long x2, long long y2) {
long long y;
int w;
if (x1 + y1 * c <= 0)
return 0;
if (x2 + y2 * c <= 0)
return 1;
if (x1 <= 0) {
if (x2 > 0) {
if (x2 >= c)
return 0;
if (y2 > 0) {
if (x2 - x1 >= c)
return 0;
return !solve(x2, y2, x1 + c, y1 - 1);
}
y = -x1 / (c - x2) + 1;
return y <= y1 && solve(x1 + y * (c - x2), y1 - y, x2, y2);
} else {
y = min(-x1 / c + 1, -x2 / c + 1);
return solve(x1 + y * c, y1 - y, x2 + y * c, y2 - y);
}
}
if (x1 >= x2 && (x1 >= c || y1 > 0))
return 1;
if (x2 < c && x1 + y1 * (c - x2) >= c)
return 1;
if (x2 >= 0 && x2 < c) {
if (c - x1 >= 0 && c - x1 <= R) {
if (y2 < dpmn[x2][y1][c - x1])
return 1;
if (y2 > dpmx[x2][y1][c - x1])
return 0;
}
if (y2 <= R) {
if (x1 < dqmn[x2][y1][y2])
return 0;
if (x1 > dqmx[x2][y1][y2])
return 1;
}
}
if (!solve(x2 - x1, y2, x1, y1)) {
if (x2 >= 0 && x2 < c) {
if (c - x1 >= 0 && c - x1 <= R)
dpmn[x2][y1][c - x1] = max(dpmn[x2][y1][c - x1], y2 + 1);
if (y2 <= R)
dqmx[x2][y1][y2] = min(dqmx[x2][y1][y2], x1 - 1);
}
return 1;
}
if (x2 >= c)
return 0;
y = y2 == 0 ? 1 : max(min((x2 + c * (y2 - 1)) / (y2 + 1), x2) - x1, 0) / (c - x2) + 1;
w = y <= y1 && solve(x1 + y * (c - x2), y1 - y, x2, y2);
if (x2 >= 0 && x2 < c) {
if (w) {
if (c - x1 >= 0 && c - x1 <= R)
dpmn[x2][y1][c - x1] = max(dpmn[x2][y1][c - x1], y2 + 1);
if (y2 <= R)
dqmx[x2][y1][y2] = min(dqmx[x2][y1][y2], x1 - 1);
} else {
if (c - x1 >= 0 && c - x1 <= R)
dpmx[x2][y1][c - x1] = min(dpmx[x2][y1][c - x1], y2 - 1);
if (y2 <= R)
dqmn[x2][y1][y2] = max(dqmn[x2][y1][y2], x1 + 1);
}
}
return w;
}
int main() {
int t, x1, y1, x2, y2;
scanf("%d%d", &c, &t);
for (x2 = 0; x2 < c; x2++) {
dpmn[x2] = (int **) malloc((c / (c - x2) + 1) * sizeof *dpmn[x2]);
dpmx[x2] = (int **) malloc((c / (c - x2) + 1) * sizeof *dpmx[x2]);
dqmn[x2] = (int **) malloc((c / (c - x2) + 1) * sizeof *dqmn[x2]);
dqmx[x2] = (int **) malloc((c / (c - x2) + 1) * sizeof *dqmx[x2]);
for (y1 = 0; y1 * (c - x2) <= c; y1++) {
dpmn[x2][y1] = (int *) malloc((R + 1) * sizeof *dpmn[x2][y1]);
dpmx[x2][y1] = (int *) malloc((R + 1) * sizeof *dpmx[x2][y1]);
dqmn[x2][y1] = (int *) malloc((R + 1) * sizeof *dqmn[x2][y1]);
dqmx[x2][y1] = (int *) malloc((R + 1) * sizeof *dqmx[x2][y1]);
for (x1 = 0; x1 <= R; x1++)
dpmn[x2][y1][x1] = 0, dpmx[x2][y1][x1] = c * 2 + 1;
for (y2 = 0; y2 <= R; y2++)
dqmn[x2][y1][y2] = 0, dqmx[x2][y1][y2] = c + 1;
}
}
while (t--) {
long long x1, y1, x2, y2;
scanf("%lld%lld%lld%lld", &x1, &y2, &x2, &y1), x1 -= y1 * c, x2 -= y2 * c;
printf(solve(x1, y1, x2, y2) ? "YES\n" : "NO\n");
}
return 0;
}
Compilation message
gradingserver.c: In function 'main':
gradingserver.c:88:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
88 | scanf("%d%d", &c, &t);
| ^~~~~~~~~~~~~~~~~~~~~
gradingserver.c:108:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
108 | scanf("%lld%lld%lld%lld", &x1, &y2, &x2, &y1), x1 -= y1 * c, x2 -= y2 * c;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
604 KB |
Output is correct |
2 |
Correct |
0 ms |
504 KB |
Output is correct |
3 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
604 KB |
Output is correct |
2 |
Correct |
53 ms |
1156 KB |
Output is correct |
3 |
Correct |
52 ms |
1168 KB |
Output is correct |
4 |
Correct |
43 ms |
1872 KB |
Output is correct |
5 |
Correct |
43 ms |
2384 KB |
Output is correct |
6 |
Correct |
65 ms |
1616 KB |
Output is correct |
7 |
Correct |
49 ms |
1360 KB |
Output is correct |
8 |
Correct |
43 ms |
1240 KB |
Output is correct |
9 |
Correct |
42 ms |
1104 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
604 KB |
Output is correct |
2 |
Correct |
53 ms |
1156 KB |
Output is correct |
3 |
Correct |
52 ms |
1168 KB |
Output is correct |
4 |
Correct |
43 ms |
1872 KB |
Output is correct |
5 |
Correct |
43 ms |
2384 KB |
Output is correct |
6 |
Correct |
65 ms |
1616 KB |
Output is correct |
7 |
Correct |
49 ms |
1360 KB |
Output is correct |
8 |
Correct |
43 ms |
1240 KB |
Output is correct |
9 |
Correct |
42 ms |
1104 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
42 ms |
1176 KB |
Output is correct |
12 |
Correct |
42 ms |
1372 KB |
Output is correct |
13 |
Correct |
42 ms |
1872 KB |
Output is correct |
14 |
Correct |
42 ms |
2384 KB |
Output is correct |
15 |
Correct |
43 ms |
1616 KB |
Output is correct |
16 |
Correct |
49 ms |
1360 KB |
Output is correct |
17 |
Correct |
43 ms |
1236 KB |
Output is correct |
18 |
Correct |
46 ms |
1108 KB |
Output is correct |
19 |
Correct |
53 ms |
1200 KB |
Output is correct |
20 |
Correct |
54 ms |
1108 KB |
Output is correct |
21 |
Correct |
49 ms |
2308 KB |
Output is correct |
22 |
Correct |
48 ms |
6996 KB |
Output is correct |
23 |
Correct |
49 ms |
6992 KB |
Output is correct |
24 |
Correct |
45 ms |
2908 KB |
Output is correct |
25 |
Correct |
46 ms |
3664 KB |
Output is correct |
26 |
Correct |
45 ms |
1416 KB |
Output is correct |
27 |
Correct |
44 ms |
1468 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
71 ms |
1104 KB |
Output is correct |
2 |
Correct |
71 ms |
1112 KB |
Output is correct |
3 |
Correct |
71 ms |
1104 KB |
Output is correct |
4 |
Correct |
0 ms |
348 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
604 KB |
Output is correct |
2 |
Correct |
53 ms |
1156 KB |
Output is correct |
3 |
Correct |
52 ms |
1168 KB |
Output is correct |
4 |
Correct |
43 ms |
1872 KB |
Output is correct |
5 |
Correct |
43 ms |
2384 KB |
Output is correct |
6 |
Correct |
65 ms |
1616 KB |
Output is correct |
7 |
Correct |
49 ms |
1360 KB |
Output is correct |
8 |
Correct |
43 ms |
1240 KB |
Output is correct |
9 |
Correct |
42 ms |
1104 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
42 ms |
1176 KB |
Output is correct |
12 |
Correct |
42 ms |
1372 KB |
Output is correct |
13 |
Correct |
42 ms |
1872 KB |
Output is correct |
14 |
Correct |
42 ms |
2384 KB |
Output is correct |
15 |
Correct |
43 ms |
1616 KB |
Output is correct |
16 |
Correct |
49 ms |
1360 KB |
Output is correct |
17 |
Correct |
43 ms |
1236 KB |
Output is correct |
18 |
Correct |
46 ms |
1108 KB |
Output is correct |
19 |
Correct |
53 ms |
1200 KB |
Output is correct |
20 |
Correct |
54 ms |
1108 KB |
Output is correct |
21 |
Correct |
49 ms |
2308 KB |
Output is correct |
22 |
Correct |
48 ms |
6996 KB |
Output is correct |
23 |
Correct |
49 ms |
6992 KB |
Output is correct |
24 |
Correct |
45 ms |
2908 KB |
Output is correct |
25 |
Correct |
46 ms |
3664 KB |
Output is correct |
26 |
Correct |
45 ms |
1416 KB |
Output is correct |
27 |
Correct |
44 ms |
1468 KB |
Output is correct |
28 |
Correct |
0 ms |
604 KB |
Output is correct |
29 |
Correct |
42 ms |
1164 KB |
Output is correct |
30 |
Correct |
41 ms |
1164 KB |
Output is correct |
31 |
Correct |
44 ms |
1736 KB |
Output is correct |
32 |
Correct |
42 ms |
2388 KB |
Output is correct |
33 |
Correct |
44 ms |
1712 KB |
Output is correct |
34 |
Correct |
44 ms |
1376 KB |
Output is correct |
35 |
Correct |
43 ms |
1360 KB |
Output is correct |
36 |
Correct |
41 ms |
1112 KB |
Output is correct |
37 |
Correct |
47 ms |
1104 KB |
Output is correct |
38 |
Correct |
46 ms |
1112 KB |
Output is correct |
39 |
Correct |
48 ms |
2180 KB |
Output is correct |
40 |
Correct |
62 ms |
6996 KB |
Output is correct |
41 |
Correct |
49 ms |
7112 KB |
Output is correct |
42 |
Correct |
45 ms |
2896 KB |
Output is correct |
43 |
Correct |
47 ms |
3656 KB |
Output is correct |
44 |
Correct |
44 ms |
1364 KB |
Output is correct |
45 |
Correct |
49 ms |
1364 KB |
Output is correct |
46 |
Correct |
54 ms |
8024 KB |
Output is correct |
47 |
Correct |
50 ms |
1204 KB |
Output is correct |
48 |
Correct |
55 ms |
2360 KB |
Output is correct |
49 |
Correct |
71 ms |
51284 KB |
Output is correct |
50 |
Correct |
61 ms |
25224 KB |
Output is correct |
51 |
Correct |
56 ms |
11688 KB |
Output is correct |
52 |
Correct |
63 ms |
33272 KB |
Output is correct |
53 |
Correct |
42 ms |
1872 KB |
Output is correct |
54 |
Correct |
46 ms |
7236 KB |
Output is correct |
55 |
Correct |
46 ms |
2228 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
604 KB |
Output is correct |
2 |
Correct |
53 ms |
1156 KB |
Output is correct |
3 |
Correct |
52 ms |
1168 KB |
Output is correct |
4 |
Correct |
43 ms |
1872 KB |
Output is correct |
5 |
Correct |
43 ms |
2384 KB |
Output is correct |
6 |
Correct |
65 ms |
1616 KB |
Output is correct |
7 |
Correct |
49 ms |
1360 KB |
Output is correct |
8 |
Correct |
43 ms |
1240 KB |
Output is correct |
9 |
Correct |
42 ms |
1104 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
42 ms |
1176 KB |
Output is correct |
12 |
Correct |
42 ms |
1372 KB |
Output is correct |
13 |
Correct |
42 ms |
1872 KB |
Output is correct |
14 |
Correct |
42 ms |
2384 KB |
Output is correct |
15 |
Correct |
43 ms |
1616 KB |
Output is correct |
16 |
Correct |
49 ms |
1360 KB |
Output is correct |
17 |
Correct |
43 ms |
1236 KB |
Output is correct |
18 |
Correct |
46 ms |
1108 KB |
Output is correct |
19 |
Correct |
53 ms |
1200 KB |
Output is correct |
20 |
Correct |
54 ms |
1108 KB |
Output is correct |
21 |
Correct |
49 ms |
2308 KB |
Output is correct |
22 |
Correct |
48 ms |
6996 KB |
Output is correct |
23 |
Correct |
49 ms |
6992 KB |
Output is correct |
24 |
Correct |
45 ms |
2908 KB |
Output is correct |
25 |
Correct |
46 ms |
3664 KB |
Output is correct |
26 |
Correct |
45 ms |
1416 KB |
Output is correct |
27 |
Correct |
44 ms |
1468 KB |
Output is correct |
28 |
Correct |
71 ms |
1104 KB |
Output is correct |
29 |
Correct |
71 ms |
1112 KB |
Output is correct |
30 |
Correct |
71 ms |
1104 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
69 ms |
1236 KB |
Output is correct |
33 |
Correct |
71 ms |
1156 KB |
Output is correct |
34 |
Correct |
70 ms |
1072 KB |
Output is correct |
35 |
Correct |
1 ms |
344 KB |
Output is correct |
36 |
Correct |
0 ms |
604 KB |
Output is correct |
37 |
Correct |
42 ms |
1232 KB |
Output is correct |
38 |
Correct |
43 ms |
1132 KB |
Output is correct |
39 |
Correct |
43 ms |
1876 KB |
Output is correct |
40 |
Correct |
43 ms |
2388 KB |
Output is correct |
41 |
Correct |
43 ms |
1580 KB |
Output is correct |
42 |
Correct |
52 ms |
1536 KB |
Output is correct |
43 |
Correct |
42 ms |
1196 KB |
Output is correct |
44 |
Correct |
40 ms |
1104 KB |
Output is correct |
45 |
Correct |
47 ms |
1132 KB |
Output is correct |
46 |
Correct |
54 ms |
1172 KB |
Output is correct |
47 |
Correct |
57 ms |
2132 KB |
Output is correct |
48 |
Correct |
50 ms |
6936 KB |
Output is correct |
49 |
Correct |
65 ms |
7016 KB |
Output is correct |
50 |
Correct |
56 ms |
2900 KB |
Output is correct |
51 |
Correct |
48 ms |
3596 KB |
Output is correct |
52 |
Correct |
45 ms |
1364 KB |
Output is correct |
53 |
Correct |
47 ms |
1308 KB |
Output is correct |
54 |
Correct |
0 ms |
348 KB |
Output is correct |
55 |
Correct |
42 ms |
1992 KB |
Output is correct |
56 |
Correct |
46 ms |
7256 KB |
Output is correct |
57 |
Correct |
53 ms |
8016 KB |
Output is correct |
58 |
Correct |
48 ms |
1108 KB |
Output is correct |
59 |
Correct |
52 ms |
2388 KB |
Output is correct |
60 |
Correct |
72 ms |
9300 KB |
Output is correct |
61 |
Correct |
77 ms |
9296 KB |
Output is correct |
62 |
Correct |
72 ms |
4680 KB |
Output is correct |
63 |
Correct |
70 ms |
1872 KB |
Output is correct |
64 |
Correct |
71 ms |
1452 KB |
Output is correct |
65 |
Correct |
72 ms |
1108 KB |
Output is correct |
66 |
Correct |
51 ms |
9472 KB |
Output is correct |
67 |
Correct |
49 ms |
9300 KB |
Output is correct |
68 |
Correct |
69 ms |
1876 KB |
Output is correct |
69 |
Correct |
81 ms |
3668 KB |
Output is correct |
70 |
Correct |
80 ms |
6992 KB |
Output is correct |
71 |
Correct |
96 ms |
9360 KB |
Output is correct |
72 |
Correct |
72 ms |
6992 KB |
Output is correct |
73 |
Correct |
59 ms |
9296 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
604 KB |
Output is correct |
2 |
Correct |
53 ms |
1156 KB |
Output is correct |
3 |
Correct |
52 ms |
1168 KB |
Output is correct |
4 |
Correct |
43 ms |
1872 KB |
Output is correct |
5 |
Correct |
43 ms |
2384 KB |
Output is correct |
6 |
Correct |
65 ms |
1616 KB |
Output is correct |
7 |
Correct |
49 ms |
1360 KB |
Output is correct |
8 |
Correct |
43 ms |
1240 KB |
Output is correct |
9 |
Correct |
42 ms |
1104 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
46 ms |
1128 KB |
Output is correct |
12 |
Correct |
45 ms |
1364 KB |
Output is correct |
13 |
Correct |
45 ms |
1840 KB |
Output is correct |
14 |
Correct |
42 ms |
2392 KB |
Output is correct |
15 |
Correct |
83 ms |
1620 KB |
Output is correct |
16 |
Correct |
52 ms |
1308 KB |
Output is correct |
17 |
Correct |
79 ms |
1356 KB |
Output is correct |
18 |
Correct |
40 ms |
1240 KB |
Output is correct |
19 |
Correct |
69 ms |
1732 KB |
Output is correct |
20 |
Correct |
171 ms |
130640 KB |
Output is correct |
21 |
Correct |
509 ms |
780400 KB |
Output is correct |
22 |
Correct |
574 ms |
983304 KB |
Output is correct |
23 |
Correct |
363 ms |
780368 KB |
Output is correct |
24 |
Correct |
484 ms |
983744 KB |
Output is correct |
25 |
Correct |
153 ms |
130644 KB |
Output is correct |
26 |
Correct |
84 ms |
1872 KB |
Output is correct |
27 |
Correct |
523 ms |
981840 KB |
Output is correct |
28 |
Correct |
413 ms |
984916 KB |
Output is correct |
29 |
Correct |
395 ms |
986368 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
604 KB |
Output is correct |
2 |
Correct |
53 ms |
1156 KB |
Output is correct |
3 |
Correct |
52 ms |
1168 KB |
Output is correct |
4 |
Correct |
43 ms |
1872 KB |
Output is correct |
5 |
Correct |
43 ms |
2384 KB |
Output is correct |
6 |
Correct |
65 ms |
1616 KB |
Output is correct |
7 |
Correct |
49 ms |
1360 KB |
Output is correct |
8 |
Correct |
43 ms |
1240 KB |
Output is correct |
9 |
Correct |
42 ms |
1104 KB |
Output is correct |
10 |
Correct |
0 ms |
604 KB |
Output is correct |
11 |
Correct |
42 ms |
1176 KB |
Output is correct |
12 |
Correct |
42 ms |
1372 KB |
Output is correct |
13 |
Correct |
42 ms |
1872 KB |
Output is correct |
14 |
Correct |
42 ms |
2384 KB |
Output is correct |
15 |
Correct |
43 ms |
1616 KB |
Output is correct |
16 |
Correct |
49 ms |
1360 KB |
Output is correct |
17 |
Correct |
43 ms |
1236 KB |
Output is correct |
18 |
Correct |
46 ms |
1108 KB |
Output is correct |
19 |
Correct |
53 ms |
1200 KB |
Output is correct |
20 |
Correct |
54 ms |
1108 KB |
Output is correct |
21 |
Correct |
49 ms |
2308 KB |
Output is correct |
22 |
Correct |
48 ms |
6996 KB |
Output is correct |
23 |
Correct |
49 ms |
6992 KB |
Output is correct |
24 |
Correct |
45 ms |
2908 KB |
Output is correct |
25 |
Correct |
46 ms |
3664 KB |
Output is correct |
26 |
Correct |
45 ms |
1416 KB |
Output is correct |
27 |
Correct |
44 ms |
1468 KB |
Output is correct |
28 |
Correct |
71 ms |
1104 KB |
Output is correct |
29 |
Correct |
71 ms |
1112 KB |
Output is correct |
30 |
Correct |
71 ms |
1104 KB |
Output is correct |
31 |
Correct |
0 ms |
348 KB |
Output is correct |
32 |
Correct |
0 ms |
604 KB |
Output is correct |
33 |
Correct |
42 ms |
1164 KB |
Output is correct |
34 |
Correct |
41 ms |
1164 KB |
Output is correct |
35 |
Correct |
44 ms |
1736 KB |
Output is correct |
36 |
Correct |
42 ms |
2388 KB |
Output is correct |
37 |
Correct |
44 ms |
1712 KB |
Output is correct |
38 |
Correct |
44 ms |
1376 KB |
Output is correct |
39 |
Correct |
43 ms |
1360 KB |
Output is correct |
40 |
Correct |
41 ms |
1112 KB |
Output is correct |
41 |
Correct |
47 ms |
1104 KB |
Output is correct |
42 |
Correct |
46 ms |
1112 KB |
Output is correct |
43 |
Correct |
48 ms |
2180 KB |
Output is correct |
44 |
Correct |
62 ms |
6996 KB |
Output is correct |
45 |
Correct |
49 ms |
7112 KB |
Output is correct |
46 |
Correct |
45 ms |
2896 KB |
Output is correct |
47 |
Correct |
47 ms |
3656 KB |
Output is correct |
48 |
Correct |
44 ms |
1364 KB |
Output is correct |
49 |
Correct |
49 ms |
1364 KB |
Output is correct |
50 |
Correct |
54 ms |
8024 KB |
Output is correct |
51 |
Correct |
50 ms |
1204 KB |
Output is correct |
52 |
Correct |
55 ms |
2360 KB |
Output is correct |
53 |
Correct |
71 ms |
51284 KB |
Output is correct |
54 |
Correct |
61 ms |
25224 KB |
Output is correct |
55 |
Correct |
56 ms |
11688 KB |
Output is correct |
56 |
Correct |
63 ms |
33272 KB |
Output is correct |
57 |
Correct |
42 ms |
1872 KB |
Output is correct |
58 |
Correct |
46 ms |
7236 KB |
Output is correct |
59 |
Correct |
46 ms |
2228 KB |
Output is correct |
60 |
Correct |
69 ms |
1236 KB |
Output is correct |
61 |
Correct |
71 ms |
1156 KB |
Output is correct |
62 |
Correct |
70 ms |
1072 KB |
Output is correct |
63 |
Correct |
1 ms |
344 KB |
Output is correct |
64 |
Correct |
0 ms |
604 KB |
Output is correct |
65 |
Correct |
42 ms |
1232 KB |
Output is correct |
66 |
Correct |
43 ms |
1132 KB |
Output is correct |
67 |
Correct |
43 ms |
1876 KB |
Output is correct |
68 |
Correct |
43 ms |
2388 KB |
Output is correct |
69 |
Correct |
43 ms |
1580 KB |
Output is correct |
70 |
Correct |
52 ms |
1536 KB |
Output is correct |
71 |
Correct |
42 ms |
1196 KB |
Output is correct |
72 |
Correct |
40 ms |
1104 KB |
Output is correct |
73 |
Correct |
47 ms |
1132 KB |
Output is correct |
74 |
Correct |
54 ms |
1172 KB |
Output is correct |
75 |
Correct |
57 ms |
2132 KB |
Output is correct |
76 |
Correct |
50 ms |
6936 KB |
Output is correct |
77 |
Correct |
65 ms |
7016 KB |
Output is correct |
78 |
Correct |
56 ms |
2900 KB |
Output is correct |
79 |
Correct |
48 ms |
3596 KB |
Output is correct |
80 |
Correct |
45 ms |
1364 KB |
Output is correct |
81 |
Correct |
47 ms |
1308 KB |
Output is correct |
82 |
Correct |
0 ms |
348 KB |
Output is correct |
83 |
Correct |
42 ms |
1992 KB |
Output is correct |
84 |
Correct |
46 ms |
7256 KB |
Output is correct |
85 |
Correct |
53 ms |
8016 KB |
Output is correct |
86 |
Correct |
48 ms |
1108 KB |
Output is correct |
87 |
Correct |
52 ms |
2388 KB |
Output is correct |
88 |
Correct |
72 ms |
9300 KB |
Output is correct |
89 |
Correct |
77 ms |
9296 KB |
Output is correct |
90 |
Correct |
72 ms |
4680 KB |
Output is correct |
91 |
Correct |
70 ms |
1872 KB |
Output is correct |
92 |
Correct |
71 ms |
1452 KB |
Output is correct |
93 |
Correct |
72 ms |
1108 KB |
Output is correct |
94 |
Correct |
51 ms |
9472 KB |
Output is correct |
95 |
Correct |
49 ms |
9300 KB |
Output is correct |
96 |
Correct |
69 ms |
1876 KB |
Output is correct |
97 |
Correct |
81 ms |
3668 KB |
Output is correct |
98 |
Correct |
80 ms |
6992 KB |
Output is correct |
99 |
Correct |
96 ms |
9360 KB |
Output is correct |
100 |
Correct |
72 ms |
6992 KB |
Output is correct |
101 |
Correct |
59 ms |
9296 KB |
Output is correct |
102 |
Correct |
0 ms |
604 KB |
Output is correct |
103 |
Correct |
46 ms |
1128 KB |
Output is correct |
104 |
Correct |
45 ms |
1364 KB |
Output is correct |
105 |
Correct |
45 ms |
1840 KB |
Output is correct |
106 |
Correct |
42 ms |
2392 KB |
Output is correct |
107 |
Correct |
83 ms |
1620 KB |
Output is correct |
108 |
Correct |
52 ms |
1308 KB |
Output is correct |
109 |
Correct |
79 ms |
1356 KB |
Output is correct |
110 |
Correct |
40 ms |
1240 KB |
Output is correct |
111 |
Correct |
69 ms |
1732 KB |
Output is correct |
112 |
Correct |
171 ms |
130640 KB |
Output is correct |
113 |
Correct |
509 ms |
780400 KB |
Output is correct |
114 |
Correct |
574 ms |
983304 KB |
Output is correct |
115 |
Correct |
363 ms |
780368 KB |
Output is correct |
116 |
Correct |
484 ms |
983744 KB |
Output is correct |
117 |
Correct |
153 ms |
130644 KB |
Output is correct |
118 |
Correct |
84 ms |
1872 KB |
Output is correct |
119 |
Correct |
523 ms |
981840 KB |
Output is correct |
120 |
Correct |
413 ms |
984916 KB |
Output is correct |
121 |
Correct |
395 ms |
986368 KB |
Output is correct |
122 |
Correct |
73 ms |
13508 KB |
Output is correct |
123 |
Correct |
74 ms |
12468 KB |
Output is correct |
124 |
Correct |
79 ms |
12880 KB |
Output is correct |
125 |
Correct |
0 ms |
348 KB |
Output is correct |
126 |
Correct |
0 ms |
420 KB |
Output is correct |
127 |
Correct |
44 ms |
4060 KB |
Output is correct |
128 |
Correct |
43 ms |
4176 KB |
Output is correct |
129 |
Correct |
44 ms |
4688 KB |
Output is correct |
130 |
Correct |
43 ms |
5100 KB |
Output is correct |
131 |
Correct |
45 ms |
4432 KB |
Output is correct |
132 |
Correct |
44 ms |
4080 KB |
Output is correct |
133 |
Correct |
44 ms |
3924 KB |
Output is correct |
134 |
Correct |
42 ms |
3924 KB |
Output is correct |
135 |
Correct |
51 ms |
4692 KB |
Output is correct |
136 |
Correct |
48 ms |
4436 KB |
Output is correct |
137 |
Correct |
48 ms |
5968 KB |
Output is correct |
138 |
Correct |
49 ms |
10576 KB |
Output is correct |
139 |
Correct |
49 ms |
10580 KB |
Output is correct |
140 |
Correct |
51 ms |
6044 KB |
Output is correct |
141 |
Correct |
53 ms |
6996 KB |
Output is correct |
142 |
Correct |
50 ms |
4696 KB |
Output is correct |
143 |
Correct |
48 ms |
4864 KB |
Output is correct |
144 |
Correct |
0 ms |
348 KB |
Output is correct |
145 |
Correct |
76 ms |
5408 KB |
Output is correct |
146 |
Correct |
79 ms |
10320 KB |
Output is correct |
147 |
Correct |
55 ms |
12112 KB |
Output is correct |
148 |
Correct |
50 ms |
5560 KB |
Output is correct |
149 |
Correct |
55 ms |
6740 KB |
Output is correct |
150 |
Correct |
83 ms |
21020 KB |
Output is correct |
151 |
Correct |
93 ms |
20816 KB |
Output is correct |
152 |
Correct |
76 ms |
16380 KB |
Output is correct |
153 |
Correct |
102 ms |
13676 KB |
Output is correct |
154 |
Correct |
97 ms |
13164 KB |
Output is correct |
155 |
Correct |
120 ms |
13080 KB |
Output is correct |
156 |
Correct |
49 ms |
13660 KB |
Output is correct |
157 |
Correct |
50 ms |
13644 KB |
Output is correct |
158 |
Correct |
71 ms |
13912 KB |
Output is correct |
159 |
Correct |
74 ms |
14956 KB |
Output is correct |
160 |
Correct |
83 ms |
15144 KB |
Output is correct |
161 |
Correct |
96 ms |
17928 KB |
Output is correct |
162 |
Correct |
101 ms |
18052 KB |
Output is correct |
163 |
Correct |
56 ms |
16360 KB |
Output is correct |
164 |
Correct |
72 ms |
55636 KB |
Output is correct |
165 |
Correct |
60 ms |
29776 KB |
Output is correct |
166 |
Correct |
56 ms |
15912 KB |
Output is correct |
167 |
Correct |
56 ms |
36436 KB |
Output is correct |
168 |
Correct |
62 ms |
6992 KB |
Output is correct |
169 |
Correct |
64 ms |
6640 KB |
Output is correct |
170 |
Correct |
159 ms |
136436 KB |
Output is correct |
171 |
Correct |
497 ms |
785860 KB |
Output is correct |
172 |
Correct |
591 ms |
989152 KB |
Output is correct |
173 |
Correct |
403 ms |
788168 KB |
Output is correct |
174 |
Correct |
420 ms |
991480 KB |
Output is correct |
175 |
Correct |
129 ms |
138240 KB |
Output is correct |
176 |
Correct |
89 ms |
9480 KB |
Output is correct |
177 |
Correct |
539 ms |
989156 KB |
Output is correct |
178 |
Correct |
446 ms |
990652 KB |
Output is correct |
179 |
Correct |
416 ms |
986196 KB |
Output is correct |
180 |
Correct |
84 ms |
44620 KB |
Output is correct |
181 |
Correct |
115 ms |
142236 KB |
Output is correct |
182 |
Correct |
311 ms |
791888 KB |
Output is correct |
183 |
Correct |
369 ms |
994896 KB |
Output is correct |
184 |
Correct |
207 ms |
419408 KB |
Output is correct |
185 |
Correct |
431 ms |
992124 KB |
Output is correct |
186 |
Correct |
534 ms |
992656 KB |
Output is correct |
187 |
Correct |
448 ms |
788412 KB |
Output is correct |
188 |
Correct |
383 ms |
641868 KB |
Output is correct |
189 |
Correct |
616 ms |
988256 KB |
Output is correct |
190 |
Correct |
537 ms |
993908 KB |
Output is correct |
191 |
Correct |
519 ms |
993416 KB |
Output is correct |