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 |
|---|---|---|---|---|---|---|---|
p00000 | #include <stdio.h>
int main() {
int num1, num2;
for (num1 = 1; num1 < 10; num1++) {
for (num2 = 1; num2 < 10; num2++) {
printf("%dx%d=%d", num1, num2, num1 * num2);
}
}
return 0;
} | #include <stdio.h>
int main() {
int num1, num2;
for (num1 = 1; num1 < 10; num1++) {
for (num2 = 1; num2 < 10; num2++) {
printf("%dx%d=%d\n", num1, num2, num1 * num2);
}
}
return 0;
} | null | 1,286 | 1,285 | u075624361 | c |
p00000 | main() {
int X, Y;
for (X = 1; X < 10; X++) {
for (Y = 1; X < 10; X++) {
printf("%dx%d=%d", X, Y, X * Y);
}
}
return 0;
} | main() {
int X, Y;
for (X = 1; X < 10; X++) {
for (Y = 1; Y < 10; Y++) {
printf("%dx%d=%d\n", X, Y, X * Y);
}
}
return 0;
} | null | 573 | 574 | u884495090 | c |
p00000 | main() {
int X, Y;
for (X = 1; X < 10; X++) {
for (Y = 1; Y < 10; Y++) {
printf("%dx%d=%d", X, Y, X * Y);
}
}
return 0;
} | main() {
int X, Y;
for (X = 1; X < 10; X++) {
for (Y = 1; Y < 10; Y++) {
printf("%dx%d=%d\n", X, Y, X * Y);
}
}
return 0;
} | null | 575 | 574 | u884495090 | c |
p00000 | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int i, j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= 9; j++) {
printf("%dx%d=\n", i * j);
}
}
return EXIT_SUCCESS;
} | #include <stdio.h>
#include <stdlib.h>
int main(void) {
int i, j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= 9; j++) {
printf("%dx%d=%d\n", i, j, i * j);
}
}
return EXIT_SUCCESS;
} | null | 2,889 | 2,890 | u366534567 | c |
p00004 | #include <stdio.h>
int main(void) {
double a, b, c, d, e, f;
double x1, y1;
int x2, y2;
while (scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF) {
x1 = (c * e - b * f) / (a * e - b * d);
y1 = (c * d - a * f) / (b * d - a * e);
x2 = x1 * 10000;
y2 = y1 * 10000;
if (x2 % 10 >= ... | #include <stdio.h>
int main(void) {
double a, b, c, d, e, f;
double x1, y1;
int x2, y2;
while (scanf("%lf %lf %lf %lf %lf %lf", &a, &b, &c, &d, &e, &f) != EOF) {
x1 = (c * e - b * f) / (a * e - b * d);
y1 = (c * d - a * f) / (b * d - a * e);
x2 = x1 * 10000;
y2 = y1 * 10000;
if (x2 % 10 >= ... | null | 7,194 | 7,195 | u467070262 | c |
p02276 | #include <stdio.h>
#define MAX 100000
int main() {
int n, i, x, A[MAX], p, j, r, m;
scanf("%d", &n);
for (i = 1; i <= n; i++)
scanf("%d", &A[i]);
p = 1;
r = n;
x = A[r];
i = p - 1;
for (j = p; j < r; j++) {
if (A[j] < x) {
i = i + 1;
m = A[i];
A[i] = A[j];
A[j] = m;
... | #include <stdio.h>
#define MAX 100000
int main() {
int n, i, x, A[MAX], p, j, r, m;
scanf("%d", &n);
for (i = 1; i <= n; i++)
scanf("%d", &A[i]);
p = 1;
r = n;
x = A[r];
i = p - 1;
for (j = p; j < r; j++) {
if (A[j] <= x) {
i = i + 1;
m = A[i];
A[i] = A[j];
A[j] = m;... | null | 120,371 | 120,372 | u253612246 | c |
p02391 | #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
if (a == b) {
printf("a==b\n");
}
if (a < b) {
printf("a<b\n");
}
if (a > b) {
printf("a>b\n");
}
return 0;
}
| #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
if (a == b) {
printf("a == b\n");
}
if (a < b) {
printf("a < b\n");
}
if (a > b) {
printf("a > b\n");
}
return 0;
}
| null | 154,881 | 154,882 | u321334995 | c |
p02391 | #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", a, b);
if (a < b) {
printf("a < b\n");
} else if (a > b) {
printf("a > b\n");
} else if (a == b) {
printf("a == b\n");
}
return 0;
} | #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
if (a < b) {
printf("a < b\n");
} else if (a > b) {
printf("a > b\n");
} else if (a == b) {
printf("a == b\n");
}
return 0;
} | null | 155,077 | 155,078 | u336766887 | c |
p02391 | #include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
if (a < b) {
printf("a < b/n");
}
if (a > b) {
printf("a > b/n");
}
if (a == b) {
printf("a == b/n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int a, b;
scanf("%d %d", &a, &b);
if (a < b) {
printf("a < b\n");
}
if (a > b) {
printf("a > b\n");
}
if (a == b) {
printf("a == b\n");
}
return 0;
} | null | 157,082 | 157,083 | u691245340 | c |
p02391 | #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
if (a > b) {
printf("a > b\n");
} else if (a < b) {
printf("a < b\n");
} else {
printf("a = b\n");
}
return 0;
} | #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
if (a > b) {
printf("a > b\n");
} else if (a < b) {
printf("a < b\n");
} else {
printf("a == b\n");
}
return 0;
} | null | 155,314 | 155,315 | u580310523 | c |
p02394 | #include <stdio.h>
int main(void) {
int W, X, x, y, r;
scanf("%d %d %d %d %d", &W, &X, &x, &y, &r);
if (((x - r) > 0) && ((x + r) < W) && ((y - r) > 0) && ((y + r) < X))
printf("Yes\n");
else
printf("No\n");
return 0;
} | #include <stdio.h>
int main(void) {
int W, X, x, y, r;
scanf("%d %d %d %d %d", &W, &X, &x, &y, &r);
if (((x - r) >= 0) && ((x + r) <= W) && ((y - r) >= 0) && ((y + r) <= X))
printf("Yes\n");
else
printf("No\n");
return 0;
} | null | 169,144 | 169,145 | u098441168 | c |
p02396 | #include <stdio.h>
int main() {
int i = 0, x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
}
return 0;
} | #include <stdio.h>
int main() {
int i = 1, x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | null | 173,370 | 173,371 | u579608291 | c |
p02396 | #include <stdio.h>
int main() {
int i = 0, x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | #include <stdio.h>
int main() {
int i = 1, x;
while (1) {
scanf("%d", &x);
if (x == 0) {
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
} | null | 173,372 | 173,371 | u579608291 | c |
p02396 | #include <stdio.h>
int main() {
int x, i;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d", i, x);
}
return 0;
}
| #include <stdio.h>
int main() {
int x, i;
for (i = 1;; i++) {
scanf("%d", &x);
if (x == 0)
break;
printf("Case %d: %d\n", i, x);
}
return 0;
}
| null | 173,487 | 173,488 | u507705126 | c |
p02399 | #include <stdio.h>
int main() {
int a, b, d, r;
double f;
scanf("%d%d,", &a, &b);
d = a / b;
r = a % b;
f = a / b;
printf("%d %d %f\n", d, r, f);
return 0;
} | #include <stdio.h>
int main() {
int a, b, d, r;
double f;
scanf("%d%d,", &a, &b);
d = a / b;
r = a % b;
f = (double)a / (double)b;
printf("%d %d %f\n", d, r, f);
return 0;
} | null | 182,796 | 182,798 | u135421061 | c |
p02402 | #include <stdio.h>
int main() {
int n, ai, x, sum, min, max;
sum = 0;
min = 1000000;
max = -1000000;
scanf("%d", &n);
for (x = 0; x < n; x++) {
scanf("%d", &ai);
sum += ai;
if (min > ai) {
min = ai;
}
if (max < ai) {
max = ai;
}
}
printf("%d %d %d\n", min, max, sum... | #include <stdio.h>
int main() {
int n, ai, x, min, max;
long long int sum = 0;
min = 1000000;
max = -1000000;
scanf("%d", &n);
for (x = 0; x < n; x++) {
scanf("%d", &ai);
sum += ai;
if (min > ai) {
min = ai;
}
if (max < ai) {
max = ai;
}
}
printf("%d %d %lld\n", mi... | null | 198,812 | 198,813 | u071792305 | c |
p02402 | #include <stdio.h>
int main(int argc, const char *argv[]) {
int n, i, x, g;
int max = -1000001;
int min = 1000000;
g = 0;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &x);
g = g + x;
if (max < x) {
max = x;
}
if (min > x) {
min = x;
}
}
printf("%d %d %d\... | #include <stdio.h>
int main(int argc, const char *argv[]) {
int n, i, x;
long int g;
int max = -1000001;
int min = 1000000;
g = 0;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &x);
g = g + x;
if (max < x) {
max = x;
}
if (min > x) {
min = x;
}
}
printf... | null | 192,843 | 192,844 | u868348428 | c |
p02397 | #include <stdio.h>
int main() {
int x, y;
for (;;) {
scanf("%d %d", &x, &y);
if (x == 0 & y == 0) {
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
} else {
break;
}
}
return 0;
} | #include <stdio.h>
int main() {
int x, y;
for (;;) {
scanf("%d %d", &x, &y);
if (x != 0 | y != 0) {
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
} else {
break;
}
}
return 0;
} | null | 176,709 | 176,710 | u917647506 | c |
p02397 | #include <stdio.h>
int main() {
int x, y;
for (;;) {
scanf("%d %d", &x, &y);
if (x != 0 & y != 0) {
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
} else {
break;
}
}
return 0;
} | #include <stdio.h>
int main() {
int x, y;
for (;;) {
scanf("%d %d", &x, &y);
if (x != 0 | y != 0) {
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
} else {
break;
}
}
return 0;
} | null | 176,711 | 176,710 | u917647506 | c |
p02397 | #include <stdio.h>
int main(void) {
int x, y;
while (scanf("%d %d", &x, &y) && x && y)
if (x <= y)
printf("%d %d\n", x, y);
else
printf("%d %d\n", y, x);
return 0;
}
| #include <stdio.h>
int main(void) {
int x, y;
while (scanf("%d %d", &x, &y) && (x || y))
if (x <= y)
printf("%d %d\n", x, y);
else
printf("%d %d\n", y, x);
return 0;
}
| null | 176,343 | 176,344 | u045963793 | c |
p02398 | #include <stdio.h>
int main(void) {
int a, b, c, n, yaku = 0;
scanf("%d %d %d", &a, &b, &c);
for (n = a; n < b; n++) {
if (c % n == 0)
yaku++;
}
printf("%d\n", yaku);
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, n, yaku = 0;
scanf("%d %d %d", &a, &b, &c);
for (n = a; n <= b; n++) {
if (c % n == 0)
yaku++;
}
printf("%d\n", yaku);
return 0;
} | null | 179,534 | 179,535 | u928927524 | c |
p02408 | #include <stdio.h>
int main() {
int i, j;
int n;
char suit;
int num;
int card[4][14];
for (i = 0; i < 14; i++) {
card[0][i] = 0;
card[1][i] = 0;
card[2][i] = 0;
card[3][i] = 0;
}
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%c%d%", &suit, &num);
if (suit == 'S')
ca... | #include <stdio.h>
int main() {
int i, j;
int n;
char suit;
int num;
int card[4][14];
for (i = 0; i < 14; i++) {
card[0][i] = 0;
card[1][i] = 0;
card[2][i] = 0;
card[3][i] = 0;
}
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf(" %c %d", &suit, &num);
if (suit == 'S')
... | null | 207,029 | 207,030 | u297518626 | c |
p02408 | #include <stdio.h>
int main() {
int i, j;
int n;
char suit;
int num;
int card[4][14];
for (i = 0; i < 14; i++) {
card[0][i] = 0;
card[1][i] = 0;
card[2][i] = 0;
card[3][i] = 0;
}
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%c%d", &suit, &num);
if (suit == 'S')
car... | #include <stdio.h>
int main() {
int i, j;
int n;
char suit;
int num;
int card[4][14];
for (i = 0; i < 14; i++) {
card[0][i] = 0;
card[1][i] = 0;
card[2][i] = 0;
card[3][i] = 0;
}
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf(" %c %d", &suit, &num);
if (suit == 'S')
... | null | 207,031 | 207,030 | u297518626 | c |
p02408 | #include <stdio.h>
int main() {
int i, j;
int n;
char suit;
int num;
int card[4][14];
for (i = 0; i < 14; i++) {
card[0][i] = 0;
card[1][i] = 0;
card[2][i] = 0;
card[3][i] = 0;
}
scanf("%d", &n);
for (i = 0; i <= n; i++) {
scanf("%c%d%", &suit, &num);
if (suit == 'S')
c... | #include <stdio.h>
int main() {
int i, j;
int n;
char suit;
int num;
int card[4][14];
for (i = 0; i < 14; i++) {
card[0][i] = 0;
card[1][i] = 0;
card[2][i] = 0;
card[3][i] = 0;
}
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf(" %c %d", &suit, &num);
if (suit == 'S')
... | null | 207,032 | 207,030 | u297518626 | c |
p02409 | #include <stdio.h>
int main() {
int house[4][3][10] = {};
int i, j, k;
int n;
scanf("%d", &n);
while (n--) {
int b, f, r, v;
scanf("%d %d %d %d", &b, &f, &r, &v);
b--, f--, r--;
house[b][f][r] += v;
}
for (i = 0; i < 4; i++) {
if (i) {
for (j = 0; j < 20; j++)
printf("#... | #include <stdio.h>
int main(void) {
int house[4][3][10] = {};
int i, j, k;
int n;
scanf("%d", &n);
while (n--) {
int b, f, r, v;
scanf("%d %d %d %d", &b, &f, &r, &v);
b--, f--, r--;
house[b][f][r] += v;
}
for (i = 0; i < 4; i++) {
if (i) {
for (j = 0; j < 20; j++)
print... | null | 209,051 | 209,052 | u831548601 | c |
p02409 | #include <stdio.h>
int main(void) {
int n = 0;
int b;
int f;
int r;
int v;
int add[4][3][10] = {{{0}}};
int i, j, k;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
add[b - 1][f - 1][r - 1] = v;
}
for (i = 0; i < 4; i++) {
for (j = 0; j < 3; j++) {
... | #include <stdio.h>
int main(void) {
int n = 0;
int b;
int f;
int r;
int v;
int add[4][3][10] = {{{0}}};
int i, j, k;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
add[b - 1][f - 1][r - 1] += v;
}
for (i = 0; i < 4; i++) {
for (j = 0; j < 3; j++) {... | null | 209,311 | 209,312 | u295649290 | c |
p02409 | #include <stdio.h>
int main() {
int i, j, k, l, n, b, f, r, v;
int count[4][3][10] = {};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
for (j = 0; j < 4; j++) {
if (j == b - 1) {
for (k = 0; k < 3; k++) {
if (k == f - 1) {
for (l = 0... | #include <stdio.h>
int main() {
int i, j, k, l, n, b, f, r, v;
int count[4][3][10] = {};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
for (j = 0; j < 4; j++) {
if (j == b - 1) {
for (k = 0; k < 3; k++) {
if (k == f - 1) {
for (l = 0... | null | 209,587 | 209,588 | u368218477 | c |
p02409 | #include <stdio.h>
int main() {
int i, j, k, l, n, b, f, r, v;
int count[4][3][10] = {};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
for (j = 0; j < 4; j++) {
if (j == b - 1) {
for (k = 0; k < 3; k++) {
if (k == f - 1) {
for (l = 0... | #include <stdio.h>
int main() {
int i, j, k, l, n, b, f, r, v;
int count[4][3][10] = {};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d %d %d %d", &b, &f, &r, &v);
for (j = 0; j < 4; j++) {
if (j == b - 1) {
for (k = 0; k < 3; k++) {
if (k == f - 1) {
for (l = 0... | null | 209,589 | 209,588 | u368218477 | c |
p02412 | #include <stdio.h>
int main(void) {
int i, j, k;
int n;
int x;
int cnt;
while (1) {
n = 0;
x = 0;
cnt = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = i + 2; k <= n; k++) ... | #include <stdio.h>
int main(void) {
int i, j, k;
int n;
int x;
int cnt;
while (1) {
n = 0;
x = 0;
cnt = 0;
scanf("%d %d", &n, &x);
if (n == 0 && x == 0) {
break;
}
for (i = 1; i <= n - 2; i++) {
for (j = i + 1; j <= n - 1; j++) {
for (k = j + 1; k <= n; k++) ... | null | 213,241 | 213,242 | u949236187 | c |
p02418 | #include <stdio.h>
#include <string.h>
int main() {
char p[101], s[101], r[202];
scanf("%s", s);
scanf(" %s", p);
strcpy(r, s);
strcat(r, s);
printf("%s\n", strstr(r, p) != NULL ? "YES" : "NO");
return 0;
} | #include <stdio.h>
#include <string.h>
int main() {
char p[101], s[101], r[202];
scanf("%s", s);
scanf(" %s", p);
strcpy(r, s);
strcat(r, s);
printf("%s\n", strstr(r, p) != NULL ? "Yes" : "No");
return 0;
} | null | 221,658 | 221,659 | u656368260 | c |
p02479 | #include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * 3.141592, r * 2 * 3.141592);
return 0;
} | #include <stdio.h>
int main(void) {
double r;
scanf("%lf", &r);
printf("%f %f\n", r * r * 3.141592653589, r * 2 * 3.141592653589);
return 0;
} | null | 227,605 | 227,606 | u204580785 | c |
p02415 | #include <ctype.h>
#include <stdio.h>
int main(void) {
char s;
while (1) {
scanf("%c", &s);
if (islower(s))
printf("%c", toupper(s));
else if (isupper(s))
printf("%c", tolower(s));
else if (s == '.') {
printf(".\n");
break;
} else if (s == '\n') {
printf("\n");
... | #include <ctype.h>
#include <stdio.h>
int main(void) {
char s;
while (1) {
scanf("%c", &s);
if (islower(s))
printf("%c", toupper(s));
else if (isupper(s))
printf("%c", tolower(s));
else if (s == '.') {
printf(".");
} else if (s == '\n') {
printf("\n");
break;
... | null | 218,026 | 218,027 | u871224043 | c |
p02552 | #include <stdio.h>
int main(void) {
int x;
scanf("%d", &x);
if (x == 0)
printf('0\n');
else
printf('1\n');
return 0;
} | #include <stdio.h>
int main(void) {
int x;
scanf("%d", &x);
if (x == 0)
printf("1\n");
else
printf("0\n");
return 0;
} | null | 247,369 | 247,370 | u989892335 | c |
p02570 | #include <stdio.h>
int main() {
int s, t, d;
scanf("%d%d%d", &s, &t, &d);
if (s * t >= d) {
printf("Yes");
} else
printf("No");
} | #include <stdio.h>
int main() {
int s, t, d;
scanf("%d%d%d", &d, &t, &s);
if (s * t >= d) {
printf("Yes");
} else
printf("No");
} | null | 258,364 | 258,365 | u827935538 | c |
p02578 | #include <stdio.h>
#include <stdlib.h>
int main() {
int n, i, step = 0;
int *a;
scanf("%d", &n);
a = calloc(n, sizeof(int));
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
for (i = 1; i < n; i++) {
if (a[i] < a[i - 1]) {
step += (a[i - 1] - a[i]);
a[i] += (a[i - 1] - a[i]);
}
}
... | #include <stdio.h>
#include <stdlib.h>
int main() {
int n, i;
long step = 0;
long *a;
scanf("%d", &n);
a = calloc(n, sizeof(long));
for (i = 0; i < n; i++)
scanf("%ld", &a[i]);
for (i = 1; i < n; i++) {
if (a[i] < a[i - 1]) {
step += (a[i - 1] - a[i]);
a[i] += (a[i - 1] - a[i]);
... | null | 276,680 | 276,681 | u367958900 | c |
p02612 | #include <stdio.h>
int main(void) {
int n, money;
scanf("%d", &n);
money = n % 1000;
if (money = 0)
printf("0");
else
printf("%d", 1000 - money);
return 0;
}
| #include <stdio.h>
int main(void) {
int n, money;
scanf("%d", &n);
money = n % 1000;
if (money == 0)
printf("0");
else
printf("%d", 1000 - money);
return 0;
}
| null | 317,487 | 317,488 | u928498781 | c |
p02657 | #include <stdio.h>
int main(void) {
int A, B;
scanf("%d,%d", &A, &B);
printf("%d,%d", A * B);
return 0;
} | #include <stdio.h>
int main(void) {
int A, B;
scanf("%d %d", &A, &B);
printf("%d", A * B);
return 0;
} | null | 370,465 | 370,466 | u215412407 | c |
p02952 | #include <stdio.h>
int main() {
int n, cnt = 0;
scanf("%d", &n);
for (; n > 0; n--) {
if (n < 10)
cnt++;
else if (n > 99 && n < 1000)
cnt++;
else if (n > 9999 && n < 100000)
cnt++;
}
printf("%d\n", n);
return 0;
} | #include <stdio.h>
int main() {
int n, cnt = 0;
scanf("%d", &n);
for (; n > 0; n--) {
if (n < 10)
cnt++;
else if (n > 99 && n < 1000)
cnt++;
else if (n > 9999 && n < 100000)
cnt++;
}
printf("%d\n", cnt);
return 0;
}
| null | 755,289 | 755,290 | u351299035 | c |
p03085 | #include <stdio.h>
int main() {
char b;
scanf("%c", &b);
if (b = 'A')
printf("T");
else if (b = 'T')
printf("A");
else if (b = 'G')
printf("C");
else
printf("G");
return 0;
} | #include <stdio.h>
int main() {
char b;
scanf("%c", &b);
if (b == 'A')
printf("T");
else if (b == 'T')
printf("A");
else if (b == 'G')
printf("C");
else
printf("G");
return 0;
} | null | 898,571 | 898,572 | u374372942 | c |
p03242 | #include <stdio.h>
int main(void) {
int n, h, t, g, new;
scanf("%d", &n);
h = n / 100;
if (h == 9) {
h = 1;
}
if (h == 1) {
h = 9;
}
t = (n % 100) / 10;
if (t == 9) {
t = 1;
}
if (t == 1) {
t = 9;
}
g = n % 10;
if (g == 9) {
g = 1;
}
if (g == 1) {
g = 9;
}
new... | #include <stdio.h>
int main(void) {
int n, h, t, g, new;
scanf("%d", &n);
h = n / 100;
if (h == 9) {
h = 1;
} else if (h == 1) {
h = 9;
}
t = (n % 100) / 10;
if (t == 9) {
t = 1;
} else if (t == 1) {
t = 9;
}
g = n % 10;
if (g == 9) {
g = 1;
} else if (g == 1) {
g = 9;
... | null | 1,031,469 | 1,031,470 | u086744592 | c |
p03449 | #include <stdio.h>
int main() {
int N, a, c, b = 0, d = 0, e = 0, f = 0, z, aa;
int o = 0;
scanf("%d", &N);
int A[N], B[N], C[N];
for (int i = 0; i < N; i++)
scanf("%d", &A[i]);
for (int j = 0; j < N; j++)
scanf("%d", &B[j]);
for (int k = 0; k < N; k++) {
d = 0;
b = 0;
for (int l = 0; ... | #include <stdio.h>
int main() {
int N, a, c, b = 0, d = 0, e = 0, f = 0, z, aa;
int o = 0;
scanf("%d", &N);
int A[N], B[N], C[N];
for (int i = 0; i < N; i++)
scanf("%d", &A[i]);
for (int j = 0; j < N; j++)
scanf("%d", &B[j]);
for (int k = 0; k < N; k++) {
d = 0;
b = 0;
for (int l = 0; ... | null | 1,197,681 | 1,197,682 | u571964801 | c |
p03337 | #include <stdio.h>
int main(void) {
int a, b, tasu, hiku, kakeru;
scanf("%d%d", &a, &b);
tasu = a + b;
hiku = a - b;
kakeru = a * b;
if (tasu >= hiku && tasu >= kakeru) {
printf("%d", tasu);
}
if (hiku >= tasu && hiku >= kakeru) {
printf("%d", hiku);
}
if (kakeru >= tasu && kakeru >= hiku)... | #include <stdio.h>
int main(void) {
int a, b, tasu, hiku, kakeru;
scanf("%d%d", &a, &b);
tasu = a + b;
hiku = a - b;
kakeru = a * b;
if (tasu >= hiku && tasu >= kakeru) {
printf("%d\n", tasu);
} else if (hiku >= tasu && hiku >= kakeru) {
printf("%d\n", hiku);
} else if (kakeru >= tasu && kaker... | null | 1,111,149 | 1,111,150 | u692944107 | c |
p03473 | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
int M;
scanf("%d", M);
M = 24 - M;
M = M + 24;
printf("%d\n", M);
return (0);
} | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
int M;
scanf("%d", &M);
M = 24 - M;
M = M + 24;
printf("%d\n", M);
return (0);
} | null | 1,225,290 | 1,225,291 | u451390318 | c |
p03679 | #include <stdio.h>
int main() {
int x, a, b;
scanf("%d %d %d", &x, &a, &b);
if (b < a)
printf("delicious\n");
else if (b < (a + x))
printf("safe\n");
else
printf("dangerous\n");
return 0;
}
| #include <stdio.h>
int main() {
int x, a, b;
scanf("%d %d %d", &x, &a, &b);
if (b <= a)
printf("delicious\n");
else if (b <= (a + x))
printf("safe\n");
else
printf("dangerous\n");
return 0;
}
| null | 1,354,865 | 1,354,866 | u806571808 | c |
p03681 | #include <stdio.h>
int main(void) {
int d, m;
unsigned long long int p = 1;
scanf("%d%d", &d, &m);
switch (d - m) {
case 0:
for (int i = 1; i <= d; i++) {
p = p * i;
p = p % 1000000007;
}
p = p * p;
p = p % 1000000007;
p = p * 2;
break;
case -1:
for (int i = 1; i <= d... | #include <stdio.h>
int main(void) {
int d, m;
unsigned long long int p = 1;
scanf("%d%d", &d, &m);
switch (d - m) {
case 0:
for (int i = 1; i <= d; i++) {
p = p * i;
p = p % 1000000007;
}
p = p * p;
p = p % 1000000007;
p = p * 2;
break;
case -1:
for (int i = 1; i <= d... | null | 1,357,482 | 1,357,483 | u857484987 | c |
p03860 | #include <stdio.h>
int main() {
char s[1000];
scanf("%s", s);
printf("A%cC", s[8]);
return 0;
} | #include <stdio.h>
int main() {
char s[1000];
gets(s);
printf("A%cC", s[8]);
return 0;
} | null | 1,469,824 | 1,469,825 | u363594351 | c |
p04029 | #include <stdio.h>
int main(void) {
int N, sum = 0, i;
scanf("%d", &N);
for (i = 1; i < N; i++) {
sum = sum + i;
}
printf("%d", sum);
return 0;
} | #include <stdio.h>
int main(void) {
int N, sum = 0, i;
scanf("%d", &N);
for (i = 1; i <= N; i++) {
sum = sum + i;
}
printf("%d", sum);
return 0;
} | null | 1,519,177 | 1,519,178 | u705789458 | c |
p03679 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) a.begin(), a.end()
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a > b)
cout << "delicious" << endl;
else if (x >= b - a)
cout << "safe" << endl;
else... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) a.begin(), a.end()
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a >= b)
cout << "delicious" << endl;
else if (x >= b - a)
cout << "safe" << endl;
els... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,691 | 1,354,692 | u644856766 | cpp |
p03679 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) a.begin(), a.end()
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a > b)
cout << "Delicious" << endl;
else if (x >= b - a)
cout << "Safe" << endl;
else... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) FOR(i, 0, n)
#define ALL(a) a.begin(), a.end()
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a >= b)
cout << "delicious" << endl;
else if (x >= b - a)
cout << "safe" << endl;
els... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"literal.string.change",
"literal.string.case.change",
"io.output.change"
] | 1,354,693 | 1,354,692 | u644856766 | cpp |
p03679 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int n, a, b;
int main() {
cin >> n >> a >> b;
if (a >= b)
cout << "delicious" << endl;
else if (n > (b - a))
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int n, a, b;
int main() {
cin >> n >> a >> b;
if (a >= b)
cout << "delicious" << endl;
else if (n >= (b - a))
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,694 | 1,354,695 | u905330593 | cpp |
p03679 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a + b < c)
cout << "dangerous";
else if (c < b)
cout << "delicious";
else
cout << "safe";
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a + b < c)
cout << "dangerous";
else if (c <= b)
cout << "delicious";
else
cout << "safe";
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,696 | 1,354,697 | u437391064 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a - b > 0) {
cout << "delicious" << endl;
} else if (x - (b - a) > 0) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
}
| #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a - b >= 0) {
cout << "delicious" << endl;
} else if (x - (b - a) >= 0) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,698 | 1,354,699 | u280590671 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a - b >= 0) {
cout << "delicious" << endl;
} else if (b - a < x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a - b >= 0) {
cout << "delicious" << endl;
} else if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,702 | 1,354,703 | u780122303 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a - b > 0) {
cout << "delicious" << endl;
} else if (b - a < x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a - b >= 0) {
cout << "delicious" << endl;
} else if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,704 | 1,354,703 | u780122303 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a < 0) {
cout << "delicious" << endl;
} else if (b - a < x) {
cout << "safe" << endl;
}
else
cout << "dangerous" << endl;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a <= x) {
cout << "safe" << endl;
}
else
cout << "dangerous" << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,705 | 1,354,706 | u226223646 | cpp |
p03679 | #include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, x;
cin >> x >> a >> b;
if (b - a >= x) {
cout << "dangerous" << endl;
} else if (a > b) {
cout << "delicious" << endl;
} else {
cout << "safe" << endl;
}
}
| #include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, x;
cin >> x >> a >> b;
if (b - a > x) {
cout << "dangerous" << endl;
} else if (a >= b) {
cout << "delicious" << endl;
} else {
cout << "safe" << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,708 | 1,354,709 | u598932255 | cpp |
p03679 | #include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, x;
cin >> x >> a >> b;
if (b - a >= x) {
cout << "dangerous" << endl;
} else if (a >= b) {
cout << "delicious" << endl;
} else {
cout << "safe" << endl;
}
}
| #include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a, b, x;
cin >> x >> a >> b;
if (b - a > x) {
cout << "dangerous" << endl;
} else if (a >= b) {
cout << "delicious" << endl;
} else {
cout << "safe" << endl;
}
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,710 | 1,354,709 | u598932255 | cpp |
p03679 | // ABC067_A.cpp : Defines the entry point for the console application.
//
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b, x;
cin >> x >> a >> b;
if (x < b - a) {
cout << "dangerous" << endl;
} else if (x >= b - a && 0 < b - a) {
cout << "safe" << endl;
} else if... | // ABC067_A.cpp : Defines the entry point for the console application.
//
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b, x;
cin >> x >> a >> b;
if (x < b - a) {
cout << "dangerous" << endl;
} else if (x >= b - a && 0 < b - a) {
cout << "safe" << endl;
} else if... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,715 | 1,354,716 | u317731893 | cpp |
p03679 | #include <iostream>
using namespace std;
int main(void) {
int x, a, b;
cin >> x >> a >> b;
if (a >= b)
cout << "delicious" << endl;
else {
if (b - a < x)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int x, a, b;
cin >> x >> a >> b;
if (a >= b)
cout << "delicious" << endl;
else {
if (b - a <= x)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,717 | 1,354,718 | u599422759 | cpp |
p03679 | #include <algorithm>
#include <cmath>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int x, a, b;
cin >> x >> a >> b;
if (... | #include <algorithm>
#include <cmath>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main(void) {
int x, a, b;
cin >> x >> a >> b;
if (... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,719 | 1,354,720 | u365058393 | cpp |
p03679 | //-------------
// include
//-------------
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <random>
#include <string>
#include <vector>
using namespace std;
//-------------
// typedef
//-------------
typedef long long LL;
typedef vec... | //-------------
// include
//-------------
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <list>
#include <map>
#include <random>
#include <string>
#include <vector>
using namespace std;
//-------------
// typedef
//-------------
typedef long long LL;
typedef vec... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,731 | 1,354,732 | u001513927 | cpp |
p03679 | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#define INF... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#define INF... | [
"literal.string.change",
"io.output.change"
] | 1,354,735 | 1,354,736 | u836644468 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a > 0 && b - a < x) {
cout << "safe" << endl;
} else if (b - a >= x + 1) {
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a > 0 && b - a < x + 1) {
cout << "safe" << endl;
} else if (b - a >= x + 1) {
cout << "dangerous" << endl;
}
return 0;
} | [
"control_flow.branch.if.condition.change"
] | 1,354,737 | 1,354,738 | u051759495 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a > 0 && b - a <= x + 1) {
cout << "safe" << endl;
} else if (b - a > x + 1) {
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a > 0 && b - a < x + 1) {
cout << "safe" << endl;
} else if (b - a >= x + 1) {
cout << "dangerous" << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,739 | 1,354,738 | u051759495 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicous" << endl;
} else if (b - a > 0 && b - a <= x + 1) {
cout << "safe" << endl;
} else if (b - a > x + 1) {
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a > 0 && b - a < x + 1) {
cout << "safe" << endl;
} else if (b - a >= x + 1) {
cout << "dangerous" << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,740 | 1,354,738 | u051759495 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicous" << endl;
} else if (b - a > 0 && b - a < x) {
cout << "safe" << endl;
} else if (b - a > x) {
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a > 0 && b - a < x + 1) {
cout << "safe" << endl;
} else if (b - a >= x + 1) {
cout << "dangerous" << endl;
}
return 0;
} | [
"literal.string.change",
"io.output.change",
"control_flow.branch.if.condition.change",
"expression.operator.compare.change"
] | 1,354,741 | 1,354,738 | u051759495 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int X, A, B;
cin >> X >> A >> B;
//
if (A - B > 0)
cout << "delicious" << endl;
else if (A - B < 0 && abs(A - B) < X)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int X, A, B;
cin >> X >> A >> B;
//
if (A - B >= 0)
cout << "delicious" << endl;
else if (A - B < 0 && abs(A - B) <= X)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,742 | 1,354,743 | u240186829 | cpp |
p03679 | #include <cstdio>
int a, b, x;
int main() {
scanf("%d %d %d", &x, &a, &b);
if (b - a <= x)
printf("safe\n");
else if (b - a <= 0)
printf("delicious\n");
else
printf("dangerous\n");
return 0;
}
| #include <cstdio>
int a, b, x;
int main() {
scanf("%d %d %d", &x, &a, &b);
if (b - a <= 0)
printf("delicious\n");
else if (b - a <= x)
printf("safe\n");
else
printf("dangerous\n");
return 0;
}
| [
"call.remove",
"control_flow.branch.if.replace.add",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.add",
"call.add"
] | 1,354,744 | 1,354,745 | u559820201 | cpp |
p03679 | #include <cstdio>
int a, b, x;
int main() {
scanf("%d %d %d", &x, &a, &b);
if (b - a <= 0)
printf("delicious\n");
else if (b - a > x)
printf("dengerous\n");
else
printf("safe\n");
return 0;
}
| #include <cstdio>
int a, b, x;
int main() {
scanf("%d %d %d", &x, &a, &b);
if (b - a <= 0)
printf("delicious\n");
else if (b - a <= x)
printf("safe\n");
else
printf("dangerous\n");
return 0;
}
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"call.remove",
"control_flow.branch.else.remove",
"control_flow.branch.else_if.replace.remove",
"control_flow.branch.if.replace.add",
"call.add"
] | 1,354,746 | 1,354,745 | u559820201 | cpp |
p03679 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char **argv) {
(void)argc;
(void)argv;
int X, A, B;
cin >> X >> A >> B;
if (B < A) {
printf("delicious\n");
} else if (B < (A + X)) {
printf("... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char **argv) {
(void)argc;
(void)argv;
int X, A, B;
cin >> X >> A >> B;
if (B <= A) {
printf("delicious\n");
} else if (B <= (A + X)) {
printf... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,747 | 1,354,748 | u262702665 | cpp |
p03679 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#define FOR(I, A, B) for (in... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#define FOR(I, A, B) for (in... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,749 | 1,354,750 | u310790595 | cpp |
p03679 | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#define FOR(I, A, B) for (in... | #include <algorithm>
#include <bitset>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
using namespace std;
#define FOR(I, A, B) for (in... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,751 | 1,354,750 | u310790595 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b <= a) {
cout << "delicious" << endl;
return 0;
} else if (b > a) {
if (b - a <= x + 1) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b <= a) {
cout << "delicious" << endl;
return 0;
} else if (b > a) {
if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
}
return 0;
} | [
"expression.operation.binary.remove"
] | 1,354,756 | 1,354,757 | u274819371 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b <= a) {
cout << "delicious" << endl;
return 0;
} else if (b > a) {
if (b - a < x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b <= a) {
cout << "delicious" << endl;
return 0;
} else if (b > a) {
if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,758 | 1,354,757 | u274819371 | cpp |
p03679 |
#include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b <= a) {
cout << "delicious" << endl;
return 0;
} else if (b > a) {
if (b - a < x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b <= a) {
cout << "delicious" << endl;
return 0;
} else if (b > a) {
if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,759 | 1,354,757 | u274819371 | cpp |
p03679 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a < 0)
cout << "delicious" << endl;
else if (b - a <= x)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0)
cout << "delicious" << endl;
else if (b - a <= x)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,765 | 1,354,766 | u348670055 | cpp |
p03679 | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a < 0)
cout << "delicious" << endl;
else if (b - a < x)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0)
cout << "delicious" << endl;
else if (b - a <= x)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,767 | 1,354,766 | u348670055 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
if (z - y >= 0) {
cout << "delicious" << endl;
} else if (-(z - y) <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
if (z - y <= 0) {
cout << "delicious" << endl;
} else if (z - y <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,768 | 1,354,769 | u516869225 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
if (z - y >= 0) {
cout << "delicious" << endl;
} else if (z - y <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
if (z - y <= 0) {
cout << "delicious" << endl;
} else if (z - y <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,770 | 1,354,769 | u516869225 | cpp |
p03679 | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <vector>
using namespace std;
int a, b, c;
int main(void) {
cin >> a >> b >> c;
int d = c - b;
if (d > 0 && a > d)
cout << "safe";
if (d <= 0)
cout << "delicious";
if (a < d)
cout << "dangerous";
cout << endl;
r... | #include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <vector>
using namespace std;
int a, b, c;
int main(void) {
cin >> a >> b >> c;
int d = c - b;
if (d > 0 && a >= d)
cout << "safe";
if (d <= 0)
cout << "delicious";
if (a < d)
cout << "dangerous";
cout << endl;
... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,771 | 1,354,772 | u697232864 | cpp |
p03679 | #include <algorithm>
#include <iostream>
using namespace std;
int x, a, b;
int main() {
cin >> x >> a >> b;
b -= a;
if (b <= 0)
cout << "delicious" << endl;
else if (b <= x)
cout << "safe" << endl;
else
cout << "dengerous" << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int x, a, b;
int main() {
cin >> x >> a >> b;
b -= a;
if (b <= 0)
cout << "delicious" << endl;
else if (b <= x)
cout << "safe" << endl;
else
cout << "dangerous" << endl;
return 0;
} | [
"literal.string.change",
"io.output.change"
] | 1,354,773 | 1,354,774 | u299869545 | cpp |
p03679 | #include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
#define INF 999999
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b <= a)
cout << "delicious" << endl;
else if (b - a > x)
cout << "dengerous" << ... | #include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <queue>
#include <set>
#include <vector>
#define INF 999999
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0)
cout << "delicious" << endl;
else if (b - a > x)
cout << "dangerous"... | [
"control_flow.branch.if.condition.change",
"literal.string.change",
"io.output.change"
] | 1,354,775 | 1,354,776 | u993235301 | cpp |
p03679 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
int x, a, b;
cin >> x, a, b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
}
| #include <iostream>
#include <string>
using namespace std;
int main(void) {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
return 0;
}
| [] | 1,354,777 | 1,354,778 | u057611820 | cpp |
p03679 | #include <stdio.h>
int main() {
int x, a, b;
scanf("%d%d%d", &x, &a, &b);
if (b <= a) {
puts("delicious");
} else if (x + a + 1 >= b) {
puts("safe");
} else {
puts("dangerous");
}
return 0;
} | #include <stdio.h>
int main() {
int x, a, b;
scanf("%d%d%d", &x, &a, &b);
if (b <= a) {
puts("delicious");
} else if (x + a >= b) {
puts("safe");
} else {
puts("dangerous");
}
return 0;
} | [
"expression.operation.binary.remove"
] | 1,354,781 | 1,354,782 | u310985222 | cpp |
p03679 | #include <iostream>
int main() {
int X, A, B;
std::cin >> X >> A >> B;
int diff = A - B;
if (diff <= 0) {
std::cout << "delicious\n";
} else if (diff <= X) {
std::cout << "safe\n";
} else {
std::cout << "dangerous\n";
}
return 0;
}
| #include <iostream>
int main() {
int X, A, B;
std::cin >> X >> A >> B;
int diff = B - A;
if (diff <= 0) {
std::cout << "delicious\n";
} else if (diff <= X) {
std::cout << "safe\n";
} else {
std::cout << "dangerous\n";
}
return 0;
}
| [
"expression.operation.binary.remove"
] | 1,354,789 | 1,354,790 | u859781218 | cpp |
p03679 | #include <stdio.h>
int main(void) {
int x, a, b;
scanf("%d%d%d", &x, &a, &b);
if (a > b)
printf("delicious\n");
else {
if (x + (a - b) < 0)
printf("dangerous\n");
else
printf("safe\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, a, b;
scanf("%d%d%d", &x, &a, &b);
if (a >= b)
printf("delicious\n");
else {
if (x + (a - b) < 0)
printf("dangerous\n");
else
printf("safe\n");
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,791 | 1,354,792 | u399080687 | cpp |
p03679 | #include <stdio.h>
int main(void) {
int x, a, b;
scanf("%d %d %d", &x, &a, &b);
if (a >= b)
printf("delicious\n");
else if (b - a < x)
printf("safe\n");
else if (b - a > x)
printf("dangerous\n");
return 0;
} | #include <stdio.h>
int main(void) {
int x, a, b;
scanf("%d %d %d", &x, &a, &b);
if (a >= b)
printf("delicious\n");
else if (b - a <= x)
printf("safe\n");
else if (b - a >= x)
printf("dangerous\n");
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,793 | 1,354,794 | u969185594 | cpp |
p03679 | #include <stdio.h>
int main(void) {
int x, a, b;
scanf("%d %d %d", &x, &a, &b);
if (a > b)
printf("delicious\n");
else if (b - a < x)
printf("safe\n");
else if (b - a > x)
printf("dangerous\n");
return 0;
} | #include <stdio.h>
int main(void) {
int x, a, b;
scanf("%d %d %d", &x, &a, &b);
if (a >= b)
printf("delicious\n");
else if (b - a <= x)
printf("safe\n");
else if (b - a >= x)
printf("dangerous\n");
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,795 | 1,354,794 | u969185594 | cpp |
p03679 | //#define __USE_MINGW_ANSI_STDIO 0
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef pair<int, int> PII;
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
#defi... | //#define __USE_MINGW_ANSI_STDIO 0
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef pair<int, int> PII;
#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
#defi... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,797 | 1,354,798 | u333917945 | cpp |
p03679 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int a;
cin >> a;
int b;
cin >> b;
if (x + a < b)
cout << "dangerous" << endl;
else if (a > b)
cout << "delicious" << endl;
else
cout << "safe " << endl;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int a;
cin >> a;
int b;
cin >> b;
if (x + a < b)
cout << "dangerous" << endl;
else if (a >= b)
cout << "delicious" << endl;
else
cout << "safe " << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,799 | 1,354,800 | u160591582 | cpp |
p03679 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int a;
cin >> a;
int b;
cin >> b;
if (x + a < b)
cout << "dangerous" << endl;
if (a > b)
cout << "delicious" << endl;
else
cout << "safe " << endl;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int a;
cin >> a;
int b;
cin >> b;
if (x + a < b)
cout << "dangerous" << endl;
else if (a >= b)
cout << "delicious" << endl;
else
cout << "safe " << endl;
} | [
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,801 | 1,354,800 | u160591582 | cpp |
p03679 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int a;
cin >> a;
int b;
cin >> b;
if (x + a <= b)
cout << "dangerous" << endl;
if (x + a >= b)
cout << "delicious" << endl;
else
cout << "safe " << endl;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x;
cin >> x;
int a;
cin >> a;
int b;
cin >> b;
if (x + a < b)
cout << "dangerous" << endl;
else if (a >= b)
cout << "delicious" << endl;
else
cout << "safe " << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"control_flow.branch.else_if.replace.add",
"control_flow.branch.if.replace.remove",
"expression.operation.binary.remove"
] | 1,354,802 | 1,354,800 | u160591582 | cpp |
p03679 | #include <iostream>
#include <sstream>
#include <stdio.h>
#define FOR(x, z, y) for (int x = (z); y; x++)
#define rep(x, y) for (int x = 0; x < (y); x++)
#define all(x) x.begin(), x.end()
#define len(x) (sizeof(x) / sizeof(x[0]))
#define split_str(str, sp_word) \
istring... | #include <iostream>
#include <sstream>
#include <stdio.h>
#define FOR(x, z, y) for (int x = (z); y; x++)
#define rep(x, y) for (int x = 0; x < (y); x++)
#define all(x) x.begin(), x.end()
#define len(x) (sizeof(x) / sizeof(x[0]))
#define split_str(str, sp_word) \
istring... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,803 | 1,354,804 | u427769988 | cpp |
p03679 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a > b)
cout << "delicious" << endl;
else if (b - a <= x)
cout << "safe" << endl;
else if (b - a > x)
cout << "dangerous" << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (a >= b)
cout << "delicious" << endl;
else if (b - a <= x)
cout << "safe" << endl;
else if (b - a > x)
cout << "dangerous" << endl;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,810 | 1,354,811 | u897726798 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a < -x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.unary.arithmetic.remove"
] | 1,354,813 | 1,354,814 | u576522716 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a >= 0) {
cout << "delicious" << endl;
} else if (b - a < -x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change",
"expression.operation.unary.arithmetic.remove"
] | 1,354,815 | 1,354,814 | u576522716 | cpp |
p03679 | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a >= 0) {
cout << "delicious" << endl;
} else if (b - a < x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
if (b - a <= 0) {
cout << "delicious" << endl;
} else if (b - a <= x) {
cout << "safe" << endl;
} else {
cout << "dangerous" << endl;
}
} | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,816 | 1,354,814 | u576522716 | cpp |
p03679 | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
const ll INF = 1000000000000000000ll;
const ll MOD = 1000000007ll;
const double EPS = 1e-8;
int main(void) {
// ios_base::sync_with_stdio(false);
// cin.tie(0);
int x, a, b;
cin >> x >> a >> b;
if (b < a) {
puts("... | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
const ll INF = 1000000000000000000ll;
const ll MOD = 1000000007ll;
const double EPS = 1e-8;
int main(void) {
// ios_base::sync_with_stdio(false);
// cin.tie(0);
int x, a, b;
cin >> x >> a >> b;
if (b <= a) {
puts(... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,817 | 1,354,818 | u753982487 | cpp |
p03679 | #include <iostream>
using namespace std;
#define DL "delicious"
#define SF "safe"
#define DG "dangerous"
int x, a, b;
int main() {
cin >> x >> a >> b;
if (a >= b) {
cout << DL << endl;
} else if (a < b && a + x > b) {
cout << SF << endl;
} else {
cout << DG << endl;
}
return 0;
} | #include <iostream>
using namespace std;
#define DL "delicious"
#define SF "safe"
#define DG "dangerous"
int x, a, b;
int main() {
cin >> x >> a >> b;
if (a >= b) {
cout << DL << endl;
} else if (a < b && a + x >= b) {
cout << SF << endl;
} else {
cout << DG << endl;
}
return 0;
} | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 1,354,819 | 1,354,820 | u294283114 | cpp |
p03679 | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
cout << (b <= a ? "delicious" : (x - b + a >= 0 ? "safe" : "dengerous"))
<< endl;
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, a, b;
cin >> x >> a >> b;
cout << (b <= a ? "delicious" : (x - b + a >= 0 ? "safe" : "dangerous"))
<< endl;
return 0;
}
| [
"literal.string.change",
"io.output.change"
] | 1,354,829 | 1,354,830 | u024612773 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.