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 <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y) {
if (x == y && x == 0)
break;
if (max(x, y) != x)
swap(x, y);
cout << x << y << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y) {
if (x == y && x == 0)
break;
if (max(x, y) != y)
swap(x, y);
cout << x << " " << y << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 65 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y) {
if (x == 0 || y == 0) {
return 0;
} else if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y) {
if (x == 0 && y == 0) {
return 0;
} else if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 78 |
#include <iostream>
using namespace std;
int main() {
int x, y, i;
while (cin >> x) {
cin >> y;
if (x == 0) {
break;
}
if (x > y) {
i = x;
x = y;
y = i;
}
cout << x << " " << y << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, i;
while (cin >> x) {
cin >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y) {
i = x;
x = y;
y = i;
}
cout << x << " " << y << endl;
}
return 0;
} | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 76 |
#include <stdio.h>
int main(void) {
int x, y;
while (1) {
scanf("%d,%d", &x, &y);
if (x == 0 && y == 0)
break;
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 (1) {
scanf("%d %d", &x, &y);
if (x == 0 && y == 0)
break;
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 79 |
#include <algorithm>
#include <iostream>
#include <vector>
int main() {
int a = 0;
int b = 0;
std::vector<int> v(0), w(0);
while (true) {
++a;
++b;
w.resize(b);
v.resize(a);
std::cin >> v[a - 1] >> w[b - 1];
if ((v[a - 1] == 0) && (w[b - 1] == 0)) {
break;
}
}
for (int i = ... | #include <algorithm>
#include <iostream>
#include <vector>
int main() {
int a = 0;
int b = 0;
std::vector<int> v(0), w(0);
while (true) {
++a;
++b;
w.resize(b);
v.resize(a);
std::cin >> v[a - 1] >> w[b - 1];
if ((v[a - 1] == 0) && (w[b - 1] == 0)) {
break;
}
}
for (int i = ... | [["-", 31, 16, 31, 16, 31, 16, 12, 69, 28, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 69, 28, 22], ["-", 64, 1, 0, 16, 31, 16, 12, 69, 28, 22], ["+", 64, 1, 0, 16, 31, 16, 12, 69, 28, 22]] | 1 | 223 |
#include <stdio.h>
int main(void) {
int x = 1, y = 1;
while (true) {
scanf("%d %d", &x, &y);
if (x == 0 && y == 0)
break;
if (x > y) {
printf("%d %d", y, x);
} else {
printf("%d %d", x, y);
}
}
return 0;
} | #include <stdio.h>
int main(void) {
int x = 1, y = 1;
while (true) {
scanf("%d %d", &x, &y);
if (x == 0 && y == 0)
break;
if (x > y) {
printf("%d %d\n", y, x);
} else {
printf("%d %d\n", x, y);
}
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 85 |
#include <iostream>
using namespace std;
int main() {
int a[1000000][4];
int b = 0;
for (int i = 1; i < 1000000; i++) {
cin >> a[i][0] >> a[i][1];
b++;
if (a[i][0] > a[i][1]) {
a[i][3] = a[i][0];
a[i][2] = a[i][1];
} else {
a[i][2] = a[i][0];
a[i][3] = a[i][1];
}
i... | #include <iostream>
using namespace std;
int main() {
int a[100000][4];
int b = 0;
for (int i = 1; i < 100000; i++) {
cin >> a[i][0] >> a[i][1];
b++;
if (a[i][0] > a[i][1]) {
a[i][3] = a[i][0];
a[i][2] = a[i][1];
} else {
a[i][2] = a[i][0];
a[i][3] = a[i][1];
}
if ... | [["-", 8, 9, 0, 43, 49, 80, 49, 80, 81, 13], ["+", 8, 9, 0, 43, 49, 80, 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, 1, 0, 16, 31, 16, 31, 16, 17, 151], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 219 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else {
if (x > y) {
cout << x << ' ' << y << '\n';
} else {
cout << y << ' ' << x << '\n';
}
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else {
if (x > y) {
cout << y << ' ' << x << '\n';
} else {
cout << x << ' ' << y << '\n';
}
}
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 88 |
#include <iostream>
using namespace std;
int main() {
int x, y;
int big, small;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else {
if (x > y) {
big = x;
small = y;
} else {
big = y;
small = x;
}
cout << big << " " << small ... | #include <iostream>
using namespace std;
int main() {
int x, y;
int big, small;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else {
if (x > y) {
big = x;
small = y;
} else {
big = y;
small = x;
}
cout << small << " " << big ... | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 93 |
#include <stdio.h>
int main() {
int x, y, z;
scanf("%d %d", &x, &y);
while (x != 0 && y != 0) {
if (x > y) {
z = x;
x = y;
y = z;
}
printf("%d %d\n", x, y);
scanf("%d %d", &x, &y);
}
return 0;
} | #include <stdio.h>
int main() {
int x, y, z;
scanf("%d %d", &x, &y);
while (x != 0 || y != 0) {
if (x > y) {
z = x;
x = y;
y = z;
}
printf("%d %d\n", x, y);
scanf("%d %d", &x, &y);
}
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 88 |
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0)
break;
if (x > y)
swap(x, y);
printf("%d %d\n", x, y);
}
return 0;
} | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y)
swap(x, y);
printf("%d %d\n", x, y);
}
return 0;
} | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 71 |
#include <iostream>
int main(void) {
int x, y;
std::cin >> x >> y;
while (x != 0 && y != 0) {
if (x > y) {
std::cout << y << " " << x << std::endl;
} else {
std::cout << x << " " << y << std::endl;
}
std::cin >> x >> y;
}
return 0;
} | #include <iostream>
int main(void) {
int x, y;
std::cin >> x >> y;
while (x != 0 || y != 0) {
if (x > y) {
std::cout << y << " " << x << std::endl;
} else {
std::cout << x << " " << y << std::endl;
}
std::cin >> x >> y;
}
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 88 |
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
while (1) {
int a, b;
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b)
cout << a << " " << b << "\n";
else
cout << b << " " << a << "\n";
}
} | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
while (1) {
int a, b;
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b)
cout << b << " " << a << "\n";
else
cout << a << " " << b << "\n";
}
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 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 | 80 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y) {
cout << x << " " << y << endl;
}
if (x > y) {
cout << y << " " << x << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
return 0;
} | [["-", 8, 9, 0, 52, 8, 9, 0, 57, 0, 121], ["-", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["-", 0, 52, 8, 9, 0, 57, 15, 339, 0, 25], ["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95]] | 1 | 84 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (x != 0 && y != 0) {
if (x < y) {
cout << x << " " << y << "\n";
} else {
cout << y << " " << x << "\n";
}
cin >> x >> y;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (!(x == 0 && y == 0)) {
if (x < y) {
cout << x << " " << y << "\n";
} else {
cout << y << " " << x << "\n";
}
cin >> x >> y;
}
return 0;
} | [["+", 8, 9, 0, 52, 15, 339, 51, 91, 17, 111], ["+", 0, 52, 15, 339, 51, 91, 28, 23, 0, 24], ["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 79], ["+", 51, 91, 28, 23, 0, 16, 31, 16, 17, 60], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 51, 91, 28, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 52, 15, 339, 51, 91, 28, 23, 0, ... | 1 | 85 |
#include <iostream>
using namespace std;
main() {
int a, b;
do {
cin >> a >> b;
if (a <= b && b != 0) {
cout << a << " " << b << "\n";
} else if (b < a) {
cout << b << " " << a << "\n";
}
} while (a != 0 && b != 0);
} | #include <iostream>
using namespace std;
main() {
int a, b;
do {
cin >> a >> b;
if (a <= b && b != 0) {
cout << a << " " << b << "\n";
} else if (b < a) {
cout << b << " " << a << "\n";
}
} while (a != 0 || b != 0);
} | [["-", 8, 9, 0, 82, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 82, 15, 23, 0, 16, 17, 106]] | 1 | 85 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> x, y;
int i = 0, n, m;
while (1) {
cin >> n >> m;
x.push_back(n);
y.push_back(m);
if (x[i] == 0 && y[i] == 0)
break;
i++;
}
for (i = 0; i < x.size(); i++) {
if (x[i] == 0 && y[i] == 0)
... | #include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> x, y;
int i = 0, n, m;
while (1) {
cin >> n >> m;
x.push_back(n);
y.push_back(m);
if (x[i] == 0 && y[i] == 0)
break;
i++;
}
for (i = 0; i < x.size(); i++) {
if (x[i] == 0 && y[i] == 0)
... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 164 |
#include <stdio.h>
int main() {
int a, b, temp;
while (scanf("%d%d", &a, &b) != EOF && a && b) {
temp = 0;
if (a > b) {
temp = a;
a = b;
b = temp;
}
printf("%d %d\n", a, b);
}
return 0;
} | #include <stdio.h>
int main() {
int a, b, temp;
while (scanf("%d%d", &a, &b) != EOF && (a || b)) {
temp = 0;
if (a > b) {
temp = a;
a = b;
b = temp;
}
printf("%d %d\n", a, b);
}
return 0;
} | [["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 24], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 106], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 25]] | 1 | 77 |
#include <iostream>
int main() {
int x, y;
do {
std::cin >> x >> y;
if (x != 0 && y != 0) {
if (x < y) {
std::cout << x << " " << y << std::endl;
} else {
std::cout << y << " " << x << std::endl;
}
}
} while (x != 0 && y != 0);
} | #include <iostream>
int main() {
int x, y;
do {
std::cin >> x >> y;
if (x != 0 || y != 0) {
if (x < y) {
std::cout << x << " " << y << std::endl;
} else {
std::cout << y << " " << x << std::endl;
}
}
} while (x != 0 || y != 0);
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 8, 9, 0, 82, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 82, 15, 23, 0, 16, 17, 106]] | 1 | 90 |
#include <iostream>
using namespace std;
int main() {
int x, y, o;
cin >> x >> y;
while (x != 0 && y != 0) {
if (x > y) {
o = x;
x = y;
y = o;
}
cout << x << " " << y << endl;
cin >> x >> y;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y, o;
cin >> x >> y;
while (x != 0 || y != 0) {
if (x > y) {
o = x;
x = y;
y = o;
}
cout << x << " " << y << endl;
cin >> x >> y;
}
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 75 |
#include <stdio.h>
int main(void) {
int x, y;
do {
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);
}
} while (x != 0 && y != 0);
return 0;
} | #include <stdio.h>
int main(void) {
int x, y;
do {
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);
}
} while (x != 0 || y != 0);
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["-", 8, 9, 0, 82, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 82, 15, 23, 0, 16, 17, 106]] | 1 | 87 |
#include <algorithm>
#include <cstdio>
using namespace std;
int main() {
// freopen("test.txt", "r", stdin);
int a, b;
while (~scanf("%d%d", &a, &b) && (a || b)) {
swap(a, b);
printf("%d %d\n", a, b);
}
return 0;
} | #include <algorithm>
#include <cstdio>
using namespace std;
int main() {
// freopen("test.txt", "r", stdin);
int a, b;
while (~scanf("%d%d", &a, &b) && (a || b)) {
if (a > b)
swap(a, b);
printf("%d %d\n", a, b);
}
return 0;
} | [["+", 8, 9, 0, 52, 8, 9, 0, 57, 0, 121], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 66 |
#include <iostream>
int main() {
int x, y;
while (1) {
std::cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
int t = x;
x = y;
y = t;
}
std::cout << x << y << std::endl;
}
} | #include <iostream>
int main() {
int x, y;
while (1) {
std::cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
int t = x;
x = y;
y = t;
}
std::cout << x << " " << y << std::endl;
}
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 72 |
#include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (x && y) {
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
cin >> x >> y;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
cin >> x >> y;
while (x || y) {
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
cin >> x >> y;
}
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 75 |
#include <iostream>
using namespace std;
struct numTuple {
int _x;
int _y;
void convert() {
if (_x > _y) {
int temp = _x;
_x = _y;
_y = temp;
}
}
void input(int xInput, int yInput) {
_x = xInput;
_y = yInput;
}
void printTuple() { cout << _x << ' ' << _y << endl; }
};... | #include <iostream>
using namespace std;
struct numTuple {
int _x;
int _y;
void convert() {
if (_x > _y) {
int temp = _x;
_x = _y;
_y = temp;
}
}
void input(int xInput, int yInput) {
_x = xInput;
_y = yInput;
}
void printTuple() { cout << _x << ' ' << _y << endl; }
};... | [["+", 0, 52, 15, 339, 51, 16, 12, 91, 17, 111], ["+", 15, 339, 51, 16, 12, 91, 28, 23, 0, 24], ["-", 15, 339, 51, 16, 31, 16, 12, 16, 17, 79], ["+", 12, 91, 28, 23, 0, 16, 31, 16, 17, 60], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 12, 91, 28, 23, 0, 16, 12, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 91, 28, 23... | 1 | 144 |
#include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
while (a != 0 && b != 0) {
if (a <= b) {
printf("%d %d", a, b);
} else {
printf("%d %d", b, a);
}
scanf("%d %d", &a, &b);
}
return 0;
}
| #include <stdio.h>
int main() {
int a, b;
scanf("%d %d", &a, &b);
while (a != 0 || b != 0) {
if (a <= b) {
printf("%d %d\n", a, b);
} else {
printf("%d %d\n", b, a);
}
scanf("%d %d", &a, &b);
}
return 0;
}
| [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 87 |
#include <iostream>
using namespace std;
int main() {
int x, y, z;
while (cin >> x >> y) {
if (x == 0 && y == 0) {
break;
}
if (x < y) {
z = x, x = y, y = z;
}
cout << x << " " << y << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, z;
while (cin >> x >> y) {
if (x == 0 && y == 0) {
break;
}
if (x > y) {
z = x;
x = y;
y = z;
}
cout << x << " " << y << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 0, 57, 64, 9, 0, 1, 0, 34, 0, 21], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["-", 64, 9, 0, 1, 0, 34, 12, 34, 0, 21]] | 1 | 78 |
#include <iostream>
using namespace std;
int main() {
int x, y, z;
for (;;) {
cin >> x, y;
if (x == 0 || y == 0) {
break;
} else if (x > y) {
z = x, x = y, y = z;
}
cout << x << " " << y << endl;
}
return 0;
} |
#include <iostream>
using namespace std;
int main() {
int x, y, z;
for (;;) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else if (x > y) {
z = x, x = y, y = z;
}
cout << x << " " << y << endl;
}
return 0;
} | [["-", 0, 7, 8, 9, 0, 1, 0, 34, 0, 21], ["+", 0, 7, 8, 9, 0, 1, 0, 16, 17, 152], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["-", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6]] | 1 | 82 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (!x || !y)
break;
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (!x && !y)
break;
if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 77 |
#include <stdio.h>
int main(void) {
int x, y;
while (1) {
scanf("%d%d", &x, &y);
if (x == 0 && y == 0)
break;
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 (1) {
scanf("%d%d", &x, &y);
if (x == 0 && y == 0)
break;
if (x <= y)
printf("%d %d\n", x, y);
else
printf("%d %d\n", y, x);
}
return (0);
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 151], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 81 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
cout << y << " " << x << endl;
} else if (x < y) {
cout << x << " " << y << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x >= y) {
cout << y << " " << x << endl;
} else if (x < y) {
cout << x << " " << y << endl;
}
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20]] | 1 | 85 |
#include <stdio.h>
int main(void) {
int x, a;
for (int i = 1;; i++) {
scanf("%d%d", &x, &a);
if (x == 0)
break;
else if (x > a) {
int n = x;
x = a;
a = n;
}
printf("%d %d\n", x, a);
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, a;
for (int i = 1;; i++) {
scanf("%d%d", &x, &a);
if (a == 0 && x == 0)
break;
else if (x > a) {
int n = x;
x = a;
a = n;
}
printf("%d %d\n", x, a);
}
return 0;
} | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 85 |
#include <iostream>
using namespace std;
int main() {
int x, y;
for (int i = 0;; i++) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x >= y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
for (int i = 0;; i++) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x >= y) {
cout << y << " " << x << endl;
} else {
cout << x << " " << y << endl;
}
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["-", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 9, 0, 1, 0, 16, 31, 16, 12, 22]] | 1 | 86 |
#include <iostream>
int main() {
int x, y;
while (true) {
std::cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else if (x < y) {
std::cout << x << " " << y << "\n";
} else if (y < x) {
std::cout << y << " " << x << "\n";
}
}
return 0;
} | #include <iostream>
int main() {
int x, y;
while (true) {
std::cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else if (x <= y) {
std::cout << x << " " << y << "\n";
} else if (y < x) {
std::cout << y << " " << x << "\n";
}
}
return 0;
} | [["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 94 |
#include <stdio.h>
int main() {
int x[3100], y[3100];
int i, count, temp = 0;
while (i <= 3000) {
scanf("%d %d", &x[i], &y[i]);
if (x[i] == 0 && y[i] == 0)
break;
if (x[i] > y[i]) {
temp = y[i];
y[i] = x[i];
x[i] = y[i];
}
count++;
i++;
}
for (i = 0; i < co... | #include <stdio.h>
int main() {
int x[3000], y[3000];
int i, count, temp = 0;
while (i <= 3000) {
scanf("%d %d", &x[i], &y[i]);
if (x[i] == 0 && y[i] == 0)
break;
if (x[i] > y[i]) {
temp = y[i];
y[i] = x[i];
x[i] = temp;
}
count++;
i++;
}
for (i = 0; i < co... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 64, 9, 0, 1, 0, 11, 12, 69, 28, 22], ["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 70], ["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 22], ["-", 0, 1, 0, 11, 12, 69, 341, 342, 0, 73], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]] | 1 | 156 |
#include <stdio.h>
int main() {
int a[3001][2], i = 0;
do {
scanf("%d %d", &a[i][0], &a[i][1]);
i++;
} while (a[i - 1][0] != 0 && a[i - 1][1] != 0);
for (int b = 0; b < i; b++) {
if (a[b][0] <= a[b][1])
printf("%d %d\n", a[b][0], a[b][1]);
else if (a[b][0] > a[b][1])
printf("%d %d\n"... | #include <stdio.h>
int main() {
int a[3001][2], i = 0;
do {
scanf("%d %d", &a[i][0], &a[i][1]);
i++;
} while (a[i - 1][0] != 0 || a[i - 1][1] != 0);
for (int b = 0; b < i - 1; b++) {
if (a[b][0] <= a[b][1])
printf("%d %d\n", a[b][0], a[b][1]);
else if (a[b][0] > a[b][1])
printf("%d %... | [["-", 8, 9, 0, 82, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 82, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 180 |
#include <stdio.h>
int main() {
int a, b, c;
while (1) {
scanf("%d %d", &a, &b);
if (a == 0 && b == 0) {
break;
} else if (a > b) {
c = a;
a = b;
b = c;
printf("%d %d", a, b);
} else
printf("%d %d", a, b);
}
return 0;
} | #include <stdio.h>
int main() {
int a, b, c;
while (1) {
scanf("%d %d", &a, &b);
if (a == 0 && b == 0) {
break;
} else if (a > b) {
c = a;
a = b;
b = c;
printf("%d %d\n", a, b);
} else
printf("%d %d\n", a, b);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 95 |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
int a, b;
int main() {
cin >> a >> b;
if (!a && !b)
return 0;
cout << min(a, b) << ' ' << max(a, b) << endl;
} | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <vector>
using namespace std;
int a, b;
int main() {
while (1) {
cin >> a >> b;
if (!a && !b)
return 0;
cout << min(a, b) << ' ' << ... | [["+", 0, 30, 0, 14, 8, 9, 0, 52, 0, 89], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 0, 24], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 0, 25], ["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]] | 1 | 74 |
#include <stdio.h>
int main() {
int x[3000], y[3000], n, a;
n = 0;
while (1) {
scanf("%d %d", &x[n], &y[n]);
if ((x[n] == 0) && (y[n]))
break;
if (x[n] > y[n]) {
a = y[n];
y[n] = x[n];
x[n] = a;
}
n = n + 1;
}
n = 0;
while (1) {
if ((x[n] == 0) && (y[n]))
... | #include <stdio.h>
int main() {
int x[3000], y[3000], n, a;
n = 0;
while (1) {
scanf("%d %d", &x[n], &y[n]);
if ((x[n] == 0) && (y[n] == 0))
break;
if (x[n] > y[n]) {
a = y[n];
y[n] = x[n];
x[n] = a;
}
n = n + 1;
}
n = 0;
while (1) {
if ((x[n] == 0) && (y[n] =... | [["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 60], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 12, 13]] | 1 | 173 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
return 0;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
}
} | [["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 38], ["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 13], ["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 35]] | 1 | 75 |
#include <iostream>
using namespace std;
int main() {
int x, y;
for (int i = 1;; i++) {
cin >> x >> y;
if (x > y)
swap(x, y);
if (x == y == 0)
break;
cout << x << " " << y << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y;
for (int i = 1;; i++) {
cin >> x >> y;
if (x > y)
swap(x, y);
if (x == 0 && y == 0)
break;
cout << x << " " << y << endl;
}
} | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 71 |
#include <iostream>
using namespace std;
void swap(int &x, int &y) {
int tmp = x;
x = y;
y = tmp;
}
int main() {
int x, y;
cin >> x >> y;
while (x == 0 && y == 0) {
if (x > y)
swap(x, y);
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
} | #include <iostream>
using namespace std;
void swap(int &x, int &y) {
int tmp = x;
x = y;
y = tmp;
}
int main() {
int x, y;
cin >> x >> y;
while (x != 0 || y != 0) {
if (x > y)
swap(x, y);
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
} | [["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 60], ["+", 0, 52, 15, 339, 51, 16, 31, 16, 17, 79], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 52, 15, 339, 51, 16, 12, 16, 17, 79]] | 1 | 95 |
#include <iostream>
using namespace std;
void swap(int &x, int &y) {
int tmp = x;
x = y;
y = tmp;
}
int main() {
int x, y;
cin >> x >> y;
while (x == 0 && y == 0) {
if (x > y)
swap(x, y);
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
} | #include <iostream>
using namespace std;
void swap(int &x, int &y) {
int tmp = x;
x = y;
y = tmp;
}
int main() {
int x, y;
cin >> x >> y;
while (!(x == 0 && y == 0)) {
if (x > y)
swap(x, y);
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
} | [["+", 8, 9, 0, 52, 15, 339, 51, 91, 17, 111], ["+", 0, 52, 15, 339, 51, 91, 28, 23, 0, 24], ["+", 0, 52, 15, 339, 51, 91, 28, 23, 0, 25]] | 1 | 95 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y)
swap(x, y);
cout << x << " " << y << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y)
swap(x, y);
cout << x << " " << y << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 71 |
#include <iostream>
using namespace std;
int main() {
int i;
int a;
int b;
for (i = 0; i < 10000; i++) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b)
cout << a << " " << b << "\n";
else
cout << b << " " << a << "\n";
}
} | #include <iostream>
using namespace std;
int main() {
int i;
int a;
int b;
for (i = 0; i < 10000; i++) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b)
cout << b << " " << a << "\n";
else
cout << a << " " << b << "\n";
}
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 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 | 89 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
} else if (x > y) {
cout << y << " " << x << "\n";
} else {
cout << x << " " << y << "\n";
}
return 0;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
cout << y << " " << x << "\n";
} else {
cout << x << " " << y << "\n";
}
}
return 0;
} | [["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]] | 1 | 86 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, !(x == 0 == y == 0)) {
if (x <= y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, !(x == 0 && y == 0)) {
if (x <= y)
cout << x << " " << y << endl;
else
cout << y << " " << x << endl;
}
return 0;
} | [["-", 12, 91, 28, 23, 0, 16, 31, 16, 17, 60], ["+", 51, 34, 12, 91, 28, 23, 0, 16, 17, 98]] | 1 | 72 |
#include <iostream>
using namespace std;
int main() {
int x, y;
int foo;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
foo = x;
x = y;
y = foo;
}
cout << x << ' ' << y;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y;
int foo;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
foo = x;
x = y;
y = foo;
}
cout << x << " " << y << "\n";
}
} | [["-", 0, 1, 0, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 62], ["+", 8, 9, 0, 1, 0, 16, 12, 5, 0, 44]] | 1 | 74 |
#include <stdio.h>
int main() {
int a, b, temp;
scanf("%d %d", &a, &b);
while (a != 0 && b != 0) {
if (b < a) {
temp = b;
b = a;
a = temp;
}
printf("%d %d\n", a, b);
scanf("%d %d", &a, &b);
}
return 0;
} | #include <stdio.h>
int main() {
int a, b, temp;
scanf("%d %d", &a, &b);
while (a != 0 || b != 0) {
if (b < a) {
temp = b;
b = a;
a = temp;
}
printf("%d %d\n", a, b);
scanf("%d %d", &a, &b);
}
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 88 |
#include <stdio.h>
int main(void) {
int x, y;
while (1) {
scanf("%d", &x);
scanf("%d", &y);
if (x == 0 && y == 0)
break;
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", x, y);
}
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, y;
while (1) {
scanf("%d", &x);
scanf("%d", &y);
if (x == 0 && y == 0)
break;
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
}
return 0;
} | [["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 0, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 90 |
#include <iostream>
using namespace std;
int main() {
int a, b;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a < b)
cout << b << " " << a << endl;
else
cout << a << " " << b << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
while (true) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b)
cout << b << " " << a << endl;
else
cout << a << " " << b << endl;
}
} | [["-", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 51, 146], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13], ["-", 0, 30, 0, 14, 8, 9, 0, 37, 0, 35]] | 1 | 75 |
#include <iostream>
using namespace std;
int main() {
int a, b;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a < b)
cout << b << " " << a << endl;
else
cout << a << " " << b << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b)
cout << b << " " << a << endl;
else
cout << a << " " << b << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 75 |
#include <iostream>
using namespace std;
void swap(int *, int *);
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
swap(&x, &y);
cout << x << " " << y << endl;
}
return 0;
}
void swap(int *a, int *b) {
int temp;
temp = *b;
*b = *a;
*a = temp;
} | #include <iostream>
using namespace std;
void swap(int *, int *);
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y)
swap(&x, &y);
cout << x << " " << y << endl;
}
return 0;
}
void swap(int *a, int *b) {
int temp;
temp = *b;
*b = *... | [["+", 8, 9, 0, 52, 8, 9, 0, 57, 0, 121], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 107 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
cout << y << " " << x;
}
if (x <= y) {
cout << x << " " << y << endl;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
cout << y << " " << x << endl;
}
if (x <= y) {
cout << x << " " << y << endl;
}
}
return 0;
} | [["+", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 82 |
#include <iostream>
using namespace std;
int main() {
int x, y, n;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x < y) {
n = x;
x = y;
y = n;
}
cout << x << " " << y << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, n;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y) {
n = x;
x = y;
y = n;
}
cout << x << " " << y << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 80 |
#include <cstdio>
int main() {
int a, b;
for (int i = 1; i <= 10000; i++) {
scanf("%d %d", &a, &b);
if (a == 0) {
break;
} else if (a < b) {
printf("%d %d\n", a, b);
} else {
printf("%d %d\n", b, a);
}
}
} | #include <cstdio>
int main() {
int a, b;
for (int i = 1; i <= 10000; i++) {
scanf("%d %d", &a, &b);
if (a == 0 && b == 0) {
break;
} else if (a < b) {
printf("%d %d\n", a, b);
} else {
printf("%d %d\n", b, a);
}
}
} | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 88 |
#include <cstdio>
int main() {
for (int i = 0; i < 10000; i++) {
int x, y;
scanf("%d%d", &x, &y);
if (x == 0 && y == 0) {
break;
}
if (x < y) {
printf("%d,%d\n", x, y);
} else {
printf("%d,%d\n", y, x);
}
}
} | #include <cstdio>
int main() {
for (int i = 0; i < 10000; i++) {
int x, y;
scanf("%d%d", &x, &y);
if (x == 0 && y == 0) {
break;
}
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 91 |
#include <cstdio>
int main() {
for (int i = 0; i <= 10000; i++) {
int x, y;
scanf("%d%d", &x, &y); //??\???
if (x == 0 && y == 0) { // 0????????????
break;
}
if (x < y) {
printf("%d,%d\n", x, y);
} else {
printf("%d,%d\n", y, x);
}
}
} | #include <cstdio>
int main() {
for (int i = 0; i <= 10000; i++) {
int x, y;
scanf("%d%d", &x, &y); //??\???
if (x == 0 && y == 0) { // 0????????????
break;
}
if (x < y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
}
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 93 |
#include <iostream>
using namespace std;
int main() {
int a, b;
scanf("%d %d", &a, &b);
while (a != 0 && b != 0) {
if (a > b)
cout << b << " " << a << endl;
else
cout << a << " " << b << endl;
scanf("%d %d", &a, &b);
}
} | #include <iostream>
using namespace std;
int main() {
int a, b;
scanf("%d %d", &a, &b);
while (a != 0 || b != 0) {
if (a > b)
cout << b << " " << a << endl;
else
cout << a << " " << b << endl;
scanf("%d %d", &a, &b);
}
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 86 |
#include <iostream>
using namespace std;
void swap(int &x, int &y) {
int temp = x;
x = y;
y = temp;
}
int main() {
int x, y;
cin >> x;
cin >> y;
while (x != 0 && y != 0) {
if (x > y) {
swap(x, y);
}
cout << x << " " << y << endl;
cin >> x;
cin >> y;
}
return 0;
} | #include <iostream>
using namespace std;
void swap(int &x, int &y) {
int temp = x;
x = y;
y = temp;
}
int main() {
int x, y;
cin >> x;
cin >> y;
while (!(x == 0 && y == 0)) {
if (x > y) {
swap(x, y);
}
cout << x << " " << y << endl;
cin >> x;
cin >> y;
}
return 0;
} | [["+", 8, 9, 0, 52, 15, 339, 51, 91, 17, 111], ["+", 0, 52, 15, 339, 51, 91, 28, 23, 0, 24], ["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 79], ["+", 51, 91, 28, 23, 0, 16, 31, 16, 17, 60], ["-", 0, 52, 15, 339, 51, 16, 12, 16, 17, 79], ["+", 51, 91, 28, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 52, 15, 339, 51, 91, 28, 23, 0, ... | 1 | 101 |
#include <iostream>
using namespace std;
int main() {
int x, y, z, i;
for (i = 0; i < 3001; i++) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
z = x;
x = y;
x = z;
} else {
}
cout << x << " " << y << '\n';
/* code */
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, z, i;
for (i = 0; i < 3001; i++) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
z = x;
x = y;
y = z;
} else {
}
cout << x << " " << y << '\n';
/* code */
}
return 0;
} | [["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22]] | 1 | 95 |
#include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
unsigned int a, b;
while (cin >> a >> b && a > 0 && b > 0)
if (a < b)
cout << a << " " << b << "\n";
else
cout << b << " " << a << "\n";
} | #include <iostream>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int a, b;
while (cin >> a >> b && (a > 0 || b > 0))
if (a < b)
cout << a << " " << b << "\n";
else
cout << b << " " << a << "\n";
} | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 87], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 24], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 106], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 25]] | 1 | 83 |
#include <stdio.h>
int main(void) {
int x, y, i;
for (i = 1; i <= 3000; i++) {
scanf("%d, %d", &x, &y);
if (x == 0 && y == 0) {
break;
}
if (x > y) {
printf("%d %d\n", y, x);
} else if (x <= y) {
printf("%d %d\n", x, y);
}
}
return 0;
} | #include <stdio.h>
int main(void) {
int x, y, i;
for (i = 1; i <= 3000; i++) {
scanf("%d %d", &x, &y);
if (x == 0 && y == 0) {
break;
}
if (x > y) {
printf("%d %d\n", y, x);
} else if (x <= y) {
printf("%d %d\n", x, y);
}
}
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 1 | 102 |
#include <stdio.h>
int main() {
int a, b, f, n;
int x[3000] = {0};
int y[3000] = {0};
n = 0;
while (1) {
scanf("%d &d", &a, &b);
if (a == 0 && b == 0) {
break;
}
x[n] = a;
y[n] = b;
n++;
}
for (f = 0; f < n; f++) {
if (x[f] >= y[f]) {
printf("%d %d\n", x[f], y[f]);... | #include <stdio.h>
int main() {
int a, b, f, n;
int x[3000] = {0};
int y[3000] = {0};
n = 0;
while (1) {
scanf("%d %d", &a, &b);
if (a == 0 && b == 0) {
break;
}
x[n] = a;
y[n] = b;
n++;
}
for (f = 0; f < n; f++) {
if (x[f] >= y[f]) {
printf("%d %d\n", y[f], x[f]);... | [["-", 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, 69, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 28, 22]] | 1 | 162 |
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main(void) {
int x;
int y;
int swap;
cin >> x >> y;
while (x != 0 && y != 0) {
if (x > y) {
swap = y;
y = x;
x = swap;
}
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
} | #include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main(void) {
int x;
int y;
int swap;
cin >> x >> y;
while (x != 0 || y != 0) {
if (x > y) {
swap = y;
y = x;
x = swap;
}
cout << x << " " << y << endl;
cin >> x >> y;
}
return 0;
} | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 92 |
#include <iostream>
#include <utility>
using namespace std;
//---- Swapping Two Numbers
int main() {
int a, b;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
swap(a, b);
cout << a << " " << b << endl;
}
return 0;
} | #include <iostream>
#include <utility>
using namespace std;
//---- Swapping Two Numbers
int main() {
int a, b;
while (1) {
cin >> a >> b;
if (a == 0 && b == 0)
break;
if (a > b)
swap(a, b);
cout << a << " " << b << endl;
}
return 0;
} | [["+", 8, 9, 0, 52, 8, 9, 0, 57, 0, 121], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 66 |
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x) {
cout << min(x, y) << ' ' << max(x, y) << endl;
}
} | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x || y) {
cout << min(x, y) << ' ' << max(x, y) << endl;
}
} | [["+", 0, 52, 15, 339, 51, 34, 12, 16, 17, 106], ["+", 0, 52, 15, 339, 51, 34, 12, 16, 12, 22]] | 1 | 59 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a[2];
while (cin >> a[0] >> a[1]) {
if (a[0] == 0 && a[1] == 0) {
break;
}
sort(a, a + 2);
cout << a[0] << " " << a[2] << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a[2];
while (cin >> a[0] >> a[1]) {
if (a[0] == 0 && a[1] == 0) {
break;
}
sort(a, a + 2);
cout << a[0] << " " << a[1] << endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13], ["+", 0, 16, 31, 16, 12, 69, 341, 342, 0, 13]] | 1 | 86 |
#include <iostream>
int main(int argc, char **argv) {
int x = 0;
int y = 0;
while (std::cin >> x >> y, (x != 0 && y != 0)) {
x <= y ? std::cout << x << " " << y : std::cout << y << " " << x;
std::cout << std::endl;
}
return 0;
} | #include <iostream>
int main(int argc, char **argv) {
int x = 0;
int y = 0;
while (std::cin >> x >> y, (x != 0 || y != 0)) {
x <= y ? std::cout << x << " " << y : std::cout << y << " " << x;
std::cout << std::endl;
}
return 0;
} | [["-", 15, 339, 51, 34, 12, 23, 0, 16, 17, 98], ["+", 15, 339, 51, 34, 12, 23, 0, 16, 17, 106]] | 1 | 86 |
#include <iostream>
using namespace std;
int main() {
int i, x, y;
i = 1;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y) {
cout << x << " " << y << "\n";
}
if (x > y) {
cout << y << " " << x << "\n";
}
i++;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int i, x, y;
i = 1;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x <= y) {
cout << x << " " << y << "\n";
}
if (x > y) {
cout << y << " " << x << "\n";
}
i++;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 97 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y && (x || y)) {
if (x > y)
swap(x, y);
cout << x << " " << y;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y && (x || y)) {
if (x > y)
swap(x, y);
cout << x << " " << y << endl;
}
} | [["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]] | 1 | 56 |
#include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
while (a != 0 || b != 0) {
swap(a, b);
cout << a << " " << b << endl;
cin >> a >> b;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
while (a != 0 || b != 0) {
if (a > b)
swap(a, b);
cout << a << " " << b << endl;
cin >> a >> b;
}
return 0;
} | [["+", 8, 9, 0, 52, 8, 9, 0, 57, 0, 121], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 63 |
#include <iostream>
using namespace std;
int main() {
int a, b;
while (cin >> a >> b, a != 0 && b != 0) {
cout << (a < b ? a : b) << " " << (a < b ? b : a) << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, b;
while (cin >> a >> b, a != 0 || b != 0) {
cout << (a < b ? a : b) << " " << (a < b ? b : a) << endl;
}
return 0;
} | [["-", 0, 52, 15, 339, 51, 34, 12, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 34, 12, 16, 17, 106]] | 1 | 66 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n, m;
while (cin >> n >> m, n != 0 && m != 0)
cout << min(n, m) << ' ' << max(n, m) << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int n, m;
while (cin >> n >> m, n != 0 || m != 0)
cout << min(n, m) << ' ' << max(n, m) << endl;
return 0;
} | [["-", 0, 52, 15, 339, 51, 34, 12, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 34, 12, 16, 17, 106]] | 1 | 60 |
#include <iostream>
using namespace std;
int main() {
int x, y, z;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (y > x) {
z = x;
x = y;
y = z;
}
cout << x << " " << y << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y, z;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (y > x) {
z = x;
x = y;
y = z;
}
cout << y << " " << x << endl;
}
return 0;
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 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 | 78 |
#include <iostream>
using namespace std;
int main() {
int a, b;
while (cin >> a >> b, a && b) {
cout << (a > b ? b : a) << " " << (a > b ? a : b) << endl;
}
} |
#include <iostream>
using namespace std;
int main() {
int a, b;
while (cin >> a >> b, a || b) {
cout << (a > b ? b : a) << " " << (a > b ? a : b) << endl;
}
} | [["-", 0, 52, 15, 339, 51, 34, 12, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 34, 12, 16, 17, 106]] | 1 | 59 |
#include <iostream>
using namespace std;
int main() {
int x, y, tmp;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y)
cout << x << " " << y << endl;
else
cout << x << " " << y << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y, tmp;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y)
cout << y << " " << x << endl;
else
cout << x << " " << y << endl;
}
} | [["-", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["+", 0, 16, 31, 16, 31, 16, 31, 16, 12, 22], ["-", 0, 57, 64, 1, 0, 16, 31, 16, 12, 22], ["+", 0, 57, 64, 1, 0, 16, 31, 16, 12, 22]] | 1 | 74 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x, y) {
if (x > y)
swap(x, y);
cout << x << ' ' << y << endl;
}
} | #include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y && (x || y)) {
if (x > y)
swap(x, y);
cout << x << ' ' << y << endl;
}
} | [["-", 8, 9, 0, 52, 15, 339, 51, 34, 0, 21], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 24], ["-", 0, 52, 15, 339, 51, 34, 12, 34, 0, 21], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 106], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 25]] | 1 | 56 |
#include <algorithm>
#include <iostream>
int main() {
int x, y;
while (std::cin >> x >> y && x != 0 && y != 0) {
if (x > y) {
std::swap(x, y);
}
std::cout << x << " " << y << std::endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
int main() {
int x, y;
while (std::cin >> x >> y && (x != 0 || y != 0)) {
if (x > y) {
std::swap(x, y);
}
std::cout << x << " " << y << std::endl;
}
return 0;
} | [["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 24], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 106], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 25]] | 1 | 71 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x != 0 && y != 0) {
if (x > y)
swap(x, y);
cout << x << " " << y << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x != 0 || y != 0) {
if (x > y)
swap(x, y);
cout << x << " " << y << endl;
}
return 0;
} | [["-", 0, 52, 15, 339, 51, 34, 12, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 34, 12, 16, 17, 106]] | 1 | 65 |
#include <stdio.h>
int main(void) {
int a[10001], b[10001], i, j, box;
i = 0;
scanf("%d %d", &a[i], &b[i]);
while (a[i] != 0 && b[i] != 0) {
if (a[i] > b[i]) {
box = b[i];
b[i] = a[i];
a[i] = box;
}
i++;
scanf("%d %d", &a[i], &b[i]);
}
for (j = 0; j < i; j++)
printf("%d... | #include <stdio.h>
int main(void) {
int a[10000], b[10000], i, j, box;
i = 0;
scanf("%d %d", &a[i], &b[i]);
while (a[i] != 0 || b[i] != 0) {
if (a[i] > b[i]) {
box = b[i];
b[i] = a[i];
a[i] = box;
}
i++;
scanf("%d %d", &a[i], &b[i]);
}
for (j = 0; j < i; j++)
printf("%d... | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]] | 1 | 161 |
/*
????????°??§???????????¨????????????
*/
#include <algorithm>
#include <ctype.h>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
#define LLU unsigned long long int
#defin... | /*
????????°??§???????????¨????????????
*/
#include <algorithm>
#include <ctype.h>
#include <iostream>
#include <iterator>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <time.h>
#include <vector>
#define LLU unsigned long long int
#defin... | [["+", 8, 9, 0, 52, 8, 9, 0, 57, 0, 121], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 22], ["+", 0, 52, 8, 9, 0, 57, 15, 339, 0, 25]] | 1 | 420 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b;
while (true) {
cin >> a >> b;
if (a == 0 && b == 0) {
return 0;
}
cout << max(a, b) << " " << min(a, b) << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int a, b;
while (true) {
cin >> a >> b;
if (a == 0 && b == 0) {
return 0;
}
cout << min(a, b) << " " << max(a, b) << endl;
}
return 0;
} | [["-", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 2, 63, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 2, 63, 22]] | 1 | 71 |
#include <iostream>
using namespace std;
int main() {
long int a[10000], b[10000], i = 1;
while (1) {
cin >> a[i] >> b[i];
if (a[i] == 0 && b[i] == 0) {
break;
}
if (a[i] - b[i] >= 0) {
cout << a[i] << " " << b[i] << endl;
} else {
cout << b[i] << " " << a[i] << endl;
}
... | #include <iostream>
using namespace std;
int main() {
long int a[10000], b[10000], i = 1;
while (1) {
cin >> a[i] >> b[i];
if (a[i] == 0 && b[i] == 0) {
break;
}
if (a[i] - b[i] >= 0) {
cout << b[i] << " " << a[i] << endl;
} else {
cout << a[i] << " " << b[i] << endl;
}
... | [["-", 31, 16, 31, 16, 31, 16, 12, 69, 28, 22], ["+", 31, 16, 31, 16, 31, 16, 12, 69, 28, 22], ["-", 0, 1, 0, 16, 31, 16, 12, 69, 28, 22], ["+", 0, 1, 0, 16, 31, 16, 12, 69, 28, 22]] | 1 | 127 |
#include <iostream>
int main() {
int x, y;
while (std::cin >> x >> y) {
if (x - y == 0)
break;
if (x < y)
std::cout << x << " " << y << std::endl;
else
std::cout << y << " " << x << std::endl;
}
} | #include <iostream>
int main() {
int x, y;
while (std::cin >> x >> y) {
if ((x | y) == 0)
break;
if (x < y)
std::cout << x << " " << y << std::endl;
else
std::cout << y << " " << x << std::endl;
}
} | [["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 33], ["+", 15, 339, 51, 16, 31, 23, 0, 16, 17, 139], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25]] | 1 | 74 |
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x > 0 || y > 0) {
cout << min(x, y) << max(x, y) << endl;
}
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
int x, y;
while (cin >> x >> y, x > 0 || y > 0) {
cout << min(x, y) << " " << max(x, y) << endl;
}
return 0;
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 58 |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x;
cin >> y;
if (x == 0) {
break;
} else if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
} |
#include <iostream>
using namespace std;
int main() {
int x, y;
while (1) {
cin >> x;
cin >> y;
if (x == 0 && y == 0) {
break;
} else if (x < y) {
cout << x << " " << y << endl;
} else {
cout << y << " " << x << endl;
}
}
} | [["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 77 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y) {
cout << y << " " << x << endl;
} else if (x < y) {
cout << x << " " << y << endl;
} else {
cout << x << " " << y << endl;... | #include <bits/stdc++.h>
using namespace std;
int main() {
int x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y) {
cout << y << " " << x << endl;
} else if (x < y) {
cout << x << " " << y << endl;
} else {
cout << x << " " << y << endl;... | [["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 38], ["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 13], ["-", 8, 9, 0, 52, 8, 9, 0, 37, 0, 35]] | 1 | 102 |
#include <iostream>
using namespace std;
int main() {
int a[10000] = {0};
int b[10000] = {0};
for (int i = 0; i < 10000; i++) {
cin >> a[i] >> b[i];
if (a[i] == b[i] && b[i] == 0) {
break;
}
}
for (int i = 0; i < 10000; i++) {
if (a[i] == b[i] && b[i] == 0) {
break;
}... | #include <iostream>
using namespace std;
int main() {
int a[10000] = {0};
int b[10000] = {0};
for (int i = 0; i < 10000; i++) {
cin >> a[i] >> b[i];
if (a[i] == b[i] && b[i] == 0) {
break;
}
}
for (int i = 0; i < 10000; i++) {
if (a[i] == b[i] && b[i] == 0) {
break;
}... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]] | 1 | 178 |
#include <iostream>
using namespace std;
int main() {
long int x = 1, y = 1;
while (x != 0 && y != 0) {
int a, b;
cin >> x >> y;
if (x != 0 && y != 0) {
if (x < y) {
a = x, b = y;
} else if (x >= y) {
a = y, b = x;
}
cout << a << " " << b << endl;
}
}
ret... | #include <iostream>
using namespace std;
int main() {
int x = 1, y = 1;
while (x != 0 || y != 0) {
int a, b;
cin >> x >> y;
if (x != 0 || y != 0) {
if (x < y) {
a = x, b = y;
} else if (x >= y) {
a = y, b = x;
}
cout << a << " " << b << endl;
}
}
return 0... | [["-", 0, 14, 8, 9, 0, 43, 39, 86, 0, 96], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 105 |
#include <iostream>
using namespace std;
int main() {
int x[3000], y[3000];
for (int i = 0; i < 3000; i++) {
cin >> x[i] >> y[i];
if (x[i] == 0 && y[i] == 0) {
break;
}
}
for (int i = 0; i < 3000; i++) {
if (x[i] == 0 && y[i] == 0) {
break;
}
if (x[i] >= y[i]) {
cout <... | #include <iostream>
using namespace std;
int main() {
int x[3000], y[3000];
for (int i = 0; i < 3000; i++) {
cin >> x[i] >> y[i];
if (x[i] == 0 && y[i] == 0) {
break;
}
}
for (int i = 0; i < 3000; i++) {
if (x[i] == 0 && y[i] == 0) {
break;
}
if (x[i] <= y[i]) {
cout <... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]] | 1 | 163 |
#include <stdio.h>
int main() {
int x, y, i;
for (i = 0; i < 10000; i++) {
scanf("%d %d", x, y);
if (x == 0 && y == 0)
break;
if (x > y)
printf("%d %d", y, x);
else
printf("%d %d", x, y);
}
return 0;
} | #include <stdio.h>
int main() {
int x, y, i;
for (i = 0; i < 10000; i++) {
scanf("%d %d", &x, &y);
if (x == 0 && y == 0)
break;
if (x > y)
printf("%d %d\n", y, x);
else
printf("%d %d\n", x, y);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 85 |
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
while (cin >> a >> b, a | b) {
if (a < b) {
swap(a, b);
}
cout << a << " " << b << endl;
}
return 0;
} | #include <bits/stdc++.h>
using namespace std;
int main() {
int a, b;
while (cin >> a >> b, a | b) {
if (a > b) {
swap(a, b);
}
cout << a << " " << b << endl;
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47]] | 1 | 61 |
#include <iostream>
using namespace std;
int main() {
int a, x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
a = x;
x = y;
y = a;
}
cout << x << y << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int a, x, y;
while (1) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x > y) {
a = x;
x = y;
y = a;
}
cout << x << " " << y << endl;
}
return 0;
} | [["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 8, 9, 0, 1, 0, 16, 31, 16, 17, 151]] | 1 | 74 |
#include <iostream>
int main(int argc, char const *argv[]) {
int x, y;
int tmp;
while (1) {
std::cin >> x >> y;
if (x == y == 0) {
break;
}
if (x > y) {
tmp = x;
x = y;
y = tmp;
}
std::cout << x << " " << y << '\n';
}
return 0;
} | #include <iostream>
int main(int argc, char const *argv[]) {
int x, y;
int tmp;
while (1) {
std::cin >> x >> y;
if (x == 0 && y == 0) {
break;
}
if (x > y) {
tmp = x;
x = y;
y = tmp;
}
std::cout << x << " " << y << '\n';
}
return 0;
} | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 90 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int x[3000], y[3000];
int i = 0;
int swap;
for (i = 0; i < 100000; ++i) {
scanf("%d%d", x[i], y[i]);
if (x[i] == 0 && y[i] == 0)
break;
if (x[i] > y[i]) {
swap = x[i];
x[i] = y[i];
y[i] = swap;
}
}... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int x[3000], y[3000];
int i = 0;
int swap;
for (i = 0; i < 100000; ++i) {
scanf("%d%d", &x[i], &y[i]);
if (x[i] == 0 && y[i] == 0)
break;
if (x[i] > y[i]) {
swap = x[i];
x[i] = y[i];
y[i] = swap;
}
... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 156 |
#include <iostream>
using namespace std;
int main(void) {
int a, b, x, y;
while (true) {
cin >> x >> y;
if (x == 0 || y == 0)
break;
if (x < y) {
a = x;
b = y;
} else {
a = y;
b = x;
}
cout << a << " " << b << endl;
}
} | #include <iostream>
using namespace std;
int main(void) {
int a, b, x, y;
while (true) {
cin >> x >> y;
if (x == 0 && y == 0)
break;
if (x < y) {
a = x;
b = y;
} else {
a = y;
b = x;
}
cout << a << " " << b << endl;
}
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 85 |
#include <stdio.h>
int main() {
int a, b, c;
while (1) {
scanf("%d", &a);
scanf("%d", &b);
if (a == 0 && b == 0)
break;
else if (a > b) {
c = a;
a = b;
b = c;
}
printf("%d %d", a, b);
}
return 0;
} | #include <stdio.h>
int main() {
int a, b, c;
while (1) {
scanf("%d", &a);
scanf("%d", &b);
if (a == 0 && b == 0)
break;
else if (a > b) {
c = a;
a = b;
b = c;
}
printf("%d %d\n", a, b);
}
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 1 | 88 |
#include <iostream>
using namespace std;
int main() {
int x, y;
for (int i = 0; i < 3000; i++) {
cin >> x >> y;
if (x > 0 && y > 0) {
if (x > y) {
swap(x, y);
}
cout << x << ' ' << y << '\n';
} else if (x == 0 && y == 0) {
break;
}
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
int x, y;
for (int i = 0; i < 3000; i++) {
cin >> x >> y;
if (x > 0 || y > 0) {
if (x > y) {
swap(x, y);
}
cout << x << ' ' << y << '\n';
} else if (x == 0 && y == 0) {
break;
}
}
return 0;
} | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]] | 1 | 98 |
//============================================================================
// Name : AOL.cpp
// Author : Akari Fujii
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#in... | //============================================================================
// Name : AOL.cpp
// Author : Akari Fujii
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#in... | [["-", 8, 9, 0, 57, 15, 339, 51, 34, 0, 21], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]] | 1 | 89 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.