buggy_code stringlengths 11 625k | fixed_code stringlengths 17 625k | bug_type stringlengths 2 4.45k | language int64 0 8 | token_count int64 5 200k |
|---|---|---|---|---|
#include <stdio.h>
int main(void) {
int r, i, t;
int n[3];
scanf("%d %d %d", &n[0], &n[1], &n[2]);
for (r = 3; r >= 0; r--) {
for (i = 0; i < 3; i++) {
if (n[r] > n[i]) {
t = n[r];
n[r] = n[i];
n[i] = t;
}
}
}
printf("%d %d %d\n", n[0], n[1], n[2]);
return 0;
} | #include <stdio.h>
int main(void) {
int r, i, t;
int n[3];
scanf("%d %d %d", &n[0], &n[1], &n[2]);
for (r = 2; r >= 0; r--) {
for (i = 0; i < r; i++) {
if (n[i] > n[r]) {
t = n[r];
n[r] = n[i];
n[i] = t;
}
}
}
printf("%d %d %d\n", n[0], n[1], n[2]);
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 0, 57, 15, 23, 0, 16, 31, 69, 71, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 22], ["-", 0, 57, 15, 23, 0, 16, 12, 69, 71, 22], ["+", 0, 57, 15, 2... | 0 | 141 |
#include <stdio.h>
int main() {
int a;
int b;
int c;
int ah;
int bh;
int ch;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
bh = b;
b = a;
a = bh;
}
if (b > c) {
ch = c;
c = b;
b = ch;
}
if (a < b) {
bh = b;
b = a;
a = bh;
}
printf("%d %d %d\n", a, b, c);
... | #include <stdio.h>
int main() {
int a;
int b;
int c;
int ah;
int bh;
int ch;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
bh = b;
b = a;
a = bh;
}
if (b > c) {
ch = c;
c = b;
b = ch;
}
if (a > b) {
bh = b;
b = a;
a = bh;
}
printf("%d %d %d\n", a, b, c);
... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]] | 0 | 119 |
#include <stdio.h>
int main(void) {
int max, dur, min;
int temp;
scanf("%d %d %d", &max, &dur, &min);
if (min > dur) {
temp = min;
min = dur;
dur = temp;
}
if (dur > max) {
temp = max;
max = dur;
dur = temp;
}
if (min > dur) {
temp = min;
min = max;
max = temp;
}... | #include <stdio.h>
int main(void) {
int max, dur, min;
int temp;
scanf("%d %d %d", &max, &dur, &min);
if (min > dur) {
temp = min;
min = dur;
dur = temp;
}
if (dur > max) {
temp = max;
max = dur;
dur = temp;
}
if (min > dur) {
temp = min;
min = dur;
dur = temp;
}... | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22]] | 0 | 118 |
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
printf("%d %d %d\n",
((a > b) && (a > c)) ? a
: (b > c) ? b
: c,
(a - b) * (a - c) < 0 ? a
: (b - a) * (b - c) < 0 ? b
: c,
... | #include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
printf("%d %d %d\n",
((a < b) && (a < c)) ? a
: (b < c) ? b
: c,
(a - b) * (a - c) < 0 ? a
: (b - a) * (b - c) < 0 ? b
: c,
... | [["-", 15, 23, 0, 16, 31, 23, 0, 16, 17, 47], ["+", 15, 23, 0, 16, 31, 23, 0, 16, 17, 18], ["-", 15, 23, 0, 16, 12, 23, 0, 16, 17, 47], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 18], ["-", 0, 41, 75, 41, 15, 23, 0, 16, 17, 47], ["+", 0, 41, 75, 41, 15, 23, 0, 16, 17, 18], ["-", 0, 41, 15, 16, 31, 23, 0, 16, 17, 18], ["+"... | 0 | 126 |
#include <stdio.h>
main() {
int x, y, z, temp;
scanf("%d %d %d", &x, &y, &z);
if (x > y) {
temp = x;
x = y;
y = temp;
if (y > z) {
temp = y;
y = z;
z = temp;
if (x > y) {
temp = x;
x = y;
y = temp;
}
}
}
printf("%d %d %d\n", x, y... | #include <stdio.h>
main() {
int x, y, z, temp;
scanf("%d %d %d", &x, &y, &z);
if (x > y) {
temp = x;
x = y;
y = temp;
}
if (y > z) {
temp = y;
y = z;
z = temp;
}
if (x > y) {
temp = x;
x = y;
y = temp;
}
printf("%d %d %d\n", x, y, z);
return 0;
} | [["+", 0, 30, 0, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 0 | 110 |
#include <stdio.h>
int main() {
int a, b, c;
int min, mid, max;
int tmp;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a < b) {
min = a;
mid = b;
} else {
min = b;
mid = a;
}
if (mid < c) {
max = c;
} else {
max = mid;
c = mid;
}
if (mid < min) {
tmp... | #include <stdio.h>
int main() {
int a, b, c;
int min, mid, max;
int tmp;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a < b) {
min = a;
mid = b;
} else {
min = b;
mid = a;
}
if (mid < c) {
max = c;
} else {
max = mid;
mid = c;
}
if (mid < min) {
tmp... | [["-", 75, 76, 0, 9, 0, 1, 0, 11, 31, 22], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 17, 32], ["+", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22]] | 0 | 142 |
#include <stdio.h>
int main(void) {
int a;
int b;
int c;
int tmp;
scanf("%d %d %d", a, b, c);
if (a > b) {
tmp = a;
a = b;
b = tmp;
}
if (b > c) {
tmp = b;
b = c;
c = tmp;
}
if (a > b) {
tmp = a;
a = b;
b = tmp;
}
printf("%d %d %d", a, b, c);
return ... | #include <stdio.h>
int main(void) {
int a;
int b;
int c;
int tmp;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
tmp = a;
a = b;
b = tmp;
}
if (b > c) {
tmp = b;
b = c;
c = tmp;
}
if (a > b) {
tmp = a;
a = b;
b = tmp;
}
printf("%d %d %d\n", a, b, c);
re... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 110 |
#include <stdio.h>
int main() {
int array[3], tmp, i, j;
for (i = 0; i < 3; i++) {
scanf("%d", &array[i]);
}
for (i = 0; i < 2; i++) {
for (j = 0; j < 2 - i; i++) {
if (array[j] > array[j + 1]) {
tmp = array[j];
array[j] = array[j + 1];
array[j + 1] = tmp;
}
}
... | #include <stdio.h>
int main() {
int array[3], tmp, i, j;
for (i = 0; i < 3; i++) {
scanf("%d", &array[i]);
}
for (i = 0; i < 2; i++) {
for (j = 0; j < 2 - i; j++) {
if (array[j] > array[j + 1]) {
tmp = array[j];
array[j] = array[j + 1];
array[j + 1] = tmp;
}
}
... | [["-", 0, 7, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 7, 8, 9, 0, 7, 26, 27, 28, 22]] | 0 | 150 |
#include <math.h>
#include <stdio.h>
int main(void) {
int i, j, temp;
int array[3];
scanf("%d %d %d", &array[0], &array[1], &array[2]);
for (i = 0; i < 2; i++) {
for (j = 0; i < 2; i++) {
if (array[j + 1] < array[j]) {
temp = array[j];
array[j] = array[j + 1];
array[j + 1] = t... | #include <math.h>
#include <stdio.h>
int main(void) {
int i, j, temp;
int array[3];
scanf("%d %d %d", &array[0], &array[1], &array[2]);
for (i = 0; i < 2; i++) {
for (j = 0; j < 2; j++) {
if (array[j + 1] < array[j]) {
temp = array[j];
array[j] = array[j + 1];
array[j + 1] = t... | [["-", 0, 7, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 31, 22], ["-", 0, 7, 8, 9, 0, 7, 26, 27, 28, 22], ["+", 0, 7, 8, 9, 0, 7, 26, 27, 28, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 152 |
#include <stdio.h>
int main(void) {
int a, b, c, d;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
d = a, a = b, b = d;
}
if (a > c) {
d = c, c = b, b = a, a = d;
}
if (b > c) {
d = c, c = b, b = d;
}
printf("%d %d %d\n", &a, &b, &c);
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, d;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
d = a, a = b, b = d;
}
if (a > c) {
d = c, c = b, b = a, a = d;
}
if (b > c) {
d = c, c = b, b = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 118 |
#include <stdio.h>
int main() {
int a, b, c, x, y, z;
scanf("%d%d%d", &a, &b, &c);
if (a < b) {
x = a;
a = b;
b = x;
}
if (b < c) {
y = b;
b = c;
c = y;
}
if (a < b) {
z = a;
a = b;
b = z;
}
printf("%d %d %d\n", a, b, c);
return (0);
} | #include <stdio.h>
int main() {
int a, b, c, x, y, z;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
y = b;
b = c;
c = y;
}
if (a > b) {
z = a;
a = b;
b = z;
}
printf("%d %d %d\n", a, b, c);
return (0);
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]] | 0 | 116 |
#include <stdio.h>
int main(void) {
// bubble sort
int i, j, temp;
int arr[3] = {
0,
};
scanf("%d %d %d", &arr[0], &arr[1], &arr[2]);
for (i = 0; i < 2; i++) {
for (j = 2; j > i; j--) {
if (arr[j - 1] > arr[j])
temp = arr[j];
arr[j] = arr[j - 1];
arr[j - 1] = temp;
... | #include <stdio.h>
int main(void) {
// bubble sort
int i, j, temp;
int arr[3] = {
0,
};
scanf("%d %d %d", &arr[0], &arr[1], &arr[2]);
for (i = 0; i < 2; i++) {
for (j = 2; j > i; j--) {
if (arr[j - 1] > arr[j]) {
temp = arr[j];
arr[j] = arr[j - 1];
arr[j - 1] = tem... | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 0 | 151 |
#include <stdio.h>
int main(void) {
int a, b, c, max, min, medium;
scanf("%d %d %d", &a, &b, &c);
if (a > c) {
if (a > b) {
max = a;
if (b > c) {
min = c;
medium = b;
} else {
min = b;
medium = c;
}
} else {
max = b;
min = c;
mediu... | #include <stdio.h>
int main(void) {
int a, b, c, max, min, medium;
scanf("%d %d %d", &a, &b, &c);
if (a >= c) {
if (a >= b) {
max = a;
if (b >= c) {
min = c;
medium = b;
} else {
min = b;
medium = c;
}
} else {
max = b;
min = c;
me... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 64, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 64, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 0, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["-", 75, 76, 0, 9, 0, 1, 0, 11, 12, 22], ["+", 75, 76, 0, ... | 0 | 174 |
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a <= c && b <= c) {
if (a <= b) {
printf("%d %d %d?\n", a, b, c);
} else {
printf("%d %d %d\n", b, a, c);
}
} else if (b <= a && c <= a) {
if (b <= c) {
printf("%d %d %d\n", b, c, a);
} else... | #include <stdio.h>
int main() {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a <= c && b <= c) {
if (a <= b) {
printf("%d %d %d\n", a, b, c);
} else {
printf("%d %d %d\n", b, a, c);
}
} else if (b <= a && c <= a) {
if (b <= c) {
printf("%d %d %d\n", b, c, a);
} else ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 189 |
#include <stdio.h>
int main(void) {
int a[3];
int i, j;
int temp;
for (i = 0; i < 3; ++i)
scanf("%d", &a[i]);
for (i = 1; i < 3 - 1; ++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[... | #include <stdio.h>
int main(void) {
int a[3];
int i, j;
int temp;
for (i = 0; i < 3; ++i)
scanf("%d", &a[i]);
for (i = 0; i < 3 - 1; ++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, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13]] | 0 | 147 |
#include <stdio.h>
int main(void) {
int i, j;
int num[4];
scanf("%d %d %d", &num[0], &num[1], &num[2]);
for (i = 0; i < 1; i++) {
for (j = 0; j < 1; j++) {
if (num[j] > num[j + 1]) {
num[3] = num[j];
num[j] = num[j + 1];
num[j + 1] = num[3];
}
}
}
printf("%d %d... | #include <stdio.h>
int main(void) {
int i, j;
int num[4];
scanf("%d %d %d", &num[0], &num[1], &num[2]);
for (i = 0; i < 2; i++) {
for (j = 0; j < 2; j++) {
if (num[j] > num[j + 1]) {
num[3] = num[j];
num[j] = num[j + 1];
num[j + 1] = num[3];
}
}
}
printf("%d %d... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 153 |
#include <stdio.h>
void exchange(int *a, int *b) {
int c;
c = *a;
*a = *b;
*b = c;
}
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a >= 0 && a <= 100 && b >= 0 && b <= 100 && c >= 0 && c <= 100) {
if (a > b)
exchange(&a, &b);
if (a > c)
exchange(&a, &c);
if (b... | #include <stdio.h>
void exchange(int *a, int *b) {
int c;
c = *a;
*a = *b;
*b = c;
}
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a >= 0 && a <= 10000 && b >= 0 && b <= 10000 && c >= 0 && c <= 10000) {
if (a > b)
exchange(&a, &b);
if (a > c)
exchange(&a, &c);
... | [["-", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 31, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["+", 0, 16, 31, 16, 31, 16, 12, 16, 12, 13], ["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]] | 0 | 154 |
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a <= b && a <= c) {
printf("%d ", a);
if (b <= c)
printf("%d %d\n", b, c);
else
printf("%d %d\n", c, b);
} else if (c <= b) {
printf("%d", c);
if (a <= b)
printf("%d %d\n", a, b);
else
... | #include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a <= b && a <= c) {
printf("%d ", a);
if (b <= c)
printf("%d %d\n", b, c);
else
printf("%d %d\n", c, b);
} else if (c <= b) {
printf("%d ", c);
if (a <= b)
printf("%d %d\n", a, b);
else
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 172 |
#include <stdio.h>
int main(void) {
int num[3], i, j, key;
scanf("%d %d %d", &num[0], &num[1], &num[2]);
for (i = 0; i < 3; i++) {
if (num[i] < 1 || num[i] > 10000)
return 0;
}
for (i = 1; i < 3; i++) {
key = num[i];
for (j = i - 1; j >= 0; j--) {
if (key >= num[j]) {
num[j + 1... | #include <stdio.h>
int main(void) {
int num[3], i, j, key;
scanf("%d %d %d", &num[0], &num[1], &num[2]);
for (i = 0; i < 3; i++) {
if (num[i] < 1 || num[i] > 10000)
return 0;
}
for (i = 1; i < 3; i++) {
key = num[i];
for (j = i - 1; j >= 0; j--) {
if (key >= num[j]) {
num[j + 1... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 0, 70], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 71, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 0, 73]] | 0 | 216 |
#include <stdio.h>
#define NUM 3
int main() {
int Array[NUM];
scanf("%d %d %d", &Array[0], &Array[1], &Array[2]);
int tmp, i, j;
for (i = 0; i < NUM; i++) {
for (j = 0; j < NUM; j++) {
if (Array[i] > Array[j]) {
tmp = Array[i];
Array[i] = Array[j];
Array[j] = tmp;
}
... | #include <stdio.h>
#define NUM 3
int main() {
int Array[NUM];
scanf("%d %d %d", &Array[0], &Array[1], &Array[2]);
int tmp, i, j;
for (i = 0; i < NUM; i++) {
for (j = i; j < NUM; j++) {
if (Array[i] > Array[j]) {
tmp = Array[i];
Array[i] = Array[j];
Array[j] = tmp;
}
... | [["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 22]] | 0 | 143 |
#include <stdio.h>
int main(void) {
int a[3];
int i, j;
int min;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 3; i++) {
for (j = 1; j < 3; j++) {
if (a[j - 1] > a[j]) {
min = a[j];
a[j] = a[i];
a[i] = min;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2... | #include <stdio.h>
int main(void) {
int a[3];
int i, j;
int min;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 3; i++) {
for (j = 1; j < 3; j++) {
if (a[j - 1] > a[j]) {
min = a[j];
a[j] = a[j - 1];
a[j - 1] = min;
}
}
}
printf("%d %d %d\n", a[0], a... | [["-", 64, 9, 0, 1, 0, 11, 12, 69, 71, 22], ["+", 0, 1, 0, 11, 12, 69, 71, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 69, 71, 16, 17, 33], ["+", 0, 1, 0, 11, 12, 69, 71, 16, 12, 13], ["-", 64, 9, 0, 1, 0, 11, 31, 69, 71, 22], ["+", 0, 1, 0, 11, 31, 69, 71, 16, 31, 22], ["+", 0, 1, 0, 11, 31, 69, 71, 16, 17, 33], ["+", 0, 1, 0... | 0 | 146 |
//============================================================================
//
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//============================================================================
void sort(int *a, int *b) {
int c;
if (*a < *b) {
c =... | //============================================================================
//
#include <ctype.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//============================================================================
void sort(int *a, int *b) {
int c;
if (*a < *b) {
c =... | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 0 | 165 |
#include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
d = a;
a = b;
b = d;
}
if (c < a) {
d = a;
a = c;
c = d;
} else if (c > a && c < b) {
d = b;
b = c;
c = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| #include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
d = a;
a = b;
b = d;
}
if (c < a) {
d = a;
a = c;
c = d;
}
if (c < b) {
d = b;
b = c;
c = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 31, 22], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 47], ["-", 0, 57, 15, 23, 0, 16, 31, 16, 12, 22], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 98]] | 0 | 115 |
#include <stdio.h>
int main(void) {
int a, b, c, x = 0;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &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 <stdio.h>
int main(void) {
int a, b, c, x = 0;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &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;
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 127 |
#include <stdio.h>
int main() {
int a, b, c, m1, m2, m3;
scanf("%d %d %d", &a, &b, &c);
m1 = a, m2 = b, m3 = c;
if (a < b) {
m1 = b, m2 = a;
if (b < c)
m1 = c, m2 = b, m3 = a;
else {
if (a > c)
m2 = a, m3 = c;
else
m2 = c, m3 = a;
}
} else {
m1 = a, ... | #include <stdio.h>
int main() {
int a, b, c, m1, m2, m3;
scanf("%d %d %d", &a, &b, &c);
m1 = a, m2 = b, m3 = c;
if (a < b) {
m1 = b, m2 = a;
if (b < c)
m1 = c, m2 = b, m3 = a;
else {
if (a > c)
m2 = a, m3 = c;
else
m2 = c, m3 = a;
}
} else {
m1 = a, ... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 0 | 181 |
#include <stdio.h>
int main() {
int x[3];
int temp;
scanf("%d %d %d\n", &x[0], &x[1], &x[2]);
if (x[0] > x[1]) {
temp = x[0];
x[0] = x[1];
x[1] = temp;
}
if (x[1] > x[2]) {
temp = x[1];
x[1] = x[2];
x[2] = temp;
}
if (x[0] > x[2]) {
temp = x[0];
x[0] = x[2];
x[2] = ... | #include <stdio.h>
int main() {
int x[3];
int temp;
scanf("%d %d %d\n", &x[0], &x[1], &x[2]);
if (x[0] > x[1]) {
temp = x[0];
x[0] = x[1];
x[1] = temp;
}
if (x[1] > x[2]) {
temp = x[1];
x[1] = x[2];
x[2] = temp;
}
if (x[0] > x[1]) {
temp = x[0];
x[0] = x[1];
x[1] = ... | [["-", 0, 57, 15, 23, 0, 16, 12, 69, 71, 13], ["+", 0, 57, 15, 23, 0, 16, 12, 69, 71, 13], ["-", 64, 9, 0, 1, 0, 11, 12, 69, 71, 13], ["+", 64, 9, 0, 1, 0, 11, 12, 69, 71, 13], ["-", 64, 9, 0, 1, 0, 11, 31, 69, 71, 13], ["+", 64, 9, 0, 1, 0, 11, 31, 69, 71, 13]] | 0 | 183 |
#include <stdio.h>
int main(void) {
int a, b, c, d;
scanf("%d %d %d", &a, &b, &c);
d = 0;
if (a < b) {
d = a;
a = b;
b = d;
}
if (a < c) {
d = a;
a = c;
c = d;
}
if (b < c) {
d = b;
b = c;
c = d;
}
printf("%d %d %d", a, b, c);
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, d;
scanf("%d %d %d", &a, &b, &c);
d = 0;
if (a > b) {
d = a;
a = b;
b = d;
}
if (a > c) {
d = a;
a = c;
c = d;
}
if (b > c) {
d = b;
b = c;
c = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 114 |
#include <stdio.h>
int main(void) {
int a, b, c, tmp;
scanf("%d %d %d\n", &a, &b, &c);
if (1 <= a && a <= 10000 && 1 <= b && b <= 10000 && 1 <= c && c <= 10000) {
if (a > c) {
tmp = a;
a = c;
c = tmp;
}
else if (b > c) {
tmp = b;
b = c;
c = tmp;
}
else ... | #include <stdio.h>
int main(void) {
int a, b, c, tmp;
scanf("%d %d %d\n", &a, &b, &c);
if (1 <= a && a <= 10000 && 1 <= b && b <= 10000 && 1 <= c && c <= 10000) {
if (a > c) {
tmp = a;
a = c;
c = tmp;
}
if (b > c) {
tmp = b;
b = c;
c = tmp;
}
if (a > b)... | [["-", 0, 57, 64, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 0 | 142 |
int main(void) {
int a; /* ??\?????? */
int b; /* ??\?????? */
int c; /* ??\?????? */
int i; /* ???????????¨?????° */
int j; /* ???????????¨?????° */
int tmp; /* ????\???¨ */
int data[3]; /* ?????? */
/* input */
scanf("%d %d %d", &a, &b, &c);
data[0] = a;
data... | int main(void) {
int a; /* ??\?????? */
int b; /* ??\?????? */
int c; /* ??\?????? */
int i; /* ???????????¨?????° */
int j; /* ???????????¨?????° */
int tmp; /* ????\???¨ */
int data[3]; /* ?????? */
/* input */
scanf("%d %d %d", &a, &b, &c);
data[0] = a;
data... | [["-", 0, 7, 8, 9, 0, 7, 15, 16, 17, 60], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 176 |
int main() {
/* ??\?????¨ */
int input;
/* ????????¨ */
int out[2];
/* ????\???¨ */
int in_count;
int out_count;
int temp;
/* ????????? */
input = 0;
temp = 0;
/* ??\????????? */
for (in_count = 0; in_count < 3; in_count++) {
scanf("%d", &input);
out[in_count] = input;
}
/* ??... | int main() {
/* ??\?????¨ */
int input;
/* ????????¨ */
int out[3];
/* ????\???¨ */
int in_count;
int out_count;
int temp;
/* ????????? */
input = 0;
temp = 0;
/* ??\????????? */
for (in_count = 0; in_count < 3; in_count++) {
scanf("%d", &input);
out[in_count] = input;
}
/* ??... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 177 |
main() {
int a, b, c;
scanf("%d", a);
scanf("%d", b);
scanf("%d", c);
if (a < b)
if (b < c)
printf("%d %d %d\n", a, b, c);
else if (a < c)
printf("%d %d %d\n", a, c, b);
else
printf("%d %d %d\n", c, a, b);
else if (a < c)
printf("%d %d %d\n", b, a, c);
else if (b < c)
... | main() {
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a < b)
if (b < c)
printf("%d %d %d\n", a, b, c);
else if (a < c)
printf("%d %d %d\n", a, c, b);
else
printf("%d %d %d\n", c, a, b);
else if (a < c)
printf("%d %d %d\n", b, a, c);
else if (b < c)
... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 161 |
#include <stdio.h>
int main(void) {
int a, b, c, x, y, z;
scanf("%d%d%d", &a, &b, &c);
if (a > b)
x = a;
a = b;
b = x;
if (b > c)
y = b;
b = c;
c = y;
if (a > b)
z = a;
a = b;
b = z;
printf("%d %d %d\n", a, b, c);
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b, c, x, y, z;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
y = b;
b = c;
c = y;
}
if (a > b) {
z = a;
a = b;
b = z;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| [["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]] | 0 | 109 |
#include <stdio.h>
int main() {
int a, b, c, i, num[3];
for (i = 0; i < 3; i++) {
scanf("%d", &num[i]);
}
if (num[i] > num[1]) {
a = num[0];
num[0] = num[1];
num[1] = a;
}
if (num[1] > num[2]) {
b = num[1];
num[1] = num[2];
num[2] = b;
if (num[0] > num[1]) {
c = num[0];... | #include <stdio.h>
int main() {
int a, b, c, i, num[3];
for (i = 0; i < 3; i++) {
scanf("%d", &num[i]);
}
if (num[0] > num[1]) {
a = num[0];
num[0] = num[1];
num[1] = a;
}
if (num[1] > num[2]) {
b = num[1];
num[1] = num[2];
num[2] = b;
if (num[0] > num[1]) {
c = num[0];... | [["-", 0, 57, 15, 23, 0, 16, 31, 69, 71, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 71, 13]] | 0 | 190 |
main() {
int a, b, c;
int x, y, z;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
y = b;
b = c;
c = y;
}
if (a > c) {
z = a;
a = c;
c = z;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | main() {
int a, b, c;
int x, y, z;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
y = b;
b = c;
c = y;
}
if (a > b) {
z = a;
a = b;
b = z;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [["-", 0, 9, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22]] | 0 | 112 |
#include <stdio.h>
int main(void) {
int a, b, c, z, i;
scanf("%d %d %d", &a, &b, &c);
for (i = 0; i < 6; i++)
if (a > b) {
z = b, b = a, a = z, z = 0;
}
if (a > c) {
z = c, c = a, a = z, z = 0;
}
if (b > c) {
z = c, c = b, b = z, z = 0;
}
printf("%d<%d<%d\n", a, b, c);
return 0;
... | #include <stdio.h>
int main(void) {
int a, b, c, z, i;
scanf("%d %d %d", &a, &b, &c);
for (i = 0; i < 6; i++)
if (a > b) {
z = b, b = a, a = z, z = 0;
}
if (a > c) {
z = c, c = a, a = z, z = 0;
}
if (b > c) {
z = c, c = b, b = z, z = 0;
}
printf("%d %d %d\n", a, b, c);
return 0;
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 138 |
//
// main.c
// AOJ
//
// Created by x17036xx on 2017/04/18.
// Copyright ?? 2017??´ x17036xx. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char *argv[]) {
int a;
int b;
int c;
int x;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c... | //
// main.c
// AOJ
//
// Created by x17036xx on 2017/04/18.
// Copyright ?? 2017??´ x17036xx. All rights reserved.
//
#include <stdio.h>
int main(int argc, const char *argv[]) {
int a;
int b;
int c;
int x;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c)... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 129 |
#include <stdio.h>
main() {
int a, b, c, x, y, z;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
y = b;
b = c;
c = y;
}
if (a > b) {
z = a;
a = c;
c = z;
}
printf("%d %d %d\n", +a, +b, +c);
return 0;
} | #include <stdio.h>
main() {
int a, b, c, x, y, z;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
x = a;
a = b;
b = x;
}
if (b > c) {
y = b;
b = c;
c = y;
}
if (a > b) {
z = a;
a = b;
b = z;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 91, 17, 72]] | 0 | 117 |
int main(void) {
int a[3], i, j, tmp;
scanf("%d %d %d", &a[0], &a[1], &a[0]);
for (i = 0; i <= 1; i++) {
for (j = 1; j <= 2; j++) {
if (a[i] > a[j]) {
tmp = a[i];
a[i] = a[j];
a[j] = tmp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return 0;
} | int main(void) {
int a[3], i, j, tmp;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i <= 1; i++) {
for (j = 1; j <= 2; j++) {
if (a[i] > a[j]) {
tmp = a[i];
a[i] = a[j];
a[j] = tmp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return 0;
} | [["-", 0, 2, 3, 4, 0, 66, 28, 69, 71, 13], ["+", 0, 2, 3, 4, 0, 66, 28, 69, 71, 13]] | 0 | 138 |
#include <stdio.h>
int main(void) {
int i, j, x;
int t[3];
scanf("%d %d %d", &t[0], &t[1], &t[2]);
for (i = 0; i < 3; i++) {
for (j = 0; j < 2 - i; j++) {
if (t[j] > t[j + 1]) {
x = t[i + 1];
t[i + 1] = t[i];
t[i] = x;
}
}
}
printf("%d %d %d\n", t[0], t[1], t[2... | #include <stdio.h>
int main(void) {
int i, j, x;
int t[3];
scanf("%d %d %d", &t[0], &t[1], &t[2]);
for (i = 0; i < 3; i++) {
for (j = 0; j < 2 - i; j++) {
if (t[j] > t[j + 1]) {
x = t[j + 1];
t[j + 1] = t[j];
t[j] = x;
}
}
}
printf("%d %d %d\n", t[0], t[1], t[2... | [["-", 0, 1, 0, 11, 12, 69, 71, 16, 31, 22], ["+", 0, 1, 0, 11, 12, 69, 71, 16, 31, 22], ["-", 0, 1, 0, 11, 31, 69, 71, 16, 31, 22], ["+", 0, 1, 0, 11, 31, 69, 71, 16, 31, 22], ["-", 64, 9, 0, 1, 0, 11, 12, 69, 71, 22], ["+", 64, 9, 0, 1, 0, 11, 12, 69, 71, 22], ["-", 64, 9, 0, 1, 0, 11, 31, 69, 71, 22], ["+", 64, 9, 0... | 0 | 151 |
#include <stdio.h>
/*
3 ????????°?????´???
3????????´??°?????????????????????????????????????°??????????????????????????????????????????°?????????????????????????????????
Input
3????????´??°???????????§????????????????????????????????????
Output
?°????????????????????????????3????????´??°???1???????????????????????... | #include <stdio.h>
/*
3 ????????°?????´???
3????????´??°?????????????????????????????????????°??????????????????????????????????????????°?????????????????????????????????
Input
3????????´??°???????????§????????????????????????????????????
Output
?°????????????????????????????3????????´??°???1???????????????????????... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33]] | 0 | 150 |
#include <stdio.h>
int main(void) {
int a[3] = {0};
int i;
int j;
int temp = 0;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 2; i++) {
for (j = 2; j > i; j--) {
if (a[j - 1] < a[j]) {
temp = a[j - 1];
a[j - 1] = a[j];
a[j] = temp;
}
}
}
printf("... | #include <stdio.h>
int main(void) {
int a[3] = {0};
int i;
int j;
int temp = 0;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 2; i++) {
for (j = 2; j > i; j--) {
if (a[j - 1] > a[j]) {
temp = a[j - 1];
a[j - 1] = a[j];
a[j] = temp;
}
}
}
printf("... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]] | 0 | 155 |
#include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d\n", &a, &b, &c);
if (a <= b && b <= a) {
printf("%d %d %d\n", a, b, c);
} else if (a <= c && c <= b) {
printf("%d %d %d\n", a, c, b);
} else if (b <= a && a <= c) {
printf("%d %d %d\n", b, a, c);
} else if (b <= c && c <= a) {
... | #include <stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d\n", &a, &b, &c);
if (a <= b && b <= c) {
printf("%d %d %d\n", a, b, c);
} else if (a <= c && c <= b) {
printf("%d %d %d\n", a, c, b);
} else if (b <= a && a <= c) {
printf("%d %d %d\n", b, a, c);
} else if (b <= c && c <= a) {
... | [["-", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 22]] | 0 | 197 |
#include <stdio.h>
int main(void) {
int a[3], i, j, temp;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
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]);
return ... | #include <stdio.h>
int main(void) {
int a[3], i, j, temp;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
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]);
return ... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]] | 0 | 140 |
#include <stdio.h>
int main() {
int a[3], i, j, temp;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 2; i++) {
for (j = i; j < 2; j++) {
if (a[j] > a[j + 1]) {
temp = a[j];
a[j] = a[j + 1];
a[j + 1] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
re... | #include <stdio.h>
int main() {
int a[3], i, j, temp;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 2; i++) {
for (j = 0; j < 2; j++) {
if (a[j] > a[j + 1]) {
temp = a[j];
a[j] = a[j + 1];
a[j + 1] = temp;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
re... | [["-", 0, 7, 8, 9, 0, 7, 10, 11, 12, 22], ["+", 0, 7, 8, 9, 0, 7, 10, 11, 12, 13]] | 0 | 145 |
#include <stdio.h>
int main(void) {
int a, b, c, temp1, temp2, temp3;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
temp1 = a;
a = b;
b = temp1;
}
if (b > c) {
temp2 = b;
b = c;
c = temp2;
}
if (a > b) {
temp3 = a;
a = b;
b = temp3;
}
printf("%d%d%d\n", a, b, c);... | #include <stdio.h>
int main(void) {
int a, b, c, temp1, temp2, temp3;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
temp1 = a;
a = b;
b = temp1;
}
if (b > c) {
temp2 = b;
b = c;
c = temp2;
}
if (a > b) {
temp3 = a;
a = b;
b = temp3;
}
printf("%d %d %d\n", a, b, c... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 112 |
#include <stdio.h>
int main(void) {
int a[3] = {0, 0, 0}, b = 0;
int i, j;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
if (a[i] < a[j]) {
b = a[i];
a[i] = a[j];
a[j] = b;
}
}
}
printf("%d %d %dn", a[0], a[1], a[2... | #include <stdio.h>
int main(void) {
int a[3] = {0, 0, 0}, b = 0;
int i, j;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
if (a[i] < a[j]) {
b = a[i];
a[i] = a[j];
a[j] = b;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 150 |
#include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d", &a, &b, &c);
if (a < b) {
d = a;
a = b;
b = d;
}
if (b < c) {
d = c;
c = b;
b = d;
}
if (a < b) {
d = a;
a = b;
b = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | #include <stdio.h>
int main() {
int a, b, c, d;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
d = a;
a = b;
b = d;
}
if (b > c) {
d = c;
c = b;
b = d;
}
if (a > b) {
d = a;
a = b;
b = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47]] | 0 | 110 |
#include <stdio.h>
int main() {
int a, b, c, s;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
s = a;
a = b;
b = s;
}
if (a > c) {
s = c;
c = a;
a = c;
}
if (b > c) {
s = c;
c = b;
b = s;
}
printf("%d %d %d\n", a, b, c);
}
| #include <stdio.h>
int main() {
int a, b, c, s;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
s = a;
a = b;
b = s;
}
if (a > c) {
s = c;
c = a;
a = s;
}
if (b > c) {
s = c;
c = b;
b = s;
}
printf("%d %d %d\n", a, b, c);
} | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]] | 0 | 107 |
#include <stdio.h>
int main(void) {
int n1, n2, n3;
scanf("%d %d %d", n1, n2, n3);
if (n1 > n2) {
int temp = n1;
n1 = n2;
n2 = temp;
}
if (n2 > n3) {
int temp = n2;
n2 = n3;
n3 = temp;
}
if (n1 > n2) {
int temp = n1;
n1 = n2;
n2 = temp;
}
printf("%d %d %d\n", n1, ... | #include <stdio.h>
int main(void) {
int n1, n2, n3;
scanf("%d %d %d", &n1, &n2, &n3);
if (n1 > n2) {
int temp = n1;
n1 = n2;
n2 = temp;
}
if (n2 > n3) {
int temp = n2;
n2 = n3;
n3 = temp;
}
if (n1 > n2) {
int temp = n1;
n1 = n2;
n2 = temp;
}
printf("%d %d %d\n", n... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 111 |
#include <stdio.h>
int main(void) {
int a, b, c, X, Y, Z, P;
scanf("%d%d%d", &a, &b, &c);
if (a >= b)
;
else {
X = a;
a = b;
b = X;
}
if (b >= c)
;
else {
Y = b;
b = c;
c = Y;
}
if (a >= c)
;
else {
Z = a;
a = c;
c = Z;
}
if (a >= b)
;
else ... | #include <stdio.h>
int main(void) {
int a, b, c, X, Y, Z, P;
scanf("%d%d%d", &a, &b, &c);
if (a >= b)
;
else {
X = a;
a = b;
b = X;
}
if (b >= c)
;
else {
Y = b;
b = c;
c = Y;
}
if (a >= c)
;
else {
Z = a;
a = c;
c = Z;
}
if (a >= b)
;
else ... | [["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 0 | 145 |
#include <stdio.h>
int main(void) {
int a[3], min, i, j, x;
scanf("%d%d%d", &a[0], &a[1], &a[2]);
for (j = 0; j < 2; j++) {
min = a[j];
x = 0;
for (i = j; i < 3; i++) {
if (min > a[i]) {
min = a[i];
x = i;
}
}
a[x] = a[j];
a[j] = min;
}
printf("%d %d %d\n", ... | #include <stdio.h>
int main(void) {
int a[3], min, i, j, x;
scanf("%d%d%d", &a[0], &a[1], &a[2]);
for (j = 0; j < 2; j++) {
min = a[j];
x = j;
for (i = j; i < 3; i++) {
if (min > a[i]) {
min = a[i];
x = i;
}
}
a[x] = a[j];
a[j] = min;
}
printf("%d %d %d\n", ... | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22]] | 0 | 154 |
#include <stdio.h>
int main() {
int a, b, c;
int temp;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
if (a > b) {
temp = a;
a = b;
b = temp;
}
printf("%d %d %d¥n", a... | #include <stdio.h>
int main() {
int a, b, c;
int temp;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
if (a > b) {
temp = a;
a = b;
b = temp;
}
printf("%d %d %d\n", a... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 0 | 121 |
#include <stdio.h>
void swap(int *a, int *b) {
int c;
c = *a;
*a = *b;
*b = c;
}
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a > b)
swap(a, b);
if (b > c)
swap(b, c);
if (a > b)
swap(a, b);
printf("%d %d %d\n", a, b, c);
return 0;
}
| #include <stdio.h>
void swap(int *a, int *b) {
int c;
c = *a;
*a = *b;
*b = c;
}
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a > b)
swap(&a, &b);
if (b > c)
swap(&b, &c);
if (a > b)
swap(&a, &b);
printf("%d %d %d\n", a, b, c);
return 0;
}
| [["+", 64, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 120 |
#include <stdio.h>
int main(void) {
int a, b, c, d = 0;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
d = a;
a = b;
b = d;
} else if (b > c) {
d = b;
b = c;
c = d;
} else if (a > b) {
d = a;
a = b;
b = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b, c, d = 0;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
d = a;
a = b;
b = d;
}
if (b > c) {
d = b;
b = c;
c = d;
}
if (a > b) {
d = a;
a = b;
b = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 0 | 115 |
#include <stdio.h>
int main(int argc, const char *argv[]) {
int a, b, c, d;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
d = a;
a = b;
b = d;
}
if (b > c) {
d = b;
b = c;
c = d;
}
if (a < c) {
d = a;
a = c;
c = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| #include <stdio.h>
int main(int argc, const char *argv[]) {
int a, b, c, d;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
d = a;
a = b;
b = d;
}
if (b > c) {
d = b;
b = c;
c = d;
}
if (a > b) {
d = a;
a = b;
b = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0... | 0 | 119 |
#include <stdio.h>
int main(void) {
int a, b, c, w;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
w = a;
a = b;
b = w;
}
if (b > c) {
w = b;
b = c;
c = w;
}
if (a > b) {
w = a;
a = b;
b = w;
}
printf("%d,%d,%d\n", a, b, c);
return 0;
}
| #include <stdio.h>
main() {
int a, b, c, w;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
w = a;
a = b;
b = w;
}
if (b > c) {
w = b;
b = c;
c = w;
}
if (a > b) {
w = a;
a = b;
b = w;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| [["-", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["-", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["+", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 111 |
#include <stdio.h>
int main(void) {
// Your code here!
int a, b, c, tmp;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &b);
if (b < a) {
tmp = a;
a = b;
b = tmp;
}
if (c < b) {
tmp = b;
b = c;
c = tmp;
}
if (b < a) {
tmp = a;
a = b;
b = tmp;
}
printf("%d %d... | #include <stdio.h>
int main(void) {
// Your code here!
int a, b, c, tmp;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (b < a) {
tmp = a;
a = b;
b = tmp;
}
if (c < b) {
tmp = b;
b = c;
c = tmp;
}
if (b < a) {
tmp = a;
a = b;
b = tmp;
}
printf("%d %d... | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22]] | 0 | 126 |
#include <stdio.h>
int main(void) {
int num[3];
int tmp, i, p, q;
for (i = 0; i < 3; i++) {
scanf("%d", &num[i]);
}
for (p = 0; p < 1; p++) {
for (q = p + 1; q < 3; q++) {
if (num[p] > num[q]) {
tmp = num[p];
num[p] = num[q];
num[q] = tmp;
}
}
}
printf("%d... | #include <stdio.h>
int main(void) {
int num[3];
int tmp, i, p, q;
for (i = 0; i < 3; i++) {
scanf("%d", &num[i]);
}
for (p = 0; p < 3; p++) {
for (q = p + 1; q < 3; q++) {
if (num[p] > num[q]) {
tmp = num[p];
num[p] = num[q];
num[q] = tmp;
}
}
}
printf("%d... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 148 |
#include <stdio.h>
int main() {
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a <= b && a <= c) {
printf("%d ", a);
if (b <= c) {
printf("%d %d\n", b, c);
} else {
printf("%d %d\n", c, b);
}
return 0;
}
else if (b <= a && b <= c) {
printf("%d ",... | #include <stdio.h>
int main() {
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a <= b && a <= c) {
printf("%d ", a);
if (b <= c) {
printf("%d %d\n", b, c);
} else {
printf("%d %d\n", c, b);
}
return 0;
}
else if (b <= a && b <= c) {
printf("%d ",... | [["-", 0, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 0 | 214 |
#include <stdio.h>
int main(void) {
int a, b, c;
int temp;
scanf("%d %d %d", &a, &b, &c);
if (a > b)
temp = a;
a = b;
b = temp;
if (b > c) {
temp = b;
b = c;
c = temp;
if (a > b)
temp = a;
a = b;
b = temp;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| #include <stdio.h>
int main(void) {
int a, b, c;
int temp;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
if (a > b) {
temp = a;
a = b;
b = temp;
}
printf("%d %d %d\n", a, b, c);
return 0;
... | [["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46]] | 0 | 108 |
#include <stdio.h>
int main(void) {
int buf, i, j = 0;
int ary[3];
scanf("%d %d %d", &ary[0], ary[1], &ary[2]);
for (i = 0; i < 3; i++) {
buf = ary[i];
for (j = i; j < 3; j++) {
if (ary[j] < buf) {
ary[i] = ary[j];
ary[j] = buf;
buf = ary[i];
}
}
}
printf("%... | #include <stdio.h>
int main(void) {
int buf, i, j = 0;
int ary[3];
scanf("%d %d %d", &ary[0], &ary[1], &ary[2]);
for (i = 0; i < 3; i++) {
buf = ary[i];
for (j = i; j < 3; j++) {
if (ary[j] < buf) {
ary[i] = ary[j];
ary[j] = buf;
buf = ary[i];
}
}
}
printf("... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 146 |
#include <stdio.h>
int main() {
int a, b, c, result;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
result = a;
a = b;
b = result;
if (b > c) {
result = b;
b = c;
c = result;
if (a > b) {
result = a;
a = b;
b = result;
}
}
}
printf("%d %d... | #include <stdio.h>
int main() {
int a, b, c, result;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
result = a;
a = b;
b = result;
}
if (b > c) {
result = b;
b = c;
c = result;
}
if (a > b) {
result = a;
a = b;
b = result;
}
printf("%d %d %d\n", a, b, c);
}
| [["+", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 106 |
#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);
else {
cout << a << " " << b << " " << c << endl;
}
}
| #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;
}
| [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["-", 75, 76, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 75, 76, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 89 |
#include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
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;
return 0;
}
| #include <algorithm>
#include <iostream>
using namespace std;
int main(void) {
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;
}
| [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 86 |
#include <iostream>
using namespace std;
void swap(int &x, int &y) {
int tmp;
tmp = x;
x = y;
y = tmp;
}
int main() {
int a, b, c, tmp;
cin >> a >> b >> c;
if (b > a) {
swap(a, b);
}
if (c > b) {
swap(b, c);
if (b > a) {
swap(a, b);
}
}
cout << a << " " << b << " " << c <<... | #include <iostream>
using namespace std;
void swap(int &x, int &y) {
int tmp;
tmp = x;
x = y;
y = tmp;
}
int main() {
int a, b, c, tmp;
cin >> a >> b >> c;
if (b < a) {
swap(a, b);
}
if (c < b) {
swap(b, c);
if (b < a) {
swap(a, b);
}
}
cout << a << " " << b << " " << c <<... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["-", 64, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 64, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 123 |
#include <iostream>
using namespace std;
int main(void) {
int a, b, c;
int tmp;
cin >> a >> b >> c;
if (a > b) {
tmp = b;
b = a;
a = tmp;
}
if (b < c) {
tmp = c;
c = b;
b = tmp;
}
if (a > b) {
tmp = b;
b = a;
a = tmp;
}
cout << a << " " << b << " " << c << endl;
... | #include <iostream>
using namespace std;
int main(void) {
int a, b, c;
int tmp;
cin >> a >> b >> c;
if (a > b) {
tmp = b;
b = a;
a = tmp;
}
if (b > c) {
tmp = c;
c = b;
b = tmp;
}
if (a > b) {
tmp = b;
b = a;
a = tmp;
}
cout << a << " " << b << " " << c << endl;
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 112 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main(void) {
int array[3];
for (int i = 0; i < 3; i++)
scanf("%d", &array[i]);
for (int i = 2; i > 0; i--) {
for (int j = 0; j < i - 1; j++) {
if (array[j] > array[j + 1]) {
int tmp = array[j];
array[j] = array[j + 1];
... | #include <iostream>
#include <stdio.h>
using namespace std;
int main(void) {
int array[3];
for (int i = 0; i < 3; i++)
scanf("%d", &array[i]);
for (int i = 2; i > 0; i--) {
for (int j = 0; j < i; j++) {
if (array[j] > array[j + 1]) {
int tmp = array[j];
array[j] = array[j + 1];
... | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 157 |
#include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a;
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(), a.end());
cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
}
| #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a(3);
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(), a.end());
cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
}
| [["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 24], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 25]] | 1 | 80 |
#include <iostream>
using namespace std;
int main() {
int a = 0;
int b = 0;
int c = 0;
cin >> a >> b >> c;
if (a >= 0 && a <= 10000 && a <= 10000 && b >= 0 && b <= 10000 && c <= 0 &&
c >= 10000) {
if (a <= b && b <= c && a <= c) {
cout << a << " " << b << " " << c << endl;
} else if (a ... | #include <iostream>
using namespace std;
int main() {
int a = 0;
int b = 0;
int c = 0;
cin >> a >> b >> c;
if (a >= 0 && a <= 10000 && a <= 10000 && b >= 0 && b <= 10000 && c >= 0 &&
c <= 10000) {
if (a <= b && b <= c && a <= c) {
cout << a << " " << b << " " << c << endl;
} else if (a ... | [["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 19], ["+", 15, 339, 51, 16, 31, 16, 12, 16, 17, 20], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 17, 20], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 19]] | 1 | 279 |
#include <cstdio>
int main(void) {
int a[3];
scanf("%d%d%d", &a[0], &a[1], &a[2]);
for (int i = 0; i < 3; i++) {
int min = a[i];
for (int j = i; j < 3; j++) {
if (min > a[j]) {
min = a[j];
a[j] = a[i];
a[i] = min;
}
}
}
printf("%d%d%d\n", a[0], a[1], a[2]);
re... | #include <cstdio>
int main(void) {
int a[3];
scanf("%d%d%d", &a[0], &a[1], &a[2]);
for (int i = 0; i < 3; i++) {
int min = a[i];
for (int j = i; j < 3; j++) {
if (min > a[j]) {
min = a[j];
a[j] = a[i];
a[i] = min;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
... | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 141 |
#include <stdio.h>
int main(void) {
int a[3], b, c, m;
for (b = 0; b < 3; b++)
scanf("%d", &a[b]);
for (b = 0; b < 3; b++) {
for (c = b + 1; c < 3; c++) {
if (a[b] > a[c]) {
a[b] = m;
a[b] = a[c];
a[c] = m;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return... | #include <stdio.h>
int main(void) {
int a[3], b, c, m;
for (b = 0; b < 3; b++)
scanf("%d", &a[b]);
for (b = 0; b < 3; b++) {
for (c = b + 1; c < 3; c++) {
if (a[b] > a[c]) {
m = a[b];
a[b] = a[c];
a[c] = m;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return... | [["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]] | 1 | 143 |
#include <bits/stdc++.h>
using namespace std;
main() {
vector<int> v;
for (int i = 0; i < 3; i++) {
int a;
cin >> a;
v.push_back(a);
}
sort(v.begin(), v.end());
for (int i = 0; i < 2; i++)
cout << v[i];
cout << v[2] << "\n";
}
| #include <bits/stdc++.h>
using namespace std;
main() {
vector<int> v;
for (int i = 0; i < 3; i++) {
int a;
cin >> a;
v.push_back(a);
}
sort(v.begin(), v.end());
for (int i = 0; i < 2; i++)
cout << v[i] << " ";
cout << v[2] << "\n";
}
| [["+", 8, 9, 0, 7, 8, 1, 0, 16, 17, 151], ["+", 0, 7, 8, 1, 0, 16, 12, 5, 0, 62], ["+", 0, 7, 8, 1, 0, 16, 12, 5, 0, 6]] | 1 | 94 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a, b, c;
if (a > b) {
// int x = a; a = b; b = x; の
// 代わりにswap(a,b)が使える
swap(a, b);
}
if (b > c) {
swap(b, c);
}
// なぜもう一度 a>bなのかは
// 紙とペンで考えてみて
if (a > b) {
swap(a, b);
}
cout << a... | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
// int x = a; a = b; b = x; の
// 代わりにswap(a,b)が使える
swap(a, b);
}
if (b > c) {
swap(b, c);
}
// なぜもう一度 a>bなのかは
// 紙とペンで考えてみて
if (a > b) {
swap(a, b);
}
cout ... | [["-", 0, 14, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 152], ["-", 8, 9, 0, 1, 0, 34, 12, 34, 0, 21], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152]] | 1 | 100 |
#include <iostream>
using namespace std;
#define OK 0
#define INIT 0
void compared(int *, int *);
int main(void) {
int a = INIT;
int b = INIT;
int c = INIT;
// data input
cin >> a;
cin >> b;
cin >> c;
if (a > b) {
compared(&a, &b);
}
if (a > c) {
compared(&a, &c);
}
if (b > c) {
... | #include <iostream>
using namespace std;
#define OK 0
#define INIT 0
void compared(int *, int *);
int main(void) {
int a = INIT;
int b = INIT;
int c = INIT;
// data input
cin >> a;
cin >> b;
cin >> c;
if (a > b) {
compared(&a, &b);
}
if (a > c) {
compared(&a, &c);
}
if (b > c) {
... | [["-", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 31, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 163 |
#include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c;
if (a > b) {
d = a;
a = b;
b = d;
}
if (b > c) {
d = b;
b = c;
b = d;
}
if (a > b) {
d = a;
a = b;
b = d;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b, c, d;
cin >> a >> b >> c;
if (a > b) {
d = a;
a = b;
b = d;
}
if (b > c) {
d = b;
b = c;
c = d;
}
if (a > b) {
d = a;
a = b;
b = d;
}
cout << a << " " << b << " " << c << endl;
return 0;
} | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22]] | 1 | 110 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
int m, n;
m = max(x, max(y, z));
n = min(x, min(y, z));
cout << m << " " << x + y + z - m - n << " " << n << endl;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y, z;
cin >> x >> y >> z;
int m, n;
m = max(x, max(y, z));
n = min(x, min(y, z));
cout << n << " " << x + y + z - m - n << " " << m << endl;
} | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 86 |
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(b, a);
else if (b > c)
swap(c, b);
else if (a > b)
swap(b, a);
else if (b > c)
swap(c, b);
else if (a > b)
swap(b, a);
else if (b > c)
swap(c, b);
cout << a << " " << b <<... | #include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b)
swap(b, a);
else if (b > c)
swap(c, b);
if (a > b)
swap(b, a);
else if (b > c)
swap(c, b);
if (a > b)
swap(b, a);
else if (b > c)
swap(c, b);
cout << a << " " << b << " " << c ... | [["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 1 | 128 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
if (a < c)
cout << b << " " << a << " " << c << endl;
else {
if (b < c)
cout << b << " " << c << " " << a << endl;
else
cout << c << " " << b << " " << a << endl;
... | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (a > b) {
if (a < c)
cout << b << " " << a << " " << c << endl;
else {
if (b < c)
cout << b << " " << c << " " << a << endl;
else
cout << c << " " << b << " " << a << endl;
... | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 75, 76, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 75, 76, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 186 |
#include <algorithm>
#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;
} | #include <algorithm>
#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 << c << " " << b << " " << a << endl;
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 99 |
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (b < a)
swap(a, b);
if (c < b)
swap(b, c);
if (b < a)
swap(a, c);
cout << a << " " << b << " " << c << " " << endl;
}
|
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
if (b < a)
swap(a, b);
if (c < b)
swap(b, c);
if (b < a)
swap(a, b);
cout << a << " " << b << " " << c << endl;
}
| [["-", 0, 57, 64, 1, 0, 2, 3, 4, 0, 22], ["+", 0, 57, 64, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 62], ["-", 0, 1, 0, 16, 31, 16, 12, 5, 0, 6]] | 1 | 88 |
#include <stdio.h>
int main(void) {
int a, b, c, ngo;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
ngo = a;
a = b;
b = ngo;
} else if (b > c) {
ngo = b;
b = c;
c = ngo;
} else if (a > c) {
ngo = c;
c = a;
a = ngo;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | #include <stdio.h>
int main(void) {
int a, b, c, ngo;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
ngo = a;
a = b;
b = ngo;
}
if (b > c) {
ngo = b;
b = c;
c = ngo;
}
if (a > b) {
ngo = b;
b = a;
a = ngo;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64... | 1 | 113 |
#include <stdio.h>
int main(void) {
int a, b, c, x, y;
scanf("%d %d %d", &a, &b, &c);
if (a < b) {
x = a;
y = b;
} else {
x = b;
y = a;
}
if (c < x)
printf("%d%d%d\n", c, x, y);
else if (c > y)
printf("%d%d%d\n", x, y, c);
else {
printf("%d%d%d\n", x, c, y);
}
return 0;
}... | #include <stdio.h>
int main(void) {
int a, b, c, x, y;
scanf("%d %d %d", &a, &b, &c);
if (a < b) {
x = a;
y = b;
} else {
x = b;
y = a;
}
if (c < x)
printf("%d %d %d\n", c, x, y);
else if (c > y)
printf("%d %d %d\n", x, y, c);
else {
printf("%d %d %d\n", x, c, y);
}
retur... | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 124 |
#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> a;
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(), a.begin() + 3);
cout << a[0] << ' ' << a[1] << ' ' << a[2] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
vector<int> a(3);
cin >> a[0] >> a[1] >> a[2];
sort(a.begin(), a.begin() + 3);
cout << a[0] << ' ' << a[1] << ' ' << a[2] << endl;
return 0;
} | [["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 24], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 25]] | 1 | 88 |
#include <stdio.h>
int main() {
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 <stdio.h>
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;
} | [["+", 0, 14, 49, 53, 54, 55, 0, 56, 39, 40], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 110 |
#include <iostream>
using namespace std;
int main() {
int a, b, c;
int min, center, top;
cin >> a >> b >> c;
if (a > b && a > c) {
top = a;
if (b > c) {
center = b;
min = c;
} else {
center = c;
min = b;
}
}
if (b > a && b > c) {
top = b;
if (a > c) {
... | #include <iostream>
using namespace std;
int main() {
int a, b, c;
int min, center, top;
cin >> a >> b >> c;
if (a > b && a > c) {
top = a;
if (b > c) {
center = b;
min = c;
} else {
center = c;
min = b;
}
}
if (b > a && b > c) {
top = b;
if (a > c) {
... | [["-", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 198 |
#include <iostream>
using namespace std;
int main(void) {
int a, b, c, temp = 0;
cin >> a >> b >> c;
if (a > b) {
temp = a;
a = b;
b = temp;
} else if (b > c) {
temp = b;
b = c;
c = temp;
} else if (a > b) {
temp = a;
a = b;
b = temp;
}
cout << a << " " << b << " " <<... | #include <iostream>
using namespace std;
int main(void) {
int a, b, c, temp = 0;
cin >> a >> b >> c;
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
if (a > b) {
temp = a;
a = b;
b = temp;
}
cout << a << " " << b << " " << c << ... | [["-", 0, 14, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95]] | 1 | 115 |
// Example program
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a;
int b;
int c;
cin >> a;
cin >> b;
cin >> c;
vector<int> v{a, b, c};
sort(v.begin(), v.end());
cout << v[0] << "" << v[1] << "" << v[2] << endl;
} | // Example program
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int a;
int b;
int c;
cin >> a;
cin >> b;
cin >> c;
vector<int> v{a, b, c};
sort(v.begin(), v.end());
cout << v[0] << " " << v[1] << " " << v[2] << endl;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 91 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 3);
cout << a[0] << "" << a[1] << "" << a[2] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 3);
cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
} | [["+", 31, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 74 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
vector<int> input;
cin >> input[0] >> input[1] >> input[2];
sort(input.begin(), input.end());
cout << input[0] << ' ' << input[1] << ' ' << input[2] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char *argv[]) {
vector<int> input(3);
cin >> input[0] >> input[1] >> input[2];
sort(input.begin(), input.end());
cout << input[0] << ' ' << input[1] << ' ' << input[2] << endl;
return 0;
} | [["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 24], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 13], ["+", 8, 9, 0, 43, 49, 50, 51, 4, 0, 25]] | 1 | 92 |
#include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 2);
cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int a[3];
cin >> a[0] >> a[1] >> a[2];
sort(a, a + 3);
cout << a[0] << " " << a[1] << " " << a[2] << endl;
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 16, 12, 13]] | 1 | 78 |
a = gets.split.map(&:to_i)
a.sort
puts "#{a[0]} #{a[1]} #{a[2]}" | a = gets.split.map(&:to_i)
a.sort!
puts "#{a[0]} #{a[1]} #{a[2]}" | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 37 |
a = gets.split.map(&to_i)
s = ""
a.sort.each_with_index do |item, i|
if i === a.size - 1
s << item.to_s
else
s << item.to_s << " "
end
end
puts s | a = gets.split.map(&:to_i)
s = ""
a.sort.each_with_index do |item, i|
if i === a.size - 1
s << item.to_s
else
s << item.to_s << " "
end
end
puts s | [["-", 0, 662, 12, 652, 3, 4, 0, 752, 0, 22], ["+", 0, 662, 12, 652, 3, 4, 0, 752, 0, 753]] | 4 | 53 |
ins = gets.chomp!.split(" ")
ins.map!(&:to_i)
ins.sort!
line = ""
ins.each do |i|
line + i.to_s + " "
end
line.chop!
puts line | ins = gets.chomp!.split(" ")
ins.map!(&:to_i)
ins.sort!
line = ""
ins.each do |i|
line += i.to_s + " "
end
line.chop!
puts line | [["-", 196, 737, 8, 736, 0, 738, 31, 738, 17, 72], ["+", 0, 652, 196, 737, 8, 736, 0, 755, 17, 107]] | 4 | 48 |
num = gets.split(" ")
p = []
num.each do |i|
p.push(i.to_i)
end
puts("#{p[0]} #{p[1]} #{p[2]}") | num = gets.split(" ")
p = []
num.each do |i|
p.push(i.to_i)
end
p.sort!
puts("#{p[0]} #{p[1]} #{p[2]}") | [["+", 36, 36, 36, 36, 0, 493, 0, 652, 486, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 17, 131], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 55 |
arr[3]=STDIN.gets.split.map(&:to_i)
puts arr.sort!.join(" ") | arr=STDIN.gets.split.map(&:to_i)
puts arr.sort!.join(" ") | [["-", 36, 36, 0, 493, 0, 662, 31, 742, 0, 70], ["-", 36, 36, 0, 493, 0, 662, 31, 742, 0, 612], ["-", 36, 36, 0, 493, 0, 662, 31, 742, 0, 73]] | 4 | 27 |
puts[gets.split.map(&:to_i)].sort*" " | puts [gets.split.map(&:to_i).sort]*" " | [["-", 0, 493, 0, 738, 31, 652, 486, 742, 0, 73], ["+", 0, 652, 3, 4, 0, 738, 31, 516, 0, 73]] | 4 | 18 |
arr = gets.chomp.split(" ").map(&:to_i).sort
puts array.join(" ") | arr = gets.chomp.split(" ").map(&:to_i).sort
puts arr.join(" ") | [["-", 0, 493, 0, 652, 3, 4, 0, 652, 486, 22], ["+", 0, 493, 0, 652, 3, 4, 0, 652, 486, 22]] | 4 | 29 |
a = Array.new(3)
a[0],a[1],a[2] = gets.chomp.split(' ').map(&:to_i)
a.sort
puts a.join(' ') | a = Array.new(3)
a[0],a[1],a[2] = gets.chomp.split(' ').map(&:to_i)
a.sort!
puts a.join(' ') | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 51 |
arr = STDIN.gets.split.map(&:to_i)
arr.sort
puts arr.join(" ") | arr = STDIN.gets.split.map(&:to_i)
arr.sort!
puts arr.join(" ") | [["-", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22], ["+", 36, 36, 36, 36, 0, 493, 0, 652, 735, 22]] | 4 | 25 |
arr = STDIN.gets.split.map(&:to_i)
puts arr.reverse.join(" ") | arr = STDIN.gets.split.map(&:to_i)
puts arr.sort.join(" ") | [["-", 0, 652, 3, 4, 0, 652, 486, 652, 735, 22], ["+", 0, 652, 3, 4, 0, 652, 486, 652, 735, 22]] | 4 | 24 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.