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 |
|---|---|---|---|---|---|---|---|
p02393 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
main() {
int a[2];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 2);
cout << a[0] << " " << a[1] << " " << a[2] << endl;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
main() {
int a[2];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 3);
cout << a[0] << " " << a[1] << " " << a[2] << endl;
} | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 167,006 | 167,007 | u144329748 | cpp |
p02393 | #include <stdio.h>
int main() {
int a, b, c, sub;
scanf("%d %d %d", &a, &b, &c);
if (a > c) {
sub = a;
a - c;
c - sub;
}
if (a > b) {
sub = a;
a = b;
b = sub;
}
if (b > c) {
sub = b;
b = c;
c = sub;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | #include <stdio.h>
int main() {
int a, b, c, sub;
scanf("%d %d %d", &a, &b, &c);
if (a > c) {
sub = a;
a = c;
c = sub;
}
if (a > b) {
sub = a;
a = b;
b = sub;
}
if (b > c) {
sub = b;
b = c;
c = sub;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [
"expression.operation.binary.change"
] | 167,009 | 167,010 | u451300376 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((1 <= a && a <= 10000) && (1 <= b && b <= 10000) &&
(1 <= c && c <= 10000)) {
if (a > b) {
int tmp1 = a;
a = b;
b = tmp1;
} else if (a > c) {
int tmp2 = a;
a = c;
c = tmp2;... | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if ((1 <= a && a <= 10000) && (1 <= b && b <= 10000) &&
(1 <= c && c <= 10000)) {
if (a > b) {
int tmp1 = a;
a = b;
b = tmp1;
}
if (a > c) {
int tmp2 = a;
a = c;
c = tmp2;
... | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 167,011 | 167,012 | u963600555 | cpp |
p02393 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
int temp;
for (int c = 0; c < sizeof(a) / 4; ++c) {
for (int b = 0; b < sizeof(a) / 4; ++b) {
if (a[c] > a[b]) {
temp = a[c];
a[c] = a[b];
a... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
int temp;
for (int c = 0; c < sizeof(a) / 4; ++c) {
for (int b = 0; b < sizeof(a) / 4; ++b) {
if (a[c] < a[b]) {
temp = a[c];
a[c] = a[b];
a... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 167,028 | 167,029 | u221815546 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, x;
cin >> a >> b >> c;
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
b = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, x;
cin >> a >> b >> c;
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
c = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | [
"assignment.variable.change",
"identifier.change"
] | 167,030 | 167,031 | u927873196 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, x;
cin >> a >> b >> c;
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
b = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
cout << a << "" << b << "" << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, x;
cin >> a >> b >> c;
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
c = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | [
"assignment.variable.change",
"identifier.change",
"literal.string.change",
"io.output.change"
] | 167,032 | 167,031 | u927873196 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, x;
cin >> a >> b >> c;
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
c = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
cout << a << "" << b << "" << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, x;
cin >> a >> b >> c;
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
c = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 167,033 | 167,031 | u927873196 | cpp |
p02393 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (b > c) {
int d;
d = c;
b = c;
c = d;
}
if (a > b) {
int e;
e = b;
a = b;
b = e;
}
if (b > c) {
int f;
f = c;
b = c;
c = f;
}
cout << a;
cout << ' ';
cout... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (b > c) {
int d;
d = b;
b = c;
c = d;
}
if (a > b) {
int e;
e = a;
a = b;
b = e;
}
if (b > c) {
int f;
f = b;
b = c;
c = f;
}
cout << a;
cout << ' ';
cout... | [
"assignment.value.change",
"identifier.change"
] | 167,036 | 167,037 | u493646413 | cpp |
p02393 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int l, m, n, tmp;
cin >> l >> m >> n;
if (l > n) {
tmp = l;
l = n;
n = tmp;
}
if (n > m) {
tmp = n;
n = m;
m = tmp;
}
if (l > n) {
tmp = l;
l = n;
n = tmp;
}
cout << l << ' ' << m << ' ' <<... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int l, m, n, tmp;
cin >> l >> n >> m;
if (l > n) {
tmp = l;
l = n;
n = tmp;
}
if (n > m) {
tmp = n;
n = m;
m = tmp;
}
if (l > n) {
tmp = l;
l = n;
n = tmp;
}
cout << l << ' ' << n << ' ' <<... | [
"expression.operation.binary.remove",
"identifier.change",
"io.output.change"
] | 167,073 | 167,074 | u562240120 | cpp |
p02393 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int l, m, n, tmp;
cin >> l >> n >> m;
if (l > n) {
tmp = l;
l = n;
n = tmp;
}
if (n > m) {
tmp = n;
n = m;
m = tmp;
}
if (l > n) {
tmp = l;
l = n;
n = tmp;
}
cout << l << ' ' << m << ' ' <<... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int l, m, n, tmp;
cin >> l >> n >> m;
if (l > n) {
tmp = l;
l = n;
n = tmp;
}
if (n > m) {
tmp = n;
n = m;
m = tmp;
}
if (l > n) {
tmp = l;
l = n;
n = tmp;
}
cout << l << ' ' << n << ' ' <<... | [
"identifier.change",
"io.output.change"
] | 167,075 | 167,074 | u562240120 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, t;
cin >> a >> b >> c;
if (a < b) {
t = a;
a = b;
b = t;
}
if (a < c) {
t = a;
a = c;
c = t;
}
if (b < c) {
t = b;
b = c;
c = t;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, t;
cin >> a >> b >> c;
if (a > b) {
t = a;
a = b;
b = t;
}
if (a > c) {
t = a;
a = c;
c = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 167,076 | 167,077 | u511962207 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, t;
cin >> a >> b >> c;
if (a < b) {
t = a;
a = b;
b = t;
}
if (a < c) {
t = a;
a = c;
c = t;
}
if (b < c) {
t = b;
b = c;
c = t;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, t;
cin >> a >> b >> c;
if (a > b) {
t = a;
a = b;
b = t;
}
if (a > c) {
t = a;
a = c;
c = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 167,078 | 167,077 | u511962207 | cpp |
p02393 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n[2];
cin >> n[0] >> n[1] >> n[2];
sort(n, n + 2);
cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n[2];
cin >> n[0] >> n[1] >> n[2];
sort(n, n + 3);
cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
return 0;
} | [
"literal.number.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 167,084 | 167,085 | u110807201 | cpp |
p02393 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n[2];
cin >> n[0] >> n[1] >> n[2];
sort(n, n + 2);
cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n[1];
cin >> n[0] >> n[1] >> n[2];
sort(n, n + 3);
cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 167,084 | 167,086 | u110807201 | cpp |
p02393 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n[2];
cin >> n[0] >> n[1] >> n[2];
sort(n, n + 2);
cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n[3];
cin >> n[0] >> n[1] >> n[2];
sort(n, n + 3);
cout << n[0] << ' ' << n[1] << ' ' << n[2] << endl;
return 0;
} | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"call.arguments.change",
"expression.operation.binary.change"
] | 167,084 | 167,087 | u110807201 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
int dummy;
cin >> a >> b >> c;
if (a > b) {
dummy = a;
a = b;
b = dummy;
}
if (a > c) {
dummy = a;
a = c;
c = dummy;
}
if (b > c) {
dummy = b;
b = c;
c = dummy;
}
cout << a << "" << b << "" <<... | #include <iostream>
using namespace std;
int main() {
int a, b, c;
int dummy;
cin >> a >> b >> c;
if (a > b) {
dummy = a;
a = b;
b = dummy;
}
if (a > c) {
dummy = a;
a = c;
c = dummy;
}
if (b > c) {
dummy = b;
b = c;
c = dummy;
}
cout << a << " " << b << " " ... | [
"literal.string.change",
"io.output.change"
] | 167,088 | 167,089 | u671466479 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a[3];
int emp;
cin >> a[0] >> a[1] >> a[2];
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
if (a[i] > a[j]) {
emp = a[i];
a[i] = a[j];
a[j] = emp;
}
}
}
cout << a[0] << " " << a[1] << " " << a[... | #include <iostream>
using namespace std;
int main() {
int a[3];
int emp;
cin >> a[0] >> a[1] >> a[2];
for (int i = 0; i < 3; i++) {
for (int j = i; j < 3; j++) {
if (a[i] > a[j]) {
emp = a[i];
a[i] = a[j];
a[j] = emp;
}
}
}
cout << a[0] << " " << a[1] << " " << a[... | [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change"
] | 167,100 | 167,101 | u887884342 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int x;
int y;
int z;
int a;
cin >> x >> y >> z;
if (x > y) {
a = x;
x = y;
y = a;
} else if (y > z) {
a = y;
y = z;
z = a;
} else if (x > y) {
a = x;
x = y;
y = a;
}
cout << x << " " << y << " " << z << "\n";
... | #include <iostream>
using namespace std;
int main() {
int x;
int y;
int z;
int a;
cin >> x >> y >> z;
if (x > y) {
a = x;
x = y;
y = a;
}
if (y > z) {
a = y;
y = z;
z = a;
}
if (x > y) {
a = x;
x = y;
y = a;
}
cout << x << " " << y << " " << z << "\n";
retur... | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 167,110 | 167,109 | u756732439 | cpp |
p02393 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, z, m;
cin >> x >> y >> z;
if (x < y) {
m = x;
x = y;
y = m;
};
if (y < z) {
m = y;
y = z;
z = m;
};
if (x < y) {
m = x;
x = y;
y = m;
};
cout << x << " " << y << " " << z << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, z, m;
cin >> x >> y >> z;
if (x < y) {
m = x;
x = y;
y = m;
};
if (y < z) {
m = y;
y = z;
z = m;
};
if (x < y) {
m = x;
x = y;
y = m;
};
cout << z << " " << y << " " << x << endl;
return 0;
}
| [
"identifier.change",
"io.output.change"
] | 167,122 | 167,123 | u575569688 | cpp |
p02393 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a < b) {
swap(a, b);
}
if (b < c) {
swap(b, c);
}
if (a > b) {
swap(a, b);
}
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
swap(a, b);
}
if (b > c) {
swap(b, c);
}
if (a > b) {
swap(a, b);
}
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 167,130 | 167,131 | u861893636 | cpp |
p02393 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (b > a)
swap(a, b);
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > b)
swap(a, b);
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change"
] | 167,133 | 167,134 | u326536767 | cpp |
p02393 | #include <iostream>
using namespace std;
// int a,b,c;
int main() {
int x[3];
cin >> x[0] >> x[1] >> x[2];
int work;
for (int i = 3; i > 0; --i) {
for (int k = 0; k < i; ++k) {
if (x[k] > x[k + 1]) {
work = x[k];
x[k] = x[k + 1];
x[k + 1] = work;
}
}
}
cout <... | #include <iostream>
using namespace std;
// int a,b,c;
int main() {
int x[3];
cin >> x[0] >> x[1] >> x[2];
int work;
for (int i = 2; i > 0; --i) {
for (int k = 0; k < i; ++k) {
if (x[k] > x[k + 1]) {
work = x[k];
x[k] = x[k + 1];
x[k + 1] = work;
}
}
}
cout <... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"control_flow.return.add",
"control_flow.return.0.add"
] | 167,135 | 167,136 | u354867116 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (c < a)
swap(a, c);
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > b)
swap(a, b);
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"expression.operation.binary.remove",
"control_flow.branch.if.condition.change",
"identifier.change",
"call.arguments.change"
] | 167,142 | 167,143 | u063048537 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > b)
swap(a, c);
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > b)
swap(a, b);
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"identifier.change",
"call.arguments.change"
] | 167,144 | 167,143 | u063048537 | cpp |
p02393 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > c)
swap(a, c);
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > b)
swap(a, b);
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"identifier.change",
"control_flow.branch.if.condition.change",
"call.arguments.change"
] | 167,145 | 167,146 | u484376701 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
int work;
for (int i = 2; i > 0; --i) {
for (int k = 0; k < i; ++k) {
if (a[k] > a[k + 1]) {
a[k] = work;
a[k] = a[k + 1];
a[k + 1] = work;
}
}
}
cout << a[0] << " " <... | #include <iostream>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
int work;
for (int i = 2; i > 0; --i) {
for (int k = 0; k < i; ++k) {
if (a[k] > a[k + 1]) {
work = a[k];
a[k] = a[k + 1];
a[k + 1] = work;
}
}
}
cout << a[0] << " " <... | [
"assignment.change"
] | 167,149 | 167,150 | u414147590 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
swap(a, b);
} else if (b > c) {
swap(b, c);
} else if (a > b) {
swap(a, b);
}
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
swap(a, b);
}
if (b > c) {
swap(b, c);
}
if (a > b) {
swap(a, b);
}
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 167,151 | 167,152 | u704184522 | cpp |
p02393 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > b)
swap(a, b);
cout << a << ";" << b << ";" << c << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > b)
swap(a, b);
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 167,155 | 167,156 | u692127517 | cpp |
p02393 | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
int m = 0;
cin >> a >> b >> c;
if (a > b) {
m = a;
a = b;
b = m;
}
if (b > c) {
m = c;
c = b;
b = m;
}
if (a < b) {
m = a;
a = b;
b = m;
}
cout << a << " " << b << " " << c << endl;
}
| #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
int m = 0;
cin >> a >> b >> c;
if (a > b) {
m = a;
a = b;
b = m;
}
if (b > c) {
m = c;
c = b;
b = m;
}
if (a > b) {
m = a;
a = b;
b = m;
}
cout << a << " " << b << " " << c << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 167,158 | 167,159 | u496087884 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, t;
cin >> a >> b >> c;
if (a > b) {
t = a, a = b, b = t;
};
if (b > c) {
t = b, b = c, c = t;
};
if (a > c) {
t = a, a = c, c = t;
};
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, t;
cin >> a >> b >> c;
if (a > b) {
t = a, a = b, b = t;
};
if (a > c) {
t = a, a = c, c = t;
};
if (b > c) {
t = b, b = c, c = t;
};
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"control_flow.branch.if.add"
] | 167,164 | 167,165 | u943770092 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
if (b > c) {
cout << c << " " << b << " " << a << endl;
return 0;
} else if (c > a) {
cout << b << " " << a << " " << c << endl;
return 0;
} else {
cout << b << " " << c ... | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
if (b > c) {
cout << c << " " << b << " " << a << endl;
return 0;
} else if (c > a) {
cout << b << " " << a << " " << c << endl;
return 0;
} else {
cout << b << " " << c ... | [
"identifier.change",
"io.output.change"
] | 167,166 | 167,167 | u824483998 | cpp |
p02393 | #include <stdio.h>
int main() {
int a, b, c, num;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
num = a;
a = b;
b = num;
}
if (a > c) {
num = a;
a = c;
c = num;
}
if (b > c) {
num = c;
c = b;
b = num;
}
printf("%d%d%d\n ", a, b, c);
return 0;
}
| #include <stdio.h>
int main() {
int a, b, c, num;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
num = a;
a = b;
b = num;
}
if (a > c) {
num = a;
a = c;
c = num;
}
if (b > c) {
num = c;
c = b;
b = num;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 167,177 | 167,174 | u732556893 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int t, a, b, c;
cin >> a >> b >> c;
if (a > b)
t = a;
a = b;
b = t;
if (b > c)
t = b;
b = c;
c = t;
if (a > b)
t = a, a = b, b = t;
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int t, a, b, c;
cin >> a >> b >> c;
if (a > b) {
t = a;
a = b;
b = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
if (a > b) {
t = a, a = b, b = t;
}
cout << a << " " << b << " " << c << endl;
return 0;
}
| [] | 167,179 | 167,180 | u952266067 | cpp |
p02393 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
// 4 2 1
cin >> a >> b >> c;
int n[] = {a, b, c};
for (int j = 0; j < 3; j++) {
for (int i = 0; i < 2 - j; i++) {
int n0 = n[i];
int n1 = n[i + 1];
if (n1 < n0) {
n[i] = n1;
n[i + 1] = n... | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int n[] = {a, b, c};
for (int j = 0; j < 3; j++) {
for (int i = 0; i < 2 - j; i++) {
int n0 = n[i];
int n1 = n[i + 1];
if (n1 < n0) {
n[i] = n1;
n[i + 1] = n0;
}
... | [] | 167,187 | 167,186 | u905714506 | cpp |
p02393 | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int n[] = {a, b, c};
for (int j = 0; j < 3; j++) {
for (int i = 0; i < 2 - j; i++) {
int n0 = n[i];
int n1 = n[i + 1];
if (n1 < n0) {
n[i] = n1;
n[i + 1] = n0;
}
... | #include <iostream>
#include <string>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int n[] = {a, b, c};
for (int j = 0; j < 3; j++) {
for (int i = 0; i < 2 - j; i++) {
int n0 = n[i];
int n1 = n[i + 1];
if (n1 < n0) {
n[i] = n1;
n[i + 1] = n0;
}
... | [] | 167,189 | 167,186 | u905714506 | cpp |
p02393 | #include <stdio.h>
int main() {
int a[3];
scanf("%d %d %d", &a[0], &a[1], &a[2]);
int i, j, temp;
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
if (a[i] > a[j]) {
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
}
| #include <stdio.h>
int main() {
int a[3];
scanf("%d %d %d", &a[0], &a[1], &a[2]);
int i, j, temp;
for (i = 0; i < 3; i++) {
for (j = i + 1; j < 3; j++) {
if (a[i] > a[j]) {
temp = a[i];
a[i] = a[j];
a[j] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
}
| [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"control_flow.loop.for.initializer.change",
"assignment.change"
] | 167,190 | 167,191 | u635209856 | cpp |
p02393 | #include <stdio.h>
int main() {
int d1, d2, d3;
scanf("%d %d %d", &d1, &d2, &d3);
int t = 0;
while (!(d1 <= d2 && d2 <= d3)) {
if (d1 > d2) {
t = d1;
d1 = d2;
d2 = t;
}
if (d2 > d3) {
t = d2;
d2 = d3;
d3 = t;
}
}
printf("%d %d %d/n", d1, d2, d3);
ret... | #include <stdio.h>
int main() {
int d1, d2, d3;
scanf("%d %d %d", &d1, &d2, &d3);
int t = 0;
while (!(d1 <= d2 && d2 <= d3)) {
if (d1 > d2) {
t = d1;
d1 = d2;
d2 = t;
}
if (d2 > d3) {
t = d2;
d2 = d3;
d3 = t;
}
}
printf("%d %d %d\n", d1, d2, d3);
ret... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 167,192 | 167,193 | u965655105 | cpp |
p02393 | #include <stdio.h>
int main() {
int d1, d2, d3;
scanf("%d %d %d", &d1, &d2, &d3);
int t = 0;
while (!(d1 <= d2 && d2 <= d3)) {
if (d1 > d2) {
t = d1;
d1 = d2;
d2 = t;
}
if (d2 > d3) {
t = d2;
d2 = d3;
d3 = t;
}
}
printf("%d %d %d /n", d1, d2, d3);
re... | #include <stdio.h>
int main() {
int d1, d2, d3;
scanf("%d %d %d", &d1, &d2, &d3);
int t = 0;
while (!(d1 <= d2 && d2 <= d3)) {
if (d1 > d2) {
t = d1;
d1 = d2;
d2 = t;
}
if (d2 > d3) {
t = d2;
d2 = d3;
d3 = t;
}
}
printf("%d %d %d\n", d1, d2, d3);
ret... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"io.output.newline.add"
] | 167,194 | 167,193 | u965655105 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, first, second, third;
cin >> a >> b >> c;
first = a;
second = b;
third = c;
if (first > second) {
first = b;
second = a;
}
if (second > third) {
third = second;
second = c;
}
if (first > second) {
a = first;
... | #include <iostream>
using namespace std;
int main() {
int a, b, c, first, second, third;
cin >> a >> b >> c;
first = a;
second = b;
third = c;
if (first > second) {
first = b;
second = a;
}
if (second > third) {
third = second;
second = c;
}
if (first > second) {
a = first;
... | [
"assignment.value.change",
"identifier.change"
] | 167,201 | 167,202 | u636240697 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a;
int b;
int c;
int t;
cin >> a;
cin >> b;
cin >> c;
if (a > b) {
t = a;
a = b;
b = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
if (a > b) {
t = a;
a = b;
b = t;
}
cout << a << "" << b << ""... | #include <iostream>
using namespace std;
int main() {
int a;
int b;
int c;
int t;
cin >> a;
cin >> b;
cin >> c;
if (a > b) {
t = a;
a = b;
b = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
if (a > b) {
t = a;
a = b;
b = t;
}
cout << a << " " << b << "... | [
"literal.string.change",
"io.output.change"
] | 167,213 | 167,214 | u027702271 | cpp |
p02393 | #include "bits/stdc++.h"
using namespace std;
static const int MAX = 200000;
int main() {
int a, b, c;
cin >> a >> b >> c;
vector<int> v;
v.push_back(a);
v.push_back(b);
v.push_back(c);
sort(v.begin(), v.end());
cout << v[0] << " " << v[1] << "" << v[2] << endl;
return 0;
}
| #include "bits/stdc++.h"
using namespace std;
static const int MAX = 200000;
int main() {
int a, b, c;
cin >> a >> b >> c;
vector<int> v;
v.push_back(a);
v.push_back(b);
v.push_back(c);
sort(v.begin(), v.end());
cout << v[0] << " " << v[1] << " " << v[2] << endl;
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 167,228 | 167,229 | u928365435 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, f;
cin >> a >> b >> c;
if (a < b) {
swap(a, b);
}
if (b < c) {
swap(b, c);
}
if (a < b) {
swap(a, b);
}
cout << a << ' ' << b << ' ' << c << endl;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, d, e, f;
cin >> a >> b >> c;
if (a > b) {
swap(a, b);
}
if (b > c) {
swap(b, c);
}
if (a > b) {
swap(a, b);
}
cout << a << ' ' << b << ' ' << c << endl;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 167,232 | 167,233 | u707206451 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a, b, c, t;
cin >> a >> b >> c;
if (a > b) {
t = a;
a = b;
b = t;
}
if (b < c) {
t = b;
b = c;
c = t;
}
if (a > b) {
t = a;
a = b;
b = t;
}
cout << a << " " << b << " " << c << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int a, b, c, t;
cin >> a >> b >> c;
if (a > b) {
t = a;
a = b;
b = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
if (a > b) {
t = a;
a = b;
b = t;
}
cout << a << " " << b << " " << c << endl;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 167,245 | 167,246 | u012953552 | cpp |
p02393 | #include <algorithm>
#include <iostream>
bool cmp(const int a, const int b) { return a > b; }
using namespace std;
int main() {
int a, b, c, temp;
cin >> a >> b >> c;
int d[3] = {a, b, c};
sort(d, d + 3, cmp);
cout << d[0] << " " << d[1] << " " << d[2] << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
bool cmp(const int a, const int b) { return a < b; }
using namespace std;
int main() {
int a, b, c, temp;
cin >> a >> b >> c;
int d[3] = {a, b, c};
sort(d, d + 3, cmp);
cout << d[0] << " " << d[1] << " " << d[2] << endl;
return 0;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"function.return_value.change",
"expression.operation.binary.change"
] | 167,251 | 167,252 | u694546441 | cpp |
p02393 | #include <iostream>
using namespace std;
int main() {
int a[2], t;
for (int i = 0; i < 3; i++)
cin >> a[i];
for (int i = 0; i < 3; i++) {
for (int j; j < 3 - i; j++) {
if (a[j] < a[j - 1]) {
t = a[j];
a[j] = a[j - 1];
a[j - 1] = t;
}
}
}
for (int i = 0; i < 3; i... | #include <iostream>
using namespace std;
int main() {
int a[3], t;
for (int i = 0; i < 3; i++)
cin >> a[i];
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 3 - i; j++) {
if (a[j] < a[j - 1]) {
t = a[j];
a[j] = a[j - 1];
a[j - 1] = t;
}
}
}
for (int i = 0; i < ... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"control_flow.loop.for.initializer.change",
"variable_declaration.value.change"
] | 167,261 | 167,262 | u418163646 | cpp |
p02393 | #include <algorithm>
#include <iostream>
int main() {
int a, b, c;
std::cin >> a >> b >> c;
if (a > b)
std::swap(a, b);
if (b > c)
std::swap(b, c);
if (a > c)
std::swap(a, c);
std::cout << a << ' ' << b << ' ' << c << std::endl;
} | #include <algorithm>
#include <iostream>
int main() {
int a, b, c;
std::cin >> a >> b >> c;
if (a > b)
std::swap(a, b);
if (b > c)
std::swap(b, c);
if (a > b)
std::swap(a, b);
std::cout << a << ' ' << b << ' ' << c << std::endl;
return 0;
} | [
"identifier.change",
"control_flow.branch.if.condition.change",
"call.arguments.change",
"control_flow.return.add",
"control_flow.return.0.add"
] | 167,273 | 167,274 | u648595971 | cpp |
p02393 | #include <iostream>
using namespace std;
int a;
int b;
int c;
int s;
int main() {
cin >> a;
cin >> b;
cin >> c;
if (a < b) {
s = a;
a = b;
b = s;
}
if (a < c) {
s = a;
a = c;
c = s;
}
if (b < c) {
s = b;
b = c;
c = s;
}
cout << a << " " << b << " " << c << endl;... | #include <iostream>
using namespace std;
int a;
int b;
int c;
int s;
int main() {
cin >> a;
cin >> b;
cin >> c;
if (a < b) {
s = a;
a = b;
b = s;
}
if (a < c) {
s = a;
a = c;
c = s;
}
if (b < c) {
s = b;
b = c;
c = s;
}
cout << c << " " << b << " " << a << endl;... | [
"identifier.change",
"io.output.change"
] | 167,278 | 167,279 | u346042277 | cpp |
p02393 | #include <cstdio>
int main() {
int a, b, c, x;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
x = b;
b = a;
a = x;
} else if (b > c) {
x = c;
c = b;
b = x;
} else if (a > b) {
x = b;
b = a;
a = x;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | #include <cstdio>
int main() {
int a, b, c, x;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
x = b;
b = a;
a = x;
}
if (b > c) {
x = c;
c = b;
b = x;
}
if (a > b) {
x = b;
b = a;
a = x;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove"
] | 167,282 | 167,283 | u864253534 | cpp |
p02393 | #include <iostream>
int main(void) {
int a, b, c, x;
scanf("%d%d%d", a, b, c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
c = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | #include <iostream>
int main(void) {
int a, b, c, x;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
x = b;
b = c;
c = x;
}
if (a > b) {
x = a;
a = b;
b = x;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [
"expression.operation.unary.reference.add"
] | 167,291 | 167,292 | u847289230 | cpp |
p02393 | #include <iostream>
using namespace std;
int main(void) {
int a, b, c, z;
cin >> a >> b >> c;
if (a < b) {
a < b;
} else {
z = a, a = b, b = z;
}
if (b < c) {
b < c;
} else {
z = b, b = c, c = z;
}
if (a < b) {
a < b;
} else {
z = a, a = b, b = z;
}
cout << a << "<"... | #include <iostream>
using namespace std;
int main(void) {
int a, b, c, z;
cin >> a >> b >> c;
if (a < b) {
a < b;
} else {
z = a, a = b, b = z;
}
if (b < c) {
b < c;
} else {
z = b, b = c, c = z;
}
if (a < b) {
a < b;
} else {
z = a, a = b, b = z;
}
cout << a << " "... | [
"literal.string.change",
"io.output.change"
] | 167,301 | 167,302 | u893433301 | 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;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((((x + r) <= W) && ((y + r) <= H)) &&
(((x - r) >= 0) && ((y - r) >= 0))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 169,744 | 169,745 | u891709571 | 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;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((((x + r) <= W) && ((y + r) <= H)) &&
(((x - r) >= 0) && ((y - r) >= 0))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 169,746 | 169,745 | u891709571 | 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;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if ((((x + r) <= W) && ((y + r) <= H)) &&
(((x - r) >= 0) && ((y - r) >= 0))) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change",
"expression.operator.arithmetic.change"
] | 169,747 | 169,745 | u891709571 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r + x >= w) {
cout << "No" << endl;
} else if (r >= x) {
cout << "No" << endl;
} else if (r + y >= h) {
cout << "No" << endl;
} else if (r >= y) {
cout << "No" << endl;
} else {
... | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (r + x > w) {
cout << "No" << endl;
} else if (r > x) {
cout << "No" << endl;
} else if (r + y > h) {
cout << "No" << endl;
} else if (r > y) {
cout << "No" << endl;
} else {
cout... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,750 | 169,751 | u827278059 | 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 - 0 >= r) && (y - 0 >= 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.operation.binary.remove",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 169,752 | 169,753 | u363467163 | cpp |
p02394 | #include <iostream>
using namespace std;
int W, H, x, y, r, No, Yes;
int main() {
cin >> W >> H >> x >> y >> r;
if (x + r >= W && x - r <= 0 && y + r >= H && y - r <= 0) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| #include <iostream>
using namespace std;
int W, H, x, y, r, No, Yes;
int main() {
cin >> W >> H >> x >> y >> r;
if (x + r <= W && x - r >= 0 && y + r <= H && y - r >= 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 169,755 | 169,756 | u511490940 | 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;
return 0;
}
| #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H)
std::cout << "Yes" << std::endl;
else
std::cout << "No" << std::endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,766 | 169,767 | u982080464 | cpp |
p02394 | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
bool x_flg, y_flg;
if (x - r > 0 & x + r < W)
x_flg = true;
else
x_flg = false;
if (y - r > 0 & y + r < H)
y_flg = true;
else
y_flg = false;
if (x_flg & y_flg)
std::cout << "Yes" << std::endl;
... | #include <iostream>
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
bool x_flg, y_flg;
if (x - r >= 0 & x + r <= W)
x_flg = true;
else
x_flg = false;
if (y - r >= 0 & y + r <= H)
y_flg = true;
else
y_flg = false;
if (x_flg & y_flg)
std::cout << "Yes" << std::en... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,768 | 169,769 | u716975643 | cpp |
p02394 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= x - r && x + r <= W && 0 <= y - r && y - r <= H)
cout << "Yes";
else
cout << "No";
cout << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= x - r && x + r <= W && 0 <= y - r && y + r <= H)
cout << "Yes";
else
cout << "No";
cout << endl;
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 169,770 | 169,771 | u401240263 | cpp |
p02394 | // class point の練習(クラスの高度な実装)
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
int ans = 0;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || x + r > W)
ans = 2;
if (y - r < 0 || y + r > H)
ans = 2;
if (ans)
cout << "Yes\n";
else
cout << "No\n";
return 0;
}
| // class point の練習(クラスの高度な実装)
#include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
int ans = 0;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 || x + r > W)
ans = 2;
if (y - r < 0 || y + r > H)
ans = 2;
if (ans)
cout << "No\n";
else
cout << "Yes\n";
return 0;
}
| [
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add"
] | 169,780 | 169,781 | u331071112 | cpp |
p02394 | #include <cstdio>
#define loop_input(fmt, ...) while (~scanf(fmt, __VA_ARGS__))
int main() {
int W, H, x, y, r;
loop_input("%d%d%d%d%d", &W, &H, &x, &y, &r) {
if ((r <= x && x <= W - r) && (r <= y && y <= H - r)) {
printf("YES\n");
} else {
printf("NO\n");
}
}
return 0;
}
| #include <cstdio>
#define loop_input(fmt, ...) while (~scanf(fmt, __VA_ARGS__))
int main() {
int W, H, x, y, r;
loop_input("%d%d%d%d%d", &W, &H, &x, &y, &r) {
if ((r <= x && x <= W - r) && (r <= y && y <= H - r)) {
printf("Yes\n");
} else {
printf("No\n");
}
}
return 0;
}
| [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 169,787 | 169,788 | u854976463 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h;
cin >> x >> y >> r;
if (r < x && x < w - r && r < y && y < h - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h;
cin >> x >> y >> r;
if (r <= x && x <= w - r && r <= y && y <= h - r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,790 | 169,791 | u972675635 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r < 0 || x + r > w || y - r > h || y + r < 0)
cout << "No";
else
cout << "Yes";
cout << endl;
}
| #include <iostream>
using namespace std;
int main(void) {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x - r < 0 || x + r > w || y - r < 0 || y + r > h)
cout << "No";
else
cout << "Yes";
cout << endl;
}
| [] | 169,796 | 169,797 | u072016202 | 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;
}
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;
}
| [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 169,798 | 169,799 | u236518840 | 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 && y > r && W > x + r && H > y + r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x >= r && y >= r && W >= x + r && H >= y + r) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,800 | 169,801 | u297976436 | 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;
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,802 | 169,803 | u174469610 | cpp |
p02394 | #include <cstdio>
int main(void) {
int w = 0, h = 0, x = 0, y = 0, r = 0;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
int up = y + r;
int down = y - r;
int left = x - r;
int right = x + r;
if (up <= h) {
if (down >= 0) {
if (left >= 0) {
if (right <= w)
printf("Yes\n");
... | #include <cstdio>
int main(void) {
int w = 0, h = 0, x = 0, y = 0, r = 0;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
int up = y + r;
int down = y - r;
int left = x - r;
int right = x + r;
if (up <= h) {
if (down >= 0) {
if (left >= 0) {
if (right <= w) {
printf("Yes\n");
... | [] | 169,804 | 169,805 | u644493027 | 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) {
cout << "No" << endl;
} else if (0 >= x - r) {
cout << "No" << endl;
} else if (H <= y + r) {
cout << "No" << endl;
} else if (0 >= y - r) {
cout << "No" << endl;
} else... | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (W < x + r) {
cout << "No" << endl;
} else if (0 > x - r) {
cout << "No" << endl;
} else if (H < y + r) {
cout << "No" << endl;
} else if (0 > y - r) {
cout << "No" << endl;
} else
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,810 | 169,811 | u056559525 | cpp |
p02394 | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if ((x - r) >= 0 || (x + r) <= W) {
if ((y - r) >= 0 || (y + r) <= H) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
cout <<... | #include <iostream>
using namespace std;
int main(void) {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if ((x - r) >= 0 && (x + r) <= W) {
if ((y - r) >= 0 && (y + r) <= H) {
cout << "Yes";
} else {
cout << "No";
}
} else {
cout << "No";
}
cout <<... | [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 169,817 | 169,818 | u577978368 | cpp |
p02394 | #include <bits/stdc++.h>
using namespace std;
int main(void) {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (0 <= x + r && x + r <= w && 0 <= y + r && y + r <= h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main(void) {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (0 <= x - r && x + r <= w && 0 <= y - r && y + r <= h) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
| [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 169,819 | 169,820 | u020666671 | 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"
] | 169,827 | 169,828 | u018364665 | 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;
}
}
| [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,829 | 169,828 | u018364665 | 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 && r < x && r < y)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && y + r <= H && r <= x && r <= y)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,830 | 169,831 | u405758695 | cpp |
p02394 | #include <bits/stdc++.h>
#define cinf(n, x) \
for (int i = 0; i < (n); i++) \
cin >> x[i];
typedef long long int ll;
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
... | #include <bits/stdc++.h>
#define cinf(n, x) \
for (int i = 0; i < (n); i++) \
cin >> x[i];
typedef long long int ll;
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
... | [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 169,832 | 169,833 | u405635121 | 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 && (x + r) > H)
printf("No\n");
else if (y < r && (r + r) > W)
printf("No\n");
else
printf("Yes\n");
}
| #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x < r || (x + r) > W)
printf("No\n");
else if (y < r || (y + r) > H)
printf("No\n");
else
printf("Yes\n");
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 169,834 | 169,835 | u994696641 | 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 && (x + r) > H)
printf("No\n");
else if (y < r && (y + r) > W)
printf("No\n");
else
printf("Yes\n");
}
| #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x < r || (x + r) > W)
printf("No\n");
else if (y < r || (y + r) > H)
printf("No\n");
else
printf("Yes\n");
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change",
"identifier.change"
] | 169,836 | 169,835 | u994696641 | 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 || (x + r) > H)
printf("No\n");
else if (y < r || (y + r) > W)
printf("No\n");
else
printf("Yes\n");
}
| #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x < r || (x + r) > W)
printf("No\n");
else if (y < r || (y + r) > H)
printf("No\n");
else
printf("Yes\n");
}
| [
"identifier.change",
"control_flow.branch.if.condition.change"
] | 169,837 | 169,835 | u994696641 | cpp |
p02394 | #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
if ((x <= r) || (y <= r) || (x + r >= w) || (y + r >= h)) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| #include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
scanf("%d%d%d%d%d", &w, &h, &x, &y, &r);
if ((x < r) || (y < r) || (x + r > w) || (y + r > h)) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,840 | 169,841 | u395880873 | 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 (w <= x + r || 0 >= x - r)
cout << "No" << endl;
else if (h <= y + r || 0 >= y - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
| #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (w < x + r || 0 > x - r)
cout << "No" << endl;
else if (h < y + r || 0 > y - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,845 | 169,846 | u460456614 | cpp |
p02394 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y, W, H, r;
cin >> W >> H >> x >> y >> r;
if (x - r < 0 or x + r > W or y - r < 0 or y + r > H) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y, W, H, r;
cin >> W >> H >> x >> y >> r;
// cout << x - r << x + r << y - r << y + r <<endl;
if (x - r < 0 or x + r > W or y - r < 0 or y + r > H) {
cout << "No" << endl;
} else {
cout << "Yes" << endl;
}
}
| [
"literal.string.change",
"io.output.change"
] | 169,847 | 169,848 | u024639066 | 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 && W - r > x && H - r > y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x >= r && y >= r && W - r >= x && H - r >= y) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,849 | 169,850 | u929116805 | 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 && x > w - r && y < r && y > h - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x < r || x > w - r || y < r || y > h - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 169,851 | 169,852 | u707669604 | 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 && x > w - r && y < r && y > h - r) {
cout << "No" << endl;
} else
cout << "Yes" << endl;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x < r || x > w - r || y < r || y > h - r)
cout << "No" << endl;
else
cout << "Yes" << endl;
}
| [
"misc.opposites",
"control_flow.branch.if.condition.change"
] | 169,853 | 169,852 | u707669604 | 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 and x + r < W and 0 < y - r and y + r < H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (0 <= x - r and x + r <= W and 0 <= y - r and y + r <= H)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
}
| [
"expression.operator.compare.change"
] | 169,854 | 169,855 | u539796523 | cpp |
p02394 | #include <array>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int w, h, x, y, r;
bool xflag, yflag;
cin >> w;
cin >> h;
cin >> x;
cin >> y;
cin >> r;
if (((x - r) > 0) && ((x + r) < w)) {
xflag = true;
} else {
xflag = false;
}
if (((y - r... | #include <array>
#include <cstdio>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int w, h, x, y, r;
bool xflag, yflag;
cin >> w;
cin >> h;
cin >> x;
cin >> y;
cin >> r;
if (((x - r) >= 0) && ((x + r) <= w)) {
xflag = true;
} else {
xflag = false;
}
if (((y -... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,856 | 169,857 | u478446516 | cpp |
p02394 | #include <stdio.h>
main(void) {
int W, H, x, y, r;
scanf("%d%d%d%d%d", W, H, x, y, r);
if (y + r <= H && y - r >= 0 && x + r <= W && x - r >= 0) {
printf("Yes\n");
} else
printf("No\n");
return 0;
} | #include <stdio.h>
main(void) {
int W, H, x, y, r;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
if (y + r <= H && y - r >= 0 && x + r <= W && x - r >= 0) {
printf("Yes\n");
} else
printf("No\n");
return 0;
} | [
"expression.operation.unary.reference.add"
] | 169,858 | 169,859 | u660557702 | 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 < x - r) && (x + r < w) && (0 < y - r) && (y + r < h)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if ((0 <= x - r) && (x + r <= w) && (0 <= y - r) && (y + r <= h)) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,860 | 169,861 | u777726214 | 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",
"expression.operation.unary.arithmetic.remove"
] | 169,864 | 169,865 | u517414491 | cpp |
p02394 | #include <stdio.h>
void judge(int W, int H, int x, int y, int r);
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
judge(W, H, x, y, r);
return 0;
}
void judge(int W, int H, int x, int y, int r) {
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) {
printf("YES\n")... | #include <stdio.h>
void judge(int W, int H, int x, int y, int r);
int main(void) {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
judge(W, H, x, y, r);
return 0;
}
void judge(int W, int H, int x, int y, int r) {
if (x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H) {
printf("Yes\n")... | [
"literal.string.change",
"literal.string.case.change",
"call.arguments.change",
"io.output.change"
] | 169,866 | 169,867 | u552277427 | 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 >= 0 && y + r <= H) {
cout << "yes"
<< "\n";
} else {
cout << "No"
<< "\n";
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W >> H >> x >> y >> r;
if (x + r <= W && x - r >= 0 && y - r >= 0 && y + r <= H) {
cout << "Yes"
<< "\n";
} else {
cout << "No"
<< "\n";
}
return 0;
} | [
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 169,868 | 169,869 | u755594182 | 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;
} | [
"control_flow.branch.if.condition.change"
] | 169,870 | 169,871 | u585391547 | 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,872 | 169,871 | u585391547 | 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 && w - x > r && h - y > r)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | #include <iostream>
using namespace std;
int main() {
int w, h, x, y, r;
cin >> w >> h >> x >> y >> r;
if (x >= r && y >= r && w - x >= r && h - y >= r)
cout << "Yes" << endl;
else
cout << "No" << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,873 | 169,874 | u979000952 | cpp |
p02394 | #include <algorithm>
#include <functional>
#include <iostream>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
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) {
... | #include <algorithm>
#include <functional>
#include <iostream>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
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)... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 169,875 | 169,876 | u484092586 | cpp |
p02394 | #include <algorithm>
#include <functional>
#include <iostream>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
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) {
... | #include <algorithm>
#include <functional>
#include <iostream>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
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)... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,877 | 169,876 | u484092586 | cpp |
p02394 | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int w, h, x, y, r;
int main() {
cin >> w >> h >> x >> y >> r;
if (0 <= x + r && x + r <= w && 0 <= y + r && y + r <= h)
cout << "Yes" << endl;
else
cout << "No" << endl... | #include <algorithm>
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
int w, h, x, y, r;
int main() {
cin >> w >> h >> x >> y >> r;
if (0 <= x - r && x + r <= w && 0 <= y - r && y + r <= h)
cout << "Yes" << endl;
else
cout << "No" << endl... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"control_flow.branch.if.condition.change"
] | 169,878 | 169,879 | u601567896 | cpp |
p02394 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
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 << "Yse" << endl;
else
cout << "No" << endl;
return 0;
} | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
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;
} | [
"literal.string.change",
"io.output.change"
] | 169,880 | 169,881 | u014979214 | cpp |
p02394 | #include <iostream>
bool isInRec(const int W, const int x, const int r) {
int p = x - r, q = x + r;
if (p > 0 && q < W) {
return true;
} else {
return false;
}
}
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (isInRec(W, x, r) && isInRec(H, y, r)) {
std::cout << "Yes\n... | #include <iostream>
bool isInRec(const int W, const int x, const int r) {
int p = x - r, q = x + r;
if (p >= 0 && q <= W) {
return true;
} else {
return false;
}
}
int main() {
int W, H, x, y, r;
std::cin >> W >> H >> x >> y >> r;
if (isInRec(W, x, r) && isInRec(H, y, r)) {
std::cout << "Yes... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,884 | 169,885 | u856032888 | 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 || x > W - r || y < r || y > H - r)
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main() {
int W, H, x, y, r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (x < r || x > W - r || y < r || y > H - r)
printf("No\n");
else
printf("Yes\n");
return 0;
} | [
"call.remove",
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"call.add"
] | 169,886 | 169,887 | u701536962 | cpp |
p02394 | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if (H > y + r && y - r > 0 && W > x + r && x - r > 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
// while(1);
return 0;
} | #include <iostream>
using namespace std;
int main() {
int W, H, x, y, r;
cin >> W;
cin >> H;
cin >> x;
cin >> y;
cin >> r;
if (H >= y + r && y - r >= 0 && W >= x + r && x - r >= 0)
cout << "Yes" << endl;
else
cout << "No" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 169,890 | 169,891 | u940742903 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.