node_ids
sequencelengths
4
1.4k
edge_index
sequencelengths
1
2.22k
text
sequencelengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 13, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 2, 2, 13, 4, 13, 13, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 41, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 97, 5 ], [ 97, 6 ], [ 6, 7 ], [ 6, 8 ], [ 97, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 33, 36 ], [ 27, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 11, 41 ], [ 41, 42 ], [ 42, 43 ], [ 9, 44 ], [ 44, 45 ], [ 97, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 51, 58 ], [ 48, 59 ], [ 59, 60 ], [ 46, 61 ], [ 61, 62 ], [ 46, 63 ], [ 63, 64 ], [ 97, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 75, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 67, 87 ], [ 87, 88 ], [ 87, 89 ], [ 67, 90 ], [ 90, 91 ], [ 65, 92 ], [ 92, 93 ], [ 65, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\twhile(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tSystem.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b));\n\t\t}\n\t\tsc.close();\n\n\t}\n\n\tprivate static long lcm(int i, int j) {\n\t\tlong lcm = i / gcd(i, j) * j;\n\t\treturn lcm;\n\t}\n\n\tprivate static int gcd(int x, int y) {\n\t\tint x_tmp = 0;\n\n\t\tdo {\n\t\t\tx_tmp = x;\n\n\t\t\tx = y;\n\t\t\ty = x_tmp % y;\n\t\t}while(y > 0);\n\n\t\tint gcd = x;\n\n\t\treturn gcd;\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\twhile(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tSystem.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b));\n\t\t}\n\t\tsc.close();\n\n\t}\n\n\tprivate static long lcm(int i, int j) {\n\t\tlong lcm = i / gcd(i, j) * j;\n\t\treturn lcm;\n\t}\n\n\tprivate static int gcd(int x, int y) {\n\t\tint x_tmp = 0;\n\n\t\tdo {\n\t\t\tx_tmp = x;\n\n\t\t\tx = y;\n\t\t\ty = x_tmp % y;\n\t\t}while(y > 0);\n\n\t\tint gcd = x;\n\n\t\treturn gcd;\n\t}\n\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n\n\t\twhile(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tSystem.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b));\n\t\t}\n\t\tsc.close();\n\n\t}", "main", "{\n\n\t\twhile(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tSystem.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b));\n\t\t}\n\t\tsc.close();\n\n\t}", "while(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tSystem.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b));\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tSystem.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b));\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "System.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b))", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "gcd(a, b)", "gcd", "a", "b", "lcm(a, b)", "lcm", "a", "b", "sc.close()", "sc.close", "sc", "String[] args", "args", "private static long lcm(int i, int j) {\n\t\tlong lcm = i / gcd(i, j) * j;\n\t\treturn lcm;\n\t}", "lcm", "{\n\t\tlong lcm = i / gcd(i, j) * j;\n\t\treturn lcm;\n\t}", "long lcm = i / gcd(i, j) * j;", "lcm", "i / gcd(i, j) * j", "i / gcd(i, j)", "i", "gcd(i, j)", "gcd", "i", "j", "j", "return lcm;", "lcm", "int i", "i", "int j", "j", "private static int gcd(int x, int y) {\n\t\tint x_tmp = 0;\n\n\t\tdo {\n\t\t\tx_tmp = x;\n\n\t\t\tx = y;\n\t\t\ty = x_tmp % y;\n\t\t}while(y > 0);\n\n\t\tint gcd = x;\n\n\t\treturn gcd;\n\t}", "gcd", "{\n\t\tint x_tmp = 0;\n\n\t\tdo {\n\t\t\tx_tmp = x;\n\n\t\t\tx = y;\n\t\t\ty = x_tmp % y;\n\t\t}while(y > 0);\n\n\t\tint gcd = x;\n\n\t\treturn gcd;\n\t}", "int x_tmp = 0;", "x_tmp", "0", "do {\n\t\t\tx_tmp = x;\n\n\t\t\tx = y;\n\t\t\ty = x_tmp % y;\n\t\t}while(y > 0);", "y > 0", "y", "0", "{\n\t\t\tx_tmp = x;\n\n\t\t\tx = y;\n\t\t\ty = x_tmp % y;\n\t\t}", "x_tmp = x", "x_tmp", "x", "x = y", "x", "y", "y = x_tmp % y", "y", "x_tmp % y", "x_tmp", "y", "int gcd = x;", "gcd", "x", "return gcd;", "gcd", "int x", "x", "int y", "y", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\twhile(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tSystem.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b));\n\t\t}\n\t\tsc.close();\n\n\t}\n\n\tprivate static long lcm(int i, int j) {\n\t\tlong lcm = i / gcd(i, j) * j;\n\t\treturn lcm;\n\t}\n\n\tprivate static int gcd(int x, int y) {\n\t\tint x_tmp = 0;\n\n\t\tdo {\n\t\t\tx_tmp = x;\n\n\t\t\tx = y;\n\t\t\ty = x_tmp % y;\n\t\t}while(y > 0);\n\n\t\tint gcd = x;\n\n\t\treturn gcd;\n\t}\n\n}", "public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\n\t\twhile(sc.hasNext()) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\n\t\t\tSystem.out.printf(\"%d %d\\n\",gcd(a, b) ,lcm(a, b));\n\t\t}\n\t\tsc.close();\n\n\t}\n\n\tprivate static long lcm(int i, int j) {\n\t\tlong lcm = i / gcd(i, j) * j;\n\t\treturn lcm;\n\t}\n\n\tprivate static int gcd(int x, int y) {\n\t\tint x_tmp = 0;\n\n\t\tdo {\n\t\t\tx_tmp = x;\n\n\t\t\tx = y;\n\t\t\ty = x_tmp % y;\n\t\t}while(y > 0);\n\n\t\tint gcd = x;\n\n\t\treturn gcd;\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { while(sc.hasNext()) { int a = sc.nextInt(); int b = sc.nextInt(); System.out.printf("%d %d\n",gcd(a, b) ,lcm(a, b)); } sc.close(); } private static long lcm(int i, int j) { long lcm = i / gcd(i, j) * j; return lcm; } private static int gcd(int x, int y) { int x_tmp = 0; do { x_tmp = x; x = y; y = x_tmp % y; }while(y > 0); int gcd = x; return gcd; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 41, 13, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 115, 11 ], [ 115, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 29, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 29, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 29, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 62, 67 ], [ 62, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 12, 72 ], [ 72, 73 ], [ 115, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 77, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 88, 91 ], [ 91, 92 ], [ 91, 93 ], [ 74, 94 ], [ 94, 95 ], [ 74, 96 ], [ 96, 97 ], [ 115, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 106, 109 ], [ 98, 110 ], [ 110, 111 ], [ 98, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile((line = br.readLine()) != null){\n\t\t\tString[] s = line.split(\" \");\n\t\t\tlong a,b;\n\t\t\ta = Long.parseLong(s[0]);\n\t\t\tb = Long.parseLong(s[1]);\n\t\t\tSystem.out.println(gcd(a,b) + \" \" + lcm(a,b));\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a,long b){\n\t\tif(a%b == 0){ return b;}\n\t\telse{ return gcd(b,a%b);}\n\t}\n\t\n\tpublic static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile((line = br.readLine()) != null){\n\t\t\tString[] s = line.split(\" \");\n\t\t\tlong a,b;\n\t\t\ta = Long.parseLong(s[0]);\n\t\t\tb = Long.parseLong(s[1]);\n\t\t\tSystem.out.println(gcd(a,b) + \" \" + lcm(a,b));\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a,long b){\n\t\tif(a%b == 0){ return b;}\n\t\telse{ return gcd(b,a%b);}\n\t}\n\t\n\tpublic static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile((line = br.readLine()) != null){\n\t\t\tString[] s = line.split(\" \");\n\t\t\tlong a,b;\n\t\t\ta = Long.parseLong(s[0]);\n\t\t\tb = Long.parseLong(s[1]);\n\t\t\tSystem.out.println(gcd(a,b) + \" \" + lcm(a,b));\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile((line = br.readLine()) != null){\n\t\t\tString[] s = line.split(\" \");\n\t\t\tlong a,b;\n\t\t\ta = Long.parseLong(s[0]);\n\t\t\tb = Long.parseLong(s[1]);\n\t\t\tSystem.out.println(gcd(a,b) + \" \" + lcm(a,b));\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line = \"\";", "line", "\"\"", "while((line = br.readLine()) != null){\n\t\t\tString[] s = line.split(\" \");\n\t\t\tlong a,b;\n\t\t\ta = Long.parseLong(s[0]);\n\t\t\tb = Long.parseLong(s[1]);\n\t\t\tSystem.out.println(gcd(a,b) + \" \" + lcm(a,b));\n\t\t}", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tString[] s = line.split(\" \");\n\t\t\tlong a,b;\n\t\t\ta = Long.parseLong(s[0]);\n\t\t\tb = Long.parseLong(s[1]);\n\t\t\tSystem.out.println(gcd(a,b) + \" \" + lcm(a,b));\n\t\t}", "String[] s = line.split(\" \");", "s", "line.split(\" \")", "line.split", "line", "\" \"", "long a", "a", "b;", "b", "a = Long.parseLong(s[0])", "a", "Long.parseLong(s[0])", "Long.parseLong", "Long", "s[0]", "s", "0", "b = Long.parseLong(s[1])", "b", "Long.parseLong(s[1])", "Long.parseLong", "Long", "s[1]", "s", "1", "System.out.println(gcd(a,b) + \" \" + lcm(a,b))", "System.out.println", "System.out", "System", "System.out", "gcd(a,b) + \" \" + lcm(a,b)", "gcd(a,b) + \" \" + lcm(a,b)", "gcd(a,b)", "gcd", "a", "b", "\" \"", "lcm(a,b)", "lcm", "a", "b", "String[] args", "args", "public static long gcd(long a,long b){\n\t\tif(a%b == 0){ return b;}\n\t\telse{ return gcd(b,a%b);}\n\t}", "gcd", "{\n\t\tif(a%b == 0){ return b;}\n\t\telse{ return gcd(b,a%b);}\n\t}", "if(a%b == 0){ return b;}\n\t\telse{ return gcd(b,a%b);}", "a%b == 0", "a%b", "a", "b", "0", "{ return b;}", "return b;", "b", "{ return gcd(b,a%b);}", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "public static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}", "lcm", "{\n\t\treturn a*b / gcd(a,b);\n\t}", "return a*b / gcd(a,b);", "a*b / gcd(a,b)", "a*b", "a", "b", "gcd(a,b)", "gcd", "a", "b", "long a", "a", "long b", "b", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile((line = br.readLine()) != null){\n\t\t\tString[] s = line.split(\" \");\n\t\t\tlong a,b;\n\t\t\ta = Long.parseLong(s[0]);\n\t\t\tb = Long.parseLong(s[1]);\n\t\t\tSystem.out.println(gcd(a,b) + \" \" + lcm(a,b));\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a,long b){\n\t\tif(a%b == 0){ return b;}\n\t\telse{ return gcd(b,a%b);}\n\t}\n\t\n\tpublic static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile((line = br.readLine()) != null){\n\t\t\tString[] s = line.split(\" \");\n\t\t\tlong a,b;\n\t\t\ta = Long.parseLong(s[0]);\n\t\t\tb = Long.parseLong(s[1]);\n\t\t\tSystem.out.println(gcd(a,b) + \" \" + lcm(a,b));\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a,long b){\n\t\tif(a%b == 0){ return b;}\n\t\telse{ return gcd(b,a%b);}\n\t}\n\t\n\tpublic static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}\n}", "Main" ]
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)); String line = ""; while((line = br.readLine()) != null){ String[] s = line.split(" "); long a,b; a = Long.parseLong(s[0]); b = Long.parseLong(s[1]); System.out.println(gcd(a,b) + " " + lcm(a,b)); } } public static long gcd(long a,long b){ if(a%b == 0){ return b;} else{ return gcd(b,a%b);} } public static long lcm(long a,long b){ return a*b / gcd(a,b); } }
[ 7, 6, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 2, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 2, 2, 13, 4, 13, 13, 13, 13, 29, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 72, 2 ], [ 72, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 7, 8 ], [ 7, 9 ], [ 6, 10 ], [ 10, 11 ], [ 5, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 13, 18 ], [ 3, 19 ], [ 19, 20 ], [ 3, 21 ], [ 21, 22 ], [ 72, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 33, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 33, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 54, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 60, 67 ], [ 25, 68 ], [ 23, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "public class\nMain\n{\n public static int\n gcd (\n int a,\n int b\n )\n {\n if ( a == 0 ) return ( b );\n\n return\n gcd ( b % a, a );\n }\n\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n\n while ( cin.hasNext ( ) )\n {\n int a, b;\n\n a = cin.nextInt ( ); b = cin.nextInt ( );\n System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b );\n }\n\n return ;\n }\n}", "Main\n{\n public static int\n gcd (\n int a,\n int b\n )\n {\n if ( a == 0 ) return ( b );\n\n return\n gcd ( b % a, a );\n }\n\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n\n while ( cin.hasNext ( ) )\n {\n int a, b;\n\n a = cin.nextInt ( ); b = cin.nextInt ( );\n System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b );\n }\n\n return ;\n }\n}", "Main", "public static int\n gcd (\n int a,\n int b\n )\n {\n if ( a == 0 ) return ( b );\n\n return\n gcd ( b % a, a );\n }", "gcd", "{\n if ( a == 0 ) return ( b );\n\n return\n gcd ( b % a, a );\n }", "if ( a == 0 ) return ( b );", "a == 0", "a", "0", "return ( b );", "( b )", "return\n gcd ( b % a, a );", "gcd ( b % a, a )", "gcd", "b % a", "b", "a", "a", "int a", "a", "int b", "b", "public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n\n while ( cin.hasNext ( ) )\n {\n int a, b;\n\n a = cin.nextInt ( ); b = cin.nextInt ( );\n System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b );\n }\n\n return ;\n }", "main", "{\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n\n while ( cin.hasNext ( ) )\n {\n int a, b;\n\n a = cin.nextInt ( ); b = cin.nextInt ( );\n System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b );\n }\n\n return ;\n }", "java.util.Scanner cin = new java.util.Scanner ( System.in );", "cin", "new java.util.Scanner ( System.in )", "while ( cin.hasNext ( ) )\n {\n int a, b;\n\n a = cin.nextInt ( ); b = cin.nextInt ( );\n System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b );\n }", "cin.hasNext ( )", "cin.hasNext", "cin", "{\n int a, b;\n\n a = cin.nextInt ( ); b = cin.nextInt ( );\n System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b );\n }", "int a", "a", "b;", "b", "a = cin.nextInt ( )", "a", "cin.nextInt ( )", "cin.nextInt", "cin", "b = cin.nextInt ( )", "b", "cin.nextInt ( )", "cin.nextInt", "cin", "System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b )", "System.out.println", "System.out", "System", "System.out", "gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b", "gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b", "gcd ( a, b )", "gcd", "a", "b", "\" \"", "a / gcd ( a, b ) * b", "a / gcd ( a, b )", "a", "gcd ( a, b )", "gcd", "a", "b", "b", "return ;", "String[ ] args", "args", "Main\n{\n public static int\n gcd (\n int a,\n int b\n )\n {\n if ( a == 0 ) return ( b );\n\n return\n gcd ( b % a, a );\n }\n\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n\n while ( cin.hasNext ( ) )\n {\n int a, b;\n\n a = cin.nextInt ( ); b = cin.nextInt ( );\n System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b );\n }\n\n return ;\n }\n}", "Main\n{\n public static int\n gcd (\n int a,\n int b\n )\n {\n if ( a == 0 ) return ( b );\n\n return\n gcd ( b % a, a );\n }\n\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n\n while ( cin.hasNext ( ) )\n {\n int a, b;\n\n a = cin.nextInt ( ); b = cin.nextInt ( );\n System.out.println ( gcd ( a, b ) + \" \" + a / gcd ( a, b ) * b );\n }\n\n return ;\n }\n}", "Main" ]
public class Main { public static int gcd ( int a, int b ) { if ( a == 0 ) return ( b ); return gcd ( b % a, a ); } public static void main ( String[ ] args ) { java.util.Scanner cin = new java.util.Scanner ( System.in ); while ( cin.hasNext ( ) ) { int a, b; a = cin.nextInt ( ); b = cin.nextInt ( ); System.out.println ( gcd ( a, b ) + " " + a / gcd ( a, b ) * b ); } return ; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 18, 13, 13, 4, 13, 13, 13, 0, 18, 13, 13, 2, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 18, 13, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 18, 13, 13, 17, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 42, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 3, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 42, 45 ], [ 27, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 51, 62 ], [ 62, 63 ], [ 62, 64 ], [ 27, 65 ], [ 65, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 6, 94 ], [ 94, 95 ], [ 4, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 108, 115 ], [ 115, 116 ], [ 115, 117 ], [ 98, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 120, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 120, 131 ], [ 131, 132 ], [ 131, 133 ], [ 120, 134 ], [ 134, 135 ], [ 134, 136 ], [ 98, 137 ], [ 137, 138 ], [ 96, 139 ], [ 139, 140 ], [ 96, 141 ], [ 141, 142 ] ]
[ "import java.util.Scanner;\n class Main {\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint GCD[] = new int[100];\n\t\tint LCM[] = new int[100];\n\t\tint i = 0;\n\t\twhile(sc.hasNext()){\n\t\t\tint a = sc.nextInt(), b =sc.nextInt();\n\t\t\tGCD[i] = GCD(a,b);\n\t\t\tLCM[i] = (a/GCD[i])*(b/GCD[i])*GCD[i];\n\t\t\ti++;\n\t\t}\n\t\tfor(int j = 0; j < i; j++){\n\t\t\tSystem.out.println(GCD[j]+\" \"+LCM[j]);\n\t\t}\n\t\t\n\t}\n\t\n\tpublic static int GCD(int a, int b){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x ;\n\t\tif(a < b){\n\t\t\tx = a;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}\n\t\twhile(true){\n\t\t\tx = a%b;\n\t\t\tif(x == 0) break;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}\n\t\treturn b;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint GCD[] = new int[100];\n\t\tint LCM[] = new int[100];\n\t\tint i = 0;\n\t\twhile(sc.hasNext()){\n\t\t\tint a = sc.nextInt(), b =sc.nextInt();\n\t\t\tGCD[i] = GCD(a,b);\n\t\t\tLCM[i] = (a/GCD[i])*(b/GCD[i])*GCD[i];\n\t\t\ti++;\n\t\t}\n\t\tfor(int j = 0; j < i; j++){\n\t\t\tSystem.out.println(GCD[j]+\" \"+LCM[j]);\n\t\t}\n\t\t\n\t}\n\t\n\tpublic static int GCD(int a, int b){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x ;\n\t\tif(a < b){\n\t\t\tx = a;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}\n\t\twhile(true){\n\t\t\tx = a%b;\n\t\t\tif(x == 0) break;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}\n\t\treturn b;\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint GCD[] = new int[100];\n\t\tint LCM[] = new int[100];\n\t\tint i = 0;\n\t\twhile(sc.hasNext()){\n\t\t\tint a = sc.nextInt(), b =sc.nextInt();\n\t\t\tGCD[i] = GCD(a,b);\n\t\t\tLCM[i] = (a/GCD[i])*(b/GCD[i])*GCD[i];\n\t\t\ti++;\n\t\t}\n\t\tfor(int j = 0; j < i; j++){\n\t\t\tSystem.out.println(GCD[j]+\" \"+LCM[j]);\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint GCD[] = new int[100];\n\t\tint LCM[] = new int[100];\n\t\tint i = 0;\n\t\twhile(sc.hasNext()){\n\t\t\tint a = sc.nextInt(), b =sc.nextInt();\n\t\t\tGCD[i] = GCD(a,b);\n\t\t\tLCM[i] = (a/GCD[i])*(b/GCD[i])*GCD[i];\n\t\t\ti++;\n\t\t}\n\t\tfor(int j = 0; j < i; j++){\n\t\t\tSystem.out.println(GCD[j]+\" \"+LCM[j]);\n\t\t}\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int GCD[] = new int[100];", "GCD", "new int[100]", "100", "int LCM[] = new int[100];", "LCM", "new int[100]", "100", "int i = 0;", "i", "0", "while(sc.hasNext()){\n\t\t\tint a = sc.nextInt(), b =sc.nextInt();\n\t\t\tGCD[i] = GCD(a,b);\n\t\t\tLCM[i] = (a/GCD[i])*(b/GCD[i])*GCD[i];\n\t\t\ti++;\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tint a = sc.nextInt(), b =sc.nextInt();\n\t\t\tGCD[i] = GCD(a,b);\n\t\t\tLCM[i] = (a/GCD[i])*(b/GCD[i])*GCD[i];\n\t\t\ti++;\n\t\t}", "int a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b =sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "GCD[i] = GCD(a,b)", "GCD[i]", "GCD", "i", "GCD(a,b)", "GCD", "a", "b", "LCM[i] = (a/GCD[i])*(b/GCD[i])*GCD[i]", "LCM[i]", "LCM", "i", "(a/GCD[i])*(b/GCD[i])*GCD[i]", "(a/GCD[i])*(b/GCD[i])*GCD[i]", "(a/GCD[i])", "a", "GCD[i]", "GCD", "i", "(b/GCD[i])", "b", "GCD[i]", "GCD", "i", "GCD[i]", "GCD", "i", "i++", "i", "for(int j = 0; j < i; j++){\n\t\t\tSystem.out.println(GCD[j]+\" \"+LCM[j]);\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < i", "j", "i", "j++", "j++", "j", "{\n\t\t\tSystem.out.println(GCD[j]+\" \"+LCM[j]);\n\t\t}", "{\n\t\t\tSystem.out.println(GCD[j]+\" \"+LCM[j]);\n\t\t}", "System.out.println(GCD[j]+\" \"+LCM[j])", "System.out.println", "System.out", "System", "System.out", "GCD[j]+\" \"+LCM[j]", "GCD[j]+\" \"+LCM[j]", "GCD[j]", "GCD", "j", "\" \"", "LCM[j]", "LCM", "j", "String args[]", "args", "public static int GCD(int a, int b){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x ;\n\t\tif(a < b){\n\t\t\tx = a;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}\n\t\twhile(true){\n\t\t\tx = a%b;\n\t\t\tif(x == 0) break;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}\n\t\treturn b;\n\t}", "GCD", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x ;\n\t\tif(a < b){\n\t\t\tx = a;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}\n\t\twhile(true){\n\t\t\tx = a%b;\n\t\t\tif(x == 0) break;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}\n\t\treturn b;\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int x ;", "x", "if(a < b){\n\t\t\tx = a;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}", "a < b", "a", "b", "{\n\t\t\tx = a;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}", "x = a", "x", "a", "a = b", "a", "b", "b = x", "b", "x", "while(true){\n\t\t\tx = a%b;\n\t\t\tif(x == 0) break;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}", "true", "{\n\t\t\tx = a%b;\n\t\t\tif(x == 0) break;\n\t\t\ta = b;\n\t\t\tb = x;\n\t\t}", "x = a%b", "x", "a%b", "a", "b", "if(x == 0) break;", "x == 0", "x", "0", "break;", "a = b", "a", "b", "b = x", "b", "x", "return b;", "b", "int a", "a", "int b", "b" ]
import java.util.Scanner; class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int GCD[] = new int[100]; int LCM[] = new int[100]; int i = 0; while(sc.hasNext()){ int a = sc.nextInt(), b =sc.nextInt(); GCD[i] = GCD(a,b); LCM[i] = (a/GCD[i])*(b/GCD[i])*GCD[i]; i++; } for(int j = 0; j < i; j++){ System.out.println(GCD[j]+" "+LCM[j]); } } public static int GCD(int a, int b){ Scanner sc = new Scanner(System.in); int x ; if(a < b){ x = a; a = b; b = x; } while(true){ x = a%b; if(x == 0) break; a = b; b = x; } return b; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 0, 13, 13, 0, 13, 13, 42, 17, 30, 14, 2, 13, 13, 30, 0, 13, 13, 3, 14, 2, 13, 17, 30, 0, 13, 13, 3, 14, 2, 13, 17, 30, 0, 13, 13, 3, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 0, 13, 13, 0, 13, 13, 42, 17, 30, 14, 2, 13, 13, 30, 0, 13, 13, 3, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 0, 13, 17, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 18, 13, 13, 4, 13, 13, 13, 0, 18, 13, 13, 4, 13, 13, 13, 40, 13, 0, 13, 17, 42, 2, 13, 13, 30, 4, 18, 18, 13, 13, 2, 2, 18, 13, 13, 17, 18, 13, 13, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 218, 8 ], [ 218, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 27, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 36, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 45, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 11, 70 ], [ 70, 71 ], [ 9, 72 ], [ 72, 73 ], [ 9, 74 ], [ 74, 75 ], [ 218, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 78, 83 ], [ 83, 84 ], [ 78, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 88, 90 ], [ 78, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 94, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 103, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 78, 119 ], [ 119, 120 ], [ 76, 121 ], [ 121, 122 ], [ 76, 123 ], [ 123, 124 ], [ 218, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 130, 131 ], [ 127, 132 ], [ 132, 133 ], [ 127, 134 ], [ 134, 135 ], [ 127, 136 ], [ 136, 137 ], [ 127, 138 ], [ 138, 139 ], [ 127, 140 ], [ 140, 141 ], [ 127, 142 ], [ 142, 143 ], [ 127, 144 ], [ 144, 145 ], [ 144, 146 ], [ 127, 148 ], [ 148, 149 ], [ 148, 150 ], [ 127, 152 ], [ 152, 153 ], [ 152, 154 ], [ 127, 155 ], [ 155, 156 ], [ 155, 157 ], [ 127, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 162, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 162, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 173, 177 ], [ 177, 178 ], [ 177, 179 ], [ 177, 180 ], [ 162, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 181, 185 ], [ 185, 186 ], [ 185, 187 ], [ 185, 188 ], [ 162, 189 ], [ 189, 190 ], [ 127, 191 ], [ 191, 192 ], [ 191, 193 ], [ 127, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 199, 204 ], [ 205, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 205, 209 ], [ 205, 210 ], [ 210, 211 ], [ 210, 212 ], [ 198, 213 ], [ 213, 214 ], [ 125, 215 ], [ 215, 216 ], [ 0, 217 ], [ 217, 218 ], [ 217, 219 ] ]
[ "import java.util.Scanner;\nimport java.math.BigDecimal;\n\npublic class Main{\n\n\n\t\tpublic static long saidai(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn c;\n\t\t}\n\t\t\n\t\tpublic static long saishou(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\t\n public static void main(String[] args){\n int i,j;\n long a,b,c,d,e,f;\n \n \tlong[] x = new long[60];\n \tlong[] y = new long[60];\n \n Scanner scan = new Scanner(System.in);\n \n i = 0;\n while(scan.hasNextLong()){\n \ta = scan.nextLong();\n \tb = scan.nextLong();\n \tx[i] = saidai(a,b);\n \ty[i] = saishou(a,b);\n \t\n \ti++;\n \n }\n \n \n j = 0;\n while(j < i){\n \t\n \t\tSystem.out.println(x[j] + \" \" + y[j]);\n \tj++;\n \t\t}\n \t\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.math.BigDecimal;", "BigDecimal", "java.math", "public class Main{\n\n\n\t\tpublic static long saidai(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn c;\n\t\t}\n\t\t\n\t\tpublic static long saishou(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\t\n public static void main(String[] args){\n int i,j;\n long a,b,c,d,e,f;\n \n \tlong[] x = new long[60];\n \tlong[] y = new long[60];\n \n Scanner scan = new Scanner(System.in);\n \n i = 0;\n while(scan.hasNextLong()){\n \ta = scan.nextLong();\n \tb = scan.nextLong();\n \tx[i] = saidai(a,b);\n \ty[i] = saishou(a,b);\n \t\n \ti++;\n \n }\n \n \n j = 0;\n while(j < i){\n \t\n \t\tSystem.out.println(x[j] + \" \" + y[j]);\n \tj++;\n \t\t}\n \t\t}\n}", "Main", "public static long saidai(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn c;\n\t\t}", "saidai", "{\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn c;\n\t\t}", "long c", "c", "s", "s", "t;", "t", "s = a", "s", "a", "t = b", "t", "b", "while(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "true", "{\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "if(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}", "s == t", "s", "t", "{\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "c = s", "c", "s", "break;", "if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}", "s == 0", "s", "0", "{\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "c = t", "c", "t", "break;", "if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}", "t == 0", "t", "0", "{\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "c = s", "c", "s", "break;", "if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}", "s > t", "s", "t", "{\n\t\t\t\t\ts = s % t;\n\t\t\t\t}", "s = s % t", "s", "s % t", "s", "t", "{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}", "t = t % s", "t", "t % s", "t", "s", "return c;", "c", "long a", "a", "long b", "b", "public static long saishou(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\treturn c;\n\t\t}", "saishou", "{\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\treturn c;\n\t\t}", "long c", "c", "s", "s", "t;", "t", "s = a", "s", "a", "t = b", "t", "b", "while(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}\n\t\t\t\n\t\t\t}", "true", "{\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}\n\t\t\t\n\t\t\t}", "if(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}", "s == t", "s", "t", "{\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}", "c = s", "c", "s", "break;", "if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}", "s < t", "s", "t", "{\n\t\t\t\t\ts = s+a;\n\t\t\t\t}", "s = s+a", "s", "s+a", "s", "a", "{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}", "t = t+b", "t", "t+b", "t", "b", "return c;", "c", "long a", "a", "long b", "b", "public static void main(String[] args){\n int i,j;\n long a,b,c,d,e,f;\n \n \tlong[] x = new long[60];\n \tlong[] y = new long[60];\n \n Scanner scan = new Scanner(System.in);\n \n i = 0;\n while(scan.hasNextLong()){\n \ta = scan.nextLong();\n \tb = scan.nextLong();\n \tx[i] = saidai(a,b);\n \ty[i] = saishou(a,b);\n \t\n \ti++;\n \n }\n \n \n j = 0;\n while(j < i){\n \t\n \t\tSystem.out.println(x[j] + \" \" + y[j]);\n \tj++;\n \t\t}\n \t\t}", "main", "{\n int i,j;\n long a,b,c,d,e,f;\n \n \tlong[] x = new long[60];\n \tlong[] y = new long[60];\n \n Scanner scan = new Scanner(System.in);\n \n i = 0;\n while(scan.hasNextLong()){\n \ta = scan.nextLong();\n \tb = scan.nextLong();\n \tx[i] = saidai(a,b);\n \ty[i] = saishou(a,b);\n \t\n \ti++;\n \n }\n \n \n j = 0;\n while(j < i){\n \t\n \t\tSystem.out.println(x[j] + \" \" + y[j]);\n \tj++;\n \t\t}\n \t\t}", "int i", "i", "j;", "j", "long a", "a", "b", "b", "c", "c", "d", "d", "e", "e", "f;", "f", "long[] x = new long[60];", "x", "new long[60]", "60", "long[] y = new long[60];", "y", "new long[60]", "60", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "i = 0", "i", "0", "while(scan.hasNextLong()){\n \ta = scan.nextLong();\n \tb = scan.nextLong();\n \tx[i] = saidai(a,b);\n \ty[i] = saishou(a,b);\n \t\n \ti++;\n \n }", "scan.hasNextLong()", "scan.hasNextLong", "scan", "{\n \ta = scan.nextLong();\n \tb = scan.nextLong();\n \tx[i] = saidai(a,b);\n \ty[i] = saishou(a,b);\n \t\n \ti++;\n \n }", "a = scan.nextLong()", "a", "scan.nextLong()", "scan.nextLong", "scan", "b = scan.nextLong()", "b", "scan.nextLong()", "scan.nextLong", "scan", "x[i] = saidai(a,b)", "x[i]", "x", "i", "saidai(a,b)", "saidai", "a", "b", "y[i] = saishou(a,b)", "y[i]", "y", "i", "saishou(a,b)", "saishou", "a", "b", "i++", "i", "j = 0", "j", "0", "while(j < i){\n \t\n \t\tSystem.out.println(x[j] + \" \" + y[j]);\n \tj++;\n \t\t}", "j < i", "j", "i", "{\n \t\n \t\tSystem.out.println(x[j] + \" \" + y[j]);\n \tj++;\n \t\t}", "System.out.println(x[j] + \" \" + y[j])", "System.out.println", "System.out", "System", "System.out", "x[j] + \" \" + y[j]", "x[j] + \" \" + y[j]", "x[j]", "x", "j", "\" \"", "y[j]", "y", "j", "j++", "j", "String[] args", "args", "public class Main{\n\n\n\t\tpublic static long saidai(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn c;\n\t\t}\n\t\t\n\t\tpublic static long saishou(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\t\n public static void main(String[] args){\n int i,j;\n long a,b,c,d,e,f;\n \n \tlong[] x = new long[60];\n \tlong[] y = new long[60];\n \n Scanner scan = new Scanner(System.in);\n \n i = 0;\n while(scan.hasNextLong()){\n \ta = scan.nextLong();\n \tb = scan.nextLong();\n \tx[i] = saidai(a,b);\n \ty[i] = saishou(a,b);\n \t\n \ti++;\n \n }\n \n \n j = 0;\n while(j < i){\n \t\n \t\tSystem.out.println(x[j] + \" \" + y[j]);\n \tj++;\n \t\t}\n \t\t}\n}", "public class Main{\n\n\n\t\tpublic static long saidai(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s == 0){\n\t\t\t\t\tc = t;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(t == 0){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s > t){\n\t\t\t\t\ts = s % t;\n\t\t\t\t}else{\n\t\t\t\t\tt = t % s;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn c;\n\t\t}\n\t\t\n\t\tpublic static long saishou(long a , long b){\n\t\t\tlong c,s,t;\n\t\t\ts = a;\n\t\t\tt = b;\n\t\t\twhile(true){\n\t\t\t\tif(s == t){\n\t\t\t\t\tc = s;\n\t\t\t\t\tbreak;\n\t\t\t\t}else if(s < t){\n\t\t\t\t\ts = s+a;\n\t\t\t\t}else{\n\t\t\t\t\tt = t+b;\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\treturn c;\n\t\t}\n\t\t\n public static void main(String[] args){\n int i,j;\n long a,b,c,d,e,f;\n \n \tlong[] x = new long[60];\n \tlong[] y = new long[60];\n \n Scanner scan = new Scanner(System.in);\n \n i = 0;\n while(scan.hasNextLong()){\n \ta = scan.nextLong();\n \tb = scan.nextLong();\n \tx[i] = saidai(a,b);\n \ty[i] = saishou(a,b);\n \t\n \ti++;\n \n }\n \n \n j = 0;\n while(j < i){\n \t\n \t\tSystem.out.println(x[j] + \" \" + y[j]);\n \tj++;\n \t\t}\n \t\t}\n}", "Main" ]
import java.util.Scanner; import java.math.BigDecimal; public class Main{ public static long saidai(long a , long b){ long c,s,t; s = a; t = b; while(true){ if(s == t){ c = s; break; }else if(s == 0){ c = t; break; }else if(t == 0){ c = s; break; }else if(s > t){ s = s % t; }else{ t = t % s; } } return c; } public static long saishou(long a , long b){ long c,s,t; s = a; t = b; while(true){ if(s == t){ c = s; break; }else if(s < t){ s = s+a; }else{ t = t+b; } } return c; } public static void main(String[] args){ int i,j; long a,b,c,d,e,f; long[] x = new long[60]; long[] y = new long[60]; Scanner scan = new Scanner(System.in); i = 0; while(scan.hasNextLong()){ a = scan.nextLong(); b = scan.nextLong(); x[i] = saidai(a,b); y[i] = saishou(a,b); i++; } j = 0; while(j < i){ System.out.println(x[j] + " " + y[j]); j++; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 100, 5 ], [ 100, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 9, 15 ], [ 15, 16 ], [ 16, 17 ], [ 9, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 20, 23 ], [ 23, 24 ], [ 23, 25 ], [ 6, 26 ], [ 26, 27 ], [ 6, 28 ], [ 28, 29 ], [ 100, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 38, 41 ], [ 30, 42 ], [ 42, 43 ], [ 30, 44 ], [ 44, 45 ], [ 100, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 71, 78 ], [ 78, 79 ], [ 78, 80 ], [ 56, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 88, 91 ], [ 87, 92 ], [ 87, 93 ], [ 93, 94 ], [ 93, 95 ], [ 93, 96 ], [ 46, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.util.*;\n\npublic class Main \n{\n\tstatic long gcd(long a, long b)\n\t{\n\t\tif(a % b == 0)\n\t\t{\n\t\t\treturn(b);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn(gcd(b, a % b));\n\t\t}\n\t}\n\t\n\tstatic long lcm(long a, long b)\n\t{\n\t\treturn(a * b / gcd(a, b));\n\t}\n\t\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(stdIn.hasNext())\n\t\t{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tif(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tSystem.out.println(gcd(a, b) + \" \" + lcm(a, b));\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main \n{\n\tstatic long gcd(long a, long b)\n\t{\n\t\tif(a % b == 0)\n\t\t{\n\t\t\treturn(b);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn(gcd(b, a % b));\n\t\t}\n\t}\n\t\n\tstatic long lcm(long a, long b)\n\t{\n\t\treturn(a * b / gcd(a, b));\n\t}\n\t\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(stdIn.hasNext())\n\t\t{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tif(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tSystem.out.println(gcd(a, b) + \" \" + lcm(a, b));\n\t\t}\n\t}\n}", "Main", "static long gcd(long a, long b)\n\t{\n\t\tif(a % b == 0)\n\t\t{\n\t\t\treturn(b);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn(gcd(b, a % b));\n\t\t}\n\t}", "gcd", "{\n\t\tif(a % b == 0)\n\t\t{\n\t\t\treturn(b);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn(gcd(b, a % b));\n\t\t}\n\t}", "if(a % b == 0)\n\t\t{\n\t\t\treturn(b);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn(gcd(b, a % b));\n\t\t}", "a % b == 0", "a % b", "a", "b", "0", "{\n\t\t\treturn(b);\n\t\t}", "return(b);", "(b)", "{\n\t\t\treturn(gcd(b, a % b));\n\t\t}", "return(gcd(b, a % b));", "(gcd(b, a % b))", "gcd", "b", "a % b", "a", "b", "long a", "a", "long b", "b", "static long lcm(long a, long b)\n\t{\n\t\treturn(a * b / gcd(a, b));\n\t}", "lcm", "{\n\t\treturn(a * b / gcd(a, b));\n\t}", "return(a * b / gcd(a, b));", "(a * b / gcd(a, b))", "a * b", "a", "b", "gcd(a, b)", "gcd", "a", "b", "long a", "a", "long b", "b", "public static void main(String[] args) \n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(stdIn.hasNext())\n\t\t{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tif(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tSystem.out.println(gcd(a, b) + \" \" + lcm(a, b));\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(stdIn.hasNext())\n\t\t{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tif(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tSystem.out.println(gcd(a, b) + \" \" + lcm(a, b));\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while(stdIn.hasNext())\n\t\t{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tif(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tSystem.out.println(gcd(a, b) + \" \" + lcm(a, b));\n\t\t}", "stdIn.hasNext()", "stdIn.hasNext", "stdIn", "{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tif(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tSystem.out.println(gcd(a, b) + \" \" + lcm(a, b));\n\t\t}", "long a = stdIn.nextLong();", "a", "stdIn.nextLong()", "stdIn.nextLong", "stdIn", "long b = stdIn.nextLong();", "b", "stdIn.nextLong()", "stdIn.nextLong", "stdIn", "if(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}", "a < b", "a", "b", "{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}", "long temp = a;", "temp", "a", "a = b", "a", "b", "b = temp", "b", "temp", "System.out.println(gcd(a, b) + \" \" + lcm(a, b))", "System.out.println", "System.out", "System", "System.out", "gcd(a, b) + \" \" + lcm(a, b)", "gcd(a, b) + \" \" + lcm(a, b)", "gcd(a, b)", "gcd", "a", "b", "\" \"", "lcm(a, b)", "lcm", "a", "b", "String[] args", "args", "public class Main \n{\n\tstatic long gcd(long a, long b)\n\t{\n\t\tif(a % b == 0)\n\t\t{\n\t\t\treturn(b);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn(gcd(b, a % b));\n\t\t}\n\t}\n\t\n\tstatic long lcm(long a, long b)\n\t{\n\t\treturn(a * b / gcd(a, b));\n\t}\n\t\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(stdIn.hasNext())\n\t\t{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tif(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tSystem.out.println(gcd(a, b) + \" \" + lcm(a, b));\n\t\t}\n\t}\n}", "public class Main \n{\n\tstatic long gcd(long a, long b)\n\t{\n\t\tif(a % b == 0)\n\t\t{\n\t\t\treturn(b);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn(gcd(b, a % b));\n\t\t}\n\t}\n\t\n\tstatic long lcm(long a, long b)\n\t{\n\t\treturn(a * b / gcd(a, b));\n\t}\n\t\n\tpublic static void main(String[] args) \n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(stdIn.hasNext())\n\t\t{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tif(a < b)\n\t\t\t{\n\t\t\t\tlong temp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tSystem.out.println(gcd(a, b) + \" \" + lcm(a, b));\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { static long gcd(long a, long b) { if(a % b == 0) { return(b); } else { return(gcd(b, a % b)); } } static long lcm(long a, long b) { return(a * b / gcd(a, b)); } public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while(stdIn.hasNext()) { long a = stdIn.nextLong(); long b = stdIn.nextLong(); if(a < b) { long temp = a; a = b; b = temp; } System.out.println(gcd(a, b) + " " + lcm(a, b)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 13, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 87, 5 ], [ 87, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 24, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 24, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 54, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 6, 58 ], [ 58, 59 ], [ 87, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 62, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 60, 82 ], [ 82, 83 ], [ 60, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext())\n\t\t{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tg = gcd(a,b);\n\t\t\tl = (a*b)/g;\n\t\t\tSystem.out.println(g + \" \" + l);\n\t\t}\n\t}\n\n\tprivate static long gcd(long a, long b) {\n\t\tif(a==0) return b;\n\t\telse if(b==0) return a;\n\t\treturn gcd(b,a%b);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext())\n\t\t{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tg = gcd(a,b);\n\t\t\tl = (a*b)/g;\n\t\t\tSystem.out.println(g + \" \" + l);\n\t\t}\n\t}\n\n\tprivate static long gcd(long a, long b) {\n\t\tif(a==0) return b;\n\t\telse if(b==0) return a;\n\t\treturn gcd(b,a%b);\n\t}\n}", "Main", "public static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext())\n\t\t{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tg = gcd(a,b);\n\t\t\tl = (a*b)/g;\n\t\t\tSystem.out.println(g + \" \" + l);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext())\n\t\t{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tg = gcd(a,b);\n\t\t\tl = (a*b)/g;\n\t\t\tSystem.out.println(g + \" \" + l);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "long a", "a", "b", "b", "g", "g", "l;", "l", "while(sc.hasNext())\n\t\t{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tg = gcd(a,b);\n\t\t\tl = (a*b)/g;\n\t\t\tSystem.out.println(g + \" \" + l);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tg = gcd(a,b);\n\t\t\tl = (a*b)/g;\n\t\t\tSystem.out.println(g + \" \" + l);\n\t\t}", "a = sc.nextLong()", "a", "sc.nextLong()", "sc.nextLong", "sc", "b = sc.nextLong()", "b", "sc.nextLong()", "sc.nextLong", "sc", "g = gcd(a,b)", "g", "gcd(a,b)", "gcd", "a", "b", "l = (a*b)/g", "l", "(a*b)/g", "(a*b)", "a", "b", "g", "System.out.println(g + \" \" + l)", "System.out.println", "System.out", "System", "System.out", "g + \" \" + l", "g + \" \" + l", "g", "\" \"", "l", "String args[]", "args", "private static long gcd(long a, long b) {\n\t\tif(a==0) return b;\n\t\telse if(b==0) return a;\n\t\treturn gcd(b,a%b);\n\t}", "gcd", "{\n\t\tif(a==0) return b;\n\t\telse if(b==0) return a;\n\t\treturn gcd(b,a%b);\n\t}", "if(a==0) return b;\n\t\telse if(b==0) return a;", "a==0", "a", "0", "return b;", "b", "if(b==0) return a;", "b==0", "b", "0", "return a;", "a", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext())\n\t\t{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tg = gcd(a,b);\n\t\t\tl = (a*b)/g;\n\t\t\tSystem.out.println(g + \" \" + l);\n\t\t}\n\t}\n\n\tprivate static long gcd(long a, long b) {\n\t\tif(a==0) return b;\n\t\telse if(b==0) return a;\n\t\treturn gcd(b,a%b);\n\t}\n}", "public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext())\n\t\t{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tg = gcd(a,b);\n\t\t\tl = (a*b)/g;\n\t\t\tSystem.out.println(g + \" \" + l);\n\t\t}\n\t}\n\n\tprivate static long gcd(long a, long b) {\n\t\tif(a==0) return b;\n\t\telse if(b==0) return a;\n\t\treturn gcd(b,a%b);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); long a,b,g,l; while(sc.hasNext()) { a = sc.nextLong(); b = sc.nextLong(); g = gcd(a,b); l = (a*b)/g; System.out.println(g + " " + l); } } private static long gcd(long a, long b) { if(a==0) return b; else if(b==0) return a; return gcd(b,a%b); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 4, 13, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 42, 2, 13, 13, 30, 14, 2, 13, 13, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 32, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 32, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 32, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 60, 64 ], [ 32, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 71, 71 ], [ 71, 72 ], [ 71, 73 ], [ 71, 74 ], [ 15, 75 ], [ 75, 76 ], [ 13, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 85, 92 ], [ 92, 93 ], [ 92, 94 ], [ 79, 95 ], [ 95, 96 ], [ 77, 97 ], [ 97, 98 ], [ 77, 99 ], [ 99, 100 ], [ 13, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 101, 110 ], [ 110, 111 ], [ 101, 112 ], [ 112, 113 ], [ 101, 114 ], [ 114, 115 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\nclass Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n while(true){\n try{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int gcd=GCD(a,b);\n long lcm=LCM(a,b,gcd);\n System.out.println(gcd+\" \"+lcm);\n }catch(Exception e){\n System.exit(0);\n };\n }\n }\n \n static int GCD(int a,int b){\n while(a!=b){\n if(a<b) b-=a;\n else a-=b;\n }return a;\n }\n \n static long LCM(int a,int b,int gcd){\n return ((long)a*b)/gcd;\n }\n \n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n while(true){\n try{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int gcd=GCD(a,b);\n long lcm=LCM(a,b,gcd);\n System.out.println(gcd+\" \"+lcm);\n }catch(Exception e){\n System.exit(0);\n };\n }\n }\n \n static int GCD(int a,int b){\n while(a!=b){\n if(a<b) b-=a;\n else a-=b;\n }return a;\n }\n \n static long LCM(int a,int b,int gcd){\n return ((long)a*b)/gcd;\n }\n \n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n while(true){\n try{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int gcd=GCD(a,b);\n long lcm=LCM(a,b,gcd);\n System.out.println(gcd+\" \"+lcm);\n }catch(Exception e){\n System.exit(0);\n };\n }\n }", "main", "{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n while(true){\n try{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int gcd=GCD(a,b);\n long lcm=LCM(a,b,gcd);\n System.out.println(gcd+\" \"+lcm);\n }catch(Exception e){\n System.exit(0);\n };\n }\n }", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n try{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int gcd=GCD(a,b);\n long lcm=LCM(a,b,gcd);\n System.out.println(gcd+\" \"+lcm);\n }catch(Exception e){\n System.exit(0);\n };\n }", "true", "{\n try{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int gcd=GCD(a,b);\n long lcm=LCM(a,b,gcd);\n System.out.println(gcd+\" \"+lcm);\n }catch(Exception e){\n System.exit(0);\n };\n }", "try{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int gcd=GCD(a,b);\n long lcm=LCM(a,b,gcd);\n System.out.println(gcd+\" \"+lcm);\n }catch(Exception e){\n System.exit(0);\n }", "catch(Exception e){\n System.exit(0);\n }", "Exception e", "{\n System.exit(0);\n }", "System.exit(0)", "System.exit", "System", "0", "{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int a=Integer.parseInt(st.nextToken());\n int b=Integer.parseInt(st.nextToken());\n int gcd=GCD(a,b);\n long lcm=LCM(a,b,gcd);\n System.out.println(gcd+\" \"+lcm);\n }", "StringTokenizer st=new StringTokenizer(br.readLine(),\" \");", "st", "new StringTokenizer(br.readLine(),\" \")", "int a=Integer.parseInt(st.nextToken());", "a", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int b=Integer.parseInt(st.nextToken());", "b", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "int gcd=GCD(a,b);", "gcd", "GCD(a,b)", "GCD", "a", "b", "long lcm=LCM(a,b,gcd);", "lcm", "LCM(a,b,gcd)", "LCM", "a", "b", "gcd", "System.out.println(gcd+\" \"+lcm)", "System.out.println", "System.out", "System", "System.out", "gcd+\" \"+lcm", "gcd+\" \"+lcm", "gcd", "\" \"", "lcm", "String[] args", "args", "static int GCD(int a,int b){\n while(a!=b){\n if(a<b) b-=a;\n else a-=b;\n }return a;\n }", "GCD", "{\n while(a!=b){\n if(a<b) b-=a;\n else a-=b;\n }return a;\n }", "while(a!=b){\n if(a<b) b-=a;\n else a-=b;\n }", "a!=b", "a", "b", "{\n if(a<b) b-=a;\n else a-=b;\n }", "if(a<b) b-=a;\n else a-=b;", "a<b", "a", "b", "b-=a", "b", "a", "a-=b", "a", "b", "return a;", "a", "int a", "a", "int b", "b", "static long LCM(int a,int b,int gcd){\n return ((long)a*b)/gcd;\n }", "LCM", "{\n return ((long)a*b)/gcd;\n }", "return ((long)a*b)/gcd;", "((long)a*b)/gcd", "((long)a*b)", "(long)a", "b", "gcd", "int a", "a", "int b", "b", "int gcd", "gcd" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main { public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); while(true){ try{ StringTokenizer st=new StringTokenizer(br.readLine()," "); int a=Integer.parseInt(st.nextToken()); int b=Integer.parseInt(st.nextToken()); int gcd=GCD(a,b); long lcm=LCM(a,b,gcd); System.out.println(gcd+" "+lcm); }catch(Exception e){ System.exit(0); }; } } static int GCD(int a,int b){ while(a!=b){ if(a<b) b-=a; else a-=b; }return a; } static long LCM(int a,int b,int gcd){ return ((long)a*b)/gcd; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 13, 2, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 30, 29, 4, 13, 13, 2, 13, 13, 30, 29, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 35, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 45, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 6, 53 ], [ 53, 54 ], [ 4, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 58, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 58, 72 ], [ 72, 73 ], [ 73, 74 ], [ 55, 75 ], [ 75, 76 ], [ 55, 77 ], [ 77, 78 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner cin = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint g;\n\t\t\n\t\twhile (cin.hasNext()){\n\t\t\ta = cin.nextInt();\n\t\t\tb = cin.nextInt();\n\t\t\tg = GCD(a, b);\n\t\t\tSystem.out.println(g + \" \" + a * (b / g));\n\t\t}\n\t}\n\t\n\tprivate static int GCD (int a, int b){\n\t\tif (a % b != 0){\n\t\t\treturn (GCD(b, a % b));\n\t\t}\n\t\telse {\n\t\t\treturn (b);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args){\n\n\t\tScanner cin = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint g;\n\t\t\n\t\twhile (cin.hasNext()){\n\t\t\ta = cin.nextInt();\n\t\t\tb = cin.nextInt();\n\t\t\tg = GCD(a, b);\n\t\t\tSystem.out.println(g + \" \" + a * (b / g));\n\t\t}\n\t}\n\t\n\tprivate static int GCD (int a, int b){\n\t\tif (a % b != 0){\n\t\t\treturn (GCD(b, a % b));\n\t\t}\n\t\telse {\n\t\t\treturn (b);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\n\t\tScanner cin = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint g;\n\t\t\n\t\twhile (cin.hasNext()){\n\t\t\ta = cin.nextInt();\n\t\t\tb = cin.nextInt();\n\t\t\tg = GCD(a, b);\n\t\t\tSystem.out.println(g + \" \" + a * (b / g));\n\t\t}\n\t}", "main", "{\n\n\t\tScanner cin = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint g;\n\t\t\n\t\twhile (cin.hasNext()){\n\t\t\ta = cin.nextInt();\n\t\t\tb = cin.nextInt();\n\t\t\tg = GCD(a, b);\n\t\t\tSystem.out.println(g + \" \" + a * (b / g));\n\t\t}\n\t}", "Scanner cin = new Scanner(System.in);", "cin", "new Scanner(System.in)", "int a;", "a", "int b;", "b", "int g;", "g", "while (cin.hasNext()){\n\t\t\ta = cin.nextInt();\n\t\t\tb = cin.nextInt();\n\t\t\tg = GCD(a, b);\n\t\t\tSystem.out.println(g + \" \" + a * (b / g));\n\t\t}", "cin.hasNext()", "cin.hasNext", "cin", "{\n\t\t\ta = cin.nextInt();\n\t\t\tb = cin.nextInt();\n\t\t\tg = GCD(a, b);\n\t\t\tSystem.out.println(g + \" \" + a * (b / g));\n\t\t}", "a = cin.nextInt()", "a", "cin.nextInt()", "cin.nextInt", "cin", "b = cin.nextInt()", "b", "cin.nextInt()", "cin.nextInt", "cin", "g = GCD(a, b)", "g", "GCD(a, b)", "GCD", "a", "b", "System.out.println(g + \" \" + a * (b / g))", "System.out.println", "System.out", "System", "System.out", "g + \" \" + a * (b / g)", "g + \" \" + a * (b / g)", "g", "\" \"", "a * (b / g)", "a", "(b / g)", "b", "g", "String[] args", "args", "private static int GCD (int a, int b){\n\t\tif (a % b != 0){\n\t\t\treturn (GCD(b, a % b));\n\t\t}\n\t\telse {\n\t\t\treturn (b);\n\t\t}\n\t}", "GCD", "{\n\t\tif (a % b != 0){\n\t\t\treturn (GCD(b, a % b));\n\t\t}\n\t\telse {\n\t\t\treturn (b);\n\t\t}\n\t}", "if (a % b != 0){\n\t\t\treturn (GCD(b, a % b));\n\t\t}\n\t\telse {\n\t\t\treturn (b);\n\t\t}", "a % b != 0", "a % b", "a", "b", "0", "{\n\t\t\treturn (GCD(b, a % b));\n\t\t}", "return (GCD(b, a % b));", "(GCD(b, a % b))", "GCD", "b", "a % b", "a", "b", "{\n\t\t\treturn (b);\n\t\t}", "return (b);", "(b)", "int a", "a", "int b", "b" ]
import java.util.Scanner; class Main { public static void main(String[] args){ Scanner cin = new Scanner(System.in); int a; int b; int g; while (cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); g = GCD(a, b); System.out.println(g + " " + a * (b / g)); } } private static int GCD (int a, int b){ if (a % b != 0){ return (GCD(b, a % b)); } else { return (b); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 29, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 16, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 46, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 6, 50 ], [ 50, 51 ], [ 75, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 55, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 52, 70 ], [ 70, 71 ], [ 52, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile (in.hasNext()) {\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tlong c = LCM(a, b);\n\t\t\tlong d = a * b / c;\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t}\n\t\n\tstatic long LCM(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn LCM(b, a % b);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile (in.hasNext()) {\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tlong c = LCM(a, b);\n\t\t\tlong d = a * b / c;\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t}\n\t\n\tstatic long LCM(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn LCM(b, a % b);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile (in.hasNext()) {\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tlong c = LCM(a, b);\n\t\t\tlong d = a * b / c;\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\twhile (in.hasNext()) {\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tlong c = LCM(a, b);\n\t\t\tlong d = a * b / c;\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while (in.hasNext()) {\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tlong c = LCM(a, b);\n\t\t\tlong d = a * b / c;\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}", "in.hasNext()", "in.hasNext", "in", "{\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tlong c = LCM(a, b);\n\t\t\tlong d = a * b / c;\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}", "long a = in.nextLong();", "a", "in.nextLong()", "in.nextLong", "in", "long b = in.nextLong();", "b", "in.nextLong()", "in.nextLong", "in", "long c = LCM(a, b);", "c", "LCM(a, b)", "LCM", "a", "b", "long d = a * b / c;", "d", "a * b / c", "a * b", "a", "b", "c", "System.out.println(c + \" \" + d)", "System.out.println", "System.out", "System", "System.out", "c + \" \" + d", "c + \" \" + d", "c", "\" \"", "d", "String[] args", "args", "static long LCM(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn LCM(b, a % b);\n\t\t}\n\t}", "LCM", "{\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn LCM(b, a % b);\n\t\t}\n\t}", "if (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn LCM(b, a % b);\n\t\t}", "b == 0", "b", "0", "{\n\t\t\treturn a;\n\t\t}", "return a;", "a", "{\n\t\t\treturn LCM(b, a % b);\n\t\t}", "return LCM(b, a % b);", "LCM(b, a % b)", "LCM", "b", "a % b", "a", "b", "long a", "a", "long b", "b", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile (in.hasNext()) {\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tlong c = LCM(a, b);\n\t\t\tlong d = a * b / c;\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t}\n\t\n\tstatic long LCM(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn LCM(b, a % b);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile (in.hasNext()) {\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tlong c = LCM(a, b);\n\t\t\tlong d = a * b / c;\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t}\n\t\n\tstatic long LCM(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn LCM(b, a % b);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while (in.hasNext()) { long a = in.nextLong(); long b = in.nextLong(); long c = LCM(a, b); long d = a * b / c; System.out.println(c + " " + d); } } static long LCM(long a, long b) { if (b == 0) { return a; } else { return LCM(b, a % b); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 42, 17, 30, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 42, 4, 18, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 40, 13, 0, 13, 17, 14, 2, 18, 13, 17, 18, 13, 17, 30, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 30, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 42, 2, 0, 13, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 18, 13, 17, 13, 18, 13, 17, 0, 18, 13, 17, 17, 0, 18, 13, 17, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 37 ], [ 37, 38 ], [ 17, 39 ], [ 39, 40 ], [ 17, 41 ], [ 41, 42 ], [ 17, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 73, 74 ], [ 54, 75 ], [ 75, 76 ], [ 75, 77 ], [ 54, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 78, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 54, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 109, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 116, 122 ], [ 122, 123 ], [ 122, 124 ], [ 116, 125 ], [ 125, 126 ], [ 125, 127 ], [ 54, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 134, 134 ], [ 134, 135 ], [ 134, 136 ], [ 134, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 137, 143 ], [ 143, 144 ], [ 143, 145 ], [ 54, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 54, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 54, 156 ], [ 156, 157 ], [ 156, 158 ], [ 54, 159 ], [ 159, 160 ], [ 159, 161 ], [ 54, 162 ], [ 162, 163 ], [ 162, 164 ], [ 54, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 15, 170 ], [ 170, 171 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name=br.readLine();\n\t\tint num;\n\t\tint compare;\n\n\t\tint[] a=new int[2];\n\t\tint i=0;\n\n\t\tint tmp;\n\t\tint x,y;\n\t\twhile(true){\n\n\t\t\ttry{\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }\n\n\t\t\t while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }\n\n\t\t\t System.out.println(y+\" \"+a[0]/y*a[1]);\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\t\t\t\ttmp=0;\n\t\t\t\tname=br.readLine();\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name=br.readLine();\n\t\tint num;\n\t\tint compare;\n\n\t\tint[] a=new int[2];\n\t\tint i=0;\n\n\t\tint tmp;\n\t\tint x,y;\n\t\twhile(true){\n\n\t\t\ttry{\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }\n\n\t\t\t while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }\n\n\t\t\t System.out.println(y+\" \"+a[0]/y*a[1]);\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\t\t\t\ttmp=0;\n\t\t\t\tname=br.readLine();\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name=br.readLine();\n\t\tint num;\n\t\tint compare;\n\n\t\tint[] a=new int[2];\n\t\tint i=0;\n\n\t\tint tmp;\n\t\tint x,y;\n\t\twhile(true){\n\n\t\t\ttry{\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }\n\n\t\t\t while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }\n\n\t\t\t System.out.println(y+\" \"+a[0]/y*a[1]);\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\t\t\t\ttmp=0;\n\t\t\t\tname=br.readLine();\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name=br.readLine();\n\t\tint num;\n\t\tint compare;\n\n\t\tint[] a=new int[2];\n\t\tint i=0;\n\n\t\tint tmp;\n\t\tint x,y;\n\t\twhile(true){\n\n\t\t\ttry{\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }\n\n\t\t\t while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }\n\n\t\t\t System.out.println(y+\" \"+a[0]/y*a[1]);\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\t\t\t\ttmp=0;\n\t\t\t\tname=br.readLine();\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String name=br.readLine();", "name", "br.readLine()", "br.readLine", "br", "int num;", "num", "int compare;", "compare", "int[] a=new int[2];", "a", "new int[2]", "2", "int i=0;", "i", "0", "int tmp;", "tmp", "int x", "x", "y;", "y", "while(true){\n\n\t\t\ttry{\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }\n\n\t\t\t while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }\n\n\t\t\t System.out.println(y+\" \"+a[0]/y*a[1]);\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\t\t\t\ttmp=0;\n\t\t\t\tname=br.readLine();\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\ttry{\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }\n\n\t\t\t while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }\n\n\t\t\t System.out.println(y+\" \"+a[0]/y*a[1]);\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\t\t\t\ttmp=0;\n\t\t\t\tname=br.readLine();\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}", "try{\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }\n\n\t\t\t while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }\n\n\t\t\t System.out.println(y+\" \"+a[0]/y*a[1]);\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\t\t\t\ttmp=0;\n\t\t\t\tname=br.readLine();\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "Exception e", "{\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "System.exit(0)", "System.exit", "System", "0", "{\n\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\n\t\t\t if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }\n\n\t\t\t while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }\n\n\t\t\t System.out.println(y+\" \"+a[0]/y*a[1]);\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\tx=0;\n\t\t\t\ty=0;\n\t\t\t\ttmp=0;\n\t\t\t\tname=br.readLine();\n\t\t\t}", "StringTokenizer st=new StringTokenizer(name,\" \");", "st", "new StringTokenizer(name,\" \")", "while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }", "a[i]=Integer.parseInt(st.nextToken())", "a[i]", "a", "i", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "i++", "i", "i=0", "i", "0", "if (a[0] > a[1]) {\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t } else {\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }", "a[0] > a[1]", "a[0]", "a", "0", "a[1]", "a", "1", "{\n\t\t\t x = a[0];\n\t\t\t y = a[1];\n\t\t\t }", "x = a[0]", "x", "a[0]", "a", "0", "y = a[1]", "y", "a[1]", "a", "1", "{\n\t\t\t x = a[1];\n\t\t\t y = a[0];\n\t\t\t }", "x = a[1]", "x", "a[1]", "a", "1", "y = a[0]", "y", "a[0]", "a", "0", "while((tmp=x%y)!=0){\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }", "(tmp=x%y)!=0", "(tmp=x%y)", "tmp", "x%y", "x", "y", "0", "{\n\t\t\t \t tmp=x%y;\n\t\t\t \t x = y;\n\t\t\t y = tmp;\n\t\t\t }", "tmp=x%y", "tmp", "x%y", "x", "y", "x = y", "x", "y", "y = tmp", "y", "tmp", "System.out.println(y+\" \"+a[0]/y*a[1])", "System.out.println", "System.out", "System", "System.out", "y+\" \"+a[0]/y*a[1]", "y+\" \"+a[0]/y*a[1]", "y", "\" \"", "a[0]/y*a[1]", "a[0]/y", "a[0]", "a", "0", "y", "a[1]", "a", "1", "a[0]=0", "a[0]", "a", "0", "0", "a[1]=0", "a[1]", "a", "1", "0", "x=0", "x", "0", "y=0", "y", "0", "tmp=0", "tmp", "0", "name=br.readLine()", "name", "br.readLine()", "br.readLine", "br", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main{ public static void main(String[] args)throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String name=br.readLine(); int num; int compare; int[] a=new int[2]; int i=0; int tmp; int x,y; while(true){ try{ StringTokenizer st=new StringTokenizer(name," "); while (st.hasMoreTokens()) { a[i]=Integer.parseInt(st.nextToken()); i++; }i=0; if (a[0] > a[1]) { x = a[0]; y = a[1]; } else { x = a[1]; y = a[0]; } while((tmp=x%y)!=0){ tmp=x%y; x = y; y = tmp; } System.out.println(y+" "+a[0]/y*a[1]); a[0]=0; a[1]=0; x=0; y=0; tmp=0; name=br.readLine(); } catch(Exception e){ System.exit(0); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 4, 13, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 33, 36 ], [ 27, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 6, 41 ], [ 41, 42 ], [ 84, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 46, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 43, 63 ], [ 63, 64 ], [ 43, 65 ], [ 65, 66 ], [ 84, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 74, 77 ], [ 71, 78 ], [ 67, 79 ], [ 79, 80 ], [ 67, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n));\n }\n\n }\n public static int gcd(int m, int n) {\n if (m % n == 0) {\n return n;\n } else {\n return gcd(n, m % n);\n }\n }\n\n public static int lcm(int m, int n) {\n return m / gcd(m, n) * n;\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n));\n }\n\n }\n public static int gcd(int m, int n) {\n if (m % n == 0) {\n return n;\n } else {\n return gcd(n, m % n);\n }\n }\n\n public static int lcm(int m, int n) {\n return m / gcd(m, n) * n;\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n));\n }\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n));\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n));\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n int m = sc.nextInt();\n int n = sc.nextInt();\n System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n));\n }", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n))", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "gcd(m, n)", "gcd", "m", "n", "lcm(m, n)", "lcm", "m", "n", "String[] args", "args", "public static int gcd(int m, int n) {\n if (m % n == 0) {\n return n;\n } else {\n return gcd(n, m % n);\n }\n }", "gcd", "{\n if (m % n == 0) {\n return n;\n } else {\n return gcd(n, m % n);\n }\n }", "if (m % n == 0) {\n return n;\n } else {\n return gcd(n, m % n);\n }", "m % n == 0", "m % n", "m", "n", "0", "{\n return n;\n }", "return n;", "n", "{\n return gcd(n, m % n);\n }", "return gcd(n, m % n);", "gcd(n, m % n)", "gcd", "n", "m % n", "m", "n", "int m", "m", "int n", "n", "public static int lcm(int m, int n) {\n return m / gcd(m, n) * n;\n }", "lcm", "{\n return m / gcd(m, n) * n;\n }", "return m / gcd(m, n) * n;", "m / gcd(m, n) * n", "m / gcd(m, n)", "m", "gcd(m, n)", "gcd", "m", "n", "n", "int m", "m", "int n", "n", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n));\n }\n\n }\n public static int gcd(int m, int n) {\n if (m % n == 0) {\n return n;\n } else {\n return gcd(n, m % n);\n }\n }\n\n public static int lcm(int m, int n) {\n return m / gcd(m, n) * n;\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n System.out.printf(\"%d %d\\n\", gcd(m, n), lcm(m, n));\n }\n\n }\n public static int gcd(int m, int n) {\n if (m % n == 0) {\n return n;\n } else {\n return gcd(n, m % n);\n }\n }\n\n public static int lcm(int m, int n) {\n return m / gcd(m, n) * n;\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { int m = sc.nextInt(); int n = sc.nextInt(); System.out.printf("%d %d\n", gcd(m, n), lcm(m, n)); } } public static int gcd(int m, int n) { if (m % n == 0) { return n; } else { return gcd(n, m % n); } } public static int lcm(int m, int n) { return m / gcd(m, n) * n; } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 18, 13, 13, 13, 17, 4, 18, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 91, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 19, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 41, 45 ], [ 40, 46 ], [ 40, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 47, 51 ], [ 9, 52 ], [ 52, 53 ], [ 91, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 54, 70 ], [ 70, 71 ], [ 54, 72 ], [ 72, 73 ], [ 91, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 85 ], [ 74, 86 ], [ 86, 87 ], [ 74, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main (String[] args) {\n\t\tMain values = new Main(); \n\t\tlong a,b;\n\t\twhile (sc.hasNext()){\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tSystem.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b));}\n\t}\n\tpublic long GCF(long a, long b) {\n\t if (b == 0) return a;\n\t else return (GCF (b, a % b));\n\t}\n\tpublic long LCM(long a, long b){\n\t\treturn (a*b)/GCF(a,b);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main (String[] args) {\n\t\tMain values = new Main(); \n\t\tlong a,b;\n\t\twhile (sc.hasNext()){\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tSystem.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b));}\n\t}\n\tpublic long GCF(long a, long b) {\n\t if (b == 0) return a;\n\t else return (GCF (b, a % b));\n\t}\n\tpublic long LCM(long a, long b){\n\t\treturn (a*b)/GCF(a,b);\n\t}\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main (String[] args) {\n\t\tMain values = new Main(); \n\t\tlong a,b;\n\t\twhile (sc.hasNext()){\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tSystem.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b));}\n\t}", "main", "{\n\t\tMain values = new Main(); \n\t\tlong a,b;\n\t\twhile (sc.hasNext()){\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tSystem.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b));}\n\t}", "Main values = new Main();", "values", "new Main()", "long a", "a", "b;", "b", "while (sc.hasNext()){\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tSystem.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b));}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tSystem.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b));}", "a = sc.nextLong()", "a", "sc.nextLong()", "sc.nextLong", "sc", "b = sc.nextLong()", "b", "sc.nextLong()", "sc.nextLong", "sc", "System.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b))", "System.out.println", "System.out", "System", "System.out", "values.GCF(a, b)+\" \"+values.LCM(a, b)", "values.GCF(a, b)+\" \"+values.LCM(a, b)", "values.GCF(a, b)", "values.GCF", "values", "a", "b", "\" \"", "values.LCM(a, b)", "values.LCM", "values", "a", "b", "String[] args", "args", "public long GCF(long a, long b) {\n\t if (b == 0) return a;\n\t else return (GCF (b, a % b));\n\t}", "GCF", "{\n\t if (b == 0) return a;\n\t else return (GCF (b, a % b));\n\t}", "if (b == 0) return a;\n\t else return (GCF (b, a % b));", "b == 0", "b", "0", "return a;", "a", "return (GCF (b, a % b));", "(GCF (b, a % b))", "GCF", "b", "a % b", "a", "b", "long a", "a", "long b", "b", "public long LCM(long a, long b){\n\t\treturn (a*b)/GCF(a,b);\n\t}", "LCM", "{\n\t\treturn (a*b)/GCF(a,b);\n\t}", "return (a*b)/GCF(a,b);", "(a*b)/GCF(a,b)", "(a*b)", "a", "b", "GCF(a,b)", "GCF", "a", "b", "long a", "a", "long b", "b", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main (String[] args) {\n\t\tMain values = new Main(); \n\t\tlong a,b;\n\t\twhile (sc.hasNext()){\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tSystem.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b));}\n\t}\n\tpublic long GCF(long a, long b) {\n\t if (b == 0) return a;\n\t else return (GCF (b, a % b));\n\t}\n\tpublic long LCM(long a, long b){\n\t\treturn (a*b)/GCF(a,b);\n\t}\n}", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main (String[] args) {\n\t\tMain values = new Main(); \n\t\tlong a,b;\n\t\twhile (sc.hasNext()){\n\t\t\ta = sc.nextLong();\n\t\t\tb = sc.nextLong();\n\t\t\tSystem.out.println(values.GCF(a, b)+\" \"+values.LCM(a, b));}\n\t}\n\tpublic long GCF(long a, long b) {\n\t if (b == 0) return a;\n\t else return (GCF (b, a % b));\n\t}\n\tpublic long LCM(long a, long b){\n\t\treturn (a*b)/GCF(a,b);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main (String[] args) { Main values = new Main(); long a,b; while (sc.hasNext()){ a = sc.nextLong(); b = sc.nextLong(); System.out.println(values.GCF(a, b)+" "+values.LCM(a, b));} } public long GCF(long a, long b) { if (b == 0) return a; else return (GCF (b, a % b)); } public long LCM(long a, long b){ return (a*b)/GCF(a,b); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 2, 17, 4, 13, 13, 13, 17, 4, 13, 13, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 4, 13, 13, 2, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 4, 13, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 34, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 36, 39 ], [ 33, 40 ], [ 34, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 6, 45 ], [ 45, 46 ], [ 83, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 51, 61 ], [ 47, 62 ], [ 62, 63 ], [ 47, 64 ], [ 64, 65 ], [ 83, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 73, 76 ], [ 70, 77 ], [ 66, 78 ], [ 78, 79 ], [ 66, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n while(in.hasNext()){\n long a = in.nextLong();\n long b = in.nextLong();\n System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b));\n }\n }\n static long gcd(long a, long b){\n return b!=0 ? gcd(b,a%b) : a;\n }\n static long lcm(long a, long b){\n return a/gcd(a,b)*b;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n while(in.hasNext()){\n long a = in.nextLong();\n long b = in.nextLong();\n System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b));\n }\n }\n static long gcd(long a, long b){\n return b!=0 ? gcd(b,a%b) : a;\n }\n static long lcm(long a, long b){\n return a/gcd(a,b)*b;\n }\n}", "Main", "public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n while(in.hasNext()){\n long a = in.nextLong();\n long b = in.nextLong();\n System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b));\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n while(in.hasNext()){\n long a = in.nextLong();\n long b = in.nextLong();\n System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b));\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(in.hasNext()){\n long a = in.nextLong();\n long b = in.nextLong();\n System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b));\n }", "in.hasNext()", "in.hasNext", "in", "{\n long a = in.nextLong();\n long b = in.nextLong();\n System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b));\n }", "long a = in.nextLong();", "a", "in.nextLong()", "in.nextLong", "in", "long b = in.nextLong();", "b", "in.nextLong()", "in.nextLong", "in", "System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b))", "System.out.println", "System.out", "System", "System.out", "\"\" + gcd(a,b) + \" \" + lcm(a,b)", "\" \"", "\"\" + gcd(a,b) + \" \" + lcm(a,b)", "\"\"", "gcd(a,b)", "gcd", "a", "b", "\" \"", "lcm(a,b)", "lcm", "a", "b", "String args[]", "args", "static long gcd(long a, long b){\n return b!=0 ? gcd(b,a%b) : a;\n }", "gcd", "{\n return b!=0 ? gcd(b,a%b) : a;\n }", "return b!=0 ? gcd(b,a%b) : a;", "b!=0 ? gcd(b,a%b) : a", "b!=0", "b", "0", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "a", "long a", "a", "long b", "b", "static long lcm(long a, long b){\n return a/gcd(a,b)*b;\n }", "lcm", "{\n return a/gcd(a,b)*b;\n }", "return a/gcd(a,b)*b;", "a/gcd(a,b)*b", "a/gcd(a,b)", "a", "gcd(a,b)", "gcd", "a", "b", "b", "long a", "a", "long b", "b", "public class Main {\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n while(in.hasNext()){\n long a = in.nextLong();\n long b = in.nextLong();\n System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b));\n }\n }\n static long gcd(long a, long b){\n return b!=0 ? gcd(b,a%b) : a;\n }\n static long lcm(long a, long b){\n return a/gcd(a,b)*b;\n }\n}", "public class Main {\n public static void main(String args[]){\n Scanner in = new Scanner(System.in);\n while(in.hasNext()){\n long a = in.nextLong();\n long b = in.nextLong();\n System.out.println(\"\" + gcd(a,b) + \" \" + lcm(a,b));\n }\n }\n static long gcd(long a, long b){\n return b!=0 ? gcd(b,a%b) : a;\n }\n static long lcm(long a, long b){\n return a/gcd(a,b)*b;\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner in = new Scanner(System.in); while(in.hasNext()){ long a = in.nextLong(); long b = in.nextLong(); System.out.println("" + gcd(a,b) + " " + lcm(a,b)); } } static long gcd(long a, long b){ return b!=0 ? gcd(b,a%b) : a; } static long lcm(long a, long b){ return a/gcd(a,b)*b; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 4, 13, 13, 13, 30, 0, 13, 4, 13, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 17, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 42, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 24, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 24, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 60, 66 ], [ 60, 67 ], [ 6, 68 ], [ 68, 69 ], [ 93, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 73, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 70, 88 ], [ 88, 89 ], [ 70, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext()){\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}\n\t\t\tl=a*b/g;\n\t\t\tSystem.out.printf(\"%d %d\\n\",g,l);\n\t\t}\n\t}\n\tstatic long gcd(long a,long b){\n\t\tif(b==0){\n\t\t\treturn a;\n\t\t}\n\t\telse{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}\n\t\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext()){\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}\n\t\t\tl=a*b/g;\n\t\t\tSystem.out.printf(\"%d %d\\n\",g,l);\n\t\t}\n\t}\n\tstatic long gcd(long a,long b){\n\t\tif(b==0){\n\t\t\treturn a;\n\t\t}\n\t\telse{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}\n\t\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext()){\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}\n\t\t\tl=a*b/g;\n\t\t\tSystem.out.printf(\"%d %d\\n\",g,l);\n\t\t}\n\t}", "main", "{\n\t\t// TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext()){\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}\n\t\t\tl=a*b/g;\n\t\t\tSystem.out.printf(\"%d %d\\n\",g,l);\n\t\t}\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "long a", "a", "b", "b", "g", "g", "l;", "l", "while(sc.hasNext()){\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}\n\t\t\tl=a*b/g;\n\t\t\tSystem.out.printf(\"%d %d\\n\",g,l);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}\n\t\t\tl=a*b/g;\n\t\t\tSystem.out.printf(\"%d %d\\n\",g,l);\n\t\t}", "a=sc.nextLong()", "a", "sc.nextLong()", "sc.nextLong", "sc", "b=sc.nextLong()", "b", "sc.nextLong()", "sc.nextLong", "sc", "if(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}", "a<b", "a", "b", "{\n\t\t\t\tg=gcd(a,b);\n\t\t\t}", "g=gcd(a,b)", "g", "gcd(a,b)", "gcd", "a", "b", "{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}", "g=gcd(b,a)", "g", "gcd(b,a)", "gcd", "b", "a", "l=a*b/g", "l", "a*b/g", "a*b", "a", "b", "g", "System.out.printf(\"%d %d\\n\",g,l)", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "g", "l", "String[] args", "args", "static long gcd(long a,long b){\n\t\tif(b==0){\n\t\t\treturn a;\n\t\t}\n\t\telse{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}", "gcd", "{\n\t\tif(b==0){\n\t\t\treturn a;\n\t\t}\n\t\telse{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}", "if(b==0){\n\t\t\treturn a;\n\t\t}\n\t\telse{\n\t\t\treturn gcd(b,a%b);\n\t\t}", "b==0", "b", "0", "{\n\t\t\treturn a;\n\t\t}", "return a;", "a", "{\n\t\t\treturn gcd(b,a%b);\n\t\t}", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext()){\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}\n\t\t\tl=a*b/g;\n\t\t\tSystem.out.printf(\"%d %d\\n\",g,l);\n\t\t}\n\t}\n\tstatic long gcd(long a,long b){\n\t\tif(b==0){\n\t\t\treturn a;\n\t\t}\n\t\telse{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}\n\t\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ\n\t\tScanner sc=new Scanner(System.in);\n\t\tlong a,b,g,l;\n\t\twhile(sc.hasNext()){\n\t\t\ta=sc.nextLong();\n\t\t\tb=sc.nextLong();\n\t\t\tif(a<b){\n\t\t\t\tg=gcd(a,b);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tg=gcd(b,a);\n\t\t\t}\n\t\t\tl=a*b/g;\n\t\t\tSystem.out.printf(\"%d %d\\n\",g,l);\n\t\t}\n\t}\n\tstatic long gcd(long a,long b){\n\t\tif(b==0){\n\t\t\treturn a;\n\t\t}\n\t\telse{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}\n\t\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ツ篠ゥツ督ョツ青カツ青ャツつウツづェツつスツδソツッツドツ・ツスツタツブ Scanner sc=new Scanner(System.in); long a,b,g,l; while(sc.hasNext()){ a=sc.nextLong(); b=sc.nextLong(); if(a<b){ g=gcd(a,b); } else{ g=gcd(b,a); } l=a*b/g; System.out.printf("%d %d\n",g,l); } } static long gcd(long a,long b){ if(b==0){ return a; } else{ return gcd(b,a%b); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 87, 11 ], [ 87, 12 ], [ 12, 13 ], [ 87, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 16, 24 ], [ 24, 25 ], [ 16, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 16, 30 ], [ 30, 31 ], [ 16, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 36, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 36, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 36, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 67, 73 ], [ 36, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 80, 80 ], [ 80, 81 ], [ 80, 82 ], [ 80, 83 ], [ 14, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.math.BigInteger;\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tstatic ArrayList<String> allpermutations;\n\tpublic static void main(String[] args){\n\t\tScanner cin = new Scanner(System.in);\n\t\tlong a;\n\t\tlong b;\n\t\tBigInteger aVal;\n\t\tBigInteger bVal;\n\t\tBigInteger gcd;\n\t\tBigInteger lcm;\n\t\twhile(cin.hasNextLong()){\n\t\t\ta = cin.nextLong();\n\t\t\tb = cin.nextLong();\n\t\t\taVal = BigInteger.valueOf(a);\n\t\t\tbVal = BigInteger.valueOf(b);\n\t\t\tgcd = aVal.gcd(bVal);\n\t\t\tlcm = (aVal.multiply(bVal)).divide(gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n}", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tstatic ArrayList<String> allpermutations;\n\tpublic static void main(String[] args){\n\t\tScanner cin = new Scanner(System.in);\n\t\tlong a;\n\t\tlong b;\n\t\tBigInteger aVal;\n\t\tBigInteger bVal;\n\t\tBigInteger gcd;\n\t\tBigInteger lcm;\n\t\twhile(cin.hasNextLong()){\n\t\t\ta = cin.nextLong();\n\t\t\tb = cin.nextLong();\n\t\t\taVal = BigInteger.valueOf(a);\n\t\t\tbVal = BigInteger.valueOf(b);\n\t\t\tgcd = aVal.gcd(bVal);\n\t\t\tlcm = (aVal.multiply(bVal)).divide(gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n}", "Main", "static ArrayList<String> allpermutations;", "allpermutations", "public static void main(String[] args){\n\t\tScanner cin = new Scanner(System.in);\n\t\tlong a;\n\t\tlong b;\n\t\tBigInteger aVal;\n\t\tBigInteger bVal;\n\t\tBigInteger gcd;\n\t\tBigInteger lcm;\n\t\twhile(cin.hasNextLong()){\n\t\t\ta = cin.nextLong();\n\t\t\tb = cin.nextLong();\n\t\t\taVal = BigInteger.valueOf(a);\n\t\t\tbVal = BigInteger.valueOf(b);\n\t\t\tgcd = aVal.gcd(bVal);\n\t\t\tlcm = (aVal.multiply(bVal)).divide(gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}", "main", "{\n\t\tScanner cin = new Scanner(System.in);\n\t\tlong a;\n\t\tlong b;\n\t\tBigInteger aVal;\n\t\tBigInteger bVal;\n\t\tBigInteger gcd;\n\t\tBigInteger lcm;\n\t\twhile(cin.hasNextLong()){\n\t\t\ta = cin.nextLong();\n\t\t\tb = cin.nextLong();\n\t\t\taVal = BigInteger.valueOf(a);\n\t\t\tbVal = BigInteger.valueOf(b);\n\t\t\tgcd = aVal.gcd(bVal);\n\t\t\tlcm = (aVal.multiply(bVal)).divide(gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}", "Scanner cin = new Scanner(System.in);", "cin", "new Scanner(System.in)", "long a;", "a", "long b;", "b", "BigInteger aVal;", "aVal", "BigInteger bVal;", "bVal", "BigInteger gcd;", "gcd", "BigInteger lcm;", "lcm", "while(cin.hasNextLong()){\n\t\t\ta = cin.nextLong();\n\t\t\tb = cin.nextLong();\n\t\t\taVal = BigInteger.valueOf(a);\n\t\t\tbVal = BigInteger.valueOf(b);\n\t\t\tgcd = aVal.gcd(bVal);\n\t\t\tlcm = (aVal.multiply(bVal)).divide(gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}", "cin.hasNextLong()", "cin.hasNextLong", "cin", "{\n\t\t\ta = cin.nextLong();\n\t\t\tb = cin.nextLong();\n\t\t\taVal = BigInteger.valueOf(a);\n\t\t\tbVal = BigInteger.valueOf(b);\n\t\t\tgcd = aVal.gcd(bVal);\n\t\t\tlcm = (aVal.multiply(bVal)).divide(gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}", "a = cin.nextLong()", "a", "cin.nextLong()", "cin.nextLong", "cin", "b = cin.nextLong()", "b", "cin.nextLong()", "cin.nextLong", "cin", "aVal = BigInteger.valueOf(a)", "aVal", "BigInteger.valueOf(a)", "BigInteger.valueOf", "BigInteger", "a", "bVal = BigInteger.valueOf(b)", "bVal", "BigInteger.valueOf(b)", "BigInteger.valueOf", "BigInteger", "b", "gcd = aVal.gcd(bVal)", "gcd", "aVal.gcd(bVal)", "aVal.gcd", "aVal", "bVal", "lcm = (aVal.multiply(bVal)).divide(gcd)", "lcm", "(aVal.multiply(bVal)).divide(gcd)", "(aVal.multiply(bVal)).divide", "(aVal.multiply(bVal))", "aVal.multiply", "aVal", "bVal", "gcd", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "String[] args", "args", "public class Main {\n\tstatic ArrayList<String> allpermutations;\n\tpublic static void main(String[] args){\n\t\tScanner cin = new Scanner(System.in);\n\t\tlong a;\n\t\tlong b;\n\t\tBigInteger aVal;\n\t\tBigInteger bVal;\n\t\tBigInteger gcd;\n\t\tBigInteger lcm;\n\t\twhile(cin.hasNextLong()){\n\t\t\ta = cin.nextLong();\n\t\t\tb = cin.nextLong();\n\t\t\taVal = BigInteger.valueOf(a);\n\t\t\tbVal = BigInteger.valueOf(b);\n\t\t\tgcd = aVal.gcd(bVal);\n\t\t\tlcm = (aVal.multiply(bVal)).divide(gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n}", "public class Main {\n\tstatic ArrayList<String> allpermutations;\n\tpublic static void main(String[] args){\n\t\tScanner cin = new Scanner(System.in);\n\t\tlong a;\n\t\tlong b;\n\t\tBigInteger aVal;\n\t\tBigInteger bVal;\n\t\tBigInteger gcd;\n\t\tBigInteger lcm;\n\t\twhile(cin.hasNextLong()){\n\t\t\ta = cin.nextLong();\n\t\t\tb = cin.nextLong();\n\t\t\taVal = BigInteger.valueOf(a);\n\t\t\tbVal = BigInteger.valueOf(b);\n\t\t\tgcd = aVal.gcd(bVal);\n\t\t\tlcm = (aVal.multiply(bVal)).divide(gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n}", "Main" ]
import java.math.BigInteger; import java.util.ArrayList; import java.util.Scanner; public class Main { static ArrayList<String> allpermutations; public static void main(String[] args){ Scanner cin = new Scanner(System.in); long a; long b; BigInteger aVal; BigInteger bVal; BigInteger gcd; BigInteger lcm; while(cin.hasNextLong()){ a = cin.nextLong(); b = cin.nextLong(); aVal = BigInteger.valueOf(a); bVal = BigInteger.valueOf(b); gcd = aVal.gcd(bVal); lcm = (aVal.multiply(bVal)).divide(gcd); System.out.println(gcd + " " + lcm); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 16, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 31, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 31, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 6, 45 ], [ 45, 46 ], [ 84, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 50, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 47, 63 ], [ 63, 64 ], [ 47, 65 ], [ 65, 66 ], [ 84, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 75, 78 ], [ 67, 79 ], [ 79, 80 ], [ 67, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tlong a,b;\n\twhile(stdIn.hasNextInt()){\n\t a = stdIn.nextInt();\n\t b = stdIn.nextInt();\n\t System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b));\n\t}\n }\n public static long GCD(long a,long b){\n\tif(b == 0) return a;\n\telse return GCD(b , a % b);\n }\n public static long LCM(long a,long b){\n\treturn a*b / GCD(a , b);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tlong a,b;\n\twhile(stdIn.hasNextInt()){\n\t a = stdIn.nextInt();\n\t b = stdIn.nextInt();\n\t System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b));\n\t}\n }\n public static long GCD(long a,long b){\n\tif(b == 0) return a;\n\telse return GCD(b , a % b);\n }\n public static long LCM(long a,long b){\n\treturn a*b / GCD(a , b);\n }\n}", "Main", "public static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tlong a,b;\n\twhile(stdIn.hasNextInt()){\n\t a = stdIn.nextInt();\n\t b = stdIn.nextInt();\n\t System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b));\n\t}\n }", "main", "{\n\tScanner stdIn = new Scanner(System.in);\n\tlong a,b;\n\twhile(stdIn.hasNextInt()){\n\t a = stdIn.nextInt();\n\t b = stdIn.nextInt();\n\t System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b));\n\t}\n }", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "long a", "a", "b;", "b", "while(stdIn.hasNextInt()){\n\t a = stdIn.nextInt();\n\t b = stdIn.nextInt();\n\t System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b));\n\t}", "stdIn.hasNextInt()", "stdIn.hasNextInt", "stdIn", "{\n\t a = stdIn.nextInt();\n\t b = stdIn.nextInt();\n\t System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b));\n\t}", "a = stdIn.nextInt()", "a", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "b = stdIn.nextInt()", "b", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b))", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "GCD(a , b)", "GCD", "a", "b", "LCM(a , b)", "LCM", "a", "b", "String[] args", "args", "public static long GCD(long a,long b){\n\tif(b == 0) return a;\n\telse return GCD(b , a % b);\n }", "GCD", "{\n\tif(b == 0) return a;\n\telse return GCD(b , a % b);\n }", "if(b == 0) return a;\n\telse return GCD(b , a % b);", "b == 0", "b", "0", "return a;", "a", "return GCD(b , a % b);", "GCD(b , a % b)", "GCD", "b", "a % b", "a", "b", "long a", "a", "long b", "b", "public static long LCM(long a,long b){\n\treturn a*b / GCD(a , b);\n }", "LCM", "{\n\treturn a*b / GCD(a , b);\n }", "return a*b / GCD(a , b);", "a*b / GCD(a , b)", "a*b", "a", "b", "GCD(a , b)", "GCD", "a", "b", "long a", "a", "long b", "b", "public class Main{\n public static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tlong a,b;\n\twhile(stdIn.hasNextInt()){\n\t a = stdIn.nextInt();\n\t b = stdIn.nextInt();\n\t System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b));\n\t}\n }\n public static long GCD(long a,long b){\n\tif(b == 0) return a;\n\telse return GCD(b , a % b);\n }\n public static long LCM(long a,long b){\n\treturn a*b / GCD(a , b);\n }\n}", "public class Main{\n public static void main(String[] args){\n\tScanner stdIn = new Scanner(System.in);\n\tlong a,b;\n\twhile(stdIn.hasNextInt()){\n\t a = stdIn.nextInt();\n\t b = stdIn.nextInt();\n\t System.out.printf(\"%d %d\\n\",GCD(a , b),LCM(a , b));\n\t}\n }\n public static long GCD(long a,long b){\n\tif(b == 0) return a;\n\telse return GCD(b , a % b);\n }\n public static long LCM(long a,long b){\n\treturn a*b / GCD(a , b);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner stdIn = new Scanner(System.in); long a,b; while(stdIn.hasNextInt()){ a = stdIn.nextInt(); b = stdIn.nextInt(); System.out.printf("%d %d\n",GCD(a , b),LCM(a , b)); } } public static long GCD(long a,long b){ if(b == 0) return a; else return GCD(b , a % b); } public static long LCM(long a,long b){ return a*b / GCD(a , b); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 38, 5, 13, 30, 3, 30, 0, 13, 20, 0, 13, 20, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 13, 4, 18, 4, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 25, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 24, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 24, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 43, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 50, 56 ], [ 12, 57 ], [ 57, 58 ] ]
[ "import java.util.*;\nimport java.lang.Math;\nimport java.math.BigInteger;\n\nclass Main {\n public static void main (String [] args) {\n\n Scanner sc = new Scanner(System.in);\n\n BigInteger a, b;\n\n while (true) {\n try {\n a = new BigInteger(sc.next());\n b = new BigInteger(sc.next());\n } catch (NoSuchElementException e) {\n break;\n }\n\n BigInteger g = a.gcd(b);\n System.out.printf(\"%d %d\\n\", g, a.divide(g).multiply(b)); \n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.Math;", "Math", "java.lang", "import java.math.BigInteger;", "BigInteger", "java.math", "class Main {\n public static void main (String [] args) {\n\n Scanner sc = new Scanner(System.in);\n\n BigInteger a, b;\n\n while (true) {\n try {\n a = new BigInteger(sc.next());\n b = new BigInteger(sc.next());\n } catch (NoSuchElementException e) {\n break;\n }\n\n BigInteger g = a.gcd(b);\n System.out.printf(\"%d %d\\n\", g, a.divide(g).multiply(b)); \n }\n }\n}", "Main", "public static void main (String [] args) {\n\n Scanner sc = new Scanner(System.in);\n\n BigInteger a, b;\n\n while (true) {\n try {\n a = new BigInteger(sc.next());\n b = new BigInteger(sc.next());\n } catch (NoSuchElementException e) {\n break;\n }\n\n BigInteger g = a.gcd(b);\n System.out.printf(\"%d %d\\n\", g, a.divide(g).multiply(b)); \n }\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n BigInteger a, b;\n\n while (true) {\n try {\n a = new BigInteger(sc.next());\n b = new BigInteger(sc.next());\n } catch (NoSuchElementException e) {\n break;\n }\n\n BigInteger g = a.gcd(b);\n System.out.printf(\"%d %d\\n\", g, a.divide(g).multiply(b)); \n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "BigInteger a", "a", "b;", "b", "while (true) {\n try {\n a = new BigInteger(sc.next());\n b = new BigInteger(sc.next());\n } catch (NoSuchElementException e) {\n break;\n }\n\n BigInteger g = a.gcd(b);\n System.out.printf(\"%d %d\\n\", g, a.divide(g).multiply(b)); \n }", "true", "{\n try {\n a = new BigInteger(sc.next());\n b = new BigInteger(sc.next());\n } catch (NoSuchElementException e) {\n break;\n }\n\n BigInteger g = a.gcd(b);\n System.out.printf(\"%d %d\\n\", g, a.divide(g).multiply(b)); \n }", "try {\n a = new BigInteger(sc.next());\n b = new BigInteger(sc.next());\n } catch (NoSuchElementException e) {\n break;\n }", "catch (NoSuchElementException e) {\n break;\n }", "NoSuchElementException e", "{\n break;\n }", "break;", "{\n a = new BigInteger(sc.next());\n b = new BigInteger(sc.next());\n }", "a = new BigInteger(sc.next())", "a", "new BigInteger(sc.next())", "b = new BigInteger(sc.next())", "b", "new BigInteger(sc.next())", "BigInteger g = a.gcd(b);", "g", "a.gcd(b)", "a.gcd", "a", "b", "System.out.printf(\"%d %d\\n\", g, a.divide(g).multiply(b))", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "g", "a.divide(g).multiply(b)", "a.divide(g).multiply", "a.divide(g)", "a.divide", "a", "g", "b", "String [] args", "args" ]
import java.util.*; import java.lang.Math; import java.math.BigInteger; class Main { public static void main (String [] args) { Scanner sc = new Scanner(System.in); BigInteger a, b; while (true) { try { a = new BigInteger(sc.next()); b = new BigInteger(sc.next()); } catch (NoSuchElementException e) { break; } BigInteger g = a.gcd(b); System.out.printf("%d %d\n", g, a.divide(g).multiply(b)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 13, 41, 13, 13, 42, 2, 2, 13, 13, 17, 30, 41, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 41, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 14, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 22, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 22, 45 ], [ 45, 46 ], [ 45, 47 ], [ 22, 48 ], [ 48, 49 ], [ 48, 50 ], [ 22, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 57, 66 ], [ 66, 67 ], [ 66, 68 ], [ 22, 69 ], [ 69, 70 ], [ 69, 71 ], [ 22, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 22, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 85, 85 ], [ 85, 86 ], [ 85, 87 ], [ 85, 88 ], [ 6, 89 ], [ 89, 90 ] ]
[ "import java.io.*;\n\nclass Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n while((str= br.readLine()) != null){\n\n //????¨??????\\??????????????????int????????????\n String[] str2 = str.split(\" \");\n int a = Integer.parseInt(str2[0]);\n int b = Integer.parseInt(str2[1]);\n int a2 = a;\n int b2 = b;\n\n //???????????????????????????????????§gcd????±???????\n while(a2 % b2 != 0){\n int tmp = b2;\n b2 = a2 % b2;\n a2 = tmp;\n }\n int gcd = b2;\n\n // \"gcd(a,b) x lcm(a,b) = ab\" ?????¬???????????£???????°???¬?????°????±??????? \n long lcm = (long) a*b / gcd;\n\n System.out.println(gcd +\" \"+ lcm);\n\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n while((str= br.readLine()) != null){\n\n //????¨??????\\??????????????????int????????????\n String[] str2 = str.split(\" \");\n int a = Integer.parseInt(str2[0]);\n int b = Integer.parseInt(str2[1]);\n int a2 = a;\n int b2 = b;\n\n //???????????????????????????????????§gcd????±???????\n while(a2 % b2 != 0){\n int tmp = b2;\n b2 = a2 % b2;\n a2 = tmp;\n }\n int gcd = b2;\n\n // \"gcd(a,b) x lcm(a,b) = ab\" ?????¬???????????£???????°???¬?????°????±??????? \n long lcm = (long) a*b / gcd;\n\n System.out.println(gcd +\" \"+ lcm);\n\n }\n }\n}", "Main", "public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n while((str= br.readLine()) != null){\n\n //????¨??????\\??????????????????int????????????\n String[] str2 = str.split(\" \");\n int a = Integer.parseInt(str2[0]);\n int b = Integer.parseInt(str2[1]);\n int a2 = a;\n int b2 = b;\n\n //???????????????????????????????????§gcd????±???????\n while(a2 % b2 != 0){\n int tmp = b2;\n b2 = a2 % b2;\n a2 = tmp;\n }\n int gcd = b2;\n\n // \"gcd(a,b) x lcm(a,b) = ab\" ?????¬???????????£???????°???¬?????°????±??????? \n long lcm = (long) a*b / gcd;\n\n System.out.println(gcd +\" \"+ lcm);\n\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n\n while((str= br.readLine()) != null){\n\n //????¨??????\\??????????????????int????????????\n String[] str2 = str.split(\" \");\n int a = Integer.parseInt(str2[0]);\n int b = Integer.parseInt(str2[1]);\n int a2 = a;\n int b2 = b;\n\n //???????????????????????????????????§gcd????±???????\n while(a2 % b2 != 0){\n int tmp = b2;\n b2 = a2 % b2;\n a2 = tmp;\n }\n int gcd = b2;\n\n // \"gcd(a,b) x lcm(a,b) = ab\" ?????¬???????????£???????°???¬?????°????±??????? \n long lcm = (long) a*b / gcd;\n\n System.out.println(gcd +\" \"+ lcm);\n\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "while((str= br.readLine()) != null){\n\n //????¨??????\\??????????????????int????????????\n String[] str2 = str.split(\" \");\n int a = Integer.parseInt(str2[0]);\n int b = Integer.parseInt(str2[1]);\n int a2 = a;\n int b2 = b;\n\n //???????????????????????????????????§gcd????±???????\n while(a2 % b2 != 0){\n int tmp = b2;\n b2 = a2 % b2;\n a2 = tmp;\n }\n int gcd = b2;\n\n // \"gcd(a,b) x lcm(a,b) = ab\" ?????¬???????????£???????°???¬?????°????±??????? \n long lcm = (long) a*b / gcd;\n\n System.out.println(gcd +\" \"+ lcm);\n\n }", "(str= br.readLine()) != null", "(str= br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n\n //????¨??????\\??????????????????int????????????\n String[] str2 = str.split(\" \");\n int a = Integer.parseInt(str2[0]);\n int b = Integer.parseInt(str2[1]);\n int a2 = a;\n int b2 = b;\n\n //???????????????????????????????????§gcd????±???????\n while(a2 % b2 != 0){\n int tmp = b2;\n b2 = a2 % b2;\n a2 = tmp;\n }\n int gcd = b2;\n\n // \"gcd(a,b) x lcm(a,b) = ab\" ?????¬???????????£???????°???¬?????°????±??????? \n long lcm = (long) a*b / gcd;\n\n System.out.println(gcd +\" \"+ lcm);\n\n }", "String[] str2 = str.split(\" \");", "str2", "str.split(\" \")", "str.split", "str", "\" \"", "int a = Integer.parseInt(str2[0]);", "a", "Integer.parseInt(str2[0])", "Integer.parseInt", "Integer", "str2[0]", "str2", "0", "int b = Integer.parseInt(str2[1]);", "b", "Integer.parseInt(str2[1])", "Integer.parseInt", "Integer", "str2[1]", "str2", "1", "int a2 = a;", "a2", "a", "int b2 = b;", "b2", "b", "while(a2 % b2 != 0){\n int tmp = b2;\n b2 = a2 % b2;\n a2 = tmp;\n }", "a2 % b2 != 0", "a2 % b2", "a2", "b2", "0", "{\n int tmp = b2;\n b2 = a2 % b2;\n a2 = tmp;\n }", "int tmp = b2;", "tmp", "b2", "b2 = a2 % b2", "b2", "a2 % b2", "a2", "b2", "a2 = tmp", "a2", "tmp", "int gcd = b2;", "gcd", "b2", "long lcm = (long) a*b / gcd;", "lcm", "(long) a*b / gcd", "(long) a*b", "(long) a", "b", "gcd", "System.out.println(gcd +\" \"+ lcm)", "System.out.println", "System.out", "System", "System.out", "gcd +\" \"+ lcm", "gcd +\" \"+ lcm", "gcd", "\" \"", "lcm", "String[]args", "args" ]
import java.io.*; class Main{ public static void main(String[]args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; while((str= br.readLine()) != null){ //????¨??????\??????????????????int???????????? String[] str2 = str.split(" "); int a = Integer.parseInt(str2[0]); int b = Integer.parseInt(str2[1]); int a2 = a; int b2 = b; //???????????????????????????????????§gcd????±??????? while(a2 % b2 != 0){ int tmp = b2; b2 = a2 % b2; a2 = tmp; } int gcd = b2; // "gcd(a,b) x lcm(a,b) = ab" ?????¬???????????£???????°???¬?????°????±??????? long lcm = (long) a*b / gcd; System.out.println(gcd +" "+ lcm); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 0, 13, 4, 18, 13, 0, 13, 0, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 11, 1, 30, 30, 14, 2, 13, 17, 3, 0, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 92, 5 ], [ 92, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 26, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 26, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 45, 52 ], [ 52, 53 ], [ 52, 54 ], [ 26, 55 ], [ 55, 56 ], [ 55, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 58, 64 ], [ 64, 65 ], [ 64, 66 ], [ 58, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 58, 72 ], [ 72, 73 ], [ 72, 74 ], [ 26, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 81, 81 ], [ 81, 82 ], [ 81, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong a, b, m, n,tmp;\n\n\t\twhile(scanner.hasNext()){\n\t\t\ta = m = scanner.nextInt();\n\t\t\tb = n = scanner.nextInt();\n\t\t\tif(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}\n\n\t\t\tfor(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}\n\n\t\t\tSystem.out.println(m +\" \" + a * b / m);\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong a, b, m, n,tmp;\n\n\t\twhile(scanner.hasNext()){\n\t\t\ta = m = scanner.nextInt();\n\t\t\tb = n = scanner.nextInt();\n\t\t\tif(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}\n\n\t\t\tfor(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}\n\n\t\t\tSystem.out.println(m +\" \" + a * b / m);\n\n\t\t}\n\t}\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong a, b, m, n,tmp;\n\n\t\twhile(scanner.hasNext()){\n\t\t\ta = m = scanner.nextInt();\n\t\t\tb = n = scanner.nextInt();\n\t\t\tif(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}\n\n\t\t\tfor(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}\n\n\t\t\tSystem.out.println(m +\" \" + a * b / m);\n\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong a, b, m, n,tmp;\n\n\t\twhile(scanner.hasNext()){\n\t\t\ta = m = scanner.nextInt();\n\t\t\tb = n = scanner.nextInt();\n\t\t\tif(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}\n\n\t\t\tfor(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}\n\n\t\t\tSystem.out.println(m +\" \" + a * b / m);\n\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "long a", "a", "b", "b", "m", "m", "n", "n", "tmp;", "tmp", "while(scanner.hasNext()){\n\t\t\ta = m = scanner.nextInt();\n\t\t\tb = n = scanner.nextInt();\n\t\t\tif(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}\n\n\t\t\tfor(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}\n\n\t\t\tSystem.out.println(m +\" \" + a * b / m);\n\n\t\t}", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n\t\t\ta = m = scanner.nextInt();\n\t\t\tb = n = scanner.nextInt();\n\t\t\tif(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}\n\n\t\t\tfor(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}\n\n\t\t\tSystem.out.println(m +\" \" + a * b / m);\n\n\t\t}", "a = m = scanner.nextInt()", "a", "m = scanner.nextInt()", "m", "scanner.nextInt()", "scanner.nextInt", "scanner", "b = n = scanner.nextInt()", "b", "n = scanner.nextInt()", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "if(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}", "m < n", "m", "n", "{\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}", "tmp = m", "tmp", "m", "m = n", "m", "n", "n = tmp", "n", "tmp", "for(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}", ";", "{\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}", "{\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}", "if(n == 0) break;", "n == 0", "n", "0", "break;", "tmp = n", "tmp", "n", "n = m % n", "n", "m % n", "m", "n", "m = tmp", "m", "tmp", "System.out.println(m +\" \" + a * b / m)", "System.out.println", "System.out", "System", "System.out", "m +\" \" + a * b / m", "m +\" \" + a * b / m", "m", "\" \"", "a * b / m", "a * b", "a", "b", "m", "String[] args", "args", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong a, b, m, n,tmp;\n\n\t\twhile(scanner.hasNext()){\n\t\t\ta = m = scanner.nextInt();\n\t\t\tb = n = scanner.nextInt();\n\t\t\tif(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}\n\n\t\t\tfor(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}\n\n\t\t\tSystem.out.println(m +\" \" + a * b / m);\n\n\t\t}\n\t}\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tlong a, b, m, n,tmp;\n\n\t\twhile(scanner.hasNext()){\n\t\t\ta = m = scanner.nextInt();\n\t\t\tb = n = scanner.nextInt();\n\t\t\tif(m < n){\n\t\t\t\ttmp = m;\n\t\t\t\tm = n;\n\t\t\t\tn = tmp;\n\t\t\t}\n\n\t\t\tfor(;;){\n\t\t\t\tif(n == 0) break;\n\n\t\t\t\ttmp = n;\n\t\t\t\tn = m % n;\n\t\t\t\tm = tmp;\n\t\t\t}\n\n\t\t\tSystem.out.println(m +\" \" + a * b / m);\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scanner = new Scanner(System.in); long a, b, m, n,tmp; while(scanner.hasNext()){ a = m = scanner.nextInt(); b = n = scanner.nextInt(); if(m < n){ tmp = m; m = n; n = tmp; } for(;;){ if(n == 0) break; tmp = n; n = m % n; m = tmp; } System.out.println(m +" " + a * b / m); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 42, 17, 30, 14, 2, 13, 17, 3, 0, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 17, 13, 2, 2, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 11, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 40, 42 ], [ 29, 43 ], [ 43, 44 ], [ 43, 45 ], [ 29, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 50, 57 ], [ 57, 58 ], [ 57, 59 ], [ 29, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 62, 68 ], [ 68, 69 ], [ 68, 70 ], [ 62, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 62, 76 ], [ 76, 77 ], [ 76, 78 ], [ 29, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 79, 85 ], [ 79, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 9, 91 ], [ 91, 92 ] ]
[ "import java.util.Scanner;\nimport java.util.Date;\n\nclass Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\tint a,b,c,m,n;\n\twhile(sc.hasNext()){\n\t a=sc.nextInt();\n\t b=sc.nextInt();\n\t m=a;n=b;\n\t if(m<n)\n\t\t{\n\t\t c=n;\n\t\t n=m;\n\t\t m=c;\n\t\t}\n\t while(true)\n\t\t{\n\t\t if(n==0)break;\n\t\t c=n;\n\t\t n=m%n;\n\t\t m=c;\n\t\t}\n\t System.out.printf(\"%d %d\\n\",m,a/m*b);\n\t}\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Date;", "Date", "java.util", "class Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\tint a,b,c,m,n;\n\twhile(sc.hasNext()){\n\t a=sc.nextInt();\n\t b=sc.nextInt();\n\t m=a;n=b;\n\t if(m<n)\n\t\t{\n\t\t c=n;\n\t\t n=m;\n\t\t m=c;\n\t\t}\n\t while(true)\n\t\t{\n\t\t if(n==0)break;\n\t\t c=n;\n\t\t n=m%n;\n\t\t m=c;\n\t\t}\n\t System.out.printf(\"%d %d\\n\",m,a/m*b);\n\t}\n }\n}", "Main", "public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\tint a,b,c,m,n;\n\twhile(sc.hasNext()){\n\t a=sc.nextInt();\n\t b=sc.nextInt();\n\t m=a;n=b;\n\t if(m<n)\n\t\t{\n\t\t c=n;\n\t\t n=m;\n\t\t m=c;\n\t\t}\n\t while(true)\n\t\t{\n\t\t if(n==0)break;\n\t\t c=n;\n\t\t n=m%n;\n\t\t m=c;\n\t\t}\n\t System.out.printf(\"%d %d\\n\",m,a/m*b);\n\t}\n }", "main", "{\n\tScanner sc = new Scanner(System.in);\n\tint a,b,c,m,n;\n\twhile(sc.hasNext()){\n\t a=sc.nextInt();\n\t b=sc.nextInt();\n\t m=a;n=b;\n\t if(m<n)\n\t\t{\n\t\t c=n;\n\t\t n=m;\n\t\t m=c;\n\t\t}\n\t while(true)\n\t\t{\n\t\t if(n==0)break;\n\t\t c=n;\n\t\t n=m%n;\n\t\t m=c;\n\t\t}\n\t System.out.printf(\"%d %d\\n\",m,a/m*b);\n\t}\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a", "a", "b", "b", "c", "c", "m", "m", "n;", "n", "while(sc.hasNext()){\n\t a=sc.nextInt();\n\t b=sc.nextInt();\n\t m=a;n=b;\n\t if(m<n)\n\t\t{\n\t\t c=n;\n\t\t n=m;\n\t\t m=c;\n\t\t}\n\t while(true)\n\t\t{\n\t\t if(n==0)break;\n\t\t c=n;\n\t\t n=m%n;\n\t\t m=c;\n\t\t}\n\t System.out.printf(\"%d %d\\n\",m,a/m*b);\n\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t a=sc.nextInt();\n\t b=sc.nextInt();\n\t m=a;n=b;\n\t if(m<n)\n\t\t{\n\t\t c=n;\n\t\t n=m;\n\t\t m=c;\n\t\t}\n\t while(true)\n\t\t{\n\t\t if(n==0)break;\n\t\t c=n;\n\t\t n=m%n;\n\t\t m=c;\n\t\t}\n\t System.out.printf(\"%d %d\\n\",m,a/m*b);\n\t}", "a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b=sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "m=a", "m", "a", "n=b", "n", "b", "if(m<n)\n\t\t{\n\t\t c=n;\n\t\t n=m;\n\t\t m=c;\n\t\t}", "m<n", "m", "n", "{\n\t\t c=n;\n\t\t n=m;\n\t\t m=c;\n\t\t}", "c=n", "c", "n", "n=m", "n", "m", "m=c", "m", "c", "while(true)\n\t\t{\n\t\t if(n==0)break;\n\t\t c=n;\n\t\t n=m%n;\n\t\t m=c;\n\t\t}", "true", "{\n\t\t if(n==0)break;\n\t\t c=n;\n\t\t n=m%n;\n\t\t m=c;\n\t\t}", "if(n==0)break;", "n==0", "n", "0", "break;", "c=n", "c", "n", "n=m%n", "n", "m%n", "m", "n", "m=c", "m", "c", "System.out.printf(\"%d %d\\n\",m,a/m*b)", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "m", "a/m*b", "a/m", "a", "m", "b", "String[] args", "args" ]
import java.util.Scanner; import java.util.Date; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a,b,c,m,n; while(sc.hasNext()){ a=sc.nextInt(); b=sc.nextInt(); m=a;n=b; if(m<n) { c=n; n=m; m=c; } while(true) { if(n==0)break; c=n; n=m%n; m=c; } System.out.printf("%d %d\n",m,a/m*b); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 18, 13, 17, 18, 13, 17, 17, 4, 13, 18, 13, 17, 18, 13, 17, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 118, 5 ], [ 118, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 19, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 28, 29 ], [ 28, 30 ], [ 16, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 16, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 62, 71 ], [ 62, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 6, 80 ], [ 80, 81 ], [ 118, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 82, 97 ], [ 97, 98 ], [ 82, 99 ], [ 99, 100 ], [ 118, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 109, 112 ], [ 101, 113 ], [ 113, 114 ], [ 101, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(sc.hasNextLine()){\n\t\t\t//double preX,preY;\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tlong[] data = new long[s.length];\n\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]));\n\t\t\t\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a,long b){\n\t\treturn b==0 ? a : gcd(b,a%b);\n\t}\n\t\n\tpublic static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(sc.hasNextLine()){\n\t\t\t//double preX,preY;\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tlong[] data = new long[s.length];\n\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]));\n\t\t\t\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a,long b){\n\t\treturn b==0 ? a : gcd(b,a%b);\n\t}\n\t\n\tpublic static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}\n}", "Main", "@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(sc.hasNextLine()){\n\t\t\t//double preX,preY;\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tlong[] data = new long[s.length];\n\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]));\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(sc.hasNextLine()){\n\t\t\t//double preX,preY;\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tlong[] data = new long[s.length];\n\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]));\n\t\t\t\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNextLine()){\n\t\t\t//double preX,preY;\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tlong[] data = new long[s.length];\n\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]));\n\t\t\t\n\t\t}", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n\t\t\t//double preX,preY;\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tlong[] data = new long[s.length];\n\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]));\n\t\t\t\n\t\t}", "String[] s = sc.nextLine().split(\"[\\\\s]+\");", "s", "sc.nextLine().split(\"[\\\\s]+\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"[\\\\s]+\"", "long[] data = new long[s.length];", "data", "new long[s.length]", "s.length", "s", "s.length", "for(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}", "{\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}", "data[i] = Long.parseLong(s[i])", "data[i]", "data", "i", "Long.parseLong(s[i])", "Long.parseLong", "Long", "s[i]", "s", "i", "System.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]))", "System.out.println", "System.out", "System", "System.out", "gcd(data[0],data[1])+\" \"+lcm(data[0],data[1])", "gcd(data[0],data[1])+\" \"+lcm(data[0],data[1])", "gcd(data[0],data[1])", "gcd", "data[0]", "data", "0", "data[1]", "data", "1", "\" \"", "lcm(data[0],data[1])", "lcm", "data[0]", "data", "0", "data[1]", "data", "1", "String[] args", "args", "public static long gcd(long a,long b){\n\t\treturn b==0 ? a : gcd(b,a%b);\n\t}", "gcd", "{\n\t\treturn b==0 ? a : gcd(b,a%b);\n\t}", "return b==0 ? a : gcd(b,a%b);", "b==0 ? a : gcd(b,a%b)", "b==0", "b", "0", "a", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "public static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}", "lcm", "{\n\t\treturn a*b / gcd(a,b);\n\t}", "return a*b / gcd(a,b);", "a*b / gcd(a,b)", "a*b", "a", "b", "gcd(a,b)", "gcd", "a", "b", "long a", "a", "long b", "b", "public class Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(sc.hasNextLine()){\n\t\t\t//double preX,preY;\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tlong[] data = new long[s.length];\n\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]));\n\t\t\t\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a,long b){\n\t\treturn b==0 ? a : gcd(b,a%b);\n\t}\n\t\n\tpublic static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}\n}", "public class Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(sc.hasNextLine()){\n\t\t\t//double preX,preY;\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\t\t\tlong[] data = new long[s.length];\n\t\t\tfor(int i=0;i<s.length;i++){\n\t\t\t\tdata[i] = Long.parseLong(s[i]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(gcd(data[0],data[1])+\" \"+lcm(data[0],data[1]));\n\t\t\t\n\t\t}\n\t}\n\t\n\tpublic static long gcd(long a,long b){\n\t\treturn b==0 ? a : gcd(b,a%b);\n\t}\n\t\n\tpublic static long lcm(long a,long b){\n\t\treturn a*b / gcd(a,b);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { @SuppressWarnings("resource") public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNextLine()){ //double preX,preY; String[] s = sc.nextLine().split("[\\s]+"); long[] data = new long[s.length]; for(int i=0;i<s.length;i++){ data[i] = Long.parseLong(s[i]); } System.out.println(gcd(data[0],data[1])+" "+lcm(data[0],data[1])); } } public static long gcd(long a,long b){ return b==0 ? a : gcd(b,a%b); } public static long lcm(long a,long b){ return a*b / gcd(a,b); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 13, 30, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 29, 13, 29, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 125, 11 ], [ 125, 12 ], [ 12, 13 ], [ 12, 14 ], [ 125, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 24, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 24, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 52, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 52, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 52, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 77, 80 ], [ 52, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 52, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 94, 94 ], [ 94, 95 ], [ 94, 96 ], [ 94, 97 ], [ 15, 98 ], [ 98, 99 ], [ 125, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 113, 114 ], [ 102, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 116, 119 ], [ 100, 120 ], [ 120, 121 ], [ 100, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n private static final String blank = \" \";\n\n public static void main(String[] args) {\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n String input = null;\n\n try {\n while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n private static int resolveGcd(int num1, int num2) {\n\n int result = num1 % num2;\n\n if (result == 0) {\n return num2;\n }\n\n return resolveGcd(num2, result);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n private static final String blank = \" \";\n\n public static void main(String[] args) {\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n String input = null;\n\n try {\n while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n private static int resolveGcd(int num1, int num2) {\n\n int result = num1 % num2;\n\n if (result == 0) {\n return num2;\n }\n\n return resolveGcd(num2, result);\n }\n}", "Main", "private static final String blank = \" \";", "blank", "\" \"", "public static void main(String[] args) {\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n String input = null;\n\n try {\n while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "main", "{\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n String input = null;\n\n try {\n while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String input = null;", "input", "null", "try {\n while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n in.close();\n }", "in.close()", "in.close", "in", "{\n while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }\n }", "while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }", "(input = in.readLine()) != null", "(input = in.readLine())", "input", "in.readLine()", "in.readLine", "in", "null", "{\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }", "String[] problemData = input.split(blank);", "problemData", "input.split(blank)", "input.split", "input", "blank", "int num1 = Integer.valueOf(problemData[0]);", "num1", "Integer.valueOf(problemData[0])", "Integer.valueOf", "Integer", "problemData[0]", "problemData", "0", "int num2 = Integer.valueOf(problemData[1]);", "num2", "Integer.valueOf(problemData[1])", "Integer.valueOf", "Integer", "problemData[1]", "problemData", "1", "int gcd = resolveGcd(num1, num2);", "gcd", "resolveGcd(num1, num2)", "resolveGcd", "num1", "num2", "long lcm = (long) (num1 / gcd * num2);", "lcm", "(long) (num1 / gcd * num2)", "num1 / gcd", "num1", "gcd", "num2", "System.out.println(gcd + blank + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + blank + lcm", "gcd + blank + lcm", "gcd", "blank", "lcm", "String[] args", "args", "private static int resolveGcd(int num1, int num2) {\n\n int result = num1 % num2;\n\n if (result == 0) {\n return num2;\n }\n\n return resolveGcd(num2, result);\n }", "resolveGcd", "{\n\n int result = num1 % num2;\n\n if (result == 0) {\n return num2;\n }\n\n return resolveGcd(num2, result);\n }", "int result = num1 % num2;", "result", "num1 % num2", "num1", "num2", "if (result == 0) {\n return num2;\n }", "result == 0", "result", "0", "{\n return num2;\n }", "return num2;", "num2", "return resolveGcd(num2, result);", "resolveGcd(num2, result)", "resolveGcd", "num2", "result", "int num1", "num1", "int num2", "num2", "public class Main {\n\n private static final String blank = \" \";\n\n public static void main(String[] args) {\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n String input = null;\n\n try {\n while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n private static int resolveGcd(int num1, int num2) {\n\n int result = num1 % num2;\n\n if (result == 0) {\n return num2;\n }\n\n return resolveGcd(num2, result);\n }\n}", "public class Main {\n\n private static final String blank = \" \";\n\n public static void main(String[] args) {\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n String input = null;\n\n try {\n while ((input = in.readLine()) != null) {\n\n String[] problemData = input.split(blank);\n\n int num1 = Integer.valueOf(problemData[0]);\n int num2 = Integer.valueOf(problemData[1]);\n\n int gcd = resolveGcd(num1, num2);\n long lcm = (long) (num1 / gcd * num2);\n\n System.out.println(gcd + blank + lcm);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n private static int resolveGcd(int num1, int num2) {\n\n int result = num1 % num2;\n\n if (result == 0) {\n return num2;\n }\n\n return resolveGcd(num2, result);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { private static final String blank = " "; public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String input = null; try { while ((input = in.readLine()) != null) { String[] problemData = input.split(blank); int num1 = Integer.valueOf(problemData[0]); int num2 = Integer.valueOf(problemData[1]); int gcd = resolveGcd(num1, num2); long lcm = (long) (num1 / gcd * num2); System.out.println(gcd + blank + lcm); } } catch (IOException e) { e.printStackTrace(); } finally { try { in.close(); } catch (IOException e) { e.printStackTrace(); } } } private static int resolveGcd(int num1, int num2) { int result = num1 % num2; if (result == 0) { return num2; } return resolveGcd(num2, result); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 11, 1, 30, 30, 14, 40, 4, 18, 13, 30, 3, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 13, 11, 1, 30, 30, 14, 2, 13, 13, 3, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 41, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 98, 11 ], [ 98, 12 ], [ 12, 13 ], [ 12, 14 ], [ 98, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 21, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 22, 27 ], [ 27, 28 ], [ 21, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 21, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 21, 39 ], [ 39, 40 ], [ 39, 41 ], [ 21, 42 ], [ 42, 43 ], [ 42, 44 ], [ 21, 45 ], [ 45, 46 ], [ 45, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 21, 66 ], [ 66, 67 ], [ 66, 68 ], [ 21, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 21, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 82, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 85 ], [ 98, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 86, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.util.*;\nimport java.lang.*;\nimport java.math.*;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tvoid run(){\n\t\tfor(;;){\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}\n\t\t\n\t}\n\tpublic static void main(String[] args){\n\t\tMain m = new Main();\n\t\tm.run();\n\t\t\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.math.*;", "math.*", "java", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tvoid run(){\n\t\tfor(;;){\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}\n\t\t\n\t}\n\tpublic static void main(String[] args){\n\t\tMain m = new Main();\n\t\tm.run();\n\t\t\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "void run(){\n\t\tfor(;;){\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}\n\t\t\n\t}", "run", "{\n\t\tfor(;;){\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}\n\t\t\n\t}", "for(;;){\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}", ";", "{\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}", "{\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}", "if(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}", "!sc.hasNextInt()", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int ta = a;", "ta", "a", "int tb = b;", "tb", "b", "for(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", ";", "{\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "if(a==b)break;", "a==b", "a", "b", "break;", "if(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}", "a>b", "a", "b", "{\n\t\t\t\t\ta-=b;\n\t\t\t\t}", "a-=b", "a", "b", "{\n\t\t\t\t\tb-=a;\n\t\t\t\t}", "b-=a", "b", "a", "int gcd = a;", "gcd", "a", "int lcm = ta/a * tb;", "lcm", "ta/a * tb", "ta/a", "ta", "a", "tb", "System.out.println(gcd + \" \"+lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \"+lcm", "gcd + \" \"+lcm", "gcd", "\" \"", "lcm", "public static void main(String[] args){\n\t\tMain m = new Main();\n\t\tm.run();\n\t\t\n\t}", "main", "{\n\t\tMain m = new Main();\n\t\tm.run();\n\t\t\n\t}", "Main m = new Main();", "m", "new Main()", "m.run()", "m.run", "m", "String[] args", "args", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tvoid run(){\n\t\tfor(;;){\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}\n\t\t\n\t}\n\tpublic static void main(String[] args){\n\t\tMain m = new Main();\n\t\tm.run();\n\t\t\n\t}\n}", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tvoid run(){\n\t\tfor(;;){\n\t\t\tif(!sc.hasNextInt()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint ta = a;\n\t\t\tint tb = b; \n\t\t\tfor(;;){\n\t\t\t\tif(a==b)break;\n\t\t\t\tif(a>b){\n\t\t\t\t\ta-=b;\n\t\t\t\t}else{\n\t\t\t\t\tb-=a;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tint gcd = a;\n\t\t\tint lcm = ta/a * tb;\n\t\t\tSystem.out.println(gcd + \" \"+lcm);\n\t\t}\n\t\t\n\t}\n\tpublic static void main(String[] args){\n\t\tMain m = new Main();\n\t\tm.run();\n\t\t\n\t}\n}", "Main" ]
import java.util.*; import java.lang.*; import java.math.*; public class Main { Scanner sc = new Scanner(System.in); void run(){ for(;;){ if(!sc.hasNextInt()){ break; } int a = sc.nextInt(); int b = sc.nextInt(); int ta = a; int tb = b; for(;;){ if(a==b)break; if(a>b){ a-=b; }else{ b-=a; } } int gcd = a; int lcm = ta/a * tb; System.out.println(gcd + " "+lcm); } } public static void main(String[] args){ Main m = new Main(); m.run(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 41, 13, 41, 13, 41, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 30, 0, 13, 13, 0, 13, 13, 42, 2, 0, 13, 2, 13, 13, 17, 30, 0, 13, 13, 0, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 4, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 30, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 114, 5 ], [ 114, 6 ], [ 6, 7 ], [ 6, 8 ], [ 114, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 16, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 16, 29 ], [ 29, 30 ], [ 16, 31 ], [ 31, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 16, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 52, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 16, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 16, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 16, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 16, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 11, 91 ], [ 91, 92 ], [ 9, 93 ], [ 93, 94 ], [ 114, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 114, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\twhile (scanner.hasNext()) {\n\n\t\t\tlong tempA = input();\n\t\t\tlong tempB = input();\n\n\t\t\tlong a;\n\t\t\tlong b;\n\t\t\tlong r;\n\t\t\tlong lcm;\n\n\t\t\tif (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}\n\n\t\t\twhile ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}\n\n\t\t\tlcm = tempA * tempB / b;\n\n\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(lcm);\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static long input() {\n\n\t\treturn scanner.nextLong();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\twhile (scanner.hasNext()) {\n\n\t\t\tlong tempA = input();\n\t\t\tlong tempB = input();\n\n\t\t\tlong a;\n\t\t\tlong b;\n\t\t\tlong r;\n\t\t\tlong lcm;\n\n\t\t\tif (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}\n\n\t\t\twhile ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}\n\n\t\t\tlcm = tempA * tempB / b;\n\n\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(lcm);\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static long input() {\n\n\t\treturn scanner.nextLong();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main", "public static Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "public static void main(String[] args) {\n\n\t\twhile (scanner.hasNext()) {\n\n\t\t\tlong tempA = input();\n\t\t\tlong tempB = input();\n\n\t\t\tlong a;\n\t\t\tlong b;\n\t\t\tlong r;\n\t\t\tlong lcm;\n\n\t\t\tif (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}\n\n\t\t\twhile ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}\n\n\t\t\tlcm = tempA * tempB / b;\n\n\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(lcm);\n\n\t\t}\n\n\t\tclose();\n\n\t}", "main", "{\n\n\t\twhile (scanner.hasNext()) {\n\n\t\t\tlong tempA = input();\n\t\t\tlong tempB = input();\n\n\t\t\tlong a;\n\t\t\tlong b;\n\t\t\tlong r;\n\t\t\tlong lcm;\n\n\t\t\tif (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}\n\n\t\t\twhile ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}\n\n\t\t\tlcm = tempA * tempB / b;\n\n\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(lcm);\n\n\t\t}\n\n\t\tclose();\n\n\t}", "while (scanner.hasNext()) {\n\n\t\t\tlong tempA = input();\n\t\t\tlong tempB = input();\n\n\t\t\tlong a;\n\t\t\tlong b;\n\t\t\tlong r;\n\t\t\tlong lcm;\n\n\t\t\tif (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}\n\n\t\t\twhile ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}\n\n\t\t\tlcm = tempA * tempB / b;\n\n\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(lcm);\n\n\t\t}", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n\n\t\t\tlong tempA = input();\n\t\t\tlong tempB = input();\n\n\t\t\tlong a;\n\t\t\tlong b;\n\t\t\tlong r;\n\t\t\tlong lcm;\n\n\t\t\tif (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}\n\n\t\t\twhile ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}\n\n\t\t\tlcm = tempA * tempB / b;\n\n\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(lcm);\n\n\t\t}", "long tempA = input();", "tempA", "input()", "input", "long tempB = input();", "tempB", "input()", "input", "long a;", "a", "long b;", "b", "long r;", "r", "long lcm;", "lcm", "if (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}", "tempB <= tempA", "tempB", "tempA", "{\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t}", "a = tempA", "a", "tempA", "b = tempB", "b", "tempB", "{\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}", "a = tempB", "a", "tempB", "b = tempA", "b", "tempA", "while ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}", "(r = a % b) != 0", "(r = a % b)", "r", "a % b", "a", "b", "0", "{\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}", "a = b", "a", "b", "b = r", "b", "r", "lcm = tempA * tempB / b", "lcm", "tempA * tempB / b", "tempA * tempB", "tempA", "tempB", "b", "System.out.print(b)", "System.out.print", "System.out", "System", "System.out", "b", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(lcm)", "System.out.println", "System.out", "System", "System.out", "lcm", "close()", "close", "String[] args", "args", "public static long input() {\n\n\t\treturn scanner.nextLong();\n\n\t}", "input", "{\n\n\t\treturn scanner.nextLong();\n\n\t}", "return scanner.nextLong();", "scanner.nextLong()", "scanner.nextLong", "scanner", "public static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "close", "{\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "if (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner != null", "scanner", "null", "{\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner.close()", "scanner.close", "scanner", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\twhile (scanner.hasNext()) {\n\n\t\t\tlong tempA = input();\n\t\t\tlong tempB = input();\n\n\t\t\tlong a;\n\t\t\tlong b;\n\t\t\tlong r;\n\t\t\tlong lcm;\n\n\t\t\tif (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}\n\n\t\t\twhile ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}\n\n\t\t\tlcm = tempA * tempB / b;\n\n\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(lcm);\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static long input() {\n\n\t\treturn scanner.nextLong();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\twhile (scanner.hasNext()) {\n\n\t\t\tlong tempA = input();\n\t\t\tlong tempB = input();\n\n\t\t\tlong a;\n\t\t\tlong b;\n\t\t\tlong r;\n\t\t\tlong lcm;\n\n\t\t\tif (tempB <= tempA) {\n\n\t\t\t\ta = tempA;\n\t\t\t\tb = tempB;\n\n\t\t\t} else {\n\n\t\t\t\ta = tempB;\n\t\t\t\tb = tempA;\n\n\t\t\t}\n\n\t\t\twhile ((r = a % b) != 0) {\n\n\t\t\t\ta = b;\n\t\t\t\tb = r;\n\n\t\t\t}\n\n\t\t\tlcm = tempA * tempB / b;\n\n\t\t\tSystem.out.print(b);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(lcm);\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static long input() {\n\n\t\treturn scanner.nextLong();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { while (scanner.hasNext()) { long tempA = input(); long tempB = input(); long a; long b; long r; long lcm; if (tempB <= tempA) { a = tempA; b = tempB; } else { a = tempB; b = tempA; } while ((r = a % b) != 0) { a = b; b = r; } lcm = tempA * tempB / b; System.out.print(b); System.out.print(" "); System.out.println(lcm); } close(); } public static long input() { return scanner.nextLong(); } public static void close() { if (scanner != null) { scanner.close(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 4, 13, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 42, 2, 13, 17, 30, 41, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 4, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 29, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 35, 38 ], [ 35, 39 ], [ 16, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 46, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 6, 50 ], [ 50, 51 ], [ 109, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 59, 65 ], [ 65, 66 ], [ 65, 67 ], [ 59, 68 ], [ 68, 69 ], [ 68, 70 ], [ 54, 71 ], [ 71, 72 ], [ 52, 73 ], [ 73, 74 ], [ 52, 75 ], [ 75, 76 ], [ 109, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 87 ], [ 81, 88 ], [ 77, 89 ], [ 89, 90 ], [ 77, 91 ], [ 91, 92 ], [ 109, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 93, 102 ], [ 102, 103 ], [ 93, 104 ], [ 104, 105 ], [ 93, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n final int a = scanner.nextInt();\n final int b = scanner.nextInt();\n\n final int gcd = GetGcd(a, b);\n final int lcm = GetLcm(a, b, gcd);\n\n System.out.println(gcd + \" \" + lcm);\n }\n }\n\n static int GetGcd(int left, int right) {\n while (right > 0) {\n final int tmp = left % right;\n left = right;\n right = tmp;\n }\n\n return left;\n }\n\n static int GetLcm(int left, int right) {\n return left / GetGcd(left, right) * right;\n }\n\n static int GetLcm(int left, int right, int gcd) {\n return left / gcd * right;\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n final int a = scanner.nextInt();\n final int b = scanner.nextInt();\n\n final int gcd = GetGcd(a, b);\n final int lcm = GetLcm(a, b, gcd);\n\n System.out.println(gcd + \" \" + lcm);\n }\n }\n\n static int GetGcd(int left, int right) {\n while (right > 0) {\n final int tmp = left % right;\n left = right;\n right = tmp;\n }\n\n return left;\n }\n\n static int GetLcm(int left, int right) {\n return left / GetGcd(left, right) * right;\n }\n\n static int GetLcm(int left, int right, int gcd) {\n return left / gcd * right;\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n final int a = scanner.nextInt();\n final int b = scanner.nextInt();\n\n final int gcd = GetGcd(a, b);\n final int lcm = GetLcm(a, b, gcd);\n\n System.out.println(gcd + \" \" + lcm);\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n final int a = scanner.nextInt();\n final int b = scanner.nextInt();\n\n final int gcd = GetGcd(a, b);\n final int lcm = GetLcm(a, b, gcd);\n\n System.out.println(gcd + \" \" + lcm);\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (scanner.hasNext()) {\n final int a = scanner.nextInt();\n final int b = scanner.nextInt();\n\n final int gcd = GetGcd(a, b);\n final int lcm = GetLcm(a, b, gcd);\n\n System.out.println(gcd + \" \" + lcm);\n }", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n final int a = scanner.nextInt();\n final int b = scanner.nextInt();\n\n final int gcd = GetGcd(a, b);\n final int lcm = GetLcm(a, b, gcd);\n\n System.out.println(gcd + \" \" + lcm);\n }", "final int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "final int b = scanner.nextInt();", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "final int gcd = GetGcd(a, b);", "gcd", "GetGcd(a, b)", "GetGcd", "a", "b", "final int lcm = GetLcm(a, b, gcd);", "lcm", "GetLcm(a, b, gcd)", "GetLcm", "a", "b", "gcd", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "String[] args", "args", "static int GetGcd(int left, int right) {\n while (right > 0) {\n final int tmp = left % right;\n left = right;\n right = tmp;\n }\n\n return left;\n }", "GetGcd", "{\n while (right > 0) {\n final int tmp = left % right;\n left = right;\n right = tmp;\n }\n\n return left;\n }", "while (right > 0) {\n final int tmp = left % right;\n left = right;\n right = tmp;\n }", "right > 0", "right", "0", "{\n final int tmp = left % right;\n left = right;\n right = tmp;\n }", "final int tmp = left % right;", "tmp", "left % right", "left", "right", "left = right", "left", "right", "right = tmp", "right", "tmp", "return left;", "left", "int left", "left", "int right", "right", "static int GetLcm(int left, int right) {\n return left / GetGcd(left, right) * right;\n }", "GetLcm", "{\n return left / GetGcd(left, right) * right;\n }", "return left / GetGcd(left, right) * right;", "left / GetGcd(left, right) * right", "left / GetGcd(left, right)", "left", "GetGcd(left, right)", "GetGcd", "left", "right", "right", "int left", "left", "int right", "right", "static int GetLcm(int left, int right, int gcd) {\n return left / gcd * right;\n }", "GetLcm", "{\n return left / gcd * right;\n }", "return left / gcd * right;", "left / gcd * right", "left / gcd", "left", "gcd", "right", "int left", "left", "int right", "right", "int gcd", "gcd", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n final int a = scanner.nextInt();\n final int b = scanner.nextInt();\n\n final int gcd = GetGcd(a, b);\n final int lcm = GetLcm(a, b, gcd);\n\n System.out.println(gcd + \" \" + lcm);\n }\n }\n\n static int GetGcd(int left, int right) {\n while (right > 0) {\n final int tmp = left % right;\n left = right;\n right = tmp;\n }\n\n return left;\n }\n\n static int GetLcm(int left, int right) {\n return left / GetGcd(left, right) * right;\n }\n\n static int GetLcm(int left, int right, int gcd) {\n return left / gcd * right;\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n final int a = scanner.nextInt();\n final int b = scanner.nextInt();\n\n final int gcd = GetGcd(a, b);\n final int lcm = GetLcm(a, b, gcd);\n\n System.out.println(gcd + \" \" + lcm);\n }\n }\n\n static int GetGcd(int left, int right) {\n while (right > 0) {\n final int tmp = left % right;\n left = right;\n right = tmp;\n }\n\n return left;\n }\n\n static int GetLcm(int left, int right) {\n return left / GetGcd(left, right) * right;\n }\n\n static int GetLcm(int left, int right, int gcd) {\n return left / gcd * right;\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { final int a = scanner.nextInt(); final int b = scanner.nextInt(); final int gcd = GetGcd(a, b); final int lcm = GetLcm(a, b, gcd); System.out.println(gcd + " " + lcm); } } static int GetGcd(int left, int right) { while (right > 0) { final int tmp = left % right; left = right; right = tmp; } return left; } static int GetLcm(int left, int right) { return left / GetGcd(left, right) * right; } static int GetLcm(int left, int right, int gcd) { return left / gcd * right; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 13, 13, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 29, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 16, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 46, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 6, 50 ], [ 50, 51 ], [ 4, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 54, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 54, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 54, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 83, 86 ], [ 52, 87 ], [ 87, 88 ], [ 52, 89 ], [ 89, 90 ] ]
[ "import java.util.*;\n\nclass Main{\npublic static void main(String[] args){\nScanner sc=new Scanner(System.in);\nwhile(sc.hasNextLong()){\nlong a=sc.nextLong();\nlong b=sc.nextLong();\nlong c=gcd(a,b);\nlong d=(a*b)/c;\nSystem.out.println(c+\" \"+d);\n}\n}\npublic static long gcd(long x,long y){\nlong max=Math.max(x,y);\nlong min=Math.min(x,y);\nlong amari=max%min;\nif(amari==0){return min;}\nelse{return gcd(min,amari);}\n}\n}", "import java.util.*;", "util.*", "java", "class Main{\npublic static void main(String[] args){\nScanner sc=new Scanner(System.in);\nwhile(sc.hasNextLong()){\nlong a=sc.nextLong();\nlong b=sc.nextLong();\nlong c=gcd(a,b);\nlong d=(a*b)/c;\nSystem.out.println(c+\" \"+d);\n}\n}\npublic static long gcd(long x,long y){\nlong max=Math.max(x,y);\nlong min=Math.min(x,y);\nlong amari=max%min;\nif(amari==0){return min;}\nelse{return gcd(min,amari);}\n}\n}", "Main", "public static void main(String[] args){\nScanner sc=new Scanner(System.in);\nwhile(sc.hasNextLong()){\nlong a=sc.nextLong();\nlong b=sc.nextLong();\nlong c=gcd(a,b);\nlong d=(a*b)/c;\nSystem.out.println(c+\" \"+d);\n}\n}", "main", "{\nScanner sc=new Scanner(System.in);\nwhile(sc.hasNextLong()){\nlong a=sc.nextLong();\nlong b=sc.nextLong();\nlong c=gcd(a,b);\nlong d=(a*b)/c;\nSystem.out.println(c+\" \"+d);\n}\n}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNextLong()){\nlong a=sc.nextLong();\nlong b=sc.nextLong();\nlong c=gcd(a,b);\nlong d=(a*b)/c;\nSystem.out.println(c+\" \"+d);\n}", "sc.hasNextLong()", "sc.hasNextLong", "sc", "{\nlong a=sc.nextLong();\nlong b=sc.nextLong();\nlong c=gcd(a,b);\nlong d=(a*b)/c;\nSystem.out.println(c+\" \"+d);\n}", "long a=sc.nextLong();", "a", "sc.nextLong()", "sc.nextLong", "sc", "long b=sc.nextLong();", "b", "sc.nextLong()", "sc.nextLong", "sc", "long c=gcd(a,b);", "c", "gcd(a,b)", "gcd", "a", "b", "long d=(a*b)/c;", "d", "(a*b)/c", "(a*b)", "a", "b", "c", "System.out.println(c+\" \"+d)", "System.out.println", "System.out", "System", "System.out", "c+\" \"+d", "c+\" \"+d", "c", "\" \"", "d", "String[] args", "args", "public static long gcd(long x,long y){\nlong max=Math.max(x,y);\nlong min=Math.min(x,y);\nlong amari=max%min;\nif(amari==0){return min;}\nelse{return gcd(min,amari);}\n}", "gcd", "{\nlong max=Math.max(x,y);\nlong min=Math.min(x,y);\nlong amari=max%min;\nif(amari==0){return min;}\nelse{return gcd(min,amari);}\n}", "long max=Math.max(x,y);", "max", "Math.max(x,y)", "Math.max", "Math", "x", "y", "long min=Math.min(x,y);", "min", "Math.min(x,y)", "Math.min", "Math", "x", "y", "long amari=max%min;", "amari", "max%min", "max", "min", "if(amari==0){return min;}\nelse{return gcd(min,amari);}", "amari==0", "amari", "0", "{return min;}", "return min;", "min", "{return gcd(min,amari);}", "return gcd(min,amari);", "gcd(min,amari)", "gcd", "min", "amari", "long x", "x", "long y", "y" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNextLong()){ long a=sc.nextLong(); long b=sc.nextLong(); long c=gcd(a,b); long d=(a*b)/c; System.out.println(c+" "+d); } } public static long gcd(long x,long y){ long max=Math.max(x,y); long min=Math.min(x,y); long amari=max%min; if(amari==0){return min;} else{return gcd(min,amari);} } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 42, 2, 13, 17, 30, 0, 13, 4, 18, 13, 17, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 0, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 42, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 30, 0, 13, 13, 0, 13, 13, 14, 2, 2, 13, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 173, 11 ], [ 173, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 36, 40 ], [ 33, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 33, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 33, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 64, 67 ], [ 63, 68 ], [ 63, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 33, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 12, 78 ], [ 78, 79 ], [ 173, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 82, 87 ], [ 87, 88 ], [ 82, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 89, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 82, 107 ], [ 107, 108 ], [ 107, 109 ], [ 82, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 82, 122 ], [ 122, 123 ], [ 80, 124 ], [ 124, 125 ], [ 80, 126 ], [ 126, 127 ], [ 173, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 133, 134 ], [ 130, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 143, 145 ], [ 135, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 150, 151 ], [ 150, 152 ], [ 130, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 153, 159 ], [ 159, 160 ], [ 130, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 162, 165 ], [ 165, 166 ], [ 165, 167 ], [ 128, 168 ], [ 168, 169 ], [ 128, 170 ], [ 170, 171 ], [ 0, 172 ], [ 172, 173 ], [ 172, 174 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString[] a;\n\t\tlong x,y;\n\t\t\n\t\twhile(str!=null){\n\t\t\ta=str.split(\" \",0);\n\t\t\tx=Integer.parseInt(a[0]);\n\t\t\ty=Integer.parseInt(a[1]);\n\t\t\tSystem.out.println(koyaku(x,y)+\" \"+kobai(x,y));\n\t\t\tstr=br.readLine();\n\t\t}\n\n\t}\n\t\n\tpublic static long kobai(long x, long y){\n\t\tlong l,s,num;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tnum=l;\n\t\twhile(num%s!=0){\n\t\t\tnum=num+l;\n\t\t}\n\t\treturn num;\n\t}\n\t\n\tpublic static long koyaku(long x, long y){\n\t\tlong l,s;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tif(l%s==0) return s;\n\t\treturn koyaku(s,l%s);\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString[] a;\n\t\tlong x,y;\n\t\t\n\t\twhile(str!=null){\n\t\t\ta=str.split(\" \",0);\n\t\t\tx=Integer.parseInt(a[0]);\n\t\t\ty=Integer.parseInt(a[1]);\n\t\t\tSystem.out.println(koyaku(x,y)+\" \"+kobai(x,y));\n\t\t\tstr=br.readLine();\n\t\t}\n\n\t}\n\t\n\tpublic static long kobai(long x, long y){\n\t\tlong l,s,num;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tnum=l;\n\t\twhile(num%s!=0){\n\t\t\tnum=num+l;\n\t\t}\n\t\treturn num;\n\t}\n\t\n\tpublic static long koyaku(long x, long y){\n\t\tlong l,s;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tif(l%s==0) return s;\n\t\treturn koyaku(s,l%s);\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString[] a;\n\t\tlong x,y;\n\t\t\n\t\twhile(str!=null){\n\t\t\ta=str.split(\" \",0);\n\t\t\tx=Integer.parseInt(a[0]);\n\t\t\ty=Integer.parseInt(a[1]);\n\t\t\tSystem.out.println(koyaku(x,y)+\" \"+kobai(x,y));\n\t\t\tstr=br.readLine();\n\t\t}\n\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString[] a;\n\t\tlong x,y;\n\t\t\n\t\twhile(str!=null){\n\t\t\ta=str.split(\" \",0);\n\t\t\tx=Integer.parseInt(a[0]);\n\t\t\ty=Integer.parseInt(a[1]);\n\t\t\tSystem.out.println(koyaku(x,y)+\" \"+kobai(x,y));\n\t\t\tstr=br.readLine();\n\t\t}\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str=br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] a;", "a", "long x", "x", "y;", "y", "while(str!=null){\n\t\t\ta=str.split(\" \",0);\n\t\t\tx=Integer.parseInt(a[0]);\n\t\t\ty=Integer.parseInt(a[1]);\n\t\t\tSystem.out.println(koyaku(x,y)+\" \"+kobai(x,y));\n\t\t\tstr=br.readLine();\n\t\t}", "str!=null", "str", "null", "{\n\t\t\ta=str.split(\" \",0);\n\t\t\tx=Integer.parseInt(a[0]);\n\t\t\ty=Integer.parseInt(a[1]);\n\t\t\tSystem.out.println(koyaku(x,y)+\" \"+kobai(x,y));\n\t\t\tstr=br.readLine();\n\t\t}", "a=str.split(\" \",0)", "a", "str.split(\" \",0)", "str.split", "str", "\" \"", "0", "x=Integer.parseInt(a[0])", "x", "Integer.parseInt(a[0])", "Integer.parseInt", "Integer", "a[0]", "a", "0", "y=Integer.parseInt(a[1])", "y", "Integer.parseInt(a[1])", "Integer.parseInt", "Integer", "a[1]", "a", "1", "System.out.println(koyaku(x,y)+\" \"+kobai(x,y))", "System.out.println", "System.out", "System", "System.out", "koyaku(x,y)+\" \"+kobai(x,y)", "koyaku(x,y)+\" \"+kobai(x,y)", "koyaku(x,y)", "koyaku", "x", "y", "\" \"", "kobai(x,y)", "kobai", "x", "y", "str=br.readLine()", "str", "br.readLine()", "br.readLine", "br", "String[] args", "args", "public static long kobai(long x, long y){\n\t\tlong l,s,num;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tnum=l;\n\t\twhile(num%s!=0){\n\t\t\tnum=num+l;\n\t\t}\n\t\treturn num;\n\t}", "kobai", "{\n\t\tlong l,s,num;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tnum=l;\n\t\twhile(num%s!=0){\n\t\t\tnum=num+l;\n\t\t}\n\t\treturn num;\n\t}", "long l", "l", "s", "s", "num;", "num", "if(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}", "x>=y", "x", "y", "{l=x;s=y;}", "l=x", "l", "x", "s=y", "s", "y", "{l=y;s=x;}", "l=y", "l", "y", "s=x", "s", "x", "num=l", "num", "l", "while(num%s!=0){\n\t\t\tnum=num+l;\n\t\t}", "num%s!=0", "num%s", "num", "s", "0", "{\n\t\t\tnum=num+l;\n\t\t}", "num=num+l", "num", "num+l", "num", "l", "return num;", "num", "long x", "x", "long y", "y", "public static long koyaku(long x, long y){\n\t\tlong l,s;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tif(l%s==0) return s;\n\t\treturn koyaku(s,l%s);\n\t}", "koyaku", "{\n\t\tlong l,s;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tif(l%s==0) return s;\n\t\treturn koyaku(s,l%s);\n\t}", "long l", "l", "s;", "s", "if(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}", "x>=y", "x", "y", "{l=x;s=y;}", "l=x", "l", "x", "s=y", "s", "y", "{l=y;s=x;}", "l=y", "l", "y", "s=x", "s", "x", "if(l%s==0) return s;", "l%s==0", "l%s", "l", "s", "0", "return s;", "s", "return koyaku(s,l%s);", "koyaku(s,l%s)", "koyaku", "s", "l%s", "l", "s", "long x", "x", "long y", "y", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString[] a;\n\t\tlong x,y;\n\t\t\n\t\twhile(str!=null){\n\t\t\ta=str.split(\" \",0);\n\t\t\tx=Integer.parseInt(a[0]);\n\t\t\ty=Integer.parseInt(a[1]);\n\t\t\tSystem.out.println(koyaku(x,y)+\" \"+kobai(x,y));\n\t\t\tstr=br.readLine();\n\t\t}\n\n\t}\n\t\n\tpublic static long kobai(long x, long y){\n\t\tlong l,s,num;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tnum=l;\n\t\twhile(num%s!=0){\n\t\t\tnum=num+l;\n\t\t}\n\t\treturn num;\n\t}\n\t\n\tpublic static long koyaku(long x, long y){\n\t\tlong l,s;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tif(l%s==0) return s;\n\t\treturn koyaku(s,l%s);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str=br.readLine();\n\t\tString[] a;\n\t\tlong x,y;\n\t\t\n\t\twhile(str!=null){\n\t\t\ta=str.split(\" \",0);\n\t\t\tx=Integer.parseInt(a[0]);\n\t\t\ty=Integer.parseInt(a[1]);\n\t\t\tSystem.out.println(koyaku(x,y)+\" \"+kobai(x,y));\n\t\t\tstr=br.readLine();\n\t\t}\n\n\t}\n\t\n\tpublic static long kobai(long x, long y){\n\t\tlong l,s,num;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tnum=l;\n\t\twhile(num%s!=0){\n\t\t\tnum=num+l;\n\t\t}\n\t\treturn num;\n\t}\n\t\n\tpublic static long koyaku(long x, long y){\n\t\tlong l,s;\n\t\tif(x>=y){l=x;s=y;}\n\t\telse{l=y;s=x;}\n\t\t\n\t\tif(l%s==0) return s;\n\t\treturn koyaku(s,l%s);\n\t}\n\n}", "Main" ]
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)); String str=br.readLine(); String[] a; long x,y; while(str!=null){ a=str.split(" ",0); x=Integer.parseInt(a[0]); y=Integer.parseInt(a[1]); System.out.println(koyaku(x,y)+" "+kobai(x,y)); str=br.readLine(); } } public static long kobai(long x, long y){ long l,s,num; if(x>=y){l=x;s=y;} else{l=y;s=x;} num=l; while(num%s!=0){ num=num+l; } return num; } public static long koyaku(long x, long y){ long l,s; if(x>=y){l=x;s=y;} else{l=y;s=x;} if(l%s==0) return s; return koyaku(s,l%s); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 13, 13, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 29, 17, 42, 2, 13, 13, 30, 14, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 29, 17, 29, 2, 2, 13, 4, 13, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 130, 5 ], [ 130, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 19, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 38, 40 ], [ 16, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 16, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 16, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 59, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 6, 63 ], [ 63, 64 ], [ 130, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 67, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 83, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 67, 97 ], [ 97, 98 ], [ 65, 99 ], [ 99, 100 ], [ 65, 101 ], [ 101, 102 ], [ 130, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 105, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 120, 123 ], [ 117, 124 ], [ 103, 125 ], [ 125, 126 ], [ 103, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine())\n\t\t{\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\n\t\t\tint a = Integer.parseInt(s[0]);\n\t\t\tint b = Integer.parseInt(s[1]);\n\n\t\t\tint x = gcd(a,b);\n\t\t\tint y = lcm(a,b);\n\t\t\tSystem.out.println(x +\" \"+ y);\n\t\t}\n\t\t/*\n\n\n\n\t\t\t*/\n\t}\n\t\n\t private static int gcd(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n\n while (m != n)\n {\n if (m > n) m = m - n;\n else n = n - m;\n }\n return m;\n }\n\n private static int lcm(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n return ((m / gcd(m, n) * n));\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine())\n\t\t{\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\n\t\t\tint a = Integer.parseInt(s[0]);\n\t\t\tint b = Integer.parseInt(s[1]);\n\n\t\t\tint x = gcd(a,b);\n\t\t\tint y = lcm(a,b);\n\t\t\tSystem.out.println(x +\" \"+ y);\n\t\t}\n\t\t/*\n\n\n\n\t\t\t*/\n\t}\n\t\n\t private static int gcd(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n\n while (m != n)\n {\n if (m > n) m = m - n;\n else n = n - m;\n }\n return m;\n }\n\n private static int lcm(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n return ((m / gcd(m, n) * n));\n }\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine())\n\t\t{\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\n\t\t\tint a = Integer.parseInt(s[0]);\n\t\t\tint b = Integer.parseInt(s[1]);\n\n\t\t\tint x = gcd(a,b);\n\t\t\tint y = lcm(a,b);\n\t\t\tSystem.out.println(x +\" \"+ y);\n\t\t}\n\t\t/*\n\n\n\n\t\t\t*/\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine())\n\t\t{\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\n\t\t\tint a = Integer.parseInt(s[0]);\n\t\t\tint b = Integer.parseInt(s[1]);\n\n\t\t\tint x = gcd(a,b);\n\t\t\tint y = lcm(a,b);\n\t\t\tSystem.out.println(x +\" \"+ y);\n\t\t}\n\t\t/*\n\n\n\n\t\t\t*/\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNextLine())\n\t\t{\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\n\t\t\tint a = Integer.parseInt(s[0]);\n\t\t\tint b = Integer.parseInt(s[1]);\n\n\t\t\tint x = gcd(a,b);\n\t\t\tint y = lcm(a,b);\n\t\t\tSystem.out.println(x +\" \"+ y);\n\t\t}", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\n\t\t\tint a = Integer.parseInt(s[0]);\n\t\t\tint b = Integer.parseInt(s[1]);\n\n\t\t\tint x = gcd(a,b);\n\t\t\tint y = lcm(a,b);\n\t\t\tSystem.out.println(x +\" \"+ y);\n\t\t}", "String[] s = sc.nextLine().split(\"[\\\\s]+\");", "s", "sc.nextLine().split(\"[\\\\s]+\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"[\\\\s]+\"", "int a = Integer.parseInt(s[0]);", "a", "Integer.parseInt(s[0])", "Integer.parseInt", "Integer", "s[0]", "s", "0", "int b = Integer.parseInt(s[1]);", "b", "Integer.parseInt(s[1])", "Integer.parseInt", "Integer", "s[1]", "s", "1", "int x = gcd(a,b);", "x", "gcd(a,b)", "gcd", "a", "b", "int y = lcm(a,b);", "y", "lcm(a,b)", "lcm", "a", "b", "System.out.println(x +\" \"+ y)", "System.out.println", "System.out", "System", "System.out", "x +\" \"+ y", "x +\" \"+ y", "x", "\" \"", "y", "String[] args", "args", "private static int gcd(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n\n while (m != n)\n {\n if (m > n) m = m - n;\n else n = n - m;\n }\n return m;\n }", "gcd", "{\n if ((m == 0) || (n == 0)) return 0;\n\n while (m != n)\n {\n if (m > n) m = m - n;\n else n = n - m;\n }\n return m;\n }", "if ((m == 0) || (n == 0)) return 0;", "(m == 0) || (n == 0)", "(m == 0)", "m", "0", "(n == 0)", "n", "0", "return 0;", "0", "while (m != n)\n {\n if (m > n) m = m - n;\n else n = n - m;\n }", "m != n", "m", "n", "{\n if (m > n) m = m - n;\n else n = n - m;\n }", "if (m > n) m = m - n;\n else n = n - m;", "m > n", "m", "n", "m = m - n", "m", "m - n", "m", "n", "n = n - m", "n", "n - m", "n", "m", "return m;", "m", "int m", "m", "int n", "n", "private static int lcm(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n return ((m / gcd(m, n) * n));\n }", "lcm", "{\n if ((m == 0) || (n == 0)) return 0;\n return ((m / gcd(m, n) * n));\n }", "if ((m == 0) || (n == 0)) return 0;", "(m == 0) || (n == 0)", "(m == 0)", "m", "0", "(n == 0)", "n", "0", "return 0;", "0", "return ((m / gcd(m, n) * n));", "((m / gcd(m, n) * n))", "m / gcd(m, n)", "m", "gcd(m, n)", "gcd", "m", "n", "n", "int m", "m", "int n", "n", "public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine())\n\t\t{\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\n\t\t\tint a = Integer.parseInt(s[0]);\n\t\t\tint b = Integer.parseInt(s[1]);\n\n\t\t\tint x = gcd(a,b);\n\t\t\tint y = lcm(a,b);\n\t\t\tSystem.out.println(x +\" \"+ y);\n\t\t}\n\t\t/*\n\n\n\n\t\t\t*/\n\t}\n\t\n\t private static int gcd(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n\n while (m != n)\n {\n if (m > n) m = m - n;\n else n = n - m;\n }\n return m;\n }\n\n private static int lcm(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n return ((m / gcd(m, n) * n));\n }\n}", "public class Main{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNextLine())\n\t\t{\n\t\t\tString[] s = sc.nextLine().split(\"[\\\\s]+\");\n\n\t\t\tint a = Integer.parseInt(s[0]);\n\t\t\tint b = Integer.parseInt(s[1]);\n\n\t\t\tint x = gcd(a,b);\n\t\t\tint y = lcm(a,b);\n\t\t\tSystem.out.println(x +\" \"+ y);\n\t\t}\n\t\t/*\n\n\n\n\t\t\t*/\n\t}\n\t\n\t private static int gcd(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n\n while (m != n)\n {\n if (m > n) m = m - n;\n else n = n - m;\n }\n return m;\n }\n\n private static int lcm(int m, int n)\n {\n if ((m == 0) || (n == 0)) return 0;\n return ((m / gcd(m, n) * n));\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNextLine()) { String[] s = sc.nextLine().split("[\\s]+"); int a = Integer.parseInt(s[0]); int b = Integer.parseInt(s[1]); int x = gcd(a,b); int y = lcm(a,b); System.out.println(x +" "+ y); } /* */ } private static int gcd(int m, int n) { if ((m == 0) || (n == 0)) return 0; while (m != n) { if (m > n) m = m - n; else n = n - m; } return m; } private static int lcm(int m, int n) { if ((m == 0) || (n == 0)) return 0; return ((m / gcd(m, n) * n)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 29, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 16, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 46, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 82, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 53, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 50, 66 ], [ 66, 67 ], [ 50, 68 ], [ 68, 69 ], [ 82, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 70, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.*;\npublic class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint input1 = sc.nextInt();\n\t\t\tint input2 = sc.nextInt();\n\t\t\t//gcd\n\t\t\tint gcd = gcd(input1, input2);\n\t\t\t//lcm\n\t\t\tint lcm = input1 / gcd * input2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n\n\tprivate int gcd(int a, int b){\n\t\tif(b == 0) return a;\n\t\telse return gcd(b, a % b);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint input1 = sc.nextInt();\n\t\t\tint input2 = sc.nextInt();\n\t\t\t//gcd\n\t\t\tint gcd = gcd(input1, input2);\n\t\t\t//lcm\n\t\t\tint lcm = input1 / gcd * input2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n\n\tprivate int gcd(int a, int b){\n\t\tif(b == 0) return a;\n\t\telse return gcd(b, a % b);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}\n\n}", "Main", "public void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint input1 = sc.nextInt();\n\t\t\tint input2 = sc.nextInt();\n\t\t\t//gcd\n\t\t\tint gcd = gcd(input1, input2);\n\t\t\t//lcm\n\t\t\tint lcm = input1 / gcd * input2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}", "doIt", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint input1 = sc.nextInt();\n\t\t\tint input2 = sc.nextInt();\n\t\t\t//gcd\n\t\t\tint gcd = gcd(input1, input2);\n\t\t\t//lcm\n\t\t\tint lcm = input1 / gcd * input2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()){\n\t\t\tint input1 = sc.nextInt();\n\t\t\tint input2 = sc.nextInt();\n\t\t\t//gcd\n\t\t\tint gcd = gcd(input1, input2);\n\t\t\t//lcm\n\t\t\tint lcm = input1 / gcd * input2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tint input1 = sc.nextInt();\n\t\t\tint input2 = sc.nextInt();\n\t\t\t//gcd\n\t\t\tint gcd = gcd(input1, input2);\n\t\t\t//lcm\n\t\t\tint lcm = input1 / gcd * input2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}", "int input1 = sc.nextInt();", "input1", "sc.nextInt()", "sc.nextInt", "sc", "int input2 = sc.nextInt();", "input2", "sc.nextInt()", "sc.nextInt", "sc", "int gcd = gcd(input1, input2);", "gcd", "gcd(input1, input2)", "gcd", "input1", "input2", "int lcm = input1 / gcd * input2;", "lcm", "input1 / gcd * input2", "input1 / gcd", "input1", "gcd", "input2", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "private int gcd(int a, int b){\n\t\tif(b == 0) return a;\n\t\telse return gcd(b, a % b);\n\t}", "gcd", "{\n\t\tif(b == 0) return a;\n\t\telse return gcd(b, a % b);\n\t}", "if(b == 0) return a;\n\t\telse return gcd(b, a % b);", "b == 0", "b", "0", "return a;", "a", "return gcd(b, a % b);", "gcd(b, a % b)", "gcd", "b", "a % b", "a", "b", "int a", "a", "int b", "b", "public static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}", "main", "{\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}", "Main obj = new Main();", "obj", "new Main()", "obj.doIt()", "obj.doIt", "obj", "String[] args", "args", "public class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint input1 = sc.nextInt();\n\t\t\tint input2 = sc.nextInt();\n\t\t\t//gcd\n\t\t\tint gcd = gcd(input1, input2);\n\t\t\t//lcm\n\t\t\tint lcm = input1 / gcd * input2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n\n\tprivate int gcd(int a, int b){\n\t\tif(b == 0) return a;\n\t\telse return gcd(b, a % b);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}\n\n}", "public class Main {\n\n\tpublic void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint input1 = sc.nextInt();\n\t\t\tint input2 = sc.nextInt();\n\t\t\t//gcd\n\t\t\tint gcd = gcd(input1, input2);\n\t\t\t//lcm\n\t\t\tint lcm = input1 / gcd * input2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n\n\tprivate int gcd(int a, int b){\n\t\tif(b == 0) return a;\n\t\telse return gcd(b, a % b);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public void doIt(){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int input1 = sc.nextInt(); int input2 = sc.nextInt(); //gcd int gcd = gcd(input1, input2); //lcm int lcm = input1 / gcd * input2; System.out.println(gcd + " " + lcm); } } private int gcd(int a, int b){ if(b == 0) return a; else return gcd(b, a % b); } public static void main(String[] args) { Main obj = new Main(); obj.doIt(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 8, 2, 13, 13, 13, 13, 8, 2, 13, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 4, 13, 13, 2, 13, 13, 30, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 82, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 31, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 37, 42 ], [ 16, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 49, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 9, 57 ], [ 57, 58 ], [ 82, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 62, 74 ], [ 74, 75 ], [ 75, 76 ], [ 59, 77 ], [ 77, 78 ], [ 59, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n while(scn.hasNextInt()) {\n int a = scn.nextInt(), b = scn.nextInt();\n int c = euclid(a > b ? a : b, a < b ? a : b);\n System.out.println(c + \" \" + (long)a * b / c);\n }\n }\n \n private static int euclid(int x, int y) {\n if(y > 0) {\n return euclid(y, x % y);\n } else {\n return x;\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n while(scn.hasNextInt()) {\n int a = scn.nextInt(), b = scn.nextInt();\n int c = euclid(a > b ? a : b, a < b ? a : b);\n System.out.println(c + \" \" + (long)a * b / c);\n }\n }\n \n private static int euclid(int x, int y) {\n if(y > 0) {\n return euclid(y, x % y);\n } else {\n return x;\n }\n }\n}", "Main", "private static final Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "public static void main(String[] args) {\n while(scn.hasNextInt()) {\n int a = scn.nextInt(), b = scn.nextInt();\n int c = euclid(a > b ? a : b, a < b ? a : b);\n System.out.println(c + \" \" + (long)a * b / c);\n }\n }", "main", "{\n while(scn.hasNextInt()) {\n int a = scn.nextInt(), b = scn.nextInt();\n int c = euclid(a > b ? a : b, a < b ? a : b);\n System.out.println(c + \" \" + (long)a * b / c);\n }\n }", "while(scn.hasNextInt()) {\n int a = scn.nextInt(), b = scn.nextInt();\n int c = euclid(a > b ? a : b, a < b ? a : b);\n System.out.println(c + \" \" + (long)a * b / c);\n }", "scn.hasNextInt()", "scn.hasNextInt", "scn", "{\n int a = scn.nextInt(), b = scn.nextInt();\n int c = euclid(a > b ? a : b, a < b ? a : b);\n System.out.println(c + \" \" + (long)a * b / c);\n }", "int a = scn.nextInt()", "a", "scn.nextInt()", "scn.nextInt", "scn", "b = scn.nextInt();", "b", "scn.nextInt()", "scn.nextInt", "scn", "int c = euclid(a > b ? a : b, a < b ? a : b);", "c", "euclid(a > b ? a : b, a < b ? a : b)", "euclid", "a > b ? a : b", "a > b", "a", "b", "a", "b", "a < b ? a : b", "a < b", "a", "b", "a", "b", "System.out.println(c + \" \" + (long)a * b / c)", "System.out.println", "System.out", "System", "System.out", "c + \" \" + (long)a * b / c", "c + \" \" + (long)a * b / c", "c", "\" \"", "(long)a * b / c", "(long)a * b", "(long)a", "b", "c", "String[] args", "args", "private static int euclid(int x, int y) {\n if(y > 0) {\n return euclid(y, x % y);\n } else {\n return x;\n }\n }", "euclid", "{\n if(y > 0) {\n return euclid(y, x % y);\n } else {\n return x;\n }\n }", "if(y > 0) {\n return euclid(y, x % y);\n } else {\n return x;\n }", "y > 0", "y", "0", "{\n return euclid(y, x % y);\n }", "return euclid(y, x % y);", "euclid(y, x % y)", "euclid", "y", "x % y", "x", "y", "{\n return x;\n }", "return x;", "x", "int x", "x", "int y", "y", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n while(scn.hasNextInt()) {\n int a = scn.nextInt(), b = scn.nextInt();\n int c = euclid(a > b ? a : b, a < b ? a : b);\n System.out.println(c + \" \" + (long)a * b / c);\n }\n }\n \n private static int euclid(int x, int y) {\n if(y > 0) {\n return euclid(y, x % y);\n } else {\n return x;\n }\n }\n}", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n while(scn.hasNextInt()) {\n int a = scn.nextInt(), b = scn.nextInt();\n int c = euclid(a > b ? a : b, a < b ? a : b);\n System.out.println(c + \" \" + (long)a * b / c);\n }\n }\n \n private static int euclid(int x, int y) {\n if(y > 0) {\n return euclid(y, x % y);\n } else {\n return x;\n }\n }\n}", "Main" ]
import java.util.*; public class Main { private static final Scanner scn = new Scanner(System.in); public static void main(String[] args) { while(scn.hasNextInt()) { int a = scn.nextInt(), b = scn.nextInt(); int c = euclid(a > b ? a : b, a < b ? a : b); System.out.println(c + " " + (long)a * b / c); } } private static int euclid(int x, int y) { if(y > 0) { return euclid(y, x % y); } else { return x; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 78, 5 ], [ 78, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 29, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 16, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 46, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 6, 50 ], [ 50, 51 ], [ 78, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 52, 73 ], [ 73, 74 ], [ 52, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n long a = scanner.nextLong();\n long b = scanner.nextLong();\n\n long gcd = gcd(a, b);\n long lcm = (a * b) / gcd;\n\n System.out.println(gcd + \" \" + lcm);\n }\n }\n\n static long gcd(long n, long m) {\n // 剰余を求めて rに入れる\n long r = n % m;\n // nがmの倍数になっているなら最大公約数は m自身になる.\n if (r == 0) {\n return m;\n }\n // n,mの最大公約数は m,rの最大公約数と等しい\n else {\n return gcd(m, r);\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n long a = scanner.nextLong();\n long b = scanner.nextLong();\n\n long gcd = gcd(a, b);\n long lcm = (a * b) / gcd;\n\n System.out.println(gcd + \" \" + lcm);\n }\n }\n\n static long gcd(long n, long m) {\n // 剰余を求めて rに入れる\n long r = n % m;\n // nがmの倍数になっているなら最大公約数は m自身になる.\n if (r == 0) {\n return m;\n }\n // n,mの最大公約数は m,rの最大公約数と等しい\n else {\n return gcd(m, r);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n long a = scanner.nextLong();\n long b = scanner.nextLong();\n\n long gcd = gcd(a, b);\n long lcm = (a * b) / gcd;\n\n System.out.println(gcd + \" \" + lcm);\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n long a = scanner.nextLong();\n long b = scanner.nextLong();\n\n long gcd = gcd(a, b);\n long lcm = (a * b) / gcd;\n\n System.out.println(gcd + \" \" + lcm);\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (scanner.hasNext()) {\n long a = scanner.nextLong();\n long b = scanner.nextLong();\n\n long gcd = gcd(a, b);\n long lcm = (a * b) / gcd;\n\n System.out.println(gcd + \" \" + lcm);\n }", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n long a = scanner.nextLong();\n long b = scanner.nextLong();\n\n long gcd = gcd(a, b);\n long lcm = (a * b) / gcd;\n\n System.out.println(gcd + \" \" + lcm);\n }", "long a = scanner.nextLong();", "a", "scanner.nextLong()", "scanner.nextLong", "scanner", "long b = scanner.nextLong();", "b", "scanner.nextLong()", "scanner.nextLong", "scanner", "long gcd = gcd(a, b);", "gcd", "gcd(a, b)", "gcd", "a", "b", "long lcm = (a * b) / gcd;", "lcm", "(a * b) / gcd", "(a * b)", "a", "b", "gcd", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "String[] args", "args", "static long gcd(long n, long m) {\n // 剰余を求めて rに入れる\n long r = n % m;\n // nがmの倍数になっているなら最大公約数は m自身になる.\n if (r == 0) {\n return m;\n }\n // n,mの最大公約数は m,rの最大公約数と等しい\n else {\n return gcd(m, r);\n }\n }", "gcd", "{\n // 剰余を求めて rに入れる\n long r = n % m;\n // nがmの倍数になっているなら最大公約数は m自身になる.\n if (r == 0) {\n return m;\n }\n // n,mの最大公約数は m,rの最大公約数と等しい\n else {\n return gcd(m, r);\n }\n }", "long r = n % m;", "r", "n % m", "n", "m", "if (r == 0) {\n return m;\n }\n // n,mの最大公約数は m,rの最大公約数と等しい\n else {\n return gcd(m, r);\n }", "r == 0", "r", "0", "{\n return m;\n }", "return m;", "m", "{\n return gcd(m, r);\n }", "return gcd(m, r);", "gcd(m, r)", "gcd", "m", "r", "long n", "n", "long m", "m", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n long a = scanner.nextLong();\n long b = scanner.nextLong();\n\n long gcd = gcd(a, b);\n long lcm = (a * b) / gcd;\n\n System.out.println(gcd + \" \" + lcm);\n }\n }\n\n static long gcd(long n, long m) {\n // 剰余を求めて rに入れる\n long r = n % m;\n // nがmの倍数になっているなら最大公約数は m自身になる.\n if (r == 0) {\n return m;\n }\n // n,mの最大公約数は m,rの最大公約数と等しい\n else {\n return gcd(m, r);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n while (scanner.hasNext()) {\n long a = scanner.nextLong();\n long b = scanner.nextLong();\n\n long gcd = gcd(a, b);\n long lcm = (a * b) / gcd;\n\n System.out.println(gcd + \" \" + lcm);\n }\n }\n\n static long gcd(long n, long m) {\n // 剰余を求めて rに入れる\n long r = n % m;\n // nがmの倍数になっているなら最大公約数は m自身になる.\n if (r == 0) {\n return m;\n }\n // n,mの最大公約数は m,rの最大公約数と等しい\n else {\n return gcd(m, r);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { long a = scanner.nextLong(); long b = scanner.nextLong(); long gcd = gcd(a, b); long lcm = (a * b) / gcd; System.out.println(gcd + " " + lcm); } } static long gcd(long n, long m) { // 剰余を求めて rに入れる long r = n % m; // nがmの倍数になっているなら最大公約数は m自身になる. if (r == 0) { return m; } // n,mの最大公約数は m,rの最大公約数と等しい else { return gcd(m, r); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 17, 41, 13, 41, 13, 42, 4, 18, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 18, 13, 13, 4, 18, 13, 13, 42, 17, 30, 14, 2, 18, 13, 17, 17, 30, 0, 13, 18, 13, 17, 3, 30, 0, 13, 18, 13, 17, 0, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 13, 0, 18, 13, 17, 13, 0, 18, 13, 17, 13, 0, 13, 2, 2, 18, 13, 17, 18, 13, 17, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 140, 8 ], [ 140, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 35, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 34, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 34, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 77, 83 ], [ 71, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 84, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 84, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 34, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 34, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 34, 116 ], [ 116, 117 ], [ 116, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 123, 125 ], [ 119, 126 ], [ 34, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 133, 133 ], [ 133, 134 ], [ 133, 135 ], [ 133, 136 ], [ 9, 137 ], [ 137, 138 ], [ 0, 139 ], [ 139, 140 ], [ 139, 141 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] x = new int[2];\n\t\tint[] y = new int[2];\n\t\tint gcd = 1;\n\t\tint lcm;\n\t\tint temp;\n\t\twhile (scan.hasNext()) {\n\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}\n\t\t\tArrays.sort(x);\n\t\t\twhile(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}\n\n\t\t\ty[0] /= gcd;\n\t\t\ty[1] /= gcd;\n\t\t\tlcm = y[0] * y[1] * gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] x = new int[2];\n\t\tint[] y = new int[2];\n\t\tint gcd = 1;\n\t\tint lcm;\n\t\tint temp;\n\t\twhile (scan.hasNext()) {\n\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}\n\t\t\tArrays.sort(x);\n\t\t\twhile(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}\n\n\t\t\ty[0] /= gcd;\n\t\t\ty[1] /= gcd;\n\t\t\tlcm = y[0] * y[1] * gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] x = new int[2];\n\t\tint[] y = new int[2];\n\t\tint gcd = 1;\n\t\tint lcm;\n\t\tint temp;\n\t\twhile (scan.hasNext()) {\n\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}\n\t\t\tArrays.sort(x);\n\t\t\twhile(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}\n\n\t\t\ty[0] /= gcd;\n\t\t\ty[1] /= gcd;\n\t\t\tlcm = y[0] * y[1] * gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] x = new int[2];\n\t\tint[] y = new int[2];\n\t\tint gcd = 1;\n\t\tint lcm;\n\t\tint temp;\n\t\twhile (scan.hasNext()) {\n\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}\n\t\t\tArrays.sort(x);\n\t\t\twhile(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}\n\n\t\t\ty[0] /= gcd;\n\t\t\ty[1] /= gcd;\n\t\t\tlcm = y[0] * y[1] * gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int[] x = new int[2];", "x", "new int[2]", "2", "int[] y = new int[2];", "y", "new int[2]", "2", "int gcd = 1;", "gcd", "1", "int lcm;", "lcm", "int temp;", "temp", "while (scan.hasNext()) {\n\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}\n\t\t\tArrays.sort(x);\n\t\t\twhile(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}\n\n\t\t\ty[0] /= gcd;\n\t\t\ty[1] /= gcd;\n\t\t\tlcm = y[0] * y[1] * gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}\n\t\t\tArrays.sort(x);\n\t\t\twhile(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}\n\n\t\t\ty[0] /= gcd;\n\t\t\ty[1] /= gcd;\n\t\t\tlcm = y[0] * y[1] * gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}", "for (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < x.length", "i", "x.length", "x", "x.length", "i++", "i++", "i", "{\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}", "{\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}", "x[i] = scan.nextInt()", "x[i]", "x", "i", "scan.nextInt()", "scan.nextInt", "scan", "y[i]=x[i]", "y[i]", "y", "i", "x[i]", "x", "i", "Arrays.sort(x)", "Arrays.sort", "Arrays", "x", "while(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}", "true", "{\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}", "if(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}", "x[0]==0", "x[0]", "x", "0", "0", "{\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}", "gcd=x[1]", "gcd", "x[1]", "x", "1", "break;", "{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}", "temp=x[0]", "temp", "x[0]", "x", "0", "x[0]=x[1]%x[0]", "x[0]", "x", "0", "x[1]%x[0]", "x[1]", "x", "1", "x[0]", "x", "0", "x[1]=temp", "x[1]", "x", "1", "temp", "y[0] /= gcd", "y[0]", "y", "0", "gcd", "y[1] /= gcd", "y[1]", "y", "1", "gcd", "lcm = y[0] * y[1] * gcd", "lcm", "y[0] * y[1] * gcd", "y[0] * y[1] * gcd", "y[0]", "y", "0", "y[1]", "y", "1", "gcd", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] x = new int[2];\n\t\tint[] y = new int[2];\n\t\tint gcd = 1;\n\t\tint lcm;\n\t\tint temp;\n\t\twhile (scan.hasNext()) {\n\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}\n\t\t\tArrays.sort(x);\n\t\t\twhile(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}\n\n\t\t\ty[0] /= gcd;\n\t\t\ty[1] /= gcd;\n\t\t\tlcm = y[0] * y[1] * gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] x = new int[2];\n\t\tint[] y = new int[2];\n\t\tint gcd = 1;\n\t\tint lcm;\n\t\tint temp;\n\t\twhile (scan.hasNext()) {\n\t\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\t\tx[i] = scan.nextInt();\n\t\t\t\ty[i]=x[i];\n\t\t\t}\n\t\t\tArrays.sort(x);\n\t\t\twhile(true){\n\t\t\tif(x[0]==0){\n\t\t\t\tgcd=x[1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\ttemp=x[0];\n\t\t\t\tx[0]=x[1]%x[0];\n\t\t\t\tx[1]=temp;\n\t\t\t}\n\t\t\t}\n\n\t\t\ty[0] /= gcd;\n\t\t\ty[1] /= gcd;\n\t\t\tlcm = y[0] * y[1] * gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] x = new int[2]; int[] y = new int[2]; int gcd = 1; int lcm; int temp; while (scan.hasNext()) { for (int i = 0; i < x.length; i++) { x[i] = scan.nextInt(); y[i]=x[i]; } Arrays.sort(x); while(true){ if(x[0]==0){ gcd=x[1]; break; } else{ temp=x[0]; x[0]=x[1]%x[0]; x[1]=temp; } } y[0] /= gcd; y[1] /= gcd; lcm = y[0] * y[1] * gcd; System.out.println(gcd + " " + lcm); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 2, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 33, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 39, 42 ], [ 6, 43 ], [ 43, 44 ], [ 81, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 45, 60 ], [ 60, 61 ], [ 45, 62 ], [ 62, 63 ], [ 81, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 72, 75 ], [ 64, 76 ], [ 76, 77 ], [ 64, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNextInt()){\n\t\t\tlong x=in.nextLong(), y = in.nextLong();\n\t\t\tSystem.out.println(gcd(x,y) + \" \" + lcm(x,y));\n\t\t}\n\t}\n\n\tprivate static long gcd(long a, long b){\n\t\treturn (a==0)?b:gcd(b%a, a);\n\t}\n\n\tprivate static long lcm(long a, long b){\n\t\treturn a*b/gcd(a,b);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNextInt()){\n\t\t\tlong x=in.nextLong(), y = in.nextLong();\n\t\t\tSystem.out.println(gcd(x,y) + \" \" + lcm(x,y));\n\t\t}\n\t}\n\n\tprivate static long gcd(long a, long b){\n\t\treturn (a==0)?b:gcd(b%a, a);\n\t}\n\n\tprivate static long lcm(long a, long b){\n\t\treturn a*b/gcd(a,b);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNextInt()){\n\t\t\tlong x=in.nextLong(), y = in.nextLong();\n\t\t\tSystem.out.println(gcd(x,y) + \" \" + lcm(x,y));\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNextInt()){\n\t\t\tlong x=in.nextLong(), y = in.nextLong();\n\t\t\tSystem.out.println(gcd(x,y) + \" \" + lcm(x,y));\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(in.hasNextInt()){\n\t\t\tlong x=in.nextLong(), y = in.nextLong();\n\t\t\tSystem.out.println(gcd(x,y) + \" \" + lcm(x,y));\n\t\t}", "in.hasNextInt()", "in.hasNextInt", "in", "{\n\t\t\tlong x=in.nextLong(), y = in.nextLong();\n\t\t\tSystem.out.println(gcd(x,y) + \" \" + lcm(x,y));\n\t\t}", "long x=in.nextLong()", "x", "in.nextLong()", "in.nextLong", "in", "y = in.nextLong();", "y", "in.nextLong()", "in.nextLong", "in", "System.out.println(gcd(x,y) + \" \" + lcm(x,y))", "System.out.println", "System.out", "System", "System.out", "gcd(x,y) + \" \" + lcm(x,y)", "gcd(x,y) + \" \" + lcm(x,y)", "gcd(x,y)", "gcd", "x", "y", "\" \"", "lcm(x,y)", "lcm", "x", "y", "String[] args", "args", "private static long gcd(long a, long b){\n\t\treturn (a==0)?b:gcd(b%a, a);\n\t}", "gcd", "{\n\t\treturn (a==0)?b:gcd(b%a, a);\n\t}", "return (a==0)?b:gcd(b%a, a);", "(a==0)?b:gcd(b%a, a)", "(a==0)", "a", "0", "b", "gcd(b%a, a)", "gcd", "b%a", "b", "a", "a", "long a", "a", "long b", "b", "private static long lcm(long a, long b){\n\t\treturn a*b/gcd(a,b);\n\t}", "lcm", "{\n\t\treturn a*b/gcd(a,b);\n\t}", "return a*b/gcd(a,b);", "a*b/gcd(a,b)", "a*b", "a", "b", "gcd(a,b)", "gcd", "a", "b", "long a", "a", "long b", "b", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNextInt()){\n\t\t\tlong x=in.nextLong(), y = in.nextLong();\n\t\t\tSystem.out.println(gcd(x,y) + \" \" + lcm(x,y));\n\t\t}\n\t}\n\n\tprivate static long gcd(long a, long b){\n\t\treturn (a==0)?b:gcd(b%a, a);\n\t}\n\n\tprivate static long lcm(long a, long b){\n\t\treturn a*b/gcd(a,b);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNextInt()){\n\t\t\tlong x=in.nextLong(), y = in.nextLong();\n\t\t\tSystem.out.println(gcd(x,y) + \" \" + lcm(x,y));\n\t\t}\n\t}\n\n\tprivate static long gcd(long a, long b){\n\t\treturn (a==0)?b:gcd(b%a, a);\n\t}\n\n\tprivate static long lcm(long a, long b){\n\t\treturn a*b/gcd(a,b);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNextInt()){ long x=in.nextLong(), y = in.nextLong(); System.out.println(gcd(x,y) + " " + lcm(x,y)); } } private static long gcd(long a, long b){ return (a==0)?b:gcd(b%a, a); } private static long lcm(long a, long b){ return a*b/gcd(a,b); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 4, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 13, 18 ], [ 18, 19 ], [ 18, 20 ], [ 18, 21 ], [ 21, 22 ], [ 21, 23 ], [ 9, 24 ], [ 24, 25 ], [ 9, 26 ], [ 26, 27 ], [ 4, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 31, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 35, 52 ], [ 52, 53 ], [ 52, 54 ], [ 55, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 4, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 63, 69 ], [ 69, 70 ], [ 4, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 71, 80 ], [ 80, 81 ], [ 4, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 82, 91 ], [ 91, 92 ], [ 4, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ] ]
[ "\nimport java.util.Scanner;\n\nclass Main {\n\tScanner sc = new Scanner(System.in);\n\n\tpublic long gcd(long a,long b){\n\t\treturn b==0?a:gcd(b,a%b);\n\t}\n\t\n\tpublic void run() {\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt(),b=sc.nextInt();\n\t\t\tlong g=gcd(a,b);\n\t\t\tln(g+\" \"+ a*b/g);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n\tpublic static void pr(Object o) {\n\t\tSystem.out.print(o);\n\t}\n\n\tpublic static void ln(Object o) {\n\t\tSystem.out.println(o);\n\t}\n\n\tpublic static void ln() {\n\t\tSystem.out.println();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tScanner sc = new Scanner(System.in);\n\n\tpublic long gcd(long a,long b){\n\t\treturn b==0?a:gcd(b,a%b);\n\t}\n\t\n\tpublic void run() {\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt(),b=sc.nextInt();\n\t\t\tlong g=gcd(a,b);\n\t\t\tln(g+\" \"+ a*b/g);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n\tpublic static void pr(Object o) {\n\t\tSystem.out.print(o);\n\t}\n\n\tpublic static void ln(Object o) {\n\t\tSystem.out.println(o);\n\t}\n\n\tpublic static void ln() {\n\t\tSystem.out.println();\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public long gcd(long a,long b){\n\t\treturn b==0?a:gcd(b,a%b);\n\t}", "gcd", "{\n\t\treturn b==0?a:gcd(b,a%b);\n\t}", "return b==0?a:gcd(b,a%b);", "b==0?a:gcd(b,a%b)", "b==0", "b", "0", "a", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "public void run() {\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt(),b=sc.nextInt();\n\t\t\tlong g=gcd(a,b);\n\t\t\tln(g+\" \"+ a*b/g);\n\t\t}\n\t}", "run", "{\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt(),b=sc.nextInt();\n\t\t\tlong g=gcd(a,b);\n\t\t\tln(g+\" \"+ a*b/g);\n\t\t}\n\t}", "while(sc.hasNext()){\n\t\t\tlong a=sc.nextInt(),b=sc.nextInt();\n\t\t\tlong g=gcd(a,b);\n\t\t\tln(g+\" \"+ a*b/g);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tlong a=sc.nextInt(),b=sc.nextInt();\n\t\t\tlong g=gcd(a,b);\n\t\t\tln(g+\" \"+ a*b/g);\n\t\t}", "long a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b=sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "long g=gcd(a,b);", "g", "gcd(a,b)", "gcd", "a", "b", "ln(g+\" \"+ a*b/g)", "ln", "g+\" \"+ a*b/g", "g+\" \"+ a*b/g", "g", "\" \"", "a*b/g", "a*b", "a", "b", "g", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public static void pr(Object o) {\n\t\tSystem.out.print(o);\n\t}", "pr", "{\n\t\tSystem.out.print(o);\n\t}", "System.out.print(o)", "System.out.print", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln(Object o) {\n\t\tSystem.out.println(o);\n\t}", "ln", "{\n\t\tSystem.out.println(o);\n\t}", "System.out.println(o)", "System.out.println", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln() {\n\t\tSystem.out.println();\n\t}", "ln", "{\n\t\tSystem.out.println();\n\t}", "System.out.println()", "System.out.println", "System.out", "System", "System.out" ]
import java.util.Scanner; class Main { Scanner sc = new Scanner(System.in); public long gcd(long a,long b){ return b==0?a:gcd(b,a%b); } public void run() { while(sc.hasNext()){ long a=sc.nextInt(),b=sc.nextInt(); long g=gcd(a,b); ln(g+" "+ a*b/g); } } public static void main(String[] args) { new Main().run(); } public static void pr(Object o) { System.out.print(o); } public static void ln(Object o) { System.out.println(o); } public static void ln() { System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 4, 13, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 42, 2, 2, 0, 13, 4, 18, 13, 17, 40, 4, 18, 17, 13, 30, 41, 13, 4, 13, 13, 4, 18, 13, 2, 2, 4, 13, 13, 17, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 17, 41, 13, 39, 4, 13, 18, 13, 17, 4, 13, 18, 13, 17, 29, 13, 23, 13, 12, 13, 30, 29, 2, 2, 18, 13, 17, 18, 13, 17, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 4, 13, 13, 41, 13, 40, 17, 42, 2, 0, 13, 2, 18, 13, 17, 18, 13, 17, 17, 30, 0, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 13, 29, 18, 13, 17, 23, 13, 12, 13, 30, 14, 2, 18, 13, 17, 18, 13, 17, 30, 41, 13, 18, 13, 17, 0, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 221, 14 ], [ 221, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 221, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 221, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 44, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 41, 58 ], [ 58, 59 ], [ 221, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 67, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 65, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 79, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 60, 97 ], [ 97, 98 ], [ 221, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 101, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 101, 121 ], [ 121, 122 ], [ 99, 123 ], [ 123, 124 ], [ 221, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 134, 136 ], [ 129, 137 ], [ 137, 138 ], [ 137, 139 ], [ 125, 140 ], [ 140, 141 ], [ 221, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 144, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 144, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 164, 165 ], [ 164, 166 ], [ 157, 167 ], [ 156, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 173, 175 ], [ 168, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 144, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 142, 185 ], [ 185, 186 ], [ 221, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 195, 196 ], [ 195, 197 ], [ 190, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 201, 203 ], [ 198, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 208, 209 ], [ 208, 210 ], [ 198, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 211, 215 ], [ 189, 216 ], [ 216, 217 ], [ 187, 218 ], [ 218, 219 ], [ 0, 220 ], [ 220, 221 ], [ 220, 222 ] ]
[ "import static java.lang.System.out;\nimport static java.lang.Long.parseLong;\nimport java.io.File;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n new Main().printGCDLCM();\n }\n\n public void printGCDLCM() {\n try (Scanner scan = new Scanner(System.in)) {\n gcdLCM(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }\n\n public void printGCDLCM(String inputDataPath) {\n try (Scanner scan = new Scanner(new File(inputDataPath))) {\n gcdLCM(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void gcdLCM(Scanner scan) {\n String inputData;\n while ((inputData = scan.nextLine()) != null && !\"\".equals(inputData)) {\n long[] data = getData(inputData);\n out.println(gcd(data) + \" \" + lcm(data));\n }\n }\n\n private long[] getData(String inputData) {\n String[] dataSplit = inputData.split(\" \");\n long[] data = { parseLong(dataSplit[0]), parseLong(dataSplit[1]) };\n return data;\n }\n\n private long lcm(long[] data) {\n return (data[0] * data[1]) / gcd(data);\n }\n\n private long gcd(long[] data) {\n long[] tmpData = changeAB(data).clone();\n long mod = -1;\n while ((mod = tmpData[0] % tmpData[1]) != 0) {\n tmpData[0] = tmpData[1];\n tmpData[1] = mod;\n }\n return tmpData[1];\n }\n\n private long[] changeAB(long[] data) {\n if (data[0] < data[1]) {\n long tmp = data[0];\n data[0] = data[1];\n data[1] = tmp;\n }\n return data;\n }\n}", "import static java.lang.System.out;", "import static java.lang.System.out;", "import static java.lang.System.out;", "import static java.lang.Long.parseLong;", "import static java.lang.Long.parseLong;", "import static java.lang.Long.parseLong;", "import java.io.File;", "File", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n new Main().printGCDLCM();\n }\n\n public void printGCDLCM() {\n try (Scanner scan = new Scanner(System.in)) {\n gcdLCM(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }\n\n public void printGCDLCM(String inputDataPath) {\n try (Scanner scan = new Scanner(new File(inputDataPath))) {\n gcdLCM(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void gcdLCM(Scanner scan) {\n String inputData;\n while ((inputData = scan.nextLine()) != null && !\"\".equals(inputData)) {\n long[] data = getData(inputData);\n out.println(gcd(data) + \" \" + lcm(data));\n }\n }\n\n private long[] getData(String inputData) {\n String[] dataSplit = inputData.split(\" \");\n long[] data = { parseLong(dataSplit[0]), parseLong(dataSplit[1]) };\n return data;\n }\n\n private long lcm(long[] data) {\n return (data[0] * data[1]) / gcd(data);\n }\n\n private long gcd(long[] data) {\n long[] tmpData = changeAB(data).clone();\n long mod = -1;\n while ((mod = tmpData[0] % tmpData[1]) != 0) {\n tmpData[0] = tmpData[1];\n tmpData[1] = mod;\n }\n return tmpData[1];\n }\n\n private long[] changeAB(long[] data) {\n if (data[0] < data[1]) {\n long tmp = data[0];\n data[0] = data[1];\n data[1] = tmp;\n }\n return data;\n }\n}", "Main", "public static void main(String[] args) {\n new Main().printGCDLCM();\n }", "main", "{\n new Main().printGCDLCM();\n }", "new Main().printGCDLCM()", "new Main().printGCDLCM", "new Main()", "String[] args", "args", "public void printGCDLCM() {\n try (Scanner scan = new Scanner(System.in)) {\n gcdLCM(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }", "printGCDLCM", "{\n try (Scanner scan = new Scanner(System.in)) {\n gcdLCM(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }", "try (Scanner scan = new Scanner(System.in)) {\n gcdLCM(scan);\n } catch (Exception e) {\n System.exit(0);\n }", "catch (Exception e) {\n System.exit(0);\n }", "Exception e", "{\n System.exit(0);\n }", "System.exit(0)", "System.exit", "System", "0", "{\n gcdLCM(scan);\n }", "Scanner scan = new Scanner(System.in)", "Scanner scan = new Scanner(System.in)", "new Scanner(System.in)", "gcdLCM(scan)", "gcdLCM", "scan", "public void printGCDLCM(String inputDataPath) {\n try (Scanner scan = new Scanner(new File(inputDataPath))) {\n gcdLCM(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "printGCDLCM", "{\n try (Scanner scan = new Scanner(new File(inputDataPath))) {\n gcdLCM(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "try (Scanner scan = new Scanner(new File(inputDataPath))) {\n gcdLCM(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n gcdLCM(scan);\n }", "Scanner scan = new Scanner(new File(inputDataPath))", "Scanner scan = new Scanner(new File(inputDataPath))", "new Scanner(new File(inputDataPath))", "gcdLCM(scan)", "gcdLCM", "scan", "String inputDataPath", "inputDataPath", "public void gcdLCM(Scanner scan) {\n String inputData;\n while ((inputData = scan.nextLine()) != null && !\"\".equals(inputData)) {\n long[] data = getData(inputData);\n out.println(gcd(data) + \" \" + lcm(data));\n }\n }", "gcdLCM", "{\n String inputData;\n while ((inputData = scan.nextLine()) != null && !\"\".equals(inputData)) {\n long[] data = getData(inputData);\n out.println(gcd(data) + \" \" + lcm(data));\n }\n }", "String inputData;", "inputData", "while ((inputData = scan.nextLine()) != null && !\"\".equals(inputData)) {\n long[] data = getData(inputData);\n out.println(gcd(data) + \" \" + lcm(data));\n }", "(inputData = scan.nextLine()) != null && !\"\".equals(inputData)", "(inputData = scan.nextLine()) != null", "(inputData = scan.nextLine())", "inputData", "scan.nextLine()", "scan.nextLine", "scan", "null", "!\"\".equals(inputData)", "\"\".equals(inputData)", "\"\".equals", "\"\"", "inputData", "{\n long[] data = getData(inputData);\n out.println(gcd(data) + \" \" + lcm(data));\n }", "long[] data = getData(inputData);", "data", "getData(inputData)", "getData", "inputData", "out.println(gcd(data) + \" \" + lcm(data))", "out.println", "out", "gcd(data) + \" \" + lcm(data)", "gcd(data) + \" \" + lcm(data)", "gcd(data)", "gcd", "data", "\" \"", "lcm(data)", "lcm", "data", "Scanner scan", "scan", "private long[] getData(String inputData) {\n String[] dataSplit = inputData.split(\" \");\n long[] data = { parseLong(dataSplit[0]), parseLong(dataSplit[1]) };\n return data;\n }", "getData", "{\n String[] dataSplit = inputData.split(\" \");\n long[] data = { parseLong(dataSplit[0]), parseLong(dataSplit[1]) };\n return data;\n }", "String[] dataSplit = inputData.split(\" \");", "dataSplit", "inputData.split(\" \")", "inputData.split", "inputData", "\" \"", "long[] data = { parseLong(dataSplit[0]), parseLong(dataSplit[1]) };", "data", "{ parseLong(dataSplit[0]), parseLong(dataSplit[1]) }", "parseLong(dataSplit[0])", "parseLong", "dataSplit[0]", "dataSplit", "0", "parseLong(dataSplit[1])", "parseLong", "dataSplit[1]", "dataSplit", "1", "return data;", "data", "String inputData", "inputData", "private long lcm(long[] data) {\n return (data[0] * data[1]) / gcd(data);\n }", "lcm", "{\n return (data[0] * data[1]) / gcd(data);\n }", "return (data[0] * data[1]) / gcd(data);", "(data[0] * data[1]) / gcd(data)", "(data[0] * data[1])", "data[0]", "data", "0", "data[1]", "data", "1", "gcd(data)", "gcd", "data", "long[] data", "data", "private long gcd(long[] data) {\n long[] tmpData = changeAB(data).clone();\n long mod = -1;\n while ((mod = tmpData[0] % tmpData[1]) != 0) {\n tmpData[0] = tmpData[1];\n tmpData[1] = mod;\n }\n return tmpData[1];\n }", "gcd", "{\n long[] tmpData = changeAB(data).clone();\n long mod = -1;\n while ((mod = tmpData[0] % tmpData[1]) != 0) {\n tmpData[0] = tmpData[1];\n tmpData[1] = mod;\n }\n return tmpData[1];\n }", "long[] tmpData = changeAB(data).clone();", "tmpData", "changeAB(data).clone()", "changeAB(data).clone", "changeAB(data)", "changeAB", "data", "long mod = -1;", "mod", "-1", "1", "while ((mod = tmpData[0] % tmpData[1]) != 0) {\n tmpData[0] = tmpData[1];\n tmpData[1] = mod;\n }", "(mod = tmpData[0] % tmpData[1]) != 0", "(mod = tmpData[0] % tmpData[1])", "mod", "tmpData[0] % tmpData[1]", "tmpData[0]", "tmpData", "0", "tmpData[1]", "tmpData", "1", "0", "{\n tmpData[0] = tmpData[1];\n tmpData[1] = mod;\n }", "tmpData[0] = tmpData[1]", "tmpData[0]", "tmpData", "0", "tmpData[1]", "tmpData", "1", "tmpData[1] = mod", "tmpData[1]", "tmpData", "1", "mod", "return tmpData[1];", "tmpData[1]", "tmpData", "1", "long[] data", "data", "private long[] changeAB(long[] data) {\n if (data[0] < data[1]) {\n long tmp = data[0];\n data[0] = data[1];\n data[1] = tmp;\n }\n return data;\n }", "changeAB", "{\n if (data[0] < data[1]) {\n long tmp = data[0];\n data[0] = data[1];\n data[1] = tmp;\n }\n return data;\n }", "if (data[0] < data[1]) {\n long tmp = data[0];\n data[0] = data[1];\n data[1] = tmp;\n }", "data[0] < data[1]", "data[0]", "data", "0", "data[1]", "data", "1", "{\n long tmp = data[0];\n data[0] = data[1];\n data[1] = tmp;\n }", "long tmp = data[0];", "tmp", "data[0]", "data", "0", "data[0] = data[1]", "data[0]", "data", "0", "data[1]", "data", "1", "data[1] = tmp", "data[1]", "data", "1", "tmp", "return data;", "data", "long[] data", "data", "public class Main {\n\n public static void main(String[] args) {\n new Main().printGCDLCM();\n }\n\n public void printGCDLCM() {\n try (Scanner scan = new Scanner(System.in)) {\n gcdLCM(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }\n\n public void printGCDLCM(String inputDataPath) {\n try (Scanner scan = new Scanner(new File(inputDataPath))) {\n gcdLCM(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void gcdLCM(Scanner scan) {\n String inputData;\n while ((inputData = scan.nextLine()) != null && !\"\".equals(inputData)) {\n long[] data = getData(inputData);\n out.println(gcd(data) + \" \" + lcm(data));\n }\n }\n\n private long[] getData(String inputData) {\n String[] dataSplit = inputData.split(\" \");\n long[] data = { parseLong(dataSplit[0]), parseLong(dataSplit[1]) };\n return data;\n }\n\n private long lcm(long[] data) {\n return (data[0] * data[1]) / gcd(data);\n }\n\n private long gcd(long[] data) {\n long[] tmpData = changeAB(data).clone();\n long mod = -1;\n while ((mod = tmpData[0] % tmpData[1]) != 0) {\n tmpData[0] = tmpData[1];\n tmpData[1] = mod;\n }\n return tmpData[1];\n }\n\n private long[] changeAB(long[] data) {\n if (data[0] < data[1]) {\n long tmp = data[0];\n data[0] = data[1];\n data[1] = tmp;\n }\n return data;\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n new Main().printGCDLCM();\n }\n\n public void printGCDLCM() {\n try (Scanner scan = new Scanner(System.in)) {\n gcdLCM(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }\n\n public void printGCDLCM(String inputDataPath) {\n try (Scanner scan = new Scanner(new File(inputDataPath))) {\n gcdLCM(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void gcdLCM(Scanner scan) {\n String inputData;\n while ((inputData = scan.nextLine()) != null && !\"\".equals(inputData)) {\n long[] data = getData(inputData);\n out.println(gcd(data) + \" \" + lcm(data));\n }\n }\n\n private long[] getData(String inputData) {\n String[] dataSplit = inputData.split(\" \");\n long[] data = { parseLong(dataSplit[0]), parseLong(dataSplit[1]) };\n return data;\n }\n\n private long lcm(long[] data) {\n return (data[0] * data[1]) / gcd(data);\n }\n\n private long gcd(long[] data) {\n long[] tmpData = changeAB(data).clone();\n long mod = -1;\n while ((mod = tmpData[0] % tmpData[1]) != 0) {\n tmpData[0] = tmpData[1];\n tmpData[1] = mod;\n }\n return tmpData[1];\n }\n\n private long[] changeAB(long[] data) {\n if (data[0] < data[1]) {\n long tmp = data[0];\n data[0] = data[1];\n data[1] = tmp;\n }\n return data;\n }\n}", "Main" ]
import static java.lang.System.out; import static java.lang.Long.parseLong; import java.io.File; import java.util.Scanner; public class Main { public static void main(String[] args) { new Main().printGCDLCM(); } public void printGCDLCM() { try (Scanner scan = new Scanner(System.in)) { gcdLCM(scan); } catch (Exception e) { System.exit(0); } } public void printGCDLCM(String inputDataPath) { try (Scanner scan = new Scanner(new File(inputDataPath))) { gcdLCM(scan); } catch (Exception e) { e.printStackTrace(); } } public void gcdLCM(Scanner scan) { String inputData; while ((inputData = scan.nextLine()) != null && !"".equals(inputData)) { long[] data = getData(inputData); out.println(gcd(data) + " " + lcm(data)); } } private long[] getData(String inputData) { String[] dataSplit = inputData.split(" "); long[] data = { parseLong(dataSplit[0]), parseLong(dataSplit[1]) }; return data; } private long lcm(long[] data) { return (data[0] * data[1]) / gcd(data); } private long gcd(long[] data) { long[] tmpData = changeAB(data).clone(); long mod = -1; while ((mod = tmpData[0] % tmpData[1]) != 0) { tmpData[0] = tmpData[1]; tmpData[1] = mod; } return tmpData[1]; } private long[] changeAB(long[] data) { if (data[0] < data[1]) { long tmp = data[0]; data[0] = data[1]; data[1] = tmp; } return data; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 14, 40, 4, 18, 13, 30, 3, 0, 13, 4, 18, 13, 41, 13, 20, 41, 13, 13, 0, 13, 4, 18, 13, 41, 13, 20, 41, 13, 13, 35, 4, 18, 13, 13, 34, 17, 1, 0, 13, 4, 13, 13, 13, 3, 34, 17, 1, 3, 34, 40, 17, 1, 0, 13, 4, 13, 13, 13, 3, 4, 18, 18, 13, 13, 2, 2, 13, 17, 4, 18, 4, 18, 13, 13, 13, 12, 13, 30, 14, 40, 4, 18, 4, 18, 13, 13, 20, 30, 0, 13, 4, 18, 13, 13, 29, 4, 13, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 134, 8 ], [ 134, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 9, 15 ], [ 15, 16 ], [ 134, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 33, 34 ], [ 27, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 27, 40 ], [ 40, 41 ], [ 40, 42 ], [ 27, 43 ], [ 43, 44 ], [ 43, 45 ], [ 27, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 27, 51 ], [ 51, 52 ], [ 51, 53 ], [ 27, 54 ], [ 54, 55 ], [ 54, 56 ], [ 27, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 67, 70 ], [ 64, 71 ], [ 57, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 57, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 85 ], [ 79, 86 ], [ 27, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 93, 93 ], [ 93, 94 ], [ 93, 95 ], [ 93, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 96, 102 ], [ 134, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 108, 114 ], [ 106, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 115, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 123, 126 ], [ 105, 127 ], [ 127, 128 ], [ 103, 129 ], [ 129, 130 ], [ 103, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.math.BigInteger;\nimport java.util.Scanner;\n\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n\n\tvoid run(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a;\n\t\twhile(true){\n\t\t\tif(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi1 = new BigInteger(a);\n\t\t\tBigInteger bi12 = bi1;\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi2 = new BigInteger(a);\n\t\t\tBigInteger bi22 = bi2;\n\t\t\tswitch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1));\n\t\t}\n\t}\n\n\tBigInteger solve(BigInteger bi1, BigInteger bi2){\n\t\tif(!bi1.remainder(bi2).equals(new BigInteger(\"0\"))){\n\t\t\tbi1 = bi1.remainder(bi2);\n\t\t\treturn solve(bi2,bi1);\n\t\t}\n\t\treturn bi2;\n\t}\n}", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n\n\tvoid run(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a;\n\t\twhile(true){\n\t\t\tif(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi1 = new BigInteger(a);\n\t\t\tBigInteger bi12 = bi1;\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi2 = new BigInteger(a);\n\t\t\tBigInteger bi22 = bi2;\n\t\t\tswitch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1));\n\t\t}\n\t}\n\n\tBigInteger solve(BigInteger bi1, BigInteger bi2){\n\t\tif(!bi1.remainder(bi2).equals(new BigInteger(\"0\"))){\n\t\t\tbi1 = bi1.remainder(bi2);\n\t\t\treturn solve(bi2,bi1);\n\t\t}\n\t\treturn bi2;\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String args[]", "args", "void run(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a;\n\t\twhile(true){\n\t\t\tif(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi1 = new BigInteger(a);\n\t\t\tBigInteger bi12 = bi1;\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi2 = new BigInteger(a);\n\t\t\tBigInteger bi22 = bi2;\n\t\t\tswitch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1));\n\t\t}\n\t}", "run", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a;\n\t\twhile(true){\n\t\t\tif(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi1 = new BigInteger(a);\n\t\t\tBigInteger bi12 = bi1;\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi2 = new BigInteger(a);\n\t\t\tBigInteger bi22 = bi2;\n\t\t\tswitch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1));\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a;", "a", "while(true){\n\t\t\tif(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi1 = new BigInteger(a);\n\t\t\tBigInteger bi12 = bi1;\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi2 = new BigInteger(a);\n\t\t\tBigInteger bi22 = bi2;\n\t\t\tswitch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1));\n\t\t}", "true", "{\n\t\t\tif(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi1 = new BigInteger(a);\n\t\t\tBigInteger bi12 = bi1;\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi2 = new BigInteger(a);\n\t\t\tBigInteger bi22 = bi2;\n\t\t\tswitch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1));\n\t\t}", "if(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}", "!sc.hasNext()", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "a = sc.next()", "a", "sc.next()", "sc.next", "sc", "BigInteger bi1 = new BigInteger(a);", "bi1", "new BigInteger(a)", "BigInteger bi12 = bi1;", "bi12", "bi1", "a = sc.next()", "a", "sc.next()", "sc.next", "sc", "BigInteger bi2 = new BigInteger(a);", "bi2", "new BigInteger(a)", "BigInteger bi22 = bi2;", "bi22", "bi2", "switch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}", "bi1.compareTo(bi2)", "bi1.compareTo", "bi1", "bi2", "case 1:", "1", "case 1:", "bi1 = solve(bi1,bi2)", "bi1", "solve(bi1,bi2)", "solve", "bi1", "bi2", "break;", "case 0:", "0", "case 0:", "break;", "case -1:", "-1", "1", "case -1:", "bi1 = solve(bi2,bi1)", "bi1", "solve(bi2,bi1)", "solve", "bi2", "bi1", "break;", "System.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1))", "System.out.println", "System.out", "System", "System.out", "bi1+\" \"+bi12.multiply(bi22).divide(bi1)", "bi1+\" \"+bi12.multiply(bi22).divide(bi1)", "bi1", "\" \"", "bi12.multiply(bi22).divide(bi1)", "bi12.multiply(bi22).divide", "bi12.multiply(bi22)", "bi12.multiply", "bi12", "bi22", "bi1", "BigInteger solve(BigInteger bi1, BigInteger bi2){\n\t\tif(!bi1.remainder(bi2).equals(new BigInteger(\"0\"))){\n\t\t\tbi1 = bi1.remainder(bi2);\n\t\t\treturn solve(bi2,bi1);\n\t\t}\n\t\treturn bi2;\n\t}", "solve", "{\n\t\tif(!bi1.remainder(bi2).equals(new BigInteger(\"0\"))){\n\t\t\tbi1 = bi1.remainder(bi2);\n\t\t\treturn solve(bi2,bi1);\n\t\t}\n\t\treturn bi2;\n\t}", "if(!bi1.remainder(bi2).equals(new BigInteger(\"0\"))){\n\t\t\tbi1 = bi1.remainder(bi2);\n\t\t\treturn solve(bi2,bi1);\n\t\t}", "!bi1.remainder(bi2).equals(new BigInteger(\"0\"))", "bi1.remainder(bi2).equals(new BigInteger(\"0\"))", "bi1.remainder(bi2).equals", "bi1.remainder(bi2)", "bi1.remainder", "bi1", "bi2", "new BigInteger(\"0\")", "{\n\t\t\tbi1 = bi1.remainder(bi2);\n\t\t\treturn solve(bi2,bi1);\n\t\t}", "bi1 = bi1.remainder(bi2)", "bi1", "bi1.remainder(bi2)", "bi1.remainder", "bi1", "bi2", "return solve(bi2,bi1);", "solve(bi2,bi1)", "solve", "bi2", "bi1", "return bi2;", "bi2", "BigInteger bi1", "bi1", "BigInteger bi2", "bi2", "public class Main{\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n\n\tvoid run(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a;\n\t\twhile(true){\n\t\t\tif(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi1 = new BigInteger(a);\n\t\t\tBigInteger bi12 = bi1;\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi2 = new BigInteger(a);\n\t\t\tBigInteger bi22 = bi2;\n\t\t\tswitch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1));\n\t\t}\n\t}\n\n\tBigInteger solve(BigInteger bi1, BigInteger bi2){\n\t\tif(!bi1.remainder(bi2).equals(new BigInteger(\"0\"))){\n\t\t\tbi1 = bi1.remainder(bi2);\n\t\t\treturn solve(bi2,bi1);\n\t\t}\n\t\treturn bi2;\n\t}\n}", "public class Main{\n\tpublic static void main(String args[]){\n\t\tnew Main().run();\n\t}\n\n\tvoid run(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a;\n\t\twhile(true){\n\t\t\tif(!sc.hasNext()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi1 = new BigInteger(a);\n\t\t\tBigInteger bi12 = bi1;\n\t\t\ta = sc.next();\n\t\t\tBigInteger bi2 = new BigInteger(a);\n\t\t\tBigInteger bi22 = bi2;\n\t\t\tswitch(bi1.compareTo(bi2)){\n\t\t\tcase 1:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ??\n\t\t\t\tbi1 = solve(bi1,bi2);\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\t//テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ??\n\t\t\t\tbreak;\n\t\t\tcase -1:\n\t\t\t\tbi1 = solve(bi2,bi1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(bi1+\" \"+bi12.multiply(bi22).divide(bi1));\n\t\t}\n\t}\n\n\tBigInteger solve(BigInteger bi1, BigInteger bi2){\n\t\tif(!bi1.remainder(bi2).equals(new BigInteger(\"0\"))){\n\t\t\tbi1 = bi1.remainder(bi2);\n\t\t\treturn solve(bi2,bi1);\n\t\t}\n\t\treturn bi2;\n\t}\n}", "Main" ]
import java.math.BigInteger; import java.util.Scanner; public class Main{ public static void main(String args[]){ new Main().run(); } void run(){ Scanner sc = new Scanner(System.in); String a; while(true){ if(!sc.hasNext()){ break; } a = sc.next(); BigInteger bi1 = new BigInteger(a); BigInteger bi12 = bi1; a = sc.next(); BigInteger bi2 = new BigInteger(a); BigInteger bi22 = bi2; switch(bi1.compareTo(bi2)){ case 1: //テ・ツシツ陛ヲツ閉ーテ」ツつ暗」ツつ甘・ツ、ツァテ」ツ?催」ツ?? bi1 = solve(bi1,bi2); break; case 0: //テ・ツシツ陛ヲツ閉ーテ」ツ?ィテ・ツ青古」ツ?? break; case -1: bi1 = solve(bi2,bi1); break; } System.out.println(bi1+" "+bi12.multiply(bi22).divide(bi1)); } } BigInteger solve(BigInteger bi1, BigInteger bi2){ if(!bi1.remainder(bi2).equals(new BigInteger("0"))){ bi1 = bi1.remainder(bi2); return solve(bi2,bi1); } return bi2; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 2, 4, 18, 13, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 0, 18, 13, 13, 13, 40, 13, 0, 13, 2, 13, 13, 40, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 13, 30, 29, 17, 14, 2, 2, 13, 13, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 41, 13, 39, 17, 17, 41, 13, 17, 41, 13, 17, 42, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 17, 2, 18, 13, 17, 18, 13, 13, 0, 18, 13, 17, 2, 18, 13, 17, 18, 13, 13, 40, 13, 40, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 17, 2, 18, 13, 17, 18, 13, 13, 40, 13, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 18, 13, 17, 2, 18, 13, 17, 18, 13, 13, 40, 13, 42, 2, 13, 18, 13, 13, 30, 0, 18, 13, 17, 2, 18, 13, 17, 18, 13, 13, 40, 13, 42, 2, 13, 18, 13, 13, 30, 0, 18, 13, 17, 2, 18, 13, 17, 18, 13, 13, 40, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 333, 8 ], [ 333, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 19, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 19, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 42, 45 ], [ 19, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 52, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 9, 66 ], [ 66, 67 ], [ 333, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 70, 80 ], [ 80, 81 ], [ 80, 82 ], [ 70, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 96, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 102, 108 ], [ 108, 109 ], [ 102, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 102, 115 ], [ 115, 116 ], [ 70, 117 ], [ 117, 118 ], [ 117, 119 ], [ 70, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 121, 129 ], [ 129, 130 ], [ 130, 131 ], [ 121, 132 ], [ 133, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 138, 140 ], [ 70, 141 ], [ 141, 142 ], [ 68, 143 ], [ 143, 144 ], [ 333, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 148, 159 ], [ 160, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 166, 167 ], [ 161, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 168, 174 ], [ 174, 175 ], [ 147, 176 ], [ 176, 177 ], [ 145, 178 ], [ 178, 179 ], [ 333, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 185, 187 ], [ 182, 188 ], [ 188, 189 ], [ 188, 190 ], [ 182, 191 ], [ 191, 192 ], [ 191, 193 ], [ 182, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 198, 200 ], [ 195, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 203, 205 ], [ 194, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 212, 214 ], [ 207, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 220, 224 ], [ 224, 225 ], [ 224, 226 ], [ 215, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 227, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 235, 236 ], [ 235, 237 ], [ 215, 238 ], [ 238, 239 ], [ 215, 240 ], [ 240, 241 ], [ 207, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 247, 248 ], [ 247, 249 ], [ 242, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 259 ], [ 259, 260 ], [ 259, 261 ], [ 250, 262 ], [ 262, 263 ], [ 242, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 265, 269 ], [ 269, 270 ], [ 269, 271 ], [ 264, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 274, 276 ], [ 273, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 277, 281 ], [ 281, 282 ], [ 281, 283 ], [ 272, 284 ], [ 284, 285 ], [ 182, 286 ], [ 286, 287 ], [ 287, 288 ], [ 287, 289 ], [ 289, 290 ], [ 289, 291 ], [ 286, 292 ], [ 292, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 293, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 297, 301 ], [ 301, 302 ], [ 301, 303 ], [ 292, 304 ], [ 304, 305 ], [ 182, 306 ], [ 306, 307 ], [ 307, 308 ], [ 307, 309 ], [ 309, 310 ], [ 309, 311 ], [ 306, 312 ], [ 312, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 313, 317 ], [ 317, 318 ], [ 318, 319 ], [ 318, 320 ], [ 317, 321 ], [ 321, 322 ], [ 321, 323 ], [ 312, 324 ], [ 324, 325 ], [ 182, 326 ], [ 326, 327 ], [ 180, 328 ], [ 328, 329 ], [ 180, 330 ], [ 330, 331 ], [ 0, 332 ], [ 332, 333 ], [ 332, 334 ] ]
[ "import java.util.Scanner;\nimport java.math.*;\npublic class Main {\n\tpublic static void main(String[]args){\n\t\tScanner s =new Scanner(System.in);\n\t\twhile(s.hasNext()){\n\t\t\tint a =s.nextInt();\n\t\t\tint b =s.nextInt();\n\t\t\tint[] y =yakusu(a);\n\t\t\tint[] z =yakusu(b);\n\t\t\tint n[]=kobaisu(z,y);\n\t\t\tSystem.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]));\n\t\t}\n\t}\n\tpublic static int[] yakusu(int a){\n\t\tint[] l =new int[(int)Math.sqrt((double)a)+1];\n\t\tint counta=0;\n\t\tfor(int i=2;i<=a;i++){\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tint[] y=new int[counta];\n\t\tfor(int j=0;j<counta;j++){\n\t\t\ty[j]=l[j];\n\t\t}\n\t\treturn y;\n\t}\n\t\n\tpublic static boolean sosu(int a){\n\t\tfor(int j=2;j<=a;j++){\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}\n\t\treturn false;\n\t}\n\tpublic static int[] kobaisu(int[] a,int[] b){\n\t\tint[] n= {1,1};\n\t\tint j=0,i=0;\n\t\t\n\t\twhile(i<a.length&&j<b.length){\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\twhile(i<a.length){\n\t\t\tn[0]=n[0]*a[i];\n\t\t\ti++;\n\t\t}\n\t\twhile(j<b.length){\n\t\t\tn[0]=n[0]*b[j];\n\t\t\tj++;\n\t\t}\n\t\treturn n;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.math.*;", "math.*", "java", "public class Main {\n\tpublic static void main(String[]args){\n\t\tScanner s =new Scanner(System.in);\n\t\twhile(s.hasNext()){\n\t\t\tint a =s.nextInt();\n\t\t\tint b =s.nextInt();\n\t\t\tint[] y =yakusu(a);\n\t\t\tint[] z =yakusu(b);\n\t\t\tint n[]=kobaisu(z,y);\n\t\t\tSystem.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]));\n\t\t}\n\t}\n\tpublic static int[] yakusu(int a){\n\t\tint[] l =new int[(int)Math.sqrt((double)a)+1];\n\t\tint counta=0;\n\t\tfor(int i=2;i<=a;i++){\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tint[] y=new int[counta];\n\t\tfor(int j=0;j<counta;j++){\n\t\t\ty[j]=l[j];\n\t\t}\n\t\treturn y;\n\t}\n\t\n\tpublic static boolean sosu(int a){\n\t\tfor(int j=2;j<=a;j++){\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}\n\t\treturn false;\n\t}\n\tpublic static int[] kobaisu(int[] a,int[] b){\n\t\tint[] n= {1,1};\n\t\tint j=0,i=0;\n\t\t\n\t\twhile(i<a.length&&j<b.length){\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\twhile(i<a.length){\n\t\t\tn[0]=n[0]*a[i];\n\t\t\ti++;\n\t\t}\n\t\twhile(j<b.length){\n\t\t\tn[0]=n[0]*b[j];\n\t\t\tj++;\n\t\t}\n\t\treturn n;\n\t}\n}", "Main", "public static void main(String[]args){\n\t\tScanner s =new Scanner(System.in);\n\t\twhile(s.hasNext()){\n\t\t\tint a =s.nextInt();\n\t\t\tint b =s.nextInt();\n\t\t\tint[] y =yakusu(a);\n\t\t\tint[] z =yakusu(b);\n\t\t\tint n[]=kobaisu(z,y);\n\t\t\tSystem.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]));\n\t\t}\n\t}", "main", "{\n\t\tScanner s =new Scanner(System.in);\n\t\twhile(s.hasNext()){\n\t\t\tint a =s.nextInt();\n\t\t\tint b =s.nextInt();\n\t\t\tint[] y =yakusu(a);\n\t\t\tint[] z =yakusu(b);\n\t\t\tint n[]=kobaisu(z,y);\n\t\t\tSystem.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]));\n\t\t}\n\t}", "Scanner s =new Scanner(System.in);", "s", "new Scanner(System.in)", "while(s.hasNext()){\n\t\t\tint a =s.nextInt();\n\t\t\tint b =s.nextInt();\n\t\t\tint[] y =yakusu(a);\n\t\t\tint[] z =yakusu(b);\n\t\t\tint n[]=kobaisu(z,y);\n\t\t\tSystem.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]));\n\t\t}", "s.hasNext()", "s.hasNext", "s", "{\n\t\t\tint a =s.nextInt();\n\t\t\tint b =s.nextInt();\n\t\t\tint[] y =yakusu(a);\n\t\t\tint[] z =yakusu(b);\n\t\t\tint n[]=kobaisu(z,y);\n\t\t\tSystem.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]));\n\t\t}", "int a =s.nextInt();", "a", "s.nextInt()", "s.nextInt", "s", "int b =s.nextInt();", "b", "s.nextInt()", "s.nextInt", "s", "int[] y =yakusu(a);", "y", "yakusu(a)", "yakusu", "a", "int[] z =yakusu(b);", "z", "yakusu(b)", "yakusu", "b", "int n[]=kobaisu(z,y);", "n", "kobaisu(z,y)", "kobaisu", "z", "y", "System.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]))", "System.out.println", "System.out", "System", "System.out", "Integer.toString(n[1])+\" \"+Integer.toString(n[0])", "Integer.toString(n[1])+\" \"+Integer.toString(n[0])", "Integer.toString(n[1])", "Integer.toString", "Integer", "n[1]", "n", "1", "\" \"", "Integer.toString(n[0])", "Integer.toString", "Integer", "n[0]", "n", "0", "String[]args", "args", "public static int[] yakusu(int a){\n\t\tint[] l =new int[(int)Math.sqrt((double)a)+1];\n\t\tint counta=0;\n\t\tfor(int i=2;i<=a;i++){\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tint[] y=new int[counta];\n\t\tfor(int j=0;j<counta;j++){\n\t\t\ty[j]=l[j];\n\t\t}\n\t\treturn y;\n\t}", "yakusu", "{\n\t\tint[] l =new int[(int)Math.sqrt((double)a)+1];\n\t\tint counta=0;\n\t\tfor(int i=2;i<=a;i++){\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tint[] y=new int[counta];\n\t\tfor(int j=0;j<counta;j++){\n\t\t\ty[j]=l[j];\n\t\t}\n\t\treturn y;\n\t}", "int[] l =new int[(int)Math.sqrt((double)a)+1];", "l", "new int[(int)Math.sqrt((double)a)+1]", "(int)Math.sqrt((double)a)+1", "(int)Math.sqrt((double)a)", "Math.sqrt", "Math", "(double)a", "1", "int counta=0;", "counta", "0", "for(int i=2;i<=a;i++){\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}", "int i=2;", "int i=2;", "i", "2", "i<=a", "i", "a", "i++", "i++", "i", "{\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}", "if(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}", "a%i==0", "a%i", "a", "i", "0", "{\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}", "l[counta]=i", "l[counta]", "l", "counta", "i", "counta++", "counta", "a=a/i", "a", "a/i", "a", "i", "i--", "i", "int[] y=new int[counta];", "y", "new int[counta]", "counta", "for(int j=0;j<counta;j++){\n\t\t\ty[j]=l[j];\n\t\t}", "int j=0;", "int j=0;", "j", "0", "j<counta", "j", "counta", "j++", "j++", "j", "{\n\t\t\ty[j]=l[j];\n\t\t}", "{\n\t\t\ty[j]=l[j];\n\t\t}", "y[j]=l[j]", "y[j]", "y", "j", "l[j]", "l", "j", "return y;", "y", "int a", "a", "public static boolean sosu(int a){\n\t\tfor(int j=2;j<=a;j++){\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}\n\t\treturn false;\n\t}", "sosu", "{\n\t\tfor(int j=2;j<=a;j++){\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}\n\t\treturn false;\n\t}", "for(int j=2;j<=a;j++){\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}", "int j=2;", "int j=2;", "j", "2", "j<=a", "j", "a", "j++", "j++", "j", "{\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}", "{\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}", "if(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;", "a==j", "a", "j", "{\n\t\t\t\treturn true;\n\t\t\t}", "return true;", "true", "if(a%j==0)return false;", "a%j==0", "a%j", "a", "j", "0", "return false;", "false", "return false;", "false", "int a", "a", "public static int[] kobaisu(int[] a,int[] b){\n\t\tint[] n= {1,1};\n\t\tint j=0,i=0;\n\t\t\n\t\twhile(i<a.length&&j<b.length){\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\twhile(i<a.length){\n\t\t\tn[0]=n[0]*a[i];\n\t\t\ti++;\n\t\t}\n\t\twhile(j<b.length){\n\t\t\tn[0]=n[0]*b[j];\n\t\t\tj++;\n\t\t}\n\t\treturn n;\n\t}", "kobaisu", "{\n\t\tint[] n= {1,1};\n\t\tint j=0,i=0;\n\t\t\n\t\twhile(i<a.length&&j<b.length){\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\twhile(i<a.length){\n\t\t\tn[0]=n[0]*a[i];\n\t\t\ti++;\n\t\t}\n\t\twhile(j<b.length){\n\t\t\tn[0]=n[0]*b[j];\n\t\t\tj++;\n\t\t}\n\t\treturn n;\n\t}", "int[] n= {1,1};", "n", "{1,1}", "1", "1", "int j=0", "j", "0", "i=0;", "i", "0", "while(i<a.length&&j<b.length){\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t}", "i<a.length&&j<b.length", "i<a.length", "i", "a.length", "a", "a.length", "j<b.length", "j", "b.length", "b", "b.length", "{\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t}", "if(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}", "a[i]==b[j]", "a[i]", "a", "i", "b[j]", "b", "j", "{\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}", "n[0]=n[0]*a[i]", "n[0]", "n", "0", "n[0]*a[i]", "n[0]", "n", "0", "a[i]", "a", "i", "n[1]=n[1]*a[i]", "n[1]", "n", "1", "n[1]*a[i]", "n[1]", "n", "1", "a[i]", "a", "i", "i++", "i", "j++", "j", "if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}", "a[i]>b[j]", "a[i]", "a", "i", "b[j]", "b", "j", "{\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}", "n[0]=n[0]*b[j]", "n[0]", "n", "0", "n[0]*b[j]", "n[0]", "n", "0", "b[j]", "b", "j", "j++", "j", "if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}", "a[i]<b[j]", "a[i]", "a", "i", "b[j]", "b", "j", "{\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}", "n[0]=n[0]*a[i]", "n[0]", "n", "0", "n[0]*a[i]", "n[0]", "n", "0", "a[i]", "a", "i", "i++", "i", "while(i<a.length){\n\t\t\tn[0]=n[0]*a[i];\n\t\t\ti++;\n\t\t}", "i<a.length", "i", "a.length", "a", "a.length", "{\n\t\t\tn[0]=n[0]*a[i];\n\t\t\ti++;\n\t\t}", "n[0]=n[0]*a[i]", "n[0]", "n", "0", "n[0]*a[i]", "n[0]", "n", "0", "a[i]", "a", "i", "i++", "i", "while(j<b.length){\n\t\t\tn[0]=n[0]*b[j];\n\t\t\tj++;\n\t\t}", "j<b.length", "j", "b.length", "b", "b.length", "{\n\t\t\tn[0]=n[0]*b[j];\n\t\t\tj++;\n\t\t}", "n[0]=n[0]*b[j]", "n[0]", "n", "0", "n[0]*b[j]", "n[0]", "n", "0", "b[j]", "b", "j", "j++", "j", "return n;", "n", "int[] a", "a", "int[] b", "b", "public class Main {\n\tpublic static void main(String[]args){\n\t\tScanner s =new Scanner(System.in);\n\t\twhile(s.hasNext()){\n\t\t\tint a =s.nextInt();\n\t\t\tint b =s.nextInt();\n\t\t\tint[] y =yakusu(a);\n\t\t\tint[] z =yakusu(b);\n\t\t\tint n[]=kobaisu(z,y);\n\t\t\tSystem.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]));\n\t\t}\n\t}\n\tpublic static int[] yakusu(int a){\n\t\tint[] l =new int[(int)Math.sqrt((double)a)+1];\n\t\tint counta=0;\n\t\tfor(int i=2;i<=a;i++){\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tint[] y=new int[counta];\n\t\tfor(int j=0;j<counta;j++){\n\t\t\ty[j]=l[j];\n\t\t}\n\t\treturn y;\n\t}\n\t\n\tpublic static boolean sosu(int a){\n\t\tfor(int j=2;j<=a;j++){\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}\n\t\treturn false;\n\t}\n\tpublic static int[] kobaisu(int[] a,int[] b){\n\t\tint[] n= {1,1};\n\t\tint j=0,i=0;\n\t\t\n\t\twhile(i<a.length&&j<b.length){\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\twhile(i<a.length){\n\t\t\tn[0]=n[0]*a[i];\n\t\t\ti++;\n\t\t}\n\t\twhile(j<b.length){\n\t\t\tn[0]=n[0]*b[j];\n\t\t\tj++;\n\t\t}\n\t\treturn n;\n\t}\n}", "public class Main {\n\tpublic static void main(String[]args){\n\t\tScanner s =new Scanner(System.in);\n\t\twhile(s.hasNext()){\n\t\t\tint a =s.nextInt();\n\t\t\tint b =s.nextInt();\n\t\t\tint[] y =yakusu(a);\n\t\t\tint[] z =yakusu(b);\n\t\t\tint n[]=kobaisu(z,y);\n\t\t\tSystem.out.println(Integer.toString(n[1])+\" \"+Integer.toString(n[0]));\n\t\t}\n\t}\n\tpublic static int[] yakusu(int a){\n\t\tint[] l =new int[(int)Math.sqrt((double)a)+1];\n\t\tint counta=0;\n\t\tfor(int i=2;i<=a;i++){\n\t\t\tif(a%i==0){\n\t\t\t\tl[counta]=i;\n\t\t\t\tcounta++;\n\t\t\t\ta=a/i;\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t\tint[] y=new int[counta];\n\t\tfor(int j=0;j<counta;j++){\n\t\t\ty[j]=l[j];\n\t\t}\n\t\treturn y;\n\t}\n\t\n\tpublic static boolean sosu(int a){\n\t\tfor(int j=2;j<=a;j++){\n\t\t\tif(a==j){\n\t\t\t\treturn true;\n\t\t\t}else if(a%j==0)return false;\n\t\t}\n\t\treturn false;\n\t}\n\tpublic static int[] kobaisu(int[] a,int[] b){\n\t\tint[] n= {1,1};\n\t\tint j=0,i=0;\n\t\t\n\t\twhile(i<a.length&&j<b.length){\n\t\t\tif(a[i]==b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\tn[1]=n[1]*a[i];\n\t\t\t\ti++;j++;\n\t\t\t}else if(a[i]>b[j]){\n\t\t\t\tn[0]=n[0]*b[j];\n\t\t\t\tj++;\t\t\n\t\t\t}else if(a[i]<b[j]){\n\t\t\t\tn[0]=n[0]*a[i];\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\twhile(i<a.length){\n\t\t\tn[0]=n[0]*a[i];\n\t\t\ti++;\n\t\t}\n\t\twhile(j<b.length){\n\t\t\tn[0]=n[0]*b[j];\n\t\t\tj++;\n\t\t}\n\t\treturn n;\n\t}\n}", "Main" ]
import java.util.Scanner; import java.math.*; public class Main { public static void main(String[]args){ Scanner s =new Scanner(System.in); while(s.hasNext()){ int a =s.nextInt(); int b =s.nextInt(); int[] y =yakusu(a); int[] z =yakusu(b); int n[]=kobaisu(z,y); System.out.println(Integer.toString(n[1])+" "+Integer.toString(n[0])); } } public static int[] yakusu(int a){ int[] l =new int[(int)Math.sqrt((double)a)+1]; int counta=0; for(int i=2;i<=a;i++){ if(a%i==0){ l[counta]=i; counta++; a=a/i; i--; } } int[] y=new int[counta]; for(int j=0;j<counta;j++){ y[j]=l[j]; } return y; } public static boolean sosu(int a){ for(int j=2;j<=a;j++){ if(a==j){ return true; }else if(a%j==0)return false; } return false; } public static int[] kobaisu(int[] a,int[] b){ int[] n= {1,1}; int j=0,i=0; while(i<a.length&&j<b.length){ if(a[i]==b[j]){ n[0]=n[0]*a[i]; n[1]=n[1]*a[i]; i++;j++; }else if(a[i]>b[j]){ n[0]=n[0]*b[j]; j++; }else if(a[i]<b[j]){ n[0]=n[0]*a[i]; i++; } } while(i<a.length){ n[0]=n[0]*a[i]; i++; } while(j<b.length){ n[0]=n[0]*b[j]; j++; } return n; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 62, 5 ], [ 62, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 16, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 16, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 53, 53 ], [ 53, 54 ], [ 53, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 6, 59 ], [ 59, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (stdIn.hasNext()) {\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tlong c = 0;\n\t\t\tlong d = a * b;\n\t\t\tif (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\tSystem.out.println(c + \" \" + d/c);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (stdIn.hasNext()) {\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tlong c = 0;\n\t\t\tlong d = a * b;\n\t\t\tif (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\tSystem.out.println(c + \" \" + d/c);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (stdIn.hasNext()) {\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tlong c = 0;\n\t\t\tlong d = a * b;\n\t\t\tif (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\tSystem.out.println(c + \" \" + d/c);\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (stdIn.hasNext()) {\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tlong c = 0;\n\t\t\tlong d = a * b;\n\t\t\tif (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\tSystem.out.println(c + \" \" + d/c);\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while (stdIn.hasNext()) {\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tlong c = 0;\n\t\t\tlong d = a * b;\n\t\t\tif (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\tSystem.out.println(c + \" \" + d/c);\n\t\t}", "stdIn.hasNext()", "stdIn.hasNext", "stdIn", "{\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tlong c = 0;\n\t\t\tlong d = a * b;\n\t\t\tif (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\tSystem.out.println(c + \" \" + d/c);\n\t\t}", "long a = stdIn.nextLong();", "a", "stdIn.nextLong()", "stdIn.nextLong", "stdIn", "long b = stdIn.nextLong();", "b", "stdIn.nextLong()", "stdIn.nextLong", "stdIn", "long c = 0;", "c", "0", "long d = a * b;", "d", "a * b", "a", "b", "if (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}", "a < b", "a", "b", "{\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t}", "c = a", "c", "a", "{\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}", "c = b", "c", "b", "System.out.println(c + \" \" + d/c)", "System.out.println", "System.out", "System", "System.out", "c + \" \" + d/c", "c + \" \" + d/c", "c", "\" \"", "d/c", "d", "c", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (stdIn.hasNext()) {\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tlong c = 0;\n\t\t\tlong d = a * b;\n\t\t\tif (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\tSystem.out.println(c + \" \" + d/c);\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile (stdIn.hasNext()) {\n\t\t\tlong a = stdIn.nextLong();\n\t\t\tlong b = stdIn.nextLong();\n\t\t\tlong c = 0;\n\t\t\tlong d = a * b;\n\t\t\tif (a < b) {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = b % a;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\tb = a;\n\t\t\t\t\ta = c;\n\n\t\t\t\t}\n\t\t\t\tc = a;\n\t\t\t} else {\n\t\t\t\toutside: for (;;) {\n\t\t\t\t\tc = a % b;\n\t\t\t\t\tif (c == 0)\n\t\t\t\t\t\tbreak outside;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = c;\n\n\t\t\t\t}\n\t\t\t\tc = b;\n\t\t\t}\n\t\t\tSystem.out.println(c + \" \" + d/c);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while (stdIn.hasNext()) { long a = stdIn.nextLong(); long b = stdIn.nextLong(); long c = 0; long d = a * b; if (a < b) { outside: for (;;) { c = b % a; if (c == 0) break outside; b = a; a = c; } c = a; } else { outside: for (;;) { c = a % b; if (c == 0) break outside; a = b; b = c; } c = b; } System.out.println(c + " " + d/c); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 88, 11 ], [ 88, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 22, 25 ], [ 25, 26 ], [ 25, 27 ], [ 12, 28 ], [ 28, 29 ], [ 12, 30 ], [ 30, 31 ], [ 88, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 40, 43 ], [ 32, 44 ], [ 44, 45 ], [ 32, 46 ], [ 46, 47 ], [ 88, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 58, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 76, 79 ], [ 75, 80 ], [ 75, 81 ], [ 81, 82 ], [ 81, 83 ], [ 81, 84 ], [ 48, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport java.math.*;\n\n\npublic class Main\n{\n\npublic static long GCD(long a, long b){\n\tif(b == 0) return a;\n\telse return GCD(b, a%b);\n}\n\npublic static long LCM(long a, long b){\n\treturn (a * b)/GCD(a, b);\n}\n\n\n\n\n public static void main(String args[]) throws Exception\n {\n \tScanner cin = new Scanner(System.in);\n \twhile(cin.hasNext()){\n \t\tlong a = cin.nextLong();\n \t\tlong b = cin.nextLong();\n \t\t//System.out.println(GCD(a, b));\n \t\tSystem.out.println( GCD(a, b) + \" \" + LCM(a, b));\n \t}\n\n}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "public class Main\n{\n\npublic static long GCD(long a, long b){\n\tif(b == 0) return a;\n\telse return GCD(b, a%b);\n}\n\npublic static long LCM(long a, long b){\n\treturn (a * b)/GCD(a, b);\n}\n\n\n\n\n public static void main(String args[]) throws Exception\n {\n \tScanner cin = new Scanner(System.in);\n \twhile(cin.hasNext()){\n \t\tlong a = cin.nextLong();\n \t\tlong b = cin.nextLong();\n \t\t//System.out.println(GCD(a, b));\n \t\tSystem.out.println( GCD(a, b) + \" \" + LCM(a, b));\n \t}\n\n}\n}", "Main", "public static long GCD(long a, long b){\n\tif(b == 0) return a;\n\telse return GCD(b, a%b);\n}", "GCD", "{\n\tif(b == 0) return a;\n\telse return GCD(b, a%b);\n}", "if(b == 0) return a;\n\telse return GCD(b, a%b);", "b == 0", "b", "0", "return a;", "a", "return GCD(b, a%b);", "GCD(b, a%b)", "GCD", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "public static long LCM(long a, long b){\n\treturn (a * b)/GCD(a, b);\n}", "LCM", "{\n\treturn (a * b)/GCD(a, b);\n}", "return (a * b)/GCD(a, b);", "(a * b)/GCD(a, b)", "(a * b)", "a", "b", "GCD(a, b)", "GCD", "a", "b", "long a", "a", "long b", "b", "public static void main(String args[]) throws Exception\n {\n \tScanner cin = new Scanner(System.in);\n \twhile(cin.hasNext()){\n \t\tlong a = cin.nextLong();\n \t\tlong b = cin.nextLong();\n \t\t//System.out.println(GCD(a, b));\n \t\tSystem.out.println( GCD(a, b) + \" \" + LCM(a, b));\n \t}\n\n}", "main", "{\n \tScanner cin = new Scanner(System.in);\n \twhile(cin.hasNext()){\n \t\tlong a = cin.nextLong();\n \t\tlong b = cin.nextLong();\n \t\t//System.out.println(GCD(a, b));\n \t\tSystem.out.println( GCD(a, b) + \" \" + LCM(a, b));\n \t}\n\n}", "Scanner cin = new Scanner(System.in);", "cin", "new Scanner(System.in)", "while(cin.hasNext()){\n \t\tlong a = cin.nextLong();\n \t\tlong b = cin.nextLong();\n \t\t//System.out.println(GCD(a, b));\n \t\tSystem.out.println( GCD(a, b) + \" \" + LCM(a, b));\n \t}", "cin.hasNext()", "cin.hasNext", "cin", "{\n \t\tlong a = cin.nextLong();\n \t\tlong b = cin.nextLong();\n \t\t//System.out.println(GCD(a, b));\n \t\tSystem.out.println( GCD(a, b) + \" \" + LCM(a, b));\n \t}", "long a = cin.nextLong();", "a", "cin.nextLong()", "cin.nextLong", "cin", "long b = cin.nextLong();", "b", "cin.nextLong()", "cin.nextLong", "cin", "System.out.println( GCD(a, b) + \" \" + LCM(a, b))", "System.out.println", "System.out", "System", "System.out", "GCD(a, b) + \" \" + LCM(a, b)", "GCD(a, b) + \" \" + LCM(a, b)", "GCD(a, b)", "GCD", "a", "b", "\" \"", "LCM(a, b)", "LCM", "a", "b", "String args[]", "args", "public class Main\n{\n\npublic static long GCD(long a, long b){\n\tif(b == 0) return a;\n\telse return GCD(b, a%b);\n}\n\npublic static long LCM(long a, long b){\n\treturn (a * b)/GCD(a, b);\n}\n\n\n\n\n public static void main(String args[]) throws Exception\n {\n \tScanner cin = new Scanner(System.in);\n \twhile(cin.hasNext()){\n \t\tlong a = cin.nextLong();\n \t\tlong b = cin.nextLong();\n \t\t//System.out.println(GCD(a, b));\n \t\tSystem.out.println( GCD(a, b) + \" \" + LCM(a, b));\n \t}\n\n}\n}", "public class Main\n{\n\npublic static long GCD(long a, long b){\n\tif(b == 0) return a;\n\telse return GCD(b, a%b);\n}\n\npublic static long LCM(long a, long b){\n\treturn (a * b)/GCD(a, b);\n}\n\n\n\n\n public static void main(String args[]) throws Exception\n {\n \tScanner cin = new Scanner(System.in);\n \twhile(cin.hasNext()){\n \t\tlong a = cin.nextLong();\n \t\tlong b = cin.nextLong();\n \t\t//System.out.println(GCD(a, b));\n \t\tSystem.out.println( GCD(a, b) + \" \" + LCM(a, b));\n \t}\n\n}\n}", "Main" ]
import java.io.*; import java.util.*; import java.math.*; public class Main { public static long GCD(long a, long b){ if(b == 0) return a; else return GCD(b, a%b); } public static long LCM(long a, long b){ return (a * b)/GCD(a, b); } public static void main(String args[]) throws Exception { Scanner cin = new Scanner(System.in); while(cin.hasNext()){ long a = cin.nextLong(); long b = cin.nextLong(); //System.out.println(GCD(a, b)); System.out.println( GCD(a, b) + " " + LCM(a, b)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 0, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 4, 13, 13, 13, 13, 4, 18, 4, 18, 4, 18, 4, 18, 13, 13, 17, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 42, 2, 13, 17, 30, 0, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 147, 14 ], [ 147, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 36, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 36, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 58, 61 ], [ 36, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 64, 67 ], [ 64, 68 ], [ 36, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 73, 79 ], [ 71, 80 ], [ 69, 81 ], [ 17, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 15, 88 ], [ 88, 89 ], [ 147, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 99, 106 ], [ 106, 107 ], [ 106, 108 ], [ 92, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 113, 122 ], [ 122, 123 ], [ 122, 124 ], [ 92, 125 ], [ 125, 126 ], [ 90, 127 ], [ 127, 128 ], [ 90, 129 ], [ 129, 130 ], [ 147, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 131, 140 ], [ 140, 141 ], [ 131, 142 ], [ 142, 143 ], [ 131, 144 ], [ 144, 145 ], [ 0, 146 ], [ 146, 147 ], [ 146, 148 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringTokenizer to;\n\t\tString s;\n\t\twhile ((s = reader.readLine()) != null) {\n\t\t\tto = new StringTokenizer(s);\n\t\t\tint a = Integer.parseInt(to.nextToken());\n\t\t\tint b = Integer.parseInt(to.nextToken());\n\t\t\tint GCD = getGCD(a, b);\n\t\t\tint LCM = getLCM(a, b, GCD);\n\t\t\tbuilder.append(GCD).append(' ').append(LCM).append('\\n');\n\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\t\tint tmp;\n\t\tif (a > b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}\n\t\twhile (a != 0) {\n\t\t\ttmp = a;\n\t\t\ta = b % a;\n\t\t\tb = tmp;\n\t\t}\n\t\treturn b;\n\t}\n\n\tpublic static int getLCM(int a, int b, int GCD) {\n\t\treturn a / GCD * b;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringTokenizer to;\n\t\tString s;\n\t\twhile ((s = reader.readLine()) != null) {\n\t\t\tto = new StringTokenizer(s);\n\t\t\tint a = Integer.parseInt(to.nextToken());\n\t\t\tint b = Integer.parseInt(to.nextToken());\n\t\t\tint GCD = getGCD(a, b);\n\t\t\tint LCM = getLCM(a, b, GCD);\n\t\t\tbuilder.append(GCD).append(' ').append(LCM).append('\\n');\n\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\t\tint tmp;\n\t\tif (a > b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}\n\t\twhile (a != 0) {\n\t\t\ttmp = a;\n\t\t\ta = b % a;\n\t\t\tb = tmp;\n\t\t}\n\t\treturn b;\n\t}\n\n\tpublic static int getLCM(int a, int b, int GCD) {\n\t\treturn a / GCD * b;\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringTokenizer to;\n\t\tString s;\n\t\twhile ((s = reader.readLine()) != null) {\n\t\t\tto = new StringTokenizer(s);\n\t\t\tint a = Integer.parseInt(to.nextToken());\n\t\t\tint b = Integer.parseInt(to.nextToken());\n\t\t\tint GCD = getGCD(a, b);\n\t\t\tint LCM = getLCM(a, b, GCD);\n\t\t\tbuilder.append(GCD).append(' ').append(LCM).append('\\n');\n\n\t\t}\n\t\tSystem.out.print(builder);\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringTokenizer to;\n\t\tString s;\n\t\twhile ((s = reader.readLine()) != null) {\n\t\t\tto = new StringTokenizer(s);\n\t\t\tint a = Integer.parseInt(to.nextToken());\n\t\t\tint b = Integer.parseInt(to.nextToken());\n\t\t\tint GCD = getGCD(a, b);\n\t\t\tint LCM = getLCM(a, b, GCD);\n\t\t\tbuilder.append(GCD).append(' ').append(LCM).append('\\n');\n\n\t\t}\n\t\tSystem.out.print(builder);\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));", "reader", "new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "StringTokenizer to;", "to", "String s;", "s", "while ((s = reader.readLine()) != null) {\n\t\t\tto = new StringTokenizer(s);\n\t\t\tint a = Integer.parseInt(to.nextToken());\n\t\t\tint b = Integer.parseInt(to.nextToken());\n\t\t\tint GCD = getGCD(a, b);\n\t\t\tint LCM = getLCM(a, b, GCD);\n\t\t\tbuilder.append(GCD).append(' ').append(LCM).append('\\n');\n\n\t\t}", "(s = reader.readLine()) != null", "(s = reader.readLine())", "s", "reader.readLine()", "reader.readLine", "reader", "null", "{\n\t\t\tto = new StringTokenizer(s);\n\t\t\tint a = Integer.parseInt(to.nextToken());\n\t\t\tint b = Integer.parseInt(to.nextToken());\n\t\t\tint GCD = getGCD(a, b);\n\t\t\tint LCM = getLCM(a, b, GCD);\n\t\t\tbuilder.append(GCD).append(' ').append(LCM).append('\\n');\n\n\t\t}", "to = new StringTokenizer(s)", "to", "new StringTokenizer(s)", "int a = Integer.parseInt(to.nextToken());", "a", "Integer.parseInt(to.nextToken())", "Integer.parseInt", "Integer", "to.nextToken()", "to.nextToken", "to", "int b = Integer.parseInt(to.nextToken());", "b", "Integer.parseInt(to.nextToken())", "Integer.parseInt", "Integer", "to.nextToken()", "to.nextToken", "to", "int GCD = getGCD(a, b);", "GCD", "getGCD(a, b)", "getGCD", "a", "b", "int LCM = getLCM(a, b, GCD);", "LCM", "getLCM(a, b, GCD)", "getLCM", "a", "b", "GCD", "builder.append(GCD).append(' ').append(LCM).append('\\n')", "builder.append(GCD).append(' ').append(LCM).append", "builder.append(GCD).append(' ').append(LCM)", "builder.append(GCD).append(' ').append", "builder.append(GCD).append(' ')", "builder.append(GCD).append", "builder.append(GCD)", "builder.append", "builder", "GCD", "' '", "LCM", "'\\n'", "System.out.print(builder)", "System.out.print", "System.out", "System", "System.out", "builder", "String[] args", "args", "public static int getGCD(int a, int b) {\n\t\tint tmp;\n\t\tif (a > b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}\n\t\twhile (a != 0) {\n\t\t\ttmp = a;\n\t\t\ta = b % a;\n\t\t\tb = tmp;\n\t\t}\n\t\treturn b;\n\t}", "getGCD", "{\n\t\tint tmp;\n\t\tif (a > b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}\n\t\twhile (a != 0) {\n\t\t\ttmp = a;\n\t\t\ta = b % a;\n\t\t\tb = tmp;\n\t\t}\n\t\treturn b;\n\t}", "int tmp;", "tmp", "if (a > b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}", "a > b", "a", "b", "{\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}", "tmp = a", "tmp", "a", "a = b", "a", "b", "b = tmp", "b", "tmp", "while (a != 0) {\n\t\t\ttmp = a;\n\t\t\ta = b % a;\n\t\t\tb = tmp;\n\t\t}", "a != 0", "a", "0", "{\n\t\t\ttmp = a;\n\t\t\ta = b % a;\n\t\t\tb = tmp;\n\t\t}", "tmp = a", "tmp", "a", "a = b % a", "a", "b % a", "b", "a", "b = tmp", "b", "tmp", "return b;", "b", "int a", "a", "int b", "b", "public static int getLCM(int a, int b, int GCD) {\n\t\treturn a / GCD * b;\n\t}", "getLCM", "{\n\t\treturn a / GCD * b;\n\t}", "return a / GCD * b;", "a / GCD * b", "a / GCD", "a", "GCD", "b", "int a", "a", "int b", "b", "int GCD", "GCD", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringTokenizer to;\n\t\tString s;\n\t\twhile ((s = reader.readLine()) != null) {\n\t\t\tto = new StringTokenizer(s);\n\t\t\tint a = Integer.parseInt(to.nextToken());\n\t\t\tint b = Integer.parseInt(to.nextToken());\n\t\t\tint GCD = getGCD(a, b);\n\t\t\tint LCM = getLCM(a, b, GCD);\n\t\t\tbuilder.append(GCD).append(' ').append(LCM).append('\\n');\n\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\t\tint tmp;\n\t\tif (a > b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}\n\t\twhile (a != 0) {\n\t\t\ttmp = a;\n\t\t\ta = b % a;\n\t\t\tb = tmp;\n\t\t}\n\t\treturn b;\n\t}\n\n\tpublic static int getLCM(int a, int b, int GCD) {\n\t\treturn a / GCD * b;\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringTokenizer to;\n\t\tString s;\n\t\twhile ((s = reader.readLine()) != null) {\n\t\t\tto = new StringTokenizer(s);\n\t\t\tint a = Integer.parseInt(to.nextToken());\n\t\t\tint b = Integer.parseInt(to.nextToken());\n\t\t\tint GCD = getGCD(a, b);\n\t\t\tint LCM = getLCM(a, b, GCD);\n\t\t\tbuilder.append(GCD).append(' ').append(LCM).append('\\n');\n\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\t\tint tmp;\n\t\tif (a > b) {\n\t\t\ttmp = a;\n\t\t\ta = b;\n\t\t\tb = tmp;\n\t\t}\n\t\twhile (a != 0) {\n\t\t\ttmp = a;\n\t\t\ta = b % a;\n\t\t\tb = tmp;\n\t\t}\n\t\treturn b;\n\t}\n\n\tpublic static int getLCM(int a, int b, int GCD) {\n\t\treturn a / GCD * b;\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader reader = new BufferedReader(new InputStreamReader( System.in)); StringBuilder builder = new StringBuilder(); StringTokenizer to; String s; while ((s = reader.readLine()) != null) { to = new StringTokenizer(s); int a = Integer.parseInt(to.nextToken()); int b = Integer.parseInt(to.nextToken()); int GCD = getGCD(a, b); int LCM = getLCM(a, b, GCD); builder.append(GCD).append(' ').append(LCM).append('\n'); } System.out.print(builder); } public static int getGCD(int a, int b) { int tmp; if (a > b) { tmp = a; a = b; b = tmp; } while (a != 0) { tmp = a; a = b % a; b = tmp; } return b; } public static int getLCM(int a, int b, int GCD) { return a / GCD * b; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 38, 5, 13, 30, 4, 18, 4, 18, 13, 4, 18, 18, 13, 18, 13, 13, 17, 13, 30, 42, 2, 2, 13, 17, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 13, 41, 13, 13, 14, 2, 2, 2, 2, 17, 13, 2, 17, 13, 2, 13, 17, 2, 13, 17, 30, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 42, 2, 13, 17, 30, 41, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 41, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 166, 11 ], [ 166, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 27, 36 ], [ 36, 37 ], [ 36, 38 ], [ 27, 39 ], [ 27, 40 ], [ 23, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 42, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 54, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 54, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 75, 77 ], [ 54, 78 ], [ 78, 79 ], [ 78, 80 ], [ 54, 81 ], [ 81, 82 ], [ 81, 83 ], [ 54, 84 ], [ 84, 85 ], [ 87, 86 ], [ 94, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 94, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 97, 99 ], [ 84, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 105, 112 ], [ 112, 113 ], [ 112, 114 ], [ 100, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 125, 126 ], [ 125, 127 ], [ 119, 128 ], [ 128, 129 ], [ 128, 130 ], [ 100, 131 ], [ 131, 132 ], [ 131, 133 ], [ 100, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 100, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 100, 144 ], [ 144, 145 ], [ 144, 146 ], [ 147, 147 ], [ 147, 148 ], [ 147, 149 ], [ 147, 150 ], [ 100, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 157, 157 ], [ 157, 158 ], [ 157, 159 ], [ 157, 160 ], [ 100, 161 ], [ 161, 162 ], [ 12, 163 ], [ 163, 164 ], [ 0, 165 ], [ 165, 166 ], [ 165, 167 ] ]
[ "import java.io.*;\nimport java.util.logging.Level;\nimport java.util.logging.Logger;\n\npublic class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int i = 0;\n try {\n while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.logging.Level;", "Level", "java.util.logging", "import java.util.logging.Logger;", "Logger", "java.util.logging", "public class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int i = 0;\n try {\n while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int i = 0;\n try {\n while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int i = 0;\n try {\n while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "int i = 0;", "i", "0", "try {\n while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }", "catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }", "IOException ex", "{\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }", "Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex)", "Logger.getLogger(Main.class.getName()).log", "Logger.getLogger(Main.class.getName())", "Logger.getLogger", "Logger", "Main.class.getName()", "Main.class.getName", "Main.class", "Main.class", "Level.SEVERE", "Level", "Level.SEVERE", "null", "ex", "{\n while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }\n }", "while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }", "i < 50 && (str = br.readLine()) != null", "i < 50", "i", "50", "(str = br.readLine()) != null", "(str = br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }", "String[] s = str.split(\" \", 0);", "s", "str.split(\" \", 0)", "str.split", "str", "\" \"", "0", "int x = Integer.parseInt(s[0]);", "x", "Integer.parseInt(s[0])", "Integer.parseInt", "Integer", "s[0]", "s", "0", "int y = Integer.parseInt(s[1]);", "y", "Integer.parseInt(s[1])", "Integer.parseInt", "Integer", "s[1]", "s", "1", "int a = x;", "a", "x", "int b = y;", "b", "y", "if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }", "0 < x && 0 < y && x < 2000000001 && y < 2000000001", "x < 2000000001", "0 < x && 0 < y && x < 2000000001 && y < 2000000001", "0 < x", "0", "x", "0 < y", "0", "y", "x < 2000000001", "x", "2000000001", "y < 2000000001", "y", "2000000001", "{\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }", "if (x < y) {\n int z = x;\n x = y;\n y = z;\n }", "x < y", "x", "y", "{\n int z = x;\n x = y;\n y = z;\n }", "int z = x;", "z", "x", "x = y", "x", "y", "y = z", "y", "z", "while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }", "y > 0", "y", "0", "{\n int r = x % y;\n x = y;\n y = r;\n }", "int r = x % y;", "r", "x % y", "x", "y", "x = y", "x", "y", "y = r", "y", "r", "int G = x;", "G", "x", "int aa = a/G;", "aa", "a/G", "a", "G", "int bb = b/G;", "bb", "b/G", "b", "G", "int L = aa*bb*G;", "L", "aa*bb*G", "aa*bb*G", "aa", "bb", "G", "System.out.println(G + \" \" + L)", "System.out.println", "System.out", "System", "System.out", "G + \" \" + L", "G + \" \" + L", "G", "\" \"", "L", "i++", "i", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int i = 0;\n try {\n while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str;\n int i = 0;\n try {\n while (i < 50 && (str = br.readLine()) != null) {\n String[] s = str.split(\" \", 0);\n int x = Integer.parseInt(s[0]);\n int y = Integer.parseInt(s[1]);\n int a = x;\n int b = y;\n if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) {\n if (x < y) {\n int z = x;\n x = y;\n y = z;\n }\n while (y > 0) {\n int r = x % y;\n x = y;\n y = r;\n }\n int G = x;\n int aa = a/G;\n int bb = b/G;\n int L = aa*bb*G;\n System.out.println(G + \" \" + L);\n i++;\n }\n }\n } catch (IOException ex) {\n Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "Main" ]
import java.io.*; import java.util.logging.Level; import java.util.logging.Logger; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; int i = 0; try { while (i < 50 && (str = br.readLine()) != null) { String[] s = str.split(" ", 0); int x = Integer.parseInt(s[0]); int y = Integer.parseInt(s[1]); int a = x; int b = y; if (0 < x && 0 < y && x < 2000000001 && y < 2000000001) { if (x < y) { int z = x; x = y; y = z; } while (y > 0) { int r = x % y; x = y; y = r; } int G = x; int aa = a/G; int bb = b/G; int L = aa*bb*G; System.out.println(G + " " + L); i++; } } } catch (IOException ex) { Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 18, 13, 17, 18, 13, 17, 17, 4, 13, 18, 13, 17, 18, 13, 17, 23, 13, 12, 13, 30, 14, 2, 13, 13, 29, 13, 41, 13, 17, 14, 2, 13, 13, 30, 14, 2, 2, 13, 13, 17, 29, 13, 0, 13, 2, 2, 13, 17, 17, 30, 14, 2, 2, 13, 13, 17, 29, 13, 0, 13, 2, 2, 13, 17, 17, 11, 1, 41, 13, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 29, 13, 29, 17, 23, 13, 23, 13, 12, 13, 30, 41, 13, 13, 41, 13, 13, 42, 2, 13, 17, 30, 14, 2, 13, 13, 30, 29, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 29, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 218, 11 ], [ 218, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 33, 38 ], [ 30, 39 ], [ 39, 40 ], [ 39, 41 ], [ 42, 43 ], [ 42, 44 ], [ 30, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 30, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 76, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 12, 94 ], [ 94, 95 ], [ 218, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 98, 105 ], [ 105, 106 ], [ 105, 107 ], [ 98, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 112, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 108, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 129, 135 ], [ 135, 136 ], [ 128, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 98, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 149, 150 ], [ 149, 151 ], [ 144, 152 ], [ 152, 153 ], [ 153, 154 ], [ 144, 155 ], [ 156, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 158, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 157, 169 ], [ 169, 170 ], [ 170, 171 ], [ 98, 172 ], [ 172, 173 ], [ 96, 174 ], [ 174, 175 ], [ 96, 176 ], [ 176, 177 ], [ 218, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 184, 186 ], [ 180, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 197, 198 ], [ 191, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 199, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 180, 211 ], [ 211, 212 ], [ 178, 213 ], [ 213, 214 ], [ 178, 215 ], [ 215, 216 ], [ 0, 217 ], [ 217, 218 ], [ 217, 219 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\tif (b % a == 0)\n\t\t\t\treturn a;\n\t\t\td = a / 2 + 1;\n\t\t} else {\n\t\t\tif (a % b == 0)\n\t\t\t\treturn b;\n\t\t\td = b / 2 + 1;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\t/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\tif (b % a == 0)\n\t\t\t\treturn a;\n\t\t\td = a / 2 + 1;\n\t\t} else {\n\t\t\tif (a % b == 0)\n\t\t\t\treturn b;\n\t\t\td = b / 2 + 1;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\t/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t}", "while (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}", "input.ready()", "input.ready", "input", "{\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}", "String[] dataStr = input.readLine().split(\" \");", "dataStr", "input.readLine().split(\" \")", "input.readLine().split", "input.readLine()", "input.readLine", "input", "\" \"", "int[] dataInt = new int[dataStr.length];", "dataInt", "new int[dataStr.length]", "dataStr.length", "dataStr", "dataStr.length", "for (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < dataStr.length", "i", "dataStr.length", "dataStr", "dataStr.length", "i++", "i++", "i", "{\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}", "{\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}", "dataInt[i] = Integer.valueOf(dataStr[i])", "dataInt[i]", "dataInt", "i", "Integer.valueOf(dataStr[i])", "Integer.valueOf", "Integer", "dataStr[i]", "dataStr", "i", "System.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]))", "System.out.println", "System.out", "System", "System.out", "getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1])", "getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1])", "getGCD(dataInt[0], dataInt[1])", "getGCD", "dataInt[0]", "dataInt", "0", "dataInt[1]", "dataInt", "1", "\" \"", "getLCM(dataInt[0], dataInt[1])", "getLCM", "dataInt[0]", "dataInt", "0", "dataInt[1]", "dataInt", "1", "String[] args", "args", "/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\tif (b % a == 0)\n\t\t\t\treturn a;\n\t\t\td = a / 2 + 1;\n\t\t} else {\n\t\t\tif (a % b == 0)\n\t\t\t\treturn b;\n\t\t\td = b / 2 + 1;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "getGCD", "{\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\tif (b % a == 0)\n\t\t\t\treturn a;\n\t\t\td = a / 2 + 1;\n\t\t} else {\n\t\t\tif (a % b == 0)\n\t\t\t\treturn b;\n\t\t\td = b / 2 + 1;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "if (a == b)\n\t\t\treturn a;", "a == b", "a", "b", "return a;", "a", "int d = 1;", "d", "1", "if (a < b) {\n\t\t\tif (b % a == 0)\n\t\t\t\treturn a;\n\t\t\td = a / 2 + 1;\n\t\t} else {\n\t\t\tif (a % b == 0)\n\t\t\t\treturn b;\n\t\t\td = b / 2 + 1;\n\t\t}", "a < b", "a", "b", "{\n\t\t\tif (b % a == 0)\n\t\t\t\treturn a;\n\t\t\td = a / 2 + 1;\n\t\t}", "if (b % a == 0)\n\t\t\t\treturn a;", "b % a == 0", "b % a", "b", "a", "0", "return a;", "a", "d = a / 2 + 1", "d", "a / 2 + 1", "a / 2", "a", "2", "1", "{\n\t\t\tif (a % b == 0)\n\t\t\t\treturn b;\n\t\t\td = b / 2 + 1;\n\t\t}", "if (a % b == 0)\n\t\t\t\treturn b;", "a % b == 0", "a % b", "a", "b", "0", "return b;", "b", "d = b / 2 + 1", "d", "b / 2 + 1", "b / 2", "b", "2", "1", "for (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}", "int i = d;", "int i = d;", "i", "d", "i > 0", "i", "0", "i--", "i--", "i", "{\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}", "{\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}", "if ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}", "(a % i == 0) & (b % i == 0)", "(a % i == 0)", "a % i", "a", "i", "0", "(b % i == 0)", "b % i", "b", "i", "0", "{\n\t\t\t\treturn i;\n\t\t\t}", "return i;", "i", "return 0;", "0", "int a", "a", "int b", "b", "/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "getLCM", "{\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "int productA = a;", "productA", "a", "int productB = b;", "productB", "b", "while (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}", "productA <= 2000000000", "productA", "2000000000", "{\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}", "if (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}", "productA == productB", "productA", "productB", "{\n\t\t\t\treturn productA;\n\t\t\t}", "return productA;", "productA", "if (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}", "productA < productB", "productA", "productB", "{\n\t\t\t\tproductA += a;\n\t\t\t}", "productA += a", "productA", "a", "{\n\t\t\t\tproductB += b;\n\t\t\t}", "productB += b", "productB", "b", "return 0;", "0", "int a", "a", "int b", "b", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\tif (b % a == 0)\n\t\t\t\treturn a;\n\t\t\td = a / 2 + 1;\n\t\t} else {\n\t\t\tif (a % b == 0)\n\t\t\t\treturn b;\n\t\t\td = b / 2 + 1;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\t/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\tif (b % a == 0)\n\t\t\t\treturn a;\n\t\t\td = a / 2 + 1;\n\t\t} else {\n\t\t\tif (a % b == 0)\n\t\t\t\treturn b;\n\t\t\td = b / 2 + 1;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\t/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); try { while (input.ready()) { String[] dataStr = input.readLine().split(" "); int[] dataInt = new int[dataStr.length]; for (int i = 0; i < dataStr.length; i++) { dataInt[i] = Integer.valueOf(dataStr[i]); } System.out.println(getGCD(dataInt[0], dataInt[1]) + " " + getLCM(dataInt[0], dataInt[1])); } } catch (IOException e) { e.printStackTrace(); } } /*** * ?????§??¬?´???° */ public static int getGCD(int a, int b) { if (a == b) return a; int d = 1; if (a < b) { if (b % a == 0) return a; d = a / 2 + 1; } else { if (a % b == 0) return b; d = b / 2 + 1; } for (int i = d; i > 0; i--) { if ((a % i == 0) & (b % i == 0)) { return i; } } return 0; } /*** * ????°???¬?????° * * @param a * @param b * @return */ public static int getLCM(int a, int b) { int productA = a; int productB = b; while (productA <= 2000000000) { if (productA == productB) { return productA; } if (productA < productB) { productA += a; } else { productB += b; } } return 0; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 18, 13, 17, 18, 13, 17, 17, 4, 13, 18, 13, 17, 18, 13, 17, 23, 13, 12, 13, 30, 14, 2, 13, 13, 29, 13, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 11, 1, 41, 13, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 29, 13, 29, 17, 23, 13, 23, 13, 12, 13, 30, 41, 13, 13, 41, 13, 13, 42, 2, 13, 17, 30, 14, 2, 13, 13, 30, 29, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 29, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 197, 14 ], [ 197, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 21, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 36, 41 ], [ 33, 42 ], [ 42, 43 ], [ 42, 44 ], [ 45, 46 ], [ 45, 47 ], [ 33, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 48, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 33, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 79, 88 ], [ 79, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 94, 96 ], [ 15, 97 ], [ 97, 98 ], [ 197, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 101, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 111, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 101, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 128, 129 ], [ 128, 130 ], [ 123, 131 ], [ 131, 132 ], [ 132, 133 ], [ 123, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 137, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 136, 148 ], [ 148, 149 ], [ 149, 150 ], [ 101, 151 ], [ 151, 152 ], [ 99, 153 ], [ 153, 154 ], [ 99, 155 ], [ 155, 156 ], [ 197, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 163, 165 ], [ 159, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 176, 177 ], [ 170, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 178, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 159, 190 ], [ 190, 191 ], [ 157, 192 ], [ 192, 193 ], [ 157, 194 ], [ 194, 195 ], [ 0, 196 ], [ 196, 197 ], [ 196, 198 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nimport javax.xml.crypto.KeySelector.Purpose;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\td = a;\n\t\t} else {\n\t\t\td = b;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\t/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import javax.xml.crypto.KeySelector.Purpose;", "Purpose", "javax.xml.crypto.KeySelector", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\td = a;\n\t\t} else {\n\t\t\td = b;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\t/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "try {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t}", "while (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}", "input.ready()", "input.ready", "input", "{\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}", "String[] dataStr = input.readLine().split(\" \");", "dataStr", "input.readLine().split(\" \")", "input.readLine().split", "input.readLine()", "input.readLine", "input", "\" \"", "int[] dataInt = new int[dataStr.length];", "dataInt", "new int[dataStr.length]", "dataStr.length", "dataStr", "dataStr.length", "for (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < dataStr.length", "i", "dataStr.length", "dataStr", "dataStr.length", "i++", "i++", "i", "{\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}", "{\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}", "dataInt[i] = Integer.valueOf(dataStr[i])", "dataInt[i]", "dataInt", "i", "Integer.valueOf(dataStr[i])", "Integer.valueOf", "Integer", "dataStr[i]", "dataStr", "i", "System.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]))", "System.out.println", "System.out", "System", "System.out", "getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1])", "getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1])", "getGCD(dataInt[0], dataInt[1])", "getGCD", "dataInt[0]", "dataInt", "0", "dataInt[1]", "dataInt", "1", "\" \"", "getLCM(dataInt[0], dataInt[1])", "getLCM", "dataInt[0]", "dataInt", "0", "dataInt[1]", "dataInt", "1", "String[] args", "args", "/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\td = a;\n\t\t} else {\n\t\t\td = b;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "getGCD", "{\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\td = a;\n\t\t} else {\n\t\t\td = b;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "if (a == b)\n\t\t\treturn a;", "a == b", "a", "b", "return a;", "a", "int d = 1;", "d", "1", "if (a < b) {\n\t\t\td = a;\n\t\t} else {\n\t\t\td = b;\n\t\t}", "a < b", "a", "b", "{\n\t\t\td = a;\n\t\t}", "d = a", "d", "a", "{\n\t\t\td = b;\n\t\t}", "d = b", "d", "b", "for (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}", "int i = d;", "int i = d;", "i", "d", "i > 0", "i", "0", "i--", "i--", "i", "{\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}", "{\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}", "if ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}", "(a % i == 0) & (b % i == 0)", "(a % i == 0)", "a % i", "a", "i", "0", "(b % i == 0)", "b % i", "b", "i", "0", "{\n\t\t\t\treturn i;\n\t\t\t}", "return i;", "i", "return 0;", "0", "int a", "a", "int b", "b", "/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "getLCM", "{\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "int productA = a;", "productA", "a", "int productB = b;", "productB", "b", "while (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}", "productA <= 2000000000", "productA", "2000000000", "{\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}", "if (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}", "productA == productB", "productA", "productB", "{\n\t\t\t\treturn productA;\n\t\t\t}", "return productA;", "productA", "if (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}", "productA < productB", "productA", "productB", "{\n\t\t\t\tproductA += a;\n\t\t\t}", "productA += a", "productA", "a", "{\n\t\t\t\tproductB += b;\n\t\t\t}", "productB += b", "productB", "b", "return 0;", "0", "int a", "a", "int b", "b", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\td = a;\n\t\t} else {\n\t\t\td = b;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\t/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n\t\ttry {\n\t\t\twhile (input.ready()) {\n\t\t\t\tString[] dataStr = input.readLine().split(\" \");\n\t\t\t\tint[] dataInt = new int[dataStr.length];\n\t\t\t\tfor (int i = 0; i < dataStr.length; i++) {\n\t\t\t\t\tdataInt[i] = Integer.valueOf(dataStr[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(getGCD(dataInt[0], dataInt[1]) + \" \" + getLCM(dataInt[0], dataInt[1]));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\t/***\n\t * ?????§??¬?´???°\n\t */\n\tpublic static int getGCD(int a, int b) {\n\t\tif (a == b)\n\t\t\treturn a;\n\t\tint d = 1;\n\t\tif (a < b) {\n\t\t\td = a;\n\t\t} else {\n\t\t\td = b;\n\t\t}\n\t\tfor (int i = d; i > 0; i--) {\n\t\t\tif ((a % i == 0) & (b % i == 0)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n\n\t/***\n\t * ????°???¬?????°\n\t *\n\t * @param a\n\t * @param b\n\t * @return\n\t */\n\tpublic static int getLCM(int a, int b) {\n\t\tint productA = a;\n\t\tint productB = b;\n\t\twhile (productA <= 2000000000) {\n\t\t\tif (productA == productB) {\n\t\t\t\treturn productA;\n\t\t\t}\n\t\t\tif (productA < productB) {\n\t\t\t\tproductA += a;\n\t\t\t} else {\n\t\t\t\tproductB += b;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import javax.xml.crypto.KeySelector.Purpose; public class Main { public static void main(String[] args) { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); try { while (input.ready()) { String[] dataStr = input.readLine().split(" "); int[] dataInt = new int[dataStr.length]; for (int i = 0; i < dataStr.length; i++) { dataInt[i] = Integer.valueOf(dataStr[i]); } System.out.println(getGCD(dataInt[0], dataInt[1]) + " " + getLCM(dataInt[0], dataInt[1])); } } catch (IOException e) { e.printStackTrace(); } } /*** * ?????§??¬?´???° */ public static int getGCD(int a, int b) { if (a == b) return a; int d = 1; if (a < b) { d = a; } else { d = b; } for (int i = d; i > 0; i--) { if ((a % i == 0) & (b % i == 0)) { return i; } } return 0; } /*** * ????°???¬?????° * * @param a * @param b * @return */ public static int getLCM(int a, int b) { int productA = a; int productB = b; while (productA <= 2000000000) { if (productA == productB) { return productA; } if (productA < productB) { productA += a; } else { productB += b; } } return 0; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 10, 15 ], [ 15, 16 ], [ 15, 17 ], [ 15, 18 ], [ 18, 19 ], [ 18, 20 ], [ 6, 21 ], [ 21, 22 ], [ 6, 23 ], [ 23, 24 ], [ 4, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 31, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 48, 51 ], [ 35, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 58, 58 ], [ 58, 59 ], [ 58, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 25, 66 ], [ 66, 67 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static int gcd(int a, int b) {\n\t\treturn b == 0 ? a : gcd(b, a % b);\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint g = gcd(a, b);\n\t\t\tSystem.out.println(g + \" \" + a / g * b);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static int gcd(int a, int b) {\n\t\treturn b == 0 ? a : gcd(b, a % b);\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint g = gcd(a, b);\n\t\t\tSystem.out.println(g + \" \" + a / g * b);\n\t\t}\n\t}\n}", "Main", "public static int gcd(int a, int b) {\n\t\treturn b == 0 ? a : gcd(b, a % b);\n\t}", "gcd", "{\n\t\treturn b == 0 ? a : gcd(b, a % b);\n\t}", "return b == 0 ? a : gcd(b, a % b);", "b == 0 ? a : gcd(b, a % b)", "b == 0", "b", "0", "a", "gcd(b, a % b)", "gcd", "b", "a % b", "a", "b", "int a", "a", "int b", "b", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint g = gcd(a, b);\n\t\t\tSystem.out.println(g + \" \" + a / g * b);\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint g = gcd(a, b);\n\t\t\tSystem.out.println(g + \" \" + a / g * b);\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (scanner.hasNext()) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint g = gcd(a, b);\n\t\t\tSystem.out.println(g + \" \" + a / g * b);\n\t\t}", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint g = gcd(a, b);\n\t\t\tSystem.out.println(g + \" \" + a / g * b);\n\t\t}", "int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "int b = scanner.nextInt();", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "int g = gcd(a, b);", "g", "gcd(a, b)", "gcd", "a", "b", "System.out.println(g + \" \" + a / g * b)", "System.out.println", "System.out", "System", "System.out", "g + \" \" + a / g * b", "g + \" \" + a / g * b", "g", "\" \"", "a / g * b", "a / g", "a", "g", "b", "String[] args", "args" ]
import java.util.*; class Main { public static int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); } public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (scanner.hasNext()) { int a = scanner.nextInt(); int b = scanner.nextInt(); int g = gcd(a, b); System.out.println(g + " " + a / g * b); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 4, 18, 13, 13, 4, 18, 13, 13, 4, 13, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 2, 2, 13, 4, 18, 13, 13, 13, 41, 13, 2, 2, 13, 4, 18, 13, 13, 13, 41, 13, 2, 2, 13, 4, 18, 13, 13, 13, 41, 13, 2, 2, 13, 4, 18, 13, 13, 13, 41, 13, 14, 2, 2, 13, 13, 17, 30, 0, 13, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 2, 2, 13, 13, 2, 13, 13, 0, 13, 2, 2, 4, 18, 13, 13, 4, 18, 13, 13, 4, 13, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 2, 2, 13, 4, 18, 13, 13, 13, 41, 13, 2, 2, 13, 4, 18, 13, 13, 13, 41, 13, 2, 2, 13, 4, 18, 13, 13, 13, 41, 13, 2, 2, 13, 4, 18, 13, 13, 13, 41, 13, 14, 2, 2, 13, 13, 17, 30, 0, 13, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 2, 2, 4, 18, 13, 17, 13, 17, 4, 18, 13, 17, 13, 12, 13, 30, 14, 2, 13, 13, 29, 13, 14, 2, 13, 13, 30, 29, 4, 13, 2, 13, 13, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 328, 5 ], [ 328, 6 ], [ 6, 7 ], [ 328, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 36, 39 ], [ 35, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 328, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 47, 59 ], [ 59, 60 ], [ 47, 61 ], [ 61, 62 ], [ 328, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 65, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 65, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 65, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 65, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 65, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 99, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 98, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 108, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 65, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 120, 127 ], [ 65, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 130, 137 ], [ 65, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 140, 147 ], [ 65, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 150, 157 ], [ 65, 158 ], [ 158, 159 ], [ 65, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 160, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 173, 175 ], [ 160, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 183, 185 ], [ 65, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 189, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 188, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 200, 203 ], [ 198, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 65, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 213, 216 ], [ 210, 217 ], [ 65, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 223, 224 ], [ 224, 225 ], [ 223, 226 ], [ 220, 227 ], [ 65, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 234, 235 ], [ 233, 236 ], [ 230, 237 ], [ 65, 238 ], [ 238, 239 ], [ 238, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 243, 246 ], [ 240, 247 ], [ 65, 248 ], [ 248, 249 ], [ 65, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 250, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 259, 263 ], [ 263, 264 ], [ 263, 265 ], [ 250, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 269, 273 ], [ 273, 274 ], [ 273, 275 ], [ 65, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 276, 281 ], [ 282, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 283, 286 ], [ 283, 287 ], [ 282, 288 ], [ 282, 289 ], [ 289, 290 ], [ 290, 291 ], [ 289, 292 ], [ 289, 293 ], [ 328, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 298, 300 ], [ 297, 301 ], [ 301, 302 ], [ 296, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 303, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 311, 313 ], [ 309, 314 ], [ 303, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 317, 320 ], [ 320, 321 ], [ 320, 322 ], [ 294, 323 ], [ 323, 324 ], [ 294, 325 ], [ 325, 326 ], [ 0, 327 ], [ 327, 328 ], [ 327, 329 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static Scanner sc;\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println(gcd(a, b) + \" \" + lcd(a, b));\n }\n }\n \n public static long lcd(long a, long b) {\n return (a*b)/gcd(a,b);\n }\n \n public static void calc() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n long e = sc.nextInt();\n long f = sc.nextInt();\n \n // x?????????????§£???\n long k = Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e));\n long ax = (k/Math.abs(b)) * a;\n long cx = (k/Math.abs(b)) * c;\n long dx = (k/Math.abs(e)) * d;\n long fx = (k/Math.abs(e)) * f;\n float x;\n if (b*e >= 0) {\n x = (cx-fx)/(ax-dx);\n } else {\n x = (cx+fx)/(ax+dx);\n }\n \n // y?????????????§£???\n k = Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d));\n long by = (k/Math.abs(a)) * b;\n long cy = (k/Math.abs(a)) * c;\n long ey = (k/Math.abs(d)) * e;\n long fy = (k/Math.abs(d)) * f;\n float y;\n if (a*d >= 0) {\n y = (cy-fy)/(by-ey);\n } else {\n y = (cy+fy)/(by+ey);\n }\n \n System.out.println(String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y));\n }\n\n public static long gcd(long a, long b) {\n if (a == b) return a;\n if (a > b) {\n return gcd(a - b, b);\n } else {\n return gcd(a, b - a);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static Scanner sc;\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println(gcd(a, b) + \" \" + lcd(a, b));\n }\n }\n \n public static long lcd(long a, long b) {\n return (a*b)/gcd(a,b);\n }\n \n public static void calc() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n long e = sc.nextInt();\n long f = sc.nextInt();\n \n // x?????????????§£???\n long k = Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e));\n long ax = (k/Math.abs(b)) * a;\n long cx = (k/Math.abs(b)) * c;\n long dx = (k/Math.abs(e)) * d;\n long fx = (k/Math.abs(e)) * f;\n float x;\n if (b*e >= 0) {\n x = (cx-fx)/(ax-dx);\n } else {\n x = (cx+fx)/(ax+dx);\n }\n \n // y?????????????§£???\n k = Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d));\n long by = (k/Math.abs(a)) * b;\n long cy = (k/Math.abs(a)) * c;\n long ey = (k/Math.abs(d)) * e;\n long fy = (k/Math.abs(d)) * f;\n float y;\n if (a*d >= 0) {\n y = (cy-fy)/(by-ey);\n } else {\n y = (cy+fy)/(by+ey);\n }\n \n System.out.println(String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y));\n }\n\n public static long gcd(long a, long b) {\n if (a == b) return a;\n if (a > b) {\n return gcd(a - b, b);\n } else {\n return gcd(a, b - a);\n }\n }\n}", "Main", "public static Scanner sc;", "sc", "public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println(gcd(a, b) + \" \" + lcd(a, b));\n }\n }", "main", "{\n sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println(gcd(a, b) + \" \" + lcd(a, b));\n }\n }", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println(gcd(a, b) + \" \" + lcd(a, b));\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println(gcd(a, b) + \" \" + lcd(a, b));\n }", "long a = sc.nextLong();", "a", "sc.nextLong()", "sc.nextLong", "sc", "long b = sc.nextLong();", "b", "sc.nextLong()", "sc.nextLong", "sc", "System.out.println(gcd(a, b) + \" \" + lcd(a, b))", "System.out.println", "System.out", "System", "System.out", "gcd(a, b) + \" \" + lcd(a, b)", "gcd(a, b) + \" \" + lcd(a, b)", "gcd(a, b)", "gcd", "a", "b", "\" \"", "lcd(a, b)", "lcd", "a", "b", "String[] args", "args", "public static long lcd(long a, long b) {\n return (a*b)/gcd(a,b);\n }", "lcd", "{\n return (a*b)/gcd(a,b);\n }", "return (a*b)/gcd(a,b);", "(a*b)/gcd(a,b)", "(a*b)", "a", "b", "gcd(a,b)", "gcd", "a", "b", "long a", "a", "long b", "b", "public static void calc() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n long e = sc.nextInt();\n long f = sc.nextInt();\n \n // x?????????????§£???\n long k = Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e));\n long ax = (k/Math.abs(b)) * a;\n long cx = (k/Math.abs(b)) * c;\n long dx = (k/Math.abs(e)) * d;\n long fx = (k/Math.abs(e)) * f;\n float x;\n if (b*e >= 0) {\n x = (cx-fx)/(ax-dx);\n } else {\n x = (cx+fx)/(ax+dx);\n }\n \n // y?????????????§£???\n k = Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d));\n long by = (k/Math.abs(a)) * b;\n long cy = (k/Math.abs(a)) * c;\n long ey = (k/Math.abs(d)) * e;\n long fy = (k/Math.abs(d)) * f;\n float y;\n if (a*d >= 0) {\n y = (cy-fy)/(by-ey);\n } else {\n y = (cy+fy)/(by+ey);\n }\n \n System.out.println(String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y));\n }", "calc", "{\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n long e = sc.nextInt();\n long f = sc.nextInt();\n \n // x?????????????§£???\n long k = Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e));\n long ax = (k/Math.abs(b)) * a;\n long cx = (k/Math.abs(b)) * c;\n long dx = (k/Math.abs(e)) * d;\n long fx = (k/Math.abs(e)) * f;\n float x;\n if (b*e >= 0) {\n x = (cx-fx)/(ax-dx);\n } else {\n x = (cx+fx)/(ax+dx);\n }\n \n // y?????????????§£???\n k = Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d));\n long by = (k/Math.abs(a)) * b;\n long cy = (k/Math.abs(a)) * c;\n long ey = (k/Math.abs(d)) * e;\n long fy = (k/Math.abs(d)) * f;\n float y;\n if (a*d >= 0) {\n y = (cy-fy)/(by-ey);\n } else {\n y = (cy+fy)/(by+ey);\n }\n \n System.out.println(String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y));\n }", "long a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "long b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "long c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "long d = sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "long e = sc.nextInt();", "e", "sc.nextInt()", "sc.nextInt", "sc", "long f = sc.nextInt();", "f", "sc.nextInt()", "sc.nextInt", "sc", "long k = Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e));", "k", "Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e))", "Math.abs(b)*Math.abs(e)", "Math.abs(b)", "Math.abs", "Math", "b", "Math.abs(e)", "Math.abs", "Math", "e", "gcd(Math.abs(b), Math.abs(e))", "gcd", "Math.abs(b)", "Math.abs", "Math", "b", "Math.abs(e)", "Math.abs", "Math", "e", "long ax = (k/Math.abs(b)) * a;", "ax", "(k/Math.abs(b)) * a", "(k/Math.abs(b))", "k", "Math.abs(b)", "Math.abs", "Math", "b", "a", "long cx = (k/Math.abs(b)) * c;", "cx", "(k/Math.abs(b)) * c", "(k/Math.abs(b))", "k", "Math.abs(b)", "Math.abs", "Math", "b", "c", "long dx = (k/Math.abs(e)) * d;", "dx", "(k/Math.abs(e)) * d", "(k/Math.abs(e))", "k", "Math.abs(e)", "Math.abs", "Math", "e", "d", "long fx = (k/Math.abs(e)) * f;", "fx", "(k/Math.abs(e)) * f", "(k/Math.abs(e))", "k", "Math.abs(e)", "Math.abs", "Math", "e", "f", "float x;", "x", "if (b*e >= 0) {\n x = (cx-fx)/(ax-dx);\n } else {\n x = (cx+fx)/(ax+dx);\n }", "b*e >= 0", "b*e", "b", "e", "0", "{\n x = (cx-fx)/(ax-dx);\n }", "x = (cx-fx)/(ax-dx)", "x", "(cx-fx)/(ax-dx)", "(cx-fx)", "cx", "fx", "(ax-dx)", "ax", "dx", "{\n x = (cx+fx)/(ax+dx);\n }", "x = (cx+fx)/(ax+dx)", "x", "(cx+fx)/(ax+dx)", "(cx+fx)", "cx", "fx", "(ax+dx)", "ax", "dx", "k = Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d))", "k", "Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d))", "Math.abs(a)*Math.abs(d)", "Math.abs(a)", "Math.abs", "Math", "a", "Math.abs(d)", "Math.abs", "Math", "d", "gcd(Math.abs(a), Math.abs(d))", "gcd", "Math.abs(a)", "Math.abs", "Math", "a", "Math.abs(d)", "Math.abs", "Math", "d", "long by = (k/Math.abs(a)) * b;", "by", "(k/Math.abs(a)) * b", "(k/Math.abs(a))", "k", "Math.abs(a)", "Math.abs", "Math", "a", "b", "long cy = (k/Math.abs(a)) * c;", "cy", "(k/Math.abs(a)) * c", "(k/Math.abs(a))", "k", "Math.abs(a)", "Math.abs", "Math", "a", "c", "long ey = (k/Math.abs(d)) * e;", "ey", "(k/Math.abs(d)) * e", "(k/Math.abs(d))", "k", "Math.abs(d)", "Math.abs", "Math", "d", "e", "long fy = (k/Math.abs(d)) * f;", "fy", "(k/Math.abs(d)) * f", "(k/Math.abs(d))", "k", "Math.abs(d)", "Math.abs", "Math", "d", "f", "float y;", "y", "if (a*d >= 0) {\n y = (cy-fy)/(by-ey);\n } else {\n y = (cy+fy)/(by+ey);\n }", "a*d >= 0", "a*d", "a", "d", "0", "{\n y = (cy-fy)/(by-ey);\n }", "y = (cy-fy)/(by-ey)", "y", "(cy-fy)/(by-ey)", "(cy-fy)", "cy", "fy", "(by-ey)", "by", "ey", "{\n y = (cy+fy)/(by+ey);\n }", "y = (cy+fy)/(by+ey)", "y", "(cy+fy)/(by+ey)", "(cy+fy)", "cy", "fy", "(by+ey)", "by", "ey", "System.out.println(String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y)", "String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y)", "String.format(\"%.3f\",x)", "String.format", "String", "\"%.3f\"", "x", "\" \"", "String.format(\"%.3f\",y)", "String.format", "String", "\"%.3f\"", "y", "public static long gcd(long a, long b) {\n if (a == b) return a;\n if (a > b) {\n return gcd(a - b, b);\n } else {\n return gcd(a, b - a);\n }\n }", "gcd", "{\n if (a == b) return a;\n if (a > b) {\n return gcd(a - b, b);\n } else {\n return gcd(a, b - a);\n }\n }", "if (a == b) return a;", "a == b", "a", "b", "return a;", "a", "if (a > b) {\n return gcd(a - b, b);\n } else {\n return gcd(a, b - a);\n }", "a > b", "a", "b", "{\n return gcd(a - b, b);\n }", "return gcd(a - b, b);", "gcd(a - b, b)", "gcd", "a - b", "a", "b", "b", "{\n return gcd(a, b - a);\n }", "return gcd(a, b - a);", "gcd(a, b - a)", "gcd", "a", "b - a", "b", "a", "long a", "a", "long b", "b", "public class Main {\n public static Scanner sc;\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println(gcd(a, b) + \" \" + lcd(a, b));\n }\n }\n \n public static long lcd(long a, long b) {\n return (a*b)/gcd(a,b);\n }\n \n public static void calc() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n long e = sc.nextInt();\n long f = sc.nextInt();\n \n // x?????????????§£???\n long k = Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e));\n long ax = (k/Math.abs(b)) * a;\n long cx = (k/Math.abs(b)) * c;\n long dx = (k/Math.abs(e)) * d;\n long fx = (k/Math.abs(e)) * f;\n float x;\n if (b*e >= 0) {\n x = (cx-fx)/(ax-dx);\n } else {\n x = (cx+fx)/(ax+dx);\n }\n \n // y?????????????§£???\n k = Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d));\n long by = (k/Math.abs(a)) * b;\n long cy = (k/Math.abs(a)) * c;\n long ey = (k/Math.abs(d)) * e;\n long fy = (k/Math.abs(d)) * f;\n float y;\n if (a*d >= 0) {\n y = (cy-fy)/(by-ey);\n } else {\n y = (cy+fy)/(by+ey);\n }\n \n System.out.println(String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y));\n }\n\n public static long gcd(long a, long b) {\n if (a == b) return a;\n if (a > b) {\n return gcd(a - b, b);\n } else {\n return gcd(a, b - a);\n }\n }\n}", "public class Main {\n public static Scanner sc;\n public static void main(String[] args) throws Exception {\n sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println(gcd(a, b) + \" \" + lcd(a, b));\n }\n }\n \n public static long lcd(long a, long b) {\n return (a*b)/gcd(a,b);\n }\n \n public static void calc() {\n long a = sc.nextInt();\n long b = sc.nextInt();\n long c = sc.nextInt();\n long d = sc.nextInt();\n long e = sc.nextInt();\n long f = sc.nextInt();\n \n // x?????????????§£???\n long k = Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e));\n long ax = (k/Math.abs(b)) * a;\n long cx = (k/Math.abs(b)) * c;\n long dx = (k/Math.abs(e)) * d;\n long fx = (k/Math.abs(e)) * f;\n float x;\n if (b*e >= 0) {\n x = (cx-fx)/(ax-dx);\n } else {\n x = (cx+fx)/(ax+dx);\n }\n \n // y?????????????§£???\n k = Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d));\n long by = (k/Math.abs(a)) * b;\n long cy = (k/Math.abs(a)) * c;\n long ey = (k/Math.abs(d)) * e;\n long fy = (k/Math.abs(d)) * f;\n float y;\n if (a*d >= 0) {\n y = (cy-fy)/(by-ey);\n } else {\n y = (cy+fy)/(by+ey);\n }\n \n System.out.println(String.format(\"%.3f\",x) + \" \" + String.format(\"%.3f\",y));\n }\n\n public static long gcd(long a, long b) {\n if (a == b) return a;\n if (a > b) {\n return gcd(a - b, b);\n } else {\n return gcd(a, b - a);\n }\n }\n}", "Main" ]
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()) { long a = sc.nextLong(); long b = sc.nextLong(); System.out.println(gcd(a, b) + " " + lcd(a, b)); } } public static long lcd(long a, long b) { return (a*b)/gcd(a,b); } public static void calc() { long a = sc.nextInt(); long b = sc.nextInt(); long c = sc.nextInt(); long d = sc.nextInt(); long e = sc.nextInt(); long f = sc.nextInt(); // x?????????????§£??? long k = Math.abs(b)*Math.abs(e)/gcd(Math.abs(b), Math.abs(e)); long ax = (k/Math.abs(b)) * a; long cx = (k/Math.abs(b)) * c; long dx = (k/Math.abs(e)) * d; long fx = (k/Math.abs(e)) * f; float x; if (b*e >= 0) { x = (cx-fx)/(ax-dx); } else { x = (cx+fx)/(ax+dx); } // y?????????????§£??? k = Math.abs(a)*Math.abs(d)/gcd(Math.abs(a), Math.abs(d)); long by = (k/Math.abs(a)) * b; long cy = (k/Math.abs(a)) * c; long ey = (k/Math.abs(d)) * e; long fy = (k/Math.abs(d)) * f; float y; if (a*d >= 0) { y = (cy-fy)/(by-ey); } else { y = (cy+fy)/(by+ey); } System.out.println(String.format("%.3f",x) + " " + String.format("%.3f",y)); } public static long gcd(long a, long b) { if (a == b) return a; if (a > b) { return gcd(a - b, b); } else { return gcd(a, b - a); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 13, 18 ], [ 18, 19 ], [ 18, 20 ], [ 18, 21 ], [ 21, 22 ], [ 21, 23 ], [ 9, 24 ], [ 24, 25 ], [ 9, 26 ], [ 26, 27 ], [ 7, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 30, 38 ], [ 38, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 59, 63 ], [ 57, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 44, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 75, 75 ], [ 75, 76 ], [ 75, 77 ], [ 75, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 7, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 83, 89 ], [ 89, 90 ] ]
[ "import java.util.*;\nimport java.io.*;\nclass Main{\n int gcd(int p, int q){\n\treturn q==0?p:gcd(q,p%q);\n }\n\n void ruun(){\n\tScanner sc = new Scanner(System.in);\n\tint x, y, z;\n\twhile(sc.hasNext()){\n\t x = sc.nextInt();\n\t y= sc.nextInt();\n\t z = gcd(Math.max(x,y), Math.min(x,y));\n\t System.out.println(z+\" \"+x/z*y);\n\t}\n }\n\n public static void main(String[] args){\n\tnew Main().ruun();\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main{\n int gcd(int p, int q){\n\treturn q==0?p:gcd(q,p%q);\n }\n\n void ruun(){\n\tScanner sc = new Scanner(System.in);\n\tint x, y, z;\n\twhile(sc.hasNext()){\n\t x = sc.nextInt();\n\t y= sc.nextInt();\n\t z = gcd(Math.max(x,y), Math.min(x,y));\n\t System.out.println(z+\" \"+x/z*y);\n\t}\n }\n\n public static void main(String[] args){\n\tnew Main().ruun();\n }\n}", "Main", "int gcd(int p, int q){\n\treturn q==0?p:gcd(q,p%q);\n }", "gcd", "{\n\treturn q==0?p:gcd(q,p%q);\n }", "return q==0?p:gcd(q,p%q);", "q==0?p:gcd(q,p%q)", "q==0", "q", "0", "p", "gcd(q,p%q)", "gcd", "q", "p%q", "p", "q", "int p", "p", "int q", "q", "void ruun(){\n\tScanner sc = new Scanner(System.in);\n\tint x, y, z;\n\twhile(sc.hasNext()){\n\t x = sc.nextInt();\n\t y= sc.nextInt();\n\t z = gcd(Math.max(x,y), Math.min(x,y));\n\t System.out.println(z+\" \"+x/z*y);\n\t}\n }", "ruun", "{\n\tScanner sc = new Scanner(System.in);\n\tint x, y, z;\n\twhile(sc.hasNext()){\n\t x = sc.nextInt();\n\t y= sc.nextInt();\n\t z = gcd(Math.max(x,y), Math.min(x,y));\n\t System.out.println(z+\" \"+x/z*y);\n\t}\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int x", "x", "y", "y", "z;", "z", "while(sc.hasNext()){\n\t x = sc.nextInt();\n\t y= sc.nextInt();\n\t z = gcd(Math.max(x,y), Math.min(x,y));\n\t System.out.println(z+\" \"+x/z*y);\n\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t x = sc.nextInt();\n\t y= sc.nextInt();\n\t z = gcd(Math.max(x,y), Math.min(x,y));\n\t System.out.println(z+\" \"+x/z*y);\n\t}", "x = sc.nextInt()", "x", "sc.nextInt()", "sc.nextInt", "sc", "y= sc.nextInt()", "y", "sc.nextInt()", "sc.nextInt", "sc", "z = gcd(Math.max(x,y), Math.min(x,y))", "z", "gcd(Math.max(x,y), Math.min(x,y))", "gcd", "Math.max(x,y)", "Math.max", "Math", "x", "y", "Math.min(x,y)", "Math.min", "Math", "x", "y", "System.out.println(z+\" \"+x/z*y)", "System.out.println", "System.out", "System", "System.out", "z+\" \"+x/z*y", "z+\" \"+x/z*y", "z", "\" \"", "x/z*y", "x/z", "x", "z", "y", "public static void main(String[] args){\n\tnew Main().ruun();\n }", "main", "{\n\tnew Main().ruun();\n }", "new Main().ruun()", "new Main().ruun", "new Main()", "String[] args", "args" ]
import java.util.*; import java.io.*; class Main{ int gcd(int p, int q){ return q==0?p:gcd(q,p%q); } void ruun(){ Scanner sc = new Scanner(System.in); int x, y, z; while(sc.hasNext()){ x = sc.nextInt(); y= sc.nextInt(); z = gcd(Math.max(x,y), Math.min(x,y)); System.out.println(z+" "+x/z*y); } } public static void main(String[] args){ new Main().ruun(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 12, 13, 30, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 4, 13, 13, 13, 4, 13, 13, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 4, 18, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 115, 11 ], [ 115, 12 ], [ 12, 13 ], [ 115, 14 ], [ 14, 15 ], [ 115, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 25, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 115, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 115, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 115, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 55, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 55, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 76, 79 ], [ 72, 80 ], [ 80, 81 ], [ 80, 82 ], [ 80, 83 ], [ 115, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 84, 92 ], [ 92, 93 ], [ 84, 94 ], [ 94, 95 ], [ 115, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 100, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 96, 110 ], [ 110, 111 ], [ 96, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.math.BigInteger;\npublic class Main {\n\tpublic static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}\n\n\tScanner sc;\n\tPrintWriter pw;\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}\n\tprivate void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\tprivate void solve() {\n\t\twhile(sc.hasNextLong()) {\n\t\t\tBigInteger a = BigInteger.valueOf(sc.nextLong());\n\t\t\tBigInteger b = BigInteger.valueOf(sc.nextLong());\n\t\t\tpw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b));\n\t\t}\n\t}\n\t// 最大公約数\n\tpublic BigInteger gcd(BigInteger l, BigInteger r){\n\t\treturn l.gcd(r);\n\t}\n\t// 最小公倍数\n\tpublic BigInteger lcm(BigInteger l, BigInteger r){\n\t\treturn l.multiply(r).divide(l.gcd(r));\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.BigInteger;", "BigInteger", "java.math", "public class Main {\n\tpublic static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}\n\n\tScanner sc;\n\tPrintWriter pw;\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}\n\tprivate void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\tprivate void solve() {\n\t\twhile(sc.hasNextLong()) {\n\t\t\tBigInteger a = BigInteger.valueOf(sc.nextLong());\n\t\t\tBigInteger b = BigInteger.valueOf(sc.nextLong());\n\t\t\tpw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b));\n\t\t}\n\t}\n\t// 最大公約数\n\tpublic BigInteger gcd(BigInteger l, BigInteger r){\n\t\treturn l.gcd(r);\n\t}\n\t// 最小公倍数\n\tpublic BigInteger lcm(BigInteger l, BigInteger r){\n\t\treturn l.multiply(r).divide(l.gcd(r));\n\t}\n}", "Main", "Scanner sc;", "sc", "PrintWriter pw;", "pw", "public static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}", "main", "{\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}", "Main m = new Main();", "m", "new Main()", "m.solve()", "m.solve", "m", "m.close()", "m.close", "m", "String... args", "args", "public Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}", "Main", "{\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "pw = new PrintWriter(System.out)", "pw", "new PrintWriter(System.out)", "private void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}", "close", "{\n\t\tpw.flush();\n\t\tpw.close();\n\t}", "pw.flush()", "pw.flush", "pw", "pw.close()", "pw.close", "pw", "private void solve() {\n\t\twhile(sc.hasNextLong()) {\n\t\t\tBigInteger a = BigInteger.valueOf(sc.nextLong());\n\t\t\tBigInteger b = BigInteger.valueOf(sc.nextLong());\n\t\t\tpw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b));\n\t\t}\n\t}", "solve", "{\n\t\twhile(sc.hasNextLong()) {\n\t\t\tBigInteger a = BigInteger.valueOf(sc.nextLong());\n\t\t\tBigInteger b = BigInteger.valueOf(sc.nextLong());\n\t\t\tpw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b));\n\t\t}\n\t}", "while(sc.hasNextLong()) {\n\t\t\tBigInteger a = BigInteger.valueOf(sc.nextLong());\n\t\t\tBigInteger b = BigInteger.valueOf(sc.nextLong());\n\t\t\tpw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b));\n\t\t}", "sc.hasNextLong()", "sc.hasNextLong", "sc", "{\n\t\t\tBigInteger a = BigInteger.valueOf(sc.nextLong());\n\t\t\tBigInteger b = BigInteger.valueOf(sc.nextLong());\n\t\t\tpw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b));\n\t\t}", "BigInteger a = BigInteger.valueOf(sc.nextLong());", "a", "BigInteger.valueOf(sc.nextLong())", "BigInteger.valueOf", "BigInteger", "sc.nextLong()", "sc.nextLong", "sc", "BigInteger b = BigInteger.valueOf(sc.nextLong());", "b", "BigInteger.valueOf(sc.nextLong())", "BigInteger.valueOf", "BigInteger", "sc.nextLong()", "sc.nextLong", "sc", "pw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b))", "pw.printf", "pw", "\"%d %d\\n\"", "gcd(a,b)", "gcd", "a", "b", "lcm(a,b)", "lcm", "a", "b", "// 最大公約数\n\tpublic BigInteger gcd(BigInteger l, BigInteger r){\n\t\treturn l.gcd(r);\n\t}", "gcd", "{\n\t\treturn l.gcd(r);\n\t}", "return l.gcd(r);", "l.gcd(r)", "l.gcd", "l", "r", "BigInteger l", "l", "BigInteger r", "r", "// 最小公倍数\n\tpublic BigInteger lcm(BigInteger l, BigInteger r){\n\t\treturn l.multiply(r).divide(l.gcd(r));\n\t}", "lcm", "{\n\t\treturn l.multiply(r).divide(l.gcd(r));\n\t}", "return l.multiply(r).divide(l.gcd(r));", "l.multiply(r).divide(l.gcd(r))", "l.multiply(r).divide", "l.multiply(r)", "l.multiply", "l", "r", "l.gcd(r)", "l.gcd", "l", "r", "BigInteger l", "l", "BigInteger r", "r", "public class Main {\n\tpublic static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}\n\n\tScanner sc;\n\tPrintWriter pw;\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}\n\tprivate void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\tprivate void solve() {\n\t\twhile(sc.hasNextLong()) {\n\t\t\tBigInteger a = BigInteger.valueOf(sc.nextLong());\n\t\t\tBigInteger b = BigInteger.valueOf(sc.nextLong());\n\t\t\tpw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b));\n\t\t}\n\t}\n\t// 最大公約数\n\tpublic BigInteger gcd(BigInteger l, BigInteger r){\n\t\treturn l.gcd(r);\n\t}\n\t// 最小公倍数\n\tpublic BigInteger lcm(BigInteger l, BigInteger r){\n\t\treturn l.multiply(r).divide(l.gcd(r));\n\t}\n}", "public class Main {\n\tpublic static void main(String... args) {\n\t\tMain m = new Main();\n\t\tm.solve();\n\t\tm.close();\n\t}\n\n\tScanner sc;\n\tPrintWriter pw;\n\tpublic Main() {\n\t\tsc = new Scanner(System.in);\n\t\tpw = new PrintWriter(System.out);\n\t}\n\tprivate void close() {\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\tprivate void solve() {\n\t\twhile(sc.hasNextLong()) {\n\t\t\tBigInteger a = BigInteger.valueOf(sc.nextLong());\n\t\t\tBigInteger b = BigInteger.valueOf(sc.nextLong());\n\t\t\tpw.printf(\"%d %d\\n\",gcd(a,b),lcm(a,b));\n\t\t}\n\t}\n\t// 最大公約数\n\tpublic BigInteger gcd(BigInteger l, BigInteger r){\n\t\treturn l.gcd(r);\n\t}\n\t// 最小公倍数\n\tpublic BigInteger lcm(BigInteger l, BigInteger r){\n\t\treturn l.multiply(r).divide(l.gcd(r));\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; import java.math.BigInteger; public class Main { public static void main(String... args) { Main m = new Main(); m.solve(); m.close(); } Scanner sc; PrintWriter pw; public Main() { sc = new Scanner(System.in); pw = new PrintWriter(System.out); } private void close() { pw.flush(); pw.close(); } private void solve() { while(sc.hasNextLong()) { BigInteger a = BigInteger.valueOf(sc.nextLong()); BigInteger b = BigInteger.valueOf(sc.nextLong()); pw.printf("%d %d\n",gcd(a,b),lcm(a,b)); } } // 最大公約数 public BigInteger gcd(BigInteger l, BigInteger r){ return l.gcd(r); } // 最小公倍数 public BigInteger lcm(BigInteger l, BigInteger r){ return l.multiply(r).divide(l.gcd(r)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 69, 5 ], [ 69, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 29, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 39, 39 ], [ 39, 40 ], [ 39, 41 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 6, 47 ], [ 47, 48 ], [ 69, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 49, 64 ], [ 64, 65 ], [ 49, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tLong m = scan.nextLong();\n\t\t\tLong n = scan.nextLong();\n\t\t\tLong g = gcd(m, n);\n\t\t\tSystem.out.println(g+\" \"+(m*n/g));\n\t\t}\n\t}\n\t\n\tprivate static Long gcd(Long a, Long b){\n\t\treturn (b == 0)? a:gcd(b, a%b);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tLong m = scan.nextLong();\n\t\t\tLong n = scan.nextLong();\n\t\t\tLong g = gcd(m, n);\n\t\t\tSystem.out.println(g+\" \"+(m*n/g));\n\t\t}\n\t}\n\t\n\tprivate static Long gcd(Long a, Long b){\n\t\treturn (b == 0)? a:gcd(b, a%b);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tLong m = scan.nextLong();\n\t\t\tLong n = scan.nextLong();\n\t\t\tLong g = gcd(m, n);\n\t\t\tSystem.out.println(g+\" \"+(m*n/g));\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tLong m = scan.nextLong();\n\t\t\tLong n = scan.nextLong();\n\t\t\tLong g = gcd(m, n);\n\t\t\tSystem.out.println(g+\" \"+(m*n/g));\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(scan.hasNext()){\n\t\t\tLong m = scan.nextLong();\n\t\t\tLong n = scan.nextLong();\n\t\t\tLong g = gcd(m, n);\n\t\t\tSystem.out.println(g+\" \"+(m*n/g));\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tLong m = scan.nextLong();\n\t\t\tLong n = scan.nextLong();\n\t\t\tLong g = gcd(m, n);\n\t\t\tSystem.out.println(g+\" \"+(m*n/g));\n\t\t}", "Long m = scan.nextLong();", "m", "scan.nextLong()", "scan.nextLong", "scan", "Long n = scan.nextLong();", "n", "scan.nextLong()", "scan.nextLong", "scan", "Long g = gcd(m, n);", "g", "gcd(m, n)", "gcd", "m", "n", "System.out.println(g+\" \"+(m*n/g))", "System.out.println", "System.out", "System", "System.out", "g+\" \"+(m*n/g)", "g+\" \"+(m*n/g)", "g", "\" \"", "(m*n/g)", "m*n", "m", "n", "g", "String[] args", "args", "private static Long gcd(Long a, Long b){\n\t\treturn (b == 0)? a:gcd(b, a%b);\n\t}", "gcd", "{\n\t\treturn (b == 0)? a:gcd(b, a%b);\n\t}", "return (b == 0)? a:gcd(b, a%b);", "(b == 0)? a:gcd(b, a%b)", "(b == 0)", "b", "0", "a", "gcd(b, a%b)", "gcd", "b", "a%b", "a", "b", "Long a", "a", "Long b", "b", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tLong m = scan.nextLong();\n\t\t\tLong n = scan.nextLong();\n\t\t\tLong g = gcd(m, n);\n\t\t\tSystem.out.println(g+\" \"+(m*n/g));\n\t\t}\n\t}\n\t\n\tprivate static Long gcd(Long a, Long b){\n\t\treturn (b == 0)? a:gcd(b, a%b);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tLong m = scan.nextLong();\n\t\t\tLong n = scan.nextLong();\n\t\t\tLong g = gcd(m, n);\n\t\t\tSystem.out.println(g+\" \"+(m*n/g));\n\t\t}\n\t}\n\t\n\tprivate static Long gcd(Long a, Long b){\n\t\treturn (b == 0)? a:gcd(b, a%b);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(scan.hasNext()){ Long m = scan.nextLong(); Long n = scan.nextLong(); Long g = gcd(m, n); System.out.println(g+" "+(m*n/g)); } } private static Long gcd(Long a, Long b){ return (b == 0)? a:gcd(b, a%b); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 42, 2, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 3, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 116, 5 ], [ 116, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 37, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 64, 65 ], [ 64, 66 ], [ 37, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 71, 95 ], [ 95, 96 ], [ 95, 97 ], [ 71, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 71, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 109, 109 ], [ 109, 110 ], [ 109, 111 ], [ 109, 112 ], [ 6, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tlong a = 0;\n\t\tlong b = 0;\n\t\tlong ab = 0;\n\t\tlong r = 0;\n\t\tlong gcd = 0;\n\t\tlong lcm = 0;\n\t\tlong temp = 0;\n\t\twhile(stdin.hasNext()) {\n\t\t\ta = stdin.nextInt();\n\t\t\tb = stdin.nextInt();\n\t\t\tab = a * b;\n\n\t\t\tif(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tif(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tlong a = 0;\n\t\tlong b = 0;\n\t\tlong ab = 0;\n\t\tlong r = 0;\n\t\tlong gcd = 0;\n\t\tlong lcm = 0;\n\t\tlong temp = 0;\n\t\twhile(stdin.hasNext()) {\n\t\t\ta = stdin.nextInt();\n\t\t\tb = stdin.nextInt();\n\t\t\tab = a * b;\n\n\t\t\tif(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tif(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\t\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tlong a = 0;\n\t\tlong b = 0;\n\t\tlong ab = 0;\n\t\tlong r = 0;\n\t\tlong gcd = 0;\n\t\tlong lcm = 0;\n\t\tlong temp = 0;\n\t\twhile(stdin.hasNext()) {\n\t\t\ta = stdin.nextInt();\n\t\t\tb = stdin.nextInt();\n\t\t\tab = a * b;\n\n\t\t\tif(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tif(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\t\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tlong a = 0;\n\t\tlong b = 0;\n\t\tlong ab = 0;\n\t\tlong r = 0;\n\t\tlong gcd = 0;\n\t\tlong lcm = 0;\n\t\tlong temp = 0;\n\t\twhile(stdin.hasNext()) {\n\t\t\ta = stdin.nextInt();\n\t\t\tb = stdin.nextInt();\n\t\t\tab = a * b;\n\n\t\t\tif(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tif(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}\n\t\t}\n\t}", "Scanner stdin = new Scanner(System.in);", "stdin", "new Scanner(System.in)", "long a = 0;", "a", "0", "long b = 0;", "b", "0", "long ab = 0;", "ab", "0", "long r = 0;", "r", "0", "long gcd = 0;", "gcd", "0", "long lcm = 0;", "lcm", "0", "long temp = 0;", "temp", "0", "while(stdin.hasNext()) {\n\t\t\ta = stdin.nextInt();\n\t\t\tb = stdin.nextInt();\n\t\t\tab = a * b;\n\n\t\t\tif(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tif(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}\n\t\t}", "stdin.hasNext()", "stdin.hasNext", "stdin", "{\n\t\t\ta = stdin.nextInt();\n\t\t\tb = stdin.nextInt();\n\t\t\tab = a * b;\n\n\t\t\tif(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tif(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}\n\t\t}", "a = stdin.nextInt()", "a", "stdin.nextInt()", "stdin.nextInt", "stdin", "b = stdin.nextInt()", "b", "stdin.nextInt()", "stdin.nextInt", "stdin", "ab = a * b", "ab", "a * b", "a", "b", "if(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}", "a < b", "a", "b", "{\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}", "temp = a", "temp", "a", "a = b", "a", "b", "b = temp", "b", "temp", "if(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}", "a >= b", "a", "b", "{\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}", "do {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);", "r != 1", "r", "1", "{\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}", "r = a % b", "r", "a % b", "a", "b", "if(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}", "r == 0", "r", "0", "{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "break;", "{\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}", "a = b", "a", "b", "b = r", "b", "r", "gcd = b", "gcd", "b", "lcm = ab / b", "lcm", "ab / b", "ab", "b", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tlong a = 0;\n\t\tlong b = 0;\n\t\tlong ab = 0;\n\t\tlong r = 0;\n\t\tlong gcd = 0;\n\t\tlong lcm = 0;\n\t\tlong temp = 0;\n\t\twhile(stdin.hasNext()) {\n\t\t\ta = stdin.nextInt();\n\t\t\tb = stdin.nextInt();\n\t\t\tab = a * b;\n\n\t\t\tif(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tif(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tlong a = 0;\n\t\tlong b = 0;\n\t\tlong ab = 0;\n\t\tlong r = 0;\n\t\tlong gcd = 0;\n\t\tlong lcm = 0;\n\t\tlong temp = 0;\n\t\twhile(stdin.hasNext()) {\n\t\t\ta = stdin.nextInt();\n\t\t\tb = stdin.nextInt();\n\t\t\tab = a * b;\n\n\t\t\tif(a < b) {\n\t\t\t\ttemp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = temp;\n\t\t\t}\n\t\t\tif(a >= b) {\n\t\t\t\tdo {\n\t\t\t\t\tr = a % b;\n\t\t\t\t\tif(r == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ta = b;\n\t\t\t\t\t\tb = r;\n\t\t\t\t\t}\n\t\t\t\t}while(r != 1);\n\t\t\t\tgcd = b;\n\t\t\t\tlcm = ab / b;\n\t\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); long a = 0; long b = 0; long ab = 0; long r = 0; long gcd = 0; long lcm = 0; long temp = 0; while(stdin.hasNext()) { a = stdin.nextInt(); b = stdin.nextInt(); ab = a * b; if(a < b) { temp = a; a = b; b = temp; } if(a >= b) { do { r = a % b; if(r == 0) { break; } else { a = b; b = r; } }while(r != 1); gcd = b; lcm = ab / b; System.out.println(gcd + " " + lcm); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 13, 41, 13, 41, 13, 17, 41, 13, 42, 13, 30, 0, 13, 17, 41, 13, 8, 2, 13, 13, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 17, 3, 41, 13, 2, 2, 13, 13, 13, 4, 18, 13, 2, 2, 13, 17, 13, 28, 13, 13, 30, 30, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 36, 37 ], [ 36, 38 ], [ 25, 39 ], [ 39, 40 ], [ 39, 41 ], [ 25, 42 ], [ 42, 43 ], [ 25, 44 ], [ 44, 45 ], [ 44, 46 ], [ 25, 47 ], [ 47, 48 ], [ 25, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 57, 62 ], [ 51, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 76, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 88, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 88, 104 ], [ 104, 105 ], [ 104, 106 ], [ 88, 107 ], [ 25, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 25, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 119, 119 ], [ 119, 120 ], [ 119, 121 ], [ 119, 122 ], [ 14, 123 ], [ 123, 124 ], [ 123, 125 ], [ 123, 126 ], [ 127, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 12, 134 ], [ 134, 135 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\twhile (sc.hasNext()) {\n\t\t\tlong A = sc.nextLong();\n\t\t\tlong B = sc.nextLong();\n\n\t\t\tlong a = A;\n\t\t\tlong b = B;\n\t\t\tint i;\n\t\t\tlong G = 1; // ?????§??¬?´???°\n\t\t\tboolean flg;\n\t\t\tdo {\n\t\t\t\tflg = false;\n\t\t\t\tlong max = (a >= b) ? a : b;\n\t\t\t\tfor (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (flg);\n\t\t\tlong L = A * B / G;\n\t\t\tret.add(G + \" \" + L);\n\t\t}\n\t\tfor (String ans : ret) {\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\twhile (sc.hasNext()) {\n\t\t\tlong A = sc.nextLong();\n\t\t\tlong B = sc.nextLong();\n\n\t\t\tlong a = A;\n\t\t\tlong b = B;\n\t\t\tint i;\n\t\t\tlong G = 1; // ?????§??¬?´???°\n\t\t\tboolean flg;\n\t\t\tdo {\n\t\t\t\tflg = false;\n\t\t\t\tlong max = (a >= b) ? a : b;\n\t\t\t\tfor (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (flg);\n\t\t\tlong L = A * B / G;\n\t\t\tret.add(G + \" \" + L);\n\t\t}\n\t\tfor (String ans : ret) {\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\twhile (sc.hasNext()) {\n\t\t\tlong A = sc.nextLong();\n\t\t\tlong B = sc.nextLong();\n\n\t\t\tlong a = A;\n\t\t\tlong b = B;\n\t\t\tint i;\n\t\t\tlong G = 1; // ?????§??¬?´???°\n\t\t\tboolean flg;\n\t\t\tdo {\n\t\t\t\tflg = false;\n\t\t\t\tlong max = (a >= b) ? a : b;\n\t\t\t\tfor (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (flg);\n\t\t\tlong L = A * B / G;\n\t\t\tret.add(G + \" \" + L);\n\t\t}\n\t\tfor (String ans : ret) {\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\twhile (sc.hasNext()) {\n\t\t\tlong A = sc.nextLong();\n\t\t\tlong B = sc.nextLong();\n\n\t\t\tlong a = A;\n\t\t\tlong b = B;\n\t\t\tint i;\n\t\t\tlong G = 1; // ?????§??¬?´???°\n\t\t\tboolean flg;\n\t\t\tdo {\n\t\t\t\tflg = false;\n\t\t\t\tlong max = (a >= b) ? a : b;\n\t\t\t\tfor (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (flg);\n\t\t\tlong L = A * B / G;\n\t\t\tret.add(G + \" \" + L);\n\t\t}\n\t\tfor (String ans : ret) {\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "List<String> ret = new ArrayList<String>();", "ret", "new ArrayList<String>()", "while (sc.hasNext()) {\n\t\t\tlong A = sc.nextLong();\n\t\t\tlong B = sc.nextLong();\n\n\t\t\tlong a = A;\n\t\t\tlong b = B;\n\t\t\tint i;\n\t\t\tlong G = 1; // ?????§??¬?´???°\n\t\t\tboolean flg;\n\t\t\tdo {\n\t\t\t\tflg = false;\n\t\t\t\tlong max = (a >= b) ? a : b;\n\t\t\t\tfor (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (flg);\n\t\t\tlong L = A * B / G;\n\t\t\tret.add(G + \" \" + L);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tlong A = sc.nextLong();\n\t\t\tlong B = sc.nextLong();\n\n\t\t\tlong a = A;\n\t\t\tlong b = B;\n\t\t\tint i;\n\t\t\tlong G = 1; // ?????§??¬?´???°\n\t\t\tboolean flg;\n\t\t\tdo {\n\t\t\t\tflg = false;\n\t\t\t\tlong max = (a >= b) ? a : b;\n\t\t\t\tfor (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (flg);\n\t\t\tlong L = A * B / G;\n\t\t\tret.add(G + \" \" + L);\n\t\t}", "long A = sc.nextLong();", "A", "sc.nextLong()", "sc.nextLong", "sc", "long B = sc.nextLong();", "B", "sc.nextLong()", "sc.nextLong", "sc", "long a = A;", "a", "A", "long b = B;", "b", "B", "int i;", "i", "long G = 1;", "G", "1", "boolean flg;", "flg", "do {\n\t\t\t\tflg = false;\n\t\t\t\tlong max = (a >= b) ? a : b;\n\t\t\t\tfor (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while (flg);", "flg", "{\n\t\t\t\tflg = false;\n\t\t\t\tlong max = (a >= b) ? a : b;\n\t\t\t\tfor (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "flg = false", "flg", "false", "long max = (a >= b) ? a : b;", "max", "(a >= b) ? a : b", "(a >= b)", "a", "b", "a", "b", "for (i = 2; i < max; i++) {\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "i = 2;", "i = 2", "i", "2", "i < max", "i", "max", "i++", "i++", "i", "{\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "if (a % i == 0 && b % i == 0) {\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "a % i == 0 && b % i == 0", "a % i == 0", "a % i", "a", "i", "0", "b % i == 0", "b % i", "b", "i", "0", "{\n\t\t\t\t\t\ta = a / i;\n\t\t\t\t\t\tb = b / i;\n\t\t\t\t\t\tG = G * i;\n\t\t\t\t\t\tflg = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "a = a / i", "a", "a / i", "a", "i", "b = b / i", "b", "b / i", "b", "i", "G = G * i", "G", "G * i", "G", "i", "flg = true", "flg", "true", "break;", "long L = A * B / G;", "L", "A * B / G", "A * B", "A", "B", "G", "ret.add(G + \" \" + L)", "ret.add", "ret", "G + \" \" + L", "G + \" \" + L", "G", "\" \"", "L", "for (String ans : ret) {\n\t\t\tSystem.out.println(ans);\n\t\t}", "String ans", "ret", "{\n\t\t\tSystem.out.println(ans);\n\t\t}", "{\n\t\t\tSystem.out.println(ans);\n\t\t}", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<String> ret = new ArrayList<String>(); while (sc.hasNext()) { long A = sc.nextLong(); long B = sc.nextLong(); long a = A; long b = B; int i; long G = 1; // ?????§??¬?´???° boolean flg; do { flg = false; long max = (a >= b) ? a : b; for (i = 2; i < max; i++) { if (a % i == 0 && b % i == 0) { a = a / i; b = b / i; G = G * i; flg = true; break; } } } while (flg); long L = A * B / G; ret.add(G + " " + L); } for (String ans : ret) { System.out.println(ans); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 4, 18, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 72, 11 ], [ 72, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 22, 37 ], [ 37, 38 ], [ 37, 39 ], [ 22, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 22, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 48, 54 ], [ 22, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 61, 65 ], [ 61, 66 ], [ 66, 67 ], [ 67, 68 ], [ 12, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.io.IOException;\nimport java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] vals = line.split(\" \");\n BigInteger int1 = new BigInteger(vals[0]);\n BigInteger int2 = new BigInteger(vals[1]);\n\n BigInteger gcd = int1.gcd(int2);\n\n BigInteger lcm = (int1.multiply(int2)).divide(gcd);\n System.out.println(gcd.toString() + \" \" + lcm.toString());\n\n }\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] vals = line.split(\" \");\n BigInteger int1 = new BigInteger(vals[0]);\n BigInteger int2 = new BigInteger(vals[1]);\n\n BigInteger gcd = int1.gcd(int2);\n\n BigInteger lcm = (int1.multiply(int2)).divide(gcd);\n System.out.println(gcd.toString() + \" \" + lcm.toString());\n\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] vals = line.split(\" \");\n BigInteger int1 = new BigInteger(vals[0]);\n BigInteger int2 = new BigInteger(vals[1]);\n\n BigInteger gcd = int1.gcd(int2);\n\n BigInteger lcm = (int1.multiply(int2)).divide(gcd);\n System.out.println(gcd.toString() + \" \" + lcm.toString());\n\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] vals = line.split(\" \");\n BigInteger int1 = new BigInteger(vals[0]);\n BigInteger int2 = new BigInteger(vals[1]);\n\n BigInteger gcd = int1.gcd(int2);\n\n BigInteger lcm = (int1.multiply(int2)).divide(gcd);\n System.out.println(gcd.toString() + \" \" + lcm.toString());\n\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] vals = line.split(\" \");\n BigInteger int1 = new BigInteger(vals[0]);\n BigInteger int2 = new BigInteger(vals[1]);\n\n BigInteger gcd = int1.gcd(int2);\n\n BigInteger lcm = (int1.multiply(int2)).divide(gcd);\n System.out.println(gcd.toString() + \" \" + lcm.toString());\n\n }", "scan.hasNextLine()", "scan.hasNextLine", "scan", "{\n String line = scan.nextLine();\n String[] vals = line.split(\" \");\n BigInteger int1 = new BigInteger(vals[0]);\n BigInteger int2 = new BigInteger(vals[1]);\n\n BigInteger gcd = int1.gcd(int2);\n\n BigInteger lcm = (int1.multiply(int2)).divide(gcd);\n System.out.println(gcd.toString() + \" \" + lcm.toString());\n\n }", "String line = scan.nextLine();", "line", "scan.nextLine()", "scan.nextLine", "scan", "String[] vals = line.split(\" \");", "vals", "line.split(\" \")", "line.split", "line", "\" \"", "BigInteger int1 = new BigInteger(vals[0]);", "int1", "new BigInteger(vals[0])", "BigInteger int2 = new BigInteger(vals[1]);", "int2", "new BigInteger(vals[1])", "BigInteger gcd = int1.gcd(int2);", "gcd", "int1.gcd(int2)", "int1.gcd", "int1", "int2", "BigInteger lcm = (int1.multiply(int2)).divide(gcd);", "lcm", "(int1.multiply(int2)).divide(gcd)", "(int1.multiply(int2)).divide", "(int1.multiply(int2))", "int1.multiply", "int1", "int2", "gcd", "System.out.println(gcd.toString() + \" \" + lcm.toString())", "System.out.println", "System.out", "System", "System.out", "gcd.toString() + \" \" + lcm.toString()", "gcd.toString() + \" \" + lcm.toString()", "gcd.toString()", "gcd.toString", "gcd", "\" \"", "lcm.toString()", "lcm.toString", "lcm", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] vals = line.split(\" \");\n BigInteger int1 = new BigInteger(vals[0]);\n BigInteger int2 = new BigInteger(vals[1]);\n\n BigInteger gcd = int1.gcd(int2);\n\n BigInteger lcm = (int1.multiply(int2)).divide(gcd);\n System.out.println(gcd.toString() + \" \" + lcm.toString());\n\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n String[] vals = line.split(\" \");\n BigInteger int1 = new BigInteger(vals[0]);\n BigInteger int2 = new BigInteger(vals[1]);\n\n BigInteger gcd = int1.gcd(int2);\n\n BigInteger lcm = (int1.multiply(int2)).divide(gcd);\n System.out.println(gcd.toString() + \" \" + lcm.toString());\n\n }\n }\n}", "Main" ]
import java.io.IOException; import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner scan = new Scanner(System.in); while (scan.hasNextLine()) { String line = scan.nextLine(); String[] vals = line.split(" "); BigInteger int1 = new BigInteger(vals[0]); BigInteger int2 = new BigInteger(vals[1]); BigInteger gcd = int1.gcd(int2); BigInteger lcm = (int1.multiply(int2)).divide(gcd); System.out.println(gcd.toString() + " " + lcm.toString()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 13, 41, 13, 13, 41, 13, 4, 18, 13, 13, 13, 41, 13, 20, 11, 1, 41, 13, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 13, 0, 13, 13, 4, 18, 13, 13, 9, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 132, 8 ], [ 132, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 25, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 37, 39 ], [ 25, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 25, 48 ], [ 48, 49 ], [ 48, 50 ], [ 25, 51 ], [ 51, 52 ], [ 51, 53 ], [ 25, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 25, 61 ], [ 61, 62 ], [ 61, 63 ], [ 25, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 77, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 89, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 89, 100 ], [ 25, 101 ], [ 101, 102 ], [ 101, 103 ], [ 25, 104 ], [ 104, 105 ], [ 104, 106 ], [ 104, 107 ], [ 108, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 25, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 25, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 125, 125 ], [ 125, 126 ], [ 125, 127 ], [ 125, 128 ], [ 9, 129 ], [ 129, 130 ], [ 0, 131 ], [ 131, 132 ], [ 131, 133 ] ]
[ "import java.io.*;\nimport java.util.ArrayList;\npublic class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint a = Integer.parseInt(numbers[0]);\n\t\t\tint b = Integer.parseInt(numbers[1]);\n\t\t\tint a2 = a;\n\t\t\tint b2 = b;\n\t\t\t\n\t\t\t\n\t\t\tint limit = Math.min(a, b);\n\t\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint gcd = 1;\n\t\t\tfor(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}\n\t\t\t\n\t\t\tint lcm = (a2 / gcd) * b2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n }\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint a = Integer.parseInt(numbers[0]);\n\t\t\tint b = Integer.parseInt(numbers[1]);\n\t\t\tint a2 = a;\n\t\t\tint b2 = b;\n\t\t\t\n\t\t\t\n\t\t\tint limit = Math.min(a, b);\n\t\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint gcd = 1;\n\t\t\tfor(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}\n\t\t\t\n\t\t\tint lcm = (a2 / gcd) * b2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n }\n\t}\n}", "Main", "public static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint a = Integer.parseInt(numbers[0]);\n\t\t\tint b = Integer.parseInt(numbers[1]);\n\t\t\tint a2 = a;\n\t\t\tint b2 = b;\n\t\t\t\n\t\t\t\n\t\t\tint limit = Math.min(a, b);\n\t\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint gcd = 1;\n\t\t\tfor(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}\n\t\t\t\n\t\t\tint lcm = (a2 / gcd) * b2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n }\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint a = Integer.parseInt(numbers[0]);\n\t\t\tint b = Integer.parseInt(numbers[1]);\n\t\t\tint a2 = a;\n\t\t\tint b2 = b;\n\t\t\t\n\t\t\t\n\t\t\tint limit = Math.min(a, b);\n\t\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint gcd = 1;\n\t\t\tfor(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}\n\t\t\t\n\t\t\tint lcm = (a2 / gcd) * b2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n }\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "while ((line = br.readLine()) != null) {\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint a = Integer.parseInt(numbers[0]);\n\t\t\tint b = Integer.parseInt(numbers[1]);\n\t\t\tint a2 = a;\n\t\t\tint b2 = b;\n\t\t\t\n\t\t\t\n\t\t\tint limit = Math.min(a, b);\n\t\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint gcd = 1;\n\t\t\tfor(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}\n\t\t\t\n\t\t\tint lcm = (a2 / gcd) * b2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint a = Integer.parseInt(numbers[0]);\n\t\t\tint b = Integer.parseInt(numbers[1]);\n\t\t\tint a2 = a;\n\t\t\tint b2 = b;\n\t\t\t\n\t\t\t\n\t\t\tint limit = Math.min(a, b);\n\t\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint gcd = 1;\n\t\t\tfor(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}\n\t\t\t\n\t\t\tint lcm = (a2 / gcd) * b2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n }", "String[] numbers = line.split(\" \");", "numbers", "line.split(\" \")", "line.split", "line", "\" \"", "int a = Integer.parseInt(numbers[0]);", "a", "Integer.parseInt(numbers[0])", "Integer.parseInt", "Integer", "numbers[0]", "numbers", "0", "int b = Integer.parseInt(numbers[1]);", "b", "Integer.parseInt(numbers[1])", "Integer.parseInt", "Integer", "numbers[1]", "numbers", "1", "int a2 = a;", "a2", "a", "int b2 = b;", "b2", "b", "int limit = Math.min(a, b);", "limit", "Math.min(a, b)", "Math.min", "Math", "a", "b", "ArrayList<Integer> elements = new ArrayList<Integer>();", "elements", "new ArrayList<Integer>()", "for (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}", "int i = limit;", "int i = limit;", "i", "limit", "i > 1", "i", "1", "i--", "i--", "i", "{\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}", "if (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}", "a % i == 0 && b % i == 0", "a % i == 0", "a % i", "a", "i", "0", "b % i == 0", "b % i", "b", "i", "0", "{\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}", "a /= i", "a", "i", "b /= i", "b", "i", "elements.add(i)", "elements.add", "elements", "i", "continue;", "int gcd = 1;", "gcd", "1", "for(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}", "int i", "elements", "{\n\t\t\t\tgcd *= i;\n\t\t\t}", "{\n\t\t\t\tgcd *= i;\n\t\t\t}", "gcd *= i", "gcd", "i", "int lcm = (a2 / gcd) * b2;", "lcm", "(a2 / gcd) * b2", "(a2 / gcd)", "a2", "gcd", "b2", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "String[] args", "args", "public class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint a = Integer.parseInt(numbers[0]);\n\t\t\tint b = Integer.parseInt(numbers[1]);\n\t\t\tint a2 = a;\n\t\t\tint b2 = b;\n\t\t\t\n\t\t\t\n\t\t\tint limit = Math.min(a, b);\n\t\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint gcd = 1;\n\t\t\tfor(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}\n\t\t\t\n\t\t\tint lcm = (a2 / gcd) * b2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n }\n\t}\n}", "public class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\t\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint a = Integer.parseInt(numbers[0]);\n\t\t\tint b = Integer.parseInt(numbers[1]);\n\t\t\tint a2 = a;\n\t\t\tint b2 = b;\n\t\t\t\n\t\t\t\n\t\t\tint limit = Math.min(a, b);\n\t\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\t\t\t\n\t\t\tfor (int i = limit; i > 1; i--){\n\t\t\t\tif (a % i == 0 && b % i == 0){\n\t\t\t\t\ta /= i;\n\t\t\t\t\tb /= i;\n\t\t\t\t\telements.add(i); \n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint gcd = 1;\n\t\t\tfor(int i : elements){\n\t\t\t\tgcd *= i;\n\t\t\t}\n\t\t\t\n\t\t\tint lcm = (a2 / gcd) * b2;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n }\n\t}\n}", "Main" ]
import java.io.*; import java.util.ArrayList; public class Main { public static void main (String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; while ((line = br.readLine()) != null) { String[] numbers = line.split(" "); int a = Integer.parseInt(numbers[0]); int b = Integer.parseInt(numbers[1]); int a2 = a; int b2 = b; int limit = Math.min(a, b); ArrayList<Integer> elements = new ArrayList<Integer>(); for (int i = limit; i > 1; i--){ if (a % i == 0 && b % i == 0){ a /= i; b /= i; elements.add(i); continue; } } int gcd = 1; for(int i : elements){ gcd *= i; } int lcm = (a2 / gcd) * b2; System.out.println(gcd + " " + lcm); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 2, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 13, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 42, 2, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 92, 5 ], [ 92, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 13, 17 ], [ 12, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 29, 31 ], [ 18, 32 ], [ 32, 33 ], [ 32, 34 ], [ 18, 35 ], [ 35, 36 ], [ 35, 37 ], [ 18, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 42, 49 ], [ 49, 50 ], [ 49, 51 ], [ 18, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 56, 65 ], [ 65, 66 ], [ 65, 67 ], [ 56, 68 ], [ 68, 69 ], [ 68, 70 ], [ 18, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 18, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\twhile(in.hasNextInt()==true){\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tint l=n;\n\t\t\tint k=m;\n\t\t\tint r=0;\n\t\t\tif(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}\n\t\t\twhile(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tSystem.out.println(l/n*k);\n\t\t}\n\t}\n\t\t\n}\n\t\t\t\t", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\twhile(in.hasNextInt()==true){\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tint l=n;\n\t\t\tint k=m;\n\t\t\tint r=0;\n\t\t\tif(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}\n\t\t\twhile(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tSystem.out.println(l/n*k);\n\t\t}\n\t}\n\t\t\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\twhile(in.hasNextInt()==true){\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tint l=n;\n\t\t\tint k=m;\n\t\t\tint r=0;\n\t\t\tif(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}\n\t\t\twhile(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tSystem.out.println(l/n*k);\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\twhile(in.hasNextInt()==true){\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tint l=n;\n\t\t\tint k=m;\n\t\t\tint r=0;\n\t\t\tif(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}\n\t\t\twhile(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tSystem.out.println(l/n*k);\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(in.hasNextInt()==true){\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tint l=n;\n\t\t\tint k=m;\n\t\t\tint r=0;\n\t\t\tif(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}\n\t\t\twhile(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tSystem.out.println(l/n*k);\n\t\t}", "in.hasNextInt()==true", "in.hasNextInt()", "in.hasNextInt", "in", "true", "{\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tint l=n;\n\t\t\tint k=m;\n\t\t\tint r=0;\n\t\t\tif(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}\n\t\t\twhile(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tSystem.out.println(l/n*k);\n\t\t}", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "int m = in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "int l=n;", "l", "n", "int k=m;", "k", "m", "int r=0;", "r", "0", "if(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}", "m>n", "m", "n", "{\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}", "r=n", "r", "n", "n=m", "n", "m", "m=r", "m", "r", "while(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}", "m!=0", "m", "0", "{\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}", "n=n%m", "n", "n%m", "n", "m", "r=n", "r", "n", "n=m", "n", "m", "m=r", "m", "r", "System.out.print(n+\" \")", "System.out.print", "System.out", "System", "System.out", "n+\" \"", "n", "\" \"", "System.out.println(l/n*k)", "System.out.println", "System.out", "System", "System.out", "l/n*k", "l/n", "l", "n", "k", "String[] args", "args", "public class Main {\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\twhile(in.hasNextInt()==true){\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tint l=n;\n\t\t\tint k=m;\n\t\t\tint r=0;\n\t\t\tif(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}\n\t\t\twhile(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tSystem.out.println(l/n*k);\n\t\t}\n\t}\n\t\t\n}", "public class Main {\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\twhile(in.hasNextInt()==true){\n\t\t\tint n = in.nextInt();\n\t\t\tint m = in.nextInt();\n\t\t\tint l=n;\n\t\t\tint k=m;\n\t\t\tint r=0;\n\t\t\tif(m>n){\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t}\n\t\t\twhile(m!=0){\n\t\t\t\tn=n%m;\n\t\t\t\tr=n;\n\t\t\t\tn=m;\n\t\t\t\tm=r;\n\t\t\t\t}\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tSystem.out.println(l/n*k);\n\t\t}\n\t}\n\t\t\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNextInt()==true){ int n = in.nextInt(); int m = in.nextInt(); int l=n; int k=m; int r=0; if(m>n){ r=n; n=m; m=r; } while(m!=0){ n=n%m; r=n; n=m; m=r; } System.out.print(n+" "); System.out.println(l/n*k); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 29, 30, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 13, 13, 13, 41, 13, 2, 13, 2, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 18, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 29, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 26, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 53, 56 ], [ 26, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 26, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 70, 70 ], [ 70, 71 ], [ 70, 72 ], [ 70, 73 ], [ 12, 74 ], [ 74, 75 ], [ 10, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 83, 90 ], [ 90, 91 ], [ 90, 92 ], [ 78, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 78, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 98, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 107, 110 ], [ 76, 111 ], [ 111, 112 ], [ 76, 113 ], [ 113, 114 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Formatter;\n\nclass Main{\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\twhile(true){\n\t\t\t\tString[] nums = br.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(nums[0]);\n\t\t\t\tint b = Integer.parseInt(nums[1]);\n\t\t\t\tint yaku = Yukurid(a,b);\n\t\t\t\tint bai = a * (b / yaku);\n\t\t\t\tSystem.out.println(yaku + \" \" + bai);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}\n\t\n\tprivate static int Yukurid(int a,int b){\n\t\tif(a < b){\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\t\t//double div = (double)a / b;\n\t\tint remainder = a % b;\n\t\t\n\t\tif(remainder == 0){ return b; }\n\t\telse { return Yukurid(b,remainder); }\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Formatter;", "Formatter", "java.util", "class Main{\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\twhile(true){\n\t\t\t\tString[] nums = br.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(nums[0]);\n\t\t\t\tint b = Integer.parseInt(nums[1]);\n\t\t\t\tint yaku = Yukurid(a,b);\n\t\t\t\tint bai = a * (b / yaku);\n\t\t\t\tSystem.out.println(yaku + \" \" + bai);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}\n\t\n\tprivate static int Yukurid(int a,int b){\n\t\tif(a < b){\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\t\t//double div = (double)a / b;\n\t\tint remainder = a % b;\n\t\t\n\t\tif(remainder == 0){ return b; }\n\t\telse { return Yukurid(b,remainder); }\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\twhile(true){\n\t\t\t\tString[] nums = br.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(nums[0]);\n\t\t\t\tint b = Integer.parseInt(nums[1]);\n\t\t\t\tint yaku = Yukurid(a,b);\n\t\t\t\tint bai = a * (b / yaku);\n\t\t\t\tSystem.out.println(yaku + \" \" + bai);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\twhile(true){\n\t\t\t\tString[] nums = br.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(nums[0]);\n\t\t\t\tint b = Integer.parseInt(nums[1]);\n\t\t\t\tint yaku = Yukurid(a,b);\n\t\t\t\tint bai = a * (b / yaku);\n\t\t\t\tSystem.out.println(yaku + \" \" + bai);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try{\n\t\t\twhile(true){\n\t\t\t\tString[] nums = br.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(nums[0]);\n\t\t\t\tint b = Integer.parseInt(nums[1]);\n\t\t\t\tint yaku = Yukurid(a,b);\n\t\t\t\tint bai = a * (b / yaku);\n\t\t\t\tSystem.out.println(yaku + \" \" + bai);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\treturn;\n\t\t}", "catch(Exception e){\n\t\t\treturn;\n\t\t}", "Exception e", "{\n\t\t\treturn;\n\t\t}", "return;", "{\n\t\t\twhile(true){\n\t\t\t\tString[] nums = br.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(nums[0]);\n\t\t\t\tint b = Integer.parseInt(nums[1]);\n\t\t\t\tint yaku = Yukurid(a,b);\n\t\t\t\tint bai = a * (b / yaku);\n\t\t\t\tSystem.out.println(yaku + \" \" + bai);\n\t\t\t}\n\t\t}", "while(true){\n\t\t\t\tString[] nums = br.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(nums[0]);\n\t\t\t\tint b = Integer.parseInt(nums[1]);\n\t\t\t\tint yaku = Yukurid(a,b);\n\t\t\t\tint bai = a * (b / yaku);\n\t\t\t\tSystem.out.println(yaku + \" \" + bai);\n\t\t\t}", "true", "{\n\t\t\t\tString[] nums = br.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(nums[0]);\n\t\t\t\tint b = Integer.parseInt(nums[1]);\n\t\t\t\tint yaku = Yukurid(a,b);\n\t\t\t\tint bai = a * (b / yaku);\n\t\t\t\tSystem.out.println(yaku + \" \" + bai);\n\t\t\t}", "String[] nums = br.readLine().split(\" \");", "nums", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int a = Integer.parseInt(nums[0]);", "a", "Integer.parseInt(nums[0])", "Integer.parseInt", "Integer", "nums[0]", "nums", "0", "int b = Integer.parseInt(nums[1]);", "b", "Integer.parseInt(nums[1])", "Integer.parseInt", "Integer", "nums[1]", "nums", "1", "int yaku = Yukurid(a,b);", "yaku", "Yukurid(a,b)", "Yukurid", "a", "b", "int bai = a * (b / yaku);", "bai", "a * (b / yaku)", "a", "(b / yaku)", "b", "yaku", "System.out.println(yaku + \" \" + bai)", "System.out.println", "System.out", "System", "System.out", "yaku + \" \" + bai", "yaku + \" \" + bai", "yaku", "\" \"", "bai", "String[] args", "args", "private static int Yukurid(int a,int b){\n\t\tif(a < b){\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\t\t//double div = (double)a / b;\n\t\tint remainder = a % b;\n\t\t\n\t\tif(remainder == 0){ return b; }\n\t\telse { return Yukurid(b,remainder); }\n\t}", "Yukurid", "{\n\t\tif(a < b){\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}\n\t\t//double div = (double)a / b;\n\t\tint remainder = a % b;\n\t\t\n\t\tif(remainder == 0){ return b; }\n\t\telse { return Yukurid(b,remainder); }\n\t}", "if(a < b){\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}", "a < b", "a", "b", "{\n\t\t\tint temp = b;\n\t\t\tb = a;\n\t\t\ta = temp;\n\t\t}", "int temp = b;", "temp", "b", "b = a", "b", "a", "a = temp", "a", "temp", "int remainder = a % b;", "remainder", "a % b", "a", "b", "if(remainder == 0){ return b; }\n\t\telse { return Yukurid(b,remainder); }", "remainder == 0", "remainder", "0", "{ return b; }", "return b;", "b", "{ return Yukurid(b,remainder); }", "return Yukurid(b,remainder);", "Yukurid(b,remainder)", "Yukurid", "b", "remainder", "int a", "a", "int b", "b" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Formatter; class Main{ /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ while(true){ String[] nums = br.readLine().split(" "); int a = Integer.parseInt(nums[0]); int b = Integer.parseInt(nums[1]); int yaku = Yukurid(a,b); int bai = a * (b / yaku); System.out.println(yaku + " " + bai); } } catch(Exception e){ return; } } private static int Yukurid(int a,int b){ if(a < b){ int temp = b; b = a; a = temp; } //double div = (double)a / b; int remainder = a % b; if(remainder == 0){ return b; } else { return Yukurid(b,remainder); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 0, 13, 4, 18, 13, 0, 13, 0, 13, 4, 18, 13, 0, 13, 13, 42, 2, 13, 17, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 26, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 26, 41 ], [ 41, 42 ], [ 41, 43 ], [ 26, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 48, 55 ], [ 55, 56 ], [ 55, 57 ], [ 48, 58 ], [ 58, 59 ], [ 58, 60 ], [ 26, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 67, 67 ], [ 67, 68 ], [ 67, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 6, 75 ], [ 75, 76 ] ]
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a, b, tmp, a2, b2;\n\t\twhile(sc.hasNext()){\n\t\t\ta2 = a = sc.nextInt();\n\t\t\tb2 = b = sc.nextInt();\n\t\t\t\n\t\t\ta %= b;\n\t\t\twhile(a != 0){\n\t\t\t\ttmp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = tmp;\n\t\t\t\ta %= b;\n\t\t\t}\n\t\t\tSystem.out.println(b + \" \" + a2 / b * b2);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a, b, tmp, a2, b2;\n\t\twhile(sc.hasNext()){\n\t\t\ta2 = a = sc.nextInt();\n\t\t\tb2 = b = sc.nextInt();\n\t\t\t\n\t\t\ta %= b;\n\t\t\twhile(a != 0){\n\t\t\t\ttmp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = tmp;\n\t\t\t\ta %= b;\n\t\t\t}\n\t\t\tSystem.out.println(b + \" \" + a2 / b * b2);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a, b, tmp, a2, b2;\n\t\twhile(sc.hasNext()){\n\t\t\ta2 = a = sc.nextInt();\n\t\t\tb2 = b = sc.nextInt();\n\t\t\t\n\t\t\ta %= b;\n\t\t\twhile(a != 0){\n\t\t\t\ttmp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = tmp;\n\t\t\t\ta %= b;\n\t\t\t}\n\t\t\tSystem.out.println(b + \" \" + a2 / b * b2);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a, b, tmp, a2, b2;\n\t\twhile(sc.hasNext()){\n\t\t\ta2 = a = sc.nextInt();\n\t\t\tb2 = b = sc.nextInt();\n\t\t\t\n\t\t\ta %= b;\n\t\t\twhile(a != 0){\n\t\t\t\ttmp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = tmp;\n\t\t\t\ta %= b;\n\t\t\t}\n\t\t\tSystem.out.println(b + \" \" + a2 / b * b2);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a", "a", "b", "b", "tmp", "tmp", "a2", "a2", "b2;", "b2", "while(sc.hasNext()){\n\t\t\ta2 = a = sc.nextInt();\n\t\t\tb2 = b = sc.nextInt();\n\t\t\t\n\t\t\ta %= b;\n\t\t\twhile(a != 0){\n\t\t\t\ttmp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = tmp;\n\t\t\t\ta %= b;\n\t\t\t}\n\t\t\tSystem.out.println(b + \" \" + a2 / b * b2);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\ta2 = a = sc.nextInt();\n\t\t\tb2 = b = sc.nextInt();\n\t\t\t\n\t\t\ta %= b;\n\t\t\twhile(a != 0){\n\t\t\t\ttmp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = tmp;\n\t\t\t\ta %= b;\n\t\t\t}\n\t\t\tSystem.out.println(b + \" \" + a2 / b * b2);\n\t\t}", "a2 = a = sc.nextInt()", "a2", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b2 = b = sc.nextInt()", "b2", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "a %= b", "a", "b", "while(a != 0){\n\t\t\t\ttmp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = tmp;\n\t\t\t\ta %= b;\n\t\t\t}", "a != 0", "a", "0", "{\n\t\t\t\ttmp = a;\n\t\t\t\ta = b;\n\t\t\t\tb = tmp;\n\t\t\t\ta %= b;\n\t\t\t}", "tmp = a", "tmp", "a", "a = b", "a", "b", "b = tmp", "b", "tmp", "a %= b", "a", "b", "System.out.println(b + \" \" + a2 / b * b2)", "System.out.println", "System.out", "System", "System.out", "b + \" \" + a2 / b * b2", "b + \" \" + a2 / b * b2", "b", "\" \"", "a2 / b * b2", "a2 / b", "a2", "b", "b2", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a, b, tmp, a2, b2; while(sc.hasNext()){ a2 = a = sc.nextInt(); b2 = b = sc.nextInt(); a %= b; while(a != 0){ tmp = a; a = b; b = tmp; a %= b; } System.out.println(b + " " + a2 / b * b2); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 73, 5 ], [ 73, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 33, 38 ], [ 33, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 6, 47 ], [ 47, 48 ], [ 73, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 51, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 64, 67 ], [ 49, 68 ], [ 68, 69 ], [ 49, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tlong a = in.nextInt();\n\t\t\tlong b = in.nextInt();\n\t\t\tSystem.out.println(calc(a, b) + \" \" + a*b/calc(a, b));\n\t\t}\n\t}\n\tstatic long calc(long a, long b) {\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\treturn calc(b, r);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tlong a = in.nextInt();\n\t\t\tlong b = in.nextInt();\n\t\t\tSystem.out.println(calc(a, b) + \" \" + a*b/calc(a, b));\n\t\t}\n\t}\n\tstatic long calc(long a, long b) {\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\treturn calc(b, r);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tlong a = in.nextInt();\n\t\t\tlong b = in.nextInt();\n\t\t\tSystem.out.println(calc(a, b) + \" \" + a*b/calc(a, b));\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tlong a = in.nextInt();\n\t\t\tlong b = in.nextInt();\n\t\t\tSystem.out.println(calc(a, b) + \" \" + a*b/calc(a, b));\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(in.hasNext()) {\n\t\t\tlong a = in.nextInt();\n\t\t\tlong b = in.nextInt();\n\t\t\tSystem.out.println(calc(a, b) + \" \" + a*b/calc(a, b));\n\t\t}", "in.hasNext()", "in.hasNext", "in", "{\n\t\t\tlong a = in.nextInt();\n\t\t\tlong b = in.nextInt();\n\t\t\tSystem.out.println(calc(a, b) + \" \" + a*b/calc(a, b));\n\t\t}", "long a = in.nextInt();", "a", "in.nextInt()", "in.nextInt", "in", "long b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "System.out.println(calc(a, b) + \" \" + a*b/calc(a, b))", "System.out.println", "System.out", "System", "System.out", "calc(a, b) + \" \" + a*b/calc(a, b)", "calc(a, b) + \" \" + a*b/calc(a, b)", "calc(a, b)", "calc", "a", "b", "\" \"", "a*b/calc(a, b)", "a*b", "a", "b", "calc(a, b)", "calc", "a", "b", "String[] args", "args", "static long calc(long a, long b) {\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\treturn calc(b, r);\n\t}", "calc", "{\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\treturn calc(b, r);\n\t}", "long r = a%b;", "r", "a%b", "a", "b", "if(r==0) return b;", "r==0", "r", "0", "return b;", "b", "return calc(b, r);", "calc(b, r)", "calc", "b", "r", "long a", "a", "long b", "b", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tlong a = in.nextInt();\n\t\t\tlong b = in.nextInt();\n\t\t\tSystem.out.println(calc(a, b) + \" \" + a*b/calc(a, b));\n\t\t}\n\t}\n\tstatic long calc(long a, long b) {\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\treturn calc(b, r);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()) {\n\t\t\tlong a = in.nextInt();\n\t\t\tlong b = in.nextInt();\n\t\t\tSystem.out.println(calc(a, b) + \" \" + a*b/calc(a, b));\n\t\t}\n\t}\n\tstatic long calc(long a, long b) {\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\treturn calc(b, r);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()) { long a = in.nextInt(); long b = in.nextInt(); System.out.println(calc(a, b) + " " + a*b/calc(a, b)); } } static long calc(long a, long b) { long r = a%b; if(r==0) return b; return calc(b, r); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 13, 42, 2, 13, 17, 30, 0, 13, 2, 13, 13, 41, 13, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 69, 5 ], [ 69, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 37, 46 ], [ 46, 47 ], [ 46, 48 ], [ 37, 49 ], [ 49, 50 ], [ 49, 51 ], [ 16, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 58, 58 ], [ 58, 59 ], [ 58, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 6, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long lar = sc.nextInt();\n long sma = sc.nextInt();\n long max = lar, min = sma;\n while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }\n System.out.println(lar + \" \" + (max / lar * min));\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long lar = sc.nextInt();\n long sma = sc.nextInt();\n long max = lar, min = sma;\n while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }\n System.out.println(lar + \" \" + (max / lar * min));\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long lar = sc.nextInt();\n long sma = sc.nextInt();\n long max = lar, min = sma;\n while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }\n System.out.println(lar + \" \" + (max / lar * min));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long lar = sc.nextInt();\n long sma = sc.nextInt();\n long max = lar, min = sma;\n while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }\n System.out.println(lar + \" \" + (max / lar * min));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n long lar = sc.nextInt();\n long sma = sc.nextInt();\n long max = lar, min = sma;\n while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }\n System.out.println(lar + \" \" + (max / lar * min));\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n long lar = sc.nextInt();\n long sma = sc.nextInt();\n long max = lar, min = sma;\n while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }\n System.out.println(lar + \" \" + (max / lar * min));\n }", "long lar = sc.nextInt();", "lar", "sc.nextInt()", "sc.nextInt", "sc", "long sma = sc.nextInt();", "sma", "sc.nextInt()", "sc.nextInt", "sc", "long max = lar", "max", "lar", "min = sma;", "min", "sma", "while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }", "sma != 0", "sma", "0", "{\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }", "lar = lar % sma", "lar", "lar % sma", "lar", "sma", "long freespace = lar;", "freespace", "lar", "lar = sma", "lar", "sma", "sma = freespace", "sma", "freespace", "System.out.println(lar + \" \" + (max / lar * min))", "System.out.println", "System.out", "System", "System.out", "lar + \" \" + (max / lar * min)", "lar + \" \" + (max / lar * min)", "lar", "\" \"", "(max / lar * min)", "max / lar", "max", "lar", "min", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long lar = sc.nextInt();\n long sma = sc.nextInt();\n long max = lar, min = sma;\n while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }\n System.out.println(lar + \" \" + (max / lar * min));\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()) {\n long lar = sc.nextInt();\n long sma = sc.nextInt();\n long max = lar, min = sma;\n while (sma != 0) {\n lar = lar % sma;\n long freespace = lar;\n lar = sma;\n sma = freespace;\n }\n System.out.println(lar + \" \" + (max / lar * min));\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { long lar = sc.nextInt(); long sma = sc.nextInt(); long max = lar, min = sma; while (sma != 0) { lar = lar % sma; long freespace = lar; lar = sma; sma = freespace; } System.out.println(lar + " " + (max / lar * min)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 13, 41, 13, 13, 42, 2, 13, 13, 30, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 124, 20 ], [ 124, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 23, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 38, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 38, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 38, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 38, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 38, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 21, 85 ], [ 85, 86 ], [ 124, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 89, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 89, 117 ], [ 117, 118 ], [ 87, 119 ], [ 119, 120 ], [ 87, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = \"\";\n\t\t\n\t\twhile((input = br.readLine()) != null){\n\t\t\tString[] arr = input.split(\" \");\n\t\t\t\n\t\t\tlong a = Integer.parseInt(arr[0]);\n\t\t\tlong b = Integer.parseInt(arr[1]);\n\t\t\t\n\t\t\tlong x = gcd(a, b);\n\t\t\t\n\t\t\tSystem.out.print(x + \" \");\n\t\t\tSystem.out.println((a * b) / x);\n\t\t}\n\t}\n\t\n\tstatic long gcd(long a, long b){\n\t\tlong k = a;\n\t\tlong m = b;\n\t\t\n\t\twhile(k != m){\n\t\t\tif(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}\n\t\t}\n\t\treturn k;\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = \"\";\n\t\t\n\t\twhile((input = br.readLine()) != null){\n\t\t\tString[] arr = input.split(\" \");\n\t\t\t\n\t\t\tlong a = Integer.parseInt(arr[0]);\n\t\t\tlong b = Integer.parseInt(arr[1]);\n\t\t\t\n\t\t\tlong x = gcd(a, b);\n\t\t\t\n\t\t\tSystem.out.print(x + \" \");\n\t\t\tSystem.out.println((a * b) / x);\n\t\t}\n\t}\n\t\n\tstatic long gcd(long a, long b){\n\t\tlong k = a;\n\t\tlong m = b;\n\t\t\n\t\twhile(k != m){\n\t\t\tif(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}\n\t\t}\n\t\treturn k;\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = \"\";\n\t\t\n\t\twhile((input = br.readLine()) != null){\n\t\t\tString[] arr = input.split(\" \");\n\t\t\t\n\t\t\tlong a = Integer.parseInt(arr[0]);\n\t\t\tlong b = Integer.parseInt(arr[1]);\n\t\t\t\n\t\t\tlong x = gcd(a, b);\n\t\t\t\n\t\t\tSystem.out.print(x + \" \");\n\t\t\tSystem.out.println((a * b) / x);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = \"\";\n\t\t\n\t\twhile((input = br.readLine()) != null){\n\t\t\tString[] arr = input.split(\" \");\n\t\t\t\n\t\t\tlong a = Integer.parseInt(arr[0]);\n\t\t\tlong b = Integer.parseInt(arr[1]);\n\t\t\t\n\t\t\tlong x = gcd(a, b);\n\t\t\t\n\t\t\tSystem.out.print(x + \" \");\n\t\t\tSystem.out.println((a * b) / x);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String input = \"\";", "input", "\"\"", "while((input = br.readLine()) != null){\n\t\t\tString[] arr = input.split(\" \");\n\t\t\t\n\t\t\tlong a = Integer.parseInt(arr[0]);\n\t\t\tlong b = Integer.parseInt(arr[1]);\n\t\t\t\n\t\t\tlong x = gcd(a, b);\n\t\t\t\n\t\t\tSystem.out.print(x + \" \");\n\t\t\tSystem.out.println((a * b) / x);\n\t\t}", "(input = br.readLine()) != null", "(input = br.readLine())", "input", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tString[] arr = input.split(\" \");\n\t\t\t\n\t\t\tlong a = Integer.parseInt(arr[0]);\n\t\t\tlong b = Integer.parseInt(arr[1]);\n\t\t\t\n\t\t\tlong x = gcd(a, b);\n\t\t\t\n\t\t\tSystem.out.print(x + \" \");\n\t\t\tSystem.out.println((a * b) / x);\n\t\t}", "String[] arr = input.split(\" \");", "arr", "input.split(\" \")", "input.split", "input", "\" \"", "long a = Integer.parseInt(arr[0]);", "a", "Integer.parseInt(arr[0])", "Integer.parseInt", "Integer", "arr[0]", "arr", "0", "long b = Integer.parseInt(arr[1]);", "b", "Integer.parseInt(arr[1])", "Integer.parseInt", "Integer", "arr[1]", "arr", "1", "long x = gcd(a, b);", "x", "gcd(a, b)", "gcd", "a", "b", "System.out.print(x + \" \")", "System.out.print", "System.out", "System", "System.out", "x + \" \"", "x", "\" \"", "System.out.println((a * b) / x)", "System.out.println", "System.out", "System", "System.out", "(a * b) / x", "(a * b)", "a", "b", "x", "String[] args", "args", "static long gcd(long a, long b){\n\t\tlong k = a;\n\t\tlong m = b;\n\t\t\n\t\twhile(k != m){\n\t\t\tif(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}\n\t\t}\n\t\treturn k;\n\t}", "gcd", "{\n\t\tlong k = a;\n\t\tlong m = b;\n\t\t\n\t\twhile(k != m){\n\t\t\tif(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}\n\t\t}\n\t\treturn k;\n\t}", "long k = a;", "k", "a", "long m = b;", "m", "b", "while(k != m){\n\t\t\tif(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}\n\t\t}", "k != m", "k", "m", "{\n\t\t\tif(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}\n\t\t}", "if(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}", "k > m", "k", "m", "{\n\t\t\t\tk = k - m;\n\t\t\t}", "k = k - m", "k", "k - m", "k", "m", "{\n\t\t\t\tm = m - k;\n\t\t\t}", "m = m - k", "m", "m - k", "m", "k", "return k;", "k", "long a", "a", "long b", "b", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = \"\";\n\t\t\n\t\twhile((input = br.readLine()) != null){\n\t\t\tString[] arr = input.split(\" \");\n\t\t\t\n\t\t\tlong a = Integer.parseInt(arr[0]);\n\t\t\tlong b = Integer.parseInt(arr[1]);\n\t\t\t\n\t\t\tlong x = gcd(a, b);\n\t\t\t\n\t\t\tSystem.out.print(x + \" \");\n\t\t\tSystem.out.println((a * b) / x);\n\t\t}\n\t}\n\t\n\tstatic long gcd(long a, long b){\n\t\tlong k = a;\n\t\tlong m = b;\n\t\t\n\t\twhile(k != m){\n\t\t\tif(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}\n\t\t}\n\t\treturn k;\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input = \"\";\n\t\t\n\t\twhile((input = br.readLine()) != null){\n\t\t\tString[] arr = input.split(\" \");\n\t\t\t\n\t\t\tlong a = Integer.parseInt(arr[0]);\n\t\t\tlong b = Integer.parseInt(arr[1]);\n\t\t\t\n\t\t\tlong x = gcd(a, b);\n\t\t\t\n\t\t\tSystem.out.print(x + \" \");\n\t\t\tSystem.out.println((a * b) / x);\n\t\t}\n\t}\n\t\n\tstatic long gcd(long a, long b){\n\t\tlong k = a;\n\t\tlong m = b;\n\t\t\n\t\twhile(k != m){\n\t\t\tif(k > m){\n\t\t\t\tk = k - m;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tm = m - k;\n\t\t\t}\n\t\t}\n\t\treturn k;\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = ""; while((input = br.readLine()) != null){ String[] arr = input.split(" "); long a = Integer.parseInt(arr[0]); long b = Integer.parseInt(arr[1]); long x = gcd(a, b); System.out.print(x + " "); System.out.println((a * b) / x); } } static long gcd(long a, long b){ long k = a; long m = b; while(k != m){ if(k > m){ k = k - m; } else{ m = m - k; } } return k; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 73, 5 ], [ 73, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 9, 13 ], [ 13, 14 ], [ 9, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 16, 19 ], [ 19, 20 ], [ 19, 21 ], [ 6, 22 ], [ 22, 23 ], [ 6, 24 ], [ 24, 25 ], [ 73, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 36, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 36, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 66, 66 ], [ 66, 67 ], [ 66, 68 ], [ 66, 69 ], [ 26, 70 ], [ 70, 71 ], [ 0, 72 ], [ 72, 73 ], [ 72, 74 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic int gcd(int a, int b){\n\n\t\tif(b==0)\n\t\t\treturn a;\n\t\telse\n\t\t\treturn gcd(b,a%b);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(stdIn.hasNext()){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint gcd_ans = gcd(a,b);\n\t\t\tint lcm_ans = a/gcd_ans*b;\n\n\t\t\tSystem.out.println(gcd_ans+\" \"+lcm_ans);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic int gcd(int a, int b){\n\n\t\tif(b==0)\n\t\t\treturn a;\n\t\telse\n\t\t\treturn gcd(b,a%b);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(stdIn.hasNext()){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint gcd_ans = gcd(a,b);\n\t\t\tint lcm_ans = a/gcd_ans*b;\n\n\t\t\tSystem.out.println(gcd_ans+\" \"+lcm_ans);\n\t\t}\n\t}\n}", "Main", "static int gcd(int a, int b){\n\n\t\tif(b==0)\n\t\t\treturn a;\n\t\telse\n\t\t\treturn gcd(b,a%b);\n\t}", "gcd", "{\n\n\t\tif(b==0)\n\t\t\treturn a;\n\t\telse\n\t\t\treturn gcd(b,a%b);\n\t}", "if(b==0)\n\t\t\treturn a;\n\t\telse\n\t\t\treturn gcd(b,a%b);", "b==0", "b", "0", "return a;", "a", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(stdIn.hasNext()){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint gcd_ans = gcd(a,b);\n\t\t\tint lcm_ans = a/gcd_ans*b;\n\n\t\t\tSystem.out.println(gcd_ans+\" \"+lcm_ans);\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(stdIn.hasNext()){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint gcd_ans = gcd(a,b);\n\t\t\tint lcm_ans = a/gcd_ans*b;\n\n\t\t\tSystem.out.println(gcd_ans+\" \"+lcm_ans);\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while(stdIn.hasNext()){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint gcd_ans = gcd(a,b);\n\t\t\tint lcm_ans = a/gcd_ans*b;\n\n\t\t\tSystem.out.println(gcd_ans+\" \"+lcm_ans);\n\t\t}", "stdIn.hasNext()", "stdIn.hasNext", "stdIn", "{\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint gcd_ans = gcd(a,b);\n\t\t\tint lcm_ans = a/gcd_ans*b;\n\n\t\t\tSystem.out.println(gcd_ans+\" \"+lcm_ans);\n\t\t}", "int a = stdIn.nextInt();", "a", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int b = stdIn.nextInt();", "b", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int gcd_ans = gcd(a,b);", "gcd_ans", "gcd(a,b)", "gcd", "a", "b", "int lcm_ans = a/gcd_ans*b;", "lcm_ans", "a/gcd_ans*b", "a/gcd_ans", "a", "gcd_ans", "b", "System.out.println(gcd_ans+\" \"+lcm_ans)", "System.out.println", "System.out", "System", "System.out", "gcd_ans+\" \"+lcm_ans", "gcd_ans+\" \"+lcm_ans", "gcd_ans", "\" \"", "lcm_ans", "String[] args", "args", "public class Main {\n\n\tstatic int gcd(int a, int b){\n\n\t\tif(b==0)\n\t\t\treturn a;\n\t\telse\n\t\t\treturn gcd(b,a%b);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(stdIn.hasNext()){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint gcd_ans = gcd(a,b);\n\t\t\tint lcm_ans = a/gcd_ans*b;\n\n\t\t\tSystem.out.println(gcd_ans+\" \"+lcm_ans);\n\t\t}\n\t}\n}", "public class Main {\n\n\tstatic int gcd(int a, int b){\n\n\t\tif(b==0)\n\t\t\treturn a;\n\t\telse\n\t\t\treturn gcd(b,a%b);\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile(stdIn.hasNext()){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint gcd_ans = gcd(a,b);\n\t\t\tint lcm_ans = a/gcd_ans*b;\n\n\t\t\tSystem.out.println(gcd_ans+\" \"+lcm_ans);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static int gcd(int a, int b){ if(b==0) return a; else return gcd(b,a%b); } public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while(stdIn.hasNext()){ int a = stdIn.nextInt(); int b = stdIn.nextInt(); int gcd_ans = gcd(a,b); int lcm_ans = a/gcd_ans*b; System.out.println(gcd_ans+" "+lcm_ans); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 0, 13, 4, 18, 13, 0, 13, 0, 13, 4, 18, 13, 0, 13, 0, 13, 17, 41, 13, 17, 42, 17, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 3, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 30, 40, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 17, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 116, 5 ], [ 116, 6 ], [ 6, 7 ], [ 6, 8 ], [ 116, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 19, 20 ], [ 16, 21 ], [ 21, 22 ], [ 16, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 16, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 16, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 16, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 16, 48 ], [ 48, 49 ], [ 48, 50 ], [ 16, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 54, 66 ], [ 53, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 67, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 79, 86 ], [ 86, 87 ], [ 86, 88 ], [ 67, 89 ], [ 89, 90 ], [ 90, 91 ], [ 16, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 16, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 99, 105 ], [ 99, 106 ], [ 116, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 107, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run(){\n\t\twhile(sc.hasNext()){\n\t\t\tlong a, ta, b, tb, gcd, lcm;\n\t\t\ta = ta = sc.nextLong();\n\t\t\tb = tb = sc.nextLong();\n\t\t\tgcd = lcm = 1;\n\t\t\t\n\t\t\tint d = 2;\n\t\t\t\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlcm = a * b / gcd;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run(){\n\t\twhile(sc.hasNext()){\n\t\t\tlong a, ta, b, tb, gcd, lcm;\n\t\t\ta = ta = sc.nextLong();\n\t\t\tb = tb = sc.nextLong();\n\t\t\tgcd = lcm = 1;\n\t\t\t\n\t\t\tint d = 2;\n\t\t\t\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlcm = a * b / gcd;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "void run(){\n\t\twhile(sc.hasNext()){\n\t\t\tlong a, ta, b, tb, gcd, lcm;\n\t\t\ta = ta = sc.nextLong();\n\t\t\tb = tb = sc.nextLong();\n\t\t\tgcd = lcm = 1;\n\t\t\t\n\t\t\tint d = 2;\n\t\t\t\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlcm = a * b / gcd;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t}\n\t}", "run", "{\n\t\twhile(sc.hasNext()){\n\t\t\tlong a, ta, b, tb, gcd, lcm;\n\t\t\ta = ta = sc.nextLong();\n\t\t\tb = tb = sc.nextLong();\n\t\t\tgcd = lcm = 1;\n\t\t\t\n\t\t\tint d = 2;\n\t\t\t\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlcm = a * b / gcd;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t}\n\t}", "while(sc.hasNext()){\n\t\t\tlong a, ta, b, tb, gcd, lcm;\n\t\t\ta = ta = sc.nextLong();\n\t\t\tb = tb = sc.nextLong();\n\t\t\tgcd = lcm = 1;\n\t\t\t\n\t\t\tint d = 2;\n\t\t\t\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlcm = a * b / gcd;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tlong a, ta, b, tb, gcd, lcm;\n\t\t\ta = ta = sc.nextLong();\n\t\t\tb = tb = sc.nextLong();\n\t\t\tgcd = lcm = 1;\n\t\t\t\n\t\t\tint d = 2;\n\t\t\t\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlcm = a * b / gcd;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t}", "long a", "a", "ta", "ta", "b", "b", "tb", "tb", "gcd", "gcd", "lcm;", "lcm", "a = ta = sc.nextLong()", "a", "ta = sc.nextLong()", "ta", "sc.nextLong()", "sc.nextLong", "sc", "b = tb = sc.nextLong()", "b", "tb = sc.nextLong()", "tb", "sc.nextLong()", "sc.nextLong", "sc", "gcd = lcm = 1", "gcd", "lcm = 1", "lcm", "1", "int d = 2;", "d", "2", "while(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}", "true", "{\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}", "if(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;", "ta / d == 0 || tb / d == 0", "ta / d == 0", "ta / d", "ta", "d", "0", "tb / d == 0", "tb / d", "tb", "d", "0", "break;", "if(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}", "ta % d == 0 && tb % d == 0", "ta % d == 0", "ta % d", "ta", "d", "0", "tb % d == 0", "tb % d", "tb", "d", "0", "{\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}", "gcd *= d", "gcd", "d", "ta /= d", "ta", "d", "tb /= d", "tb", "d", "{\n\t\t\t\t\td++;\n\t\t\t\t}", "d++", "d", "lcm = a * b / gcd", "lcm", "a * b / gcd", "a * b", "a", "b", "gcd", "System.out.printf(\"%d %d\\n\", gcd, lcm)", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "gcd", "lcm", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run(){\n\t\twhile(sc.hasNext()){\n\t\t\tlong a, ta, b, tb, gcd, lcm;\n\t\t\ta = ta = sc.nextLong();\n\t\t\tb = tb = sc.nextLong();\n\t\t\tgcd = lcm = 1;\n\t\t\t\n\t\t\tint d = 2;\n\t\t\t\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlcm = a * b / gcd;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\t\n\tvoid run(){\n\t\twhile(sc.hasNext()){\n\t\t\tlong a, ta, b, tb, gcd, lcm;\n\t\t\ta = ta = sc.nextLong();\n\t\t\tb = tb = sc.nextLong();\n\t\t\tgcd = lcm = 1;\n\t\t\t\n\t\t\tint d = 2;\n\t\t\t\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tif(ta / d == 0 || tb / d == 0)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tif(ta % d == 0 && tb % d == 0){\n\t\t\t\t\tgcd *= d;\n\t\t\t\t\tta /= d;\n\t\t\t\t\ttb /= d;\n\t\t\t\t}else{\n\t\t\t\t\td++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlcm = a * b / gcd;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); void run(){ while(sc.hasNext()){ long a, ta, b, tb, gcd, lcm; a = ta = sc.nextLong(); b = tb = sc.nextLong(); gcd = lcm = 1; int d = 2; while(true){ if(ta / d == 0 || tb / d == 0) break; if(ta % d == 0 && tb % d == 0){ gcd *= d; ta /= d; tb /= d; }else{ d++; } } lcm = a * b / gcd; System.out.printf("%d %d\n", gcd, lcm); } } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 4, 18, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 4, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 90, 5 ], [ 90, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 12, 17 ], [ 18, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 36, 39 ], [ 35, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 90, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 45, 61 ], [ 61, 62 ], [ 45, 63 ], [ 63, 64 ], [ 90, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 72, 75 ], [ 69, 76 ], [ 65, 77 ], [ 77, 78 ], [ 65, 79 ], [ 79, 80 ], [ 90, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 81, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "import java.util.*;\npublic class Main{\n void run() {\n Scanner sc = new Scanner(System.in);\n for(;sc.hasNext();){\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }\n }\n long gcd(long a, long b){\n if(b==0) return a;\n return gcd(b, a%b);\n }\n long lcm(long a, long b){\n return a/gcd(a, b)*b;\n }\n public static void main(String[] args){\n new Main().run();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n void run() {\n Scanner sc = new Scanner(System.in);\n for(;sc.hasNext();){\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }\n }\n long gcd(long a, long b){\n if(b==0) return a;\n return gcd(b, a%b);\n }\n long lcm(long a, long b){\n return a/gcd(a, b)*b;\n }\n public static void main(String[] args){\n new Main().run();\n }\n}", "Main", "void run() {\n Scanner sc = new Scanner(System.in);\n for(;sc.hasNext();){\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }\n }", "run", "{\n Scanner sc = new Scanner(System.in);\n for(;sc.hasNext();){\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(;sc.hasNext();){\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }", ";", "sc.hasNext()", "sc.hasNext", "sc", "{\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }", "{\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }", "long a = sc.nextLong();", "a", "sc.nextLong()", "sc.nextLong", "sc", "long b = sc.nextLong();", "b", "sc.nextLong()", "sc.nextLong", "sc", "System.out.println( gcd(a, b) + \" \" + lcm(a, b) )", "System.out.println", "System.out", "System", "System.out", "gcd(a, b) + \" \" + lcm(a, b)", "gcd(a, b) + \" \" + lcm(a, b)", "gcd(a, b)", "gcd", "a", "b", "\" \"", "lcm(a, b)", "lcm", "a", "b", "long gcd(long a, long b){\n if(b==0) return a;\n return gcd(b, a%b);\n }", "gcd", "{\n if(b==0) return a;\n return gcd(b, a%b);\n }", "if(b==0) return a;", "b==0", "b", "0", "return a;", "a", "return gcd(b, a%b);", "gcd(b, a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "long lcm(long a, long b){\n return a/gcd(a, b)*b;\n }", "lcm", "{\n return a/gcd(a, b)*b;\n }", "return a/gcd(a, b)*b;", "a/gcd(a, b)*b", "a/gcd(a, b)", "a", "gcd(a, b)", "gcd", "a", "b", "b", "long a", "a", "long b", "b", "public static void main(String[] args){\n new Main().run();\n }", "main", "{\n new Main().run();\n }", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main{\n void run() {\n Scanner sc = new Scanner(System.in);\n for(;sc.hasNext();){\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }\n }\n long gcd(long a, long b){\n if(b==0) return a;\n return gcd(b, a%b);\n }\n long lcm(long a, long b){\n return a/gcd(a, b)*b;\n }\n public static void main(String[] args){\n new Main().run();\n }\n}", "public class Main{\n void run() {\n Scanner sc = new Scanner(System.in);\n for(;sc.hasNext();){\n long a = sc.nextLong();\n long b = sc.nextLong();\n System.out.println( gcd(a, b) + \" \" + lcm(a, b) );\n }\n }\n long gcd(long a, long b){\n if(b==0) return a;\n return gcd(b, a%b);\n }\n long lcm(long a, long b){\n return a/gcd(a, b)*b;\n }\n public static void main(String[] args){\n new Main().run();\n }\n}", "Main" ]
import java.util.*; public class Main{ void run() { Scanner sc = new Scanner(System.in); for(;sc.hasNext();){ long a = sc.nextLong(); long b = sc.nextLong(); System.out.println( gcd(a, b) + " " + lcm(a, b) ); } } long gcd(long a, long b){ if(b==0) return a; return gcd(b, a%b); } long lcm(long a, long b){ return a/gcd(a, b)*b; } public static void main(String[] args){ new Main().run(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 13, 2, 2, 13, 13, 4, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 89, 5 ], [ 89, 6 ], [ 6, 7 ], [ 6, 8 ], [ 89, 9 ], [ 9, 10 ], [ 89, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 13, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 21, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 11, 29 ], [ 29, 30 ], [ 89, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 42, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 42, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 62, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 76, 79 ], [ 89, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 80, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tScanner sc = new Scanner(System.in);\n\tStringTokenizer st;\n\t\n\tlong gcd(long a, long b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a % b);\n\t}\n\t\n\t\n\tvoid run() {\n\t\tlong a, b;\n\t\twhile (sc.hasNextLine()) {\n\t\t\tst = new StringTokenizer(sc.nextLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b));\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tScanner sc = new Scanner(System.in);\n\tStringTokenizer st;\n\t\n\tlong gcd(long a, long b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a % b);\n\t}\n\t\n\t\n\tvoid run() {\n\t\tlong a, b;\n\t\twhile (sc.hasNextLine()) {\n\t\t\tst = new StringTokenizer(sc.nextLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b));\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tScanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringTokenizer st;", "st", "long gcd(long a, long b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a % b);\n\t}", "gcd", "{\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a % b);\n\t}", "if (b == 0) return a;", "b == 0", "b", "0", "return a;", "a", "return gcd(b, a % b);", "gcd(b, a % b)", "gcd", "b", "a % b", "a", "b", "long a", "a", "long b", "b", "void run() {\n\t\tlong a, b;\n\t\twhile (sc.hasNextLine()) {\n\t\t\tst = new StringTokenizer(sc.nextLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b));\n\t\t}\n\t}", "run", "{\n\t\tlong a, b;\n\t\twhile (sc.hasNextLine()) {\n\t\t\tst = new StringTokenizer(sc.nextLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b));\n\t\t}\n\t}", "long a", "a", "b;", "b", "while (sc.hasNextLine()) {\n\t\t\tst = new StringTokenizer(sc.nextLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b));\n\t\t}", "sc.hasNextLine()", "sc.hasNextLine", "sc", "{\n\t\t\tst = new StringTokenizer(sc.nextLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b));\n\t\t}", "st = new StringTokenizer(sc.nextLine())", "st", "new StringTokenizer(sc.nextLine())", "a = Integer.parseInt(st.nextToken())", "a", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "b = Integer.parseInt(st.nextToken())", "b", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "System.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b))", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "gcd(a,b)", "gcd", "a", "b", "a*b/gcd(a,b)", "a*b", "a", "b", "gcd(a,b)", "gcd", "a", "b", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tScanner sc = new Scanner(System.in);\n\tStringTokenizer st;\n\t\n\tlong gcd(long a, long b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a % b);\n\t}\n\t\n\t\n\tvoid run() {\n\t\tlong a, b;\n\t\twhile (sc.hasNextLine()) {\n\t\t\tst = new StringTokenizer(sc.nextLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b));\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tScanner sc = new Scanner(System.in);\n\tStringTokenizer st;\n\t\n\tlong gcd(long a, long b) {\n\t\tif (b == 0) return a;\n\t\treturn gcd(b, a % b);\n\t}\n\t\n\t\n\tvoid run() {\n\t\tlong a, b;\n\t\twhile (sc.hasNextLine()) {\n\t\t\tst = new StringTokenizer(sc.nextLine());\n\t\t\ta = Integer.parseInt(st.nextToken());\n\t\t\tb = Integer.parseInt(st.nextToken());\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd(a,b), a*b/gcd(a,b));\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tnew Main().run();\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { /** * @param args */ Scanner sc = new Scanner(System.in); StringTokenizer st; long gcd(long a, long b) { if (b == 0) return a; return gcd(b, a % b); } void run() { long a, b; while (sc.hasNextLine()) { st = new StringTokenizer(sc.nextLine()); a = Integer.parseInt(st.nextToken()); b = Integer.parseInt(st.nextToken()); System.out.printf("%d %d\n", gcd(a,b), a*b/gcd(a,b)); } } public static void main(String[] args) { // TODO Auto-generated method stub new Main().run(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 42, 2, 13, 17, 30, 0, 13, 4, 18, 13, 17, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 0, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 39, 18, 13, 17, 18, 13, 17, 42, 2, 18, 13, 17, 18, 13, 17, 30, 0, 13, 2, 18, 13, 17, 18, 13, 17, 14, 2, 13, 18, 13, 17, 30, 0, 18, 13, 17, 13, 30, 0, 13, 18, 13, 17, 0, 18, 13, 17, 13, 0, 18, 13, 17, 13, 29, 18, 13, 17, 23, 13, 12, 13, 30, 29, 2, 2, 18, 13, 17, 13, 18, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 200, 14 ], [ 200, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 32, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 32, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 32, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 32, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 61, 61 ], [ 61, 62 ], [ 61, 63 ], [ 61, 64 ], [ 32, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 15, 70 ], [ 70, 71 ], [ 200, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 81, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 74, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 74, 110 ], [ 110, 111 ], [ 72, 112 ], [ 112, 113 ], [ 200, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 119, 120 ], [ 116, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 127, 129 ], [ 116, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 135, 136 ], [ 135, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 145, 147 ], [ 138, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 151, 153 ], [ 148, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 148, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 163, 165 ], [ 160, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 160, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 116, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 114, 180 ], [ 180, 181 ], [ 200, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 186, 192 ], [ 192, 193 ], [ 192, 194 ], [ 182, 195 ], [ 195, 196 ], [ 182, 197 ], [ 197, 198 ], [ 0, 199 ], [ 199, 200 ], [ 199, 201 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n\t/**\n\t * AOJ 0005 GCD and LCM\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tString input = bufferedReader.readLine();\n\t\tString[] twoStr;\n\t\twhile (input != null) {\n\t\t\ttwoStr = input.split(\"\\\\s\");\n\t\t\tint[] twoInt = getintArray(twoStr);\n\t\t\tint gcd = getGCD(twoInt);\n\t\t\tint lcm = getLCM(twoInt, gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t\tinput = bufferedReader.readLine();\n\t\t}\n\t}\n\n\t/**\n\t * String????????????int?????????????????????????????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getintArray(String[] strArray) {\n\t\tint[] intArray = new int[strArray.length];\n\t\tfor (int i = 0; i < intArray.length; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\tArrays.sort(intArray);\n\t\treturn intArray;\n\t}\n\n\tprivate static int getGCD(int[] twoIntOrg) {\n\t\tint tmp, diff;\n\t\tint[] twoInt = { twoIntOrg[0], twoIntOrg[1] };\n\t\twhile (twoInt[0] != twoInt[1]) {\n\t\t\tdiff = twoInt[1] - twoInt[0];\n\t\t\tif (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}\n\t\t}\n\t\treturn twoInt[0];\n\t}\n\n\tprivate static int getLCM(int[] twoInt, int gcd) {\n\t\treturn twoInt[0] / gcd * twoInt[1];\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n\n\t/**\n\t * AOJ 0005 GCD and LCM\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tString input = bufferedReader.readLine();\n\t\tString[] twoStr;\n\t\twhile (input != null) {\n\t\t\ttwoStr = input.split(\"\\\\s\");\n\t\t\tint[] twoInt = getintArray(twoStr);\n\t\t\tint gcd = getGCD(twoInt);\n\t\t\tint lcm = getLCM(twoInt, gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t\tinput = bufferedReader.readLine();\n\t\t}\n\t}\n\n\t/**\n\t * String????????????int?????????????????????????????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getintArray(String[] strArray) {\n\t\tint[] intArray = new int[strArray.length];\n\t\tfor (int i = 0; i < intArray.length; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\tArrays.sort(intArray);\n\t\treturn intArray;\n\t}\n\n\tprivate static int getGCD(int[] twoIntOrg) {\n\t\tint tmp, diff;\n\t\tint[] twoInt = { twoIntOrg[0], twoIntOrg[1] };\n\t\twhile (twoInt[0] != twoInt[1]) {\n\t\t\tdiff = twoInt[1] - twoInt[0];\n\t\t\tif (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}\n\t\t}\n\t\treturn twoInt[0];\n\t}\n\n\tprivate static int getLCM(int[] twoInt, int gcd) {\n\t\treturn twoInt[0] / gcd * twoInt[1];\n\t}\n}", "Main", "/**\n\t * AOJ 0005 GCD and LCM\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tString input = bufferedReader.readLine();\n\t\tString[] twoStr;\n\t\twhile (input != null) {\n\t\t\ttwoStr = input.split(\"\\\\s\");\n\t\t\tint[] twoInt = getintArray(twoStr);\n\t\t\tint gcd = getGCD(twoInt);\n\t\t\tint lcm = getLCM(twoInt, gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t\tinput = bufferedReader.readLine();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tString input = bufferedReader.readLine();\n\t\tString[] twoStr;\n\t\twhile (input != null) {\n\t\t\ttwoStr = input.split(\"\\\\s\");\n\t\t\tint[] twoInt = getintArray(twoStr);\n\t\t\tint gcd = getGCD(twoInt);\n\t\t\tint lcm = getLCM(twoInt, gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t\tinput = bufferedReader.readLine();\n\t\t}\n\t}", "BufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));", "bufferedReader", "new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in))", "String input = bufferedReader.readLine();", "input", "bufferedReader.readLine()", "bufferedReader.readLine", "bufferedReader", "String[] twoStr;", "twoStr", "while (input != null) {\n\t\t\ttwoStr = input.split(\"\\\\s\");\n\t\t\tint[] twoInt = getintArray(twoStr);\n\t\t\tint gcd = getGCD(twoInt);\n\t\t\tint lcm = getLCM(twoInt, gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t\tinput = bufferedReader.readLine();\n\t\t}", "input != null", "input", "null", "{\n\t\t\ttwoStr = input.split(\"\\\\s\");\n\t\t\tint[] twoInt = getintArray(twoStr);\n\t\t\tint gcd = getGCD(twoInt);\n\t\t\tint lcm = getLCM(twoInt, gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t\tinput = bufferedReader.readLine();\n\t\t}", "twoStr = input.split(\"\\\\s\")", "twoStr", "input.split(\"\\\\s\")", "input.split", "input", "\"\\\\s\"", "int[] twoInt = getintArray(twoStr);", "twoInt", "getintArray(twoStr)", "getintArray", "twoStr", "int gcd = getGCD(twoInt);", "gcd", "getGCD(twoInt)", "getGCD", "twoInt", "int lcm = getLCM(twoInt, gcd);", "lcm", "getLCM(twoInt, gcd)", "getLCM", "twoInt", "gcd", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "input = bufferedReader.readLine()", "input", "bufferedReader.readLine()", "bufferedReader.readLine", "bufferedReader", "String[] args", "args", "/**\n\t * String????????????int?????????????????????????????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getintArray(String[] strArray) {\n\t\tint[] intArray = new int[strArray.length];\n\t\tfor (int i = 0; i < intArray.length; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\tArrays.sort(intArray);\n\t\treturn intArray;\n\t}", "getintArray", "{\n\t\tint[] intArray = new int[strArray.length];\n\t\tfor (int i = 0; i < intArray.length; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\tArrays.sort(intArray);\n\t\treturn intArray;\n\t}", "int[] intArray = new int[strArray.length];", "intArray", "new int[strArray.length]", "strArray.length", "strArray", "strArray.length", "for (int i = 0; i < intArray.length; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intArray.length", "i", "intArray.length", "intArray", "intArray.length", "i++", "i++", "i", "{\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "{\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "intArray[i] = Integer.parseInt(strArray[i])", "intArray[i]", "intArray", "i", "Integer.parseInt(strArray[i])", "Integer.parseInt", "Integer", "strArray[i]", "strArray", "i", "Arrays.sort(intArray)", "Arrays.sort", "Arrays", "intArray", "return intArray;", "intArray", "String[] strArray", "strArray", "private static int getGCD(int[] twoIntOrg) {\n\t\tint tmp, diff;\n\t\tint[] twoInt = { twoIntOrg[0], twoIntOrg[1] };\n\t\twhile (twoInt[0] != twoInt[1]) {\n\t\t\tdiff = twoInt[1] - twoInt[0];\n\t\t\tif (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}\n\t\t}\n\t\treturn twoInt[0];\n\t}", "getGCD", "{\n\t\tint tmp, diff;\n\t\tint[] twoInt = { twoIntOrg[0], twoIntOrg[1] };\n\t\twhile (twoInt[0] != twoInt[1]) {\n\t\t\tdiff = twoInt[1] - twoInt[0];\n\t\t\tif (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}\n\t\t}\n\t\treturn twoInt[0];\n\t}", "int tmp", "tmp", "diff;", "diff", "int[] twoInt = { twoIntOrg[0], twoIntOrg[1] };", "twoInt", "{ twoIntOrg[0], twoIntOrg[1] }", "twoIntOrg[0]", "twoIntOrg", "0", "twoIntOrg[1]", "twoIntOrg", "1", "while (twoInt[0] != twoInt[1]) {\n\t\t\tdiff = twoInt[1] - twoInt[0];\n\t\t\tif (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}\n\t\t}", "twoInt[0] != twoInt[1]", "twoInt[0]", "twoInt", "0", "twoInt[1]", "twoInt", "1", "{\n\t\t\tdiff = twoInt[1] - twoInt[0];\n\t\t\tif (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}\n\t\t}", "diff = twoInt[1] - twoInt[0]", "diff", "twoInt[1] - twoInt[0]", "twoInt[1]", "twoInt", "1", "twoInt[0]", "twoInt", "0", "if (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}", "diff > twoInt[0]", "diff", "twoInt[0]", "twoInt", "0", "{\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t}", "twoInt[1] = diff", "twoInt[1]", "twoInt", "1", "diff", "{\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}", "tmp = twoInt[0]", "tmp", "twoInt[0]", "twoInt", "0", "twoInt[0] = diff", "twoInt[0]", "twoInt", "0", "diff", "twoInt[1] = tmp", "twoInt[1]", "twoInt", "1", "tmp", "return twoInt[0];", "twoInt[0]", "twoInt", "0", "int[] twoIntOrg", "twoIntOrg", "private static int getLCM(int[] twoInt, int gcd) {\n\t\treturn twoInt[0] / gcd * twoInt[1];\n\t}", "getLCM", "{\n\t\treturn twoInt[0] / gcd * twoInt[1];\n\t}", "return twoInt[0] / gcd * twoInt[1];", "twoInt[0] / gcd * twoInt[1]", "twoInt[0] / gcd", "twoInt[0]", "twoInt", "0", "gcd", "twoInt[1]", "twoInt", "1", "int[] twoInt", "twoInt", "int gcd", "gcd", "public class Main {\n\n\t/**\n\t * AOJ 0005 GCD and LCM\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tString input = bufferedReader.readLine();\n\t\tString[] twoStr;\n\t\twhile (input != null) {\n\t\t\ttwoStr = input.split(\"\\\\s\");\n\t\t\tint[] twoInt = getintArray(twoStr);\n\t\t\tint gcd = getGCD(twoInt);\n\t\t\tint lcm = getLCM(twoInt, gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t\tinput = bufferedReader.readLine();\n\t\t}\n\t}\n\n\t/**\n\t * String????????????int?????????????????????????????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getintArray(String[] strArray) {\n\t\tint[] intArray = new int[strArray.length];\n\t\tfor (int i = 0; i < intArray.length; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\tArrays.sort(intArray);\n\t\treturn intArray;\n\t}\n\n\tprivate static int getGCD(int[] twoIntOrg) {\n\t\tint tmp, diff;\n\t\tint[] twoInt = { twoIntOrg[0], twoIntOrg[1] };\n\t\twhile (twoInt[0] != twoInt[1]) {\n\t\t\tdiff = twoInt[1] - twoInt[0];\n\t\t\tif (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}\n\t\t}\n\t\treturn twoInt[0];\n\t}\n\n\tprivate static int getLCM(int[] twoInt, int gcd) {\n\t\treturn twoInt[0] / gcd * twoInt[1];\n\t}\n}", "public class Main {\n\n\t/**\n\t * AOJ 0005 GCD and LCM\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tString input = bufferedReader.readLine();\n\t\tString[] twoStr;\n\t\twhile (input != null) {\n\t\t\ttwoStr = input.split(\"\\\\s\");\n\t\t\tint[] twoInt = getintArray(twoStr);\n\t\t\tint gcd = getGCD(twoInt);\n\t\t\tint lcm = getLCM(twoInt, gcd);\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t\tinput = bufferedReader.readLine();\n\t\t}\n\t}\n\n\t/**\n\t * String????????????int?????????????????????????????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getintArray(String[] strArray) {\n\t\tint[] intArray = new int[strArray.length];\n\t\tfor (int i = 0; i < intArray.length; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\tArrays.sort(intArray);\n\t\treturn intArray;\n\t}\n\n\tprivate static int getGCD(int[] twoIntOrg) {\n\t\tint tmp, diff;\n\t\tint[] twoInt = { twoIntOrg[0], twoIntOrg[1] };\n\t\twhile (twoInt[0] != twoInt[1]) {\n\t\t\tdiff = twoInt[1] - twoInt[0];\n\t\t\tif (diff > twoInt[0]) {\n\t\t\t\ttwoInt[1] = diff;\n\t\t\t} else {\n\t\t\t\ttmp = twoInt[0];\n\t\t\t\ttwoInt[0] = diff;\n\t\t\t\ttwoInt[1] = tmp;\n\t\t\t}\n\t\t}\n\t\treturn twoInt[0];\n\t}\n\n\tprivate static int getLCM(int[] twoInt, int gcd) {\n\t\treturn twoInt[0] / gcd * twoInt[1];\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { /** * AOJ 0005 GCD and LCM */ public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(System.in)); String input = bufferedReader.readLine(); String[] twoStr; while (input != null) { twoStr = input.split("\\s"); int[] twoInt = getintArray(twoStr); int gcd = getGCD(twoInt); int lcm = getLCM(twoInt, gcd); System.out.println(gcd + " " + lcm); input = bufferedReader.readLine(); } } /** * String????????????int?????????????????????????????????????????????????????´?????? * * @param strArray * String????????? * @return int????????? */ private static int[] getintArray(String[] strArray) { int[] intArray = new int[strArray.length]; for (int i = 0; i < intArray.length; i++) { intArray[i] = Integer.parseInt(strArray[i]); } Arrays.sort(intArray); return intArray; } private static int getGCD(int[] twoIntOrg) { int tmp, diff; int[] twoInt = { twoIntOrg[0], twoIntOrg[1] }; while (twoInt[0] != twoInt[1]) { diff = twoInt[1] - twoInt[0]; if (diff > twoInt[0]) { twoInt[1] = diff; } else { tmp = twoInt[0]; twoInt[0] = diff; twoInt[1] = tmp; } } return twoInt[0]; } private static int getLCM(int[] twoInt, int gcd) { return twoInt[0] / gcd * twoInt[1]; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 42, 2, 2, 13, 13, 17, 30, 41, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 19, 20 ], [ 16, 21 ], [ 21, 22 ], [ 16, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 16, 35 ], [ 35, 36 ], [ 35, 37 ], [ 16, 38 ], [ 38, 39 ], [ 38, 40 ], [ 16, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 45, 52 ], [ 52, 53 ], [ 52, 54 ], [ 16, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 70, 71 ], [ 70, 72 ], [ 16, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 79, 79 ], [ 79, 80 ], [ 79, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 6, 87 ], [ 87, 88 ] ]
[ "import java.util.Scanner;\nclass Main\n{\n public static void main(String args[])\n {\nScanner scan=new Scanner(System.in);\n\n\twhile(scan.hasNext())\n\t {\n\t\n\tlong a,b,a1,b1;\n\ta=scan.nextInt();\n\tb=scan.nextInt();\n\ta1=a;\n\tb1=b;\n\tif(b>a)\n\t {\n\t\tlong tmp=b;\n\t\tb=a;\n\t\ta=tmp;\n\t }\n\twhile(a%b!=0)\n\t {\n\t\tlong tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t }\n\tSystem.out.println(b+\" \"+((a1*b1)/b));\n\t }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n public static void main(String args[])\n {\nScanner scan=new Scanner(System.in);\n\n\twhile(scan.hasNext())\n\t {\n\t\n\tlong a,b,a1,b1;\n\ta=scan.nextInt();\n\tb=scan.nextInt();\n\ta1=a;\n\tb1=b;\n\tif(b>a)\n\t {\n\t\tlong tmp=b;\n\t\tb=a;\n\t\ta=tmp;\n\t }\n\twhile(a%b!=0)\n\t {\n\t\tlong tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t }\n\tSystem.out.println(b+\" \"+((a1*b1)/b));\n\t }\n }\n}", "Main", "public static void main(String args[])\n {\nScanner scan=new Scanner(System.in);\n\n\twhile(scan.hasNext())\n\t {\n\t\n\tlong a,b,a1,b1;\n\ta=scan.nextInt();\n\tb=scan.nextInt();\n\ta1=a;\n\tb1=b;\n\tif(b>a)\n\t {\n\t\tlong tmp=b;\n\t\tb=a;\n\t\ta=tmp;\n\t }\n\twhile(a%b!=0)\n\t {\n\t\tlong tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t }\n\tSystem.out.println(b+\" \"+((a1*b1)/b));\n\t }\n }", "main", "{\nScanner scan=new Scanner(System.in);\n\n\twhile(scan.hasNext())\n\t {\n\t\n\tlong a,b,a1,b1;\n\ta=scan.nextInt();\n\tb=scan.nextInt();\n\ta1=a;\n\tb1=b;\n\tif(b>a)\n\t {\n\t\tlong tmp=b;\n\t\tb=a;\n\t\ta=tmp;\n\t }\n\twhile(a%b!=0)\n\t {\n\t\tlong tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t }\n\tSystem.out.println(b+\" \"+((a1*b1)/b));\n\t }\n }", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(scan.hasNext())\n\t {\n\t\n\tlong a,b,a1,b1;\n\ta=scan.nextInt();\n\tb=scan.nextInt();\n\ta1=a;\n\tb1=b;\n\tif(b>a)\n\t {\n\t\tlong tmp=b;\n\t\tb=a;\n\t\ta=tmp;\n\t }\n\twhile(a%b!=0)\n\t {\n\t\tlong tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t }\n\tSystem.out.println(b+\" \"+((a1*b1)/b));\n\t }", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\n\tlong a,b,a1,b1;\n\ta=scan.nextInt();\n\tb=scan.nextInt();\n\ta1=a;\n\tb1=b;\n\tif(b>a)\n\t {\n\t\tlong tmp=b;\n\t\tb=a;\n\t\ta=tmp;\n\t }\n\twhile(a%b!=0)\n\t {\n\t\tlong tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t }\n\tSystem.out.println(b+\" \"+((a1*b1)/b));\n\t }", "long a", "a", "b", "b", "a1", "a1", "b1;", "b1", "a=scan.nextInt()", "a", "scan.nextInt()", "scan.nextInt", "scan", "b=scan.nextInt()", "b", "scan.nextInt()", "scan.nextInt", "scan", "a1=a", "a1", "a", "b1=b", "b1", "b", "if(b>a)\n\t {\n\t\tlong tmp=b;\n\t\tb=a;\n\t\ta=tmp;\n\t }", "b>a", "b", "a", "{\n\t\tlong tmp=b;\n\t\tb=a;\n\t\ta=tmp;\n\t }", "long tmp=b;", "tmp", "b", "b=a", "b", "a", "a=tmp", "a", "tmp", "while(a%b!=0)\n\t {\n\t\tlong tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t }", "a%b!=0", "a%b", "a", "b", "0", "{\n\t\tlong tmp=b;\n\t\tb=a%b;\n\t\ta=tmp;\n\t }", "long tmp=b;", "tmp", "b", "b=a%b", "b", "a%b", "a", "b", "a=tmp", "a", "tmp", "System.out.println(b+\" \"+((a1*b1)/b))", "System.out.println", "System.out", "System", "System.out", "b+\" \"+((a1*b1)/b)", "b+\" \"+((a1*b1)/b)", "b", "\" \"", "((a1*b1)/b)", "(a1*b1)", "a1", "b1", "b", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan=new Scanner(System.in); while(scan.hasNext()) { long a,b,a1,b1; a=scan.nextInt(); b=scan.nextInt(); a1=a; b1=b; if(b>a) { long tmp=b; b=a; a=tmp; } while(a%b!=0) { long tmp=b; b=a%b; a=tmp; } System.out.println(b+" "+((a1*b1)/b)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 41, 13, 13, 41, 13, 13, 42, 2, 13, 17, 30, 41, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 16, 44 ], [ 44, 45 ], [ 44, 46 ], [ 16, 47 ], [ 47, 48 ], [ 47, 49 ], [ 16, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 54, 63 ], [ 63, 64 ], [ 63, 65 ], [ 16, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 16, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 79, 79 ], [ 79, 80 ], [ 79, 81 ], [ 79, 82 ], [ 6, 83 ], [ 83, 84 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\n\twhile(sc.hasNext()){\n\t long a = sc.nextInt();\n\t long b = sc.nextInt();\n\t \n\t long smaller = a;\n\t long larger = b;\n\t if(b<smaller){smaller = b; larger = a;}\n\t \n\t long aa = a;\n\t long bb = b;\n\t while(bb!=0){\n\t\tlong tmp = bb;\n\t\tbb = aa%bb;\n\t\taa = tmp;\n\t }\n\n\t long lcm = (a*b)/aa;\n\t \n\t System.out.println(aa+\" \"+lcm);\n\t}\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\n\twhile(sc.hasNext()){\n\t long a = sc.nextInt();\n\t long b = sc.nextInt();\n\t \n\t long smaller = a;\n\t long larger = b;\n\t if(b<smaller){smaller = b; larger = a;}\n\t \n\t long aa = a;\n\t long bb = b;\n\t while(bb!=0){\n\t\tlong tmp = bb;\n\t\tbb = aa%bb;\n\t\taa = tmp;\n\t }\n\n\t long lcm = (a*b)/aa;\n\t \n\t System.out.println(aa+\" \"+lcm);\n\t}\n }\n}", "Main", "public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\n\twhile(sc.hasNext()){\n\t long a = sc.nextInt();\n\t long b = sc.nextInt();\n\t \n\t long smaller = a;\n\t long larger = b;\n\t if(b<smaller){smaller = b; larger = a;}\n\t \n\t long aa = a;\n\t long bb = b;\n\t while(bb!=0){\n\t\tlong tmp = bb;\n\t\tbb = aa%bb;\n\t\taa = tmp;\n\t }\n\n\t long lcm = (a*b)/aa;\n\t \n\t System.out.println(aa+\" \"+lcm);\n\t}\n }", "main", "{\n\tScanner sc = new Scanner(System.in);\n\n\twhile(sc.hasNext()){\n\t long a = sc.nextInt();\n\t long b = sc.nextInt();\n\t \n\t long smaller = a;\n\t long larger = b;\n\t if(b<smaller){smaller = b; larger = a;}\n\t \n\t long aa = a;\n\t long bb = b;\n\t while(bb!=0){\n\t\tlong tmp = bb;\n\t\tbb = aa%bb;\n\t\taa = tmp;\n\t }\n\n\t long lcm = (a*b)/aa;\n\t \n\t System.out.println(aa+\" \"+lcm);\n\t}\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()){\n\t long a = sc.nextInt();\n\t long b = sc.nextInt();\n\t \n\t long smaller = a;\n\t long larger = b;\n\t if(b<smaller){smaller = b; larger = a;}\n\t \n\t long aa = a;\n\t long bb = b;\n\t while(bb!=0){\n\t\tlong tmp = bb;\n\t\tbb = aa%bb;\n\t\taa = tmp;\n\t }\n\n\t long lcm = (a*b)/aa;\n\t \n\t System.out.println(aa+\" \"+lcm);\n\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t long a = sc.nextInt();\n\t long b = sc.nextInt();\n\t \n\t long smaller = a;\n\t long larger = b;\n\t if(b<smaller){smaller = b; larger = a;}\n\t \n\t long aa = a;\n\t long bb = b;\n\t while(bb!=0){\n\t\tlong tmp = bb;\n\t\tbb = aa%bb;\n\t\taa = tmp;\n\t }\n\n\t long lcm = (a*b)/aa;\n\t \n\t System.out.println(aa+\" \"+lcm);\n\t}", "long a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "long b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "long smaller = a;", "smaller", "a", "long larger = b;", "larger", "b", "if(b<smaller){smaller = b; larger = a;}", "b<smaller", "b", "smaller", "{smaller = b; larger = a;}", "smaller = b", "smaller", "b", "larger = a", "larger", "a", "long aa = a;", "aa", "a", "long bb = b;", "bb", "b", "while(bb!=0){\n\t\tlong tmp = bb;\n\t\tbb = aa%bb;\n\t\taa = tmp;\n\t }", "bb!=0", "bb", "0", "{\n\t\tlong tmp = bb;\n\t\tbb = aa%bb;\n\t\taa = tmp;\n\t }", "long tmp = bb;", "tmp", "bb", "bb = aa%bb", "bb", "aa%bb", "aa", "bb", "aa = tmp", "aa", "tmp", "long lcm = (a*b)/aa;", "lcm", "(a*b)/aa", "(a*b)", "a", "b", "aa", "System.out.println(aa+\" \"+lcm)", "System.out.println", "System.out", "System", "System.out", "aa+\" \"+lcm", "aa+\" \"+lcm", "aa", "\" \"", "lcm", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ long a = sc.nextInt(); long b = sc.nextInt(); long smaller = a; long larger = b; if(b<smaller){smaller = b; larger = a;} long aa = a; long bb = b; while(bb!=0){ long tmp = bb; bb = aa%bb; aa = tmp; } long lcm = (a*b)/aa; System.out.println(aa+" "+lcm); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 4, 18, 13, 17, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 84, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 24, 25 ], [ 25, 26 ], [ 18, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 18, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 18, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 18, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 54, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 10, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 8, 62 ], [ 62, 63 ], [ 84, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 64, 79 ], [ 79, 80 ], [ 64, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a = Long.parseLong(scan.next());\n\t\t\tlong b = Long.parseLong(scan.next());\n\t\t\tlong c = gcd(a,b);\n\t\t\tlong d = a*b/c;\n\t\t\tSystem.out.println(c+\" \"+d);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\tstatic long gcd(long i ,long j){\n\t\treturn j == 0 ? i : gcd(j, i % j);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a = Long.parseLong(scan.next());\n\t\t\tlong b = Long.parseLong(scan.next());\n\t\t\tlong c = gcd(a,b);\n\t\t\tlong d = a*b/c;\n\t\t\tSystem.out.println(c+\" \"+d);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\tstatic long gcd(long i ,long j){\n\t\treturn j == 0 ? i : gcd(j, i % j);\n\t}\n}", "Main", "private static Scanner scan;", "scan", "public static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a = Long.parseLong(scan.next());\n\t\t\tlong b = Long.parseLong(scan.next());\n\t\t\tlong c = gcd(a,b);\n\t\t\tlong d = a*b/c;\n\t\t\tSystem.out.println(c+\" \"+d);\n\t\t}\n\t\tSystem.exit(0);\n\t}", "main", "{\n\t\tscan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a = Long.parseLong(scan.next());\n\t\t\tlong b = Long.parseLong(scan.next());\n\t\t\tlong c = gcd(a,b);\n\t\t\tlong d = a*b/c;\n\t\t\tSystem.out.println(c+\" \"+d);\n\t\t}\n\t\tSystem.exit(0);\n\t}", "scan = new Scanner(System.in)", "scan", "new Scanner(System.in)", "while(scan.hasNext()){\n\t\t\tlong a = Long.parseLong(scan.next());\n\t\t\tlong b = Long.parseLong(scan.next());\n\t\t\tlong c = gcd(a,b);\n\t\t\tlong d = a*b/c;\n\t\t\tSystem.out.println(c+\" \"+d);\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tlong a = Long.parseLong(scan.next());\n\t\t\tlong b = Long.parseLong(scan.next());\n\t\t\tlong c = gcd(a,b);\n\t\t\tlong d = a*b/c;\n\t\t\tSystem.out.println(c+\" \"+d);\n\t\t}", "long a = Long.parseLong(scan.next());", "a", "Long.parseLong(scan.next())", "Long.parseLong", "Long", "scan.next()", "scan.next", "scan", "long b = Long.parseLong(scan.next());", "b", "Long.parseLong(scan.next())", "Long.parseLong", "Long", "scan.next()", "scan.next", "scan", "long c = gcd(a,b);", "c", "gcd(a,b)", "gcd", "a", "b", "long d = a*b/c;", "d", "a*b/c", "a*b", "a", "b", "c", "System.out.println(c+\" \"+d)", "System.out.println", "System.out", "System", "System.out", "c+\" \"+d", "c+\" \"+d", "c", "\" \"", "d", "System.exit(0)", "System.exit", "System", "0", "String[] args", "args", "static long gcd(long i ,long j){\n\t\treturn j == 0 ? i : gcd(j, i % j);\n\t}", "gcd", "{\n\t\treturn j == 0 ? i : gcd(j, i % j);\n\t}", "return j == 0 ? i : gcd(j, i % j);", "j == 0 ? i : gcd(j, i % j)", "j == 0", "j", "0", "i", "gcd(j, i % j)", "gcd", "j", "i % j", "i", "j", "long i", "i", "long j", "j", "public class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a = Long.parseLong(scan.next());\n\t\t\tlong b = Long.parseLong(scan.next());\n\t\t\tlong c = gcd(a,b);\n\t\t\tlong d = a*b/c;\n\t\t\tSystem.out.println(c+\" \"+d);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\tstatic long gcd(long i ,long j){\n\t\treturn j == 0 ? i : gcd(j, i % j);\n\t}\n}", "public class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a = Long.parseLong(scan.next());\n\t\t\tlong b = Long.parseLong(scan.next());\n\t\t\tlong c = gcd(a,b);\n\t\t\tlong d = a*b/c;\n\t\t\tSystem.out.println(c+\" \"+d);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\tstatic long gcd(long i ,long j){\n\t\treturn j == 0 ? i : gcd(j, i % j);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { private static Scanner scan; public static void main(String[] args) { scan = new Scanner(System.in); while(scan.hasNext()){ long a = Long.parseLong(scan.next()); long b = Long.parseLong(scan.next()); long c = gcd(a,b); long d = a*b/c; System.out.println(c+" "+d); } System.exit(0); } static long gcd(long i ,long j){ return j == 0 ? i : gcd(j, i % j); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 42, 2, 13, 13, 30, 14, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 0, 13, 4, 13, 13, 13, 4, 13, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 98, 5 ], [ 98, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 9, 13 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 6, 30 ], [ 30, 31 ], [ 6, 32 ], [ 32, 33 ], [ 98, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 43, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 34, 51 ], [ 51, 52 ], [ 34, 53 ], [ 53, 54 ], [ 34, 55 ], [ 55, 56 ], [ 98, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 67, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 78, 79 ], [ 78, 80 ], [ 67, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 83, 86 ], [ 67, 87 ], [ 87, 88 ], [ 87, 89 ], [ 87, 90 ], [ 87, 91 ], [ 59, 92 ], [ 92, 93 ], [ 93, 94 ], [ 57, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\tstatic long gcd(long a,long b){\n\t\twhile(a!=b){\n\t\t\tif(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;\n\t\t}\n\t\treturn a;\n\t}\n\tstatic void lcm(long a,long b,long g){\n\t\tSystem.out.println(g+\" \"+(a*b/g));\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a=scan.nextInt();\n\t\t\tlong b=scan.nextInt();\n\t\t\tlong g=0;\n\t\t\tg = gcd(a,b);\n\t\t\tlcm(a,b,g);\n\t\t}\n\t\tscan.close();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tstatic long gcd(long a,long b){\n\t\twhile(a!=b){\n\t\t\tif(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;\n\t\t}\n\t\treturn a;\n\t}\n\tstatic void lcm(long a,long b,long g){\n\t\tSystem.out.println(g+\" \"+(a*b/g));\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a=scan.nextInt();\n\t\t\tlong b=scan.nextInt();\n\t\t\tlong g=0;\n\t\t\tg = gcd(a,b);\n\t\t\tlcm(a,b,g);\n\t\t}\n\t\tscan.close();\n\t}\n\n}", "Main", "static long gcd(long a,long b){\n\t\twhile(a!=b){\n\t\t\tif(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;\n\t\t}\n\t\treturn a;\n\t}", "gcd", "{\n\t\twhile(a!=b){\n\t\t\tif(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;\n\t\t}\n\t\treturn a;\n\t}", "while(a!=b){\n\t\t\tif(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;\n\t\t}", "a!=b", "a", "b", "{\n\t\t\tif(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;\n\t\t}", "if(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;", "a>b", "a", "b", "a=a-b", "a", "a-b", "a", "b", "b=b-a", "b", "b-a", "b", "a", "return a;", "a", "long a", "a", "long b", "b", "static void lcm(long a,long b,long g){\n\t\tSystem.out.println(g+\" \"+(a*b/g));\n\t}", "lcm", "{\n\t\tSystem.out.println(g+\" \"+(a*b/g));\n\t}", "System.out.println(g+\" \"+(a*b/g))", "System.out.println", "System.out", "System", "System.out", "g+\" \"+(a*b/g)", "g+\" \"+(a*b/g)", "g", "\" \"", "(a*b/g)", "a*b", "a", "b", "g", "long a", "a", "long b", "b", "long g", "g", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a=scan.nextInt();\n\t\t\tlong b=scan.nextInt();\n\t\t\tlong g=0;\n\t\t\tg = gcd(a,b);\n\t\t\tlcm(a,b,g);\n\t\t}\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a=scan.nextInt();\n\t\t\tlong b=scan.nextInt();\n\t\t\tlong g=0;\n\t\t\tg = gcd(a,b);\n\t\t\tlcm(a,b,g);\n\t\t}\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(scan.hasNext()){\n\t\t\tlong a=scan.nextInt();\n\t\t\tlong b=scan.nextInt();\n\t\t\tlong g=0;\n\t\t\tg = gcd(a,b);\n\t\t\tlcm(a,b,g);\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tlong a=scan.nextInt();\n\t\t\tlong b=scan.nextInt();\n\t\t\tlong g=0;\n\t\t\tg = gcd(a,b);\n\t\t\tlcm(a,b,g);\n\t\t}", "long a=scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "long b=scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "long g=0;", "g", "0", "g = gcd(a,b)", "g", "gcd(a,b)", "gcd", "a", "b", "lcm(a,b,g)", "lcm", "a", "b", "g", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main{\n\tstatic long gcd(long a,long b){\n\t\twhile(a!=b){\n\t\t\tif(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;\n\t\t}\n\t\treturn a;\n\t}\n\tstatic void lcm(long a,long b,long g){\n\t\tSystem.out.println(g+\" \"+(a*b/g));\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a=scan.nextInt();\n\t\t\tlong b=scan.nextInt();\n\t\t\tlong g=0;\n\t\t\tg = gcd(a,b);\n\t\t\tlcm(a,b,g);\n\t\t}\n\t\tscan.close();\n\t}\n\n}", "public class Main{\n\tstatic long gcd(long a,long b){\n\t\twhile(a!=b){\n\t\t\tif(a>b)\n\t\t\t\ta=a-b;\n\t\t\telse\n\t\t\t\tb=b-a;\n\t\t}\n\t\treturn a;\n\t}\n\tstatic void lcm(long a,long b,long g){\n\t\tSystem.out.println(g+\" \"+(a*b/g));\n\t}\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(scan.hasNext()){\n\t\t\tlong a=scan.nextInt();\n\t\t\tlong b=scan.nextInt();\n\t\t\tlong g=0;\n\t\t\tg = gcd(a,b);\n\t\t\tlcm(a,b,g);\n\t\t}\n\t\tscan.close();\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ static long gcd(long a,long b){ while(a!=b){ if(a>b) a=a-b; else b=b-a; } return a; } static void lcm(long a,long b,long g){ System.out.println(g+" "+(a*b/g)); } public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(scan.hasNext()){ long a=scan.nextInt(); long b=scan.nextInt(); long g=0; g = gcd(a,b); lcm(a,b,g); } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 86, 5 ], [ 86, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 33, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 39, 42 ], [ 6, 43 ], [ 43, 44 ], [ 86, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 48, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 45, 65 ], [ 65, 66 ], [ 45, 67 ], [ 67, 68 ], [ 86, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 77, 80 ], [ 69, 81 ], [ 81, 82 ], [ 69, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt();\n\t\t\tlong b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t}\n\tstatic long gcd(long a,long b){\n\t\tif(a%b==0){\n\t\t\treturn b;\n\t\t}else{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}\n\tstatic long lcm(long a,long b){\n\t\treturn a*b/gcd(a,b);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt();\n\t\t\tlong b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t}\n\tstatic long gcd(long a,long b){\n\t\tif(a%b==0){\n\t\t\treturn b;\n\t\t}else{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}\n\tstatic long lcm(long a,long b){\n\t\treturn a*b/gcd(a,b);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt();\n\t\t\tlong b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt();\n\t\t\tlong b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()){\n\t\t\tlong a=sc.nextInt();\n\t\t\tlong b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tlong a=sc.nextInt();\n\t\t\tlong b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}", "long a=sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "long b=sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "System.out.println(gcd(a,b)+\" \"+lcm(a,b))", "System.out.println", "System.out", "System", "System.out", "gcd(a,b)+\" \"+lcm(a,b)", "gcd(a,b)+\" \"+lcm(a,b)", "gcd(a,b)", "gcd", "a", "b", "\" \"", "lcm(a,b)", "lcm", "a", "b", "String[] args", "args", "static long gcd(long a,long b){\n\t\tif(a%b==0){\n\t\t\treturn b;\n\t\t}else{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}", "gcd", "{\n\t\tif(a%b==0){\n\t\t\treturn b;\n\t\t}else{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}", "if(a%b==0){\n\t\t\treturn b;\n\t\t}else{\n\t\t\treturn gcd(b,a%b);\n\t\t}", "a%b==0", "a%b", "a", "b", "0", "{\n\t\t\treturn b;\n\t\t}", "return b;", "b", "{\n\t\t\treturn gcd(b,a%b);\n\t\t}", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "static long lcm(long a,long b){\n\t\treturn a*b/gcd(a,b);\n\t}", "lcm", "{\n\t\treturn a*b/gcd(a,b);\n\t}", "return a*b/gcd(a,b);", "a*b/gcd(a,b)", "a*b", "a", "b", "gcd(a,b)", "gcd", "a", "b", "long a", "a", "long b", "b", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt();\n\t\t\tlong b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t}\n\tstatic long gcd(long a,long b){\n\t\tif(a%b==0){\n\t\t\treturn b;\n\t\t}else{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}\n\tstatic long lcm(long a,long b){\n\t\treturn a*b/gcd(a,b);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a=sc.nextInt();\n\t\t\tlong b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t}\n\tstatic long gcd(long a,long b){\n\t\tif(a%b==0){\n\t\t\treturn b;\n\t\t}else{\n\t\t\treturn gcd(b,a%b);\n\t\t}\n\t}\n\tstatic long lcm(long a,long b){\n\t\treturn a*b/gcd(a,b);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ long a=sc.nextInt(); long b=sc.nextInt(); System.out.println(gcd(a,b)+" "+lcm(a,b)); } } static long gcd(long a,long b){ if(a%b==0){ return b; }else{ return gcd(b,a%b); } } static long lcm(long a,long b){ return a*b/gcd(a,b); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 81, 5 ], [ 81, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 6, 12 ], [ 12, 13 ], [ 81, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 24, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 24, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 54, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 81, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 61, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 58, 76 ], [ 76, 77 ], [ 58, 78 ], [ 78, 79 ], [ 0, 80 ], [ 80, 81 ], [ 80, 82 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tprivate void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tlong a = scan.nextInt();\n\t\t\tlong b = scan.nextInt();\n\t\t\t\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tlong lcm = a * b / gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n\t\n\tprivate long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}else {\n\t\t\treturn gcd(b, a%b);\n\t\t}\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tprivate void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tlong a = scan.nextInt();\n\t\t\tlong b = scan.nextInt();\n\t\t\t\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tlong lcm = a * b / gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n\t\n\tprivate long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}else {\n\t\t\treturn gcd(b, a%b);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "private void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tlong a = scan.nextInt();\n\t\t\tlong b = scan.nextInt();\n\t\t\t\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tlong lcm = a * b / gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}", "run", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tlong a = scan.nextInt();\n\t\t\tlong b = scan.nextInt();\n\t\t\t\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tlong lcm = a * b / gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (scan.hasNext()) {\n\t\t\tlong a = scan.nextInt();\n\t\t\tlong b = scan.nextInt();\n\t\t\t\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tlong lcm = a * b / gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tlong a = scan.nextInt();\n\t\t\tlong b = scan.nextInt();\n\t\t\t\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tlong lcm = a * b / gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}", "long a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "long b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "long gcd = gcd(a, b);", "gcd", "gcd(a, b)", "gcd", "a", "b", "long lcm = a * b / gcd;", "lcm", "a * b / gcd", "a * b", "a", "b", "gcd", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "private long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}else {\n\t\t\treturn gcd(b, a%b);\n\t\t}\n\t}", "gcd", "{\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}else {\n\t\t\treturn gcd(b, a%b);\n\t\t}\n\t}", "if (b == 0) {\n\t\t\treturn a;\n\t\t}else {\n\t\t\treturn gcd(b, a%b);\n\t\t}", "b == 0", "b", "0", "{\n\t\t\treturn a;\n\t\t}", "return a;", "a", "{\n\t\t\treturn gcd(b, a%b);\n\t\t}", "return gcd(b, a%b);", "gcd(b, a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tprivate void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tlong a = scan.nextInt();\n\t\t\tlong b = scan.nextInt();\n\t\t\t\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tlong lcm = a * b / gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n\t\n\tprivate long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}else {\n\t\t\treturn gcd(b, a%b);\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tprivate void run() {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\tlong a = scan.nextInt();\n\t\t\tlong b = scan.nextInt();\n\t\t\t\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tlong lcm = a * b / gcd;\n\t\t\tSystem.out.println(gcd + \" \" + lcm);\n\t\t}\n\t}\n\t\n\tprivate long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}else {\n\t\t\treturn gcd(b, a%b);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { new Main().run(); } private void run() { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { long a = scan.nextInt(); long b = scan.nextInt(); long gcd = gcd(a, b); long lcm = a * b / gcd; System.out.println(gcd + " " + lcm); } } private long gcd(long a, long b) { if (b == 0) { return a; }else { return gcd(b, a%b); } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 4, 18, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 13, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 4, 18, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 18, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 103, 2 ], [ 103, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 5, 13 ], [ 13, 14 ], [ 5, 15 ], [ 15, 16 ], [ 5, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 17, 22 ], [ 23, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 36, 39 ], [ 23, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 23, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 53, 53 ], [ 53, 54 ], [ 53, 55 ], [ 53, 56 ], [ 5, 57 ], [ 57, 58 ], [ 58, 59 ], [ 3, 60 ], [ 60, 61 ], [ 3, 62 ], [ 62, 63 ], [ 103, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 67, 73 ], [ 73, 74 ], [ 73, 75 ], [ 64, 76 ], [ 76, 77 ], [ 103, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 81, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 78, 98 ], [ 98, 99 ], [ 78, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int a, b, g, l;\n\n for(;sc.hasNext();){\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n\n private static int gcd(int a, int b){\n if(a % b == 0){\n return b;\n }else{\n return gcd(b, (a % b));\n }\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int a, b, g, l;\n\n for(;sc.hasNext();){\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n\n private static int gcd(int a, int b){\n if(a % b == 0){\n return b;\n }else{\n return gcd(b, (a % b));\n }\n }\n}", "Main", "public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int a, b, g, l;\n\n for(;sc.hasNext();){\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }\n\n sc.close();\n }", "run", "{\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int a, b, g, l;\n\n for(;sc.hasNext();){\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }\n\n sc.close();\n }", "java.util.Scanner sc = new java.util.Scanner(in);", "sc", "new java.util.Scanner(in)", "int a", "a", "b", "b", "g", "g", "l;", "l", "for(;sc.hasNext();){\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }", ";", "sc.hasNext()", "sc.hasNext", "sc", "{\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }", "{\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "g = gcd(a, b)", "g", "gcd(a, b)", "gcd", "a", "b", "l = (a / g) * b", "l", "(a / g) * b", "(a / g)", "a", "g", "b", "System.out.println(g + \" \" + l)", "System.out.println", "System.out", "System", "System.out", "g + \" \" + l", "g + \" \" + l", "g", "\" \"", "l", "sc.close()", "sc.close", "sc", "java.io.InputStream in", "in", "java.io.PrintStream out", "out", "public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }", "main", "{\n (new Main()).run(System.in, System.out);\n }", "(new Main()).run(System.in, System.out)", "(new Main()).run", "(new Main())", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "private static int gcd(int a, int b){\n if(a % b == 0){\n return b;\n }else{\n return gcd(b, (a % b));\n }\n }", "gcd", "{\n if(a % b == 0){\n return b;\n }else{\n return gcd(b, (a % b));\n }\n }", "if(a % b == 0){\n return b;\n }else{\n return gcd(b, (a % b));\n }", "a % b == 0", "a % b", "a", "b", "0", "{\n return b;\n }", "return b;", "b", "{\n return gcd(b, (a % b));\n }", "return gcd(b, (a % b));", "gcd(b, (a % b))", "gcd", "b", "(a % b)", "a", "b", "int a", "a", "int b", "b", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int a, b, g, l;\n\n for(;sc.hasNext();){\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n\n private static int gcd(int a, int b){\n if(a % b == 0){\n return b;\n }else{\n return gcd(b, (a % b));\n }\n }\n}", "public class Main{\n public void run(java.io.InputStream in, java.io.PrintStream out){\n java.util.Scanner sc = new java.util.Scanner(in);\n/*answer*/\n int a, b, g, l;\n\n for(;sc.hasNext();){\n a = sc.nextInt();\n b = sc.nextInt();\n\n g = gcd(a, b);\n l = (a / g) * b;\n\n System.out.println(g + \" \" + l);\n }\n\n sc.close();\n }\n public static void main(String[] args){\n (new Main()).run(System.in, System.out);\n }\n\n private static int gcd(int a, int b){\n if(a % b == 0){\n return b;\n }else{\n return gcd(b, (a % b));\n }\n }\n}", "Main" ]
public class Main{ public void run(java.io.InputStream in, java.io.PrintStream out){ java.util.Scanner sc = new java.util.Scanner(in); /*answer*/ int a, b, g, l; for(;sc.hasNext();){ a = sc.nextInt(); b = sc.nextInt(); g = gcd(a, b); l = (a / g) * b; System.out.println(g + " " + l); } sc.close(); } public static void main(String[] args){ (new Main()).run(System.in, System.out); } private static int gcd(int a, int b){ if(a % b == 0){ return b; }else{ return gcd(b, (a % b)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 36, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 9, 50 ], [ 50, 51 ], [ 7, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 54, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 52, 68 ], [ 68, 69 ], [ 52, 70 ], [ 70, 71 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main{\n\npublic static void main(String args[]) throws java.io.IOException{\nScanner scan = new Scanner(System.in);\nwhile(scan.hasNext()){\nlong a =scan.nextLong();\nlong b = scan.nextLong();\nSystem.out.println(gcd(a,b)+\" \"+(a*b)/gcd(a,b));\n}\n\n\n}\npublic static long gcd(long a,long b){\nif(b==0)return a;\nreturn gcd(b,a%b);\n}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main{\n\npublic static void main(String args[]) throws java.io.IOException{\nScanner scan = new Scanner(System.in);\nwhile(scan.hasNext()){\nlong a =scan.nextLong();\nlong b = scan.nextLong();\nSystem.out.println(gcd(a,b)+\" \"+(a*b)/gcd(a,b));\n}\n\n\n}\npublic static long gcd(long a,long b){\nif(b==0)return a;\nreturn gcd(b,a%b);\n}\n}", "Main", "public static void main(String args[]) throws java.io.IOException{\nScanner scan = new Scanner(System.in);\nwhile(scan.hasNext()){\nlong a =scan.nextLong();\nlong b = scan.nextLong();\nSystem.out.println(gcd(a,b)+\" \"+(a*b)/gcd(a,b));\n}\n\n\n}", "main", "{\nScanner scan = new Scanner(System.in);\nwhile(scan.hasNext()){\nlong a =scan.nextLong();\nlong b = scan.nextLong();\nSystem.out.println(gcd(a,b)+\" \"+(a*b)/gcd(a,b));\n}\n\n\n}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(scan.hasNext()){\nlong a =scan.nextLong();\nlong b = scan.nextLong();\nSystem.out.println(gcd(a,b)+\" \"+(a*b)/gcd(a,b));\n}", "scan.hasNext()", "scan.hasNext", "scan", "{\nlong a =scan.nextLong();\nlong b = scan.nextLong();\nSystem.out.println(gcd(a,b)+\" \"+(a*b)/gcd(a,b));\n}", "long a =scan.nextLong();", "a", "scan.nextLong()", "scan.nextLong", "scan", "long b = scan.nextLong();", "b", "scan.nextLong()", "scan.nextLong", "scan", "System.out.println(gcd(a,b)+\" \"+(a*b)/gcd(a,b))", "System.out.println", "System.out", "System", "System.out", "gcd(a,b)+\" \"+(a*b)/gcd(a,b)", "gcd(a,b)+\" \"+(a*b)/gcd(a,b)", "gcd(a,b)", "gcd", "a", "b", "\" \"", "(a*b)/gcd(a,b)", "(a*b)", "a", "b", "gcd(a,b)", "gcd", "a", "b", "String args[]", "args", "public static long gcd(long a,long b){\nif(b==0)return a;\nreturn gcd(b,a%b);\n}", "gcd", "{\nif(b==0)return a;\nreturn gcd(b,a%b);\n}", "if(b==0)return a;", "b==0", "b", "0", "return a;", "a", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b" ]
import java.io.*; import java.util.*; class Main{ public static void main(String args[]) throws java.io.IOException{ Scanner scan = new Scanner(System.in); while(scan.hasNext()){ long a =scan.nextLong(); long b = scan.nextLong(); System.out.println(gcd(a,b)+" "+(a*b)/gcd(a,b)); } } public static long gcd(long a,long b){ if(b==0)return a; return gcd(b,a%b); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 11, 1, 30, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 13, 13, 3, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 13, 13, 3, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 13, 13, 3, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 16, 32 ], [ 32, 33 ], [ 16, 34 ], [ 34, 35 ], [ 34, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 37, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 54, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 47, 60 ], [ 37, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 37, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 77, 77 ], [ 77, 78 ], [ 77, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 70, 83 ], [ 37, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 37, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 100, 100 ], [ 100, 101 ], [ 100, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 93, 106 ], [ 6, 107 ], [ 107, 108 ] ]
[ "import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\twhile(sc.hasNext())\n\t\t\t{\n\t\t\t\tlong a = sc.nextInt();\n\t\t\t\tlong b = sc.nextInt();\n\t\t\t\tlong d = a * b; \n\t\t\t\tlong r;\n\t\t\t\t\tfor(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}\n\t\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\twhile(sc.hasNext())\n\t\t\t{\n\t\t\t\tlong a = sc.nextInt();\n\t\t\t\tlong b = sc.nextInt();\n\t\t\t\tlong d = a * b; \n\t\t\t\tlong r;\n\t\t\t\t\tfor(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}\n\t\t\t}\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\twhile(sc.hasNext())\n\t\t\t{\n\t\t\t\tlong a = sc.nextInt();\n\t\t\t\tlong b = sc.nextInt();\n\t\t\t\tlong d = a * b; \n\t\t\t\tlong r;\n\t\t\t\t\tfor(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}\n\t\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\twhile(sc.hasNext())\n\t\t\t{\n\t\t\t\tlong a = sc.nextInt();\n\t\t\t\tlong b = sc.nextInt();\n\t\t\t\tlong d = a * b; \n\t\t\t\tlong r;\n\t\t\t\t\tfor(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}\n\t\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext())\n\t\t\t{\n\t\t\t\tlong a = sc.nextInt();\n\t\t\t\tlong b = sc.nextInt();\n\t\t\t\tlong d = a * b; \n\t\t\t\tlong r;\n\t\t\t\t\tfor(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}\n\t\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\tlong a = sc.nextInt();\n\t\t\t\tlong b = sc.nextInt();\n\t\t\t\tlong d = a * b; \n\t\t\t\tlong r;\n\t\t\t\t\tfor(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}\n\t\t\t}", "long a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "long b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "long d = a * b;", "d", "a * b", "a", "b", "long r;", "r", "for(;;)\n\t\t\t\t\t{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}", ";", "{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tr = a % b;if(r==0){System.out.println(b +\" \"+ d/b);break;}\n\t\t\t\t\t\ta = b % r;if(a==0){System.out.println(r +\" \"+ d/r);break;}\n\t\t\t\t\t\tb = r % a;if(b==0){System.out.println(a +\" \"+ d/a);break;}\n\t\t\t\t\t}", "r = a % b", "r", "a % b", "a", "b", "if(r==0){System.out.println(b +\" \"+ d/b);break;}", "r==0", "r", "0", "{System.out.println(b +\" \"+ d/b);break;}", "System.out.println(b +\" \"+ d/b)", "System.out.println", "System.out", "System", "System.out", "b +\" \"+ d/b", "b +\" \"+ d/b", "b", "\" \"", "d/b", "d", "b", "break;", "a = b % r", "a", "b % r", "b", "r", "if(a==0){System.out.println(r +\" \"+ d/r);break;}", "a==0", "a", "0", "{System.out.println(r +\" \"+ d/r);break;}", "System.out.println(r +\" \"+ d/r)", "System.out.println", "System.out", "System", "System.out", "r +\" \"+ d/r", "r +\" \"+ d/r", "r", "\" \"", "d/r", "d", "r", "break;", "b = r % a", "b", "r % a", "r", "a", "if(b==0){System.out.println(a +\" \"+ d/a);break;}", "b==0", "b", "0", "{System.out.println(a +\" \"+ d/a);break;}", "System.out.println(a +\" \"+ d/a)", "System.out.println", "System.out", "System", "System.out", "a +\" \"+ d/a", "a +\" \"+ d/a", "a", "\" \"", "d/a", "d", "a", "break;", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()) { long a = sc.nextInt(); long b = sc.nextInt(); long d = a * b; long r; for(;;) { r = a % b;if(r==0){System.out.println(b +" "+ d/b);break;} a = b % r;if(a==0){System.out.println(r +" "+ d/r);break;} b = r % a;if(b==0){System.out.println(a +" "+ d/a);break;} } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 4, 18, 13, 13, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 13, 13, 13, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 41, 13, 14, 2, 2, 13, 13, 17, 30, 29, 13, 30, 0, 13, 2, 13, 13, 29, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 17, 30, 14, 2, 2, 2, 13, 13, 13, 17, 30, 29, 2, 13, 13, 30, 40, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 143, 5 ], [ 143, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 28, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 28, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 28, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 28, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 62, 65 ], [ 28, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 68, 71 ], [ 28, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 6, 82 ], [ 82, 83 ], [ 143, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 89, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 105, 108 ], [ 84, 109 ], [ 109, 110 ], [ 84, 111 ], [ 111, 112 ], [ 143, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 122, 135 ], [ 135, 136 ], [ 136, 137 ], [ 113, 138 ], [ 138, 139 ], [ 113, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int a;\n int b;\n int gcd;\n int lcm;\n \n \n while(sc.hasNext()){\n str = sc.nextLine();\n arr = str.split(\" \");\n Arrays.sort(arr);\n a = Integer.parseInt(arr[0]);\n b = Integer.parseInt(arr[1]);\n \n gcd = Euclid(a,b);\n lcm = LCM(a,b);\n \n \n System.out.println(gcd + \" \" + lcm);\n } \n }//main\n \n public static int Euclid(int a, int b){\n int remainder;\n if(a%b == 0){\n return b;\n }else{\n remainder = a%b;\n return Euclid(b,remainder);\n }\n }\n \n public static int LCM(int a, int b){\n int k = 1;\n while(true){\n if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }\n }\n }\n \n}//class", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int a;\n int b;\n int gcd;\n int lcm;\n \n \n while(sc.hasNext()){\n str = sc.nextLine();\n arr = str.split(\" \");\n Arrays.sort(arr);\n a = Integer.parseInt(arr[0]);\n b = Integer.parseInt(arr[1]);\n \n gcd = Euclid(a,b);\n lcm = LCM(a,b);\n \n \n System.out.println(gcd + \" \" + lcm);\n } \n }//main\n \n public static int Euclid(int a, int b){\n int remainder;\n if(a%b == 0){\n return b;\n }else{\n remainder = a%b;\n return Euclid(b,remainder);\n }\n }\n \n public static int LCM(int a, int b){\n int k = 1;\n while(true){\n if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }\n }\n }\n \n}//class", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int a;\n int b;\n int gcd;\n int lcm;\n \n \n while(sc.hasNext()){\n str = sc.nextLine();\n arr = str.split(\" \");\n Arrays.sort(arr);\n a = Integer.parseInt(arr[0]);\n b = Integer.parseInt(arr[1]);\n \n gcd = Euclid(a,b);\n lcm = LCM(a,b);\n \n \n System.out.println(gcd + \" \" + lcm);\n } \n }//main", "main", "{\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int a;\n int b;\n int gcd;\n int lcm;\n \n \n while(sc.hasNext()){\n str = sc.nextLine();\n arr = str.split(\" \");\n Arrays.sort(arr);\n a = Integer.parseInt(arr[0]);\n b = Integer.parseInt(arr[1]);\n \n gcd = Euclid(a,b);\n lcm = LCM(a,b);\n \n \n System.out.println(gcd + \" \" + lcm);\n } \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str;", "str", "String[] arr;", "arr", "int a;", "a", "int b;", "b", "int gcd;", "gcd", "int lcm;", "lcm", "while(sc.hasNext()){\n str = sc.nextLine();\n arr = str.split(\" \");\n Arrays.sort(arr);\n a = Integer.parseInt(arr[0]);\n b = Integer.parseInt(arr[1]);\n \n gcd = Euclid(a,b);\n lcm = LCM(a,b);\n \n \n System.out.println(gcd + \" \" + lcm);\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n str = sc.nextLine();\n arr = str.split(\" \");\n Arrays.sort(arr);\n a = Integer.parseInt(arr[0]);\n b = Integer.parseInt(arr[1]);\n \n gcd = Euclid(a,b);\n lcm = LCM(a,b);\n \n \n System.out.println(gcd + \" \" + lcm);\n }", "str = sc.nextLine()", "str", "sc.nextLine()", "sc.nextLine", "sc", "arr = str.split(\" \")", "arr", "str.split(\" \")", "str.split", "str", "\" \"", "Arrays.sort(arr)", "Arrays.sort", "Arrays", "arr", "a = Integer.parseInt(arr[0])", "a", "Integer.parseInt(arr[0])", "Integer.parseInt", "Integer", "arr[0]", "arr", "0", "b = Integer.parseInt(arr[1])", "b", "Integer.parseInt(arr[1])", "Integer.parseInt", "Integer", "arr[1]", "arr", "1", "gcd = Euclid(a,b)", "gcd", "Euclid(a,b)", "Euclid", "a", "b", "lcm = LCM(a,b)", "lcm", "LCM(a,b)", "LCM", "a", "b", "System.out.println(gcd + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm", "gcd + \" \" + lcm", "gcd", "\" \"", "lcm", "String[] args", "args", "public static int Euclid(int a, int b){\n int remainder;\n if(a%b == 0){\n return b;\n }else{\n remainder = a%b;\n return Euclid(b,remainder);\n }\n }", "Euclid", "{\n int remainder;\n if(a%b == 0){\n return b;\n }else{\n remainder = a%b;\n return Euclid(b,remainder);\n }\n }", "int remainder;", "remainder", "if(a%b == 0){\n return b;\n }else{\n remainder = a%b;\n return Euclid(b,remainder);\n }", "a%b == 0", "a%b", "a", "b", "0", "{\n return b;\n }", "return b;", "b", "{\n remainder = a%b;\n return Euclid(b,remainder);\n }", "remainder = a%b", "remainder", "a%b", "a", "b", "return Euclid(b,remainder);", "Euclid(b,remainder)", "Euclid", "b", "remainder", "int a", "a", "int b", "b", "public static int LCM(int a, int b){\n int k = 1;\n while(true){\n if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }\n }\n }", "LCM", "{\n int k = 1;\n while(true){\n if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }\n }\n }", "int k = 1;", "k", "1", "while(true){\n if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }\n }", "true", "{\n if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }\n }", "if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }", "(b*k)%a == 0", "(b*k)%a", "(b*k)", "b", "k", "a", "0", "{\n return b*k;\n }", "return b*k;", "b*k", "b", "k", "{\n k++;\n }", "k++", "k", "int a", "a", "int b", "b", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int a;\n int b;\n int gcd;\n int lcm;\n \n \n while(sc.hasNext()){\n str = sc.nextLine();\n arr = str.split(\" \");\n Arrays.sort(arr);\n a = Integer.parseInt(arr[0]);\n b = Integer.parseInt(arr[1]);\n \n gcd = Euclid(a,b);\n lcm = LCM(a,b);\n \n \n System.out.println(gcd + \" \" + lcm);\n } \n }//main\n \n public static int Euclid(int a, int b){\n int remainder;\n if(a%b == 0){\n return b;\n }else{\n remainder = a%b;\n return Euclid(b,remainder);\n }\n }\n \n public static int LCM(int a, int b){\n int k = 1;\n while(true){\n if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }\n }\n }\n \n}//class", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int a;\n int b;\n int gcd;\n int lcm;\n \n \n while(sc.hasNext()){\n str = sc.nextLine();\n arr = str.split(\" \");\n Arrays.sort(arr);\n a = Integer.parseInt(arr[0]);\n b = Integer.parseInt(arr[1]);\n \n gcd = Euclid(a,b);\n lcm = LCM(a,b);\n \n \n System.out.println(gcd + \" \" + lcm);\n } \n }//main\n \n public static int Euclid(int a, int b){\n int remainder;\n if(a%b == 0){\n return b;\n }else{\n remainder = a%b;\n return Euclid(b,remainder);\n }\n }\n \n public static int LCM(int a, int b){\n int k = 1;\n while(true){\n if((b*k)%a == 0){\n return b*k;\n }else{\n k++;\n }\n }\n }\n \n}//class", "Main" ]
import java.util.*; /* Main class for AOJ where there is no input. */ public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str; String[] arr; int a; int b; int gcd; int lcm; while(sc.hasNext()){ str = sc.nextLine(); arr = str.split(" "); Arrays.sort(arr); a = Integer.parseInt(arr[0]); b = Integer.parseInt(arr[1]); gcd = Euclid(a,b); lcm = LCM(a,b); System.out.println(gcd + " " + lcm); } }//main public static int Euclid(int a, int b){ int remainder; if(a%b == 0){ return b; }else{ remainder = a%b; return Euclid(b,remainder); } } public static int LCM(int a, int b){ int k = 1; while(true){ if((b*k)%a == 0){ return b*k; }else{ k++; } } } }//class
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 18, 13, 13, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 13, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 40, 43 ], [ 22, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 22, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 6, 60 ], [ 60, 61 ], [ 83, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 65, 76 ], [ 76, 77 ], [ 62, 78 ], [ 78, 79 ], [ 62, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, goc;\n\t\twhile (in.hasNext()) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tSystem.out.print(goc = goc(a, b));\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(a / goc * b);\n\t\t}\n\t}\n\n\tstatic int goc(int a, int b) {\n\t\tif (b != 0) return goc(b, a % b);\n\t\telse return a;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, goc;\n\t\twhile (in.hasNext()) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tSystem.out.print(goc = goc(a, b));\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(a / goc * b);\n\t\t}\n\t}\n\n\tstatic int goc(int a, int b) {\n\t\tif (b != 0) return goc(b, a % b);\n\t\telse return a;\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, goc;\n\t\twhile (in.hasNext()) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tSystem.out.print(goc = goc(a, b));\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(a / goc * b);\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, goc;\n\t\twhile (in.hasNext()) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tSystem.out.print(goc = goc(a, b));\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(a / goc * b);\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int a", "a", "b", "b", "goc;", "goc", "while (in.hasNext()) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tSystem.out.print(goc = goc(a, b));\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(a / goc * b);\n\t\t}", "in.hasNext()", "in.hasNext", "in", "{\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tSystem.out.print(goc = goc(a, b));\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(a / goc * b);\n\t\t}", "a = in.nextInt()", "a", "in.nextInt()", "in.nextInt", "in", "b = in.nextInt()", "b", "in.nextInt()", "in.nextInt", "in", "System.out.print(goc = goc(a, b))", "System.out.print", "System.out", "System", "System.out", "goc = goc(a, b)", "goc", "goc(a, b)", "goc", "a", "b", "System.out.print(\" \")", "System.out.print", "System.out", "System", "System.out", "\" \"", "System.out.println(a / goc * b)", "System.out.println", "System.out", "System", "System.out", "a / goc * b", "a / goc", "a", "goc", "b", "String[] args", "args", "static int goc(int a, int b) {\n\t\tif (b != 0) return goc(b, a % b);\n\t\telse return a;\n\t}", "goc", "{\n\t\tif (b != 0) return goc(b, a % b);\n\t\telse return a;\n\t}", "if (b != 0) return goc(b, a % b);\n\t\telse return a;", "b != 0", "b", "0", "return goc(b, a % b);", "goc(b, a % b)", "goc", "b", "a % b", "a", "b", "return a;", "a", "int a", "a", "int b", "b", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, goc;\n\t\twhile (in.hasNext()) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tSystem.out.print(goc = goc(a, b));\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(a / goc * b);\n\t\t}\n\t}\n\n\tstatic int goc(int a, int b) {\n\t\tif (b != 0) return goc(b, a % b);\n\t\telse return a;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, goc;\n\t\twhile (in.hasNext()) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tSystem.out.print(goc = goc(a, b));\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.println(a / goc * b);\n\t\t}\n\t}\n\n\tstatic int goc(int a, int b) {\n\t\tif (b != 0) return goc(b, a % b);\n\t\telse return a;\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a, b, goc; while (in.hasNext()) { a = in.nextInt(); b = in.nextInt(); System.out.print(goc = goc(a, b)); System.out.print(" "); System.out.println(a / goc * b); } } static int goc(int a, int b) { if (b != 0) return goc(b, a % b); else return a; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 13, 13, 17, 30, 0, 13, 2, 13, 13, 3, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 121, 5 ], [ 121, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 50, 54 ], [ 43, 55 ], [ 55, 56 ], [ 56, 57 ], [ 43, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 60, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 26, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 83, 87 ], [ 76, 88 ], [ 88, 89 ], [ 89, 90 ], [ 76, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 26, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 114, 114 ], [ 114, 115 ], [ 114, 116 ], [ 114, 117 ], [ 6, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint a, b;\n\t\tint GCD = 0, LCM = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tGCD = 0;\n\t\t\tLCM = 0;\n\t\t\t/* 最大公約数 */\n\t\t\tfor (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* 最小公倍数 */\n\t\t\tfor (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(GCD+\" \"+LCM);\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint a, b;\n\t\tint GCD = 0, LCM = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tGCD = 0;\n\t\t\tLCM = 0;\n\t\t\t/* 最大公約数 */\n\t\t\tfor (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* 最小公倍数 */\n\t\t\tfor (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(GCD+\" \"+LCM);\n\t\t}\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint a, b;\n\t\tint GCD = 0, LCM = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tGCD = 0;\n\t\t\tLCM = 0;\n\t\t\t/* 最大公約数 */\n\t\t\tfor (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* 最小公倍数 */\n\t\t\tfor (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(GCD+\" \"+LCM);\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint a, b;\n\t\tint GCD = 0, LCM = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tGCD = 0;\n\t\t\tLCM = 0;\n\t\t\t/* 最大公約数 */\n\t\t\tfor (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* 最小公倍数 */\n\t\t\tfor (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(GCD+\" \"+LCM);\n\t\t}\n\t}", "int a", "a", "b;", "b", "int GCD = 0", "GCD", "0", "LCM = 0;", "LCM", "0", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (scan.hasNext()) {\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tGCD = 0;\n\t\t\tLCM = 0;\n\t\t\t/* 最大公約数 */\n\t\t\tfor (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* 最小公倍数 */\n\t\t\tfor (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(GCD+\" \"+LCM);\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tGCD = 0;\n\t\t\tLCM = 0;\n\t\t\t/* 最大公約数 */\n\t\t\tfor (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* 最小公倍数 */\n\t\t\tfor (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(GCD+\" \"+LCM);\n\t\t}", "a = scan.nextInt()", "a", "scan.nextInt()", "scan.nextInt", "scan", "b = scan.nextInt()", "b", "scan.nextInt()", "scan.nextInt", "scan", "GCD = 0", "GCD", "0", "LCM = 0", "LCM", "0", "for (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= Math.min(a, b)", "i", "Math.min(a, b)", "Math.min", "Math", "a", "b", "i++", "i++", "i", "{\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}", "if ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}", "(a % i == 0) && (b % i == 0)", "(a % i == 0)", "a % i", "a", "i", "0", "(b % i == 0)", "b % i", "b", "i", "0", "{\n\t\t\t\t\tGCD = i;\n\t\t\t\t}", "GCD = i", "GCD", "i", "for (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= Math.min(b, 2000000000)", "i", "Math.min(b, 2000000000)", "Math.min", "Math", "b", "2000000000", "i++", "i++", "i", "{\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}", "{\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}", "if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }", "(a*i)%b==0", "(a*i)%b", "(a*i)", "a", "i", "b", "0", "{\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }", "LCM = a*i", "LCM", "a*i", "a", "i", "break;", "System.out.println(GCD+\" \"+LCM)", "System.out.println", "System.out", "System", "System.out", "GCD+\" \"+LCM", "GCD+\" \"+LCM", "GCD", "\" \"", "LCM", "String[] args", "args", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint a, b;\n\t\tint GCD = 0, LCM = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tGCD = 0;\n\t\t\tLCM = 0;\n\t\t\t/* 最大公約数 */\n\t\t\tfor (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* 最小公倍数 */\n\t\t\tfor (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(GCD+\" \"+LCM);\n\t\t}\n\t}\n\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tint a, b;\n\t\tint GCD = 0, LCM = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (scan.hasNext()) {\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tGCD = 0;\n\t\t\tLCM = 0;\n\t\t\t/* 最大公約数 */\n\t\t\tfor (int i = 1; i <= Math.min(a, b); i++) {\n\t\t\t\tif ((a % i == 0) && (b % i == 0)) {\n\t\t\t\t\tGCD = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\t/* 最小公倍数 */\n\t\t\tfor (int i = 1; i <= Math.min(b, 2000000000); i++) {\n\t\t\t\t if((a*i)%b==0){\n\t\t\t\t\t LCM = a*i;\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(GCD+\" \"+LCM);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ int a, b; int GCD = 0, LCM = 0; Scanner scan = new Scanner(System.in); while (scan.hasNext()) { a = scan.nextInt(); b = scan.nextInt(); GCD = 0; LCM = 0; /* 最大公約数 */ for (int i = 1; i <= Math.min(a, b); i++) { if ((a % i == 0) && (b % i == 0)) { GCD = i; } } /* 最小公倍数 */ for (int i = 1; i <= Math.min(b, 2000000000); i++) { if((a*i)%b==0){ LCM = a*i; break; } } System.out.println(GCD+" "+LCM); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 4, 13, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 13, 13, 14, 2, 2, 13, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 108, 8 ], [ 108, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 19, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 36, 39 ], [ 23, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 46, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 49, 53 ], [ 9, 54 ], [ 54, 55 ], [ 108, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 58, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 58, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 58, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 56, 88 ], [ 88, 89 ], [ 56, 90 ], [ 90, 91 ], [ 108, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 92, 101 ], [ 101, 102 ], [ 92, 103 ], [ 103, 104 ], [ 92, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.io.BufferedInputStream;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(new BufferedInputStream(System.in));\n\t\tlong a, b;\n\t\twhile (scanner.hasNext()) {\n\t\t\ta = scanner.nextLong();\n\t\t\tb = scanner.nextLong();\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tSystem.out.println(gcd + \" \" + lcm(a, b, gcd));\n\n\t\t}\n\t}\n\n\tpublic static long gcd(long a, long b) {\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tif (max % min == 0)\n\t\t\treturn min;\n\t\treturn gcd(min, max % min);\n\t}\n\n\tpublic static long lcm(long a, long b, long gcd) {\n\t\treturn a * b / gcd;\n\t}\n}", "import java.io.BufferedInputStream;", "BufferedInputStream", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(new BufferedInputStream(System.in));\n\t\tlong a, b;\n\t\twhile (scanner.hasNext()) {\n\t\t\ta = scanner.nextLong();\n\t\t\tb = scanner.nextLong();\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tSystem.out.println(gcd + \" \" + lcm(a, b, gcd));\n\n\t\t}\n\t}\n\n\tpublic static long gcd(long a, long b) {\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tif (max % min == 0)\n\t\t\treturn min;\n\t\treturn gcd(min, max % min);\n\t}\n\n\tpublic static long lcm(long a, long b, long gcd) {\n\t\treturn a * b / gcd;\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(new BufferedInputStream(System.in));\n\t\tlong a, b;\n\t\twhile (scanner.hasNext()) {\n\t\t\ta = scanner.nextLong();\n\t\t\tb = scanner.nextLong();\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tSystem.out.println(gcd + \" \" + lcm(a, b, gcd));\n\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(new BufferedInputStream(System.in));\n\t\tlong a, b;\n\t\twhile (scanner.hasNext()) {\n\t\t\ta = scanner.nextLong();\n\t\t\tb = scanner.nextLong();\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tSystem.out.println(gcd + \" \" + lcm(a, b, gcd));\n\n\t\t}\n\t}", "Scanner scanner = new Scanner(new BufferedInputStream(System.in));", "scanner", "new Scanner(new BufferedInputStream(System.in))", "long a", "a", "b;", "b", "while (scanner.hasNext()) {\n\t\t\ta = scanner.nextLong();\n\t\t\tb = scanner.nextLong();\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tSystem.out.println(gcd + \" \" + lcm(a, b, gcd));\n\n\t\t}", "scanner.hasNext()", "scanner.hasNext", "scanner", "{\n\t\t\ta = scanner.nextLong();\n\t\t\tb = scanner.nextLong();\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tSystem.out.println(gcd + \" \" + lcm(a, b, gcd));\n\n\t\t}", "a = scanner.nextLong()", "a", "scanner.nextLong()", "scanner.nextLong", "scanner", "b = scanner.nextLong()", "b", "scanner.nextLong()", "scanner.nextLong", "scanner", "long gcd = gcd(a, b);", "gcd", "gcd(a, b)", "gcd", "a", "b", "System.out.println(gcd + \" \" + lcm(a, b, gcd))", "System.out.println", "System.out", "System", "System.out", "gcd + \" \" + lcm(a, b, gcd)", "gcd + \" \" + lcm(a, b, gcd)", "gcd", "\" \"", "lcm(a, b, gcd)", "lcm", "a", "b", "gcd", "String[] args", "args", "public static long gcd(long a, long b) {\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tif (max % min == 0)\n\t\t\treturn min;\n\t\treturn gcd(min, max % min);\n\t}", "gcd", "{\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tif (max % min == 0)\n\t\t\treturn min;\n\t\treturn gcd(min, max % min);\n\t}", "long max = Math.max(a, b);", "max", "Math.max(a, b)", "Math.max", "Math", "a", "b", "long min = Math.min(a, b);", "min", "Math.min(a, b)", "Math.min", "Math", "a", "b", "if (max % min == 0)\n\t\t\treturn min;", "max % min == 0", "max % min", "max", "min", "0", "return min;", "min", "return gcd(min, max % min);", "gcd(min, max % min)", "gcd", "min", "max % min", "max", "min", "long a", "a", "long b", "b", "public static long lcm(long a, long b, long gcd) {\n\t\treturn a * b / gcd;\n\t}", "lcm", "{\n\t\treturn a * b / gcd;\n\t}", "return a * b / gcd;", "a * b / gcd", "a * b", "a", "b", "gcd", "long a", "a", "long b", "b", "long gcd", "gcd", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(new BufferedInputStream(System.in));\n\t\tlong a, b;\n\t\twhile (scanner.hasNext()) {\n\t\t\ta = scanner.nextLong();\n\t\t\tb = scanner.nextLong();\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tSystem.out.println(gcd + \" \" + lcm(a, b, gcd));\n\n\t\t}\n\t}\n\n\tpublic static long gcd(long a, long b) {\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tif (max % min == 0)\n\t\t\treturn min;\n\t\treturn gcd(min, max % min);\n\t}\n\n\tpublic static long lcm(long a, long b, long gcd) {\n\t\treturn a * b / gcd;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(new BufferedInputStream(System.in));\n\t\tlong a, b;\n\t\twhile (scanner.hasNext()) {\n\t\t\ta = scanner.nextLong();\n\t\t\tb = scanner.nextLong();\n\t\t\tlong gcd = gcd(a, b);\n\t\t\tSystem.out.println(gcd + \" \" + lcm(a, b, gcd));\n\n\t\t}\n\t}\n\n\tpublic static long gcd(long a, long b) {\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tif (max % min == 0)\n\t\t\treturn min;\n\t\treturn gcd(min, max % min);\n\t}\n\n\tpublic static long lcm(long a, long b, long gcd) {\n\t\treturn a * b / gcd;\n\t}\n}", "Main" ]
import java.io.BufferedInputStream; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(new BufferedInputStream(System.in)); long a, b; while (scanner.hasNext()) { a = scanner.nextLong(); b = scanner.nextLong(); long gcd = gcd(a, b); System.out.println(gcd + " " + lcm(a, b, gcd)); } } public static long gcd(long a, long b) { long max = Math.max(a, b); long min = Math.min(a, b); if (max % min == 0) return min; return gcd(min, max % min); } public static long lcm(long a, long b, long gcd) { return a * b / gcd; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 17, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 17, 40, 17, 30, 41, 13, 4, 18, 13, 17, 4, 18, 13, 17, 0, 18, 13, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 2, 4, 18, 13, 17, 17, 30, 0, 18, 13, 13, 4, 18, 13, 13, 14, 2, 18, 13, 17, 18, 13, 17, 30, 41, 13, 18, 13, 17, 0, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 13, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 18, 13, 17, 17, 30, 0, 13, 2, 18, 13, 17, 18, 13, 17, 14, 2, 13, 17, 3, 0, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 13, 41, 13, 17, 42, 2, 2, 2, 18, 13, 17, 13, 18, 13, 17, 17, 30, 40, 13, 4, 18, 18, 13, 13, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 205, 11 ], [ 205, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 23, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 23, 37 ], [ 37, 38 ], [ 37, 39 ], [ 23, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 62, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 62, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 54, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 23, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 109, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 109, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 23, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 23, 132 ], [ 132, 133 ], [ 132, 134 ], [ 23, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 135, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 148, 150 ], [ 141, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 141, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 141, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 23, 168 ], [ 168, 169 ], [ 168, 170 ], [ 23, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 173, 179 ], [ 179, 180 ], [ 179, 181 ], [ 172, 182 ], [ 171, 183 ], [ 183, 184 ], [ 184, 185 ], [ 23, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 192, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 192, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 197, 201 ], [ 12, 202 ], [ 202, 203 ], [ 0, 204 ], [ 204, 205 ], [ 204, 206 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile(true){\n\t\t\n\t\tint n = 2;\n\t\tString c = br.readLine();\n\t\t\n\t\tif(c == null)\n\t\t\tbreak;\n\t\t\n\t\tlong[] arr = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}\n\n\t\tif(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}\n\t\t\n\t\tlong[] arr2 = arr.clone();\n\t\tlong amari = 1;\n\t\twhile(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}\n\t\t\n\n\n\t\tlong i = 1;\n\t\twhile((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(arr2[0] + \" \" + arr[0]*i);\n\t\t\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile(true){\n\t\t\n\t\tint n = 2;\n\t\tString c = br.readLine();\n\t\t\n\t\tif(c == null)\n\t\t\tbreak;\n\t\t\n\t\tlong[] arr = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}\n\n\t\tif(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}\n\t\t\n\t\tlong[] arr2 = arr.clone();\n\t\tlong amari = 1;\n\t\twhile(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}\n\t\t\n\n\n\t\tlong i = 1;\n\t\twhile((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(arr2[0] + \" \" + arr[0]*i);\n\t\t\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile(true){\n\t\t\n\t\tint n = 2;\n\t\tString c = br.readLine();\n\t\t\n\t\tif(c == null)\n\t\t\tbreak;\n\t\t\n\t\tlong[] arr = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}\n\n\t\tif(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}\n\t\t\n\t\tlong[] arr2 = arr.clone();\n\t\tlong amari = 1;\n\t\twhile(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}\n\t\t\n\n\n\t\tlong i = 1;\n\t\twhile((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(arr2[0] + \" \" + arr[0]*i);\n\t\t\n\t\t}\n\t}", "main", "{\n\t\t// System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile(true){\n\t\t\n\t\tint n = 2;\n\t\tString c = br.readLine();\n\t\t\n\t\tif(c == null)\n\t\t\tbreak;\n\t\t\n\t\tlong[] arr = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}\n\n\t\tif(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}\n\t\t\n\t\tlong[] arr2 = arr.clone();\n\t\tlong amari = 1;\n\t\twhile(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}\n\t\t\n\n\n\t\tlong i = 1;\n\t\twhile((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(arr2[0] + \" \" + arr[0]*i);\n\t\t\n\t\t}\n\t}", "InputStreamReader is = new InputStreamReader(System.in);", "is", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(is);", "br", "new BufferedReader(is)", "while(true){\n\t\t\n\t\tint n = 2;\n\t\tString c = br.readLine();\n\t\t\n\t\tif(c == null)\n\t\t\tbreak;\n\t\t\n\t\tlong[] arr = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}\n\n\t\tif(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}\n\t\t\n\t\tlong[] arr2 = arr.clone();\n\t\tlong amari = 1;\n\t\twhile(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}\n\t\t\n\n\n\t\tlong i = 1;\n\t\twhile((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(arr2[0] + \" \" + arr[0]*i);\n\t\t\n\t\t}", "true", "{\n\t\t\n\t\tint n = 2;\n\t\tString c = br.readLine();\n\t\t\n\t\tif(c == null)\n\t\t\tbreak;\n\t\t\n\t\tlong[] arr = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}\n\n\t\tif(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}\n\t\t\n\t\tlong[] arr2 = arr.clone();\n\t\tlong amari = 1;\n\t\twhile(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}\n\t\t\n\n\n\t\tlong i = 1;\n\t\twhile((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(arr2[0] + \" \" + arr[0]*i);\n\t\t\n\t\t}", "int n = 2;", "n", "2", "String c = br.readLine();", "c", "br.readLine()", "br.readLine", "br", "if(c == null)\n\t\t\tbreak;", "c == null", "c", "null", "break;", "long[] arr = new long[n];", "arr", "new long[n]", "n", "for(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}", "{\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}", "if(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}", "c.indexOf(\" \") != -1", "c.indexOf(\" \")", "c.indexOf", "c", "\" \"", "-1", "1", "{\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}", "String str = c.substring(0, c.indexOf(\" \"));", "str", "c.substring(0, c.indexOf(\" \"))", "c.substring", "c", "0", "c.indexOf(\" \")", "c.indexOf", "c", "\" \"", "arr[i] = Long.parseLong(str)", "arr[i]", "arr", "i", "Long.parseLong(str)", "Long.parseLong", "Long", "str", "c = c.substring(c.indexOf(\" \") + 1)", "c", "c.substring(c.indexOf(\" \") + 1)", "c.substring", "c", "c.indexOf(\" \") + 1", "c.indexOf(\" \")", "c.indexOf", "c", "\" \"", "1", "{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}", "arr[i] = Long.parseLong(c)", "arr[i]", "arr", "i", "Long.parseLong(c)", "Long.parseLong", "Long", "c", "if(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}", "arr[1] < arr[0]", "arr[1]", "arr", "1", "arr[0]", "arr", "0", "{\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}", "long re = arr[1];", "re", "arr[1]", "arr", "1", "arr[1] = arr[0]", "arr[1]", "arr", "1", "arr[0]", "arr", "0", "arr[0] = re", "arr[0]", "arr", "0", "re", "long[] arr2 = arr.clone();", "arr2", "arr.clone()", "arr.clone", "arr", "long amari = 1;", "amari", "1", "while(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}", "arr2[0] !=0", "arr2[0]", "arr2", "0", "0", "{\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}", "amari = arr2[1] % arr2[0]", "amari", "arr2[1] % arr2[0]", "arr2[1]", "arr2", "1", "arr2[0]", "arr2", "0", "if(amari == 0) break;", "amari == 0", "amari", "0", "break;", "arr2[1] = arr2[0]", "arr2[1]", "arr2", "1", "arr2[0]", "arr2", "0", "arr2[0] = amari", "arr2[0]", "arr2", "0", "amari", "long i = 1;", "i", "1", "while((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}", "(arr[0]*i) % arr[1] != 0", "(arr[0]*i) % arr[1]", "(arr[0]*i)", "arr[0]", "arr", "0", "i", "arr[1]", "arr", "1", "0", "{\n\t\t\ti++;\n\t\t}", "i++", "i", "System.out.println(arr2[0] + \" \" + arr[0]*i)", "System.out.println", "System.out", "System", "System.out", "arr2[0] + \" \" + arr[0]*i", "arr2[0] + \" \" + arr[0]*i", "arr2[0]", "arr2", "0", "\" \"", "arr[0]*i", "arr[0]", "arr", "0", "i", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile(true){\n\t\t\n\t\tint n = 2;\n\t\tString c = br.readLine();\n\t\t\n\t\tif(c == null)\n\t\t\tbreak;\n\t\t\n\t\tlong[] arr = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}\n\n\t\tif(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}\n\t\t\n\t\tlong[] arr2 = arr.clone();\n\t\tlong amari = 1;\n\t\twhile(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}\n\t\t\n\n\n\t\tlong i = 1;\n\t\twhile((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(arr2[0] + \" \" + arr[0]*i);\n\t\t\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile(true){\n\t\t\n\t\tint n = 2;\n\t\tString c = br.readLine();\n\t\t\n\t\tif(c == null)\n\t\t\tbreak;\n\t\t\n\t\tlong[] arr = new long[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\tif(c.indexOf(\" \") != -1){\n\t\tString str = c.substring(0, c.indexOf(\" \"));\n\t\tarr[i] = Long.parseLong(str);\n\t\tc = c.substring(c.indexOf(\" \") + 1);\n\t\t}\n\t\telse{\n\t\tarr[i] = Long.parseLong(c);\n\t\t}\n\t\t}\n\n\t\tif(arr[1] < arr[0]){\n\t\t\tlong re = arr[1];\n\t\t\tarr[1] = arr[0];\n\t\t\tarr[0] = re;\n\t\t}\n\t\t\n\t\tlong[] arr2 = arr.clone();\n\t\tlong amari = 1;\n\t\twhile(arr2[0] !=0){\n\t\t\tamari = arr2[1] % arr2[0];\n\t\t\tif(amari == 0) break;\n\t\t\tarr2[1] = arr2[0];\n\t\t\tarr2[0] = amari;\n\t\t}\n\t\t\n\n\n\t\tlong i = 1;\n\t\twhile((arr[0]*i) % arr[1] != 0){\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(arr2[0] + \" \" + arr[0]*i);\n\t\t\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { // System.out.println("Hello world"); InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); while(true){ int n = 2; String c = br.readLine(); if(c == null) break; long[] arr = new long[n]; for(int i = 0; i < n; i++){ if(c.indexOf(" ") != -1){ String str = c.substring(0, c.indexOf(" ")); arr[i] = Long.parseLong(str); c = c.substring(c.indexOf(" ") + 1); } else{ arr[i] = Long.parseLong(c); } } if(arr[1] < arr[0]){ long re = arr[1]; arr[1] = arr[0]; arr[0] = re; } long[] arr2 = arr.clone(); long amari = 1; while(arr2[0] !=0){ amari = arr2[1] % arr2[0]; if(amari == 0) break; arr2[1] = arr2[0]; arr2[0] = amari; } long i = 1; while((arr[0]*i) % arr[1] != 0){ i++; } System.out.println(arr2[0] + " " + arr[0]*i); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 42, 2, 13, 17, 30, 0, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 41, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 17, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 97, 5 ], [ 97, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 37, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 26, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 26, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 64, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 26, 76 ], [ 76, 77 ], [ 76, 78 ], [ 26, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 26, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 86, 92 ], [ 86, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong num1, num2, dividend, divisor, surplus;\n\t\t\n\t\twhile(scan.hasNext()) {\n\t\t\tnum1 = scan.nextLong();\n\t\t\tnum2 = scan.nextLong();\n\t\t\t\n\t\t\tif(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}\n\t\t\t\n\t\t\tsurplus = dividend % divisor;\n\t\t\twhile(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}\n\t\t\tlong gcd = divisor;\n\t\t\tlong lcm = num1 * num2 / divisor;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t\t\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong num1, num2, dividend, divisor, surplus;\n\t\t\n\t\twhile(scan.hasNext()) {\n\t\t\tnum1 = scan.nextLong();\n\t\t\tnum2 = scan.nextLong();\n\t\t\t\n\t\t\tif(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}\n\t\t\t\n\t\t\tsurplus = dividend % divisor;\n\t\t\twhile(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}\n\t\t\tlong gcd = divisor;\n\t\t\tlong lcm = num1 * num2 / divisor;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t\t\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong num1, num2, dividend, divisor, surplus;\n\t\t\n\t\twhile(scan.hasNext()) {\n\t\t\tnum1 = scan.nextLong();\n\t\t\tnum2 = scan.nextLong();\n\t\t\t\n\t\t\tif(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}\n\t\t\t\n\t\t\tsurplus = dividend % divisor;\n\t\t\twhile(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}\n\t\t\tlong gcd = divisor;\n\t\t\tlong lcm = num1 * num2 / divisor;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong num1, num2, dividend, divisor, surplus;\n\t\t\n\t\twhile(scan.hasNext()) {\n\t\t\tnum1 = scan.nextLong();\n\t\t\tnum2 = scan.nextLong();\n\t\t\t\n\t\t\tif(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}\n\t\t\t\n\t\t\tsurplus = dividend % divisor;\n\t\t\twhile(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}\n\t\t\tlong gcd = divisor;\n\t\t\tlong lcm = num1 * num2 / divisor;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t\t\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "long num1", "num1", "num2", "num2", "dividend", "dividend", "divisor", "divisor", "surplus;", "surplus", "while(scan.hasNext()) {\n\t\t\tnum1 = scan.nextLong();\n\t\t\tnum2 = scan.nextLong();\n\t\t\t\n\t\t\tif(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}\n\t\t\t\n\t\t\tsurplus = dividend % divisor;\n\t\t\twhile(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}\n\t\t\tlong gcd = divisor;\n\t\t\tlong lcm = num1 * num2 / divisor;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t\t\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tnum1 = scan.nextLong();\n\t\t\tnum2 = scan.nextLong();\n\t\t\t\n\t\t\tif(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}\n\t\t\t\n\t\t\tsurplus = dividend % divisor;\n\t\t\twhile(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}\n\t\t\tlong gcd = divisor;\n\t\t\tlong lcm = num1 * num2 / divisor;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t\t\n\t\t}", "num1 = scan.nextLong()", "num1", "scan.nextLong()", "scan.nextLong", "scan", "num2 = scan.nextLong()", "num2", "scan.nextLong()", "scan.nextLong", "scan", "if(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}", "num1 < num2", "num1", "num2", "{\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t}", "dividend = num2", "dividend", "num2", "divisor = num1", "divisor", "num1", "{\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}", "dividend = num1", "dividend", "num1", "divisor = num2", "divisor", "num2", "surplus = dividend % divisor", "surplus", "dividend % divisor", "dividend", "divisor", "while(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}", "surplus != 0", "surplus", "0", "{\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}", "dividend = divisor", "dividend", "divisor", "divisor = surplus", "divisor", "surplus", "surplus = dividend % divisor", "surplus", "dividend % divisor", "dividend", "divisor", "long gcd = divisor;", "gcd", "divisor", "long lcm = num1 * num2 / divisor;", "lcm", "num1 * num2 / divisor", "num1 * num2", "num1", "num2", "divisor", "System.out.printf(\"%d %d\\n\", gcd, lcm)", "System.out.printf", "System.out", "System", "System.out", "\"%d %d\\n\"", "gcd", "lcm", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong num1, num2, dividend, divisor, surplus;\n\t\t\n\t\twhile(scan.hasNext()) {\n\t\t\tnum1 = scan.nextLong();\n\t\t\tnum2 = scan.nextLong();\n\t\t\t\n\t\t\tif(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}\n\t\t\t\n\t\t\tsurplus = dividend % divisor;\n\t\t\twhile(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}\n\t\t\tlong gcd = divisor;\n\t\t\tlong lcm = num1 * num2 / divisor;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t\t\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong num1, num2, dividend, divisor, surplus;\n\t\t\n\t\twhile(scan.hasNext()) {\n\t\t\tnum1 = scan.nextLong();\n\t\t\tnum2 = scan.nextLong();\n\t\t\t\n\t\t\tif(num1 < num2) {\n\t\t\t\tdividend = num2;\n\t\t\t\tdivisor = num1;\n\t\t\t} else {\n\t\t\t\tdividend = num1;\n\t\t\t\tdivisor = num2;\n\t\t\t}\n\t\t\t\n\t\t\tsurplus = dividend % divisor;\n\t\t\twhile(surplus != 0) {\n\t\t\t\tdividend = divisor;\n\t\t\t\tdivisor = surplus;\n\t\t\t\tsurplus = dividend % divisor;\n\t\t\t}\n\t\t\tlong gcd = divisor;\n\t\t\tlong lcm = num1 * num2 / divisor;\n\t\t\t\n\t\t\tSystem.out.printf(\"%d %d\\n\", gcd, lcm);\n\t\t\t\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long num1, num2, dividend, divisor, surplus; while(scan.hasNext()) { num1 = scan.nextLong(); num2 = scan.nextLong(); if(num1 < num2) { dividend = num2; divisor = num1; } else { dividend = num1; divisor = num2; } surplus = dividend % divisor; while(surplus != 0) { dividend = divisor; divisor = surplus; surplus = dividend % divisor; } long gcd = divisor; long lcm = num1 * num2 / divisor; System.out.printf("%d %d\n", gcd, lcm); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 42, 2, 2, 13, 13, 2, 13, 13, 30, 42, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 40, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 89, 5 ], [ 89, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 42, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 54, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 41, 70 ], [ 70, 71 ], [ 16, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tint k = 2;\n\t\t\tlong lcm = 1;\n\t\t\twhile(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println(lcm+\" \"+(lcm*a*b));\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tint k = 2;\n\t\t\tlong lcm = 1;\n\t\t\twhile(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println(lcm+\" \"+(lcm*a*b));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tint k = 2;\n\t\t\tlong lcm = 1;\n\t\t\twhile(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println(lcm+\" \"+(lcm*a*b));\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tint k = 2;\n\t\t\tlong lcm = 1;\n\t\t\twhile(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println(lcm+\" \"+(lcm*a*b));\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tint k = 2;\n\t\t\tlong lcm = 1;\n\t\t\twhile(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println(lcm+\" \"+(lcm*a*b));\n\t\t}", "in.hasNext()", "in.hasNext", "in", "{\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tint k = 2;\n\t\t\tlong lcm = 1;\n\t\t\twhile(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println(lcm+\" \"+(lcm*a*b));\n\t\t}", "long a = in.nextLong();", "a", "in.nextLong()", "in.nextLong", "in", "long b = in.nextLong();", "b", "in.nextLong()", "in.nextLong", "in", "int k = 2;", "k", "2", "long lcm = 1;", "lcm", "1", "while(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}", "k < a || k < b", "k < a", "k", "a", "k < b", "k", "b", "{\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}", "while(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}", "a%k == 0 && b%k == 0", "a%k == 0", "a%k", "a", "k", "0", "b%k == 0", "b%k", "b", "k", "0", "{\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}", "a = a/k", "a", "a/k", "a", "k", "b = b/k", "b", "b/k", "b", "k", "lcm = lcm*k", "lcm", "lcm*k", "lcm", "k", "k++", "k", "System.out.println(lcm+\" \"+(lcm*a*b))", "System.out.println", "System.out", "System", "System.out", "lcm+\" \"+(lcm*a*b)", "lcm+\" \"+(lcm*a*b)", "lcm", "\" \"", "(lcm*a*b)", "lcm*a*b", "lcm", "a", "b", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tint k = 2;\n\t\t\tlong lcm = 1;\n\t\t\twhile(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println(lcm+\" \"+(lcm*a*b));\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tint k = 2;\n\t\t\tlong lcm = 1;\n\t\t\twhile(k < a || k < b){\n\t\t\t\twhile(a%k == 0 && b%k == 0){\n\t\t\t\t\ta = a/k;\n\t\t\t\t\tb = b/k;\n\t\t\t\t\tlcm = lcm*k;\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\tSystem.out.println(lcm+\" \"+(lcm*a*b));\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); while(in.hasNext()){ long a = in.nextLong(); long b = in.nextLong(); int k = 2; long lcm = 1; while(k < a || k < b){ while(a%k == 0 && b%k == 0){ a = a/k; b = b/k; lcm = lcm*k; } k++; } System.out.println(lcm+" "+(lcm*a*b)); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 33, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 39, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 6, 46 ], [ 46, 47 ], [ 4, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 55, 62 ], [ 62, 63 ], [ 62, 64 ], [ 50, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 65, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 48, 80 ], [ 80, 81 ], [ 48, 82 ], [ 82, 83 ], [ 4, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 92, 95 ], [ 84, 96 ], [ 96, 97 ], [ 84, 98 ], [ 98, 99 ] ]
[ "import java.util.Scanner;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tSystem.out.println(GCD(a, b) + \" \" + LCM(a, b));\n\t\t}\n\t\tin.close();\n\t}\n\n\tstatic long GCD(long a, long b) {//a>b\n\t\tif (a < b) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn GCD(b, a % b);\n\t\t}\n\t}\n\n\tstatic long LCM(long a, long b) {\n\t\treturn a * b / GCD(a, b);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tSystem.out.println(GCD(a, b) + \" \" + LCM(a, b));\n\t\t}\n\t\tin.close();\n\t}\n\n\tstatic long GCD(long a, long b) {//a>b\n\t\tif (a < b) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn GCD(b, a % b);\n\t\t}\n\t}\n\n\tstatic long LCM(long a, long b) {\n\t\treturn a * b / GCD(a, b);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tSystem.out.println(GCD(a, b) + \" \" + LCM(a, b));\n\t\t}\n\t\tin.close();\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tSystem.out.println(GCD(a, b) + \" \" + LCM(a, b));\n\t\t}\n\t\tin.close();\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(in.hasNext()){\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tSystem.out.println(GCD(a, b) + \" \" + LCM(a, b));\n\t\t}", "in.hasNext()", "in.hasNext", "in", "{\n\t\t\tlong a = in.nextLong();\n\t\t\tlong b = in.nextLong();\n\t\t\tSystem.out.println(GCD(a, b) + \" \" + LCM(a, b));\n\t\t}", "long a = in.nextLong();", "a", "in.nextLong()", "in.nextLong", "in", "long b = in.nextLong();", "b", "in.nextLong()", "in.nextLong", "in", "System.out.println(GCD(a, b) + \" \" + LCM(a, b))", "System.out.println", "System.out", "System", "System.out", "GCD(a, b) + \" \" + LCM(a, b)", "GCD(a, b) + \" \" + LCM(a, b)", "GCD(a, b)", "GCD", "a", "b", "\" \"", "LCM(a, b)", "LCM", "a", "b", "in.close()", "in.close", "in", "String[] args", "args", "static long GCD(long a, long b) {//a>b\n\t\tif (a < b) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn GCD(b, a % b);\n\t\t}\n\t}", "GCD", "{//a>b\n\t\tif (a < b) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn GCD(b, a % b);\n\t\t}\n\t}", "if (a < b) {\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}", "a < b", "a", "b", "{\n\t\t\tlong temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}", "long temp = a;", "temp", "a", "a = b", "a", "b", "b = temp", "b", "temp", "if (b == 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn GCD(b, a % b);\n\t\t}", "b == 0", "b", "0", "{\n\t\t\treturn a;\n\t\t}", "return a;", "a", "{\n\t\t\treturn GCD(b, a % b);\n\t\t}", "return GCD(b, a % b);", "GCD(b, a % b)", "GCD", "b", "a % b", "a", "b", "long a", "a", "long b", "b", "static long LCM(long a, long b) {\n\t\treturn a * b / GCD(a, b);\n\t}", "LCM", "{\n\t\treturn a * b / GCD(a, b);\n\t}", "return a * b / GCD(a, b);", "a * b / GCD(a, b)", "a * b", "a", "b", "GCD(a, b)", "GCD", "a", "b", "long a", "a", "long b", "b" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while(in.hasNext()){ long a = in.nextLong(); long b = in.nextLong(); System.out.println(GCD(a, b) + " " + LCM(a, b)); } in.close(); } static long GCD(long a, long b) {//a>b if (a < b) { long temp = a; a = b; b = temp; } if (b == 0) { return a; } else { return GCD(b, a % b); } } static long LCM(long a, long b) { return a * b / GCD(a, b); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 17, 4, 13, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 13, 30, 0, 13, 4, 13, 13, 2, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 89, 5 ], [ 89, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 33, 36 ], [ 27, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 6, 41 ], [ 41, 42 ], [ 89, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 45, 66 ], [ 66, 67 ], [ 43, 68 ], [ 68, 69 ], [ 43, 70 ], [ 70, 71 ], [ 89, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 80, 83 ], [ 72, 84 ], [ 84, 85 ], [ 72, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tdouble a=sc.nextDouble();\n\t\t\tdouble b=sc.nextDouble();\n\t\t\tSystem.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b));\n\t\t}\n\t}\n\tstatic double GCD(double x,double y){\n\t\tdouble g=0;\n\t\tif(y==0){\n\t\t\tg=x;\n\t\t}else{\n\t\t\tg=GCD(y,x%y);\n\t\t}\n\t\treturn g;\n\t}\n\tstatic double LCM(double x,double y){\n\t\treturn x*y/GCD(x,y);\n\t}\n\t\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tdouble a=sc.nextDouble();\n\t\t\tdouble b=sc.nextDouble();\n\t\t\tSystem.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b));\n\t\t}\n\t}\n\tstatic double GCD(double x,double y){\n\t\tdouble g=0;\n\t\tif(y==0){\n\t\t\tg=x;\n\t\t}else{\n\t\t\tg=GCD(y,x%y);\n\t\t}\n\t\treturn g;\n\t}\n\tstatic double LCM(double x,double y){\n\t\treturn x*y/GCD(x,y);\n\t}\n\t\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tdouble a=sc.nextDouble();\n\t\t\tdouble b=sc.nextDouble();\n\t\t\tSystem.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b));\n\t\t}\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tdouble a=sc.nextDouble();\n\t\t\tdouble b=sc.nextDouble();\n\t\t\tSystem.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b));\n\t\t}\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()){\n\t\t\tdouble a=sc.nextDouble();\n\t\t\tdouble b=sc.nextDouble();\n\t\t\tSystem.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b));\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tdouble a=sc.nextDouble();\n\t\t\tdouble b=sc.nextDouble();\n\t\t\tSystem.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b));\n\t\t}", "double a=sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b=sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "System.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b))", "System.out.printf", "System.out", "System", "System.out", "\"%.0f %.0f\\n\"", "GCD(a,b)", "GCD", "a", "b", "LCM(a,b)", "LCM", "a", "b", "String[] args", "args", "static double GCD(double x,double y){\n\t\tdouble g=0;\n\t\tif(y==0){\n\t\t\tg=x;\n\t\t}else{\n\t\t\tg=GCD(y,x%y);\n\t\t}\n\t\treturn g;\n\t}", "GCD", "{\n\t\tdouble g=0;\n\t\tif(y==0){\n\t\t\tg=x;\n\t\t}else{\n\t\t\tg=GCD(y,x%y);\n\t\t}\n\t\treturn g;\n\t}", "double g=0;", "g", "0", "if(y==0){\n\t\t\tg=x;\n\t\t}else{\n\t\t\tg=GCD(y,x%y);\n\t\t}", "y==0", "y", "0", "{\n\t\t\tg=x;\n\t\t}", "g=x", "g", "x", "{\n\t\t\tg=GCD(y,x%y);\n\t\t}", "g=GCD(y,x%y)", "g", "GCD(y,x%y)", "GCD", "y", "x%y", "x", "y", "return g;", "g", "double x", "x", "double y", "y", "static double LCM(double x,double y){\n\t\treturn x*y/GCD(x,y);\n\t}", "LCM", "{\n\t\treturn x*y/GCD(x,y);\n\t}", "return x*y/GCD(x,y);", "x*y/GCD(x,y)", "x*y", "x", "y", "GCD(x,y)", "GCD", "x", "y", "double x", "x", "double y", "y", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tdouble a=sc.nextDouble();\n\t\t\tdouble b=sc.nextDouble();\n\t\t\tSystem.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b));\n\t\t}\n\t}\n\tstatic double GCD(double x,double y){\n\t\tdouble g=0;\n\t\tif(y==0){\n\t\t\tg=x;\n\t\t}else{\n\t\t\tg=GCD(y,x%y);\n\t\t}\n\t\treturn g;\n\t}\n\tstatic double LCM(double x,double y){\n\t\treturn x*y/GCD(x,y);\n\t}\n\t\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tdouble a=sc.nextDouble();\n\t\t\tdouble b=sc.nextDouble();\n\t\t\tSystem.out.printf(\"%.0f %.0f\\n\",GCD(a,b),LCM(a,b));\n\t\t}\n\t}\n\tstatic double GCD(double x,double y){\n\t\tdouble g=0;\n\t\tif(y==0){\n\t\t\tg=x;\n\t\t}else{\n\t\t\tg=GCD(y,x%y);\n\t\t}\n\t\treturn g;\n\t}\n\tstatic double LCM(double x,double y){\n\t\treturn x*y/GCD(x,y);\n\t}\n\t\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNext()){ double a=sc.nextDouble(); double b=sc.nextDouble(); System.out.printf("%.0f %.0f\n",GCD(a,b),LCM(a,b)); } } static double GCD(double x,double y){ double g=0; if(y==0){ g=x; }else{ g=GCD(y,x%y); } return g; } static double LCM(double x,double y){ return x*y/GCD(x,y); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 17, 17, 0, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 18, 13, 17, 0, 18, 13, 17, 4, 18, 13, 18, 13, 17, 41, 13, 4, 13, 41, 13, 2, 2, 18, 13, 17, 18, 13, 17, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 0, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 42, 2, 13, 13, 30, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 130, 11 ], [ 130, 12 ], [ 12, 13 ], [ 130, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 32, 36 ], [ 29, 37 ], [ 37, 38 ], [ 37, 39 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 29, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 29, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 29, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 29, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 82, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 85 ], [ 29, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 14, 91 ], [ 91, 92 ], [ 130, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 95, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 118, 120 ], [ 111, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 95, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static long numlong[];\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\twhile (str != null) {\n\t\t\tString numstr[] = str.split(\" \", 0);\n\t\t\tnumlong = new long[2];\n\t\t\tnumlong[0] = Long.parseLong(numstr[0]);\n\t\t\tnumlong[1] = Long.parseLong(numstr[1]);\n\t\t\tlong gcm = Euclid();\n\t\t\tlong lcm = numlong[0] * numlong[1] / gcm;\n\t\t\tSystem.out.println(gcm + \" \" + lcm);\n\t\t\tstr = br.readLine();\n\t\t}\n\t}\n\n\tpublic static long Euclid() {\n\t\tlong x = numlong[0];\n\t\tlong y = numlong[1];\n\t\twhile (x != y) {\n\t\t\tif (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static long numlong[];\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\twhile (str != null) {\n\t\t\tString numstr[] = str.split(\" \", 0);\n\t\t\tnumlong = new long[2];\n\t\t\tnumlong[0] = Long.parseLong(numstr[0]);\n\t\t\tnumlong[1] = Long.parseLong(numstr[1]);\n\t\t\tlong gcm = Euclid();\n\t\t\tlong lcm = numlong[0] * numlong[1] / gcm;\n\t\t\tSystem.out.println(gcm + \" \" + lcm);\n\t\t\tstr = br.readLine();\n\t\t}\n\t}\n\n\tpublic static long Euclid() {\n\t\tlong x = numlong[0];\n\t\tlong y = numlong[1];\n\t\twhile (x != y) {\n\t\t\tif (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}\n}", "Main", "public static long numlong[];", "numlong", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\twhile (str != null) {\n\t\t\tString numstr[] = str.split(\" \", 0);\n\t\t\tnumlong = new long[2];\n\t\t\tnumlong[0] = Long.parseLong(numstr[0]);\n\t\t\tnumlong[1] = Long.parseLong(numstr[1]);\n\t\t\tlong gcm = Euclid();\n\t\t\tlong lcm = numlong[0] * numlong[1] / gcm;\n\t\t\tSystem.out.println(gcm + \" \" + lcm);\n\t\t\tstr = br.readLine();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\twhile (str != null) {\n\t\t\tString numstr[] = str.split(\" \", 0);\n\t\t\tnumlong = new long[2];\n\t\t\tnumlong[0] = Long.parseLong(numstr[0]);\n\t\t\tnumlong[1] = Long.parseLong(numstr[1]);\n\t\t\tlong gcm = Euclid();\n\t\t\tlong lcm = numlong[0] * numlong[1] / gcm;\n\t\t\tSystem.out.println(gcm + \" \" + lcm);\n\t\t\tstr = br.readLine();\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "while (str != null) {\n\t\t\tString numstr[] = str.split(\" \", 0);\n\t\t\tnumlong = new long[2];\n\t\t\tnumlong[0] = Long.parseLong(numstr[0]);\n\t\t\tnumlong[1] = Long.parseLong(numstr[1]);\n\t\t\tlong gcm = Euclid();\n\t\t\tlong lcm = numlong[0] * numlong[1] / gcm;\n\t\t\tSystem.out.println(gcm + \" \" + lcm);\n\t\t\tstr = br.readLine();\n\t\t}", "str != null", "str", "null", "{\n\t\t\tString numstr[] = str.split(\" \", 0);\n\t\t\tnumlong = new long[2];\n\t\t\tnumlong[0] = Long.parseLong(numstr[0]);\n\t\t\tnumlong[1] = Long.parseLong(numstr[1]);\n\t\t\tlong gcm = Euclid();\n\t\t\tlong lcm = numlong[0] * numlong[1] / gcm;\n\t\t\tSystem.out.println(gcm + \" \" + lcm);\n\t\t\tstr = br.readLine();\n\t\t}", "String numstr[] = str.split(\" \", 0);", "numstr", "str.split(\" \", 0)", "str.split", "str", "\" \"", "0", "numlong = new long[2]", "numlong", "new long[2]", "2", "numlong[0] = Long.parseLong(numstr[0])", "numlong[0]", "numlong", "0", "Long.parseLong(numstr[0])", "Long.parseLong", "Long", "numstr[0]", "numstr", "0", "numlong[1] = Long.parseLong(numstr[1])", "numlong[1]", "numlong", "1", "Long.parseLong(numstr[1])", "Long.parseLong", "Long", "numstr[1]", "numstr", "1", "long gcm = Euclid();", "gcm", "Euclid()", "Euclid", "long lcm = numlong[0] * numlong[1] / gcm;", "lcm", "numlong[0] * numlong[1] / gcm", "numlong[0] * numlong[1]", "numlong[0]", "numlong", "0", "numlong[1]", "numlong", "1", "gcm", "System.out.println(gcm + \" \" + lcm)", "System.out.println", "System.out", "System", "System.out", "gcm + \" \" + lcm", "gcm + \" \" + lcm", "gcm", "\" \"", "lcm", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "String[] args", "args", "public static long Euclid() {\n\t\tlong x = numlong[0];\n\t\tlong y = numlong[1];\n\t\twhile (x != y) {\n\t\t\tif (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}", "Euclid", "{\n\t\tlong x = numlong[0];\n\t\tlong y = numlong[1];\n\t\twhile (x != y) {\n\t\t\tif (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}", "long x = numlong[0];", "x", "numlong[0]", "numlong", "0", "long y = numlong[1];", "y", "numlong[1]", "numlong", "1", "while (x != y) {\n\t\t\tif (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}\n\t\t}", "x != y", "x", "y", "{\n\t\t\tif (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}\n\t\t}", "if (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}", "x < y", "x", "y", "{\n\t\t\t\ty = y - x;\n\t\t\t}", "y = y - x", "y", "y - x", "y", "x", "{\n\t\t\t\tx = x - y;\n\t\t\t}", "x = x - y", "x", "x - y", "x", "y", "return x;", "x", "public class Main {\n\tpublic static long numlong[];\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\twhile (str != null) {\n\t\t\tString numstr[] = str.split(\" \", 0);\n\t\t\tnumlong = new long[2];\n\t\t\tnumlong[0] = Long.parseLong(numstr[0]);\n\t\t\tnumlong[1] = Long.parseLong(numstr[1]);\n\t\t\tlong gcm = Euclid();\n\t\t\tlong lcm = numlong[0] * numlong[1] / gcm;\n\t\t\tSystem.out.println(gcm + \" \" + lcm);\n\t\t\tstr = br.readLine();\n\t\t}\n\t}\n\n\tpublic static long Euclid() {\n\t\tlong x = numlong[0];\n\t\tlong y = numlong[1];\n\t\twhile (x != y) {\n\t\t\tif (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}\n}", "public class Main {\n\tpublic static long numlong[];\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\twhile (str != null) {\n\t\t\tString numstr[] = str.split(\" \", 0);\n\t\t\tnumlong = new long[2];\n\t\t\tnumlong[0] = Long.parseLong(numstr[0]);\n\t\t\tnumlong[1] = Long.parseLong(numstr[1]);\n\t\t\tlong gcm = Euclid();\n\t\t\tlong lcm = numlong[0] * numlong[1] / gcm;\n\t\t\tSystem.out.println(gcm + \" \" + lcm);\n\t\t\tstr = br.readLine();\n\t\t}\n\t}\n\n\tpublic static long Euclid() {\n\t\tlong x = numlong[0];\n\t\tlong y = numlong[1];\n\t\twhile (x != y) {\n\t\t\tif (x < y) {\n\t\t\t\ty = y - x;\n\t\t\t} else {\n\t\t\t\tx = x - y;\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static long numlong[]; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); while (str != null) { String numstr[] = str.split(" ", 0); numlong = new long[2]; numlong[0] = Long.parseLong(numstr[0]); numlong[1] = Long.parseLong(numstr[1]); long gcm = Euclid(); long lcm = numlong[0] * numlong[1] / gcm; System.out.println(gcm + " " + lcm); str = br.readLine(); } } public static long Euclid() { long x = numlong[0]; long y = numlong[1]; while (x != y) { if (x < y) { y = y - x; } else { x = x - y; } } return x; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 41, 13, 17, 41, 13, 13, 42, 2, 13, 17, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 30, 40, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 127, 11 ], [ 127, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 20, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 43, 45 ], [ 20, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 20, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 58, 65 ], [ 65, 66 ], [ 65, 67 ], [ 20, 68 ], [ 68, 69 ], [ 68, 70 ], [ 20, 71 ], [ 71, 72 ], [ 71, 73 ], [ 20, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 79, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 91, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 101, 103 ], [ 79, 104 ], [ 104, 105 ], [ 105, 106 ], [ 20, 107 ], [ 107, 108 ], [ 107, 109 ], [ 110, 110 ], [ 110, 111 ], [ 110, 112 ], [ 110, 113 ], [ 20, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 120, 120 ], [ 120, 121 ], [ 120, 122 ], [ 120, 123 ], [ 12, 124 ], [ 124, 125 ], [ 0, 126 ], [ 126, 127 ], [ 126, 128 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString tmp = br.readLine();\n\t\t\t\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] tmpArray = tmp.split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\t\n\t\t\t//??????a???b??\\?????????????????????????????????\n\t\t\tif(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}\n\t\t\t//?????§??¬?´???°????±???????\n\t\t\tint GCD = 1;\n\t\t\t\n\t\t\tint j = b;\n\t\t\twhile(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint LCM = GCD * a * b;\n\t\t\tSystem.out.println(GCD + \" \"+ LCM);\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString tmp = br.readLine();\n\t\t\t\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] tmpArray = tmp.split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\t\n\t\t\t//??????a???b??\\?????????????????????????????????\n\t\t\tif(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}\n\t\t\t//?????§??¬?´???°????±???????\n\t\t\tint GCD = 1;\n\t\t\t\n\t\t\tint j = b;\n\t\t\twhile(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint LCM = GCD * a * b;\n\t\t\tSystem.out.println(GCD + \" \"+ LCM);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString tmp = br.readLine();\n\t\t\t\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] tmpArray = tmp.split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\t\n\t\t\t//??????a???b??\\?????????????????????????????????\n\t\t\tif(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}\n\t\t\t//?????§??¬?´???°????±???????\n\t\t\tint GCD = 1;\n\t\t\t\n\t\t\tint j = b;\n\t\t\twhile(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint LCM = GCD * a * b;\n\t\t\tSystem.out.println(GCD + \" \"+ LCM);\n\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString tmp = br.readLine();\n\t\t\t\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] tmpArray = tmp.split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\t\n\t\t\t//??????a???b??\\?????????????????????????????????\n\t\t\tif(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}\n\t\t\t//?????§??¬?´???°????±???????\n\t\t\tint GCD = 1;\n\t\t\t\n\t\t\tint j = b;\n\t\t\twhile(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint LCM = GCD * a * b;\n\t\t\tSystem.out.println(GCD + \" \"+ LCM);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString tmp = br.readLine();\n\t\t\t\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] tmpArray = tmp.split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\t\n\t\t\t//??????a???b??\\?????????????????????????????????\n\t\t\tif(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}\n\t\t\t//?????§??¬?´???°????±???????\n\t\t\tint GCD = 1;\n\t\t\t\n\t\t\tint j = b;\n\t\t\twhile(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint LCM = GCD * a * b;\n\t\t\tSystem.out.println(GCD + \" \"+ LCM);\n\t\t}", "true", "{\n\t\t\tString tmp = br.readLine();\n\t\t\t\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] tmpArray = tmp.split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\t\n\t\t\t//??????a???b??\\?????????????????????????????????\n\t\t\tif(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}\n\t\t\t//?????§??¬?´???°????±???????\n\t\t\tint GCD = 1;\n\t\t\t\n\t\t\tint j = b;\n\t\t\twhile(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint LCM = GCD * a * b;\n\t\t\tSystem.out.println(GCD + \" \"+ LCM);\n\t\t}", "String tmp = br.readLine();", "tmp", "br.readLine()", "br.readLine", "br", "if(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}", "tmp == null", "tmp", "null", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] tmpArray = tmp.split(\" \");", "tmpArray", "tmp.split(\" \")", "tmp.split", "tmp", "\" \"", "int a = Integer.parseInt(tmpArray[0]);", "a", "Integer.parseInt(tmpArray[0])", "Integer.parseInt", "Integer", "tmpArray[0]", "tmpArray", "0", "int b = Integer.parseInt(tmpArray[1]);", "b", "Integer.parseInt(tmpArray[1])", "Integer.parseInt", "Integer", "tmpArray[1]", "tmpArray", "1", "if(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}", "b > a", "b", "a", "{\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}", "int tmpInt = b;", "tmpInt", "b", "b = a", "b", "a", "a = tmpInt", "a", "tmpInt", "int GCD = 1;", "GCD", "1", "int j = b;", "j", "b", "while(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}", "j > 1", "j", "1", "{\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}", "if(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}", "a%j == 0 && b%j == 0", "a%j == 0", "a%j", "a", "j", "0", "b%j == 0", "b%j", "b", "j", "0", "{\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}", "GCD *= j", "GCD", "j", "a/=j", "a", "j", "b/=j", "b", "j", "j = b", "j", "b", "{\n\t\t\t\t\tj--;\n\t\t\t\t}", "j--", "j", "int LCM = GCD * a * b;", "LCM", "GCD * a * b", "GCD * a * b", "GCD", "a", "b", "System.out.println(GCD + \" \"+ LCM)", "System.out.println", "System.out", "System", "System.out", "GCD + \" \"+ LCM", "GCD + \" \"+ LCM", "GCD", "\" \"", "LCM", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString tmp = br.readLine();\n\t\t\t\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] tmpArray = tmp.split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\t\n\t\t\t//??????a???b??\\?????????????????????????????????\n\t\t\tif(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}\n\t\t\t//?????§??¬?´???°????±???????\n\t\t\tint GCD = 1;\n\t\t\t\n\t\t\tint j = b;\n\t\t\twhile(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint LCM = GCD * a * b;\n\t\t\tSystem.out.println(GCD + \" \"+ LCM);\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile(true){\n\t\t\tString tmp = br.readLine();\n\t\t\t\n\t\t\tif(tmp == null){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString[] tmpArray = tmp.split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\t\n\t\t\t//??????a???b??\\?????????????????????????????????\n\t\t\tif(b > a){\n\t\t\t\tint tmpInt = b;\n\t\t\t\tb = a;\n\t\t\t\ta = tmpInt;\n\t\t\t}\n\t\t\t//?????§??¬?´???°????±???????\n\t\t\tint GCD = 1;\n\t\t\t\n\t\t\tint j = b;\n\t\t\twhile(j > 1){\n\t\t\t\tif(a%j == 0 && b%j == 0){\n\t\t\t\t\tGCD *= j;\n\t\t\t\t\ta/=j;\n\t\t\t\t\tb/=j;\n\t\t\t\t\tj = b;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint LCM = GCD * a * b;\n\t\t\tSystem.out.println(GCD + \" \"+ LCM);\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ String tmp = br.readLine(); if(tmp == null){ break; } String[] tmpArray = tmp.split(" "); int a = Integer.parseInt(tmpArray[0]); int b = Integer.parseInt(tmpArray[1]); //??????a???b??\????????????????????????????????? if(b > a){ int tmpInt = b; b = a; a = tmpInt; } //?????§??¬?´???°????±??????? int GCD = 1; int j = b; while(j > 1){ if(a%j == 0 && b%j == 0){ GCD *= j; a/=j; b/=j; j = b; } else { j--; } } int LCM = GCD * a * b; System.out.println(GCD + " "+ LCM); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 38, 5, 13, 30, 4, 18, 13, 17, 30, 11, 1, 2, 13, 17, 30, 30, 0, 13, 4, 18, 13, 0, 13, 20, 0, 13, 4, 18, 13, 4, 18, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 42, 17, 30, 14, 2, 13, 17, 30, 0, 13, 13, 3, 0, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 11, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 11, 32 ], [ 32, 33 ], [ 11, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 49, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 49, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 49, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 82, 89 ], [ 89, 90 ], [ 89, 91 ], [ 49, 92 ], [ 92, 93 ], [ 92, 94 ], [ 49, 95 ], [ 95, 96 ], [ 95, 97 ], [ 49, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 100, 110 ], [ 110, 111 ], [ 110, 112 ], [ 100, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 100, 118 ], [ 118, 119 ], [ 118, 120 ], [ 49, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 49, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 134, 134 ], [ 134, 135 ], [ 134, 136 ], [ 134, 137 ], [ 9, 138 ], [ 138, 139 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=\" \";\n\t\tStringTokenizer st;\n\t\tint a,b,gcd,lcm,t,m,n;\n\t\ttry {\n\t\t\tfor(;s!=null;){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=\" \";\n\t\tStringTokenizer st;\n\t\tint a,b,gcd,lcm,t,m,n;\n\t\ttry {\n\t\t\tfor(;s!=null;){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=\" \";\n\t\tStringTokenizer st;\n\t\tint a,b,gcd,lcm,t,m,n;\n\t\ttry {\n\t\t\tfor(;s!=null;){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=\" \";\n\t\tStringTokenizer st;\n\t\tint a,b,gcd,lcm,t,m,n;\n\t\ttry {\n\t\t\tfor(;s!=null;){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "BufferedReader r = new BufferedReader(new InputStreamReader(System.in));", "r", "new BufferedReader(new InputStreamReader(System.in))", "String s=\" \";", "s", "\" \"", "StringTokenizer st;", "st", "int a", "a", "b", "b", "gcd", "gcd", "lcm", "lcm", "t", "t", "m", "m", "n;", "n", "try {\n\t\t\tfor(;s!=null;){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}\n\t\t} catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}", "catch (Exception err) {\n\t\t\tSystem.exit(0);\n\t\t}", "Exception err", "{\n\t\t\tSystem.exit(0);\n\t\t}", "System.exit(0)", "System.exit", "System", "0", "{\n\t\t\tfor(;s!=null;){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}\n\t\t}", "for(;s!=null;){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}", ";", "s!=null", "s", "null", "{\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}", "{\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}\n\t\t\t\tm=a;n=b;\n\t\t\t\twhile(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}\n\t\t\t\tlcm=(a/gcd)*b;\n\t\t\t\tSystem.out.println(gcd+\" \"+lcm);\n\t\t\t}", "s = r.readLine()", "s", "r.readLine()", "r.readLine", "r", "st = new StringTokenizer(s,\" \")", "st", "new StringTokenizer(s,\" \")", "a = Integer.parseInt(st.nextToken().toString())", "a", "Integer.parseInt(st.nextToken().toString())", "Integer.parseInt", "Integer", "st.nextToken().toString()", "st.nextToken().toString", "st.nextToken()", "st.nextToken", "st", "b = Integer.parseInt(st.nextToken().toString())", "b", "Integer.parseInt(st.nextToken().toString())", "Integer.parseInt", "Integer", "st.nextToken().toString()", "st.nextToken().toString", "st.nextToken()", "st.nextToken", "st", "if(b>a){\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}", "b>a", "b", "a", "{\n\t\t\t\t\tt=b; b=a; a=t;\n\t\t\t\t}", "t=b", "t", "b", "b=a", "b", "a", "a=t", "a", "t", "m=a", "m", "a", "n=b", "n", "b", "while(true){\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}", "true", "{\n\t\t\t\t\tif(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tt=n;\n\t\t\t\t\tn=m%n;\n\t\t\t\t\tm=t;\n\t\t\t\t}", "if(n==0){\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "n==0", "n", "0", "{\n\t\t\t\t\t\tgcd=m;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "gcd=m", "gcd", "m", "break;", "t=n", "t", "n", "n=m%n", "n", "m%n", "m", "n", "m=t", "m", "t", "lcm=(a/gcd)*b", "lcm", "(a/gcd)*b", "(a/gcd)", "a", "gcd", "b", "System.out.println(gcd+\" \"+lcm)", "System.out.println", "System.out", "System", "System.out", "gcd+\" \"+lcm", "gcd+\" \"+lcm", "gcd", "\" \"", "lcm", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String s=" "; StringTokenizer st; int a,b,gcd,lcm,t,m,n; try { for(;s!=null;){ s = r.readLine(); st = new StringTokenizer(s," "); a = Integer.parseInt(st.nextToken().toString()); b = Integer.parseInt(st.nextToken().toString()); if(b>a){ t=b; b=a; a=t; } m=a;n=b; while(true){ if(n==0){ gcd=m; break; } t=n; n=m%n; m=t; } lcm=(a/gcd)*b; System.out.println(gcd+" "+lcm); } } catch (Exception err) { System.exit(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 2, 13, 13, 14, 2, 13, 17, 29, 13, 29, 4, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 13, 13, 41, 13, 17, 42, 17, 30, 14, 2, 2, 2, 13, 13, 13, 17, 3, 40, 13, 29, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 141, 5 ], [ 141, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 23, 27 ], [ 21, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 28, 32 ], [ 6, 33 ], [ 33, 34 ], [ 6, 35 ], [ 35, 36 ], [ 141, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 42, 46 ], [ 39, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 49, 53 ], [ 39, 54 ], [ 54, 55 ], [ 54, 56 ], [ 39, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 60, 68 ], [ 59, 69 ], [ 69, 70 ], [ 39, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 37, 75 ], [ 75, 76 ], [ 37, 77 ], [ 77, 78 ], [ 141, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 81, 87 ], [ 87, 88 ], [ 81, 89 ], [ 89, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 95, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 95, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 110, 117 ], [ 117, 118 ], [ 117, 119 ], [ 95, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 127, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 128, 131 ], [ 127, 132 ], [ 126, 133 ], [ 133, 134 ], [ 133, 135 ], [ 133, 136 ], [ 127, 137 ], [ 79, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\t\n\tprivate static long commonDivisor(long a, long b){\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\telse return commonDivisor(Math.max(r, b), Math.min(r, b));\n\t}\n\n\tprivate static long commonMultiple(long a, long b){\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tlong i = 1;\n\t\twhile(true){\n\t\t\tif(max*i%min==0)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\treturn max*i;\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a, b, c;\n\t\twhile(scan.hasNext()){\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tif(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}\n\t\t\tSystem.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t\n\tprivate static long commonDivisor(long a, long b){\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\telse return commonDivisor(Math.max(r, b), Math.min(r, b));\n\t}\n\n\tprivate static long commonMultiple(long a, long b){\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tlong i = 1;\n\t\twhile(true){\n\t\t\tif(max*i%min==0)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\treturn max*i;\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a, b, c;\n\t\twhile(scan.hasNext()){\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tif(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}\n\t\t\tSystem.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\");\n\t\t}\n\t}\n}", "Main", "private static long commonDivisor(long a, long b){\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\telse return commonDivisor(Math.max(r, b), Math.min(r, b));\n\t}", "commonDivisor", "{\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\telse return commonDivisor(Math.max(r, b), Math.min(r, b));\n\t}", "long r = a%b;", "r", "a%b", "a", "b", "if(r==0) return b;\n\t\telse return commonDivisor(Math.max(r, b), Math.min(r, b));", "r==0", "r", "0", "return b;", "b", "return commonDivisor(Math.max(r, b), Math.min(r, b));", "commonDivisor(Math.max(r, b), Math.min(r, b))", "commonDivisor", "Math.max(r, b)", "Math.max", "Math", "r", "b", "Math.min(r, b)", "Math.min", "Math", "r", "b", "long a", "a", "long b", "b", "private static long commonMultiple(long a, long b){\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tlong i = 1;\n\t\twhile(true){\n\t\t\tif(max*i%min==0)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\treturn max*i;\n\t}", "commonMultiple", "{\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tlong i = 1;\n\t\twhile(true){\n\t\t\tif(max*i%min==0)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\treturn max*i;\n\t}", "long max = Math.max(a, b);", "max", "Math.max(a, b)", "Math.max", "Math", "a", "b", "long min = Math.min(a, b);", "min", "Math.min(a, b)", "Math.min", "Math", "a", "b", "long i = 1;", "i", "1", "while(true){\n\t\t\tif(max*i%min==0)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}", "true", "{\n\t\t\tif(max*i%min==0)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}", "if(max*i%min==0)\n\t\t\t\tbreak;", "max*i%min==0", "max*i%min", "max*i", "max", "i", "min", "0", "break;", "i++", "i", "return max*i;", "max*i", "max", "i", "long a", "a", "long b", "b", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a, b, c;\n\t\twhile(scan.hasNext()){\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tif(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}\n\t\t\tSystem.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\");\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a, b, c;\n\t\twhile(scan.hasNext()){\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tif(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}\n\t\t\tSystem.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "long a", "a", "b", "b", "c;", "c", "while(scan.hasNext()){\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tif(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}\n\t\t\tSystem.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\");\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tif(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}\n\t\t\tSystem.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\");\n\t\t}", "a = scan.nextInt()", "a", "scan.nextInt()", "scan.nextInt", "scan", "b = scan.nextInt()", "b", "scan.nextInt()", "scan.nextInt", "scan", "if(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}", "b>a", "b", "a", "{\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}", "c = a", "c", "a", "a = b", "a", "b", "b = c", "b", "c", "System.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\")", "System.out.print", "System.out", "System", "System.out", "commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\"", "commonMultiple(a,b)", "commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\"", "commonDivisor(a,b)", "commonDivisor", "a", "b", "\" \"", "commonMultiple(a,b)", "commonMultiple", "a", "b", "\"\\n\"", "String[] args", "args", "public class Main {\n\t\n\tprivate static long commonDivisor(long a, long b){\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\telse return commonDivisor(Math.max(r, b), Math.min(r, b));\n\t}\n\n\tprivate static long commonMultiple(long a, long b){\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tlong i = 1;\n\t\twhile(true){\n\t\t\tif(max*i%min==0)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\treturn max*i;\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a, b, c;\n\t\twhile(scan.hasNext()){\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tif(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}\n\t\t\tSystem.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\");\n\t\t}\n\t}\n}", "public class Main {\n\t\n\tprivate static long commonDivisor(long a, long b){\n\t\tlong r = a%b;\n\t\tif(r==0) return b;\n\t\telse return commonDivisor(Math.max(r, b), Math.min(r, b));\n\t}\n\n\tprivate static long commonMultiple(long a, long b){\n\t\tlong max = Math.max(a, b);\n\t\tlong min = Math.min(a, b);\n\t\tlong i = 1;\n\t\twhile(true){\n\t\t\tif(max*i%min==0)\n\t\t\t\tbreak;\n\t\t\ti++;\n\t\t}\n\t\treturn max*i;\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tlong a, b, c;\n\t\twhile(scan.hasNext()){\n\t\t\ta = scan.nextInt();\n\t\t\tb = scan.nextInt();\n\t\t\tif(b>a){\n\t\t\t\tc = a;\n\t\t\t\ta = b;\n\t\t\t\tb = c;\n\t\t\t}\n\t\t\tSystem.out.print(commonDivisor(a,b)+\" \"+commonMultiple(a,b)+\"\\n\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { private static long commonDivisor(long a, long b){ long r = a%b; if(r==0) return b; else return commonDivisor(Math.max(r, b), Math.min(r, b)); } private static long commonMultiple(long a, long b){ long max = Math.max(a, b); long min = Math.min(a, b); long i = 1; while(true){ if(max*i%min==0) break; i++; } return max*i; } public static void main(String[] args) { Scanner scan = new Scanner(System.in); long a, b, c; while(scan.hasNext()){ a = scan.nextInt(); b = scan.nextInt(); if(b>a){ c = a; a = b; b = c; } System.out.print(commonDivisor(a,b)+" "+commonMultiple(a,b)+"\n"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 42, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 41, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 98, 5 ], [ 98, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 19, 20 ], [ 16, 21 ], [ 21, 22 ], [ 16, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 16, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 16, 37 ], [ 37, 38 ], [ 37, 39 ], [ 16, 40 ], [ 40, 41 ], [ 40, 42 ], [ 16, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 47, 54 ], [ 54, 55 ], [ 54, 56 ], [ 16, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 63, 69 ], [ 69, 70 ], [ 69, 71 ], [ 63, 72 ], [ 72, 73 ], [ 72, 74 ], [ 16, 75 ], [ 75, 76 ], [ 75, 77 ], [ 16, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 16, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 91, 91 ], [ 91, 92 ], [ 91, 93 ], [ 91, 94 ], [ 6, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint a,b,c,d,amari;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = a;\n\t\t\td = b;\n\t\t\tif(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}\t\n\t\t\twhile(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}\n\t\t\tint saidaikouyakusuu = b;\n\t\t\n\t\t\tint saisyoukoubaisuu = c/saidaikouyakusuu*d;\n\n\t\t\tSystem.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu);\n\t\t}\n\t}\n}\n", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint a,b,c,d,amari;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = a;\n\t\t\td = b;\n\t\t\tif(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}\t\n\t\t\twhile(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}\n\t\t\tint saidaikouyakusuu = b;\n\t\t\n\t\t\tint saisyoukoubaisuu = c/saidaikouyakusuu*d;\n\n\t\t\tSystem.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint a,b,c,d,amari;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = a;\n\t\t\td = b;\n\t\t\tif(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}\t\n\t\t\twhile(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}\n\t\t\tint saidaikouyakusuu = b;\n\t\t\n\t\t\tint saisyoukoubaisuu = c/saidaikouyakusuu*d;\n\n\t\t\tSystem.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint a,b,c,d,amari;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = a;\n\t\t\td = b;\n\t\t\tif(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}\t\n\t\t\twhile(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}\n\t\t\tint saidaikouyakusuu = b;\n\t\t\n\t\t\tint saisyoukoubaisuu = c/saidaikouyakusuu*d;\n\n\t\t\tSystem.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()){\n\t\t\tint a,b,c,d,amari;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = a;\n\t\t\td = b;\n\t\t\tif(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}\t\n\t\t\twhile(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}\n\t\t\tint saidaikouyakusuu = b;\n\t\t\n\t\t\tint saisyoukoubaisuu = c/saidaikouyakusuu*d;\n\n\t\t\tSystem.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tint a,b,c,d,amari;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = a;\n\t\t\td = b;\n\t\t\tif(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}\t\n\t\t\twhile(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}\n\t\t\tint saidaikouyakusuu = b;\n\t\t\n\t\t\tint saisyoukoubaisuu = c/saidaikouyakusuu*d;\n\n\t\t\tSystem.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu);\n\t\t}", "int a", "a", "b", "b", "c", "c", "d", "d", "amari;", "amari", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "c = a", "c", "a", "d = b", "d", "b", "if(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}", "a<b", "a", "b", "{\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}", "int x = a;", "x", "a", "a=b", "a", "b", "b=x", "b", "x", "while(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}", "a%b != 0", "a%b", "a", "b", "0", "{\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}", "amari = a % b", "amari", "a % b", "a", "b", "a = b", "a", "b", "b = amari", "b", "amari", "int saidaikouyakusuu = b;", "saidaikouyakusuu", "b", "int saisyoukoubaisuu = c/saidaikouyakusuu*d;", "saisyoukoubaisuu", "c/saidaikouyakusuu*d", "c/saidaikouyakusuu", "c", "saidaikouyakusuu", "d", "System.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu)", "System.out.println", "System.out", "System", "System.out", "saidaikouyakusuu+\" \"+saisyoukoubaisuu", "saidaikouyakusuu+\" \"+saisyoukoubaisuu", "saidaikouyakusuu", "\" \"", "saisyoukoubaisuu", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint a,b,c,d,amari;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = a;\n\t\t\td = b;\n\t\t\tif(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}\t\n\t\t\twhile(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}\n\t\t\tint saidaikouyakusuu = b;\n\t\t\n\t\t\tint saisyoukoubaisuu = c/saidaikouyakusuu*d;\n\n\t\t\tSystem.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu);\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tint a,b,c,d,amari;\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = a;\n\t\t\td = b;\n\t\t\tif(a<b){\n\t\t\t\tint x = a;\n\t\t\t\ta=b;\n\t\t\t\tb=x;\n\t\t\t}\t\n\t\t\twhile(a%b != 0){\n\t\t\t\tamari = a % b;\n\t\t\t\ta = b;\n\t\t\t\tb = amari;\n\t\t\t}\n\t\t\tint saidaikouyakusuu = b;\n\t\t\n\t\t\tint saisyoukoubaisuu = c/saidaikouyakusuu*d;\n\n\t\t\tSystem.out.println(saidaikouyakusuu+\" \"+saisyoukoubaisuu);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int a,b,c,d,amari; a = sc.nextInt(); b = sc.nextInt(); c = a; d = b; if(a<b){ int x = a; a=b; b=x; } while(a%b != 0){ amari = a % b; a = b; b = amari; } int saidaikouyakusuu = b; int saisyoukoubaisuu = c/saidaikouyakusuu*d; System.out.println(saidaikouyakusuu+" "+saisyoukoubaisuu); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 84, 5 ], [ 84, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 29, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 16, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 46, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 84, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 56, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 53, 71 ], [ 71, 72 ], [ 53, 73 ], [ 73, 74 ], [ 84, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 75, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\n\t\t\tlong c = gcd(a, b);\n\n\t\t\tlong d = a * b / c;\n\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t\tsc.close();\n\t}\n\n\t// 最大公約数\n\t// ユークリッドの互除法\n\tpublic long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn gcd(b, a % b);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\n\t\t\tlong c = gcd(a, b);\n\n\t\t\tlong d = a * b / c;\n\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t\tsc.close();\n\t}\n\n\t// 最大公約数\n\t// ユークリッドの互除法\n\tpublic long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn gcd(b, a % b);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n}", "Main", "public void run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\n\t\t\tlong c = gcd(a, b);\n\n\t\t\tlong d = a * b / c;\n\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t\tsc.close();\n\t}", "run", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\n\t\t\tlong c = gcd(a, b);\n\n\t\t\tlong d = a * b / c;\n\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\n\t\t\tlong c = gcd(a, b);\n\n\t\t\tlong d = a * b / c;\n\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\n\t\t\tlong c = gcd(a, b);\n\n\t\t\tlong d = a * b / c;\n\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}", "long a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "long b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "long c = gcd(a, b);", "c", "gcd(a, b)", "gcd", "a", "b", "long d = a * b / c;", "d", "a * b / c", "a * b", "a", "b", "c", "System.out.println(c + \" \" + d)", "System.out.println", "System.out", "System", "System.out", "c + \" \" + d", "c + \" \" + d", "c", "\" \"", "d", "sc.close()", "sc.close", "sc", "// 最大公約数\n\t// ユークリッドの互除法\n\tpublic long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn gcd(b, a % b);\n\t\t}\n\t}", "gcd", "{\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn gcd(b, a % b);\n\t\t}\n\t}", "if (b == 0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn gcd(b, a % b);\n\t\t}", "b == 0", "b", "0", "{\n\t\t\treturn a;\n\t\t}", "return a;", "a", "{\n\t\t\treturn gcd(b, a % b);\n\t\t}", "return gcd(b, a % b);", "gcd(b, a % b)", "gcd", "b", "a % b", "a", "b", "long a", "a", "long b", "b", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public class Main {\n\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\n\t\t\tlong c = gcd(a, b);\n\n\t\t\tlong d = a * b / c;\n\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t\tsc.close();\n\t}\n\n\t// 最大公約数\n\t// ユークリッドの互除法\n\tpublic long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn gcd(b, a % b);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n}", "public class Main {\n\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\n\t\t\tlong c = gcd(a, b);\n\n\t\t\tlong d = a * b / c;\n\n\t\t\tSystem.out.println(c + \" \" + d);\n\t\t}\n\t\tsc.close();\n\t}\n\n\t// 最大公約数\n\t// ユークリッドの互除法\n\tpublic long gcd(long a, long b) {\n\t\tif (b == 0) {\n\t\t\treturn a;\n\t\t}\n\t\telse {\n\t\t\treturn gcd(b, a % b);\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public void run() { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { long a = sc.nextInt(); long b = sc.nextInt(); long c = gcd(a, b); long d = a * b / c; System.out.println(c + " " + d); } sc.close(); } // 最大公約数 // ユークリッドの互除法 public long gcd(long a, long b) { if (b == 0) { return a; } else { return gcd(b, a % b); } } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 13, 41, 13, 13, 42, 2, 13, 17, 30, 41, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 97, 8 ], [ 97, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 15, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 37, 41 ], [ 34, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 34, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 34, 58 ], [ 58, 59 ], [ 58, 60 ], [ 34, 61 ], [ 61, 62 ], [ 61, 63 ], [ 34, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 68, 77 ], [ 77, 78 ], [ 77, 79 ], [ 34, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 86, 86 ], [ 86, 87 ], [ 86, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 9, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st;\n while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }\n }catch(Exception ex){\n System.exit(0);\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st;\n while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }\n }catch(Exception ex){\n System.exit(0);\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st;\n while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }\n }catch(Exception ex){\n System.exit(0);\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st;\n while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }\n }catch(Exception ex){\n System.exit(0);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try{\n String st;\n while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }\n }catch(Exception ex){\n System.exit(0);\n }", "catch(Exception ex){\n System.exit(0);\n }", "Exception ex", "{\n System.exit(0);\n }", "System.exit(0)", "System.exit", "System", "0", "{\n String st;\n while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }\n }", "String st;", "st", "while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }", "(st= br.readLine())!=null", "(st= br.readLine())", "st", "br.readLine()", "br.readLine", "br", "null", "{\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }", "String[] s = st.split(\" \",0);", "s", "st.split(\" \",0)", "st.split", "st", "\" \"", "0", "int a = Integer.parseInt(s[0]);", "a", "Integer.parseInt(s[0])", "Integer.parseInt", "Integer", "s[0]", "s", "0", "int b = Integer.parseInt(s[1]);", "b", "Integer.parseInt(s[1])", "Integer.parseInt", "Integer", "s[1]", "s", "1", "int c = a;", "c", "a", "int d = b;", "d", "b", "while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }", "b!=0", "b", "0", "{\n int k = b;\n b = a%b;\n a = k;\n }", "int k = b;", "k", "b", "b = a%b", "b", "a%b", "a", "b", "a = k", "a", "k", "System.out.println(a+\" \"+(c/a)*d)", "System.out.println", "System.out", "System", "System.out", "a+\" \"+(c/a)*d", "a+\" \"+(c/a)*d", "a", "\" \"", "(c/a)*d", "(c/a)", "c", "a", "d", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st;\n while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }\n }catch(Exception ex){\n System.exit(0);\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n String st;\n while((st= br.readLine())!=null){\n String[] s = st.split(\" \",0);\n int a = Integer.parseInt(s[0]);\n int b = Integer.parseInt(s[1]);\n int c = a;\n int d = b;\n while(b!=0){\n int k = b;\n b = a%b;\n a = k;\n }\n System.out.println(a+\" \"+(c/a)*d);\n \n }\n }catch(Exception ex){\n System.exit(0);\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ String st; while((st= br.readLine())!=null){ String[] s = st.split(" ",0); int a = Integer.parseInt(s[0]); int b = Integer.parseInt(s[1]); int c = a; int d = b; while(b!=0){ int k = b; b = a%b; a = k; } System.out.println(a+" "+(c/a)*d); } }catch(Exception ex){ System.exit(0); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 14, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 13, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 3, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 2, 13, 13, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 169, 5 ], [ 169, 6 ], [ 6, 7 ], [ 6, 8 ], [ 169, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 16, 32 ], [ 32, 33 ], [ 16, 34 ], [ 34, 35 ], [ 16, 36 ], [ 36, 37 ], [ 16, 38 ], [ 38, 39 ], [ 16, 40 ], [ 40, 41 ], [ 16, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 66, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 65, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 77, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 77, 88 ], [ 88, 89 ], [ 88, 90 ], [ 91, 91 ], [ 91, 92 ], [ 91, 93 ], [ 91, 94 ], [ 77, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 101, 101 ], [ 101, 102 ], [ 101, 103 ], [ 101, 104 ], [ 77, 105 ], [ 42, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 107, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 126, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 125, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 140, 142 ], [ 137, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 137, 148 ], [ 148, 149 ], [ 148, 150 ], [ 151, 151 ], [ 151, 152 ], [ 151, 153 ], [ 151, 154 ], [ 137, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 161, 161 ], [ 161, 162 ], [ 161, 163 ], [ 161, 164 ], [ 137, 165 ], [ 9, 166 ], [ 166, 167 ], [ 0, 168 ], [ 168, 169 ], [ 168, 170 ] ]
[ "import java.util.*;\npublic class Main {\n\tstatic final Scanner stdin = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile(stdin.hasNext()){\n\t\t\t\n\t\t\tint a = stdin.nextInt();\n\t\t\tint b = stdin.nextInt();\n \n\t\t\tint comp_val = a - b;\n\t\t\tint num, aval,m,n,ans1;\n\t\t\t\n\t\t\tif(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tstatic final Scanner stdin = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile(stdin.hasNext()){\n\t\t\t\n\t\t\tint a = stdin.nextInt();\n\t\t\tint b = stdin.nextInt();\n \n\t\t\tint comp_val = a - b;\n\t\t\tint num, aval,m,n,ans1;\n\t\t\t\n\t\t\tif(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "static final Scanner stdin = new Scanner(System.in);", "stdin", "new Scanner(System.in)", "public static void main(String[] args) {\n\t\twhile(stdin.hasNext()){\n\t\t\t\n\t\t\tint a = stdin.nextInt();\n\t\t\tint b = stdin.nextInt();\n \n\t\t\tint comp_val = a - b;\n\t\t\tint num, aval,m,n,ans1;\n\t\t\t\n\t\t\tif(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\twhile(stdin.hasNext()){\n\t\t\t\n\t\t\tint a = stdin.nextInt();\n\t\t\tint b = stdin.nextInt();\n \n\t\t\tint comp_val = a - b;\n\t\t\tint num, aval,m,n,ans1;\n\t\t\t\n\t\t\tif(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "while(stdin.hasNext()){\n\t\t\t\n\t\t\tint a = stdin.nextInt();\n\t\t\tint b = stdin.nextInt();\n \n\t\t\tint comp_val = a - b;\n\t\t\tint num, aval,m,n,ans1;\n\t\t\t\n\t\t\tif(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "stdin.hasNext()", "stdin.hasNext", "stdin", "{\n\t\t\t\n\t\t\tint a = stdin.nextInt();\n\t\t\tint b = stdin.nextInt();\n \n\t\t\tint comp_val = a - b;\n\t\t\tint num, aval,m,n,ans1;\n\t\t\t\n\t\t\tif(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int a = stdin.nextInt();", "a", "stdin.nextInt()", "stdin.nextInt", "stdin", "int b = stdin.nextInt();", "b", "stdin.nextInt()", "stdin.nextInt", "stdin", "int comp_val = a - b;", "comp_val", "a - b", "a", "b", "int num", "num", "aval", "aval", "m", "m", "n", "n", "ans1;", "ans1", "if(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "comp_val > 0", "comp_val", "0", "{\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "for(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i <= a", "i", "a", "i++", "i++", "i", "{\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "aval = a - i", "aval", "a - i", "a", "i", "if(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "a%aval==0 && b%aval==0", "a%aval==0", "a%aval", "a", "aval", "0", "b%aval==0", "b%aval", "b", "aval", "0", "{\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "m = a/aval", "m", "a/aval", "a", "aval", "n = b/aval", "n", "b/aval", "b", "aval", "ans1 = m * n * aval", "ans1", "m * n * aval", "m * n * aval", "m", "n", "aval", "System.out.println(aval+\" \"+ans1)", "System.out.println", "System.out", "System", "System.out", "aval+\" \"+ans1", "aval+\" \"+ans1", "aval", "\" \"", "ans1", "break;", "{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "for(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i <= b", "i", "b", "i++", "i++", "i", "{\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "aval = b - i", "aval", "b - i", "b", "i", "if(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "a%aval==0 && b%aval==0", "a%aval==0", "a%aval", "a", "aval", "0", "b%aval==0", "b%aval", "b", "aval", "0", "{\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "m = a/aval", "m", "a/aval", "a", "aval", "n = b/aval", "n", "b/aval", "b", "aval", "ans1 = m * n * aval", "ans1", "m * n * aval", "m * n * aval", "m", "n", "aval", "System.out.println(aval+\" \"+ans1)", "System.out.println", "System.out", "System", "System.out", "aval+\" \"+ans1", "aval+\" \"+ans1", "aval", "\" \"", "ans1", "break;", "String[] args", "args", "public class Main {\n\tstatic final Scanner stdin = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile(stdin.hasNext()){\n\t\t\t\n\t\t\tint a = stdin.nextInt();\n\t\t\tint b = stdin.nextInt();\n \n\t\t\tint comp_val = a - b;\n\t\t\tint num, aval,m,n,ans1;\n\t\t\t\n\t\t\tif(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\tstatic final Scanner stdin = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\twhile(stdin.hasNext()){\n\t\t\t\n\t\t\tint a = stdin.nextInt();\n\t\t\tint b = stdin.nextInt();\n \n\t\t\tint comp_val = a - b;\n\t\t\tint num, aval,m,n,ans1;\n\t\t\t\n\t\t\tif(comp_val > 0){\n\t\t\t\tfor(int i = 0;i <= a;i++){\n\t\t\t\t\taval = a - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tfor(int i = 0;i <= b;i++){\n\t\t\t\t\taval = b - i;\n\t\t\t\t\tif(a%aval==0 && b%aval==0){\n\t\t\t\t\t\tm = a/aval;\n\t\t\t\t\t\tn = b/aval;\n\t\t\t\t\t\tans1 = m * n * aval;\n\t\t\t\t\t\tSystem.out.println(aval+\" \"+ans1);\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { static final Scanner stdin = new Scanner(System.in); public static void main(String[] args) { while(stdin.hasNext()){ int a = stdin.nextInt(); int b = stdin.nextInt(); int comp_val = a - b; int num, aval,m,n,ans1; if(comp_val > 0){ for(int i = 0;i <= a;i++){ aval = a - i; if(a%aval==0 && b%aval==0){ m = a/aval; n = b/aval; ans1 = m * n * aval; System.out.println(aval+" "+ans1); break; } } }else{ for(int i = 0;i <= b;i++){ aval = b - i; if(a%aval==0 && b%aval==0){ m = a/aval; n = b/aval; ans1 = m * n * aval; System.out.println(aval+" "+ans1); break; } } } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 42, 2, 13, 17, 30, 0, 13, 13, 0, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 102, 5 ], [ 102, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 26, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 41, 42 ], [ 41, 43 ], [ 30, 44 ], [ 44, 45 ], [ 44, 46 ], [ 30, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 51, 58 ], [ 58, 59 ], [ 58, 60 ], [ 30, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 30, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 70, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 30, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 30, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 95, 95 ], [ 95, 96 ], [ 95, 97 ], [ 95, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n long a, b, r, tmp,a1,b1,bai;\n while(scan.hasNextLong()){\n\n a = scan.nextInt();\n b = scan.nextInt();\n a1 = a;\n b1 = b;\n \n //?????¶??° a > b ????¢?????????\\??? \n if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }\n \n // ?????????????????????????????? \n r = a % b;\n while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }\n bai = a1 * b1 / b;\n //* ?????§??¬?´???°????????? */\n System.out.println(b + \" \" + bai);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n long a, b, r, tmp,a1,b1,bai;\n while(scan.hasNextLong()){\n\n a = scan.nextInt();\n b = scan.nextInt();\n a1 = a;\n b1 = b;\n \n //?????¶??° a > b ????¢?????????\\??? \n if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }\n \n // ?????????????????????????????? \n r = a % b;\n while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }\n bai = a1 * b1 / b;\n //* ?????§??¬?´???°????????? */\n System.out.println(b + \" \" + bai);\n }\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n long a, b, r, tmp,a1,b1,bai;\n while(scan.hasNextLong()){\n\n a = scan.nextInt();\n b = scan.nextInt();\n a1 = a;\n b1 = b;\n \n //?????¶??° a > b ????¢?????????\\??? \n if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }\n \n // ?????????????????????????????? \n r = a % b;\n while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }\n bai = a1 * b1 / b;\n //* ?????§??¬?´???°????????? */\n System.out.println(b + \" \" + bai);\n }\n }", "main", "{\n\n Scanner scan = new Scanner(System.in);\n \n long a, b, r, tmp,a1,b1,bai;\n while(scan.hasNextLong()){\n\n a = scan.nextInt();\n b = scan.nextInt();\n a1 = a;\n b1 = b;\n \n //?????¶??° a > b ????¢?????????\\??? \n if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }\n \n // ?????????????????????????????? \n r = a % b;\n while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }\n bai = a1 * b1 / b;\n //* ?????§??¬?´???°????????? */\n System.out.println(b + \" \" + bai);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "long a", "a", "b", "b", "r", "r", "tmp", "tmp", "a1", "a1", "b1", "b1", "bai;", "bai", "while(scan.hasNextLong()){\n\n a = scan.nextInt();\n b = scan.nextInt();\n a1 = a;\n b1 = b;\n \n //?????¶??° a > b ????¢?????????\\??? \n if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }\n \n // ?????????????????????????????? \n r = a % b;\n while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }\n bai = a1 * b1 / b;\n //* ?????§??¬?´???°????????? */\n System.out.println(b + \" \" + bai);\n }", "scan.hasNextLong()", "scan.hasNextLong", "scan", "{\n\n a = scan.nextInt();\n b = scan.nextInt();\n a1 = a;\n b1 = b;\n \n //?????¶??° a > b ????¢?????????\\??? \n if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }\n \n // ?????????????????????????????? \n r = a % b;\n while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }\n bai = a1 * b1 / b;\n //* ?????§??¬?´???°????????? */\n System.out.println(b + \" \" + bai);\n }", "a = scan.nextInt()", "a", "scan.nextInt()", "scan.nextInt", "scan", "b = scan.nextInt()", "b", "scan.nextInt()", "scan.nextInt", "scan", "a1 = a", "a1", "a", "b1 = b", "b1", "b", "if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }", "a<b", "a", "b", "{\n tmp = a;\n a = b;\n b = tmp;\n }", "tmp = a", "tmp", "a", "a = b", "a", "b", "b = tmp", "b", "tmp", "r = a % b", "r", "a % b", "a", "b", "while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }", "r!=0", "r", "0", "{\n a = b;\n b = r;\n r = a % b;\n }", "a = b", "a", "b", "b = r", "b", "r", "r = a % b", "r", "a % b", "a", "b", "bai = a1 * b1 / b", "bai", "a1 * b1 / b", "a1 * b1", "a1", "b1", "b", "System.out.println(b + \" \" + bai)", "System.out.println", "System.out", "System", "System.out", "b + \" \" + bai", "b + \" \" + bai", "b", "\" \"", "bai", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n long a, b, r, tmp,a1,b1,bai;\n while(scan.hasNextLong()){\n\n a = scan.nextInt();\n b = scan.nextInt();\n a1 = a;\n b1 = b;\n \n //?????¶??° a > b ????¢?????????\\??? \n if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }\n \n // ?????????????????????????????? \n r = a % b;\n while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }\n bai = a1 * b1 / b;\n //* ?????§??¬?´???°????????? */\n System.out.println(b + \" \" + bai);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n long a, b, r, tmp,a1,b1,bai;\n while(scan.hasNextLong()){\n\n a = scan.nextInt();\n b = scan.nextInt();\n a1 = a;\n b1 = b;\n \n //?????¶??° a > b ????¢?????????\\??? \n if(a<b){\n tmp = a;\n a = b;\n b = tmp;\n }\n \n // ?????????????????????????????? \n r = a % b;\n while(r!=0){\n a = b;\n b = r;\n r = a % b;\n }\n bai = a1 * b1 / b;\n //* ?????§??¬?´???°????????? */\n System.out.println(b + \" \" + bai);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long a, b, r, tmp,a1,b1,bai; while(scan.hasNextLong()){ a = scan.nextInt(); b = scan.nextInt(); a1 = a; b1 = b; //?????¶??° a > b ????¢?????????\??? if(a<b){ tmp = a; a = b; b = tmp; } // ?????????????????????????????? r = a % b; while(r!=0){ a = b; b = r; r = a % b; } bai = a1 * b1 / b; //* ?????§??¬?´???°????????? */ System.out.println(b + " " + bai); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 13, 41, 13, 13, 42, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 74, 5 ], [ 74, 6 ], [ 6, 7 ], [ 6, 8 ], [ 74, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 16, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 36, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 42, 51 ], [ 51, 52 ], [ 51, 53 ], [ 16, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 16, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 67, 67 ], [ 67, 68 ], [ 67, 69 ], [ 67, 70 ], [ 9, 71 ], [ 71, 72 ], [ 0, 73 ], [ 73, 74 ], [ 73, 75 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\t\t\tlong x = a;\n\t\t\tlong y = b;\n\t\t\tlong max = y;\n\t\t\twhile (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}\n\t\t\tlong min = a * b / max;\n\t\t\tSystem.out.println(max + \" \" + min);\n\n\t\t}\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\t\t\tlong x = a;\n\t\t\tlong y = b;\n\t\t\tlong max = y;\n\t\t\twhile (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}\n\t\t\tlong min = a * b / max;\n\t\t\tSystem.out.println(max + \" \" + min);\n\n\t\t}\n\n\t}\n\n}", "Main", "static Scanner sc = new java.util.Scanner(System.in);", "sc", "new java.util.Scanner(System.in)", "public static void main(String[] args) {\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\t\t\tlong x = a;\n\t\t\tlong y = b;\n\t\t\tlong max = y;\n\t\t\twhile (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}\n\t\t\tlong min = a * b / max;\n\t\t\tSystem.out.println(max + \" \" + min);\n\n\t\t}\n\n\t}", "main", "{\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\t\t\tlong x = a;\n\t\t\tlong y = b;\n\t\t\tlong max = y;\n\t\t\twhile (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}\n\t\t\tlong min = a * b / max;\n\t\t\tSystem.out.println(max + \" \" + min);\n\n\t\t}\n\n\t}", "while (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\t\t\tlong x = a;\n\t\t\tlong y = b;\n\t\t\tlong max = y;\n\t\t\twhile (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}\n\t\t\tlong min = a * b / max;\n\t\t\tSystem.out.println(max + \" \" + min);\n\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\t\t\tlong x = a;\n\t\t\tlong y = b;\n\t\t\tlong max = y;\n\t\t\twhile (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}\n\t\t\tlong min = a * b / max;\n\t\t\tSystem.out.println(max + \" \" + min);\n\n\t\t}", "long a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "long b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "long x = a;", "x", "a", "long y = b;", "y", "b", "long max = y;", "max", "y", "while (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}", "x % y != 0", "x % y", "x", "y", "0", "{\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}", "max = x % y", "max", "x % y", "x", "y", "x = y", "x", "y", "y = max", "y", "max", "long min = a * b / max;", "min", "a * b / max", "a * b", "a", "b", "max", "System.out.println(max + \" \" + min)", "System.out.println", "System.out", "System", "System.out", "max + \" \" + min", "max + \" \" + min", "max", "\" \"", "min", "String[] args", "args", "public class Main {\n\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\t\t\tlong x = a;\n\t\t\tlong y = b;\n\t\t\tlong max = y;\n\t\t\twhile (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}\n\t\t\tlong min = a * b / max;\n\t\t\tSystem.out.println(max + \" \" + min);\n\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\twhile (sc.hasNext()) {\n\t\t\tlong a = sc.nextInt();\n\t\t\tlong b = sc.nextInt();\n\t\t\tlong x = a;\n\t\t\tlong y = b;\n\t\t\tlong max = y;\n\t\t\twhile (x % y != 0) {\n\t\t\t\tmax = x % y;\n\t\t\t\tx = y;\n\t\t\t\ty = max;\n\t\t\t}\n\t\t\tlong min = a * b / max;\n\t\t\tSystem.out.println(max + \" \" + min);\n\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new java.util.Scanner(System.in); public static void main(String[] args) { while (sc.hasNext()) { long a = sc.nextInt(); long b = sc.nextInt(); long x = a; long y = b; long max = y; while (x % y != 0) { max = x % y; x = y; y = max; } long min = a * b / max; System.out.println(max + " " + min); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 14, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 30, 3, 23, 13, 12, 13, 30, 41, 13, 17, 14, 2, 13, 13, 30, 29, 13, 41, 13, 2, 4, 18, 13, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 14, 2, 2, 13, 13, 17, 30, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 40, 17, 41, 13, 13, 41, 13, 13, 42, 17, 30, 42, 2, 13, 13, 30, 0, 13, 2, 13, 2, 13, 2, 2, 13, 13, 13, 14, 2, 13, 13, 30, 29, 13, 30, 0, 13, 13, 42, 2, 13, 13, 30, 0, 13, 2, 13, 2, 13, 2, 2, 13, 13, 13, 14, 2, 13, 13, 30, 29, 13, 30, 0, 13, 13, 14, 2, 13, 13, 30, 29, 13, 14, 2, 13, 17, 30, 3, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 198, 5 ], [ 198, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 37, 40 ], [ 36, 41 ], [ 36, 42 ], [ 42, 43 ], [ 42, 44 ], [ 42, 45 ], [ 15, 46 ], [ 46, 47 ], [ 6, 48 ], [ 48, 49 ], [ 198, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 65, 71 ], [ 52, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 72, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 52, 102 ], [ 102, 103 ], [ 50, 104 ], [ 104, 105 ], [ 50, 106 ], [ 106, 107 ], [ 198, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 118, 120 ], [ 110, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 128, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 140, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 123, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 155, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 167, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 123, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 178, 182 ], [ 182, 183 ], [ 183, 184 ], [ 123, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 185, 189 ], [ 189, 190 ], [ 110, 191 ], [ 191, 192 ], [ 108, 193 ], [ 193, 194 ], [ 108, 195 ], [ 195, 196 ], [ 0, 197 ], [ 197, 198 ], [ 197, 199 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tif(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }\n\t\t}\n\t}\n\tstatic int GCD(int a, int b){\n\t\tint gcd =1;\n\t\tif(a==b){\n\t\t\treturn a;\n\t\t}\n\t\tint gcdSup = Math.max(a, b)/2; //aとbの大きい方の半分\n\t\tfor(int i=2; i<=gcdSup; i++){\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}\n\tstatic int LCM(int a, int b){\n\t\tint lcm = -1;\n\t\tint aTimes = a;\n\t\tint bTimes = b;\n\t\twhile(true){\n\t\t\t\twhile(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}\n\t\t\t\twhile(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}\n\t\t\t\tif (aTimes == bTimes){ return aTimes;}\n\t\t\t\tif (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\treturn lcm;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tif(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }\n\t\t}\n\t}\n\tstatic int GCD(int a, int b){\n\t\tint gcd =1;\n\t\tif(a==b){\n\t\t\treturn a;\n\t\t}\n\t\tint gcdSup = Math.max(a, b)/2; //aとbの大きい方の半分\n\t\tfor(int i=2; i<=gcdSup; i++){\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}\n\tstatic int LCM(int a, int b){\n\t\tint lcm = -1;\n\t\tint aTimes = a;\n\t\tint bTimes = b;\n\t\twhile(true){\n\t\t\t\twhile(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}\n\t\t\t\twhile(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}\n\t\t\t\tif (aTimes == bTimes){ return aTimes;}\n\t\t\t\tif (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\treturn lcm;\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tif(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tif(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tif(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }\n\t\t}", "true", "{\n\t\t\tif(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }\n\t\t}", "if(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "System.out.println(GCD(a,b)+\" \"+LCM(a,b))", "System.out.println", "System.out", "System", "System.out", "GCD(a,b)+\" \"+LCM(a,b)", "GCD(a,b)+\" \"+LCM(a,b)", "GCD(a,b)", "GCD", "a", "b", "\" \"", "LCM(a,b)", "LCM", "a", "b", "{ break; }", "break;", "String[] args", "args", "static int GCD(int a, int b){\n\t\tint gcd =1;\n\t\tif(a==b){\n\t\t\treturn a;\n\t\t}\n\t\tint gcdSup = Math.max(a, b)/2; //aとbの大きい方の半分\n\t\tfor(int i=2; i<=gcdSup; i++){\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}", "GCD", "{\n\t\tint gcd =1;\n\t\tif(a==b){\n\t\t\treturn a;\n\t\t}\n\t\tint gcdSup = Math.max(a, b)/2; //aとbの大きい方の半分\n\t\tfor(int i=2; i<=gcdSup; i++){\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}", "int gcd =1;", "gcd", "1", "if(a==b){\n\t\t\treturn a;\n\t\t}", "a==b", "a", "b", "{\n\t\t\treturn a;\n\t\t}", "return a;", "a", "int gcdSup = Math.max(a, b)/2;", "gcdSup", "Math.max(a, b)/2", "Math.max(a, b)", "Math.max", "Math", "a", "b", "2", "for(int i=2; i<=gcdSup; i++){\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=2;", "int i=2;", "i", "2", "i<=gcdSup", "i", "gcdSup", "i++", "i++", "i", "{\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}", "a%i==0", "a%i", "a", "i", "0", "{\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}", "if(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}", "b%i==0", "b%i", "b", "i", "0", "{ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}", "gcd = i", "gcd", "i", "return gcd;", "gcd", "int a", "a", "int b", "b", "static int LCM(int a, int b){\n\t\tint lcm = -1;\n\t\tint aTimes = a;\n\t\tint bTimes = b;\n\t\twhile(true){\n\t\t\t\twhile(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}\n\t\t\t\twhile(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}\n\t\t\t\tif (aTimes == bTimes){ return aTimes;}\n\t\t\t\tif (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\treturn lcm;\n\t}", "LCM", "{\n\t\tint lcm = -1;\n\t\tint aTimes = a;\n\t\tint bTimes = b;\n\t\twhile(true){\n\t\t\t\twhile(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}\n\t\t\t\twhile(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}\n\t\t\t\tif (aTimes == bTimes){ return aTimes;}\n\t\t\t\tif (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\treturn lcm;\n\t}", "int lcm = -1;", "lcm", "-1", "1", "int aTimes = a;", "aTimes", "a", "int bTimes = b;", "bTimes", "b", "while(true){\n\t\t\t\twhile(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}\n\t\t\t\twhile(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}\n\t\t\t\tif (aTimes == bTimes){ return aTimes;}\n\t\t\t\tif (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "true", "{\n\t\t\t\twhile(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}\n\t\t\t\twhile(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}\n\t\t\t\tif (aTimes == bTimes){ return aTimes;}\n\t\t\t\tif (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}", "while(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}", "aTimes < bTimes", "aTimes", "bTimes", "{\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}", "aTimes = aTimes + a * ((bTimes - aTimes)/a)", "aTimes", "aTimes + a * ((bTimes - aTimes)/a)", "aTimes", "a * ((bTimes - aTimes)/a)", "a", "((bTimes - aTimes)/a)", "(bTimes - aTimes)", "bTimes", "aTimes", "a", "if(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える", "aTimes==bTimes", "aTimes", "bTimes", "{\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t}", "return aTimes;", "aTimes", "{ aTimes += a; }", "aTimes += a", "aTimes", "a", "while(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}", "bTimes < aTimes", "bTimes", "aTimes", "{\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}", "bTimes = bTimes + b * ((aTimes - bTimes)/b)", "bTimes", "bTimes + b * ((aTimes - bTimes)/b)", "bTimes", "b * ((aTimes - bTimes)/b)", "b", "((aTimes - bTimes)/b)", "(aTimes - bTimes)", "aTimes", "bTimes", "b", "if(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }", "aTimes==bTimes", "aTimes", "bTimes", "{\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t}", "return aTimes;", "aTimes", "{ bTimes += b; }", "bTimes += b", "bTimes", "b", "if (aTimes == bTimes){ return aTimes;}", "aTimes == bTimes", "aTimes", "bTimes", "{ return aTimes;}", "return aTimes;", "aTimes", "if (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "aTimes > 2000000000", "aTimes", "2000000000", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "return lcm;", "lcm", "int a", "a", "int b", "b", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tif(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }\n\t\t}\n\t}\n\tstatic int GCD(int a, int b){\n\t\tint gcd =1;\n\t\tif(a==b){\n\t\t\treturn a;\n\t\t}\n\t\tint gcdSup = Math.max(a, b)/2; //aとbの大きい方の半分\n\t\tfor(int i=2; i<=gcdSup; i++){\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}\n\tstatic int LCM(int a, int b){\n\t\tint lcm = -1;\n\t\tint aTimes = a;\n\t\tint bTimes = b;\n\t\twhile(true){\n\t\t\t\twhile(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}\n\t\t\t\twhile(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}\n\t\t\t\tif (aTimes == bTimes){ return aTimes;}\n\t\t\t\tif (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\treturn lcm;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tif(sc.hasNextInt()){\t//EOFについたらifが成り立たずbreakする\n\t\t\t\tint a = sc.nextInt();\n\t\t\t\tint b = sc.nextInt();\n\t\t\t\tSystem.out.println(GCD(a,b)+\" \"+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する\n\t\t\t} else { break; }\n\t\t}\n\t}\n\tstatic int GCD(int a, int b){\n\t\tint gcd =1;\n\t\tif(a==b){\n\t\t\treturn a;\n\t\t}\n\t\tint gcdSup = Math.max(a, b)/2; //aとbの大きい方の半分\n\t\tfor(int i=2; i<=gcdSup; i++){\n\t\t\tif(a%i==0){\t\t//iがaの因数である場合\n\t\t\t\tif(b%i==0){ //iがbの因数である場合\n\t\t\t\t\tgcd = i; //iを新しい公約数として更新\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn gcd;\n\t}\n\tstatic int LCM(int a, int b){\n\t\tint lcm = -1;\n\t\tint aTimes = a;\n\t\tint bTimes = b;\n\t\twhile(true){\n\t\t\t\twhile(aTimes < bTimes){\n\t\t\t\t\taTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { aTimes += a; }\t//これをするとaの倍数がbの倍数を超える\n\t\t\t\t}\n\t\t\t\twhile(bTimes < aTimes){\n\t\t\t\t\tbTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす\n\t\t\t\t\tif(aTimes==bTimes){\n\t\t\t\t\t\treturn aTimes;\n\t\t\t\t\t} else { bTimes += b; }\n\t\t\t\t}\n\t\t\t\tif (aTimes == bTimes){ return aTimes;}\n\t\t\t\tif (aTimes > 2000000000){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t}\n\t\treturn lcm;\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ if(sc.hasNextInt()){ //EOFについたらifが成り立たずbreakする int a = sc.nextInt(); int b = sc.nextInt(); System.out.println(GCD(a,b)+" "+LCM(a,b)); //公約数と公倍数を求めるメソッドは別に用意する } else { break; } } } static int GCD(int a, int b){ int gcd =1; if(a==b){ return a; } int gcdSup = Math.max(a, b)/2; //aとbの大きい方の半分 for(int i=2; i<=gcdSup; i++){ if(a%i==0){ //iがaの因数である場合 if(b%i==0){ //iがbの因数である場合 gcd = i; //iを新しい公約数として更新 } } } return gcd; } static int LCM(int a, int b){ int lcm = -1; int aTimes = a; int bTimes = b; while(true){ while(aTimes < bTimes){ aTimes = aTimes + a * ((bTimes - aTimes)/a) ; //aの倍数がbの倍数に追い付くか抜くまで増やす if(aTimes==bTimes){ return aTimes; } else { aTimes += a; } //これをするとaの倍数がbの倍数を超える } while(bTimes < aTimes){ bTimes = bTimes + b * ((aTimes - bTimes)/b); //bの倍数がaの倍数に追い付くか抜くまで増やす if(aTimes==bTimes){ return aTimes; } else { bTimes += b; } } if (aTimes == bTimes){ return aTimes;} if (aTimes > 2000000000){ break; } } return lcm; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 41, 13, 41, 13, 4, 18, 13, 1, 4, 18, 18, 13, 13, 2, 2, 13, 17, 4, 18, 4, 18, 13, 13, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 16, 19 ], [ 19, 20 ], [ 16, 21 ], [ 21, 22 ], [ 15, 23 ], [ 23, 24 ], [ 24, 25 ], [ 15, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 33, 33 ], [ 33, 34 ], [ 33, 35 ], [ 33, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 36, 42 ], [ 15, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 9, 61 ], [ 61, 62 ] ]
[ "import java.util.*;import java.math.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+\" \"+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}}}", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+\" \"+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}}}", "Main", "public static void main(String[]g){Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+\" \"+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}}", "main", "{Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+\" \"+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}}", "Scanner S=new Scanner(System.in);", "S", "new Scanner(System.in)", "for(BigInteger a,b,c;S.hasNext();System.out.println(c+\" \"+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}", "BigInteger a,b,c;", "BigInteger a", "a", "b", "b", "c;", "c", "S.hasNext()", "S.hasNext", "S", "System.out.println(c+\" \"+a.multiply(b).divide(c))", "System.out.println(c+\" \"+a.multiply(b).divide(c))", "System.out.println", "System.out", "System", "System.out", "c+\" \"+a.multiply(b).divide(c)", "c+\" \"+a.multiply(b).divide(c)", "c", "\" \"", "a.multiply(b).divide(c)", "a.multiply(b).divide", "a.multiply(b)", "a.multiply", "a", "b", "c", "{a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}", "{a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}", "a=S.nextBigInteger()", "a", "S.nextBigInteger()", "S.nextBigInteger", "S", "b=S.nextBigInteger()", "b", "S.nextBigInteger()", "S.nextBigInteger", "S", "c=a.gcd(b)", "c", "a.gcd(b)", "a.gcd", "a", "b", "String[]g", "g" ]
import java.util.*;import java.math.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(BigInteger a,b,c;S.hasNext();System.out.println(c+" "+a.multiply(b).divide(c))){a=S.nextBigInteger();b=S.nextBigInteger();c=a.gcd(b);}}}
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 13, 13, 42, 2, 2, 13, 13, 17, 30, 41, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 2, 13, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 122, 5 ], [ 122, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 33, 38 ], [ 33, 39 ], [ 39, 40 ], [ 39, 41 ], [ 39, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 6, 46 ], [ 46, 47 ], [ 122, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 50, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 50, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 65, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 71, 77 ], [ 77, 78 ], [ 77, 79 ], [ 71, 80 ], [ 80, 81 ], [ 80, 82 ], [ 50, 83 ], [ 83, 84 ], [ 48, 85 ], [ 85, 86 ], [ 48, 87 ], [ 87, 88 ], [ 122, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 94, 97 ], [ 91, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 91, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 91, 108 ], [ 108, 109 ], [ 108, 110 ], [ 111, 111 ], [ 111, 112 ], [ 111, 113 ], [ 111, 114 ], [ 91, 115 ], [ 115, 116 ], [ 89, 117 ], [ 117, 118 ], [ 89, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNextInt()){\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t\tsc.close();\n\t}\n\tstatic int gcd(int a,int b){\n\t\tint c=Math.max(a, b);\n\t\tint d=Math.min(a, b);\n\t\twhile(c%d!=0){\n\t\t\tint e=c%d;\n\t\t\tc=d;\n\t\t\td=e;\n\t\t}\n\t\treturn d;\n\t}\n\tstatic int lcm(int a,int b){\n\t\tint gcd=gcd(a,b);\n\t\tint resa=a/gcd;\n\t\tint resb=b/gcd;\n\t\tint lcm=resa*resb*gcd;\n\t\treturn lcm;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNextInt()){\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t\tsc.close();\n\t}\n\tstatic int gcd(int a,int b){\n\t\tint c=Math.max(a, b);\n\t\tint d=Math.min(a, b);\n\t\twhile(c%d!=0){\n\t\t\tint e=c%d;\n\t\t\tc=d;\n\t\t\td=e;\n\t\t}\n\t\treturn d;\n\t}\n\tstatic int lcm(int a,int b){\n\t\tint gcd=gcd(a,b);\n\t\tint resa=a/gcd;\n\t\tint resb=b/gcd;\n\t\tint lcm=resa*resb*gcd;\n\t\treturn lcm;\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNextInt()){\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNextInt()){\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNextInt()){\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}", "int a=sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b=sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "System.out.println(gcd(a,b)+\" \"+lcm(a,b))", "System.out.println", "System.out", "System", "System.out", "gcd(a,b)+\" \"+lcm(a,b)", "gcd(a,b)+\" \"+lcm(a,b)", "gcd(a,b)", "gcd", "a", "b", "\" \"", "lcm(a,b)", "lcm", "a", "b", "sc.close()", "sc.close", "sc", "String[] args", "args", "static int gcd(int a,int b){\n\t\tint c=Math.max(a, b);\n\t\tint d=Math.min(a, b);\n\t\twhile(c%d!=0){\n\t\t\tint e=c%d;\n\t\t\tc=d;\n\t\t\td=e;\n\t\t}\n\t\treturn d;\n\t}", "gcd", "{\n\t\tint c=Math.max(a, b);\n\t\tint d=Math.min(a, b);\n\t\twhile(c%d!=0){\n\t\t\tint e=c%d;\n\t\t\tc=d;\n\t\t\td=e;\n\t\t}\n\t\treturn d;\n\t}", "int c=Math.max(a, b);", "c", "Math.max(a, b)", "Math.max", "Math", "a", "b", "int d=Math.min(a, b);", "d", "Math.min(a, b)", "Math.min", "Math", "a", "b", "while(c%d!=0){\n\t\t\tint e=c%d;\n\t\t\tc=d;\n\t\t\td=e;\n\t\t}", "c%d!=0", "c%d", "c", "d", "0", "{\n\t\t\tint e=c%d;\n\t\t\tc=d;\n\t\t\td=e;\n\t\t}", "int e=c%d;", "e", "c%d", "c", "d", "c=d", "c", "d", "d=e", "d", "e", "return d;", "d", "int a", "a", "int b", "b", "static int lcm(int a,int b){\n\t\tint gcd=gcd(a,b);\n\t\tint resa=a/gcd;\n\t\tint resb=b/gcd;\n\t\tint lcm=resa*resb*gcd;\n\t\treturn lcm;\n\t}", "lcm", "{\n\t\tint gcd=gcd(a,b);\n\t\tint resa=a/gcd;\n\t\tint resb=b/gcd;\n\t\tint lcm=resa*resb*gcd;\n\t\treturn lcm;\n\t}", "int gcd=gcd(a,b);", "gcd", "gcd(a,b)", "gcd", "a", "b", "int resa=a/gcd;", "resa", "a/gcd", "a", "gcd", "int resb=b/gcd;", "resb", "b/gcd", "b", "gcd", "int lcm=resa*resb*gcd;", "lcm", "resa*resb*gcd", "resa*resb*gcd", "resa", "resb", "gcd", "return lcm;", "lcm", "int a", "a", "int b", "b", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNextInt()){\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t\tsc.close();\n\t}\n\tstatic int gcd(int a,int b){\n\t\tint c=Math.max(a, b);\n\t\tint d=Math.min(a, b);\n\t\twhile(c%d!=0){\n\t\t\tint e=c%d;\n\t\t\tc=d;\n\t\t\td=e;\n\t\t}\n\t\treturn d;\n\t}\n\tstatic int lcm(int a,int b){\n\t\tint gcd=gcd(a,b);\n\t\tint resa=a/gcd;\n\t\tint resb=b/gcd;\n\t\tint lcm=resa*resb*gcd;\n\t\treturn lcm;\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\twhile(sc.hasNextInt()){\n\t\t\tint a=sc.nextInt();\n\t\t\tint b=sc.nextInt();\n\t\t\tSystem.out.println(gcd(a,b)+\" \"+lcm(a,b));\n\t\t}\n\t\tsc.close();\n\t}\n\tstatic int gcd(int a,int b){\n\t\tint c=Math.max(a, b);\n\t\tint d=Math.min(a, b);\n\t\twhile(c%d!=0){\n\t\t\tint e=c%d;\n\t\t\tc=d;\n\t\t\td=e;\n\t\t}\n\t\treturn d;\n\t}\n\tstatic int lcm(int a,int b){\n\t\tint gcd=gcd(a,b);\n\t\tint resa=a/gcd;\n\t\tint resb=b/gcd;\n\t\tint lcm=resa*resb*gcd;\n\t\treturn lcm;\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); while(sc.hasNextInt()){ int a=sc.nextInt(); int b=sc.nextInt(); System.out.println(gcd(a,b)+" "+lcm(a,b)); } sc.close(); } static int gcd(int a,int b){ int c=Math.max(a, b); int d=Math.min(a, b); while(c%d!=0){ int e=c%d; c=d; d=e; } return d; } static int lcm(int a,int b){ int gcd=gcd(a,b); int resa=a/gcd; int resb=b/gcd; int lcm=resa*resb*gcd; return lcm; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 41, 13, 42, 17, 30, 14, 2, 0, 13, 4, 18, 13, 17, 3, 14, 2, 4, 18, 13, 17, 3, 41, 13, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 42, 17, 30, 14, 2, 13, 13, 3, 14, 2, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 41, 13, 2, 18, 13, 17, 18, 13, 17, 0, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 21, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 31, 35 ], [ 30, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 20, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 20, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 20, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 20, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 88, 95 ], [ 95, 96 ], [ 95, 97 ], [ 20, 98 ], [ 98, 99 ], [ 98, 100 ], [ 20, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 20, 110 ], [ 110, 111 ], [ 110, 112 ], [ 20, 113 ], [ 113, 114 ], [ 113, 115 ], [ 20, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 122, 122 ], [ 122, 123 ], [ 122, 124 ], [ 122, 125 ], [ 6, 126 ], [ 126, 127 ] ]
[ "import java.io.*;\nclass Main{\n\n public static void main(String[] args) throws IOException{\n\tint gcd,lcm;\n\tBufferedReader br=\n\t new BufferedReader (new InputStreamReader(System.in));\n\tString buf;\n\twhile(true){\n\t if((buf=br.readLine())==null)break;\n\t if(buf.length()==0)break;\n\t String[] data=buf.split(\" \");\n\t int[] dat =new int[2];\n\t for(int i=0;i<2;i++){\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }\n\t int x=dat[0],y=dat[1];\n\t while(true){\n\t\tif(x==y)break;\n\t\tif(x > y) x-=y;\n\t\telse y-=x;\n\t }\n\t lcm=x;\n\t double d=(double)dat[0]*(double)dat[1];\n\t d/=(double)lcm;\n\t gcd=(int)d;\n\t System.out.println(lcm+\" \"+gcd);\n\t}\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n\n public static void main(String[] args) throws IOException{\n\tint gcd,lcm;\n\tBufferedReader br=\n\t new BufferedReader (new InputStreamReader(System.in));\n\tString buf;\n\twhile(true){\n\t if((buf=br.readLine())==null)break;\n\t if(buf.length()==0)break;\n\t String[] data=buf.split(\" \");\n\t int[] dat =new int[2];\n\t for(int i=0;i<2;i++){\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }\n\t int x=dat[0],y=dat[1];\n\t while(true){\n\t\tif(x==y)break;\n\t\tif(x > y) x-=y;\n\t\telse y-=x;\n\t }\n\t lcm=x;\n\t double d=(double)dat[0]*(double)dat[1];\n\t d/=(double)lcm;\n\t gcd=(int)d;\n\t System.out.println(lcm+\" \"+gcd);\n\t}\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n\tint gcd,lcm;\n\tBufferedReader br=\n\t new BufferedReader (new InputStreamReader(System.in));\n\tString buf;\n\twhile(true){\n\t if((buf=br.readLine())==null)break;\n\t if(buf.length()==0)break;\n\t String[] data=buf.split(\" \");\n\t int[] dat =new int[2];\n\t for(int i=0;i<2;i++){\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }\n\t int x=dat[0],y=dat[1];\n\t while(true){\n\t\tif(x==y)break;\n\t\tif(x > y) x-=y;\n\t\telse y-=x;\n\t }\n\t lcm=x;\n\t double d=(double)dat[0]*(double)dat[1];\n\t d/=(double)lcm;\n\t gcd=(int)d;\n\t System.out.println(lcm+\" \"+gcd);\n\t}\n }", "main", "{\n\tint gcd,lcm;\n\tBufferedReader br=\n\t new BufferedReader (new InputStreamReader(System.in));\n\tString buf;\n\twhile(true){\n\t if((buf=br.readLine())==null)break;\n\t if(buf.length()==0)break;\n\t String[] data=buf.split(\" \");\n\t int[] dat =new int[2];\n\t for(int i=0;i<2;i++){\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }\n\t int x=dat[0],y=dat[1];\n\t while(true){\n\t\tif(x==y)break;\n\t\tif(x > y) x-=y;\n\t\telse y-=x;\n\t }\n\t lcm=x;\n\t double d=(double)dat[0]*(double)dat[1];\n\t d/=(double)lcm;\n\t gcd=(int)d;\n\t System.out.println(lcm+\" \"+gcd);\n\t}\n }", "int gcd", "gcd", "lcm;", "lcm", "BufferedReader br=\n\t new BufferedReader (new InputStreamReader(System.in));", "br", "new BufferedReader (new InputStreamReader(System.in))", "String buf;", "buf", "while(true){\n\t if((buf=br.readLine())==null)break;\n\t if(buf.length()==0)break;\n\t String[] data=buf.split(\" \");\n\t int[] dat =new int[2];\n\t for(int i=0;i<2;i++){\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }\n\t int x=dat[0],y=dat[1];\n\t while(true){\n\t\tif(x==y)break;\n\t\tif(x > y) x-=y;\n\t\telse y-=x;\n\t }\n\t lcm=x;\n\t double d=(double)dat[0]*(double)dat[1];\n\t d/=(double)lcm;\n\t gcd=(int)d;\n\t System.out.println(lcm+\" \"+gcd);\n\t}", "true", "{\n\t if((buf=br.readLine())==null)break;\n\t if(buf.length()==0)break;\n\t String[] data=buf.split(\" \");\n\t int[] dat =new int[2];\n\t for(int i=0;i<2;i++){\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }\n\t int x=dat[0],y=dat[1];\n\t while(true){\n\t\tif(x==y)break;\n\t\tif(x > y) x-=y;\n\t\telse y-=x;\n\t }\n\t lcm=x;\n\t double d=(double)dat[0]*(double)dat[1];\n\t d/=(double)lcm;\n\t gcd=(int)d;\n\t System.out.println(lcm+\" \"+gcd);\n\t}", "if((buf=br.readLine())==null)break;", "(buf=br.readLine())==null", "(buf=br.readLine())", "buf", "br.readLine()", "br.readLine", "br", "null", "break;", "if(buf.length()==0)break;", "buf.length()==0", "buf.length()", "buf.length", "buf", "0", "break;", "String[] data=buf.split(\" \");", "data", "buf.split(\" \")", "buf.split", "buf", "\" \"", "int[] dat =new int[2];", "dat", "new int[2]", "2", "for(int i=0;i<2;i++){\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }", "int i=0;", "int i=0;", "i", "0", "i<2", "i", "2", "i++", "i++", "i", "{\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }", "{\n\t\tdat[i]=Integer.parseInt(data[i]);\n\t }", "dat[i]=Integer.parseInt(data[i])", "dat[i]", "dat", "i", "Integer.parseInt(data[i])", "Integer.parseInt", "Integer", "data[i]", "data", "i", "int x=dat[0]", "x", "dat[0]", "dat", "0", "y=dat[1];", "y", "dat[1]", "dat", "1", "while(true){\n\t\tif(x==y)break;\n\t\tif(x > y) x-=y;\n\t\telse y-=x;\n\t }", "true", "{\n\t\tif(x==y)break;\n\t\tif(x > y) x-=y;\n\t\telse y-=x;\n\t }", "if(x==y)break;", "x==y", "x", "y", "break;", "if(x > y) x-=y;\n\t\telse y-=x;", "x > y", "x", "y", "x-=y", "x", "y", "y-=x", "y", "x", "lcm=x", "lcm", "x", "double d=(double)dat[0]*(double)dat[1];", "d", "(double)dat[0]*(double)dat[1]", "(double)dat[0]", "dat", "0", "(double)dat[1]", "dat", "1", "d/=(double)lcm", "d", "(double)lcm", "gcd=(int)d", "gcd", "(int)d", "System.out.println(lcm+\" \"+gcd)", "System.out.println", "System.out", "System", "System.out", "lcm+\" \"+gcd", "lcm+\" \"+gcd", "lcm", "\" \"", "gcd", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args) throws IOException{ int gcd,lcm; BufferedReader br= new BufferedReader (new InputStreamReader(System.in)); String buf; while(true){ if((buf=br.readLine())==null)break; if(buf.length()==0)break; String[] data=buf.split(" "); int[] dat =new int[2]; for(int i=0;i<2;i++){ dat[i]=Integer.parseInt(data[i]); } int x=dat[0],y=dat[1]; while(true){ if(x==y)break; if(x > y) x-=y; else y-=x; } lcm=x; double d=(double)dat[0]*(double)dat[1]; d/=(double)lcm; gcd=(int)d; System.out.println(lcm+" "+gcd); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 17, 4, 18, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 2, 4, 18, 13, 17, 17, 0, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 4, 13, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 8, 2, 13, 13, 13, 13, 41, 13, 8, 2, 13, 13, 13, 13, 42, 2, 13, 17, 30, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 144, 11 ], [ 144, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 29, 34 ], [ 34, 35 ], [ 29, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 29, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 57, 62 ], [ 29, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 65, 68 ], [ 29, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 75, 75 ], [ 75, 76 ], [ 75, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 78, 82 ], [ 12, 83 ], [ 83, 84 ], [ 144, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 92, 97 ], [ 87, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 100, 105 ], [ 87, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 116, 117 ], [ 116, 118 ], [ 110, 119 ], [ 119, 120 ], [ 119, 121 ], [ 87, 122 ], [ 122, 123 ], [ 85, 124 ], [ 124, 125 ], [ 85, 126 ], [ 126, 127 ], [ 144, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 128, 137 ], [ 137, 138 ], [ 128, 139 ], [ 139, 140 ], [ 128, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tint a, b, gcm;\n\t\t\ta = Integer.parseInt(line.substring(0, line.indexOf(\" \")));\n\t\t\tb = Integer.parseInt(line.substring(line.indexOf(\" \") + 1));\n\t\t\tgcm = getGCD(a, b);\n\t\t\tSystem.out.println(gcm + \" \" + getLCM(a, b, gcm));\n\t\t}\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\n\t\tint mod;\n\t\tint gt = a >= b ? a : b;\n\t\tint lt = a <= b ? a : b;\n\n\t\tdo {\n\t\t\tmod = gt % lt;\n\t\t\tgt = lt;\n\t\t\tlt = mod;\n\t\t} while (mod != 0);\n\n\t\treturn gt;\n\t}\n\n\tpublic static long getLCM(int a, int b, int gcm) {\n\t\treturn (long) a * (long) b / gcm;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tint a, b, gcm;\n\t\t\ta = Integer.parseInt(line.substring(0, line.indexOf(\" \")));\n\t\t\tb = Integer.parseInt(line.substring(line.indexOf(\" \") + 1));\n\t\t\tgcm = getGCD(a, b);\n\t\t\tSystem.out.println(gcm + \" \" + getLCM(a, b, gcm));\n\t\t}\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\n\t\tint mod;\n\t\tint gt = a >= b ? a : b;\n\t\tint lt = a <= b ? a : b;\n\n\t\tdo {\n\t\t\tmod = gt % lt;\n\t\t\tgt = lt;\n\t\t\tlt = mod;\n\t\t} while (mod != 0);\n\n\t\treturn gt;\n\t}\n\n\tpublic static long getLCM(int a, int b, int gcm) {\n\t\treturn (long) a * (long) b / gcm;\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tint a, b, gcm;\n\t\t\ta = Integer.parseInt(line.substring(0, line.indexOf(\" \")));\n\t\t\tb = Integer.parseInt(line.substring(line.indexOf(\" \") + 1));\n\t\t\tgcm = getGCD(a, b);\n\t\t\tSystem.out.println(gcm + \" \" + getLCM(a, b, gcm));\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tint a, b, gcm;\n\t\t\ta = Integer.parseInt(line.substring(0, line.indexOf(\" \")));\n\t\t\tb = Integer.parseInt(line.substring(line.indexOf(\" \") + 1));\n\t\t\tgcm = getGCD(a, b);\n\t\t\tSystem.out.println(gcm + \" \" + getLCM(a, b, gcm));\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line = \"\";", "line", "\"\"", "while ((line = br.readLine()) != null) {\n\t\t\tint a, b, gcm;\n\t\t\ta = Integer.parseInt(line.substring(0, line.indexOf(\" \")));\n\t\t\tb = Integer.parseInt(line.substring(line.indexOf(\" \") + 1));\n\t\t\tgcm = getGCD(a, b);\n\t\t\tSystem.out.println(gcm + \" \" + getLCM(a, b, gcm));\n\t\t}", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tint a, b, gcm;\n\t\t\ta = Integer.parseInt(line.substring(0, line.indexOf(\" \")));\n\t\t\tb = Integer.parseInt(line.substring(line.indexOf(\" \") + 1));\n\t\t\tgcm = getGCD(a, b);\n\t\t\tSystem.out.println(gcm + \" \" + getLCM(a, b, gcm));\n\t\t}", "int a", "a", "b", "b", "gcm;", "gcm", "a = Integer.parseInt(line.substring(0, line.indexOf(\" \")))", "a", "Integer.parseInt(line.substring(0, line.indexOf(\" \")))", "Integer.parseInt", "Integer", "line.substring(0, line.indexOf(\" \"))", "line.substring", "line", "0", "line.indexOf(\" \")", "line.indexOf", "line", "\" \"", "b = Integer.parseInt(line.substring(line.indexOf(\" \") + 1))", "b", "Integer.parseInt(line.substring(line.indexOf(\" \") + 1))", "Integer.parseInt", "Integer", "line.substring(line.indexOf(\" \") + 1)", "line.substring", "line", "line.indexOf(\" \") + 1", "line.indexOf(\" \")", "line.indexOf", "line", "\" \"", "1", "gcm = getGCD(a, b)", "gcm", "getGCD(a, b)", "getGCD", "a", "b", "System.out.println(gcm + \" \" + getLCM(a, b, gcm))", "System.out.println", "System.out", "System", "System.out", "gcm + \" \" + getLCM(a, b, gcm)", "gcm + \" \" + getLCM(a, b, gcm)", "gcm", "\" \"", "getLCM(a, b, gcm)", "getLCM", "a", "b", "gcm", "String[] args", "args", "public static int getGCD(int a, int b) {\n\n\t\tint mod;\n\t\tint gt = a >= b ? a : b;\n\t\tint lt = a <= b ? a : b;\n\n\t\tdo {\n\t\t\tmod = gt % lt;\n\t\t\tgt = lt;\n\t\t\tlt = mod;\n\t\t} while (mod != 0);\n\n\t\treturn gt;\n\t}", "getGCD", "{\n\n\t\tint mod;\n\t\tint gt = a >= b ? a : b;\n\t\tint lt = a <= b ? a : b;\n\n\t\tdo {\n\t\t\tmod = gt % lt;\n\t\t\tgt = lt;\n\t\t\tlt = mod;\n\t\t} while (mod != 0);\n\n\t\treturn gt;\n\t}", "int mod;", "mod", "int gt = a >= b ? a : b;", "gt", "a >= b ? a : b", "a >= b", "a", "b", "a", "b", "int lt = a <= b ? a : b;", "lt", "a <= b ? a : b", "a <= b", "a", "b", "a", "b", "do {\n\t\t\tmod = gt % lt;\n\t\t\tgt = lt;\n\t\t\tlt = mod;\n\t\t} while (mod != 0);", "mod != 0", "mod", "0", "{\n\t\t\tmod = gt % lt;\n\t\t\tgt = lt;\n\t\t\tlt = mod;\n\t\t}", "mod = gt % lt", "mod", "gt % lt", "gt", "lt", "gt = lt", "gt", "lt", "lt = mod", "lt", "mod", "return gt;", "gt", "int a", "a", "int b", "b", "public static long getLCM(int a, int b, int gcm) {\n\t\treturn (long) a * (long) b / gcm;\n\t}", "getLCM", "{\n\t\treturn (long) a * (long) b / gcm;\n\t}", "return (long) a * (long) b / gcm;", "(long) a * (long) b / gcm", "(long) a * (long) b", "(long) a", "(long) b", "gcm", "int a", "a", "int b", "b", "int gcm", "gcm", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tint a, b, gcm;\n\t\t\ta = Integer.parseInt(line.substring(0, line.indexOf(\" \")));\n\t\t\tb = Integer.parseInt(line.substring(line.indexOf(\" \") + 1));\n\t\t\tgcm = getGCD(a, b);\n\t\t\tSystem.out.println(gcm + \" \" + getLCM(a, b, gcm));\n\t\t}\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\n\t\tint mod;\n\t\tint gt = a >= b ? a : b;\n\t\tint lt = a <= b ? a : b;\n\n\t\tdo {\n\t\t\tmod = gt % lt;\n\t\t\tgt = lt;\n\t\t\tlt = mod;\n\t\t} while (mod != 0);\n\n\t\treturn gt;\n\t}\n\n\tpublic static long getLCM(int a, int b, int gcm) {\n\t\treturn (long) a * (long) b / gcm;\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = \"\";\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\tint a, b, gcm;\n\t\t\ta = Integer.parseInt(line.substring(0, line.indexOf(\" \")));\n\t\t\tb = Integer.parseInt(line.substring(line.indexOf(\" \") + 1));\n\t\t\tgcm = getGCD(a, b);\n\t\t\tSystem.out.println(gcm + \" \" + getLCM(a, b, gcm));\n\t\t}\n\t}\n\n\tpublic static int getGCD(int a, int b) {\n\n\t\tint mod;\n\t\tint gt = a >= b ? a : b;\n\t\tint lt = a <= b ? a : b;\n\n\t\tdo {\n\t\t\tmod = gt % lt;\n\t\t\tgt = lt;\n\t\t\tlt = mod;\n\t\t} while (mod != 0);\n\n\t\treturn gt;\n\t}\n\n\tpublic static long getLCM(int a, int b, int gcm) {\n\t\treturn (long) a * (long) b / gcm;\n\t}\n}", "Main" ]
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)); String line = ""; while ((line = br.readLine()) != null) { int a, b, gcm; a = Integer.parseInt(line.substring(0, line.indexOf(" "))); b = Integer.parseInt(line.substring(line.indexOf(" ") + 1)); gcm = getGCD(a, b); System.out.println(gcm + " " + getLCM(a, b, gcm)); } } public static int getGCD(int a, int b) { int mod; int gt = a >= b ? a : b; int lt = a <= b ? a : b; do { mod = gt % lt; gt = lt; lt = mod; } while (mod != 0); return gt; } public static long getLCM(int a, int b, int gcm) { return (long) a * (long) b / gcm; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 13, 30, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 13, 13, 30, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 2, 2, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 109, 8 ], [ 109, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 21, 24 ], [ 24, 25 ], [ 24, 26 ], [ 9, 27 ], [ 27, 28 ], [ 9, 29 ], [ 29, 30 ], [ 109, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 56, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 56, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 52, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 84, 87 ], [ 81, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 81, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 31, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n private static int gcd(int a, int b){ \n if (b==0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }\n \n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()){\n int v1 = sc.nextInt();\n int v2 = sc.nextInt();\n if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }\n }\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n private static int gcd(int a, int b){ \n if (b==0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }\n \n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()){\n int v1 = sc.nextInt();\n int v2 = sc.nextInt();\n if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }\n }\n }\n}", "Main", "private static int gcd(int a, int b){ \n if (b==0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }", "gcd", "{ \n if (b==0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }", "if (b==0){\n return a;\n }else{\n return gcd(b,a%b);\n }", "b==0", "b", "0", "{\n return a;\n }", "return a;", "a", "{\n return gcd(b,a%b);\n }", "return gcd(b,a%b);", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()){\n int v1 = sc.nextInt();\n int v2 = sc.nextInt();\n if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()){\n int v1 = sc.nextInt();\n int v2 = sc.nextInt();\n if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()){\n int v1 = sc.nextInt();\n int v2 = sc.nextInt();\n if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n int v1 = sc.nextInt();\n int v2 = sc.nextInt();\n if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }\n }", "int v1 = sc.nextInt();", "v1", "sc.nextInt()", "sc.nextInt", "sc", "int v2 = sc.nextInt();", "v2", "sc.nextInt()", "sc.nextInt", "sc", "if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }", "v1>=v2", "v1", "v2", "{\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }", "int ans = gcd(v1,v2);", "ans", "gcd(v1,v2)", "gcd", "v1", "v2", "System.out.print(ans + \" \")", "System.out.print", "System.out", "System", "System.out", "ans + \" \"", "ans", "\" \"", "System.out.println(v1/ans*v2)", "System.out.println", "System.out", "System", "System.out", "v1/ans*v2", "v1/ans", "v1", "ans", "v2", "{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }", "int ans = gcd(v2,v1);", "ans", "gcd(v2,v1)", "gcd", "v2", "v1", "System.out.print(ans + \" \")", "System.out.print", "System.out", "System", "System.out", "ans + \" \"", "ans", "\" \"", "System.out.println(v1/ans*v2)", "System.out.println", "System.out", "System", "System.out", "v1/ans*v2", "v1/ans", "v1", "ans", "v2", "String[] args", "args", "public class Main {\n private static int gcd(int a, int b){ \n if (b==0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }\n \n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()){\n int v1 = sc.nextInt();\n int v2 = sc.nextInt();\n if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }\n }\n }\n}", "public class Main {\n private static int gcd(int a, int b){ \n if (b==0){\n return a;\n }else{\n return gcd(b,a%b);\n }\n }\n \n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n while (sc.hasNext()){\n int v1 = sc.nextInt();\n int v2 = sc.nextInt();\n if (v1>=v2){\n int ans = gcd(v1,v2);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }else{\n int ans = gcd(v2,v1);\n System.out.print(ans + \" \");\n System.out.println(v1/ans*v2);\n }\n }\n }\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { private static int gcd(int a, int b){ if (b==0){ return a; }else{ return gcd(b,a%b); } } public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); while (sc.hasNext()){ int v1 = sc.nextInt(); int v2 = sc.nextInt(); if (v1>=v2){ int ans = gcd(v1,v2); System.out.print(ans + " "); System.out.println(v1/ans*v2); }else{ int ans = gcd(v2,v1); System.out.print(ans + " "); System.out.println(v1/ans*v2); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 13, 42, 17, 30, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 2, 13, 13, 17, 3, 0, 13, 2, 13, 13, 0, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 80, 5 ], [ 80, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 27, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 44, 46 ], [ 40, 47 ], [ 47, 48 ], [ 47, 49 ], [ 35, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 50, 56 ], [ 35, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 16, 62 ], [ 62, 63 ], [ 62, 64 ], [ 16, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 71, 71 ], [ 71, 72 ], [ 71, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 6, 77 ], [ 77, 78 ], [ 0, 79 ], [ 79, 80 ], [ 79, 81 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNextInt()) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint aa = a;\n\t\t\tint bb = b;\n\t\t\twhile (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}\n\t\t\tbb/=b;\n\t\t\tSystem.out.println(b+\" \"+(aa*bb));\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNextInt()) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint aa = a;\n\t\t\tint bb = b;\n\t\t\twhile (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}\n\t\t\tbb/=b;\n\t\t\tSystem.out.println(b+\" \"+(aa*bb));\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNextInt()) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint aa = a;\n\t\t\tint bb = b;\n\t\t\twhile (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}\n\t\t\tbb/=b;\n\t\t\tSystem.out.println(b+\" \"+(aa*bb));\n\t\t}\n\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNextInt()) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint aa = a;\n\t\t\tint bb = b;\n\t\t\twhile (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}\n\t\t\tbb/=b;\n\t\t\tSystem.out.println(b+\" \"+(aa*bb));\n\t\t}\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "while (s.hasNextInt()) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint aa = a;\n\t\t\tint bb = b;\n\t\t\twhile (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}\n\t\t\tbb/=b;\n\t\t\tSystem.out.println(b+\" \"+(aa*bb));\n\t\t}", "s.hasNextInt()", "s.hasNextInt", "s", "{\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint aa = a;\n\t\t\tint bb = b;\n\t\t\twhile (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}\n\t\t\tbb/=b;\n\t\t\tSystem.out.println(b+\" \"+(aa*bb));\n\t\t}", "int a = s.nextInt();", "a", "s.nextInt()", "s.nextInt", "s", "int b = s.nextInt();", "b", "s.nextInt()", "s.nextInt", "s", "int aa = a;", "aa", "a", "int bb = b;", "bb", "b", "while (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}", "true", "{\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}", "if (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}", "a < b", "a", "b", "{\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}", "int t = a;", "t", "a", "a = b", "a", "b", "b = t", "b", "t", "if(a%b == 0)break;", "a%b == 0", "a%b", "a", "b", "0", "break;", "a = a%b", "a", "a%b", "a", "b", "bb/=b", "bb", "b", "System.out.println(b+\" \"+(aa*bb))", "System.out.println", "System.out", "System", "System.out", "b+\" \"+(aa*bb)", "b+\" \"+(aa*bb)", "b", "\" \"", "(aa*bb)", "aa", "bb", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNextInt()) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint aa = a;\n\t\t\tint bb = b;\n\t\t\twhile (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}\n\t\t\tbb/=b;\n\t\t\tSystem.out.println(b+\" \"+(aa*bb));\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\twhile (s.hasNextInt()) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint aa = a;\n\t\t\tint bb = b;\n\t\t\twhile (true) {\n\t\t\t\tif (a < b) {\n\t\t\t\t\tint t = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = t;\n\t\t\t\t}\n\t\t\t\tif(a%b == 0)break;\n\t\t\t\ta = a%b;\n\t\t\t}\n\t\t\tbb/=b;\n\t\t\tSystem.out.println(b+\" \"+(aa*bb));\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); while (s.hasNextInt()) { int a = s.nextInt(); int b = s.nextInt(); int aa = a; int bb = b; while (true) { if (a < b) { int t = a; a = b; b = t; } if(a%b == 0)break; a = a%b; } bb/=b; System.out.println(b+" "+(aa*bb)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 13, 41, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 2, 2, 13, 17, 13, 23, 13, 12, 13, 30, 29, 8, 2, 2, 13, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 106, 11 ], [ 106, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 28, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 28, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 28, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 53, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 28, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 28, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 12, 82 ], [ 82, 83 ], [ 106, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 88, 94 ], [ 88, 95 ], [ 95, 96 ], [ 95, 97 ], [ 95, 98 ], [ 98, 99 ], [ 98, 100 ], [ 84, 101 ], [ 101, 102 ], [ 84, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\n\npublic class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n\n while( (line = br.readLine()) != null){\n String[] input = line.split(\" \");\n\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n\n int x = getGCD(Math.max(a,b) , Math.min(a,b));\n long y = (long)a*(long)b/x;\n\n System.out.println(x + \" \" + y);\n }\n }\n\n static int getGCD(int b , int s){\n return (b%s == 0) ? s : getGCD(s , b%s);\n }\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n\n while( (line = br.readLine()) != null){\n String[] input = line.split(\" \");\n\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n\n int x = getGCD(Math.max(a,b) , Math.min(a,b));\n long y = (long)a*(long)b/x;\n\n System.out.println(x + \" \" + y);\n }\n }\n\n static int getGCD(int b , int s){\n return (b%s == 0) ? s : getGCD(s , b%s);\n }\n\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n\n while( (line = br.readLine()) != null){\n String[] input = line.split(\" \");\n\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n\n int x = getGCD(Math.max(a,b) , Math.min(a,b));\n long y = (long)a*(long)b/x;\n\n System.out.println(x + \" \" + y);\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n\n while( (line = br.readLine()) != null){\n String[] input = line.split(\" \");\n\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n\n int x = getGCD(Math.max(a,b) , Math.min(a,b));\n long y = (long)a*(long)b/x;\n\n System.out.println(x + \" \" + y);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "while( (line = br.readLine()) != null){\n String[] input = line.split(\" \");\n\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n\n int x = getGCD(Math.max(a,b) , Math.min(a,b));\n long y = (long)a*(long)b/x;\n\n System.out.println(x + \" \" + y);\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n String[] input = line.split(\" \");\n\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n\n int x = getGCD(Math.max(a,b) , Math.min(a,b));\n long y = (long)a*(long)b/x;\n\n System.out.println(x + \" \" + y);\n }", "String[] input = line.split(\" \");", "input", "line.split(\" \")", "line.split", "line", "\" \"", "int a = Integer.parseInt(input[0]);", "a", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "int b = Integer.parseInt(input[1]);", "b", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "1", "int x = getGCD(Math.max(a,b) , Math.min(a,b));", "x", "getGCD(Math.max(a,b) , Math.min(a,b))", "getGCD", "Math.max(a,b)", "Math.max", "Math", "a", "b", "Math.min(a,b)", "Math.min", "Math", "a", "b", "long y = (long)a*(long)b/x;", "y", "(long)a*(long)b/x", "(long)a*(long)b", "(long)a", "(long)b", "x", "System.out.println(x + \" \" + y)", "System.out.println", "System.out", "System", "System.out", "x + \" \" + y", "x + \" \" + y", "x", "\" \"", "y", "String[] args", "args", "static int getGCD(int b , int s){\n return (b%s == 0) ? s : getGCD(s , b%s);\n }", "getGCD", "{\n return (b%s == 0) ? s : getGCD(s , b%s);\n }", "return (b%s == 0) ? s : getGCD(s , b%s);", "(b%s == 0) ? s : getGCD(s , b%s)", "(b%s == 0)", "b%s", "b", "s", "0", "s", "getGCD(s , b%s)", "getGCD", "s", "b%s", "b", "s", "int b", "b", "int s", "s", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n\n while( (line = br.readLine()) != null){\n String[] input = line.split(\" \");\n\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n\n int x = getGCD(Math.max(a,b) , Math.min(a,b));\n long y = (long)a*(long)b/x;\n\n System.out.println(x + \" \" + y);\n }\n }\n\n static int getGCD(int b , int s){\n return (b%s == 0) ? s : getGCD(s , b%s);\n }\n\n}", "public class Main{\n public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n\n while( (line = br.readLine()) != null){\n String[] input = line.split(\" \");\n\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n\n int x = getGCD(Math.max(a,b) , Math.min(a,b));\n long y = (long)a*(long)b/x;\n\n System.out.println(x + \" \" + y);\n }\n }\n\n static int getGCD(int b , int s){\n return (b%s == 0) ? s : getGCD(s , b%s);\n }\n\n}", "Main" ]
import java.io.IOException; import java.io.InputStreamReader; import java.io.BufferedReader; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; while( (line = br.readLine()) != null){ String[] input = line.split(" "); int a = Integer.parseInt(input[0]); int b = Integer.parseInt(input[1]); int x = getGCD(Math.max(a,b) , Math.min(a,b)); long y = (long)a*(long)b/x; System.out.println(x + " " + y); } } static int getGCD(int b , int s){ return (b%s == 0) ? s : getGCD(s , b%s); } }