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
W,H,x,y,r = list(map(int, input().split())) if x - r >= 0 and x + r < W and y - r >= 0 and y + r < H: print("Yes") elif x - r < 0 or x + r > W or y - r < 0 or y + r > H: print("No") else: print("No")
W,H,x,y,r = list(map(int, input().split())) if x - r >= 0 and x + r <= W and y - r >= 0 and y + r <= H: print("Yes") elif x - r < 0 or x + r > W or y - r < 0 or y + r > H: print("No") else: print("No")
[["-", 15, 679, 31, 679, 31, 679, 12, 666, 667, 18], ["+", 15, 679, 31, 679, 31, 679, 12, 666, 667, 19], ["-", 0, 656, 0, 57, 15, 679, 12, 666, 667, 18], ["+", 0, 656, 0, 57, 15, 679, 12, 666, 667, 19]]
5
95
W, H, x, y, r = [int(i) for i in input().split] if x + r <= W and y - r >= 0 and x - r >= 0 and y + r <= H: print("Yes") else: print("No")
W, H, x, y, r = [int(i) for i in input().split()] if x + r <= W and y - r >= 0 and x - r >= 0 and y + r <= H: print("Yes") else: print("No")
[["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 24], ["+", 12, 658, 0, 659, 12, 652, 3, 4, 0, 25]]
5
63
package main import ( "fmt" ) func main(){ var a int for i:=1; i<10000; i++{ fmt.Scan(&a) if a == 0{ break } fmt.Printf("Case %d: %d", i, a) } }
package main import ( "fmt" ) func main(){ var a int for i:=1; ; i++{ fmt.Scan(&a) if a == 0{ break } fmt.Printf("Case %d: %d\n", i, a) } }
[["-", 8, 196, 0, 7, 0, 430, 15, 16, 31, 22], ["-", 8, 196, 0, 7, 0, 430, 15, 16, 17, 18], ["-", 8, 196, 0, 7, 0, 430, 15, 16, 12, 433], ["+", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44]]
7
66
package main import "fmt" func main() { var a int i := 1 for { fmt.Scan(&a) if a == 0 { break } fmt.Printf("Case %d:%d\n", i, a) i++ } }
package main import "fmt" func main() { var a int i := 1 for { fmt.Scan(&a) if a == 0 { break } fmt.Printf("Case %d: %d\n", i, a) i++ } }
[["-", 8, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["-", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44], ["+", 8, 196, 0, 1, 0, 2, 3, 4, 0, 429], ["+", 0, 1, 0, 2, 3, 4, 0, 429, 0, 44]]
7
61
const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const lines = input.trim().split('\n'); while (line = lines.shift()) { const numbers = line.split(' ').map(Number); let a = numbers[0]; let b = numbers[1]; if (a === 0 && b === 0) { break; } if (a > b) { const tmp = a; a = b; ...
const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const lines = input.trim().split('\n'); while (line = lines.shift()) { const numbers = line.split(' ').map(Number); let a = numbers[0]; let b = numbers[1]; if (a === 0 && b === 0) { break; } if (a > b) { const tmp = a; a = b; ...
[["-", 0, 570, 0, 200, 51, 16, 31, 16, 31, 555], ["+", 0, 570, 0, 200, 51, 16, 31, 16, 31, 22]]
2
135
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { var input = chunk.split("\n"); var output = ""; var nums = new Array(); for (var i = 0; i < input.length; i++) { nums[i] = input[i].split(" "); } for (var i = 0; i < nums.length; i++) { if (!order...
process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('data', function(chunk) { var input = chunk.split("\n"); var output = ""; var nums = new Array(); for (var i = 0; i < input.length; i++) { nums[i] = input[i].split(" "); } for (var i = 0; i < nums.length; i++) { if (!order...
[["+", 0, 57, 15, 23, 0, 16, 31, 2, 63, 22], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 24], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 25], ["+", 0, 57, 15, 23, 0, 16, 12, 2, 63, 22], ["+", 15, 23, 0, 16, 12, 2, 3, 3, 0, 24], ["+", 15, 23, 0, 16, 12, 2, 3, 3, 0, 25]]
2
226
var x = require('fs').readFileSync('/dev/stdin', 'utf8'); input = x.split(/[\n|\s]/); i = 0; while (!((input[i] == "0") && (input[i + 1] == "0"))) { if (input[i] > input[i + 1]) { temp = input[i]; input[i] = input[i + 1] input[i + 1] = temp; } console.log(input[i] + " " + input[i + 1]); i = i + 2; }...
var x = require('fs').readFileSync('/dev/stdin', 'utf8'); input = x.split(/[\n|\s]/); i = 0; while (!((input[i] == "0") && (input[i + 1] == "0"))) { if (parseInt(input[i]) > parseInt(input[i + 1])) { temp = input[i]; input[i] = input[i + 1] input[i + 1] = temp; } console.log(input[i] + " " + input[i +...
[["+", 0, 57, 15, 23, 0, 16, 31, 2, 63, 22], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 24], ["+", 15, 23, 0, 16, 31, 2, 3, 3, 0, 25], ["+", 0, 57, 15, 23, 0, 16, 12, 2, 63, 22], ["+", 15, 23, 0, 16, 12, 2, 3, 3, 0, 24], ["+", 15, 23, 0, 16, 12, 2, 3, 3, 0, 25]]
2
137
<?php while (true) { fscanf(STDIN,"%d%d",$x,$y); if (!$x && !$y) break; echo ($x < $y) ? "$x $y" : "$y $x"; }
<?php while (true) { fscanf(STDIN,"%d%d",$x,$y); if (!$x && !$y) break; echo (($x < $y) ? "$x $y" : "$y $x")."\n"; }
[["+", 0, 16, 31, 23, 0, 41, 15, 23, 0, 24], ["+", 0, 16, 31, 23, 0, 41, 75, 609, 0, 62], ["+", 8, 9, 0, 608, 0, 16, 31, 23, 0, 25], ["+", 0, 52, 8, 9, 0, 608, 0, 16, 17, 131], ["+", 8, 9, 0, 608, 0, 16, 12, 609, 0, 62], ["+", 8, 9, 0, 608, 0, 16, 12, 609, 0, 44]]
6
59
<?php while(fscanf(STDIN, "%d %d", $a, $b)){ if($a < $b) printf("%d %d\n", $a, $b); elseif($a > $b) printf("%d %d\n", $b, $a); elseif($a == $b) printf("%d %d\n", $b, $a); elseif($a == 0 && $b == 0) break; }
<?php while(fscanf(STDIN, "%d %d", $a, $b)){ if($a < $b) printf("%d %d\n", $a, $b); elseif($a > $b) printf("%d %d\n", $b, $a); elseif($a == $b && $a >0) printf("%d %d\n", $b, $a); elseif($a == 0 && $b == 0) break; }
[["+", 0, 57, 75, 625, 15, 23, 0, 16, 17, 98], ["+", 15, 23, 0, 16, 12, 16, 31, 606, 0, 607], ["+", 15, 23, 0, 16, 12, 16, 31, 606, 0, 141], ["+", 75, 625, 15, 23, 0, 16, 12, 16, 17, 47], ["+", 75, 625, 15, 23, 0, 16, 12, 16, 12, 612]]
6
100
while(1) { $stdin = trim(fgets(STDIN)); $number = explode(" ", $stdin); $x = $number[0]; $y = $number[1]; if ($x == 0 && $y == 0) { break; } if ($x >= $y) { echo "$y $x\n"; } else { echo "$x $y\n"; } }
<?php while(1) { $stdin = trim(fgets(STDIN)); $number = explode(" ", $stdin); $x = $number[0]; $y = $number[1]; if ($x == 0 && $y == 0) { break; } if ($x >= $y) { echo "$y $x\n"; } else { echo "$x $y\n"; } }
[["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605]]
6
97
<?php while ($n = explode(" ", trim(fgets(STDIN)))) { if (!$n[0] && !$n[1]) break; if ($n[0] < $n[1]) echo $n[0]." ".$n[1]; else echo $n[1]." ".$n[0]."\n"; }
<?php while ($n = explode(" ", trim(fgets(STDIN)))) { if (!$n[0] && !$n[1]) break; if ($n[0] < $n[1]) echo $n[0]." ".$n[1]."\n"; else echo $n[1]." ".$n[0]."\n"; }
[["+", 8, 9, 0, 57, 8, 608, 0, 16, 17, 131], ["+", 0, 57, 8, 608, 0, 16, 12, 609, 0, 62], ["+", 0, 57, 8, 608, 0, 16, 12, 609, 0, 44]]
6
94
<?php while(fscanf(STDIN, "%d %d", $a, $b)){ if($a+$b == 0){ break; } ($a>=$b)?printf("$a $b\n"):printf("$b $a\n"); }
<?php while(fscanf(STDIN, "%d %d", $a, $b)){ if($a == 0 && $b == 0){ break; } ($a<=$b)?printf("$a $b\n"):printf("$b $a\n"); }
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 612], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["-", 0, 1, 0, 41, 15, 23, 0, 16, 17, 20], ["+", 0, 1, 0, 41, 15, 23, 0, 16, 17, 19]]
6
66
while(true){ $num = explode(" ",trim(fgets(STDIN))); $x = $num[0]; $y = $num[1]; if($x == 0 && $y == 0){ break; } elseif ($x < $y){ echo $x." ".$y .PHP_EOL; } else { echo $y." ".$x .PHP_EOL; } }
<?php while(true){ $num = explode(" ",trim(fgets(STDIN))); $x = $num[0]; $y = $num[1]; if($x == 0 && $y == 0){ break; } elseif ($x < $y){ echo $x." ".$y .PHP_EOL; } else { echo $y." ".$x .PHP_EOL; } }
[["+", 36, 36, 36, 36, 36, 36, 0, 493, 0, 605]]
6
97
<?php while(true){ $num = preg_split('/ /', trim(fgets(STDIN))); if($num[0] == 0 && $num[1] == 0){ break; }else{ $array[] = (min($num) . " " . max($num)); } } $i = 1; foreach ($array as $result){ if($i == count($array)){ ...
<?php while(true){ $num = preg_split('/ /', trim(fgets(STDIN))); if($num[0] == 0 && $num[1] == 0){ break; }else{ $array[] = (min($num) . " " . max($num)); } } $i = 1; foreach ($array as $result){ if($i != count($array)){ ...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 79], ["+", 8, 9, 0, 57, 8, 9, 0, 608, 0, 35], ["+", 8, 9, 0, 1, 0, 27, 0, 606, 0, 607], ["+", 8, 9, 0, 1, 0, 27, 0, 606, 0, 141], ["+", 0, 57, 8, 9, 0, 1, 0, 27, 0, 29]]
6
121
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tmp; while (true) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0) break; if (x > y) { tmp = x; x = y; y = tmp;...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int tmp; while (true) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0 && y == 0) break; if (x > y) { tmp = x; x = y; ...
[["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499]]
3
105
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0 && y == 0) break; if (x < y) { System.out.println(x + " " + y); } e...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0 && y == 0) break; if (x < y) { System.out.println(x + " " + y); } e...
[["-", 0, 52, 8, 196, 0, 57, 75, 57, 0, 121], ["-", 8, 196, 0, 57, 75, 57, 15, 15, 0, 24], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 31, 22], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 12, 22], ["-", 8, 196, 0, 57, 75, 57, 15, 15, 0, 25]]
3
118
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner S = new Scanner(System.in); while (true) { int x = S.nextInt(); int y = S.nextInt(); if (x == 0 && y == 0) break; if (x < y) System.out.printf("%d %d\n", x, y); else ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner S = new Scanner(System.in); while (true) { int x = S.nextInt(); int y = S.nextInt(); if (x == 0 && y == 0) break; if (x < y) System.out.printf("%d %d\n", x, y); else ...
[["-", 0, 57, 75, 1, 0, 492, 3, 4, 0, 22], ["-", 0, 57, 75, 1, 0, 492, 3, 4, 0, 21], ["+", 0, 57, 75, 1, 0, 492, 3, 4, 0, 21], ["+", 0, 57, 75, 1, 0, 492, 3, 4, 0, 22]]
3
109
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; while (i == -1) { int X = sc.nextInt(); int Y = sc.nextInt(); if (X > Y) { int tmp; tmp = X; X = Y; Y = tmp; } if (...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; while (i == 1) { int X = sc.nextInt(); int Y = sc.nextInt(); if (X > Y) { int tmp; tmp = X; X = Y; Y = tmp; } if (X...
[["-", 0, 52, 15, 15, 0, 16, 12, 91, 17, 33]]
3
124
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); Scanner sc = new Scanner(input); ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); Scanner sc = new Scanner(input); ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 72], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18]]
3
151
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a, b; a = sc.nextInt(); b = sc.nextInt(); while (a != 0 && b != 0) { System.out.println(b > a ? a + " " + b : b + " " + a); a = sc.nextInt(); b = ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a, b; a = sc.nextInt(); b = sc.nextInt(); while (a != 0 || b != 0) { System.out.println(b > a ? a + " " + b : b + " " + a); a = sc.nextInt(); b = ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106]]
3
111
package introduction; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(), y = sc.nextInt(); while (x != 0 && y != 0) { if (x < y) { System.out.println(x + " " + y); } else { System.out...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(), y = sc.nextInt(); while (x != 0 || y != 0) { if (x < y) { System.out.println(x + " " + y); } else { System.out.println(y + " " + x);...
[["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 483], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 22], ["-", 36, 36, 36, 36, 0, 493, 0, 501, 0, 35], ["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106]]
3
124
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int x = s.nextInt(); int y = s.nextInt(); while (x != 0 && y != 0) { if (x < y) System.out.println(x + " " + y); else System.out.println(y + " " + x); ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int x = s.nextInt(); int y = s.nextInt(); while (x != 0 || y != 0) { if (x < y) System.out.println(x + " " + y); else System.out.println(y + " " + x); ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106]]
3
118
import java.util.Scanner; class Main { int x, y; public void suzuki() { Scanner sc = new Scanner(System.in); x = sc.nextInt(); y = sc.nextInt(); while (x != 0 && y != 0) { if (x > y) { System.out.println(y + " " + x); } else { System.out.println(x + " " + y); } ...
import java.util.Scanner; class Main { int x, y; public void suzuki() { Scanner sc = new Scanner(System.in); x = sc.nextInt(); y = sc.nextInt(); while (x != 0 || y != 0) { if (x > y) { System.out.println(y + " " + x); } else { System.out.println(x + " " + y); } ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106]]
3
140
import java.util.*; public class Main { public static void main(String[] args) { int change; Scanner sc = new Scanner(System.in); for (;;) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0 && y == 0) break; if (x < y) { change = x; x = y; ...
import java.util.*; public class Main { public static void main(String[] args) { int change; Scanner sc = new Scanner(System.in); for (;;) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0 && y == 0) break; if (x > y) { change = x; x = y; ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47]]
3
110
import java.util.*; class Main { public static void main(String[] args) { int x, y; int z = 0; Scanner in = new Scanner(System.in); while (true) { x = in.nextInt(); y = in.nextInt(); if (x == 0 || y == 0) { break; } else if (x <= y) { System.out.println(String....
import java.util.*; class Main { public static void main(String[] args) { int x, y; int z = 0; Scanner in = new Scanner(System.in); while (true) { x = in.nextInt(); y = in.nextInt(); if (x == 0 && y == 0) { break; } else if (x <= y) { System.out.println(String....
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
138
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; String[] arrStr; StringBuilder output = new StringBuilder()...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; String[] arrStr; StringBuilder output = new StringBuilder(...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18]]
3
231
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int i, j; i = in.nextInt(); j = in.nextInt(); while (i != 0) { if (i < j) { System.out.println(i + " " + j); } else if (i > j) { System.out.prin...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int i, j; i = in.nextInt(); j = in.nextInt(); while (i != 0 || j != 0) { if (i < j) { System.out.println(i + " " + j); } else if (i > j) { Syste...
[["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106], ["+", 0, 52, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 52, 15, 15, 0, 16, 12, 16, 17, 79], ["+", 0, 52, 15, 15, 0, 16, 12, 16, 12, 499]]
3
151
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] a = new int[2]; while (true) { a[0] = sc.nextInt(); a[1] = sc.nextInt(); if (a[0] == 0 || a[1] == 0) break; Arrays.sort(a); System.out.println(a...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] a = new int[2]; while (true) { a[0] = sc.nextInt(); a[1] = sc.nextInt(); if (a[0] == 0 && a[1] == 0) break; Arrays.sort(a); System.out.println(a...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
120
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while (true) { String[] str = (br.readLine()).split(" "); int x = Integer.parseIn...
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while (true) { String[] str = (br.readLine()).split(" "); int x = Integer.parseIn...
[["+", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 19], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18]]
3
184
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int x, y; x = 1; y = 1; while (x != 0 || y != 0) { x = sc.nextInt(); y = sc...
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); int x, y; x = 1; y = 1; while (x != 0 || y != 0) { x = sc.nextInt(); y = sc...
[["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 47], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 20]]
3
151
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Integer> al = new ArrayList<>(); int x = 999; int y = 999; int cnt = 0; while (x != 0 || y != 0) { x = sc.nextInt(); y = sc.nextInt(); if (x == ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<Integer> al = new ArrayList<>(); int x = 999; int y = 999; int cnt = 0; while (x != 0 || y != 0) { x = sc.nextInt(); y = sc.nextInt(); if (x == ...
[["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["-", 75, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["+", 75, 57, 75, 57, 15, 15, 0, 16, 17, 47]]
3
232
import java.io.*; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try { boolean flag = true; while (flag) { String[] line = reader.readLine().split(" "); int x = Integer.parseIn...
import java.io.*; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try { boolean flag = true; while (flag) { String[] line = reader.readLine().split(" "); int x = Integer.parseIn...
[["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
187
import java.util.Scanner; class Main { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x; int y; while (true) { x = scan.nextInt(); y = scan.nextInt(); if (x == 0 && y == 0) break; if (x < y) { ...
import java.util.Scanner; class Main { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scan = new Scanner(System.in); int x; int y; while (true) { x = scan.nextInt(); y = scan.nextInt(); if (x == 0 && y == 0) break; if (x > y) { ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18]]
3
151
import java.util.Scanner; /** * @author ??\??? * */ public class Main { /** * @param args */ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for (int x = scanner.nextInt(), y = scanner.nextInt(); (x != 0) && (y != 0); x = scanner.nextInt(), y = scanner....
import java.util.Scanner; /** * @author ??\??? * */ public class Main { /** * @param args */ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for (int x = scanner.nextInt(), y = scanner.nextInt(); (x != 0) || (y != 0); x = scanner.nextInt(), y = scanner....
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 98], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 106]]
3
139
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; int tmp; while (true) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0 && y == 0) { break; } if (y > x) { tmp =...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; int tmp; while (true) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0 && y == 0) { break; } if (x > y) { tmp =...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 22]]
3
122
import java.util.Scanner; public class Main { void swap() { int x, y; Scanner s = new Scanner(System.in); x = s.nextInt(); y = s.nextInt(); while (x != 0 && y != 0) { if (x < y) { System.out.println(x + " " + y); } else { System.out.println(y + " " + x); } x...
import java.util.Scanner; public class Main { void swap() { int x, y; Scanner s = new Scanner(System.in); x = s.nextInt(); y = s.nextInt(); while (x != 0 || y != 0) { if (x < y) { System.out.println(x + " " + y); } else { System.out.println(y + " " + x); } x...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106]]
3
145
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for (int i = 1; i > 0; i++) { int x = scanner.nextInt(); int y = scanner.nextInt(); if (x == 0 || y == 0) break; if (x >= y) { System.out.pri...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for (int i = 1; i > 0; i++) { int x = scanner.nextInt(); int y = scanner.nextInt(); if (x == 0 && y == 0) break; if (x >= y) { System.out.pri...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
122
import java.util.Scanner; class Main { public static void main(String[] args) { //?¨??????\??????????????????????????§???????????? Scanner scanner = new Scanner(System.in); while (true) { int x = scanner.nextInt(); int y = scanner.nextInt(); // x ??? 0 ?????¨?????\??????????????? ...
import java.util.Scanner; class Main { public static void main(String[] args) { //?¨??????\??????????????????????????§???????????? Scanner scanner = new Scanner(System.in); while (true) { int x = scanner.nextInt(); int y = scanner.nextInt(); // x ??? 0 ?????¨?????\??????????????? ...
[["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
114
import java.util.Scanner; public class Main { public static Scanner sc; public static void main(String[] args) throws Exception { sc = new Scanner(System.in); while (sc.hasNext()) { int a = sc.nextInt(); int b = sc.nextInt(); if (a == 0 && b == 0) break; if (a < b) { ...
import java.util.Scanner; public class Main { public static Scanner sc; public static void main(String[] args) throws Exception { sc = new Scanner(System.in); while (sc.hasNext()) { int a = sc.nextInt(); int b = sc.nextInt(); if (a == 0 && b == 0) break; if (a > b) { ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47]]
3
117
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while (true) { String line[] = br.readLine().split(" "); int x = Integer.parseInt(line[0]...
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while (true) { String line[] = br.readLine().split(" "); int x = Integer.parseInt(line[0]...
[["+", 0, 195, 8, 196, 0, 52, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 52, 8, 196, 0, 46]]
3
172
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); sc.useDelimiter("\n"); String[] s = sc.next().split(" "); int a = Integer.parseInt(s[0]); int b = Integer.parseInt(s[1]); while (a != 0 && b != 0) { if (a <= b) { ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); sc.useDelimiter("\n"); String[] s = sc.next().split(" "); int a = Integer.parseInt(s[0]); int b = Integer.parseInt(s[1]); while (!(a == 0 && b == 0)) { if (a <= b) { ...
[["+", 8, 196, 0, 52, 15, 15, 0, 91, 17, 111], ["+", 0, 52, 15, 15, 0, 91, 439, 23, 0, 24], ["-", 0, 52, 15, 15, 0, 16, 31, 16, 17, 79], ["+", 0, 91, 439, 23, 0, 16, 31, 16, 17, 60], ["-", 0, 52, 15, 15, 0, 16, 12, 16, 17, 79], ["+", 0, 91, 439, 23, 0, 16, 12, 16, 17, 60], ["+", 0, 52, 15, 15, 0, 91, 439, 23, 0, 25]]
3
179
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int x, y; while (0 != (x = sc.nextInt()) && 0 != (y = sc.nextInt())) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int x, y; while (0 != (x = sc.nextInt()) | 0 != (y = sc.nextInt())) { ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 139]]
3
127
import java.util.Arrays; import java.util.Scanner; /** * * @author lenovo */ public class Main { public static void main(String[] args) { int count = 0; Scanner scanner = new Scanner(System.in); while (true) { int a = scanner.nextInt(); int b = scanner.nextInt(); if (a == 0 || b ==...
import java.util.Arrays; import java.util.Scanner; /** * * @author lenovo */ public class Main { public static void main(String[] args) { int count = 0; Scanner scanner = new Scanner(System.in); while (true) { int a = scanner.nextInt(); int b = scanner.nextInt(); if (a == 0 && b ==...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
133
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a, b; int count = 0; while (true) { a = scanner.nextInt(); b = scanner.nextInt(); if (a == 0 && b == 0) { break; } if (a > b) { ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a, b; int count = 0; while (true) { a = scanner.nextInt(); b = scanner.nextInt(); if (a == 0 && b == 0) { break; } if (a > b) { ...
[["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
128
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); for (int i = 1; i < 10001; i++) { String val = scan.nextLine(); if (val.equals("0 0")) { System.exit(0); } String[] num = val.split(" ", 0); int x = Int...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); for (int i = 1; i < 10001; i++) { String val = scan.nextLine(); if (val.equals("0 0")) { System.exit(0); } String[] num = val.split(" ", 0); int x = Int...
[["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
162
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { String str = null; BufferedReader br = null; br = new BufferedReader(new InputStreamReader(System.in)); boolean b = true; String[] str1; ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { String str = null; BufferedReader br = null; br = new BufferedReader(new InputStreamReader(System.in)); boolean b = true; String[] str1; ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
202
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (true) { int x = scan.nextInt(); int y = scan.nextInt(); if (x == 0 && y == 0) { break; } if (x > y) { System.out.println(x + " ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (true) { int x = scan.nextInt(); int y = scan.nextInt(); if (x == 0 && y == 0) { break; } if (x < y) { System.out.println(x + " " ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18]]
3
114
import java.util.Scanner; public class Main { public static void main(String[] arges) { Scanner sc = new Scanner(System.in); String[] line = new String[3001]; for (int i = 0; i < line.length; i++) { line[i] = sc.nextLine(); if (line[i].equals("0 0")) { break; } } for...
import java.util.Scanner; public class Main { public static void main(String[] arges) { Scanner sc = new Scanner(System.in); String[] line = new String[3001]; for (int i = 0; i < line.length; i++) { line[i] = sc.nextLine(); if (line[i].equals("0 0")) { break; } } for...
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["-", 15, 15, 0, 492, 500, 504, 71, 16, 17, 33], ["-", 15, 15, 0, 492, 500, 504, 71, 16, 12, 499]]
3
215
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); for (int i = 0; i < 3001; i++) { String line = sc.nextLine(); String[] a = line.split(" "); int x = Integer...
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); for (int i = 0; i < 3001; i++) { String line = sc.nextLine(); String[] a = line.split(" "); int x = Integer...
[["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
156
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int tmp, x, y; while (true) { String[] str = br.readLine().split(" "); x...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int tmp, x, y; while (true) { String[] str = br.readLine().split(" "); x...
[["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 47]]
3
153
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (readStrToInt(br)) { } br.close(); } static boolean readStrToInt(BufferedReader br) throws IOException { String str = br.re...
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (readStrToInt(br)) { } br.close(); } static boolean readStrToInt(BufferedReader br) throws IOException { String str = br.r...
[["+", 8, 498, 0, 195, 8, 196, 0, 57, 0, 95]]
3
188
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int x, y, tmp; do { String str = br.readLine(); String[] num = str.split(" "); ...
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int x, y, tmp; do { String str = br.readLine(); String[] num = str.split(" "); ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 79], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 60], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 17, 79], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 60], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 82, 8, 196, 0, 57, 64, 196, 0, 46], ["-"...
3
183
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for (int i = 1; i <= 3000; i++) { int x = scanner.nextInt(); int y = scanner.nextInt(); if (x == 0 && y == 0) { break; } else if (x > y) { System.o...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); for (int i = 1; i <= 3000; i++) { int x = scanner.nextInt(); int y = scanner.nextInt(); if (x == 0 && y == 0) { break; } else if (x > y) { System.o...
[["-", 75, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["+", 75, 57, 75, 57, 15, 15, 0, 16, 17, 19]]
3
130
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder str = new StringBuilder(); while (true) { ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder str = new StringBuilder(); while (true) { ...
[["+", 0, 510, 75, 16, 31, 16, 12, 5, 0, 491]]
3
182
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int temp, x, y; while (true) { x = sc.nextInt(); y = sc.nextInt(); if (x == 0) { break; } if (x > y) { temp = x; x = y; ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int temp, x, y; while (true) { x = sc.nextInt(); y = sc.nextInt(); if (x == 0 && y == 0) { break; } if (x > y) { temp = x; x = ...
[["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499]]
3
109
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String buffer; int i = 0; try { while ((buffer = reader.readLine()) != null) { ...
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String buffer; int i = 0; try { while ((buffer = reader.readLine()) != null) { ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18]]
3
241
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { while (true) { int a = sc.nextInt(); int b = sc.nextInt(); if (a == 0 && b == 0) { break; } if (a < b) { System.out.println(a + " " + b); ...
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { while (true) { int a = sc.nextInt(); int b = sc.nextInt(); if (a == 0 && b == 0) { break; } if (a < b) { System.out.println(a + " " + b); ...
[["-", 0, 57, 75, 57, 15, 15, 0, 16, 17, 18], ["+", 0, 57, 75, 57, 15, 15, 0, 16, 17, 19]]
3
121
import java.io.ByteArrayInputStream; import java.io.PrintWriter; import java.util.Scanner; public class Main { String INPUT = ""; public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) ...
import java.io.ByteArrayInputStream; import java.io.PrintWriter; import java.util.Scanner; public class Main { String INPUT = ""; public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc = INPUT.isEmpty() ? new Scanner(System.in) ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 17, 98], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 17, 106]]
3
217
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0; i < 3100; i++) { int a = sc.nextInt(); int b = sc.nextInt(); if (a == 0 && b == 0) { break; } if (a > b) { System.out.prin...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for (int i = 0; i < 3100; i++) { int a = sc.nextInt(); int b = sc.nextInt(); if (a == 0 && b == 0) { break; } if (a > b) { System.out.prin...
[["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
124
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x, y; while (true) { x = sc.nextInt(); y = sc.nextInt(); if (x == 0 && y == 0) { break; } if (x > y) { System.out.print(y + " " + x)...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x, y; while (true) { x = sc.nextInt(); y = sc.nextInt(); if (x == 0 && y == 0) { break; } if (x > y) { System.out.println(y + " " + ...
[["-", 0, 57, 64, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 492, 141, 22]]
3
123
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a, b; for (int i = 0; i < 3_000; i++) { a = scanner.nextInt(); b = scanner.nextInt(); if (a == 0 && b == 0) { break; } else if (a >= b) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a, b; for (int i = 0; i < 3_000; i++) { a = scanner.nextInt(); b = scanner.nextInt(); if (a == 0 && b == 0) { break; } else if (a >= b) { ...
[["-", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["+", 0, 492, 3, 4, 0, 16, 31, 16, 31, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
134
import java.util.Scanner; public class Main { public static void main(String[] args) { int i, x, y; Scanner sc = new Scanner(System.in); for (i = 1;; i++) { x = sc.nextInt(); y = sc.nextInt(); if ((x == 0 && y == 0)) { sc.close(); break; } if (x < y) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { int i, x, y; Scanner sc = new Scanner(System.in); for (i = 1;; i++) { x = sc.nextInt(); y = sc.nextInt(); if ((x == 0 && y == 0)) { sc.close(); break; } if (x < y) { ...
[["-", 0, 492, 3, 4, 0, 16, 31, 16, 12, 252], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 62], ["+", 3, 4, 0, 16, 31, 16, 12, 5, 0, 491]]
3
135
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0) break; else if (x > y) System.out.println(y + " " + x); else ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int x = sc.nextInt(); int y = sc.nextInt(); if (x == 0 && y == 0) break; else if (x > y) System.out.println(y + " " + x); els...
[["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499]]
3
111
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; /** * * @author k16069kk */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { BufferedReader br...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; /** * * @author k16069kk */ public class Main { /** * @param args the command line arguments */ public static void main(String[] args) throws IOException { BufferedReader br...
[["+", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499]]
3
202
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int x, y; while (true) { x = in.nextInt(); y = in.nextInt(); if (x == 0 && y == 0) break; if (x < y) System.out.println(x + " " + y); ...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); int x, y; while (true) { x = in.nextInt(); y = in.nextInt(); if (x == 0 && y == 0) break; if (x <= y) System.out.println(x + " " + y); ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 19]]
3
116
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { int x = 0; int y = 0; x = Integer.parseInt(scan.next()); y = Integer.parseInt(scan.next()); if (x == 0 && y == 0) { break; ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { int x = 0; int y = 0; x = Integer.parseInt(scan.next()); y = Integer.parseInt(scan.next()); if (x == 0 && y == 0) { break; ...
[["-", 8, 196, 0, 52, 8, 196, 0, 57, 0, 121], ["-", 0, 52, 8, 196, 0, 57, 15, 15, 0, 24], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 31, 22], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 18], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 22], ["-", 0, 52, 8, 196, 0, 57, 15, 15, 0, 25], ["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95]]
3
140
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = Integer.parseInt(sc.next()); int y = Integer.parseInt(sc.next()); while (x != 0 || x != 0) { if (x < y) { System.out.println(x + " " + y); } else { ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = Integer.parseInt(sc.next()); int y = Integer.parseInt(sc.next()); while (x != 0 || y != 0) { if (x < y) { System.out.println(x + " " + y); } else { ...
[["-", 0, 52, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 52, 15, 15, 0, 16, 12, 16, 31, 22]]
3
141
import java.util.ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int x = 0; int y = 0; while (true) { x = s.nextInt(); y = s.nextInt(); if (x == 0 || y == 0) break; if (x > y) System....
import java.util.ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int x = 0; int y = 0; while (true) { x = s.nextInt(); y = s.nextInt(); if (x == 0 && y == 0) break; if (x > y) System....
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 106], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98]]
3
122
#include <stdio.h> void swap(int *, int *); int main() { int a, b; while (1) { scanf("%d %d\n", &a, &b); if (a == 0 && b == 0) { break; } else { swap(&a, &b); printf("%d %d\n", a, b); } } return 0; } void swap(int *a, int *b) { int temp; if (a > b) { temp = *a; ...
#include <stdio.h> void swap(int *, int *); int main() { int a, b; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) { break; } else { swap(&a, &b); printf("%d %d\n", a, b); } } return 0; } void swap(int *a, int *b) { int temp; if (*a > *b) { temp = *a; ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 57, 15, 23, 0, 16, 31, 66, 17, 48], ["+", 0, 57, 15, 23, 0, 16, 12, 66, 17, 48]]
0
124
int main(void) { int x = 1, y = 1; while (x != 0 || y != 0) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { return 0; } else { if (y >= x) { printf("%d %d\n", x, y); } else { if (x > y) { printf("%d %d\n", x, y); } } } } return 0; }
int main(void) { int x = 1, y = 1; while (x != 0 || y != 0) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { return 0; } else { if (y >= x) { printf("%d %d\n", x, y); } else { if (x > y) { printf("%d %d\n", y, x); } } } } return 0; }
[["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
0
105
#include <stdio.h> int main() { int i, a, b, tmp; for (i = 0;; i++) { scanf("%d%d", &a, &b); if (a == 0 && b == 0) break; if (a > b) tmp = a; a = b; b = tmp; printf("%d %d\n", a, b); } return 0; }
#include <stdio.h> int main() { int i, a, b, tmp; for (i = 0;; i++) { scanf("%d%d", &a, &b); if (a == 0 && b == 0) break; else if (a > b) { tmp = a; a = b; b = tmp; } printf("%d %d\n", a, b); } return 0; }
[["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 57, 75, 76, 0, 57, 64, 9, 0, 45], ["+", 0, 57, 75, 76, 0, 57, 64, 9, 0, 46]]
0
87
#include <stdio.h> int main(void) { int buf1, buf2, buffer; int array[3000][2]; int i = 0; while (1) { scanf("%d %d", &buf1, &buf2); if (buf1 == 0 && buf2 == 0) break; if (buf1 > buf2) { buffer = buf1; buf1 = buf2; buf2 = buffer; } array[i][0] = buf1; array[i][1...
#include <stdio.h> int main(void) { int buf1, buf2, buffer; int array[3000][2]; int i = 0; while (1) { scanf("%d %d", &buf1, &buf2); if (buf1 == 0 && buf2 == 0) break; if (buf1 > buf2) { buffer = buf1; buf1 = buf2; buf2 = buffer; } array[i][0] = buf1; array[i][1...
[["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]]
0
147
#include <stdio.h> int main() { int x, y; x = 1; y = 1; while (x != 0 && y != 0) { scanf("%d %d", &x, &y); if (x != 0 && y != 0) { if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); ; } } else { } } return 0; }
#include <stdio.h> int main() { int x, y; x = 1; y = 1; while (x != 0 || y != 0) { scanf("%d %d", &x, &y); if (x != 0 || y != 0) { if (x < y) { printf("%d %d\n", x, y); } else { printf("%d %d\n", y, x); ; } } else { } } return 0; }
[["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 106], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106]]
0
100
#include <stdio.h> int main() { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } else if (x < y) { printf("%d %d", x, y); } else { printf("%d %d", y, x); } } return 0; }
#include <stdio.h> int main() { 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; }
[["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
83
#include <stdio.h> int main() { int x = 0, y = 0; while (1) { scanf("%d %d\n", 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() { int x = 0, y = 0; while (1) { scanf("%d %d\n", &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, 66, 17, 67], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]]
0
87
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b), a && b) { printf("%d %d\n", (a < b) ? a : b, (a < b) ? b : a); } return 0; }
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b), a || b) { printf("%d %d\n", (a < b) ? a : b, (a < b) ? b : a); } return 0; }
[["-", 0, 52, 15, 23, 0, 34, 12, 16, 17, 98], ["+", 0, 52, 15, 23, 0, 34, 12, 16, 17, 106]]
0
65
#include <stdio.h> int main() { while (1) { 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); } } return 0; }
#include <stdio.h> int main() { while (1) { 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); } } return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]]
0
84
#include <stdio.h> int main() { for (int i = 0; i < 3000; i++) { int a, b; 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() { for (int i = 0; i < 3000; i++) { int a, b; 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; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]]
0
94
#include <stdio.h> int main(void) { int cnt, a, b, tmp; // cnt=0; scanf("%d %d\n", &a, &b); while ((a != 0) || (b != 0)) { // cnt++; if (a > b) { printf("%d %d\n", a, b); } else { printf("%d %d\n", b, a); } scanf("%d %d\n", &a, &b); } return 0; }
#include <stdio.h> int main(void) { int cnt, a, b, tmp; // cnt=0; scanf("%d %d\n", &a, &b); while ((a != 0) || (b != 0)) { // cnt++; if (a < b) { printf("%d %d\n", a, b); } else { printf("%d %d\n", b, a); } scanf("%d %d\n", &a, &b); } return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18]]
0
102
#include <stdio.h> int main() { int x, y, tmp; scanf("%d%d", &x, &y); while (x != 0 && y != 0) { if (x > y) { tmp = x; x = y; y = tmp; } printf("%d %d\n", x, y); scanf("%d%d", &x, &y); } return 0; }
#include <stdio.h> int main() { int x, y, tmp; scanf("%d%d", &x, &y); while (x != 0 || y != 0) { if (x > y) { tmp = x; x = y; y = tmp; } printf("%d %d\n", x, y); 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
88
#include <stdio.h> int main(void) { int i, x, y; for (i = 0;; i++) { 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 i, x, y; for (i = 0;; i++) { 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; }
[["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18]]
0
88
#include <stdio.h> int main(void) { int i, n, m; for (i = 1;; i++) { scanf("%d %d", &n, &m); if (n != 0 && m != 0) { if (n < m) printf("%d %d\n", n, m); else printf("%d %d\n", m, n); } else break; } return 0; }
#include <stdio.h> int main(void) { int i, n, m; for (i = 1;; i++) { scanf("%d %d", &n, &m); if (n != 0 || m != 0) { if (n < m) printf("%d %d\n", n, m); else printf("%d %d\n", m, n); } else break; } return 0; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106]]
0
90
#include <stdio.h> int main(void) { int x, y, box; for (;;) { scanf("%d%d", &x, &y); if (x == 0 && y == 0) { break; } else if (x > y) { box = x; x = y; y = box; } printf("%d %d", x, y); } return 0; }
#include <stdio.h> int main(void) { int x, y, box; for (;;) { scanf("%d%d", &x, &y); if (x == 0 && y == 0) { break; } else if (x > y) { box = x; x = y; y = box; } printf("%d %d\n", x, y); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
85
#include <stdio.h> int main() { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { return 0; } if (x < y) { printf("%d %d\n", x, y); } if (x > y) { printf("%d %d\n", y, x); } } }
#include <stdio.h> int main() { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { return 0; } if (x <= y) { printf("%d %d\n", x, y); } if (x > y) { printf("%d %d\n", y, x); } } }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 19]]
0
87
#include <stdio.h> int main() { int a, x, y, buf; while (a) { scanf("%d%d", &x, &y); if (x > y) { buf = x; x = y; y = buf; } if (x == 0 && y == 0) break; printf("%d %d\n", x, y); } return 0; }
#include <stdio.h> int main() { int a, x, y, buf; while (1) { scanf("%d%d", &x, &y); if (x > y) { buf = x; x = y; y = buf; } if (x == 0 && y == 0) break; printf("%d %d\n", x, y); } return 0; }
[["-", 0, 14, 8, 9, 0, 52, 15, 23, 0, 22], ["+", 0, 14, 8, 9, 0, 52, 15, 23, 0, 13]]
0
83
#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", y, x); } else if (x > y) { printf("%d %d\n", x, y); } if (x == y) { printf("%d %d\n", x, y); } } 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", y, x); } else if (x < y) { printf("%d %d\n", x, y); } if (x == y) { 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], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18]]
0
109
#include <stdio.h> int main(void) { int x[10000], y[10000]; int i, t; int e1, e2; e1 = 0; e2 = 0; for (i = 0; e1 == 0; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0) { if (y[i] == 0) e1 = 1; } } for (t = 0; e2 == 0; t++) { if (x[t] > y[t]) { printf("%d %d\n", ...
#include <stdio.h> int main(void) { int x[10000], y[10000]; int i, t; int e1, e2; e1 = 0; e2 = 0; for (i = 0; e1 == 0; i++) { scanf("%d %d", &x[i], &y[i]); if (x[i] == 0) { if (y[i] == 0) e1 = 1; } } for (t = 0; e2 == 0; t++) { if (y[t] > x[t]) { printf("%d %d\n", ...
[["-", 0, 57, 15, 23, 0, 16, 31, 69, 28, 22], ["+", 0, 57, 15, 23, 0, 16, 31, 69, 28, 22], ["-", 0, 57, 15, 23, 0, 16, 12, 69, 28, 22], ["+", 0, 57, 15, 23, 0, 16, 12, 69, 28, 22]]
0
179
#include <stdio.h> int main(void) { int x, y; while (scanf("%d %d", &x, &y), x || y) { if (x > y) printf("%d %d\n", x, y); else printf("%d %d\n", x, y); } return 0; }
#include <stdio.h> int main(void) { int x, y; while (scanf("%d %d", &x, &y), x || y) { if (x > y) printf("%d %d\n", y, x); else printf("%d %d\n", x, y); } return 0; }
[["-", 0, 57, 64, 1, 0, 2, 3, 4, 0, 22], ["-", 0, 57, 64, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 57, 64, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 57, 64, 1, 0, 2, 3, 4, 0, 22]]
0
69
#include <stdio.h> int main() { int input_a; int input_b; while (1) { scanf("%d %d", &input_a, &input_b); if (input_a == 0 && input_b == 0) { break; } if (input_a > input_b) { printf("%d %d", input_a, input_b); } else { printf("%d %d", input_b, input_a); } } retu...
#include <stdio.h> int main() { int input_a; int input_b; while (1) { scanf("%d %d", &input_a, &input_b); if (input_a == 0 && input_b == 0) { break; } if (input_a < input_b) { printf("%d %d\n", input_a, input_b); } else { printf("%d %d\n", input_b, input_a); } } ...
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
83
#include <stdio.h> int main() { int no1, no2; scanf("%d", &no1); scanf("%d", &no2); while ((no1 != 0) && (no2 != 0)) { if (no1 > no2) { printf("%d %d\n", no2, no1); } else { printf("%d %d\n", no1, no2); } scanf("%d", &no1); scanf("%d", &no2); } return 0; }
#include <stdio.h> int main() { int no1, no2; scanf("%d", &no1); scanf("%d", &no2); while ((no1 != 0) || (no2 != 0)) { if (no1 > no2) { printf("%d %d\n", no2, no1); } else { printf("%d %d\n", no1, no2); } scanf("%d", &no1); scanf("%d", &no2); } return 0; }
[["-", 8, 9, 0, 52, 15, 23, 0, 16, 17, 98], ["+", 8, 9, 0, 52, 15, 23, 0, 16, 17, 106]]
0
107
#include <stdio.h> int main(void) { int a, b; while (1) { 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; }
#include <stdio.h> int main(void) { int a, b; while (1) { 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; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 106], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98]]
0
83
#include <stdio.h> main() { int x = 0, y = 0; 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 <stdio.h> main() { int x = 0, y = 0; 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; }
[["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 47], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
86
#include <stdio.h> void swap(int *x, int *y); int main() { while (1) { int a, b; scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; else if (a < b) swap(&a, &b); printf("%d %d\n", a, b); } return 0; } void swap(int *x, int *y) { int tmp; tmp = *x; *x = *y; *y = tmp; }
#include <stdio.h> void swap(int *x, int *y); int main() { while (1) { int a, b; scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; else if (a > b) swap(&a, &b); printf("%d %d\n", a, b); } return 0; } void swap(int *x, int *y) { int tmp; tmp = *x; *x = *y; *y = tmp; }
[["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 18], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 47]]
0
119
#include <stdio.h> int main() { int num1, num2; while (1) { scanf("%d%d", &num1, &num2); if (num1 == 0 && num2 == 0) { break; } int max, min; if (num1 > num2) { max = num1; min = num2; } else { max = num2; min = num1; } printf("%d %d\n", max, min); } ...
#include <stdio.h> int main() { int num1, num2; while (1) { scanf("%d%d", &num1, &num2); if (num1 == 0 && num2 == 0) { break; } int max, min; if (num1 > num2) { max = num1; min = num2; } else { max = num2; min = num1; } printf("%d %d\n", min, max); } ...
[["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["-", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
0
93
#include <stdio.h> int main() { int a, b, tmp; while (1) { scanf("%d %d", a, b); if (a == b == 0) break; if (a > b) { tmp = a; a = b; b = tmp; } printf("%d %d", a, b); } return 0; }
#include <stdio.h> int main() { int a, b, tmp; while (1) { scanf("%d %d", &a, &b); if (a == 0 && b == 0) break; if (a > b) { tmp = a; a = b; b = tmp; } printf("%d %d\n", a, b); } return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 98], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
76
#include <stdio.h> main() { int x; int y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (y <= x) { printf("%d %d\n", y, x); } else if (y <= x) { printf("%d %d\n", x, y); } } return 0; }
#include <stdio.h> main() { int x; int y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (y <= x) { printf("%d %d\n", y, x); } else if (x <= y) { printf("%d %d\n", x, y); } } return 0; }
[["-", 75, 76, 0, 57, 15, 23, 0, 16, 31, 22], ["-", 75, 76, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 17, 19], ["+", 75, 76, 0, 57, 15, 23, 0, 16, 12, 22]]
0
89
#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", x, y); } else { printf("%d %d", 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; 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, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
82
#include <stdio.h> int main(void) { int x, y, i; while (1) { scanf("%d %d", &x, &y); if (x == 0 || y == 0) break; if (x > y) { i = x; x = y; y = i; printf("%d %d\n", x, y); } else { printf("%d %d\n", x, y); } } return 0; }
#include <stdio.h> int main(void) { int x, y, i; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) break; if (x > y) { i = x; x = y; y = i; printf("%d %d\n", x, y); } else { 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
97
#include <stdio.h> int main(void) { int a, b; while (1) { 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; }
#include <stdio.h> int main(void) { int a, b; while (1) { 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; }
[["-", 0, 14, 8, 9, 0, 52, 8, 9, 0, 46], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]]
0
85
#include <stdio.h> void swap(int *x, int *y) { int tmp; tmp = *x; *x = *y; *y = tmp; } int main(int argc, const char *argv[]) { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } if (x > y) { swap(&x, &y); } printf("%d %d", x, y); }...
#include <stdio.h> void swap(int *x, int *y) { int tmp; tmp = *x; *x = *y; *y = tmp; } int main(int argc, const char *argv[]) { int x, y; while (1) { scanf("%d %d", &x, &y); if (x == 0 && y == 0) { break; } if (x > y) { swap(&x, &y); } printf("%d %d\n", x, y); ...
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]]
0
118