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(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("No\n");
} else {
printf("Yes\n");
}
} | #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("No\n");
} else {
printf("Yes\n");
}
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 84 |
#include <iostream>
int main() {
using namespace std;
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>
int main() {
using namespace std;
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 <cstdio>
#include <iostream>
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 << "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 && x <= W - r && y >= r && y <= H - 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, 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 (r < x && x < W - r && r < y && y < H - 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 (r <= x && x <= W - r && r <= y && y <= H - r) {
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], ["-", 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 | 78 |
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int nW, nH, nX, nY, nR;
cin >> nW >> nH >> nX >> nY >> nR;
if ((nX + nR << nW) && (nX - nR >= 0) && (nY + nR <= nH) && (nY - nR >= 0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
// system("pause");
return 0;
} | #include <cmath>
#include <iostream>
using namespace std;
int main() {
int nW, nH, nX, nY, nR;
cin >> nW >> nH >> nX >> nY >> nR;
if ((nX + nR <= nW) && (nX - nR >= 0) && (nY + nR <= nH) && (nY - nR >= 0)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
/*system("pause");*/
return 0;
} | [["-", 31, 16, 31, 16, 31, 23, 0, 16, 17, 151], ["+", 31, 16, 31, 16, 31, 23, 0, 16, 17, 19]] | 1 | 96 |
#include <iostream>
using namespace std;
int main() {
int W = 0, H = 0, x = 0, y = 0, r = 0;
cin >> W >> H >> x >> y >> r;
if (((x >= 1 && x <= W - 1) && y >= 1) && y <= H - 1)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W = 0, H = 0, x = 0, y = 0, r = 0;
cin >> W >> H >> x >> y >> r;
if (((x >= r && x <= W - r) && y >= r) && y <= H - r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [["-", 0, 16, 31, 23, 0, 16, 31, 16, 12, 13], ["+", 0, 16, 31, 23, 0, 16, 31, 16, 12, 22], ["-", 31, 23, 0, 16, 12, 16, 12, 16, 12, 13], ["+", 31, 23, 0, 16, 12, 16, 12, 16, 12, 22], ["-", 51, 16, 31, 23, 0, 16, 12, 16, 12, 13], ["+", 51, 16, 31, 23, 0, 16, 12, 16, 12, 22], ["-", 15, 339, 51, 16, 12, 16, 12, 16, 12, 13... | 1 | 91 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
bool isinrectangle = false;
if ((x - r > 0 and x + r < W) and (y - r > 0 and y + r < H)) {
isinrectangle = true;
}
if (isinrectangle == true) {
cout << "Yes" << endl;
} else {
cout << "No"... | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
bool isinrectangle = false;
if ((x - r >= 0 and x + r <= W) and (y - r >= 0 and y + r <= H)) {
isinrectangle = true;
}
if (isinrectangle == true) {
cout << "Yes" << endl;
} else {
cout << ... | [["-", 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 | 106 |
#include <iostream>
using namespace std;
int main() {
int x, r, y, W, H;
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 x, r, y, W, H;
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 | 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;
} | [["-", 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 | 89 |
#include <iostream>
using namespace std;
int main(void) {
// Your code here!
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= W) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main(void) {
// Your code here!
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;
}
} | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22]] | 1 | 84 |
#include <stdio.h>
int main(void) {
int w, h, x, y, r = 0;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
if (((r <= x) && (x <= (w - r))) && ((r <= y) && (y <= (h - y)))) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int w, h, x, y, r = 0;
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;
} | [["-", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 12, 23, 0, 16, 12, 23, 0, 16, 12, 22]] | 1 | 106 |
#include <iostream>
using namespace std;
int main() {
int h, w, x, y, r;
cin >> h >> w >> x >> y >> r;
if (x >= r && y >= r && x + r <= w && y + r <= h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int h, w, 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;
}
} | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 16, 31, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 17, 152], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22]] | 1 | 78 |
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
void solve() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
//??????????????????
if (y + r <= h && y - r <= 0 && x - r <= 0 && x + r <= w) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
int main() {
sol... | #include <cmath>
#include <iostream>
#include <vector>
using namespace std;
void solve() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
//??????????????????
if (y + r <= h && y - r >= 0 && x - r >= 0 && x + r <= w) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
int main() {
sol... | [["-", 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, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20]] | 1 | 100 |
#include <stdio.h>
int main(void) {
int w, h;
int x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x >= -100 && y <= 100) {
if (w >= x + r && 0 <= x - r && h >= y + r && 0 <= x - r)
printf("Yes");
else
printf("No");
} else
printf("No");
return (0);
} | #include <stdio.h>
int main(void) {
int w, h;
int x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x >= -100 && y <= 100) {
if (w >= x + r && 0 <= x - r && h >= y + r && 0 <= y - r)
puts("Yes");
else
puts("No");
} else
puts("No");
return (0);
} | [["-", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["-", 64, 9, 0, 57, 64, 1, 0, 2, 63, 22], ["+", 64, 9, 0, 57, 64, 1, 0, 2, 63, 22], ["-", 0, 57, 75, 76, 0, 1, 0, 2, 63, 22], ["+", 0, 57, 75, 76, 0, 1, 0, 2, 63, 22]] | 1 | 109 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
std::cout << (r <= x <= W - r and r <= y <= H - r ? "Yes" : "No")
<< std::endl;
return 0;
}
| #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
std::cout << (r <= x && x <= W - r and r <= y && y <= H - r ? "Yes" : "No")
<< std::endl;
return 0;
}
| [["+", 0, 41, 15, 16, 31, 16, 31, 16, 17, 98], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 12, 22], ["+", 31, 16, 12, 23, 0, 41, 15, 16, 17, 98]] | 1 | 70 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W >= x + r && 0 < x - r && H >= y + r && 0 < 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 && 0 <= x - r && H >= y + r && 0 <= y - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 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 | 85 |
#include <iostream>
using namespace std;
int main() {
int w, h, 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, 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, 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, 41, 15, 23, 0, 16, 12, 16, 17, 18]... | 1 | 78 |
#include <iostream>
int main() {
int W, H, x, y, r;
int left, right, top, under;
std::cin >> W >> H >> x >> y >> r;
left = x - r;
right = x + r;
top = y + r;
under = y - r;
if (left >= 0 && right <= W && top <= H, under >= 0) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << s... | #include <iostream>
int main() {
int W, H, x, y, r;
int left, right, top, under;
std::cin >> W >> H >> x >> y >> r;
left = x - r;
right = x + r;
top = y + r;
under = y - r;
if (left >= 0 && right <= W && top <= H && under >= 0) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" <<... | [["-", 8, 9, 0, 57, 15, 339, 51, 34, 0, 21], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 113 |
#include <iostream>
using namespace std;
int main() {
int W, H;
int 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;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H;
int 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;
}
return 0;
} | [["-", 51, 16, 31, 16, 31, 16, 31, 16, 17, 18], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 17, 19], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19]] | 1 | 94 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if (W >= (x + r) && 0 <= (x - r)) {
if (H >= (y + r) && 0 <= (y - 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;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if (W >= (x + r) && 0 <= (x - r) && H >= (y + r) && 0 <= (y - r)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [["-", 0, 14, 8, 9, 0, 57, 15, 339, 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, 339, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45]] | 1 | 105 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (y + r <= W && y - r >= 0)
if (x + r <= H && y - r >= 0) {
cout << "Yes" << endl;
return 0;
}
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 (y + r <= H && y - r >= 0)
if (x + r <= W && x - r >= 0) {
cout << "Yes" << endl;
return 0;
}
cout << "No" << endl;
return 0;
} | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 64, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 64, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["-", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 31, 22]] | 1 | 87 |
#include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
bool isInside = x - r >= 0 && y - r >= 0 && x + r <= w && y + r <= w;
cout << (isInside ? "Yes" : "No") << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
bool isInside = x - r >= 0 && y - r >= 0 && x + r <= w && y + r <= h;
cout << (isInside ? "Yes" : "No") << endl;
return 0;
} | [["-", 0, 43, 49, 50, 51, 16, 12, 16, 12, 22], ["+", 0, 43, 49, 50, 51, 16, 12, 16, 12, 22]] | 1 | 92 |
#include <stdio.h>
int main() {
int W, H, x, y, r;
int cx = 0, cy = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r > 0 && x + r < W)
cx++;
if (y - r > 0 && y + r < H)
cy++;
if (cx == 1 && cy == 1) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
int cx = 0, cy = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r >= 0 && x + r <= W)
cx++;
if (y - r >= 0 && y + r <= H)
cy++;
if (cx == 1 && cy == 1) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [["-", 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 <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 <= W - 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 (r <= x && x <= W - r && r <= y && y <= H - r)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 31, 22]] | 1 | 74 |
#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 < (y - r) && (y + r) < H) {
if (0 < (x - r) && (x + r) < W) {
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 (0 <= (y - r) && (y + r) <= H) {
if (0 <= (x - r) && (x + r) <= W) {
printf("Yes\n");
} else {
printf("No\n");
}
}
else {
printf("No\n");
}
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 | 115 |
#include <iostream>
using namespace std;
int main(void) {
int x, y, W, H, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || y - r < 0 || W < x + r || H < y + r) {
cout << "No" << endl;
} else {
cout << "yes" << endl;
}
}
| #include <iostream>
using namespace std;
int main(void) {
int x, y, W, H, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || y - r < 0 || W < x + r || H < y + r) {
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 | 83 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
int ans = 1;
if (x + r > H || x - r < 0) {
ans = 0;
}
if (y + r > W || y - r < 0) {
ans = 0;
}
if (ans == 1) {
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;
int ans = 1;
if (x + r > W || x - r < 0) {
ans = 0;
}
if (y + r > H || y - r < 0) {
ans = 0;
}
if (ans == 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 22]] | 1 | 107 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
int Px = x - r, Py = y - r;
int Ax = x + r, Ay = y + r;
if ((Px >= 0 && Py >= 0) && (Ax <= w && Ay <= 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;
int Px = x - r, Py = y - r;
int Ax = x + r, Ay = y + r;
if ((Px >= 0 && Py >= 0) && (Ax <= w && Ay <= h))
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 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 | 100 |
#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) {
if (r <= y && y <= h - r) {
cout << "Yes";
}
} else {
cout << "No";
}
cout << endl;
}
| #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";
} else {
cout << "No";
}
cout << endl;
}
| [["-", 0, 14, 8, 9, 0, 57, 15, 339, 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, 339, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 1 | 82 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W)
;
else if (y - r >= 0 && y + r <= H)
std::cout << "Yes";
else
std::cout << "No";
std::cout << 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";
else
std::cout << "No";
std::cout << std::endl;
return 0;
}
| [["-", 0, 14, 8, 9, 0, 57, 15, 339, 0, 25], ["-", 0, 14, 8, 9, 0, 57, 64, 1, 0, 35], ["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 8, 9, 0, 57, 75, 76, 0, 57, 0, 121], ["-", 0, 57, 75, 76, 0, 57, 15, 339, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98]] | 1 | 91 |
#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;
}
//論理演算より(不)等価演算が先に計算される
| [["-", 51, 16, 12, 23, 0, 16, 12, 16, 17, 20], ["+", 51, 16, 12, 23, 0, 16, 12, 16, 17, 19]] | 1 | 97 |
#include <bits/stdc++.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
bool b = x > r && x < w - r && y > r && y < h - r;
printf("%s\n", b ? "Yes" : "No");
return 0;
}
| #include <bits/stdc++.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
bool b = x >= r && x <= w - r && y >= r && y <= h - r;
printf("%s\n", b ? "Yes" : "No");
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], ["-", 49, 50, 51, 16, 31, 16, 12, 16, 17, 47], ["+", 49, 50, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 43, 49, 50, 51, 16, 12, 16, ... | 1 | 85 |
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W > x + r && H > y + r && 0 < x - r && 0 < y - r) {
cout << "Yes" << 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 (W >= x + r && H >= y + r && 0 <= x - r && 0 <= 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, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 1... | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PI;
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 <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PI;
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;
... | [["-", 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 | 102 |
#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 | 78 |
#include <iostream>
#include <string>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (W > x + r && H > y + r && y - r > 0 && x - r > 0) {
std::cout << "Yes" << '\n';
} else {
std::cout << "No" << '\n';
}
return 0;
}
| #include <iostream>
#include <string>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
// W > x + r True
// H > y + r True
// y - r > 0
// x - r > 0
if (W >= x + r && H >= y + r && y - r >= 0 && x - r >= 0) {
std::cout << "Yes" << '\n';
} else {
std::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, 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 | 93 |
#include <iostream>
using namespace std;
int main() {
int w = 0, h = 0, x = 0, y = 0, r = 0;
cin >> w >> h >> x >> y >> r;
// cout <<"長方形の座標:(" << w <<"," << h<< ")" << endl;
// cout <<"円の中心の座標:(" << x <<"," << y << ")";
// cout << ",円の半径:" << r << endl;
if (w >= r + x and h >= r + y and 0 < x - r and 0 < ... | #include <iostream>
using namespace std;
int main() {
int w = 0, h = 0, x = 0, y = 0, r = 0;
cin >> w >> h >> x >> y >> r;
/*cout <<"長方形の座標:(" << w <<"," << h<< ")" << endl;
cout <<"円の中心の座標:(" << x <<"," << y << ")";
cout << ",円の半径:" << r << endl;
*/
if (w >= r + x and h >= r + y and 0 <= x - r and 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 | 98 |
#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;
}
}
| #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;
}
}
| [["-", 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 <= W && x - r >= 0 && y + r <= H && y - r >= 0)
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 <= W && x - r >= 0 && y + r <= H && y - r >= 0)
cout << "Yes"
<< "\n";
else
cout << "No"
<< "\n";
}
| [["-", 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 | 82 |
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
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 <iomanip>
#include <iostream>
#include <string>
#include <vector>
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 | 96 |
#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) && (0 < x - r)) {
if ((y + r < H) && (0 < y - r)) {
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 ((x + r <= W) && (0 <= x - r)) {
if ((y + r <= H) && (0 <= y - r)) {
printf("Yes\n");
} else {
printf("No\n");
}
} else {
printf("No\n");
}
return 0;
}
| [["-", 15, 339, 51, 16, 31, 23, 0, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 19], ["-", 15, 339, 51, 16, 12, 23, 0, 16, 17, 18], ["+", 15, 339, 51, 16, 12, 23, 0, 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 && 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, 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 | 85 |
#include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r < W && x > r && y + 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 <= W && x >= r && y + r <= H && y >= 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, 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 | 83 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (y - r >= 0 && y + r <= H) {
if (x - r >= 0 && x + r <= W) {
cout << "Yes" << endl;
}
} else {
cout << "No" << endl;
}
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (y - r >= 0 && y + r <= H && x - r >= 0 && x + r <= W) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 14, 8, 9, 0, 57, 15, 339, 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, 339, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 98], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 1 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
bool isIncluded = true;
if (x - r < 0 || x + r > w) {
isIncluded = false;
} else if (y - r < 0 || y + r > 0) {
}
if (isIncluded) {
cout << "Yes";
} else {
cout << "No";
}
cout << ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
bool isIncluded = true;
if (x - r < 0 || x + r > w) {
isIncluded = false;
} else if (y - r < 0 || y + r > h) {
isIncluded = false;
}
if (isIncluded) {
cout << "Yes";
} else {
cout... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 147], ["+", 75, 76, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 107 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int W, H;
cin >> W >> H;
int x, y, r;
cin >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
cout << "yes" << endl;
else
cout << "no" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int W, H;
cin >> W >> H;
int x, y, r;
cin >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [["-", 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 | 81 |
#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 && (y - r) > 0 && (x + r) < W && (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 && (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 | 93 |
#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;
}*/
if (x - r >= 0 || x + r <= W || y - r >= 0 || y + r <= H) {
cout <... | #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;
}*/
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) {
cout <... | [["-", 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 | 86 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int w, h, x, y, r;
string result;
cin >> w >> h >> x >> y >> r;
if ((x + r) < w && (y + r) < h && (x - r) >= 0 && (y - r) >= 0) {
result = "Yes";
} else {
result = "No";
}
cout << result << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int w, h, x, y, r;
string result;
cin >> w >> h >> x >> y >> r;
if ((x + r) <= w && (y + r) <= h && (x - r) >= 0 && (y - r) >= 0) {
result = "Yes";
} else {
result = "No";
}
cout << result << 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 | 95 |
#include <bits/stdc++.h>
using namespace std;
int W, H, x, y, r;
int main() {
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");
}
}
| #include <bits/stdc++.h>
using namespace std;
int W, H, x, y, r;
int main() {
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");
}
}
| [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 83 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (W < x + r || H < y + r || 0 < x - r || 0 < y - r) {
std::cout << "No" << std::endl;
} else {
std::cout << "Yes" << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (W < x + r || H < y + r || 0 > x - r || 0 > y - r) {
std::cout << "No" << std::endl;
} else {
std::cout << "Yes" << std::endl;
}
return 0;
}
| [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 47], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 91 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W > 2 * r && H > 2 * r) {
if ((0 < x - r && x + r < W) && (0 < y - r && y + r < H)) {
cout << "Yes\n";
} else {
cout << "No\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 (W >= 2 * r && H >= 2 * r) {
if ((0 <= x - r && x + r <= W) && (0 <= y - r && y + r <= H)) {
cout << "Yes\n";
} else {
cout << "No\n";
}
} else {
cout << "No\n";
}
return ... | [["-", 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, 47], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["-", 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... | 1 | 113 |
#include <stdio.h>
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\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 <= x && x <= W - r && r <= y && y <= H - r) {
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 | 87 |
#include <iostream>
using namespace std;
#include <math.h>
int main() {
int W, H, x, y, r = 0;
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;
#include <math.h>
int main() {
int W, H, x, y, r = 0;
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, 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 | 89 |
#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;
}
| [["-", 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 | 81 |
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (h >= x + r && w >= 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;
}
| [["-", 51, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["+", 51, 16, 31, 16, 31, 16, 31, 16, 31, 22], ["-", 51, 16, 31, 16, 31, 16, 12, 16, 31, 22], ["+", 51, 16, 31, 16, 31, 16, 12, 16, 31, 22]] | 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) {
cout << "No" << endl;
return 0;
}
if (x - r > 0 && x + r < W) {
if (y - r < 0 || y + r > H) {
cout << "No" << endl;
return 0;
} else {
cout <<... | #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;
return 0;
}
if (x - r >= 0 && x + r <= W) {
if (y - r < 0 || y + r > H) {
cout << "No" << endl;
return 0;
} else {
cout ... | [["-", 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 | 119 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W > x + r && x - r > 0 && H > y + r && 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 (W >= x + r && x - r >= 0 && H >= y + r && y - 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 | 85 |
#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;
}
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 <= y && x + r <= W && y + r <= H) {
cout << "Yes" << endl;
} else
cout << "No" << endl;
return 0;
}
| [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 79 |
#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 && 0 <= x + r && 0 <= 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 && 0 <= x - r && 0 <= y - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [["-", 51, 16, 31, 16, 12, 16, 12, 16, 17, 72], ["+", 51, 16, 31, 16, 12, 16, 12, 16, 17, 33], ["-", 15, 339, 51, 16, 12, 16, 12, 16, 17, 72], ["+", 15, 339, 51, 16, 12, 16, 12, 16, 17, 33]] | 1 | 85 |
#include <cstdio>
int main() {
//入力
int W, H, x, y, r;
std::scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (0 < x - r && x + r < W && 0 < y - r && y + r < H) {
std::printf("Yes");
} else {
std::printf("No");
}
std::printf("\n");
return 0;
}
| #include <cstdio>
int main() {
//入力
int W, H, x, y, r;
std::scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) {
std::printf("Yes");
} else {
std::printf("No");
}
std::printf("\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 | 105 |
#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;
}
| [["-", 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 | 85 |
#include <bits/stdc++.h>
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 && y < r)
puts("Yes");
else
puts("No");
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 <= w && y + r <= h && x >= r && y >= r)
puts("Yes");
else
puts("No");
return 0;
}
| [["-", 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, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20]] | 1 | 75 |
#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) && (x + 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;
}
| [["-", 51, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 51, 16, 12, 16, 31, 23, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 89 |
#include <algorithm>
#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 << "No" << endl;
else
cout << "Yes" << 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 (x - r < 0 || y - r < 0 || x + r > W || y + r > H)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 47]] | 1 | 83 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
std::cout << (x - r > 0 && x + r < W && y - r > 0 && y + r < H ? "Yes" : "No")
<< std::endl;
return 0;
}
| #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
std::cout << (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H ? "Yes"
: "No")
<< std::endl;
return 0;
}
| [["-", 15, 16, 31, 16, 31, 16, 31, 16, 17, 47], ["+", 15, 16, 31, 16, 31, 16, 31, 16, 17, 20], ["-", 15, 16, 31, 16, 31, 16, 12, 16, 17, 18], ["+", 15, 16, 31, 16, 31, 16, 12, 16, 17, 19], ["-", 0, 41, 15, 16, 31, 16, 12, 16, 17, 47], ["+", 0, 41, 15, 16, 31, 16, 12, 16, 17, 20], ["-", 12, 23, 0, 41, 15, 16, 12, 16, 17... | 1 | 78 |
#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, 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 | 82 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (y + r <= H && y - r >= 0 && x + r <= W && x - r >= W) {
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 (y + r <= H && y - r >= 0 && x + r <= W && x - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 82 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r > x) {
cout << "No" << endl;
}
if (r > y) {
cout << "No" << endl;
}
if (W < x + r) {
cout << "No" << endl;
}
if (H < y + r) {
cout << "No" << endl;
} else {
cout << "Yes"... | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r > x) {
cout << "No" << endl;
} else if (r > y) {
cout << "No" << endl;
} else if (W < x + r) {
cout << "No" << endl;
} else if (H < y + r) {
cout << "No" << endl;
} else {
cout... | [["+", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 1 | 114 |
#include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if ((x >= r) && (y >= r) && ((x + r) <= W) && ((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) && (y >= r) && ((x + r) <= W) && ((y + r) <= H)) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
}
| [["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 99 |
#include <stdio.h>
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\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 <= 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 | 87 |
#include <iostream>
using namespace std;
int main()
{
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 < x - r && 0 < 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 (0 <= x - r && 0 <= y - r && 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 | 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 && y + r <= H && 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 <= W && x - r >= 0 && y + r <= H && y - r >= 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 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) {
cout << "No" << endl;
}
// if((x - r) >= 0 && (x + r) <= W){
// cout << "Yes" << endl;
// }
else {
if ((y + r) > H || (y - r) <= 0) {
cout << "No... | #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((x - r) >= 0 && (x + r) <= W){
// cout << "Yes" << endl;
// }
else {
if ((y + r) > H || (y - r) < 0) {
cout << "No"... | [["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 18]] | 1 | 111 |
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
cout << ((x - r >= 0 && y - r >= 0 && x - r <= W && y - r <= H) ? "Yes"
: "No")
<< endl;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
cout << ((x - r >= 0 && y - r >= 0 && x + r <= W && y + r <= H) ? "Yes"
: "No")
<< endl;
}
| [["-", 0, 16, 31, 16, 12, 16, 31, 16, 17, 33], ["+", 0, 16, 31, 16, 12, 16, 31, 16, 17, 72], ["-", 15, 23, 0, 16, 12, 16, 31, 16, 17, 33], ["+", 15, 23, 0, 16, 12, 16, 31, 16, 17, 72]] | 1 | 75 |
w,h,x,y,r = gets.split.map &:to_i
puts (r < x && x < (w-r) && r < y && y < (h-r) ? "Yes" : "No")
| w,h,x,y,r = gets.split.map &:to_i
puts (r <= x && x <= (w-r) && r <= y && y <= (h-r) ? "Yes" : "No")
| [["-", 15, 738, 31, 738, 31, 738, 31, 738, 17, 18], ["+", 15, 738, 31, 738, 31, 738, 31, 738, 17, 19], ["-", 15, 738, 31, 738, 31, 738, 12, 738, 17, 18], ["+", 15, 738, 31, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 754, 15, 738, 31, 738, 12, 738, 17, 18], ["+", 0, 754, 15, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 739, 0... | 4 | 51 |
b = gets()
a = b.split
W = a[0].to_i
H = a[1].to_i
x = a[2].to_i
y = a[3].to_i
r = a[4].to_i
if 0 <= x - r && x + r <= W && 0 <= y - r && y + r < H
puts "Yes"
else
puts "No"
end
| b = gets()
a = b.split
W = a[0].to_i
H = a[1].to_i
x = a[2].to_i
y = a[3].to_i
r = a[4].to_i
if 0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H
puts "Yes"
else
puts "No"
end
| [["-", 0, 493, 0, 121, 15, 738, 12, 738, 17, 18], ["+", 0, 493, 0, 121, 15, 738, 12, 738, 17, 19]] | 4 | 84 |
W,H,x,y,r = gets.split.map &:to_i
puts (r<=x && r<=y && x<=w-r && y<=h-r) ? "Yes" : "No"
| W,H,x,y,r = gets.split.map(&:to_i)
puts (r<=x && r<=y && x<=W-r && y<=H-r) ? "Yes" : "No"
| [["+", 0, 493, 0, 662, 12, 652, 3, 4, 0, 24], ["+", 0, 493, 0, 662, 12, 652, 3, 4, 0, 25], ["-", 0, 738, 31, 738, 12, 738, 12, 738, 31, 22], ["+", 0, 738, 31, 738, 12, 738, 12, 738, 31, 743], ["-", 15, 739, 0, 738, 12, 738, 12, 738, 31, 22], ["+", 15, 739, 0, 738, 12, 738, 12, 738, 31, 743]] | 4 | 47 |
w,h,x,y,r=gets.split.map(&:to_i)
puts (r<=x && r<=y && x<=w-r && y<=h-r)? "yes" : "no"
| w,h,x,y,r = gets.split.map(&:to_i)
puts (r<=x && r<=y && x<=w-r && y<=h-r) ? "Yes" : "No"
| [["-", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 64, 557, 0, 6], ["-", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6], ["+", 0, 652, 3, 4, 0, 754, 75, 557, 0, 6]] | 4 | 49 |
w, h, x, y, r = gets.split.map(&:to_i)
if x - r > 0 && y - r > 0 && x + r < w && y + r < h
puts "Yes"
else
puts "No"
end | w, h, x, y, r = gets.split.map(&:to_i)
if x - r >= 0 && y - r >= 0 && x + r <= w && y + r <= h
puts "Yes"
else
puts "No"
end | [["-", 15, 738, 31, 738, 31, 738, 31, 738, 17, 47], ["+", 15, 738, 31, 738, 31, 738, 31, 738, 17, 20], ["-", 15, 738, 31, 738, 31, 738, 12, 738, 17, 47], ["+", 15, 738, 31, 738, 31, 738, 12, 738, 17, 20], ["-", 0, 121, 15, 738, 31, 738, 12, 738, 17, 18], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 493, 0... | 4 | 53 |
w, h, x, y, r = gets.chomp.split(" ").map(&:to_i)
if x - r > 0 && y + r < h && x + r < w && y - r > 0
print "Yes\n"
else
print "No\n"
end | w, h, x, y, r = gets.chomp.split(" ").map(&:to_i)
if x - r >= 0 && y + r <= h && x + r <= w && y - r >= 0
print "Yes\n"
else
print "No\n"
end | [["-", 15, 738, 31, 738, 31, 738, 31, 738, 17, 47], ["+", 15, 738, 31, 738, 31, 738, 31, 738, 17, 20], ["-", 15, 738, 31, 738, 31, 738, 12, 738, 17, 18], ["+", 15, 738, 31, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 121, 15, 738, 31, 738, 12, 738, 17, 18], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 493, 0... | 4 | 62 |
w,h,x,y,r = gets.chomp.split.map(&:to_i).map(&:abs)
if (x >= r && x <= w-r ) && (y >= r && y <= h-r) then
puts "Yes"
else
puts "No"
end | w,h,x,y,r = gets.chomp.split.map(&:to_i)
if (x >= r && x <= w-r ) && (y >= r && y <= h-r) then
puts "Yes"
else
puts "No"
end | [["-", 36, 36, 0, 493, 0, 662, 12, 652, 17, 131], ["-", 36, 36, 0, 493, 0, 662, 12, 652, 735, 22], ["-", 0, 493, 0, 662, 12, 652, 3, 4, 0, 24], ["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 67], ["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753], ["-", 0, 493, 0, 662, 12, 652, 3, 4, 0, 25]] | 4 | 62 |
w,h,x,y,r = gets.split.map(&:to_i)
xmax = w - r
ymax = h - r
puts r<x&&x<xmax&&r<y&&y<ymax ? :Yes : :No # x軸方向[r<x&&x<(w-r)] y軸方向[r<y&&y<(h-r)] | w,h,x,y,r = gets.split.map(&:to_i)
xmax = w - r
ymax = h - r
puts r<=x&&x<=xmax&&r<=y&&y<=ymax ? :Yes : :No # x軸方向[r<x&&x<(w-r)] y軸方向[r<y&&y<(h-r)] | [["-", 15, 738, 31, 738, 31, 738, 31, 738, 17, 18], ["+", 15, 738, 31, 738, 31, 738, 31, 738, 17, 19], ["-", 15, 738, 31, 738, 31, 738, 12, 738, 17, 18], ["+", 15, 738, 31, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 754, 15, 738, 31, 738, 12, 738, 17, 18], ["+", 0, 754, 15, 738, 31, 738, 12, 738, 17, 19], ["-", 3, 4, 0, ... | 4 | 50 |
w, h, x, y, r = ARGF.gets.split.map(&:to_i)
if (r < x) && (x < (w - r)) && r < y && (y < (h - r))
puts "Yes"
else
puts "No"
end | w, h, x, y, r = ARGF.gets.split.map(&:to_i)
if (r <= x) && (x <= (w - r)) && r <= y && (y <= (h - r))
puts "Yes"
else
puts "No"
end | [["-", 31, 738, 31, 738, 31, 739, 0, 738, 17, 18], ["+", 31, 738, 31, 738, 31, 739, 0, 738, 17, 19], ["-", 31, 738, 31, 738, 12, 739, 0, 738, 17, 18], ["+", 31, 738, 31, 738, 12, 739, 0, 738, 17, 19], ["-", 0, 121, 15, 738, 31, 738, 12, 738, 17, 18], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 121, 15, 7... | 4 | 61 |
w, h, x, y, r = gets.split.map(&:to_i)
if x < r || w < x + r || y < r || y + r < h
puts "No"
else
puts "Yes"
end | w, h, x, y, r = gets.split.map(&:to_i)
if x < r || w < x + r || y < r || h < y + r
puts "No"
else
puts "Yes"
end | [["+", 0, 493, 0, 121, 15, 738, 12, 738, 31, 22], ["+", 0, 493, 0, 121, 15, 738, 12, 738, 17, 18], ["-", 0, 493, 0, 121, 15, 738, 12, 738, 17, 18], ["-", 0, 493, 0, 121, 15, 738, 12, 738, 12, 22]] | 4 | 49 |
(W,H,x,y,r)=gets.split().map! &:to_i
puts (0 < (x-r) && W > (x+r) && 0 < (y-r) && H > (y+r)) ? "Yes" : "No" | (W,H,x,y,r)=gets.split().map! &:to_i
puts (0 <= (x-r) && W >= (x+r) && 0 <= (y-r) && H >= (y+r)) ? "Yes" : "No" | [["-", 0, 738, 31, 738, 31, 738, 31, 738, 17, 18], ["+", 0, 738, 31, 738, 31, 738, 31, 738, 17, 19], ["-", 0, 738, 31, 738, 31, 738, 12, 738, 17, 47], ["+", 0, 738, 31, 738, 31, 738, 12, 738, 17, 20], ["-", 15, 739, 0, 738, 31, 738, 12, 738, 17, 18], ["+", 15, 739, 0, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 754, 15, 7... | 4 | 63 |
def include?(w, h, x, y, r)
0 < x - r && 0 < y - r && x + r < w && y + r < h
end
puts include?(*gets.split.map(&:to_i)) ? 'Yes' : 'No' | def include?(w, h, x, y, r)
0 <= x - r && 0 <= y - r && x + r <= w && y + r <= h
end
puts include?(*gets.split.map(&:to_i)) ? 'Yes' : 'No' | [["-", 0, 738, 31, 738, 31, 738, 31, 738, 17, 18], ["+", 0, 738, 31, 738, 31, 738, 31, 738, 17, 19], ["-", 0, 738, 31, 738, 31, 738, 12, 738, 17, 18], ["+", 0, 738, 31, 738, 31, 738, 12, 738, 17, 19], ["-", 8, 736, 0, 738, 31, 738, 12, 738, 17, 18], ["+", 8, 736, 0, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 735, 8, 736,... | 4 | 59 |
input = gets().split(" ")
W, H, x, y, r = input[0].to_i, input[1].to_i, input[2].to_i, input[3].to_i.to_i, input[4].to_i
if x + r <= 0 && x - r >= 0 && y + r <= 0 && y - r >= 0
puts "Yes"
else
puts "No"
end | input = gets().split(" ")
W, H, x, y, r = input[0].to_i, input[1].to_i, input[2].to_i, input[3].to_i.to_i, input[4].to_i
if x + r <= W && x - r >= 0 && y + r <= H && y - r >= 0
puts "Yes"
else
puts "No"
end | [["-", 15, 738, 31, 738, 31, 738, 31, 738, 12, 612], ["+", 15, 738, 31, 738, 31, 738, 31, 738, 12, 743], ["-", 0, 121, 15, 738, 31, 738, 12, 738, 12, 612], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 12, 743]] | 4 | 92 |
w, h, x, y, r = gets.split.map &:to_i
puts x.between?(r, w-r) && y.between?(r, y-r) ? :Yes : :No | w, h, x, y, r = gets.split.map &:to_i
puts x.between?(r, w-r) && y.between?(r, h-r) ? :Yes : :No | [["-", 15, 738, 12, 652, 3, 4, 0, 738, 31, 22], ["+", 15, 738, 12, 652, 3, 4, 0, 738, 31, 22]] | 4 | 43 |
W,H,x,y,r = gets.split.map(&:to_i)
if 0<=x-r && 0<=y-r && x+r<=W && y+r<=H then
puts Yes
else
puts No
end | W, H, x, y, r = gets.split.map(&:to_i)
if 0<=x-r && 0<=y-r && x+r<=W && y+r<=H then
puts "Yes"
else
puts "No"
end | [["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 62], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 62]] | 4 | 50 |
w,h,x,y,r = gets.split(" ").map(&:to_i)
b = [x-r, y-r, w-x-r, h-y-r]
sum = 0
4.times do |i|
sum = b[i].abs - b[i]
end
r = ["No", "Yes"]
puts r[sum ** -sum] | w,h,x,y,r = gets.split(" ").map(&:to_i)
b = [x-r, y-r, w-x-r, h-y-r]
sum = 0
4.times do |i|
sum += b[i].abs - b[i]
end
r = ["No", "Yes"]
puts r[sum ** -sum] | [["-", 0, 652, 196, 737, 8, 736, 0, 662, 0, 32], ["+", 0, 652, 196, 737, 8, 736, 0, 755, 17, 107]] | 4 | 90 |
W,H,x,y,r = gets.chomp.split.map(&:to_i)
if (x-r>0) && (x+r<W) then
if (y-r>0) && (y+r<H) then
puts "Yes"
exit
end
end
puts "No" | W,H,x,y,r = gets.chomp.split.map(&:to_i)
if (x-r>=0) && (x+r<=W) then
if (y-r>=0) && (y+r<=H) then
puts "Yes"
exit
end
end
puts "No" | [["-", 0, 121, 15, 738, 31, 739, 0, 738, 17, 47], ["+", 0, 121, 15, 738, 31, 739, 0, 738, 17, 20], ["-", 0, 121, 15, 738, 12, 739, 0, 738, 17, 18], ["+", 0, 121, 15, 738, 12, 739, 0, 738, 17, 19]] | 4 | 66 |
w,h,x,y,r = gets.split.map(&:to_i)
if r<=x<=w - r&&r<=y<= h - r
puts "Yes"
else
puts "No"
end | w,h,x,y,r = gets.split.map(&:to_i)
if r<=x&&x<=w - r&&r<=y&& y<= h - r
puts "Yes"
else
puts "No"
end | [["+", 0, 121, 15, 738, 31, 738, 31, 738, 17, 98], ["+", 15, 738, 31, 738, 31, 738, 12, 738, 31, 22], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 12, 22], ["+", 36, 36, 0, 493, 0, 121, 15, 738, 17, 98]] | 4 | 45 |
puts lambda{|a|if a[2]-a[4]>=0&&a[3]-a[4]>=0&&a[2]+a[4]<=a[0]&&a[3]+a[4]<=a[1]then"YES"else"NO"end}.call(gets.split.map(&:to_i)) | puts lambda{|a|if a[2]-a[4]>=0&&a[3]-a[4]>=0&&a[2]+a[4]<=a[0]&&a[3]+a[4]<=a[1]then"Yes"else"No"end}.call(gets.split.map(&:to_i)) | [["-", 8, 734, 0, 121, 64, 749, 0, 557, 0, 6], ["+", 8, 734, 0, 121, 64, 749, 0, 557, 0, 6], ["-", 8, 734, 0, 121, 75, 95, 0, 557, 0, 6], ["+", 8, 734, 0, 121, 75, 95, 0, 557, 0, 6]] | 4 | 83 |
is = gets.chomp!.split(" ")
is.map!(&:to_i)
w = is[0]
h = is[1]
x = is[2]
y = is[3]
r = is[4]
if (((x+r)>w) || ((x-r)<0) || ((y+r)>h) || ((y-r)<0)) then
puts "no"
else
puts "yes"
end | is = gets.chomp!.split(" ")
is.map!(&:to_i)
w = is[0]
h = is[1]
x = is[2]
y = is[3]
r = is[4]
if (((x+r)>w) || ((x-r)<0) || ((y+r)>h) || ((y-r)<0)) then
puts "No"
else
puts "Yes"
end | [["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 102 |
info = [0.0]
a= gets
info = a.split()
W = info[0].to_i
H = info[1].to_i
x = info[2].to_i
y = info[3].to_i
r = info[4].to_i
if (x-r)>0 && (y-r)>0 && (x+r)<W && (y+r)<H then
print "Yes\n"
else
print "No\n"
end | info = [0.0]
a= gets
info = a.split()
W = info[0].to_i
H = info[1].to_i
x = info[2].to_i
y = info[3].to_i
r = info[4].to_i
if (x-r) >=0 && (y-r) >=0 && (x+r) <= W && (y+r) <= H then
print "Yes\n"
else
print "No\n"
end | [["-", 15, 738, 31, 738, 31, 738, 31, 738, 17, 47], ["+", 15, 738, 31, 738, 31, 738, 31, 738, 17, 20], ["-", 15, 738, 31, 738, 31, 738, 12, 738, 17, 47], ["+", 15, 738, 31, 738, 31, 738, 12, 738, 17, 20], ["-", 0, 121, 15, 738, 31, 738, 12, 738, 17, 18], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 493, 0... | 4 | 100 |
is = gets.chomp!.split(" ")
is.map!(&:to_i)
w = is[0]
h = is[1]
x = is[2]
y = is[3]
r = is[4]
if ((x+r) > w)||((x-r) < 0)||((y+r) > h)||((y-r)<0) then
puts "Yes"
else
puts "No"
end | is = gets.chomp!.split(" ")
is.map!(&:to_i)
w = is[0]
h = is[1]
x = is[2]
y = is[3]
r = is[4]
if ((x+r) > w)||((x-r) < 0)||((y+r) > h)||((y-r)<0) then
puts "No"
else
puts "Yes"
end | [["-", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 64, 749, 0, 652, 3, 4, 0, 557, 0, 6], ["-", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6], ["+", 75, 95, 0, 652, 3, 4, 0, 557, 0, 6]] | 4 | 100 |
W,H,x,y,r = gets.split
if (x.to_i - r.to_i) > 0 && (x.to_i + r.to_i) < W.to_i
if(y.to_i - r.to_i) > 0 && (y.to_i + r.to_i) < H.to_i
puts "Yes"
else puts "No"
end
else puts "No"
end | W,H,x,y,r = gets.split
if (x.to_i - r.to_i) >= 0 && (x.to_i + r.to_i) <= W.to_i
if(y.to_i - r.to_i) >= 0 && (y.to_i + r.to_i) <= H.to_i
puts "Yes"
else puts "No"
end
else puts "No"
end | [["-", 0, 493, 0, 121, 15, 738, 31, 738, 17, 47], ["+", 0, 493, 0, 121, 15, 738, 31, 738, 17, 20], ["-", 0, 493, 0, 121, 15, 738, 12, 738, 17, 18], ["+", 0, 493, 0, 121, 15, 738, 12, 738, 17, 19], ["-", 64, 749, 0, 121, 15, 738, 31, 738, 17, 47], ["+", 64, 749, 0, 121, 15, 738, 31, 738, 17, 20], ["-", 64, 749, 0, 121, ... | 4 | 81 |
a = gets.split(" ").map{|x| x.to_i}
W=a[0]
H=a[1]
x=a[2]
y=a[3]
r=a[4]
if r < x and r < y and x+r < W and y+r < H
print "Yes\n"
else
print "No\n"
end | a = gets.split(" ").map{|x| x.to_i}
W=a[0]
H=a[1]
x=a[2]
y=a[3]
r=a[4]
if r <= x and r <= y and x+r <= W and y+r <= H
print "Yes\n"
else
print "No\n"
end | [["-", 15, 738, 31, 738, 31, 738, 31, 738, 17, 18], ["+", 15, 738, 31, 738, 31, 738, 31, 738, 17, 19], ["-", 15, 738, 31, 738, 31, 738, 12, 738, 17, 18], ["+", 15, 738, 31, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 121, 15, 738, 31, 738, 12, 738, 17, 18], ["+", 0, 121, 15, 738, 31, 738, 12, 738, 17, 19], ["-", 0, 493, 0... | 4 | 82 |
w,h,x,y,r = gets.split(' ').collect{|n|n.to_i}
if (x+r < w) && (y+r < h) && (x-r > 0) && (y-r > 0)
puts("Yes")
else
puts("No")
end | w,h,x,y,r = gets.split(' ').collect{|n|n.to_i}
if (x+r <= w) && (y+r <= h) && (x-r >= 0) && (y-r >= 0)
puts("Yes")
else
puts("No")
end | [["-", 31, 738, 31, 738, 31, 739, 0, 738, 17, 18], ["+", 31, 738, 31, 738, 31, 739, 0, 738, 17, 19], ["-", 31, 738, 31, 738, 12, 739, 0, 738, 17, 18], ["+", 31, 738, 31, 738, 12, 739, 0, 738, 17, 19], ["-", 15, 738, 31, 738, 12, 739, 0, 738, 17, 47], ["+", 15, 738, 31, 738, 12, 739, 0, 738, 17, 20], ["-", 0, 121, 15, 7... | 4 | 74 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.