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() { int i, a, b; for (i = 0; i < 3000; i++) { scanf("%d %d", &a, &b); if (a == 0 || b == 0) break; else { if (a > b) { int temp = a; a = b; b = temp; } printf("%d %d\n", a, b); } } return 0; }
#include <stdio.h> int main() { int i, a, b; for (i = 0; i < 3000; i++) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; else { if (a > b) { int temp = a; a = b; b = temp; } printf("%d %d\n", a, b); } } return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]]
0
94
#include <stdio.h> int main(void) { int x, y, i; for (i = 1; 1; i++) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x < y) { printf("%d %d", x, y); } else if (x > y) { printf("%d %d", y, x); } else if (x = y) { printf("%d %d", x, y); } } return 0; }
#include <stdio.h> int main(void) { int x, y, i; for (i = 1; 1; i++) { scanf("%d %d\n", &x, &y); if (x == 0 && y == 0) break; if (x < y) { printf("%d %d\n", x, y); } else if (x > y) { printf("%d %d\n", y, x); } else if (x = y) { printf("%d %d\n", x, y); } } retur...
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
116
#include <stdio.h> void swap(int *x, int *y) { int z; z = *x; *x = *y; *y = z; } int main() { int x, y; scanf("%d %d", &x, &y); while (x != 0 && y != 0) { if (x > y) { swap(&x, &y); } printf("%d %d\n", x, y); scanf("%d %d", &x, &y); } return 0; }
#include <stdio.h> void swap(int *x, int *y) { int z; z = *x; *x = *y; *y = z; } int main() { int x, y; scanf("%d %d", &x, &y); while (!(x == 0 && y == 0)) { if (x > y) { swap(&x, &y); } printf("%d %d\n", x, y); scanf("%d %d", &x, &y); } return 0; }
[["+", 8, 9, 0, 52, 15, 23, 0, 91, 17, 111], ["+", 0, 52, 15, 23, 0, 91, 28, 23, 0, 24], ["-", 0, 52, 15, 23, 0, 16, 31, 16, 17, 79], ["+", 0, 91, 28, 23, 0, 16, 31, 16, 17, 60], ["-", 0, 52, 15, 23, 0, 16, 12, 16, 17, 79], ["+", 0, 91, 28, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 52, 15, 23, 0, 91, 28, 23, 0, 25]]
0
115
#include <stdio.h> int main(void) { int i, x[9999], y[9999]; for (i = 0; i < 10000; i++) { scanf("%d%d", &x, &y); if (x[i] == 0 && y[i] == 0) return 0; if (x[i] > y[i]) printf("%d %d\n", y[i], x[i]); else printf("%d %d\n", x[i], y[i]); } return 0; }
#include <stdio.h> int main(void) { int i, x[9999], y[9999]; for (i = 0; i < 10000; i++) { scanf("%d%d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) return 0; if (x[i] > y[i]) printf("%d %d\n", y[i], x[i]); else printf("%d %d\n", x[i], y[i]); } return 0; }
[["+", 0, 2, 3, 4, 0, 66, 28, 69, 0, 70], ["+", 0, 2, 3, 4, 0, 66, 28, 69, 71, 22], ["+", 0, 2, 3, 4, 0, 66, 28, 69, 0, 73]]
0
121
#include <stdio.h> int main() { int x, y, z, i = 0; for (i = 0; i < 3000; i++) { scanf("%d%d", &x, &y); if (x == 0 && y == 0) { break; } if (x < y) { x = z; x = y; y = z; } printf("%d %d\n", x, y); } return 0; }
#include <stdio.h> int main() { int x, y, z, i = 0; for (i = 0; i < 3000; i++) { scanf("%d%d", &x, &y); if (x == 0 && y == 0) { break; } if (x > y) { z = x; x = y; y = z; } printf("%d %d\n", x, y); } return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["-", 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]]
0
96
#include <stdio.h> int main() { int x, y, dx[3000], dy[3000], i, j, m; i = 0; do { scanf("%d %d", &dx[i], &dy[i]); i++; } while (dx[i - 1] != 0 && dy[i - 1] != 0); j = i; for (i = 1; i < j; i++) { if (dx[i - 1] < dy[i - 1]) { printf("%d %d\n", dx[i - 1], dy[i - 1]); } else { p...
#include <stdio.h> int main() { int x, y, dx[3000], dy[3000], i, j; i = 0; do { scanf("%d %d", &dx[i], &dy[i]); i++; } while (dx[i - 1] != 0 || dy[i - 1] != 0); j = i; for (i = 1; i < j; i++) { if (dx[i - 1] < dy[i - 1]) { printf("%d %d\n", dx[i - 1], dy[i - 1]); } else { prin...
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 8, 9, 0, 82, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 82, 15, 23, 0, 16, 17, 106]]
0
166
#include <stdio.h> int main(void) { int i, j; int tmp; int x[3000], y[3000]; for (i = 0; i < 3000; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; if (x[i] > y[i]) { tmp = x[i]; x[i] = y[i]; y[i] = tmp; } } for (j = 0; j < i - 1; j++) { ...
#include <stdio.h> int main(void) { int i, j; int tmp; int x[3000], y[3000]; for (i = 0; i < 3000; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; if (x[i] > y[i]) { tmp = x[i]; x[i] = y[i]; y[i] = tmp; } } for (j = 0; j < i; j++) { p...
[["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]]
0
156
#include <stdio.h> int main(void) { int x[10000], y[10000]; int i = 0, j; do { scanf("%d %d", &x[i], &y[i]); i++; } while (x[i - 1] && y[i - 1]); i--; for (j = 0; j < i; j++) { if (x[j] < y[j]) { printf("%d %d\n", x[j], y[j]); } else { printf("%d %d\n", y[j], x[j]); } }...
#include <stdio.h> int main(void) { int x[10000], y[10000]; int i = 0, j; do { scanf("%d %d", &x[i], &y[i]); i++; } while (x[i - 1] || y[i - 1]); i--; for (j = 0; j < i; j++) { if (x[j] < y[j]) { printf("%d %d\n", x[j], y[j]); } else { printf("%d %d\n", y[j], x[j]); } }...
[["-", 8, 9, 0, 82, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 82, 15, 23, 0, 16, 17, 106]]
0
143
#include <stdio.h> #define I 10000 int main(void) { int i, j, u, x[I], y[I]; i = 0; while (1) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; i++; i = u; } for (i = 0; i < u; i++) { if (x[i] > y[i]) { j = x[i]; x[i] = y[i]; y[i] = j; } p...
#include <stdio.h> #define I 10000 int main(void) { int i, j, u, x[I], y[I]; i = 0; while (1) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; i++; u = i; } for (i = 0; i < u; i++) { if (x[i] > y[i]) { j = x[i]; x[i] = y[i]; y[i] = j; } p...
[["-", 0, 52, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 52, 8, 9, 0, 1, 0, 11, 12, 22]]
0
157
#include <stdio.h> int main() { int i, a, temp, x[2999], y[2999]; for (i = 0; i <= 2999; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) { a = i; break; } } for (i = 0; i <= a; i++) { if (x[i] > y[i]) { temp = x[i]; x[i] = y[i]; y[i] = temp; ...
#include <stdio.h> int main() { int i, a, temp, x[2999], y[2999]; for (i = 0; i <= 2999; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) { a = i; break; } } for (i = 0; i < a; i++) { if (x[i] > y[i]) { temp = x[i]; x[i] = y[i]; y[i] = temp; ...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]]
0
157
#include <stdio.h> int main(void) { int x[3000], y[3000]; int i, a; a = 0; for (i = 0; i < 3000; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; a++; } for (i = 0; i < a; i++) { if (x[i] <= y[i]) printf("%d %d", x[i], y[i]); else printf("%d %d", ...
#include <stdio.h> int main(void) { int x[3000], y[3000]; int i, a; a = 0; for (i = 0; i < 3000; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; a++; } for (i = 0; i < a; i++) { if (x[i] <= y[i]) printf("%d %d\n", x[i], y[i]); else printf("%d %d\...
[["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
149
#include <stdio.h> int main() { int i; int n = 0; int x[3000]; int y[3000]; for (i = 0; i < 3000; i++) { scanf("%d %d\n", &x[i], &y[i]); n++; if (x[i] == 0 && y[i] == 0) { break; } } for (i = 0; i < n; i++) { if (x[i] <= y[i]) { printf("%d %d\n", x[i], y[i]); } else...
#include <stdio.h> int main() { int i; int n = 0; int x[3000]; int y[3000]; for (i = 0; i < 3000; i++) { scanf("%d %d\n", &x[i], &y[i]); n++; if (x[i] == 0 && y[i] == 0) { break; } } for (i = 0; i < n - 1; i++) { if (x[i] <= y[i]) { printf("%d %d\n", x[i], y[i]); } ...
[["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]]
0
157
#include <stdio.h> int main() { int a[3000], b[3000], i, j, x; for (i = 0; i < 3000; i++) { scanf("%d %d", &a[i], &b[i]); if (a[i] == 0 && b[i] == 0) { break; } else if (a[i] > b[i]) { x = a[i]; a[i] = b[i]; b[i] = x; } for (j = 0; j < i; j++) printf("%d %d\n", a[...
#include <stdio.h> int main() { int a[3000], b[3000], i, j, x; for (i = 0; i < 3000; i++) { scanf("%d %d", &a[i], &b[i]); if (a[i] == 0 && b[i] == 0) { break; } else if (a[i] > b[i]) { x = a[i]; a[i] = b[i]; b[i] = x; } } for (j = 0; j < i; j++) { printf("%d %d\n",...
[["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45]]
0
152
#include <stdio.h> int main() { int a[3000], b[3000], i, t = 0; for (i = 0; i < 3000; i++) scanf("%d" "%d", &a[i], &b[i]); while (a[t] != 0 || b[t] != 0) { if (a[t] >= b[t]) printf("%d %d\n", a[t], b[t]); if (b[t] > a[t]) printf("%d %d\n", b[t], a[t]); t = t +...
#include <stdio.h> int main() { int a[3000], b[3000], i, t = 0; for (i = 0; i < 3000; i++) scanf("%d" "%d", &a[i], &b[i]); while (a[t] != 0 || b[t] != 0) { if (a[t] <= b[t]) printf("%d %d\n", a[t], b[t]); if (b[t] < a[t]) printf("%d %d\n", b[t], a[t]); t = t +...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]]
0
147
#include <stdio.h> int main() { int x[3000], y[3000], n; for (n = 0; n < 3000; n++) { scanf("%d %d", &x[n], &y[n]); if (x[n] == 0 && y[n] == 0) break; } for (n = 0; n < 3000; n++) { if (x[n] == 0 && y[n] == 0) break; if (x[n] < y[n]) { printf("%d %d", x[n], y[n]); } else...
#include <stdio.h> int main() { int x[3000], y[3000], n; for (n = 0; n < 3000; n++) { scanf("%d %d\n", &x[n], &y[n]); if (x[n] == 0 && y[n] == 0) break; } for (n = 0; n < 3000; n++) { if (x[n] == 0 && y[n] == 0) break; if (x[n] < y[n]) { printf("%d %d\n", x[n], y[n]); } ...
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
160
#include <stdio.h> main() { int x, y, temp; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x > y) { temp = x; y = temp; x = y; } printf("%d %d\n", x, y); } return 0; }
#include <stdio.h> int main() { int x, y, temp; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x > y) { temp = y; y = x; x = temp; } printf("%d %d\n", x, y); } return 0; }
[["+", 36, 36, 36, 36, 0, 30, 0, 14, 39, 40], ["-", 0, 1, 0, 2, 3, 4, 0, 25, 0, 35], ["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]]
0
81
#include <stdio.h> typedef struct { int first; int second; } Number; int main() { Number a[3000] = {0}; int i = 0; int temp; scanf("%d %d", &a[0].first, &a[0].second); if (a[0].first > a[0].second) { temp = a[0].first; a[0].first = a[0].second; a[0].second = temp; } while (((a[i].first...
#include <stdio.h> typedef struct { int first; int second; } Number; int main() { Number a[3000] = {0}; int i = 0; int temp; scanf("%d %d", &a[0].first, &a[0].second); if (a[0].first > a[0].second) { temp = a[0].first; a[0].first = a[0].second; a[0].second = temp; } while (!((a[i].firs...
[["+", 8, 9, 0, 52, 15, 23, 0, 91, 17, 111], ["-", 0, 23, 0, 16, 31, 23, 0, 16, 17, 79], ["+", 28, 23, 0, 16, 31, 23, 0, 16, 17, 60], ["-", 0, 23, 0, 16, 12, 23, 0, 16, 17, 79], ["+", 28, 23, 0, 16, 12, 23, 0, 16, 17, 60]]
0
240
#include <stdio.h> int main(void) { int x[3000], y[3000], i, j; for (i = 0; i < 3000; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; j++; } for (i = 0; i < j; i++) { if (x[i] >= y[i]) { printf("%d %d\n", x[i], y[i]); } else { printf("%d %d\n", y[i...
#include <stdio.h> int main(void) { int x[3000], y[3000], i, j; for (i = 0; i < 3000; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) break; j++; } for (i = 0; i < j; i++) { if (x[i] <= y[i]) { printf("%d %d\n", x[i], y[i]); } else { printf("%d %d\n", y[i...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
150
#include <stdio.h> int main() { int x[3000], y[3000]; int i = 0, j = 0; while (1) { scanf("%d %d\n", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) { break; } i++; } while (j < i) { if (x[j] < y[j]) { printf("\n%d %d\n", x[j], y[j]); } else { printf("\n%d %d\n", y[j], ...
#include <stdio.h> int main() { int x[3000], y[3000]; int i = 0, j = 0; while (1) { scanf("%d %d\n", &x[i], &y[i]); if (x[i] == 0 && y[i] == 0) { break; } i++; } while (j < i) { if (x[j] < y[j]) { printf("%d %d\n", x[j], y[j]); } else { printf("%d %d\n", y[j], x[j])...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
146
#include <stdio.h> int main() { int x[3000], y[3000]; int i = 0, j; do { scanf("%d %d", &x[i], &y[i]); i++; } while (!((x[i - 1] == 0) && (y[i - 1] == 0))); for (j = 0; j <= (i - 1); j++) { if (x[j] <= y[j]) { printf("%d %d\n", x[j], y[j]); } else if (x[j] > y[j]) { printf("%d %d...
#include <stdio.h> int main() { int x[3000], y[3000]; int i = 0, j; do { scanf("%d %d", &x[i], &y[i]); i++; } while (!((x[i - 1] == 0) && (y[i - 1] == 0))); for (j = 0; (i - 1) != j; j++) { if (x[j] <= y[j]) { printf("%d %d\n", x[j], y[j]); } else if (x[j] > y[j]) { printf("%d %d...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 79], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]]
0
166
#include <stdio.h> int main() { int x[3000], y[3000]; int i = 0; int j; do { scanf("%d %d", &x[i], &y[i]); i++; } while (!((x[i - 1] == 0) && (y[i - 1] == 0))); for (j = 0; i != j; j++) { if (x[j] < y[j]) { printf("%d %d\n", x[j], y[j]); } else if (x[j] > y[j]) { printf("%d %d...
#include <stdio.h> int main() { int x[3000], y[3000]; int i = 0; int j; do { scanf("%d %d", &x[i], &y[i]); i++; } while (!((x[i - 1] == 0) && (y[i - 1] == 0))); for (j = 0; (i - 1) != j; j++) { if (x[j] <= y[j]) { printf("%d %d\n", x[j], y[j]); } else if (x[j] > y[j]) { printf...
[["+", 8, 9, 0, 7, 15, 16, 31, 23, 0, 24], ["+", 0, 7, 15, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 7, 15, 16, 31, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 7, 15, 16, 31, 23, 0, 25], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
163
#include <stdio.h> int main() { int a, i; int n[3000] = {0}, m[3000] = {0}; for (i = 0; i < 3000; i++) { scanf("%d %d", &n[i], &m[i]); if (n[i] == 0 && m[i] == 0) { break; } if (n[i] > m[i]) { a = n[i]; n[i] = m[i]; m[i] = a; } } for (i = 0; i < 3000; i++) { ...
#include <stdio.h> int main() { int a, i; int n[3000] = {0}, m[3000] = {0}; for (i = 0; i < 3000; i++) { scanf("%d %d", &n[i], &m[i]); if (n[i] == 0 && m[i] == 0) { break; } if (n[i] > m[i]) { a = n[i]; n[i] = m[i]; m[i] = a; } } for (i = 0; i < 3000; i++) { ...
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
179
#include <stdio.h> int main() { int x, y, max, min, i; for (i = 0; 1; i++) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x > y) { max = x; min = y; } else { min = x; max = y; } printf("%d %d\n", x, y); } return 0; }
#include <stdio.h> int main() { int x, y, max, min, i; for (i = 0; i < 5000; i++) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x > y) { max = x; min = y; } else { min = x; max = y; } printf("%d %d\n", min, max); } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 7, 15, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
0
99
#include <stdio.h> int main() { int i = 1; int x, y; while (i <= 3000) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x <= y) { printf("%d %d", x, y); } else { printf("%d %d", y, x); } i++; } return 0; }
#include <stdio.h> int main() { int i = 1; int x, y; while (i <= 3000) { 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); } i++; } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
90
#include <stdio.h> int main(void) { int x, y, temp; do { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } else { if (x < y) { temp = x; x = y; y = temp; } printf("%d %d\n", x, y); } } while (x != 0 || y != 0); return (0); }
#include <stdio.h> int main(void) { int x, y, temp; do { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } else { if (x > y) { temp = x; x = y; y = temp; } printf("%d %d\n", x, y); } } while (x != 0 || y != 0); return (0); }
[["-", 0, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 0, 9, 0, 57, 15, 23, 0, 16, 17, 47]]
0
97
#include <stdio.h> int main() { int x, y; do { scanf("%d%d", x, y); if (x == 0 && y == 0) break; else if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } while (0); return 0; }
#include <stdio.h> int main() { int x, y; do { scanf("%d%d", &x, &y); if (x == 0 && y == 0) break; else if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } while (1); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 0, 14, 8, 9, 0, 82, 15, 23, 0, 13], ["+", 0, 14, 8, 9, 0, 82, 15, 23, 0, 13]]
0
83
#include <stdio.h> int main() { int x, y; while (scanf("%d%d", &x, &y) == 2) { if (x > y) { printf("%d %d\n", y, x); } else { printf("%d %d\n", x, y); } } return 0; }
#include <stdio.h> int main() { int x, y; while (scanf("%d%d", &x, &y) == 2 && (x || y)) { if (x > y) { printf("%d %d\n", y, x); } else { printf("%d %d\n", x, y); } } return 0; }
[["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 98], ["+", 0, 52, 15, 23, 0, 16, 12, 23, 0, 24], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 31, 22], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 17, 106], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 12, 22], ["+", 0, 52, 15, 23, 0, 16, 12, 23, 0, 25]]
0
70
#include <stdio.h> int main(void) { int x, y; scanf("%d %d", &x, &y); while (x != 0 || y != 0) { if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", x, y); } scanf("%d %d", &x, &y); } return 0; }
#include <stdio.h> int main(void) { int x, y; scanf("%d %d", &x, &y); while (x != 0 || y != 0) { if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } scanf("%d %d", &x, &y); } 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]]
0
90
#include <stdio.h> int main(void) { while (1) { int x, y; scanf("%d %d\n", &x, &y); if (x == 0 || y == 0) { break; } if (y < x) { int tmp = x; x = y; y = tmp; } printf("%d %d\n", x, y); } return 0; }
#include <stdio.h> int main(void) { while (1) { int x, y; scanf("%d %d\n", &x, &y); if (x == 0 && y == 0) { break; } if (y < x) { int tmp = x; x = y; y = tmp; } printf("%d %d\n", x, y); } return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]]
0
84
#include <stdio.h> int main(void) { int a, b; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; printf("%d %d", a < b ? a : b, a > b ? a : b); } return 0; }
#include <stdio.h> int main(void) { int a, b; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; printf("%d %d\n", a < b ? a : b, a > b ? a : b); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
71
main() { int x, y; int z; do { scanf("%d%d", &x, &y); if (x > y) { z = x; x = y; y = x; } if (x != 0 || y != 0) printf("%d %d\n", x, y); } while (x != 0 || y != 0); return 0; }
main() { int x, y; int z; do { scanf("%d%d", &x, &y); if (x > y) { z = x; x = y; y = z; } if (x != 0 || y != 0) printf("%d %d\n", x, y); } while (x != 0 || y != 0); return 0; }
[["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]]
0
85
#include <stdio.h> int main() { int x[10000]; int y[10000]; int i; int length = 0; do { scanf("%d %d", &x[length], &y[length]); length += 1; } while (x[length - 1] != 0 && y[length - 1] != 0); for (i = 0; i < length - 1; i++) { if (x[i] <= y[i]) { printf("%d %d\n", x[i], y[i]); } els...
#include <stdio.h> int main() { int x[10000]; int y[10000]; int i; int length = 0; do { scanf("%d %d", &x[length], &y[length]); length += 1; } while (x[length - 1] != 0 || y[length - 1] != 0); for (i = 0; i < length - 1; i++) { if (x[i] <= y[i]) { printf("%d %d\n", x[i], y[i]); } els...
[["-", 8, 9, 0, 82, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 82, 15, 23, 0, 16, 17, 106]]
0
148
#include <stdio.h> int main(void) { int y, x, tmp = 0; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (y >= x) { tmp = x; x = y; y = tmp; } printf("%d %d\n", x, y); } return 0; }
#include <stdio.h> int main(void) { int y, x, tmp = 0; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x >= y) { tmp = x; x = y; y = tmp; } printf("%d %d\n", x, y); } return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 22]]
0
84
#include <stdio.h> int main() { int x, y; for (;;) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x < y) { printf("%d %d", x, y); } else { printf("%d %d", y, x); } } return 0; }
#include <stdio.h> int main() { int x, y; for (;;) { 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, 44]]
0
81
#include <stdio.h> int main() { int i, x, y; scanf("%d %d", &x, &y); while (x != 0 && y != 0) { if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } scanf("%d %d", &x, &y); } return 0; }
#include <stdio.h> int main() { int i, x, y; scanf("%d %d", &x, &y); while (x != 0 || y != 0) { if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } scanf("%d %d", &x, &y); } return 0; }
[["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 106]]
0
91
#include <stdio.h> int main(void) { int a, b; int i; for (i = 0; 1; i++) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; if (a < b) printf("%d %d", a, b); else printf("%d %d", b, a); } return 0; }
#include <stdio.h> int main(void) { int a, b; int i; for (i = 0; 1; i++) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; if (a < b) printf("%d %d\n", a, b); else printf("%d %d\n", b, a); } return 0; }
[["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
87
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; while ((a > 0) && (b > 0)) { if (a < b) { cout << a << " " << b << endl; } else if (b < a) { cout << b << " " << a << endl; } else { cout << a << " " << b << endl; } cin >> a >> b; } }
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; while ((a > 0) || (b > 0)) { if (a < b) { cout << a << " " << b << endl; } else if (b < a) { cout << b << " " << a << endl; } else { cout << a << " " << b << endl; } cin >> a >> b; } }
[["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106]]
1
101
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while ((x > 0) && (y > 0)) { if (x > y) { cout << y << " " << x << endl; } else cout << x << " " << y << endl; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while ((x > 0) || (y > 0)) { if (x > y) { cout << y << " " << x << endl; } else 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
81
#include <iostream> using namespace std; int main() { int x, y, temp; while (1) { cin >> x >> y; if (x == 0 && y == 0) { return 0; } if (x > y) { temp = x; x = y; y = temp; } cout << x << y << endl; } }
#include <iostream> using namespace std; int main() { int x, y, temp; while (1) { cin >> x >> y; if (x == 0 && y == 0) { return 0; } if (x > y) { temp = x; x = y; y = temp; } cout << x << " " << y << 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
74
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (x > 0 && y > 0) { 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 > 0 || y > 0) { 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; #define for_(i, a, b) for (int i = (a); i < (b); i++) #define rfor_(i, a, b) for (int i = (b)-1; i >= (a); i--) #define rep(i, n) for_(i, 0, (n)) #define rrep(i, n) rfor_(i, 0, (n)) int n, m; int main() { cin.tie(0); while (cin >> n >> m, n || m) cout << (n < m ? n :...
#include <iostream> using namespace std; #define for_(i, a, b) for (int i = (a); i < (b); i++) #define rfor_(i, a, b) for (int i = (b)-1; i >= (a); i--) #define rep(i, n) for_(i, 0, (n)) #define rrep(i, n) rfor_(i, 0, (n)) int n, m; int main() { cin.tie(0); while (cin >> n >> m, n || m) cout << (n < m ? n :...
[["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 104], ["+", 0, 16, 31, 16, 31, 16, 12, 103, 0, 125], ["+", 0, 52, 8, 1, 0, 16, 31, 16, 17, 151]]
1
99
#include <iostream> using namespace std; int main(void) { // Your code here! int x, y; for (int i = 0; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x >= y) { cout << y << " " << x << endl; } else if (x < y) { cout << x << y << endl; } } retur...
#include <iostream> using namespace std; int main(void) { // Your code here! int x, y; for (int i = 0; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x >= y) { cout << y << " " << x << endl; } else if (x < y) { cout << x << " " << y << endl; } } ...
[["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 17, 151]]
1
96
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_C&lang=jp #include <iostream> using namespace std; int main() { int x[3000]; int y[3000]; int exchange; // xとyを交換するときに一時的に使う変数 for (int i = 1; i <= 3000; i = i + 1) { cin >> x[i] >> y[i]; if (x[i] == 0) { if (y[i] == 0) { ...
// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_C&lang=jp #include <iostream> using namespace std; int main() { int x[3000]; int y[3000]; int exchange; // xとyを交換するときに一時的に使う変数 for (int i = 1; i <= 3000; i = i + 1) { cin >> x[i] >> y[i]; if (x[i] == 0) { if (y[i] == 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
153
#include <iostream> int main(int argc, char **argv) { int a = 0; int b = 0; while (true) { std::cin >> a >> b; if (a == b) { break; } if (a < b) { std::cout << a << " " << b << std::endl; } else { std::cout << b << " " << a << std::endl; } } return 0; }
#include <iostream> int main(int argc, char **argv) { int a = 0; int b = 0; while (true) { std::cin >> a >> b; if (a == 0 && b == 0) { break; } if (a < b) { std::cout << a << " " << b << std::endl; } else { std::cout << b << " " << a << std::endl; } } return 0; }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]]
1
95
#include <iostream> #include <vector> using namespace std; int main() { int a, b, tmp; int len = 0; vector<int> data; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; len += 2; if (b < a) { tmp = a; b = a; a = tmp; } data.push_back(a); data.push_back(b...
#include <iostream> #include <vector> using namespace std; int main() { int a, b, tmp; int len = 0; vector<int> data; while (1) { cin >> a >> b; if (a == 0 && b == 0) break; len += 2; if (b < a) { tmp = b; b = a; a = tmp; } data.push_back(a); data.push_back(b...
[["-", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 22]]
1
131
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) return 0; if (x > y) swap(x, y); cout << x << ' ' << y; } }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y) { if (x == 0 && y == 0) return 0; 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
63
#include <stdio.h> int main() { int a, b; while (1) { scanf("%d %d", &a, &b); if (!a && !b) break; if (a > b) printf("%d %d\n", a, b); else printf("%d %d\n", b, a); } return 0; }
#include <stdio.h> int main() { int a, b; while (1) { scanf("%d %d", &a, &b); if ((!a) && (!b)) break; if (a < b) printf("%d %d\n", a, b); else printf("%d %d\n", b, a); } return 0; }
[["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 24], ["+", 0, 57, 15, 339, 51, 16, 12, 23, 0, 25], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
76
#include <iostream> int main() { int x, y; for (std::cin >> x >> y; x != 0 && y != 0; std::cin >> x >> y) { if (x < y) { std::cout << x << ' ' << y << std::endl; } else { std::cout << y << ' ' << x << std::endl; } } }
#include <iostream> int main() { int x, y; for (std::cin >> x >> y; x != 0 || y != 0; std::cin >> x >> y) { if (x < y) { std::cout << x << ' ' << y << std::endl; } else { std::cout << y << ' ' << x << std::endl; } } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 98], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 106]]
1
84
#include <bits/stdc++.h> using namespace std; #define int long long #undef int #define mk make_pair #define pb push_back typedef pair<int, int> pii; const int mod = 1000000007; const int INF = 1000000009; signed main() { int x, y; while (cin >> x >> y, x, y) { printf("%d %d\n", min(x, y), max(x, y)); } re...
#include <bits/stdc++.h> using namespace std; #define int long long #undef int #define mk make_pair #define pb push_back typedef pair<int, int> pii; const int mod = 1000000007; const int INF = 1000000009; signed main() { int x, y; while (cin >> x >> y, x || y) { printf("%d %d\n", min(x, y), max(x, y)); } ...
[["-", 0, 52, 15, 339, 51, 34, 12, 34, 0, 21], ["+", 0, 52, 15, 339, 51, 34, 12, 16, 17, 106]]
1
89
#include <stdio.h> using namespace std; int main() { int x, y; for (int i = 1;; i++) { scanf("%d %d", &x, &y); if (x == 0) break; if (x > y) { printf("%d %d\n", y, x); } else { printf("%d %d\n", x, y); } } }
#include <stdio.h> using namespace std; int main() { int x, y; for (int i = 1;; i++) { scanf("%d %d", &x, &y); if (x == 0 and y == 0) break; if (x > y) { printf("%d %d\n", y, x); } else { printf("%d %d\n", x, y); } } }
[["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 355], ["+", 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
86
#include <cstdio> int main() { int x, y; while (1) { scanf("%d %d", &x, &y); if (x * x + y * y == 0) break; else if (x <= y) printf("%d < %d\n", x, y); else printf("%d < %d\n", y, x); } return 0; }
#include <cstdio> int main() { int x, y; while (1) { scanf("%d %d", &x, &y); if (x * x + y * y == 0) break; else if (x <= y) printf("%d %d\n", x, y); else printf("%d %d\n", y, x); } return 0; }
[["-", 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
81
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x != 0 && y != 0) { if (x <= y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } else { return 0; } } }
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x != 0 || y != 0) { if (x <= y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } else { return 0; } } }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
82
#include <iostream> using namespace std; int main() { int x; int y; cin >> x >> y; while (x || y) { if (x > y) { int tmp = x; x = y; y = tmp; } cout << x << " " << y; cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main() { int x; int y; cin >> x >> y; while (x || y) { if (x > y) { int tmp = x; x = y; y = tmp; } cout << x << " " << y << endl; cin >> x >> y; } return 0; }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]]
1
72
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; while (!(x == 0 && y == 0)) { 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 == 0 && y == 0)) { if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } cin >> x >> y; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
82
#include <iostream> #include <string> #include <vector> using namespace std; int main(void) { int x, y; vector<string> v; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; else if (x > y) v.push_back(to_string(y) + " " + to_string(x)); else v.push_back(to_string(y) + " " + ...
#include <iostream> #include <string> #include <vector> using namespace std; int main(void) { int x, y; vector<string> v; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; else if (x > y) v.push_back(to_string(y) + " " + to_string(x)); else v.push_back(to_string(x) + " " + ...
[["-", 0, 16, 31, 16, 31, 2, 3, 4, 0, 22], ["+", 0, 16, 31, 16, 31, 2, 3, 4, 0, 22], ["-", 3, 4, 0, 16, 12, 2, 3, 4, 0, 22], ["+", 3, 4, 0, 16, 12, 2, 3, 4, 0, 22]]
1
113
#include <bits/stdc++.h> 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; } if (x == y) { cout << x << " " << y <<...
#include <bits/stdc++.h> 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; } if (x == y) { cout << x << " " << y <<...
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
103
#include <iostream> using namespace std; int main(void) { int x, y; for (;;) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) ; { swap(x, y); } cout << x << " " << y << endl; } }
#include <iostream> using namespace std; int main(void) { // Your code here! int x, y; for (;;) { cin >> x >> y; if (x == 0 && y == 0) { break; } if (x > y) { swap(x, y); } cout << x << " " << y << endl; } }
[["-", 0, 7, 8, 9, 0, 57, 64, 1, 0, 35]]
1
73
#include <iostream> using namespace std; int main(void) { //変数の宣言 int x, y; //繰り返し処理をするときは「 for文 」を使う for (int i = 1; i <= 10000; i++) { //各Caseの値を入力 cin >> x >> y; // if文を使用してxの値とyの値が「 0 」なら終了の条件を考える if (x == 0 && y == 0) { break; } // else if: ifを満たしてない・成立してない条件下で条件を考える e...
#include <iostream> using namespace std; int main(void) { //変数の宣言 int x, y; //繰り返し処理をするときは「 for文 」を使う for (int i = 1; i <= 10000; i++) { //各Caseの値を入力 cin >> x >> y; // if文を使用してxの値とyの値が「 0 」なら終了の条件を考える if (x == 0 && y == 0) { break; } // else if: ifを満たしてない・成立してない条件下で条件を考える e...
[["-", 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
94
#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 (true) { cin >> x >> y; if (x == 0 && y == 0) break; if (x < y) { cout << x << " " << y << endl; } else { cout << y << " " << x << endl; } } return 0; }
[["-", 0, 14, 8, 9, 0, 52, 15, 339, 51, 13], ["+", 0, 14, 8, 9, 0, 52, 15, 339, 51, 146], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
79
#include <iostream> using namespace std; int main(void) { int x, y; while (1) { cin >> x; cin >> y; if (x == 0 && y == 0) break; } if (x < y) { cout << x; cout << " "; cout << y; } else { cout << y; cout << " "; cout << x; } cout << endl; }
#include <iostream> using namespace std; int main(void) { int x, y; while (1) { { cin >> x; cin >> y; if (x == 0 && y == 0) break; } if (x < y) { cout << x; cout << " "; cout << y; } else { cout << y; cout << " "; cout << x; } cou...
[["+", 8, 9, 0, 52, 8, 9, 0, 9, 0, 45], ["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
1
87
#include <bits/stdc++.h> using namespace std; signed main() { int a, b; while (cin >> a >> b and a and b) { cout << min(a, b) << ' ' << max(a, b) << endl; } }
#include <bits/stdc++.h> using namespace std; signed main() { int a, b; while (cin >> a >> b and (a or b)) { cout << min(a, b) << ' ' << max(a, b) << endl; } }
[["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 24], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 355], ["+", 15, 339, 51, 16, 12, 23, 0, 16, 17, 354], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 25]]
1
53
#include <iostream> using namespace std; int main() { int x, y; for (;;) { 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 (;;) { 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, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
76
#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 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 << y << " " << x << endl; else 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], ["-", 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
75
#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 { 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 { cout << x << " " << y << endl; } } return 0; }
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
1
79
#include <iostream> using namespace std; int main() { while (true) { int x, y; cin >> x >> y; if (x == 0 && y == 0) break; else if (x > y) { cout << y << " " << y << endl; } else { cout << x << " " << y << endl; } } return 0; }
#include <iostream> using namespace std; int main() { while (true) { int x, y; cin >> x >> y; if (x == 0 && y == 0) break; else if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } return 0; }
[["-", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 12, 22]]
1
80
#include <iostream> using namespace std; int main() { int n = 1; int x, y; while (n == 1) { cin >> x >> y; if (x == 0 || y == 0) break; if (x >= y) cout << y << " " << x << endl; if (y > x) cout << x << " " << y << endl; } return 0; }
#include <iostream> using namespace std; int main() { int n = 1; int x, y; while (n == 1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x >= y) cout << y << " " << x << endl; if (y > x) cout << x << " " << y << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
87
#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; } return 0; }
[["+", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46]]
1
75
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x == y == 0) break; if (x >= y) { cout << y << " " << x << endl; } else { 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 { cout << x << " " << y << endl; } } return 0; }
[["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 67]]
1
77
#include <bits/stdc++.h> using namespace std; int main() { while (true) { int x, y; cin >> x >> y; if (x == 0 && y == 0) break; printf("%d %d", min(x, y), max(x, y)); } }
#include <bits/stdc++.h> using namespace std; int main() { while (true) { int x, y; cin >> x >> y; if (x == 0 && y == 0) break; printf("%d %d\n", min(x, y), max(x, y)); } }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
62
#include <iostream> using namespace std; int main(void) { int x, y; cin >> x >> y; while (1) { if (x == 0 && y == 0) { break; } if (x > y) { cout << y << " " << x << endl; } if (y > x) { cout << x << " " << y << endl; } cin >> x >> y; } return 0; }
#include <iostream> using namespace std; int main(void) { int x, y; cin >> x >> y; while (1) { if (x == 0 && y == 0) { break; } if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } cin >> x >> y; } 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
93
#include <iostream> using namespace std; int main(void) { 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; } } // Your code here! }
#include <iostream> using namespace std; int main(void) { int x, y; while (1) { cin >> x >> y; if (x == 0 && y == 0) break; if (x > y) { cout << y << " " << x << endl; } else { cout << x << " " << y << endl; } } // Your code here! }
[["-", 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
78
#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 << a << " " << b << endl; } else { cout << b << " " << a << 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; }
[["-", 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
79
#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); } }
#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); } }
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
1
82
#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 << endl; } else if (x > y) { cout << y << " " << x << endl; } 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 << endl; } else if (x > y) { cout << y << " " << x << endl; } cin >> x >> y; }; return 0; }
[["+", 0, 52, 15, 339, 51, 16, 31, 23, 0, 24], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 16, 31, 23, 0, 25], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 106], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 24], ["+", 0, 52, 15, 339, 51, 16, 12, 23, 0, 25]]
1
88
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x > y) { swap(x, y); } cout << x << " " << y << endl; return 0; } }
#include <iostream> using namespace std; int main() { int x, y; for (int i = 1; i <= 3000; i++) { cin >> x >> y; if (x == 0 && y == 0) { break; } else if (x > y) { swap(x, y); } cout << x << " " << y << endl; } return 0; }
[["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]]
1
84
#include <bits/stdc++.h> #define int long long #define double long double #define INF 1e18 #define MOD 1000000007 using namespace std; signed main() { int a, b; while (cin >> a >> b, a || b) { swap(a, b); cout << a << " " << b << endl; } }
#include <bits/stdc++.h> #define int long long #define double long double #define INF 1e18 #define MOD 1000000007 using namespace std; signed main() { int a, b; while (cin >> a >> b, a || b) { if (a > b) swap(a, b); cout << a << " " << b << endl; } }
[["+", 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
62
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0;; i++) { int x, y; cin >> x >> y; if (x == 0 || y == 0) { break; } else if (x < y) { cout << x << ' ' << y << endl; } else { cout << y << ' ' << x << endl; } } }
#include <bits/stdc++.h> using namespace std; int main() { for (int i = 0;; i++) { int x, y; cin >> x >> 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, 106], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98]]
1
86
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x || y) { cout << min(x, y) << " " << max(x, y); } }
#include <algorithm> #include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x || y) { cout << min(x, y) << " " << max(x, y) << endl; } }
[["+", 0, 52, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 52, 8, 9, 0, 1, 0, 16, 12, 22]]
1
53
#include <iostream> int main(int argc, char *argv[]) { int x, y, t; while (std::cin >> x >> y) { if (x == 0 && y == 0) break; if (x > y) { t = x; x = y; x = t; } std::cout << x << " " << y << std::endl; } return 0; }
#include <iostream> int main(int argc, char *argv[]) { int x, y, t; while (std::cin >> x >> y) { if (x == 0 && y == 0) break; if (x > y) { t = x; x = y; y = t; } std::cout << x << " " << y << std::endl; } return 0; }
[["-", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22]]
1
86
#include <iostream> using namespace std; bool data_end(int x, int y); void print_asc(int x, int y); int main() { int x, y; while (cin >> x >> y && data_end(x, y)) { print_asc(x, y); } return 0; } bool data_end(int x, int y) { if (x == 0 && y == 0) return true; return false; } void print_asc(int x...
#include <iostream> using namespace std; bool data_end(int x, int y); void print_asc(int x, int y); int main() { int x, y; while (cin >> x >> y && !data_end(x, y)) { print_asc(x, y); } return 0; } bool data_end(int x, int y) { if (x == 0 && y == 0) return true; return false; } void print_asc(int ...
[["+", 0, 52, 15, 339, 51, 16, 12, 91, 17, 111], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
137
#include <iostream> int main() { int x, y; while (std::cin >> x >> y && x && y) { if (x > y) std::cout << y << " " << x << '\n'; else std::cout << x << " " << y << '\n'; } return 0; }
#include <iostream> int main() { int x, y; while (std::cin >> x >> y, (x | y)) { if (x > y) std::cout << y << " " << x << '\n'; else std::cout << x << " " << y << '\n'; } return 0; }
[["-", 0, 52, 15, 339, 51, 16, 31, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 339, 51, 34, 0, 21], ["+", 0, 52, 15, 339, 51, 34, 12, 23, 0, 24], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 98], ["+", 15, 339, 51, 34, 12, 23, 0, 16, 17, 139], ["+", 0, 52, 15, 339, 51, 34, 12, 23, 0, 25]]
1
71
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x; cin >> 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; cin >> y; if (x == 0 && y == 0) break; if (x < y) cout << x << " " << y << endl; else cout << y << " " << x << endl; } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
77
#include <iostream> int x = 0, y = 1; int main() { for (; (x != 0) && (y != 0);) { 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; } } } }
#include <iostream> int x = 0, y = 1; int main() { for (; (x != 0) || (y != 0);) { 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; } } } }
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 98], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 106], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 106]]
1
102
#include <iostream> using namespace std; int main() { int a, b; for (;;) { cin >> a >> b; if (a == 0 && b == 0) break; if (a < b) { cout << a << " " << b << endl; } else if (a > b) { cout << b << " " << a << endl; } } return 0; }
#include <iostream> using namespace std; int main() { int a, b; for (;;) { cin >> a >> b; if (a == 0 && b == 0) break; if (a <= b) { cout << a << " " << b << endl; } else if (a > b) { cout << b << " " << a << endl; } } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
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; } } }
#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; } } }
[["+", 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
70
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { int a, b; while (cin >> a >> b, a && b) { if (a < b) cout << a << " " << b << endl; else cout << b << " " << a << endl; } }
#include <algorithm> #include <cstdio> #include <iostream> #include <vector> using namespace std; int main() { int a, b; while (cin >> a >> b, a || b) { if (a < b) cout << a << " " << b << endl; else cout << b << " " << a << endl; } }
[["-", 0, 52, 15, 339, 51, 34, 12, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 34, 12, 16, 17, 106]]
1
68
#include <stdio.h> int main(void) { int a, b, temp; scanf("%d %d", &a, &b); while (a != 0 && b != 0) { if (a >= b) { temp = a; a = b; b = temp; printf("%d %d\n", a, b); } else { printf("%d %d\n", a, b); } scanf("%d %d", &a, &b); } return 0; }
#include <stdio.h> int main(void) { int a, b, temp; scanf("%d %d", &a, &b); while (!(a == 0 && b == 0)) { if (a >= b) { temp = a; a = b; b = temp; printf("%d %d\n", a, b); } else { printf("%d %d\n", a, b); } scanf("%d %d", &a, &b); } 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
104
#include <stdio.h> int main(void) { int a, b, x, y; scanf("%d %d", &x, &y); while (x != 0 && y != 0) { if (y > x) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } scanf("%d %d", &x, &y); } return 0; }
#include <stdio.h> int main(void) { int a, b, x, y; scanf("%d %d", &x, &y); while (x != 0 || y != 0) { if (y > x) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } 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
94
#include <cstdio> int main() { int x, y; while (1) { 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; }
#include <cstdio> int main() { int x, y; while (1) { 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]]
1
80
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x && y) { x <= y ? cout << x << " " << y : cout << y << " " << x; cout << endl; } return 0; }
#include <iostream> using namespace std; int main() { int x, y; while (cin >> x >> y, x || y) { x <= y ? cout << x << " " << y : cout << y << " " << x; cout << endl; } return 0; }
[["-", 0, 52, 15, 339, 51, 34, 12, 16, 17, 98], ["+", 0, 52, 15, 339, 51, 34, 12, 16, 17, 106]]
1
62
#include <iostream> using namespace std; int main() { /* cout<<"Hello World"<<endl; int x; cin>> x; cout<< x*x*x <<endl; int a; int b; cin>>a>>b; cout<<a*b<<" "<<2*a+2*b<<endl; int a; int b; cin>>a>>b; if (a<b){ cout<< "a < b" <<endl; }else if(a>b){ cout<<"a > b" <<endl; }else if(a==...
#include <iostream> using namespace std; int main() { /* cout<<"Hello World"<<endl; int x; cin>> x; cout<< x*x*x <<endl; int a; int b; cin>>a>>b; cout<<a*b<<" "<<2*a+2*b<<endl; int a; int b; cin>>a>>b; if (a<b){ cout<< "a < b" <<endl; }else if(a>b){ cout<<"a > b" <<endl; }else if(a==...
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 75, 76, 0, 57, 75, 76, 0, 9, 0, 46]]
1
81
#include <cstdio> main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (!(a * b)) break; else if (a > b) { int buf; buf = a; a = b; b = buf; } printf("%d %d\n", a, b); } }
#include <cstdio> main() { int a, b; while (1) { scanf("%d%d", &a, &b); if (!a && !b) break; else if (a > b) { int buf; buf = a; a = b; b = buf; } printf("%d %d\n", a, b); } }
[["-", 0, 57, 15, 339, 51, 91, 28, 23, 0, 24], ["-", 15, 339, 51, 91, 28, 23, 0, 16, 17, 48], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 57, 15, 339, 51, 16, 12, 91, 17, 111], ["-", 0, 57, 15, 339, 51, 91, 28, 23, 0, 25]]
1
78
#include <stdio.h> int main(void) { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } else 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\n", &x, &y); if (x == 0 && y == 0) { break; } else 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, 44], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19]]
1
86
#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 << x << " " << y << endl; } else 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; } else if (x <= y) { cout << x << " " << y << endl; } else if (x >= y) { cout << y << " " << x << endl; } } return 0; }
[["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 75, 76, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 339, 51, 16, 17, 20]]
1
88
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x < y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } else if (x == y && x != 0) { cout << x << y << endl; } else { if (x == 0 && y == 0)...
#include <iostream> using namespace std; int main() { int x, y; while (1) { cin >> x >> y; if (x < y) { cout << x << " " << y << endl; } else if (x > y) { cout << y << " " << x << endl; } else if (x == y && x != 0) { cout << x << " " << y << endl; } else if (x == 0 && y == 0) ...
[["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 62], ["+", 0, 16, 31, 16, 31, 16, 12, 5, 0, 6], ["+", 64, 9, 0, 1, 0, 16, 31, 16, 17, 151], ["-", 75, 76, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 75, 76, 0, 9, 0, 57, 64, 9, 0, 46]]
1
111
#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) { printf("%d %d", a, b); } else { printf("%d %d", b, a); } } return 0; }
#include <stdio.h> int main() { int a, b; while (1) { 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); } } return 0; }
[["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
1
89
#include <cstdio> #include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x >= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } ...
#include <cstdio> #include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x <= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } ...
[["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 0, 9, 0, 57, 15, 339, 51, 16, 17, 19]]
1
95
#include <cstdio> #include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; while (true) { cin >> x >> y; if (x == 0 && y == 0) { break; } else { if (x >= y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); } } ...
#include <cstdio> #include <iostream> using namespace std; int main(int argc, char const *argv[]) { int x, y; while (true) { cin >> 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, 52, 8, 9, 0, 57, 75, 76, 0, 95], ["-", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["-", 0, 9, 0, 57, 15, 339, 51, 16, 17, 20], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 19], ["-", 0, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
1
95
#include <iostream> using namespace std; int main() { int x, y; for (;;) { 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 (;;) { 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, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
80
#include <stdio.h> int main() { int val[2] = {0}; while (1) { scanf("%d %d", &val[0], &val[1]); if (val[0] == 0 && val[1] == 0) { break; } if (val[0] > val[1]) { printf("%d %d\n", val[0], val[1]); } else { printf("%d %d\n", val[1], val[0]); } } return 0; }
#include <stdio.h> int main() { int val[2] = {0}; while (1) { scanf("%d %d", &val[0], &val[1]); if (val[0] == 0 && val[1] == 0) { break; } if (val[0] < val[1]) { printf("%d %d\n", val[0], val[1]); } else { printf("%d %d\n", val[1], val[0]); } } return 0; }
[["-", 8, 9, 0, 57, 15, 339, 51, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 18]]
1
119