buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x < r || y < r || w < x + r || h < y + r)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| #include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x < r || y < r || w < x + r || h < y + r)
printf("No\n");
else
printf("Yes\n");
return 0;
}
| [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 83 |
#include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x - r >= 0 && y - r >= 0 && x + r <= w && y + r <= w) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
| #include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x - r >= 0 && y - r >= 0 && x + r <= w && y + r <= h) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
| [["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22]] | 0 | 91 |
#include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &y, &y, &r);
if (x + r <= W && H >= y + r && r <= y && r <= x && x >= 0 && y >= 0)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x + r <= W && H >= y + r && r <= y && r <= x && x >= 0 && y >= 0)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]] | 0 | 91 |
#include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (w >= x + r && h >= y + r && r <= x && r <= y && x >= 0 && y >= 0) {
printf("YES\n");
} else {
printf("NO\n");
}
return 0;
}
| #include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (w >= x + r && h >= y + r && r <= x && r <= y && x >= 0 && y >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
}
| [["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 96 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x + r > W || y + r > H) {
printf("No\n");
}
if (x - r < 0 || y - r < 0) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x + r > W || y + r > H) {
printf("No\n");
} else if (x - r < 0 || y - r < 0) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 0 | 104 |
#include <stdio.h>
int main() {
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x >= r && y >= r) {
if (x <= W - r && y <= H - r) {
printf("Yes\n");
}
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x >= r && y >= r && x <= W - r && y <= H - r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 57, 15, 23, 0, 25], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 8, 9, 0, 57, 64, 9, 0, 57, 0, 121], ["-", 0, 57, 64, 9, 0, 57, 15, 23, 0, 24], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 98], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 0 | 95 |
#include <stdio.h>
int main() {
int W = 0, H = 0, x = 0, y = 0, r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x > r) && (W >= (x + r)) && (y > r) && (H >= (y + r))) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W = 0, H = 0, x = 0, y = 0, r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x >= r) && (W >= (x + r)) && (y >= r) && (H >= (y + r))) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 20], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 20]] | 0 | 109 |
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x > r && y > r && x + r < W && y + r < H) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x >= r && y >= r && x + r <= W && y + r <= H) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]... | 0 | 85 |
#include <stdio.h>
main() {
int x, y, r, W, H, x1, x2, y1, y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
x1 = x - r;
x2 = x + r;
y1 = y - r;
y2 = y + r;
if (x1 > 0 && x2 < W && y1 > 0 && y2 < H)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
main() {
int x, y, r, W, H, x1, x2, y1, y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
x1 = x - r;
x2 = x + r;
y1 = y - r;
y2 = y + r;
if (x1 >= 0 && x2 <= W && y1 >= 0 && y2 <= H)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]... | 0 | 111 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r > 0 && W - (x + r) > 0 && H - (y + r) > 0 && y - r > 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r >= 0 && W - (x + r) >= 0 && H - (y + r) >= 0 && y - r >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]... | 0 | 100 |
#include <stdio.h>
int main(void) {
char str[20];
int W;
int H;
int x;
int y;
int r;
fgets(str, sizeof(str), stdin);
sscanf(str, "%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W > x + r && 0 < x - r && H > y + r && 0 < y - r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
char str[20];
int W;
int H;
int x;
int y;
int r;
fgets(str, sizeof(str), stdin);
sscanf(str, "%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W >= x + r && 0 <= x - r && H >= y + r && 0 <= y - r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]... | 0 | 116 |
#include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (w >= (x + r) && h >= (y + r) && (x - r) <= 0 && (y - r) <= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (w >= (x + r) && h >= (y + r) && (x - r) >= 0 && (y - r) >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20]] | 0 | 99 |
#include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (-100 > x | y > 100) {
printf("error\n");
}
if (W <= 0 | H && r > 100) {
printf("error\n");
}
if (x - r < 0 | x + r >= W) {
printf("No\n");
} else if (y - r < 0 | y + r >= H) {
printf("No\n... | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (-100 > x | y > 100) {
printf("error\n");
}
if (W <= 0 | H && r > 100) {
printf("error\n");
}
if (x - r<0 | x + r> W) {
printf("No\n");
} else if (y - r<0 | y + r> H) {
printf("No\n");
} ... | [["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47],... | 0 | 172 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r, a, b;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 < x - r && W > x + r && 0 < y - r && H > y + r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r, a, b;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 <= x - r && W >= x + r && 0 <= y - r && H >= y + r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]... | 0 | 96 |
#include <stdio.h>
int main() {
int W, H, x, y, r;
int R, L, U, D;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
R = x + r;
L = x - r;
U = y + r;
D = y - r;
if (R < W && L > 0 && U < H && D > 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
int R, L, U, D;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
R = x + r;
L = x - r;
U = y + r;
D = y - r;
if (R <= W && L >= 0 && U <= H && D >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]... | 0 | 116 |
#include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (((((x > r) && (y > r)) && (((W - r) >= x) && ((H - r) >= y)))) == 1)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (((((x >= r) && (y >= r)) && (((W - r) >= x) && ((H - r) >= y)))) == 1)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 47], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 20], ["-", 31, 23, 0, 16, 12, 23, 0, 16, 17, 47], ["+", 31, 23, 0, 16, 12, 23, 0, 16, 17, 20]] | 0 | 105 |
#include <stdio.h>
int main(void) {
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
// scanf("%d",&b);
// scanf("%d",&c);
if (x - r > 0 && x + r < W) {
if (y - r > 0 && y + r < H) {
puts("Yes");
} else {
puts("No");
}
} else {
puts("No")... | #include <stdio.h>
int main(void) {
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
// scanf("%d",&b);
// scanf("%d",&c);
if (x - r >= 0 && x + r <= W) {
if (y - r >= 0 && y + r <= H) {
puts("Yes");
} else {
puts("No");
}
} else {
puts("... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]] | 0 | 110 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r, X1, X2, Y1, Y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
X1 = x - r;
X2 = x + r;
Y1 = y - r;
Y2 = y + r;
if (X1 > 0 && X2 < W && Y1 > 0 && Y2 < H) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r, X1, X2, Y1, Y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
X1 = x - r;
X2 = x + r;
Y1 = y - r;
Y2 = y + r;
if (X1 >= 0 && X2 <= W && Y1 >= 0 && Y2 <= H) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]... | 0 | 116 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
int is_horizontal = ((x - r) > 0) && ((x + r) < W);
int is_vertical = ((y - r) > 0) && ((y + r) < H);
if (is_horizontal && is_vertical)
puts("Yes");
else
puts("No");
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
int is_horizontal = ((x - r) >= 0) && ((x + r) <= W);
int is_vertical = ((y - r) >= 0) && ((y + r) <= H);
if (is_horizontal && is_vertical)
puts("Yes");
else
puts("No");
return 0;
} | [["-", 49, 50, 51, 16, 31, 23, 0, 16, 17, 47], ["+", 49, 50, 51, 16, 31, 23, 0, 16, 17, 20], ["-", 49, 50, 51, 16, 12, 23, 0, 16, 17, 18], ["+", 49, 50, 51, 16, 12, 23, 0, 16, 17, 19]] | 0 | 112 |
#include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
if (r + y <= h && r - y >= 0) {
if (x + r <= w && x - r >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
if (r + y <= h && y - r >= 0) {
if (x + r <= w && x - r >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}
return 0;
} | [["-", 15, 23, 0, 16, 12, 16, 31, 16, 31, 22], ["-", 15, 23, 0, 16, 12, 16, 31, 16, 17, 33], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 17, 33], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 12, 22]] | 0 | 106 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x - r) < 0 && (x + r) > W && (y - r) < 0 && (y + r) > H && (2 * r) > W &&
(2 * r) > H) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x - r) < 0 || (x + r) > W || (y - r) < 0 || (y + r) > H || (2 * r) > W ||
(2 * r) > H) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 98], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 106], ["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17... | 0 | 116 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W - x > r && x > r && H - y > r && y > r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W - x >= r && x >= r && H - y >= r && y >= r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]... | 0 | 88 |
#include <stdio.h>
int main(void) {
int i;
int w, h, x, y, r;
int disx[2];
int disy[2];
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
disx[0] = x - r;
disx[1] = w - x - r;
disy[0] = y - r;
disy[1] = h - y - r;
if (disx[0] >= 0 || disx[1] >= 0 || disy[0] >= 0 || disy[1] >= 0) {
printf("Yes\n")... | #include <stdio.h>
int main(void) {
int i;
int w, h, x, y, r;
int disx[2];
int disy[2];
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
disx[0] = x - r;
disx[1] = w - x - r;
disy[0] = y - r;
disy[1] = h - y - r;
if (disx[0] >= 0 && disx[1] >= 0 && disy[0] >= 0 && disy[1] >= 0) {
printf("Yes\n")... | [["-", 15, 23, 0, 16, 31, 16, 31, 16, 17, 106], ["+", 15, 23, 0, 16, 31, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]] | 0 | 153 |
int main(void) {
int W, H, x, y, r;
int top, bot, left, right;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
top = y + r;
bot = y - r;
left = x - r;
right = x + r;
if (top > H)
printf("no\n");
else if (bot < 0)
printf("no\n");
else if (left < 0)
printf("no\n");
else if (right > W)
... | int main(void) {
int W, H, x, y, r;
int top, bot, left, right;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
top = y + r;
bot = y - r;
left = x - r;
right = x + r;
if (top > H)
printf("No\n");
else if (bot < 0)
printf("No\n");
else if (left < 0)
printf("No\n");
else if (right > W)
... | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 144 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x >= r || x <= W - r && y >= r || y <= H - r)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x >= r && x <= W - r) && (y >= r && y <= H - r))
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["+", 0, 57, 15, 23, 0, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 106], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 17, 98], ["+", 0, 57, 15, 23, 0, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 23, 0, 16, 12, 23, 0, 24], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 98], ["+", 0... | 0 | 84 |
#include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x - r > 0 && y - r > 0) {
if (x + r < w && y + r < h) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
return 0;
} | #include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x - r >= 0 && y - r >= 0) {
if (x + r <= w && y + r <= h) {
printf("Yes\n");
return 0;
}
}
printf("No\n");
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+"... | 0 | 95 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x + r > W) || (y + r > H) || (x - r > 0) || (y - r > 0)) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x + r > W) || (y + r > H) || (x - r < 0) || (y - r < 0)) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 47], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18]] | 0 | 100 |
#include <stdio.h>
int W, H, x, y, r;
main() {
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (x + r >= W || x - r < 0) {
printf("No\n");
} else if (y + r >= H || y - r < 0) {
printf("No\n");
}
else {
printf("Yes\n");
}
return 0;
} | #include <stdio.h>
int W, H, x, y, r;
main() {
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (x + r > W || x - r < 0) {
printf("No\n");
} else if (y + r > H || y - r < 0) {
printf("No\n");
}
else {
printf("Yes\n");
}
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47]] | 0 | 104 |
#include <stdio.h>
int main(void) {
// 1_2-D Circle in a Rectangle
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((r < x) && (x < (w - r)) && (r < y) && (y < (h - r))) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
// 1_2-D Circle in a Rectangle
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((r <= x) && (x <= (w - r)) && (r <= y) && (y <= (h - r))) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18], ... | 0 | 101 |
#include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((x - r > 0) && (x + r < w) && (y - r > 0) && (y + r < h))
puts("Yes");
else
puts("No");
return 0;
} | #include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((x - r >= 0) && (x + r <= w) && (y - r >= 0) && (y + r <= h))
puts("Yes");
else
puts("No");
return 0;
} | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 20], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18], ... | 0 | 94 |
#include <stdio.h>
int main(void) {
int a, b, c, d, e;
scanf("%d %d %d %d %d", &a, &b, &c, &d, &e);
if (c >= e) {
if (a >= c + d) {
if (d >= e) {
if (b >= e + d) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}
... | #include <stdio.h>
int main(void) {
int a, b, c, d, e;
scanf("%d %d %d %d %d", &a, &b, &c, &d, &e);
if (c >= e) {
if (a >= c + e) {
if (d >= e) {
if (b >= e + d) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}
... | [["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22]] | 0 | 133 |
// ????????¢?????????????????????????????????????????????????????°????????????????????????????????????
// ?¬????????????????????????¢?????????????????????????????¨??????
// ????????????????????§?¨? (W,H) ????????????????????????
// ????????????????????????????????§?¨? (x,y) ??¨?????? r
// ??§?????????????????????
#inc... | // ????????¢?????????????????????????????????????????????????????°????????????????????????????????????
// ?¬????????????????????????¢?????????????????????????????¨??????
// ????????????????????§?¨? (W,H) ????????????????????????
// ????????????????????????????????§?¨? (x,y) ??¨?????? r
// ??§?????????????????????
#inc... | [["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]] | 0 | 97 |
#include <stdio.h>
int main(void) {
int Wa, Ha, xa, ya, ra, ka, ki, ku, ke;
scanf("%d %d %d %d %d", &Wa, &Ha, &xa, &ya, &ra);
ka = xa - ra;
ki = xa + ra;
ku = ya - ra;
ke = ya + ra;
if (ka > 0 && ki < Wa && ku > 0 && ke < Ha)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main(void) {
int Wa, Ha, xa, ya, ra, ka, ki, ku, ke;
scanf("%d %d %d %d %d", &Wa, &Ha, &xa, &ya, &ra);
ka = xa - ra;
ki = xa + ra;
ku = ya - ra;
ke = ya + ra;
if (ka >= 0 && ki <= Wa && ku >= 0 && ke <= Ha)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]... | 0 | 112 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", W, H, x, y, r);
if (x + r > W || x - r < 0 || y + r > H || y - r < 0) {
printf("No\n");
/* code */
} else {
printf("Yes\n");
}
/* code */
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x + r > W || x - r < 0 || y + r > H || y - r < 0) {
printf("No\n");
/* code */
} else {
printf("Yes\n");
}
/* code */
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 89 |
//============================================================================
//
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//============================================================================
//============================================================... | //============================================================================
//
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//============================================================================
//============================================================... | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18]... | 0 | 140 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (((W >= x + r) && (x - r >= 0)) && ((H >= r + r) && (y - r >= 0)))
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (((W >= x + r) && (x - r >= 0)) && ((H >= y + r) && (y - r >= 0)))
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 0, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 31, 22]] | 0 | 100 |
#include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((x + r < w) && (x - r > 0) && (y + r < h) && (y - r > 0)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((x + r <= w) && (x - r >= 0) && (y + r <= h) && (y - r >= 0)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 47], ... | 0 | 99 |
#include <stdio.h>
main() {
int a = 0;
int W, H, x, y, r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r >= 0 && x + r < W) {
if (y - r >= 0 && y + r <= H) {
a = 1;
}
} else {
a = 0;
}
if (a == 1) {
printf("Yes\n");
} else if (a == 0) {
printf("No\n");
}
return ... | #include <stdio.h>
main() {
int a = 0;
int W, H, x, y, r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r >= 0 && x + r <= W) {
if (y - r >= 0 && y + r <= H) {
a = 1;
}
}
else {
a = 0;
}
if (a == 1) {
printf("Yes\n");
}
else if (a == 0) {
printf("N... | [["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]] | 0 | 127 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r, a, b, c, d;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W - x >= r && H - y >= r && x - r > 0 && y - r > 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r, a, b, c, d;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W - x >= r && H - y >= r && x - r >= 0 && y - r >= 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20]] | 0 | 96 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d", &W);
scanf("%d", &H);
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &r);
if (W > x + r && 0 < x - r) {
if (H > y + r && 0 < y - r) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}
r... | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d", &W);
scanf("%d", &H);
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &r);
if (W >= x + r && 0 <= x - r) {
if (H >= y + r && 0 <= y - r) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]] | 0 | 135 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d"
"%d"
"%d"
"%d"
"%d",
&W, &H, &x, &y, &r);
if (r >= x && r >= y && x + r <= W && y + r >= H) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void)
{
int W, H, x, y, r;
scanf("%d"
"%d"
"%d"
"%d"
"%d",
&W, &H, &x, &y, &r);
if (r <= x && r <= y && x + r <= W && y + r <= H) {
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]] | 0 | 100 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d\n", &W, &H, &x, &y, &r);
if (x + r <= W && y + r <= H && x + r >= 0 && y + r >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d\n", &W, &H, &x, &y, &r);
if (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["-", 15, 23, 0, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 17, 33]] | 0 | 93 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && 0 <= (y - r) &&
(y + r) <= H)) {
printf("yes\n");
} else {
printf("no\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && 0 <= (y - r) &&
(y + r) <= H)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 110 |
#include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x < w - r && x > r && y < h - r && y > r)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x <= w - r && x >= r && y <= h - r && y >= r)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]... | 0 | 84 |
#include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
// condition W
if ((x < r) || (W - x) < r) {
printf("No\n");
return 0;
}
// condition H
if ((y < r) || (H - y) < r) {
printf("Yes\n");
return 0;
}
printf("Yes\n");
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
// condition W
if ((x < r) || (W - x) < r) {
printf("No\n");
return 0;
}
// condition H
if ((y < r) || (H - y) < r) {
printf("No\n");
return 0;
}
printf("Yes\n");
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 112 |
#include <stdio.h>
void swap(int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
}
int main(void) {
int W, H, x, y, r;
int ans = 0;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (x - r > 0 && y - r > 0) {
if (x + r < W && y + r < H) {
ans = 1;
}
}
if (ans) {
printf("Yes\... | #include <stdio.h>
void swap(int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
}
int main(void) {
int W, H, x, y, r;
int ans = 0;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (x - r >= 0 && y - r >= 0) {
if (x + r <= W && y + r <= H) {
ans = 1;
}
}
if (ans) {
printf("... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 18], ["+"... | 0 | 143 |
#include <stdio.h>
int main() {
int W, H, x, y, r, result = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x - r > 0) && (x + r < W) && (y - r > 0) && (y + r < H)) {
result = 1;
}
if (result == 1) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r, result = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if ((x - r >= 0) && (x + r <= W) && (y - r >= 0) && (y + r <= H)) {
result = 1;
}
if (result == 1) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 47], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 20], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 0, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 0, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18], ... | 0 | 115 |
#include <math.h>
#include <stdio.h>
int main() {
int W, H, r;
int x, y;
scanf("%d %d %d %d %d", &W, &H, &r, &x, &y);
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <math.h>
#include <stdio.h>
int main() {
int W, H, r;
int x, y;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]] | 0 | 90 |
#include <stdio.h>
int eval(int w, int h, int x, int y, int r) {
if (x + r < 0)
return 0;
if (y + r < 0)
return 0;
if (x - r > w)
return 0;
if (y - r > h)
return 0;
return 1;
}
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
int ret = eval(w, h, x, y, r);
i... | #include <stdio.h>
int eval(int w, int h, int x, int y, int r) {
if (x - r < 0)
return 0;
if (y - r < 0)
return 0;
if (x + r > w)
return 0;
if (y + r > h)
return 0;
return 1;
}
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
int ret = eval(w, h, x, y, r);
i... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 33], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 33], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 72]] | 0 | 146 |
#include <stdio.h>
int w;
int h;
int x;
int y;
int r;
int main(void) {
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x + r < w && x - r > 0 && y + r < h && y - r > 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int w;
int h;
int x;
int y;
int r;
int main(void) {
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x + r <= w && x - r >= 0 && y + r <= h && y - r >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]... | 0 | 96 |
#include <stdio.h>
int main() {
int W, H;
int x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x >= r && x + r >= W && y >= r && y + r >= H)
puts("Yes");
else
puts("No");
return 0;
} | #include <stdio.h>
int main() {
int W, H;
int x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x >= r && x + r <= W && y >= r && y + r <= H)
puts("Yes");
else
puts("No");
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 19]] | 0 | 82 |
#include <stdio.h>
int main(void) {
int W = 0;
int H = 0;
int x = 0;
int y = 0;
int r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (H > y + r && y - r > 0 && W > x + r && x - r > 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main(void) {
int W = 0;
int H = 0;
int x = 0;
int y = 0;
int r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (H >= y + r && y - r >= 0 && W >= x + r && x - r >= 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 17, 47]... | 0 | 102 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r <= 0 && x + r <= W) {
if (y - r <= 0 && y + r <= H) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r >= 0 && x + r <= W) {
if (y - r >= 0 && y + r <= H) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}
return 0;
} | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 20]] | 0 | 107 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((((x + r) <= W) && ((y + r) <= H)) &&
(((x + r) >= 0) && ((y + r) >= 0))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((((x + r) <= W) && ((y + r) <= H)) &&
(((x - r) >= 0) && ((y - r) >= 0))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 31, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 31, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["-", 12, 23, 0, 16, 31, 23, 0, 16, 17, 72], ["+", 12, 23, 0, 16, 31, 23, 0, 16, 17, 33]] | 1 | 105 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r + x >= w) {
cout << "No" << endl;
} else if (r >= x) {
cout << "No" << endl;
} else if (r + y >= h) {
cout << "No" << endl;
} else if (r >= y) {
cout << "No" << endl;
} else {
... | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r + x > w) {
cout << "No" << endl;
} else if (r > x) {
cout << "No" << endl;
} else if (r + y > h) {
cout << "No" << endl;
} else if (r > y) {
cout << "No" << endl;
} else {
cout... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 120 |
#include <iostream>
using namespace std;
int W, H, x, y, r, No, Yes;
int main() {
cin >> W >> H >> x >> y >> r;
if (x + r >= W && x - r <= 0 && y + r >= H && y - r <= 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <iostream>
using namespace std;
int W, H, x, y, r, No, Yes;
int main() {
cin >> W >> H >> x >> y >> r;
if (x + r <= W && x - r >= 0 && y + r <= H && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 86 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r > 0 && x + r << W && y - r > 0 && y + r < H)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
}
| #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 151], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, ... | 1 | 87 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
bool x_flg, y_flg;
if (x - r > 0 & x + r < W)
x_flg = true;
else
x_flg = false;
if (y - r > 0 & y + r < H)
y_flg = true;
else
y_flg = false;
if (x_flg & y_flg)
std::cout << "Yes" << std::endl;
... | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
bool x_flg, y_flg;
if (x - r >= 0 & x + r <= W)
x_flg = true;
else
x_flg = false;
if (y - r >= 0 & y + r <= H)
y_flg = true;
else
y_flg = false;
if (x_flg & y_flg)
std::cout << "Yes" << std::en... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 118 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= x - r && x + r <= W && 0 <= y - r && y - r <= H)
cout << "Yes";
else
cout << "No";
cout << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H)
cout << "Yes";
else
cout << "No";
cout << endl;
}
| [["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 33], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 72]] | 1 | 79 |
// class point の練習(クラスの高度な実装)
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
int ans = 0;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || x + r > W)
ans = 2;
if (y - r < 0 || y + r > H)
ans = 2;
if (ans)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| // class point の練習(クラスの高度な実装)
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
int ans = 0;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || x + r > W)
ans = 2;
if (y - r < 0 || y + r > H)
ans = 2;
if (ans)
cout << "No\n";
else
cout << "Yes\n";
return 0;
}
| [["-", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 6], ["-", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6], ["+", 75, 76, 0, 1, 0, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
// 水平条件
bool horizontal = x - r < 0 || x + r > W;
// 垂直条件
bool vertical = y - r < 0 || y + r > H;
if (horizontal && vertical) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
// 水平条件
bool horizontal = x - r < 0 || x + r > W;
// 垂直条件
bool vertical = y - r < 0 || y + r > H;
if (horizontal || vertical) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 94 |
#include <cstdio>
#define loop_input(fmt, ...) while (~scanf(fmt, __VA_ARGS__))
int main() {
int W, H, x, y, r;
loop_input("%d%d%d%d%d", &W, &H, &x, &y, &r) {
if ((r <= x && x <= W - r) && (r <= y && y <= H - r)) {
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
| #include <cstdio>
#define loop_input(fmt, ...) while (~scanf(fmt, __VA_ARGS__))
int main() {
int W, H, x, y, r;
loop_input("%d%d%d%d%d", &W, &H, &x, &y, &r) {
if ((r <= x && x <= W - r) && (r <= y && y <= H - r)) {
printf("Yes\n");
} else {
printf("No\n");
}
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 101 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h;
cin >> x >> y >> r;
if (r < x && x < w - r && r < y && y < h - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h;
cin >> x >> y >> r;
if (r <= x && x <= w - r && r <= y && y <= h - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 83 |
#include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r < 0 || x + r > w || y - r > h || y + r < 0)
cout << "No";
else
cout << "Yes";
cout << endl;
}
| #include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r < 0 || x + r > w || y - r < 0 || y + r > h)
cout << "No";
else
cout << "Yes";
cout << endl;
}
| [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 12, 22], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12,... | 1 | 79 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W) {
if (y - r >= 0 && y + r <= H) {
cout << "yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W) {
if (y - r >= 0 && y + r <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 100 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x > r && y > r && W > x + r && H > y + r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x >= r && y >= r && W >= x + r && H >= y + r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 83 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r <= 0 && y + r <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20]] | 1 | 85 |
#include <cstdio>
int main(void) {
int w = 0, h = 0, x = 0, y = 0, r = 0;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
int up = y + r;
int down = y - r;
int left = x - r;
int right = x + r;
if (up <= h) {
if (down >= 0) {
if (left >= 0) {
if (right <= w)
printf("Yes\n");
... | #include <cstdio>
int main(void) {
int w = 0, h = 0, x = 0, y = 0, r = 0;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
int up = y + r;
int down = y - r;
int left = x - r;
int right = x + r;
if (up <= h) {
if (down >= 0) {
if (left >= 0) {
if (right <= w) {
printf("Yes\n");
... | [["+", 0, 57, 64, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 1 | 132 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W <= x + r) {
cout << "No" << endl;
} else if (0 >= x - r) {
cout << "No" << endl;
} else if (H <= y + r) {
cout << "No" << endl;
} else if (0 >= y - r) {
cout << "No" << endl;
} else... | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W < x + r) {
cout << "No" << endl;
} else if (0 > x - r) {
cout << "No" << endl;
} else if (H < y + r) {
cout << "No" << endl;
} else if (0 > y - r) {
cout << "No" << endl;
} else
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 122 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r > 0 && x + r < W && y - r > 0 && y + r < H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 85 |
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if ((x - r) >= 0 || (x + r) <= W) {
if ((y - r) >= 0 || (y + r) <= H) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
cout <<... | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if ((x - r) >= 0 && (x + r) <= W) {
if ((y - r) >= 0 && (y + r) <= H) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
cout <<... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 112 |
#include <bits/stdc++.h>
using namespace std;
int main(void) {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (0 <= x + r && x + r <= w && 0 <= y + r && y + r <= h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (0 <= x - r && x + r <= w && 0 <= y - r && y + r <= h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 33], ["-", 51, 16, 31, 16, 12, 16, 12, 16, 17, 72], ["+", 51, 16, 31, 16, 12, 16, 12, 16, 17, 33]] | 1 | 86 |
#include <iostream>
#include <string>
using namespace std;
int w, h, x, y, r;
bool a;
string answer;
int main() {
cin >> w >> h >> x >> y >> r;
if (y + r >= h || y - r <= 0 || x - r <= 0 || x + r >= w) {
a = false;
} else {
a = true;
}
if (a == false) {
answer = "No";
} else {
... |
#include <iostream>
#include <string>
using namespace std;
int w, h, x, y, r;
bool a;
string answer;
int main() {
cin >> w >> h >> x >> y >> r;
if (y + r > h || y - r < 0 || x - r < 0 || x + r > w) {
a = false;
} else {
a = true;
}
if (a == false) {
answer = "No";
} else {
answ... | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 114 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x + r <= w && x - r <= 0 && y + r <= h && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x + r <= w && x - r >= 0 && y + r <= h && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20]] | 1 | 82 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && y + r <= H && r < x && r < y)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && y + r <= H && r <= x && r <= y)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 74 |
#include <bits/stdc++.h>
#define cinf(n, x) \
for (int i = 0; i < (n); i++) \
cin >> x[i];
typedef long long int ll;
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
... | #include <bits/stdc++.h>
#define cinf(n, x) \
for (int i = 0; i < (n); i++) \
cin >> x[i];
typedef long long int ll;
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
... | [["-", 51, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 95 |
#include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x < r || (x + r) > H)
printf("No\n");
else if (y < r || (y + r) > W)
printf("No\n");
else
printf("Yes\n");
}
| #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x < r || (x + r) > W)
printf("No\n");
else if (y < r || (y + r) > H)
printf("No\n");
else
printf("Yes\n");
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 95 |
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
if ((x <= r) || (y <= r) || (x + r >= w) || (y + r >= h)) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
if ((x < r) || (y < r) || (x + r > w) || (y + r > h)) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 18], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 2... | 1 | 103 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (w <= x + r || 0 >= x - r)
cout << "No" << endl;
else if (h <= y + r || 0 >= y - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (w < x + r || 0 > x - r)
cout << "No" << endl;
else if (h < y + r || 0 > y - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 96 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y, W, H, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 or x + r > W or y - r < 0 or y + r > H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y, W, H, r;
cin >> W >> H >> x >> y >> r;
// cout << x - r << x + r << y - r << y + r <<endl;
if (x - r < 0 or x + r > W or y - r < 0 or y + r > H) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 84 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x > r && y > r && W - r > x && H - r > y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x >= r && y >= r && W - r >= x && H - r >= y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 78 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x < r && x > w - r && y < r && y > h - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x < r || x > w - r || y < r || y > h - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 74 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 < x - r and x + r < W and 0 < y - r and y + r < H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= x - r and x + r <= W and 0 <= y - r and y + r <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 81 |
#include <array>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int w, h, x, y, r;
bool xflag, yflag;
cin >> w;
cin >> h;
cin >> x;
cin >> y;
cin >> r;
if (((x - r) > 0) && ((x + r) < w)) {
xflag = true;
} else {
xflag = false;
}
if (((y - r... | #include <array>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int w, h, x, y, r;
bool xflag, yflag;
cin >> w;
cin >> h;
cin >> x;
cin >> y;
cin >> r;
if (((x - r) >= 0) && ((x + r) <= w)) {
xflag = true;
} else {
xflag = false;
}
if (((y -... | [["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 20], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 19]] | 1 | 160 |
#include <stdio.h>
main(void) {
int W, H, x, y, r;
scanf("%d%d%d%d%d", W, H, x, y, r);
if (y + r <= H && y - r >= 0 && x + r <= W && x - r >= 0) {
printf("Yes\n");
} else
printf("No\n");
return 0;
} | #include <stdio.h>
main(void) {
int W, H, x, y, r;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (y + r <= H && y - r >= 0 && x + r <= W && x - r >= 0) {
printf("Yes\n");
} else
printf("No\n");
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 84 |
#include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((0 < x - r) && (x + r < w) && (0 < y - r) && (y + r < h)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((0 <= x - r) && (x + r <= w) && (0 <= y - r) && (y + r <= h)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19], ["-", 31, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 18], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 19], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 1... | 1 | 100 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r >= 0 && x + r <= w && y - r >= 0 && y + r < +h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r >= 0 && x + r <= w && y - r >= 0 && y + r <= h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["-", 15, 339, 51, 16, 12, 16, 12, 91, 17, 72], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 86 |
#include <stdio.h>
void judge(int W, int H, int x, int y, int r);
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
judge(W, H, x, y, r);
return 0;
}
void judge(int W, int H, int x, int y, int r) {
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) {
printf("YES\n")... | #include <stdio.h>
void judge(int W, int H, int x, int y, int r);
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
judge(W, H, x, y, r);
return 0;
}
void judge(int W, int H, int x, int y, int r) {
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) {
printf("Yes\n")... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 144 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && x - r >= 0 && y - r >= 0 && y + r <= H) {
cout << "yes"
<< "\n";
} else {
cout << "No"
<< "\n";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && x - r >= 0 && y - r >= 0 && y + r <= H) {
cout << "Yes"
<< "\n";
} else {
cout << "No"
<< "\n";
}
return 0;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 89 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r <= x && x << w - r && r <= y && y <= h - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r <= x && x <= w - r && r <= y && y <= h - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 151], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19]] | 1 | 81 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x > r && y > r && w - x > r && h - y > r)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x >= r && y >= r && w - x >= r && h - y >= r)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 74 |
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int w, h, x, y, r;
int main() {
cin >> w >> h >> x >> y >> r;
if (0 <= x + r && x + r <= w && 0 <= y + r && y + r <= h)
cout << "Yes" << endl;
else
cout << "No" << endl... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int w, h, x, y, r;
int main() {
cin >> w >> h >> x >> y >> r;
if (0 <= x - r && x + r <= w && 0 <= y - r && y + r <= h)
cout << "Yes" << endl;
else
cout << "No" << endl... | [["-", 31, 16, 31, 16, 31, 16, 12, 16, 17, 72], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 17, 33], ["-", 51, 16, 31, 16, 12, 16, 12, 16, 17, 72], ["+", 51, 16, 31, 16, 12, 16, 12, 16, 17, 33]] | 1 | 88 |
#include <iostream>
bool isInRec(const int W, const int x, const int r) {
int p = x - r, q = x + r;
if (p > 0 && q < W) {
return true;
} else {
return false;
}
}
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (isInRec(W, x, r) && isInRec(H, y, r)) {
std::cout << "Yes\n... | #include <iostream>
bool isInRec(const int W, const int x, const int r) {
int p = x - r, q = x + r;
if (p >= 0 && q <= W) {
return true;
} else {
return false;
}
}
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (isInRec(W, x, r) && isInRec(H, y, r)) {
std::cout << "Yes... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 130 |
#include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x < r || x > W - r || y < r || y > H - r)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x < r || x > W - r || y < r || y > H - r)
printf("No\n");
else
printf("Yes\n");
return 0;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 83 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if (H > y + r && y - r > 0 && W > x + r && x - r > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
// while(1);
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if (H >= y + r && y - r >= 0 && W >= x + r && x - r >= 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 90 |
#include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if (x > r && x < w - r && y > r && y < h - r)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
} | #include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if (x >= r && x <= w - r && y >= r && y <= h - r)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
} | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 83 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r < 0 || x + r > w || y - r < 0 || y + r > h) {
cout << "No" << endl;
} else if (x - r > 0 && x + r <= w && y - r > 0 && y + r <= h) {
cout << "Yes" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r < 0 || x + r > w || y - r < 0 || y + r > h) {
cout << "No" << endl;
} else if (x - r >= 0 && x + r <= w && y - r >= 0 && y + r <= h) {
cout << "Yes" << endl;
}
return 0;
} | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20]] | 1 | 111 |
#include <iostream>
using namespace std;
int main() {
int width, height, x, y, r;
std::cin >> width;
std::cin >> height;
std::cin >> x;
std::cin >> y;
std::cin >> r;
if (0 < x - r && x + r < 5 && 0 < y - r && y + r < 5) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl... | #include <iostream>
using namespace std;
int main() {
int width, height, x, y, r;
std::cin >> width;
std::cin >> height;
std::cin >> x;
std::cin >> y;
std::cin >> r;
if (0 <= x - r && x + r <= width && 0 <= y - r && y + r <= height) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No"... | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 12, 22], ["-", 15, 339, 51, 16, 31, 16, 12, 16... | 1 | 111 |
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x > r && y > r && (w - x) > r && (h - y) > r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x >= r && y >= r && (w - x) >= r && (h - y) >= r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 83 |
#include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x < r || x > W - r || y < r || y > H - r)
cout << "NO" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x < r || x > W - r || y < r || y > H - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 81 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.