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 <algorithm>
#include <iostream>
#include <vector>
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;
} | #include <algorithm>
#include <iostream>
#include <vector>
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;
} | [["-", 51, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 51, 16, 31, 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 | 78 |
#include <algorithm>
#include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
int lowerLimmit = r;
int upperLimmitX = W - r;
int upperLimmitY = H - r;
if (lowerLimmit ... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
int lowerLimmit = r;
int upperLimmitX = W - r;
int upperLimmitY = H - r;
if (lowerLimmit ... | [["-", 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 | 109 |
#include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int W, H, x, y, r;
string str;
cin >> W >> H >> x >> y >> r;
if (0 <= x + r && x + r <= W && 0 <= y + r && y + r <= H) {
str = "Yes";
} else {
str = "No";
}
cout << str << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int W, H, x, y, r;
string str;
cin >> W >> H >> x >> y >> r;
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) {
str = "Yes";
} else {
str = "No";
}
cout << str << 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 | 99 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (w > x + r && h > y + r && x > r && y > r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (w >= x + r && h >= y + r && x >= r && 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 | 79 |
#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 && y + r < H && 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 (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) {
printf("Yes\n");
}
else {
printf("No\n");
}
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, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 91 |
#include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", W, H, x, y, r);
if (W - r < x || H - r < y || x < r || y < r) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | #include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W - r < x || H - r < y || x < r || y < r) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 82 |
//
// main.cpp
// test
//
// Created by 鈴木大志 on 2018/06/15.
// Copyright © 2018年 鈴木大志. All rights reserved.
//
#include <iostream>
#include <math.h>
int main(int argc, const char *argv[]) {
int W, H, X, Y, R;
typedef struct {
int ox, oy, w, h;
} Rect;
std::cin >> W >> H >> X >> Y >> R;
Rect rect... | //
// main.cpp
// test
//
// Created by 鈴木大志 on 2018/06/15.
// Copyright © 2018年 鈴木大志. All rights reserved.
//
#include <iostream>
#include <math.h>
int main(int argc, const char *argv[]) {
int W, H, X, Y, R;
typedef struct {
int ox, oy, w, h;
} Rect;
std::cin >> W >> H >> X >> Y >> R;
Rect rect... | [["-", 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 | 188 |
#include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define loop(i, n) for (int i = 0; i < (n); ++i)
#define loops(i, f, n) for (int i = (f); i < (n); ++i)
#define INF 9999999
#define lint long long int
#defi... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define loop(i, n) for (int i = 0; i < (n); ++i)
#define loops(i, f, n) for (int i = (f); i < (n); ++i)
#define INF 9999999
#define lint long long int
#defi... | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 8, 9, 0, 57, 75, 76, 0, 1, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 145 |
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r, f;
cin >> W >> H >> x >> y >> r;
f = 0;
if (x + r > W && y + r > H && r > x && r > y)
f = 1;
if (f == 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r, f;
cin >> W >> H >> x >> y >> r;
f = 0;
if (x + r > W || y + r > H || r > x || r > y)
f = 1;
if (f == 0)
cout << "Yes" << endl;
else
cout << "No" << 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 | 91 |
#include <iostream>
int main() {
int v1, v2, v3, v4, v5;
std::cin >> v1 >> v2 >> v3 >> v4 >> v5;
if (v5 < v3 && v5 < v4 && v3 + v5 < v1 && v4 + v5 < v2) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int v1, v2, v3, v4, v5;
std::cin >> v1 >> v2 >> v3 >> v4 >> v5;
if (v5 <= v3 && v5 <= v4 && v3 + v5 <= v1 && v4 + v5 <= v2) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::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 | 87 |
#include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (r <= x && x <= W - x && r <= y && y <= H - r) {
printf("Yes");
} else {
printf("No");
}
printf("\n");
return 0;
}
|
#include <cstdio>
int main() {
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");
} else {
printf("No");
}
printf("\n");
return 0;
}
| [["-", 31, 16, 31, 16, 12, 16, 12, 16, 12, 22], ["+", 31, 16, 31, 16, 12, 16, 12, 16, 12, 22]] | 1 | 92 |
#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";
else
cout << "No";
cout << 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";
else
cout << "No";
cout << 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 | 81 |
#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\n";
else
cout << "No\n";
} | #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\n";
else
cout << "No\n";
} | [["-", 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 | 76 |
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
int minX = x - r;
int maxX = x + r;
int minY = y - r;
int maxY = y + r;
if (minX < 0 || maxX > W || minY < 0 || maxY > H) {
cout << "Ye... | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
int minX = x - r;
int maxX = x + r;
int minY = y - r;
int maxY = y + r;
if (minX < 0 || maxX > W || minY < 0 || maxY > H) {
cout << "No... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 117 |
#include <iostream>
using namespace std;
int main(void) {
int winX, winY;
int centerX, centerY, radius;
string result;
cin >> winX >> winY >> centerX >> centerY >> radius;
if (centerY - radius > 0 && centerY + radius < winY && centerX - radius > 0 &&
centerX + radius < winX) {
result = "Yes";
} el... | #include <iostream>
using namespace std;
int main(void) {
int winX, winY;
int centerX, centerY, radius;
string result;
cin >> winX >> winY >> centerX >> centerY >> radius;
if (centerY - radius >= 0 && centerY + radius <= winY &&
centerX - radius >= 0 && centerX + radius <= winX) {
result = "Yes";
... | [["-", 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 | 92 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= W)
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 (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 91 |
#include <cstdio>
main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
printf(
"%s\n",
((x - r <= 0 || x + r >= w || y - r <= 0 || y + r >= h) ? "No" : "Yes"));
} | #include <cstdio>
main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
printf("%s\n",
((x - r < 0 || x + r > w || y - r < 0 || y + r > h) ? "No" : "Yes"));
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 17, 47], ["-", 15, 23, 0, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 23, 0, 16, 31, 16, 12, 16, 17, 18], ["-", 0, 41, 15, 23, 0, 16, 12, 16, 17, 20]... | 1 | 84 |
#include <stdio.h>
int main() {
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() {
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;
} | [["-", 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 | 91 |
#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, 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 | 79 |
#include <stdio.h>
int main() {
int W, H, x, y, r, v1, v2, y1, y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
v1 = x + r;
v2 = W - (x - r);
y1 = y + r;
y2 = H - (x - r);
if (v1 > W || v2 > W || y1 > H || y2 > H) {
printf("No\n");
} else {
printf("Yes\n");
}
} | #include <stdio.h>
int main() {
int W, H, x, y, r, v1, v2, y1, y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
v1 = x + r;
v2 = W - (x - r);
y1 = y + r;
y2 = H - (y - r);
if (v1 > W || v2 > W || y1 > H || y2 > H) {
printf("No\n");
} else {
printf("Yes\n");
}
} | [["-", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22], ["+", 0, 11, 12, 16, 12, 23, 0, 16, 31, 22]] | 1 | 120 |
#include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int x, y, r, W, H;
cin >> W >> H >> x >> y >> r;
//水平
if (((x - r) > 0 and (x + r) < W) and ((y - r) > 0 and (y + r) < H)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int x, y, r, W, H;
cin >> W >> H >> x >> y >> r;
//水平
if (((x - r) >= 0 and (x + r) <= W) and ((y - r) >= 0 and (y + r) <= H)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 51, 16, 31, 23, 0, 16, 31, 16, 17, 47], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 20], ["-", 51, 16, 31, 23, 0, 16, 12, 16, 17, 18], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 17, 19], ["-", 51, 16, 12, 23, 0, 16, 31, 16, 17, 47], ["+", 51, 16, 12, 23, 0, 16, 31, 16, 17, 20], ["-", 51, 16, 12, 23, 0, 16, 12, 16, 17, 18... | 1 | 107 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x >= r && y >= r && x + r < w && 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 && y >= r && x + r <= w && y + r <= h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 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 | 81 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (r < x && x < W - r && r < y && y < H - r)
std::cout << "Yes"
<< "\n";
else
std::cout << "No"
<< "\n";
return 0;
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (r <= x && x <= W - r && r <= y && y <= H - r)
std::cout << "Yes"
<< "\n";
else
std::cout << "No"
<< "\n";
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>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (0 < x - r && x + r < W && 0 < y - r && y + r < H) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | [["-", 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 | 88 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if ((x > r) && (y > r) && (W - r > x) && (H - r > y)) {
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) && (y >= r) && (W - r >= x) && (H - r >= y)) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
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, 47], ["+", 31, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 4... | 1 | 95 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, x, y, r;
cin >> a >> b >> x >> y >> r;
if (x - r < 0 || x + r > a) {
cout << "No" << endl;
} else if (y - r < 0 || y + r > b) {
cout << "No" << endl;
} else if (x - r > 0 && x + r < a) {
cout << "Yes" << endl;
}
... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, x, y, r;
cin >> a >> b >> x >> y >> r;
if (x - r < 0 || x + r > a) {
cout << "No" << endl;
} else if (y - r < 0 || y + r > b) {
cout << "No" << endl;
} else if (x - r >= 0 && x + r <= a) {
cout << "Yes" << endl;
}... | [["-", 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 | 114 |
#include "iostream"
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r > 0 && y - r > 0 && x + r < w && 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 && y - r >= 0 && x + r <= w && 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, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 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 | 87 |
#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;
}
} | #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;
}
} | [["-", 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 | 105 |
#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)
cout << "No" << endl;
if (y - r < 0 || y + r > H)
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;
if (x - r < 0 || x + r > W)
cout << "No" << endl;
else if (y - r < 0 || y + r > H)
cout << "No" << endl;
else
cout << "Yes" << endl;
} | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 88 |
#include <iostream>
using namespace std;
int main() {
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 <iostream>
using namespace std;
int main() {
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;
} | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 85 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((y + r > H) || (x - r < 0) || (y - r < 0) || (y + r > W)) {
cout << "No" << endl;
} else {
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 ((y + r > H) || (x - r < 0) || (y - r < 0) || (x + r > W)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [["-", 51, 16, 12, 23, 0, 16, 31, 16, 31, 22], ["+", 51, 16, 12, 23, 0, 16, 31, 16, 31, 22]] | 1 | 93 |
#include <iostream>
using namespace std;
int main() {
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;
} | #include <iostream>
using namespace std;
int main() {
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;
} | [["-", 51, 16, 31, 23, 0, 16, 31, 16, 17, 18], ["+", 51, 16, 31, 23, 0, 16, 31, 16, 17, 19], ["-", 51, 16, 31, 23, 0, 16, 12, 16, 17, 18], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 17, 19], ["-", 51, 16, 12, 23, 0, 16, 31, 16, 17, 18], ["+", 51, 16, 12, 23, 0, 16, 31, 16, 17, 19], ["-", 51, 16, 12, 23, 0, 16, 12, 16, 17, 18... | 1 | 90 |
#include <iostream>
using namespace std;
void hantei(int W, int H, int x, int y, int r) {
bool left = (x - r >= 0), right = (x + r <= W), up = (y + r <= H),
down = (y - r >= 0);
if (left && right && up && down) {
cout << "Yes" << endl;
} else {
cout << "NO" << endl;
}
}
int main() {
int W, H... | #include <iostream>
using namespace std;
void hantei(int W, int H, int x, int y, int r) {
bool left = (x - r >= 0), right = (x + r <= W), up = (y + r <= H),
down = (y - r >= 0);
if (left && right && up && down) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
int main() {
int W, H... | [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 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 < r + x || h < r + y) {
printf("NO\n");
} else if (r > x || r > y) {
printf("NO\n");
}
/*else if(w<r+x || h<r+y){
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 (w < r + x || h < r + y) {
printf("No\n");
} else if (r > x || r > y) {
printf("No\n");
} else {
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]] | 1 | 102 |
#include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int w, h, x, y, r;
string str = "No";
vector<int> vi;
cin >> w >> h >> x >> y >> r;
if (0 < ... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int w, h, x, y, r;
string str = "No";
vector<int> vi;
cin >> w >> h >> x >> y >> r;
if (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 | 109 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r, a, b, c;
a = 0;
cin >> w >> h >> x >> y >> r;
if (x < r) {
a += 1;
}
b = x + r;
if (b > w) {
a += 1;
}
if (y < r) {
a += 1;
}
c = y + r;
if (c > h) {
a += 1;
}
if (a = 0) {
cout << "Yes" << endl;
}... | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r, a, b, c;
a = 0;
cin >> w >> h >> x >> y >> r;
if (x < r) {
a += 1;
}
b = x + r;
if (b > w) {
a += 1;
}
if (y < r) {
a += 1;
}
c = y + r;
if (c > h) {
a += 1;
}
if (a == 0) {
cout << "Yes" << endl;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 11, 17, 32], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 60]] | 1 | 135 |
#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;
}
} | #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;
}
} | [["-", 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 | 82 |
#include <iostream>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
int main(void) {
int w, h, x, y, r;
bool flag1 = false;
bool flag2 = false;
bool flag3 = false;
bool flag4 = false;
CI w >> h >> x >> y >> r;
if ((h - (x + r)) >= 0) {
flag1 = true;
}
if (r <= x)... | #include <iostream>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
int main(void) {
int w, h, x, y, r;
bool flag1 = false;
bool flag2 = false;
bool flag3 = false;
bool flag4 = false;
CI w >> h >> x >> y >> r;
if ((w - (x + r)) >= 0) {
flag1 = true;
}
if (r <= x)... | [["-", 15, 339, 51, 16, 31, 23, 0, 16, 31, 22], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 31, 22]] | 1 | 182 |
#include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
while (cin >> w >> h >> x >> y >> r) {
if (x - r > 0 && y - r > 0 && x + r < w && y + r < h)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
while (cin >> w >> h >> x >> y >> r) {
if (x - r >= 0 && y - r >= 0 && x + r <= w && 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, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 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 | 86 |
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((r <= x <= (W - r)) and (r <= y <= (H - r))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((r <= x and x <= (W - r)) and (r <= y and y <= (H - r))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 355], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 31, 22], ["+", 51, 16, 12, 23, 0, 16, 31, 16, 12, 22], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 355]] | 1 | 83 |
#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 - y)
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;
} | [["-", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]] | 1 | 77 |
#include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r < x && r < y && x + r < W && y + r < H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && r <= y && x + r <= W && 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 | 84 |
#include <iostream>
#include <stdio.h>
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>
#include <stdio.h>
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, 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() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((x + r > W) || (x - r < 0))
cout << "no" << '\n';
else if ((y + r > H) || (y - r < 0))
cout << "no" << '\n';
else
cout << "yes" << '\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))
cout << "No" << '\n';
else if ((y + r > H) || (y - r < 0))
cout << "No" << '\n';
else
cout << "Yes" << '\n';
return 0;
} | [["-", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 106 |
#include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 + r < x && W - r > x && 0 + r < y && H - r > y) {
printf("Yes\n");
}
else {
printf("No\n");
}
return (0);
} | #include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 + r <= x && W - r >= x && 0 + r <= y && H - r >= y) {
printf("Yes\n");
}
else {
printf("No\n");
}
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, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 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 | 99 |
#include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
int xmin = x - r;
int xmax = x + r;
int ymin = y - r;
int ymax = y + r;
if (xmin > 0 && xmax < w && ymin > 0 && ymax < 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);
int xmin = x - r;
int xmax = x + r;
int ymin = y - r;
int ymax = y + r;
if (xmin >= 0 && xmax <= w && ymin >= 0 && ymax <= h) {
printf("Yes\n");
} else {
printf("No\n");
}
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 | 112 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((x + r) < W && 0 < (x - r)) {
if ((y + r) < H && 0 < (y - r)) {
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) <= W && 0 <= (x - r)) {
if ((y + r) <= H && 0 <= (y - r)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 108 |
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r < x && x < w - r && r < y && y < h - r)
s = "Yes";
else
s = "No";
cout << s << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r <= x && x <= w - r && r <= y && y <= h - r)
s = "Yes";
else
s = "No";
cout << s << endl;
} | [["-", 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 <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) {
if (y + r < h && y - r > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << 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) {
if (y + r <= h && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 97 |
#include <iostream>
using namespace std;
int main() {
int x, y, r, W, H;
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;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y, r, W, H;
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;
}
} | [["-", 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]] | 1 | 82 |
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
int W, H;
int x, y, r;
// Inputs
cin >> W >> H >> x >> y >> r;
string Ans;
if ((x > r) && (x < (W - r)) && (y > r) && (y < (H - r))) {
Ans = "Yes";
} else {
Ans = "No";
}
cout << Ans << endl;
} | #include <iostream>
using namespace std;
int main(int argc, char **argv) {
int W, H;
int x, y, r;
// Inputs
cin >> W >> H >> x >> y >> r;
string Ans;
if ((x >= r) && (x <= (W - r)) && (y >= r) && (y <= (H - r))) {
Ans = "Yes";
} else {
Ans = "No";
}
cout << Ans << endl;
} | [["-", 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], ["-", 51, 16, 31, 16, 12, 23, 0, 16, 17, 47], ["+", 51, 16, 31, 16, 12, 23, 0, 16, 17, 20], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 1... | 1 | 104 |
#include <iostream>
using namespace std;
int main() {
int H, W, x, y, r;
cin >> H >> W >> 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, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 17, 152], ["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 16... | 1 | 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 (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
printf("Yes\n");
else
printf("Nn");
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)
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, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 87 |
#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;
}
} | #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;
}
} | [["-", 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 | 88 |
#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], ["-", 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 | 107 |
#include <iostream>
using namespace std;
int main(void) {
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\n";
} else {
cout << "No\n";
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
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\n";
} else {
cout << "No\n";
}
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, 47], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 84 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (0 <= 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 (0 <= x - r && 0 <= y - r && w >= x + r && h >= y + r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["+", 51, 16, 31, 16, 31, 16, 12, 16, 31, 13], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 19]] | 1 | 81 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && y - r >= 0) {
if (x + r <= W && y + r <= W)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
}
else
std::cout << "No" << std::endl;
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && y - r >= 0) {
if (x + r <= W && y + r <= H)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
}
else
std::cout << "No" << std::endl;
} | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 101 |
#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 (x > r && y > r && w - x > 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;
scanf("%d", &w);
scanf("%d", &h);
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &r);
if (x >= r && y >= r && w - x >= r && h - y >= r) {
printf("Yes\n");
} else {
printf("No\n");
}
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 | 116 |
#include <cstdio>
using namespace std;
int main() {
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (r <= (y - 0) || r <= (x - 0) || r <= (H - y) || r <= (W - x)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <cstdio>
using namespace std;
int main() {
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (r <= (y - 0) && r <= (x - 0) && r <= (H - y) && r <= (W - x)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 107 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
string s;
cin >> W >> H >> x >> y >> r;
if (r < x && r < y && x < (W - r) && y < (H - r))
s = "Yes";
else
s = "No";
cout << s << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
string s;
cin >> W >> H >> x >> y >> r;
if (r <= x && r <= y && x <= (W - r) && y <= (H - r))
s = "Yes";
else
s = "No";
cout << s << 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 | 88 |
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x, y, w, h, 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 <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x, y, w, h, 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, 12, 16, 31, 16, 17, 33], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 72]] | 1 | 85 |
#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 || x + r > W || y - r < 0 || y + r > H)
printf("No\n");
else
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);
if (x - r < 0 || x + r > W || y - r < 0 || y + r > H)
printf("No\n");
else
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]] | 1 | 87 |
#include <iostream>
using namespace std;
int main() {
int width = 0, height = 0;
int x = 0, y = 0, r = 0;
cin >> width >> height >> x >> y >> r;
bool result = false;
if (x - r >= 0 && x + r << width) {
if (y - r >= 0 && y + r <= height) {
result = true;
}
}
if (result) {
cout << "Yes... | #include <iostream>
using namespace std;
int main() {
int width = 0, height = 0;
int x = 0, y = 0, r = 0;
cin >> width >> height >> x >> y >> r;
bool result = false;
if (x - r >= 0 && x + r <= width) {
if (y - r >= 0 && y + r <= height) {
result = true;
}
}
if (result) {
cout << "Yes... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 151], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 115 |
#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;
} | [["-", 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, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 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 | 87 |
#include <iostream>
using namespace std;
int main() {
int W, H;
int x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0) {
cout << "No" << endl;
return 0;
}
if (x + r > H) {
cout << "No" << endl;
return 0;
}
if (y + r > W) {
cout << "No" << endl;
return 0;
}
if (y - r < 0)... | #include <iostream>
using namespace std;
int main() {
int W, H;
int x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0) {
cout << "No" << endl;
return 0;
}
if (x + r > W) {
cout << "No" << endl;
return 0;
}
if (y + r > H) {
cout << "No" << endl;
return 0;
}
if (y - r < 0)... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22]] | 1 | 128 |
#include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if ((x - r) > 0 && (y - r) > 0 && (h - r) < y && (w - r) < x) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | #include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if ((x - r) >= 0 && (y - r) >= 0 && (h - r) >= y && (w - r) >= x) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::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, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 96 |
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main() {
#ifdef CIN
ifstream cin("input.txt");
ofstream cout("output.txt");
#endif
int x, y, H, W, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && x <= (W - r) && r < y && y <= (H - r))
cout << "Yes" << endl;
else
... | #include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main() {
#ifdef CIN
ifstream cin("input.txt");
ofstream cout("output.txt");
#endif
int x, y, H, W, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && x <= (W - r) && r <= y && y <= (H - r))
cout << "Yes" << endl;
else
... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19]] | 1 | 104 |
#include <stdio.h>
int main(void) {
int W, H, x, y, r;
int flg = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
// chek width
if (((x - r) >= 0) && ((x + r) - W) < 0) {
// check height
if (((y - r) > 0) && ((y + r) - H) < 0) {
printf("Yes\n");
flg = 1;
}
}
if (flg == 0)
print... | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
int flg = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
// chek width
if (((x - r) >= 0) && ((x + r) - W) <= 0) {
// check height
if (((y - r) >= 0) && ((y + r) - H) <= 0) {
printf("Yes\n");
flg = 1;
}
}
if (flg == 0)
pr... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 47], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 20]] | 1 | 130 |
// itp1_2_d
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
bool inner = false;
if ((x > r && x < w - r) && (y > r && y < h - r) && (h > r * 2 && w > r * 2))
inner = true;
if (inner)
cout << "Yes" << endl;
else
cout << "No" << endl;
r... | // itp1_2_d
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
bool inner = false;
if ((x >= r && x <= w - r) && (y >= r && y <= h - r) &&
(h >= r * 2 && w >= r * 2))
inner = true;
if (inner)
cout << "Yes" << endl;
else
cout << "No" <... | [["-", 31, 16, 31, 23, 0, 16, 31, 16, 17, 47], ["+", 31, 16, 31, 23, 0, 16, 31, 16, 17, 20], ["-", 31, 16, 31, 23, 0, 16, 12, 16, 17, 18], ["+", 31, 16, 31, 23, 0, 16, 12, 16, 17, 19], ["-", 31, 16, 12, 23, 0, 16, 31, 16, 17, 47], ["+", 31, 16, 12, 23, 0, 16, 31, 16, 17, 20], ["-", 31, 16, 12, 23, 0, 16, 12, 16, 17, 18... | 1 | 109 |
#include <iostream>
using namespace std;
int main() {
int H, W, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W - r > x && x > r && H - r > y && y > r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int H, W, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W - r >= x && x >= r && H - r >= y && 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 | 81 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x < r || w - r < x || y < r || h < y) {
cout << "No" << endl;
} else {
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 || w - r < x || y < r || h - r < y) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 33], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22]] | 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 || y - r < 0 || y + r > h) {
cout << "No" << '/n';
} else {
cout << "Yes" << '/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 < 0 || x + r > w || y - r < 0 || y + r > h) {
cout << "No" << '\n';
} else {
cout << "Yes" << '\n';
}
return 0;
} | [["-", 64, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["-", 0, 1, 0, 16, 12, 103, 0, 42, 0, 22], ["+", 64, 9, 0, 1, 0, 16, 12, 103, 0, 44], ["-", 0, 9, 0, 1, 0, 16, 12, 103, 0, 125], ["+", 0, 9, 0, 1, 0, 16, 12, 103, 0, 44]] | 1 | 91 |
#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, 31, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 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, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 82 |
#include <iostream>
using namespace std;
int main() {
int W, H, r, x, y;
cin >> W >> H >> r >> x >> y;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int W, H, r, x, y;
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;
}
} | [["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 90 |
#include <stdio.h>
int main() {
int W, H, x, y, r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x + 2 <= W && x - 2 >= 0 && y + 2 <= H && y - 2 >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r = 0;
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, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 51, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 12, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16... | 1 | 93 |
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && r + x <= W && r <= y && r + y <= H) {
cout << "Yse" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && r + x <= W && r <= y && r + y <= H) {
cout << "Yes" << 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 | 82 |
#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) <= H) {
if ((y - r) >= 0 && (y + r) <= W) {
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, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 108 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W >= x + r && H >= y + r && x > r && y > 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 (W >= x + r && H >= y + r && x >= r && y >= r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 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, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 81 |
#include <stdio.h>
int main() {
int w, h, x, y, r;
int temp;
int min, med, max;
scanf("%d", &w);
scanf("%d", &h);
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &r);
if (x - r >= 0 && x + r <= w) {
if (y - r >= 0 && y + r < h)
printf("Yes\n");
else
printf("No\n");
} else
pr... | #include <stdio.h>
int main() {
int w, h, x, y, r;
int temp;
int min, med, max;
scanf("%d", &w);
scanf("%d", &h);
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &r);
if (x - r >= 0 && x + r <= w) {
if (y - r >= 0 && y + r <= h)
printf("Yes\n");
else
printf("No\n");
} else
p... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 138 |
#include <iostream>
using namespace std;
int main() {
// your code goes here
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
string isIn;
if (0 < x - r && w > x + r && 0 < y - r && h > y + r)
isIn = "Yes";
else
isIn = "No";
cout << isIn << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
// your code goes here
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
string isIn;
if (0 <= x - r && w >= x + r && 0 <= y - r && h >= y + r)
isIn = "Yes";
else
isIn = "No";
cout << isIn << 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, 47], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 17, 20], ["-", 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 | 87 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
const char *ret;
if (x > r && x + r < W && y > r && y + r < H) {
ret = "Yes";
} else {
ret = "No";
}
cout << ret << endl;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
const char *ret;
if (x >= r && x + r <= W && y >= r && y + r <= H) {
ret = "Yes";
} else {
ret = "No";
}
cout << ret << 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, 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() {
int x, y, W, H, r;
cin >> W >> H >> x >> y;
// No????????¶
if (x + r > W || x - r < 0 || y + r > H || y - r < 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} |
#include <iostream>
using namespace std;
int main() {
int x, y, W, H, r;
cin >> W >> H >> x >> y >> r;
// No????????¶
if (x + r > W || x - r < 0 || y + r > H || y - r < 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 84 |
#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);
} | [["-", 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 | 87 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
cout << ((x - r > 0 && x + r < W && y - r > 0 && y + r < H) ? "Yes" : "No")
<< endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
cout << ((x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) ? "Yes"
: "No")
<< endl;
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, 41, 15, 23, 0, 16, 12, 16, 17, 18]... | 1 | 80 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define For(i, a, b) for (int(i) = (a); (i) < (b); (i)++)
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 || y - r ... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
#define REP(i, n) for (int(i) = 0; (i) < (n); (i)++)
#define For(i, a, b) for (int(i) = (a); (i) < (b); (i)++)
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && y - r ... | [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 107 |
#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 if ((x - r < 0 || x + r > W) || y - r < 0 || y + r > H) {
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 if ((x - r < 0 || x + r > W) || y - r < 0 || y + r > H) {
cout << "No" << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98]] | 1 | 115 |
#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 if ((x - r < 0 || x + r > W) && y - r < 0 || y + r > H) {
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 if ((x - r < 0 || x + r > W) || y - r < 0 || y + r > H) {
cout << "No" << endl;
}
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106]] | 1 | 115 |
#include <stdio.h>
int main() {
int W, H, x, y, r, e = 1;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
e = (x - r > 0) ? e : 0;
e = (y - r > 0) ? e : 0;
e = (x + r < W) ? e : 0;
e = (y + r < H) ? e : 0;
printf("%s\n", (e) ? "Yes" : "No");
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r, e = 1;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
e = (x - r >= 0) ? e : 0;
e = (y - r >= 0) ? e : 0;
e = (x + r <= W) ? e : 0;
e = (y + r <= H) ? e : 0;
printf("%s\n", (e) ? "Yes" : "No");
return 0;
} | [["-", 0, 11, 12, 41, 15, 23, 0, 16, 17, 47], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 17, 20], ["-", 0, 11, 12, 41, 15, 23, 0, 16, 17, 18], ["+", 0, 11, 12, 41, 15, 23, 0, 16, 17, 19]] | 1 | 124 |
#include <stdio.h>
main() {
int W, H, x, y, r;
int left, right, top, bottom;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
left = x + r;
right = x - r;
top = y + r;
bottom = y - r;
if (left >= 0 && right <= W && top <= H && bottom >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return... | #include <stdio.h>
main() {
int W, H, x, y, r;
int left, right, top, bottom;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
left = x - r;
right = x + r;
top = y + r;
bottom = y - r;
if (left >= 0 && right <= W && top <= H && bottom >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return... | [["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["-", 8, 9, 0, 1, 0, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 1, 0, 11, 12, 16, 17, 72]] | 1 | 115 |
#include <algorithm>
#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)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <algorithm>
#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;
} | [["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 33], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 12, 22]] | 1 | 77 |
#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\n";
else if (x + r > W || y + r > H || x + r < 0 || y + r < 0)
cout << "No\n";
} | #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\n";
else if (x + r > W || y + r > H || x - r < 0 || y - r < 0)
cout << "No\n";
} | [["-", 51, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 33]] | 1 | 102 |
#include <iostream>
using namespace std;
int main() {
int W;
int H;
int x;
int y;
int r;
cin >> W >> H >> x >> y >> r;
if (W >= (x + r) || (x - r) >= 0 || H >= (y + r) || (y - r) >= 0)
cout << "Yes\n";
else
cout << "No\n";
} | #include <iostream>
using namespace std;
int main() {
int W;
int H;
int x;
int y;
int r;
cin >> W >> H >> x >> y >> r;
if (W >= (x + r) && (x - r) >= 0 && H >= (y + r) && (y - r) >= 0)
cout << "Yes\n";
else
cout << "No\n";
} | [["-", 15, 339, 51, 16, 31, 16, 31, 16, 17, 106], ["+", 15, 339, 51, 16, 31, 16, 31, 16, 17, 98], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 106], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 88 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && y - r >= 0 && W > x + r && H > y + r) {
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 >= 0 && y - r >= 0 && W >= x + r && H >= y + r) {
cout << "Yes\n";
} else {
cout << "No\n";
}
return 0;
} | [["-", 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, 16, 17, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 83 |
#include <iostream>
using namespace std;
int main() {
int W, H;
int x, y, r;
cin >> W >> H >> x >> y >> r;
cout << (((0 < x - r && x + r < W) && (0 < y - r && y + r < H)) ? "Yes"
: "No")
<< endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H;
int x, y, r;
cin >> W >> H >> x >> y >> r;
cout << (((0 <= x - r && x + r <= W) && (0 <= y - r && y + r <= H)) ? "Yes"
: "No")
<< endl;
return 0;
} | [["-", 0, 16, 31, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 16, 31, 23, 0, 16, 12, 16, 17, 18], ["+", 0, 16, 31, 23, 0, 16, 12, 16, 17, 19], ["-", 0, 16, 12, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 16, 12, 23, 0, 16, 31, 16, 17, 19], ["-", 0, 16, 12, 23, 0, 16, 12, 16, 17, 18], ["+"... | 1 | 83 |
#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 (x <= r && x + r <= w && y <= r && y + r <= h) {
printf("Yes");
} else {
printf("No");
}
return 0;
} | #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 (x >= r && x + r <= w && y >= r && y + r <= h) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 114 |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int W, H, x, y, r, a, b, c, d;
cin >> W >> H >> x >> y >> r;
a = r;
b = W - r;
c = r;
d = H - r;
if (a < x && x < b && c < y && y < d) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(int argc, char const *argv[]) {
int W, H, x, y, r, a, b, c, d;
cin >> W >> H >> x >> y >> r;
a = r;
b = W - r;
c = r;
d = H - r;
if (a <= x && x <= b && c <= y && y <= d) {
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 | 114 |
#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\n";
} else {
cout << "No\n";
}
} else {
cout << "No\n";
}
} | #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\n";
} else {
cout << "No\n";
}
} else {
cout << "No\n";
}
} | [["-", 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 | 102 |
#define _CRT_SECURE_NO_WARNINGS
#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 || x + r > W) && (y - r < 0 || y + r > W)) {
printf("No");
} else if ((x - r >= 0 && x + r <= W) && (y - r >= 0 && y + r <= H)) {
printf("Yes");
}
} | #define _CRT_SECURE_NO_WARNINGS
#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 || x + r > W) || (y - r < 0 || y + r > H)) {
printf("No\n");
} else if ((x - r >= 0 && x + r <= W) || (y - r >= 0 && y + r <= H)) {
printf("Yes\n");
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 51, 16, 12, 23, 0, 16, 12, 16, 12, 22], ["+", 51, 16, 12, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 122 |
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
string line;
int W, H, x, y, r;
getline(cin, line);
stringstream(line) >> W >> H >> x >> y >> r;
if (x - r < 0 || y - r < 0 || x + r > W || x + y > H) {
cout << "No\n";
} else {
cout << "Yes\n";
}
return 0... | #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
string line;
int W, H, x, y, r;
getline(cin, line);
stringstream(line) >> W >> H >> x >> y >> r;
if (x - r < 0 || y - r < 0 || x + r > W || y + r > H) {
cout << "No\n";
} else {
cout << "Yes\n";
}
return 0... | [["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 22]] | 1 | 100 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.