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>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if (x > r && x < w - r && y > r && y < h - r)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
} | #include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if (x >= r && x <= w - r && y >= r && y <= h - r)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,892 | 169,893 | u606820927 | 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 << "No" << endl;
} else if (x - r > 0 && x + r <= w && y - r > 0 && y + r <= h) {
cout << "Yes" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r < 0 || x + r > w || y - r < 0 || y + r > h) {
cout << "No" << endl;
} else if (x - r >= 0 && x + r <= w && y - r >= 0 && y + r <= h) {
cout << "Yes" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,894 | 169,895 | u185697831 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int width, height, x, y, r;
std::cin >> width;
std::cin >> height;
std::cin >> x;
std::cin >> y;
std::cin >> r;
if (0 < x - r && x + r < 5 && 0 < y - r && y + r < 5) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl... | #include <iostream>
using namespace std;
int main() {
int width, height, x, y, r;
std::cin >> width;
std::cin >> height;
std::cin >> x;
std::cin >> y;
std::cin >> r;
if (0 <= x - r && x + r <= width && 0 <= y - r && y + r <= height) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No"... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,896 | 169,897 | u943304359 | 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 && y > r && (w - x) > r && (h - y) > r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x >= r && y >= r && (w - x) >= r && (h - y) >= r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,899 | 169,900 | u811434779 | cpp |
p02394 | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x < r || x > W - r || y < r || y > H - r)
cout << "NO" << endl;
else
cout << "Yes" << endl;
return 0;
} | #include <cmath>
#include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x < r || x > W - r || y < r || y > H - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 169,901 | 169,902 | u412625617 | cpp |
p02394 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && x < W - r && r <= y && y < H - r)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && x <= W - r && r <= y && y <= H - r)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,904 | 169,905 | u586305981 | 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 && y + r < h && x + r < w) {
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 && y + r <= h && x + r <= w) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,906 | 169,907 | u936401118 | cpp |
p02394 | #include <algorithm>
#include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
int lowerLimmit = r;
int upperLimmitX = W - r;
int upperLimmitY = H - r;
if (lowerLimmit ... | #include <algorithm>
#include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
int lowerLimmit = r;
int upperLimmitX = W - r;
int upperLimmitY = H - r;
if (lowerLimmit ... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,909 | 169,910 | u381034608 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int W, H, x, y, r;
string str;
cin >> W >> H >> x >> y >> r;
if (0 <= x + r && x + r <= W && 0 <= y + r && y + r <= H) {
str = "Yes";
} else {
str = "No";
}
cout << str << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int W, H, x, y, r;
string str;
cin >> W >> H >> x >> y >> r;
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) {
str = "Yes";
} else {
str = "No";
}
cout << str << endl;
return 0;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 169,912 | 169,913 | u208108220 | cpp |
p02394 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (w > x + r && h > y + r && x > r && y > r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (w >= x + r && h >= y + r && x >= r && y >= r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,916 | 169,917 | u671321649 | 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 (x + r < W && y + r < H && x - r > 0 && y - r > 0) {
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) {
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,918 | 169,919 | u096341170 | cpp |
p02394 | #include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", W, H, x, y, r);
if (W - r < x || H - r < y || x < r || y < r) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | #include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W - r < x || H - r < y || x < r || y < r) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | [
"expression.operation.unary.reference.add"
] | 169,922 | 169,923 | u806178009 | cpp |
p02394 | //
// main.cpp
// test
//
// Created by 鈴木大志 on 2018/06/15.
// Copyright © 2018年 鈴木大志. All rights reserved.
//
#include <iostream>
#include <math.h>
int main(int argc, const char *argv[]) {
int W, H, X, Y, R;
typedef struct {
int ox, oy, w, h;
} Rect;
std::cin >> W >> H >> X >> Y >> R;
Rect rect... | //
// main.cpp
// test
//
// Created by 鈴木大志 on 2018/06/15.
// Copyright © 2018年 鈴木大志. All rights reserved.
//
#include <iostream>
#include <math.h>
int main(int argc, const char *argv[]) {
int W, H, X, Y, R;
typedef struct {
int ox, oy, w, h;
} Rect;
std::cin >> W >> H >> X >> Y >> R;
Rect rect... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,941 | 169,942 | u932203900 | cpp |
p02394 |
#include <iostream>
#include <math.h>
int main(int argc, const char *argv[]) {
int W, H, X, Y, R;
typedef struct {
int ox, oy, w, h;
} Rect;
std::cin >> W >> H >> X >> Y >> R;
Rect rect{.ox = 0, .oy = 0, .w = W, .h = H};
Rect en{.ox = X - R, .oy = Y - R, .w = X + R, .h = Y + R};
if (en.ox - re... | //
// main.cpp
// test
//
// Created by 鈴木大志 on 2018/06/15.
// Copyright © 2018年 鈴木大志. All rights reserved.
//
#include <iostream>
#include <math.h>
int main(int argc, const char *argv[]) {
int W, H, X, Y, R;
typedef struct {
int ox, oy, w, h;
} Rect;
std::cin >> W >> H >> X >> Y >> R;
Rect rect... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,943 | 169,942 | u932203900 | cpp |
p02394 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define loop(i, n) for (int i = 0; i < (n); ++i)
#define loops(i, f, n) for (int i = (f); i < (n); ++i)
#define INF 9999999
#define lint long long int
#defi... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define loop(i, n) for (int i = 0; i < (n); ++i)
#define loops(i, f, n) for (int i = (f); i < (n); ++i)
#define INF 9999999
#define lint long long int
#defi... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 169,946 | 169,947 | u228015313 | cpp |
p02394 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define loop(i, n) for (int i = 0; i < (n); ++i)
#define loops(i, f, n) for (int i = (f); i < (n); ++i)
#define INF 9999999
#define lint long long int
#defi... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
using namespace std;
#define loop(i, n) for (int i = 0; i < (n); ++i)
#define loops(i, f, n) for (int i = (f); i < (n); ++i)
#define INF 9999999
#define lint long long int
#defi... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 169,948 | 169,947 | u228015313 | cpp |
p02394 | #include <iostream>
int main() {
int v1, v2, v3, v4, v5;
std::cin >> v1 >> v2 >> v3 >> v4 >> v5;
if (v5 < v3 && v5 < v4 && v3 + v5 < v1 && v4 + v5 < v2) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
}
| #include <iostream>
int main() {
int v1, v2, v3, v4, v5;
std::cin >> v1 >> v2 >> v3 >> v4 >> v5;
if (v5 <= v3 && v5 <= v4 && v3 + v5 <= v1 && v4 + v5 <= v2) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,951 | 169,952 | u766154243 | cpp |
p02394 |
#include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (r <= x && x <= W - x && r <= y && y <= H - r) {
printf("Yes");
} else {
printf("No");
}
printf("\n");
return 0;
}
|
#include <cstdio>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (r <= x && x <= W - r && r <= y && y <= H - r) {
printf("Yes");
} else {
printf("No");
}
printf("\n");
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 169,954 | 169,955 | u228144846 | 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";
else
cout << "No";
cout << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r >= 0 && x + r <= w && y - r >= 0 && y + r <= h)
cout << "Yes";
else
cout << "No";
cout << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,960 | 169,961 | u418163646 | 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\n";
else
cout << "No\n";
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
cout << "Yes\n";
else
cout << "No\n";
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,964 | 169,965 | u225502267 | cpp |
p02394 | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
int minX = x - r;
int maxX = x + r;
int minY = y - r;
int maxY = y + r;
if (minX < 0 || maxX > W || minY < 0 || maxY > H) {
cout << "Ye... | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
int minX = x - r;
int maxX = x + r;
int minY = y - r;
int maxY = y + r;
if (minX < 0 || maxX > W || minY < 0 || maxY > H) {
cout << "No... | [
"literal.string.change",
"io.output.change"
] | 169,966 | 169,967 | u979507074 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(void) {
int winX, winY;
int centerX, centerY, radius;
string result;
cin >> winX >> winY >> centerX >> centerY >> radius;
if (centerY - radius > 0 && centerY + radius < winY && centerX - radius > 0 &&
centerX + radius < winX) {
result = "Yes";
} el... | #include <iostream>
using namespace std;
int main(void) {
int winX, winY;
int centerX, centerY, radius;
string result;
cin >> winX >> winY >> centerX >> centerY >> radius;
if (centerY - radius >= 0 && centerY + radius <= winY &&
centerX - radius >= 0 && centerX + radius <= winX) {
result = "Yes";
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,968 | 169,969 | u847054652 | cpp |
p02394 | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) < W)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [] | 169,970 | 169,971 | u334616498 | cpp |
p02394 | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= W)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 169,972 | 169,971 | u334616498 | cpp |
p02394 | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) < H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,973 | 169,971 | u334616498 | cpp |
p02394 | #include <cstdio>
main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
printf(
"%s\n",
((x - r <= 0 || x + r >= w || y - r <= 0 || y + r >= h) ? "No" : "Yes"));
} | #include <cstdio>
main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
printf("%s\n",
((x - r < 0 || x + r > w || y - r < 0 || y + r > h) ? "No" : "Yes"));
} | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"call.arguments.change",
"expression.operation.binary.change",
"io.output.change"
] | 169,974 | 169,975 | u884445603 | 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 (0 < x - r && x + r < W && 0 < y - r && y + r < H) {
printf("Yes \n");
} else {
printf("No \n");
}
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 169,978 | 169,979 | u416538239 | 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 (0 < x - r && x + r < W && 0 < y - r && y + r < H) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,981 | 169,979 | u416538239 | 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;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && x <= W - r && r <= y && y <= H - r) {
cout << "Yes" << endl;
} else
cout << "No" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,985 | 169,986 | u361673277 | cpp |
p02394 | #include <stdio.h>
int main() {
int W, H, x, y, r, v1, v2, y1, y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
v1 = x + r;
v2 = W - (x - r);
y1 = y + r;
y2 = H - (x - r);
if (v1 > W || v2 > W || y1 > H || y2 > H) {
printf("No");
} else {
printf("Yes");
}
} | #include <stdio.h>
int main() {
int W, H, x, y, r, v1, v2, y1, y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
v1 = x + r;
v2 = W - (x - r);
y1 = y + r;
y2 = H - (y - r);
if (v1 > W || v2 > W || y1 > H || y2 > H) {
printf("No\n");
} else {
printf("Yes\n");
}
} | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 169,990 | 169,991 | u958840197 | cpp |
p02394 | #include <stdio.h>
int main() {
int W, H, x, y, r, v1, v2, y1, y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
v1 = x + r;
v2 = W - (x - r);
y1 = y + r;
y2 = H - (x - r);
if (v1 > W || v2 > W || y1 > H || y2 > H) {
printf("No\n");
} else {
printf("Yes\n");
}
} | #include <stdio.h>
int main() {
int W, H, x, y, r, v1, v2, y1, y2;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
v1 = x + r;
v2 = W - (x - r);
y1 = y + r;
y2 = H - (y - r);
if (v1 > W || v2 > W || y1 > H || y2 > H) {
printf("No\n");
} else {
printf("Yes\n");
}
} | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change"
] | 169,992 | 169,991 | u958840197 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int x, y, r, W, H;
cin >> W >> H >> x >> y >> r;
//水平
if (((x - r) > 0 and (x + r) < W) and ((y - r) > 0 and (y + r) < H)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int x, y, r, W, H;
cin >> W >> H >> x >> y >> r;
//水平
if (((x - r) >= 0 and (x + r) <= W) and ((y - r) >= 0 and (y + r) <= H)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,994 | 169,995 | u528403944 | 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"
] | 169,998 | 169,999 | u148733050 | 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 > W || y - r < 0 || x + r > H) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || y + r > H || y - r < 0 || x + r > W) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,001 | 170,002 | u461301234 | cpp |
p02394 | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (r < x && x < W - r && r < y && y < H - r)
std::cout << "Yes"
<< "\n";
else
std::cout << "No"
<< "\n";
return 0;
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (r <= x && x <= W - r && r <= y && y <= H - r)
std::cout << "Yes"
<< "\n";
else
std::cout << "No"
<< "\n";
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,003 | 170,004 | u799949149 | cpp |
p02394 | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (0 < x - r && x + r < W && 0 < y - r && y + r < H) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,005 | 170,006 | u630615728 | cpp |
p02394 | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if ((x > r) && (y > r) && (W - r > x) && (H - r > y)) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if ((x >= r) && (y >= r) && (W - r >= x) && (H - r >= y)) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,009 | 170,010 | u557390427 | cpp |
p02394 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, x, y, r;
cin >> a >> b >> x >> y >> r;
if (x - r < 0 || x + r > a) {
cout << "No" << endl;
} else if (y - r < 0 || y + r > b) {
cout << "No" << endl;
} else if (x - r > 0 && x + r < a) {
cout << "Yes" << endl;
}
... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, x, y, r;
cin >> a >> b >> x >> y >> r;
if (x - r < 0 || x + r > a) {
cout << "No" << endl;
} else if (y - r < 0 || y + r > b) {
cout << "No" << endl;
} else if (x - r >= 0 && x + r <= a) {
cout << "Yes" << endl;
}... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,012 | 170,013 | u071586889 | 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;
}
return 0;
} | #include "iostream"
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r >= 0 && y - r >= 0 && x + r <= w && y + r <= h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,014 | 170,015 | u563867466 | 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" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((x - r) >= 0 && (x + r) <= W) {
if ((y - r) >= 0 && (y + r) <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"misc.opposites"
] | 170,016 | 170,017 | u218520956 | 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" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((x - r) >= 0 && (x + r) <= W) {
if ((y - r) >= 0 && (y + r) <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,018 | 170,017 | u218520956 | 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;
else
cout << "Yes" << endl;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || x + r > W)
cout << "No" << endl;
else if (y - r < 0 || y + r > H)
cout << "No" << endl;
else
cout << "Yes" << endl;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove"
] | 170,019 | 170,020 | u218520956 | 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;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,021 | 170,022 | u406499291 | 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) || (x - r < 0) || (y - r < 0) || (y + r > H)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((y + r > H) || (x - r < 0) || (y - r < 0) || (x + r > W)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,026 | 170,027 | u941914960 | 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 < 0) || (y - r < 0) || (y + r > W)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((y + r > H) || (x - r < 0) || (y - r < 0) || (x + r > W)) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,028 | 170,027 | u941914960 | cpp |
p02394 | #include <iostream>
using namespace std;
// ??????
// ????????¢?????????????????????????????????????????????????????°???????????????
// ????????¢?????????????????????????????¨??????????????????????????§?¨?(W,H)?????????????????????
// ????????????????????????????????§?¨?(x,y)??¨??????r??§?????????????????????
// ??????... | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,029 | 170,030 | u117595013 | 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;
} | #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;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,031 | 170,030 | u117595013 | cpp |
p02394 | #include <iostream>
using namespace std;
void hantei(int W, int H, int x, int y, int r) {
bool left = (x - r >= 0), right = (x + r < W), up = (y + r < H),
down = (y - r > 0);
if (left && right && up && down) {
cout << "Yes" << endl;
} else {
cout << "NO" << endl;
}
}
int main() {
int W, H, x... | #include <iostream>
using namespace std;
void hantei(int W, int H, int x, int y, int r) {
bool left = (x - r >= 0), right = (x + r <= W), up = (y + r <= H),
down = (y - r >= 0);
if (left && right && up && down) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
int main() {
int W, H... | [
"expression.operator.compare.change",
"expression.operation.binary.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,032 | 170,033 | u069172401 | cpp |
p02394 | #include <iostream>
using namespace std;
void hantei(int W, int H, int x, int y, int r) {
bool left = (x - r >= 0), right = (x + r <= W), up = (y + r <= H),
down = (y - r >= 0);
if (left && right && up && down) {
cout << "Yes" << endl;
} else {
cout << "NO" << endl;
}
}
int main() {
int W, H... | #include <iostream>
using namespace std;
void hantei(int W, int H, int x, int y, int r) {
bool left = (x - r >= 0), right = (x + r <= W), up = (y + r <= H),
down = (y - r >= 0);
if (left && right && up && down) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
int main() {
int W, H... | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,034 | 170,033 | u069172401 | 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 (w < r + x || h < r + y) {
printf("NO\n");
} else if (r > x || r > y) {
printf("NO\n");
}
/*else if(w<r+x || h<r+y){
printf("NO\n");
}*/
else {
printf("YES\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (w < r + x || h < r + y) {
printf("No\n");
} else if (r > x || r > y) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 170,039 | 170,040 | u578058364 | 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,041 | 170,042 | u387257304 | cpp |
p02394 | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int w, h, x, y, r;
string str = "No";
vector<int> vi;
cin >> w >> h >> x >> y >> r;
if (0 < ... | #include <algorithm>
#include <cmath>
#include <functional>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
int main() {
int w, h, x, y, r;
string str = "No";
vector<int> vi;
cin >> w >> h >> x >> y >> r;
if (0 <=... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,043 | 170,044 | u292012552 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r, a, b, c;
a = 0;
cin >> w >> h >> x >> y >> r;
if (x < r) {
a += 1;
}
b = x + r;
if (b > w) {
a += 1;
}
if (y < r) {
a += 1;
}
c = y + r;
if (c > h) {
a += 1;
}
if (a = 0) {
cout << "Yes" << endl;
}... | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r, a, b, c;
a = 0;
cin >> w >> h >> x >> y >> r;
if (x < r) {
a += 1;
}
b = x + r;
if (b > w) {
a += 1;
}
if (y < r) {
a += 1;
}
c = y + r;
if (c > h) {
a += 1;
}
if (a == 0) {
cout << "Yes" << endl;
... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 170,045 | 170,046 | u098280721 | 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;
}
} | #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;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,049 | 170,050 | u357901626 | cpp |
p02394 | #include <iostream>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
int main(void) {
int w, h, x, y, r;
bool flag1 = false;
bool flag2 = false;
bool flag3 = false;
bool flag4 = false;
CI w >> h >> x >> y >> r;
if ((h - (x + r)) >= 0) {
flag1 = true;
}
if (r <= x)... | #include <iostream>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
int main(void) {
int w, h, x, y, r;
bool flag1 = false;
bool flag2 = false;
bool flag3 = false;
bool flag4 = false;
CI w >> h >> x >> y >> r;
if ((w - (x + r)) >= 0) {
flag1 = true;
}
if (r <= x)... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,051 | 170,052 | u017136598 | 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;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && y - r >= 0 && x + r <= W && y + r <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,054 | 170,055 | u823513038 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
while (cin >> w >> h >> x >> y >> r) {
if (x - r > 0 && y - r > 0 && x + r < w && y + r < h)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
while (cin >> w >> h >> x >> y >> r) {
if (x - r >= 0 && y - r >= 0 && x + r <= w && y + r <= h)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,056 | 170,057 | u215814209 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((r <= x <= (W - r)) and (r <= y <= (H - r))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((r <= x and x <= (W - r)) and (r <= y and y <= (H - r))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [
"control_flow.branch.if.condition.change"
] | 170,058 | 170,059 | u719874053 | 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 - y)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r <= x && x <= w - r && r <= y && y <= h - r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,060 | 170,061 | u835414158 | cpp |
p02394 | #include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r < x && r < y && x + r < W && y + r < H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && r <= y && x + r <= W && y + r <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,062 | 170,063 | u147878192 | cpp |
p02394 | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r < x && x < W - r && r < y && y < H - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && x <= W - r && r <= y && y <= H - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,066 | 170,067 | u604252762 | 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))
cout << "no" << '\n';
else if ((y + r > H) || (y - r < 0))
cout << "no" << '\n';
else
cout << "yes" << '\n';
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((x + r > W) || (x - r < 0))
cout << "No" << '\n';
else if ((y + r > H) || (y - r < 0))
cout << "No" << '\n';
else
cout << "Yes" << '\n';
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 170,072 | 170,073 | u978626746 | cpp |
p02394 | #include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 + r < x && W - r > x && 0 + r < y && H - r > y) {
printf("Yes\n");
}
else {
printf("No\n");
}
return (0);
} | #include <algorithm>
#include <cstdio>
using namespace std;
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (0 + r <= x && W - r >= x && 0 + r <= y && H - r >= y) {
printf("Yes\n");
}
else {
printf("No\n");
}
return (0);
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,074 | 170,075 | u711595837 | 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);
int xmin = x - r;
int xmax = x + r;
int ymin = y - r;
int ymax = y + r;
if (xmin > 0 && xmax < w && ymin > 0 && ymax < h) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
int xmin = x - r;
int xmax = x + r;
int ymin = y - r;
int ymax = y + r;
if (xmin >= 0 && xmax <= w && ymin >= 0 && ymax <= h) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,076 | 170,077 | u232170406 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x <= r) {
cout << "No" << endl;
} else if (x + r >= W) {
cout << "No" << endl;
} else if (y <= r) {
cout << "No" << endl;
} else if (y + r >= H) {
cout << "No" << endl;
} else {
... | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x < r) {
cout << "No" << endl;
} else if (x + r > W) {
cout << "No" << endl;
} else if (y < r) {
cout << "No" << endl;
} else if (y + r > H) {
cout << "No" << endl;
} else {
cout... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,079 | 170,080 | u368211656 | 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 && 0 < (x - r)) {
if ((y + r) < H && 0 < (y - r)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((x + r) <= W && 0 <= (x - r)) {
if ((y + r) <= H && 0 <= (y - r)) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,081 | 170,082 | u841770308 | cpp |
p02394 | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r < x && x < w - r && r < y && y < h - r)
s = "Yes";
else
s = "No";
cout << s << endl;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r <= x && x <= w - r && r <= y && y <= h - r)
s = "Yes";
else
s = "No";
cout << s << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,085 | 170,086 | u520560663 | 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) {
if (y + r < h && y - r > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x + r <= w && x - r >= 0) {
if (y + r <= h && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} else {
cout << "No" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,091 | 170,092 | u697484279 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int x, y, r, W, H;
cin >> W >> H >> x >> y >> r;
if (x + r < W && y + r < H && x - r > 0 && y - r > 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y, r, W, H;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,093 | 170,094 | u210148484 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int x, y, r, W, H;
cin >> W >> H >> x >> y >> r;
if (x + r < W && y + r < H && x - r >= 0 && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y, r, W, H;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && y + r <= H && x - r >= 0 && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,095 | 170,094 | u210148484 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(int argc, char **argv) {
int W, H;
int x, y, r;
// Inputs
cin >> W >> H >> x >> y >> r;
string Ans;
if ((x > r) && (x < (W - r)) && (y > r) && (y < (H - r))) {
Ans = "Yes";
} else {
Ans = "No";
}
cout << Ans << endl;
} | #include <iostream>
using namespace std;
int main(int argc, char **argv) {
int W, H;
int x, y, r;
// Inputs
cin >> W >> H >> x >> y >> r;
string Ans;
if ((x >= r) && (x <= (W - r)) && (y >= r) && (y <= (H - r))) {
Ans = "Yes";
} else {
Ans = "No";
}
cout << Ans << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,096 | 170,097 | u557478619 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int H, W, x, y, r;
cin >> H >> W >> x >> y >> r;
if ((x - r) >= 0 && (x + r) <= W && (y - r) >= 0 && (y + r) <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((x - r) >= 0 && (x + r) <= W && (y - r) >= 0 && (y + r) <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"variable_declaration.remove",
"variable_declaration.add",
"expression.operation.binary.remove"
] | 170,098 | 170,099 | u201260266 | 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 (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
printf("Yes\n");
else
printf("Nn");
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 170,103 | 170,104 | u496372029 | 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 (x - r >= 0 || x + r <= W || y - r >= 0 || y + r <= H)
printf("Yes\n");
else
printf("No");
return 0;
} | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [
"misc.opposites",
"control_flow.branch.if.condition.change",
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 170,106 | 170,104 | u496372029 | 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 && y - r > 0 && y + r < H) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,107 | 170,108 | u080939948 | 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;
}
} | #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;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,109 | 170,110 | u549180102 | 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 << "No" << endl;
else if (x - r > 0 && x + r < W && y - r > 0 && y + r < H)
cout << "Yes" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || x + r > W || y - r < 0 || y + r > H)
cout << "No" << endl;
else if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
cout << "Yes" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,111 | 170,112 | u682843183 | cpp |
p02394 | #include <iostream>
#include <string>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (0 <= x - r && y - r && w >= x + r && h >= y + r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (0 <= x - r && 0 <= y - r && w >= x + r && h >= y + r)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 170,116 | 170,117 | u455494700 | cpp |
p02394 | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r > 0 && y - r > 0) {
if (x + r < W && y + r < W)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
}
else
std::cout << "No" << std::endl;
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && y - r >= 0) {
if (x + r <= W && y + r <= H)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
}
else
std::cout << "No" << std::endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,118 | 170,119 | u615080706 | cpp |
p02394 | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && y - r >= 0) {
if (x + r <= W && y + r <= W)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
}
else
std::cout << "No" << std::endl;
} | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && y - r >= 0) {
if (x + r <= W && y + r <= H)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
}
else
std::cout << "No" << std::endl;
} | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,120 | 170,119 | u615080706 | 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 && y > r && w - x > r && h - y > r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d", &w);
scanf("%d", &h);
scanf("%d", &x);
scanf("%d", &y);
scanf("%d", &r);
if (x >= r && y >= r && w - x >= r && h - y >= r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,121 | 170,122 | u008057082 | cpp |
p02394 | #include <cstdio>
using namespace std;
int main() {
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (r <= (y - 0) || r <= (x - 0) || r <= (H - y) || r <= (W - x)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <cstdio>
using namespace std;
int main() {
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (r <= (y - 0) && r <= (x - 0) && r <= (H - y) && r <= (W - x)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 170,130 | 170,131 | u752556380 | cpp |
p02394 | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
string s;
cin >> W >> H >> x >> y >> r;
if (r < x && r < y && x < (W - r) && y < (H - r))
s = "Yes";
else
s = "No";
cout << s << endl;
return 0;
} | #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
string s;
cin >> W >> H >> x >> y >> r;
if (r <= x && r <= y && x <= (W - r) && y <= (H - r))
s = "Yes";
else
s = "No";
cout << s << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,132 | 170,133 | u549369814 | cpp |
p02394 | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x, y, w, h, r;
cin >> w >> h >> x >> y >> r;
if (x - r >= 0 && x + r <= w && y - r >= 0 && y - r <= h)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int x, y, w, h, r;
cin >> w >> h >> x >> y >> r;
if (x - r >= 0 && x + r <= w && y - r >= 0 && y + r <= h)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 170,134 | 170,135 | u339772718 | 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 (x - r < 0 || x + r > W || y - r < 0 || y + r > H)
printf("No\n");
else
printf("yes\n");
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x - r < 0 || x + r > W || y - r < 0 || y + r > H)
printf("No\n");
else
printf("Yes\n");
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 170,136 | 170,137 | u711822251 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int width = 0, height = 0;
int x = 0, y = 0, r = 0;
cin >> width >> height >> x >> y >> r;
bool result = false;
if (x - r >= 0 && x + r << width) {
if (y - r >= 0 && y + r <= height) {
result = true;
}
}
if (result) {
cout << "Yes... | #include <iostream>
using namespace std;
int main() {
int width = 0, height = 0;
int x = 0, y = 0, r = 0;
cin >> width >> height >> x >> y >> r;
bool result = false;
if (x - r >= 0 && x + r <= width) {
if (y - r >= 0 && y + r <= height) {
result = true;
}
}
if (result) {
cout << "Yes... | [
"control_flow.branch.if.condition.change"
] | 170,138 | 170,139 | u838759969 | 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 (x + r < w && x - r > 0 && y + r < h && y - r > 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main() {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (x + r <= w && x - r >= 0 && y + r <= h && y - r >= 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,140 | 170,141 | u784626891 | 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 < 0) {
cout << "No" << endl;
return 0;
}
if (x + r > H) {
cout << "No" << endl;
return 0;
}
if (y + r > W) {
cout << "No" << endl;
return 0;
}
if (y - r < 0)... | #include <iostream>
using namespace std;
int main() {
int W, H;
int x, y, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0) {
cout << "No" << endl;
return 0;
}
if (x + r > W) {
cout << "No" << endl;
return 0;
}
if (y + r > H) {
cout << "No" << endl;
return 0;
}
if (y - r < 0)... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 170,145 | 170,146 | u584505060 | cpp |
p02394 | #include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if ((x - r) > 0 && (y - r) > 0 && (h - r) < y && (w - r) < x) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | #include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if ((x - r) >= 0 && (y - r) >= 0 && (h - r) >= y && (w - r) >= x) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,147 | 170,148 | u018085514 | cpp |
p02394 | #include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if ((x - r) > 0 && (y - r) > 0 && (h - r) > y && (w - r) > x) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | #include <iostream>
int main() {
int w, h, x, y, r;
std::cin >> w >> h >> x >> y >> r;
if ((x - r) >= 0 && (y - r) >= 0 && (h - r) >= y && (w - r) >= x) {
std::cout << "Yes" << std::endl;
} else {
std::cout << "No" << std::endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,149 | 170,148 | u018085514 | 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;
}
} | #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;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,159 | 170,160 | u912640158 | cpp |
p02394 | #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;
}
} | #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;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,161 | 170,162 | u806182843 | cpp |
p02394 | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
int flg = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
// chek width
if (((x - r) >= 0) && ((x + r) - W) < 0) {
// check height
if (((y - r) > 0) && ((y + r) - H) < 0) {
printf("Yes\n");
flg = 1;
}
}
if (flg == 0)
print... | #include <stdio.h>
int main(void) {
int W, H, x, y, r;
int flg = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
// chek width
if (((x - r) >= 0) && ((x + r) - W) <= 0) {
// check height
if (((y - r) >= 0) && ((y + r) - H) <= 0) {
printf("Yes\n");
flg = 1;
}
}
if (flg == 0)
pr... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,163 | 170,164 | u782219177 | cpp |
p02394 | // itp1_2_d
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
bool inner = false;
if ((x > r && x < w - r) && (y > r && y < h - r) && (h > r * 2 && w > r * 2))
inner = true;
if (inner)
cout << "Yes" << endl;
else
cout << "No" << endl;
r... | // itp1_2_d
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
bool inner = false;
if ((x >= r && x <= w - r) && (y >= r && y <= h - r) &&
(h >= r * 2 && w >= r * 2))
inner = true;
if (inner)
cout << "Yes" << endl;
else
cout << "No" <... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,165 | 170,166 | u121040546 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int H, W, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W - r > x && x > r && H - r > y && y > r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int H, W, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W - r >= x && x >= r && H - r >= y && y >= r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,167 | 170,168 | u313564688 | 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 - r < x || y < r || h < y) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x < r || w - r < x || y < r || h - r < y) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 170,170 | 170,171 | u013113718 | 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" << 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;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 170,179 | 170,180 | u423833259 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int W, H, r, x, y;
cin >> W >> H >> r >> x >> y;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int W, H, r, x, y;
cin >> W >> H >> x >> y >> r;
if (0 <= (x - r) && (x + r) <= W && 0 <= (y - r) && (y + r) <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
} | [
"expression.operation.binary.remove"
] | 170,181 | 170,182 | u961466146 | cpp |
p02394 | #include <stdio.h>
int main() {
int W, H, x, y, r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x + 2 <= W && x - 2 >= 0 && y + 2 <= H && y - 2 >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r = 0;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x + r <= W && x - r >= 0 && y + r <= H && y - r >= 0) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 170,183 | 170,184 | u233080611 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && r + x <= W && r <= y && r + y <= H) {
cout << "Yse" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (r <= x && r + x <= W && r <= y && r + y <= H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 170,186 | 170,187 | u933569644 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.