problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02394 | #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;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,190 | 170,191 | u325570381 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,195 | 170,196 | u951250295 | cpp |
p02394 | #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... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,197 | 170,198 | u105694406 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,201 | 170,202 | u063871479 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,204 | 170,205 | u063871479 | cpp |
p02394 |
#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;
} | [
"expression.operation.binary.add"
] | 170,207 | 170,208 | u890344471 | cpp |
p02394 | #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);
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,215 | 170,216 | u115770305 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"io.output.change",
"expression.off_by_one"
] | 170,219 | 170,220 | u718118814 | cpp |
p02394 | #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 ... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 170,221 | 170,222 | u956279155 | cpp |
p02394 | #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;
} | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 170,223 | 170,224 | u889921855 | cpp |
p02394 | #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;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,225 | 170,224 | u889921855 | cpp |
p02394 | #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 <= W) {
cout << "Yes" << endl;
} else if ((x - r < 0 || x + r > W) && y - r < 0 || y + r > W) {
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;
} | [
"identifier.change",
"control_flow.branch.if.condition.change",
"misc.opposites"
] | 170,226 | 170,227 | u553400257 | cpp |
p02394 | #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;
} | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 170,228 | 170,227 | u553400257 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"assignment.value.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"expression.off_by_one"
] | 170,230 | 170,231 | u182180701 | cpp |
p02394 | #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 0;
... | #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... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"assignment.value.change",
"expression.operation.binary.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,232 | 170,233 | u327125861 | cpp |
p02394 | #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... | [
"assignment.add"
] | 170,234 | 170,233 | u327125861 | cpp |
p02394 | #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;
} | [
"control_flow.branch.if.condition.change"
] | 170,236 | 170,237 | u185951723 | cpp |
p02394 | #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";
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 170,238 | 170,239 | u096682072 | cpp |
p02394 | #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";
} | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 170,240 | 170,241 | u064835577 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,243 | 170,244 | u960548659 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"io.output.change"
] | 170,245 | 170,246 | u178521091 | cpp |
p02394 | #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;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 170,251 | 170,252 | u117098586 | cpp |
p02394 | #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;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,255 | 170,256 | u112247126 | cpp |
p02394 | #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";
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,257 | 170,258 | u233012353 | cpp |
p02394 | #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 <= H) & (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");
}
} | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"identifier.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 170,259 | 170,260 | u516781876 | cpp |
p02394 | #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");
}
} | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"identifier.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 170,261 | 170,260 | u516781876 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,271 | 170,272 | u333223739 | cpp |
p02394 | #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... | [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 170,273 | 170,274 | u569960318 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,284 | 170,285 | u684531089 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,288 | 170,289 | u872907517 | cpp |
p02394 | #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;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,290 | 170,291 | u068682075 | cpp |
p02394 | #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;
} | [
"control_flow.branch.if.condition.change"
] | 170,293 | 170,294 | u609578509 | cpp |
p02394 | #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;
} | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 170,298 | 170,299 | u604920879 | cpp |
p02394 | #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 << ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,302 | 170,303 | u837073074 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,304 | 170,305 | u782455263 | cpp |
p02394 | #include <iostream>
using namespace std;
#define FALSE 1
#define TRUE 0
int main() {
int w, h, x, y, r, result;
result = 0;
cin >> w >> h >> x >> y >> r;
if ((x - r < 0) && (w - x < r))
result = FALSE;
if ((y - r < 0) && (h - y < r))
result = FALSE;
if (result == FALSE)
cout << "No" << end... | #include <iostream>
using namespace std;
#define FALSE 1
#define TRUE 0
int main() {
int w, h, x, y, r, result;
result = 0;
cin >> w >> h >> x >> y >> r;
if ((x - r < 0) || (w - x < r))
result = FALSE;
if ((y - r < 0) || (h - y < r))
result = FALSE;
if (result == FALSE)
cout << "No" << end... | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 170,306 | 170,307 | u504247927 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,311 | 170,312 | u400978996 | cpp |
p02394 | #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;
}
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,315 | 170,314 | u226000745 | cpp |
p02394 | #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;
}
} | [
"expression.operation.binary.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,320 | 170,321 | u343748576 | cpp |
p02394 | #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;
}
} | [
"expression.operation.binary.remove"
] | 170,322 | 170,321 | u343748576 | cpp |
p02394 | #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... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,323 | 170,324 | u135716293 | cpp |
p02394 | #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);
} | [
"identifier.change",
"control_flow.branch.if.condition.change",
"call.function.change",
"io.output.change"
] | 170,325 | 170,326 | u139518821 | cpp |
p02394 | #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)
puts("Yes");
else
puts("No");
} else
puts("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);
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,327 | 170,326 | u139518821 | cpp |
p02394 | #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;
}
| [
"expression.operation.binary.add"
] | 170,331 | 170,332 | u150984829 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,333 | 170,334 | u327869146 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"io.output.change"
] | 170,336 | 170,337 | u082125213 | cpp |
p02394 | #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" << std::end... | #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" <<... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,338 | 170,339 | u806323433 | cpp |
p02394 | #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" <<... | [
"control_flow.branch.if.condition.change"
] | 170,340 | 170,339 | u806323433 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,341 | 170,342 | u110740299 | cpp |
p02394 | #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;
} | [
"control_flow.branch.if.condition.change"
] | 170,343 | 170,344 | u273450632 | cpp |
p02394 | #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;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,345 | 170,346 | u057722383 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"expression.operation.binary.change"
] | 170,348 | 170,349 | u912124184 | cpp |
p02394 | #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;
} | [
"identifier.change",
"expression.operation.binary.change"
] | 170,350 | 170,349 | u912124184 | cpp |
p02394 | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,351 | 170,352 | u453135215 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,353 | 170,354 | u726779212 | cpp |
p02394 | #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;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,355 | 170,354 | u726779212 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,356 | 170,357 | u949566118 | cpp |
p02394 | #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;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,358 | 170,359 | u355269727 | cpp |
p02394 | #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 < W) {
ans = 0;
}
if (y + r > H || y - r < H) {
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;
}
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"identifier.replace.remove",
"literal.replace.add"
] | 170,362 | 170,363 | u261541966 | cpp |
p02394 | #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;
}
}
| #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;
}
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,364 | 170,363 | u261541966 | cpp |
p02394 | #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;
}
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,365 | 170,363 | u261541966 | cpp |
p02394 | #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;
}
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,366 | 170,363 | u261541966 | cpp |
p02394 | #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;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,368 | 170,369 | u978514606 | cpp |
p02394 | #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;
}
| [
"control_flow.branch.if.condition.change"
] | 170,370 | 170,371 | u721602113 | cpp |
p02394 | #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;
}
| [
"control_flow.branch.if.condition.change"
] | 170,372 | 170,371 | u721602113 | cpp |
p02394 | #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;
}
| [
"control_flow.branch.if.condition.change"
] | 170,375 | 170,376 | u335542868 | cpp |
p02394 | #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) {
if (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;
}
//論理演算より(不)等価演算が先に計算される
| [
"control_flow.branch.if.condition.change",
"misc.opposites",
"expression.operator.compare.change"
] | 170,377 | 170,378 | u543857183 | cpp |
p02394 | #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;
}
//論理演算より(不)等価演算が先に計算される
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,379 | 170,378 | u543857183 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"expression.operation.binary.change"
] | 170,380 | 170,381 | u664421124 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,386 | 170,387 | u063955438 | cpp |
p02394 | #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;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,388 | 170,389 | u146806866 | cpp |
p02394 | #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';
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,394 | 170,395 | u394390261 | cpp |
p02394 | #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 <= ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,396 | 170,397 | u718267775 | cpp |
p02394 | #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;
}
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,398 | 170,399 | u474767018 | cpp |
p02394 | #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 >= 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 <= W && y + r <= H && x - r >= 0 && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.branch.if.condition.change"
] | 170,400 | 170,401 | u804482668 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && y + r <= H && x - r > 0 && y - r > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,402 | 170,401 | u804482668 | cpp |
p02394 | #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";
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,403 | 170,404 | u211771962 | cpp |
p02394 | #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;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,409 | 170,410 | u412537960 | cpp |
p02394 | #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 < W && y - r > 0 && x - 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 (y + r <= H && x + r <= W && y - r >= 0 && x - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,415 | 170,416 | u855668326 | cpp |
p02394 | // itp1_topic2_b
#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;
return 0;
}
| // itp1_topic2_b
#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;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,421 | 170,422 | u776402923 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,423 | 170,424 | u879736637 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,425 | 170,426 | u950745506 | cpp |
p02394 | #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;
}
}
| [
"control_flow.branch.if.condition.change"
] | 170,428 | 170,429 | u075006557 | cpp |
p02394 | #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... | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change",
"assignment.add"
] | 170,430 | 170,431 | u803657704 | cpp |
p02394 | #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;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,434 | 170,435 | u255957323 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,437 | 170,438 | u861893636 | cpp |
p02394 | #include <bits/stdc++.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r > 0 && x + r < W && y - r > 0 && y + r < H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,439 | 170,440 | u117673497 | cpp |
p02394 | #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)
if (r + x <= W, r + y <= 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 && r + x <= W && r + y <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"control_flow.branch.if.condition.change"
] | 170,441 | 170,442 | u063048537 | cpp |
p02394 | #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 <... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 170,444 | 170,445 | u354867116 | cpp |
p02394 | #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 && y - r >= 0 && x + r <= H && y + r <= W)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #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 && y - r >= 0 && x + r <= W && y + r <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,450 | 170,451 | u692127517 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,455 | 170,456 | u618359110 | cpp |
p02394 | // itp1_topic2_d
#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;
return 0;
}
| // itp1_topic2_d
#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;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,457 | 170,458 | u146802766 | cpp |
p02394 | // itp1_topic2_d
#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;
return 0;
}
| // itp1_topic2_d
#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;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,459 | 170,458 | u146802766 | cpp |
p02394 | #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");
}
}
| [
"expression.operation.unary.reference.add"
] | 170,461 | 170,462 | u726925541 | cpp |
p02394 | #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;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,463 | 170,464 | u108274813 | cpp |
p02394 | #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 ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,465 | 170,466 | u185542351 | cpp |
p02394 | #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;
return 0;
}
| #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;
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,467 | 170,468 | u423466855 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,475 | 170,476 | u227526936 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,477 | 170,478 | u488842924 | cpp |
p02394 | #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;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,481 | 170,482 | u500319559 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.