node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 2, 2, 2, 13, 17, 2, 2, 13, 17, 17, 2, 13, 17, 41, 13, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 99, 5 ], [ 99, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 8, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 8, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 52, 52 ], [ 52, 53 ], [ 52, 54 ], [ 52, 55 ], [ 46, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 8, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 76, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 84, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 6, 96 ], [ 96, 97 ], [ 0, 98 ], [ 98, 99 ], [ 98, 100 ] ]
[ "import java.util.Scanner;\n\n//ACならず。いちぶWA。悔しい。\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble A = scan.nextDouble();\n\t\tdouble B = scan.nextDouble();\n\t\tdouble H = scan.nextDouble();\n\t\tdouble M = scan.nextDouble();\n\t\t\n\n\t\tdouble Ax;\n\t\tdouble Ay;\n\t\tdouble Bx;\n\t\tdouble By;\n\t\tdouble AB;\n\t\tdouble AB2;\n\t\tdouble sita = H/12+M/60/12-M/60;\n\t\t//System.out.println(H/12);\n\t\t//System.out.println(M/60/12);\n\t\t//System.out.println(M/60);\n\t\tdouble sita2;\n\t\t\n\t\t/*\n\t\tif(sita>180) {\n\t\t\tsita = sita -180;\n\t\t}\n\t\tif(sita<0) {\n\t\t\tsita = -sita;\n\t\t\tif(sita>180) {\n\t\t\t\tsita = sita -180;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t\t\t\n\t\t//System.out.println(sita);\n\n\t\t//AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(sita)));\n\t\tAB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\t/*\tSystem.out.println(2*Math.PI*sita);\n\t\tSystem.out.println(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\n\n\t\tAx = A*Math.cos(Math.toRadians((60*H+M)/2));\n\t\tAy = A*Math.sin(Math.toRadians((60*H+M)/2));\n\t\tBx = B*Math.cos(Math.toRadians(6*M));\n\t\tBy = B*Math.sin(Math.toRadians(6*M));\n\n\t\tAB2 = Math.sqrt(Math.pow(Ax-Bx, 2)+Math.pow(Ay-By, 2));\n\t */\n\t\tSystem.out.println(AB);\n\t\t//System.out.println(AB2);\n\n\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 scan = new Scanner(System.in);\n\t\tdouble A = scan.nextDouble();\n\t\tdouble B = scan.nextDouble();\n\t\tdouble H = scan.nextDouble();\n\t\tdouble M = scan.nextDouble();\n\t\t\n\n\t\tdouble Ax;\n\t\tdouble Ay;\n\t\tdouble Bx;\n\t\tdouble By;\n\t\tdouble AB;\n\t\tdouble AB2;\n\t\tdouble sita = H/12+M/60/12-M/60;\n\t\t//System.out.println(H/12);\n\t\t//System.out.println(M/60/12);\n\t\t//System.out.println(M/60);\n\t\tdouble sita2;\n\t\t\n\t\t/*\n\t\tif(sita>180) {\n\t\t\tsita = sita -180;\n\t\t}\n\t\tif(sita<0) {\n\t\t\tsita = -sita;\n\t\t\tif(sita>180) {\n\t\t\t\tsita = sita -180;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t\t\t\n\t\t//System.out.println(sita);\n\n\t\t//AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(sita)));\n\t\tAB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\t/*\tSystem.out.println(2*Math.PI*sita);\n\t\tSystem.out.println(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\n\n\t\tAx = A*Math.cos(Math.toRadians((60*H+M)/2));\n\t\tAy = A*Math.sin(Math.toRadians((60*H+M)/2));\n\t\tBx = B*Math.cos(Math.toRadians(6*M));\n\t\tBy = B*Math.sin(Math.toRadians(6*M));\n\n\t\tAB2 = Math.sqrt(Math.pow(Ax-Bx, 2)+Math.pow(Ay-By, 2));\n\t */\n\t\tSystem.out.println(AB);\n\t\t//System.out.println(AB2);\n\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble A = scan.nextDouble();\n\t\tdouble B = scan.nextDouble();\n\t\tdouble H = scan.nextDouble();\n\t\tdouble M = scan.nextDouble();\n\t\t\n\n\t\tdouble Ax;\n\t\tdouble Ay;\n\t\tdouble Bx;\n\t\tdouble By;\n\t\tdouble AB;\n\t\tdouble AB2;\n\t\tdouble sita = H/12+M/60/12-M/60;\n\t\t//System.out.println(H/12);\n\t\t//System.out.println(M/60/12);\n\t\t//System.out.println(M/60);\n\t\tdouble sita2;\n\t\t\n\t\t/*\n\t\tif(sita>180) {\n\t\t\tsita = sita -180;\n\t\t}\n\t\tif(sita<0) {\n\t\t\tsita = -sita;\n\t\t\tif(sita>180) {\n\t\t\t\tsita = sita -180;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t\t\t\n\t\t//System.out.println(sita);\n\n\t\t//AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(sita)));\n\t\tAB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\t/*\tSystem.out.println(2*Math.PI*sita);\n\t\tSystem.out.println(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\n\n\t\tAx = A*Math.cos(Math.toRadians((60*H+M)/2));\n\t\tAy = A*Math.sin(Math.toRadians((60*H+M)/2));\n\t\tBx = B*Math.cos(Math.toRadians(6*M));\n\t\tBy = B*Math.sin(Math.toRadians(6*M));\n\n\t\tAB2 = Math.sqrt(Math.pow(Ax-Bx, 2)+Math.pow(Ay-By, 2));\n\t */\n\t\tSystem.out.println(AB);\n\t\t//System.out.println(AB2);\n\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble A = scan.nextDouble();\n\t\tdouble B = scan.nextDouble();\n\t\tdouble H = scan.nextDouble();\n\t\tdouble M = scan.nextDouble();\n\t\t\n\n\t\tdouble Ax;\n\t\tdouble Ay;\n\t\tdouble Bx;\n\t\tdouble By;\n\t\tdouble AB;\n\t\tdouble AB2;\n\t\tdouble sita = H/12+M/60/12-M/60;\n\t\t//System.out.println(H/12);\n\t\t//System.out.println(M/60/12);\n\t\t//System.out.println(M/60);\n\t\tdouble sita2;\n\t\t\n\t\t/*\n\t\tif(sita>180) {\n\t\t\tsita = sita -180;\n\t\t}\n\t\tif(sita<0) {\n\t\t\tsita = -sita;\n\t\t\tif(sita>180) {\n\t\t\t\tsita = sita -180;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t\t\t\n\t\t//System.out.println(sita);\n\n\t\t//AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(sita)));\n\t\tAB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\t/*\tSystem.out.println(2*Math.PI*sita);\n\t\tSystem.out.println(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\n\n\t\tAx = A*Math.cos(Math.toRadians((60*H+M)/2));\n\t\tAy = A*Math.sin(Math.toRadians((60*H+M)/2));\n\t\tBx = B*Math.cos(Math.toRadians(6*M));\n\t\tBy = B*Math.sin(Math.toRadians(6*M));\n\n\t\tAB2 = Math.sqrt(Math.pow(Ax-Bx, 2)+Math.pow(Ay-By, 2));\n\t */\n\t\tSystem.out.println(AB);\n\t\t//System.out.println(AB2);\n\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "double A = scan.nextDouble();", "A", "scan.nextDouble()", "scan.nextDouble", "scan", "double B = scan.nextDouble();", "B", "scan.nextDouble()", "scan.nextDouble", "scan", "double H = scan.nextDouble();", "H", "scan.nextDouble()", "scan.nextDouble", "scan", "double M = scan.nextDouble();", "M", "scan.nextDouble()", "scan.nextDouble", "scan", "double Ax;", "Ax", "double Ay;", "Ay", "double Bx;", "Bx", "double By;", "By", "double AB;", "AB", "double AB2;", "AB2", "double sita = H/12+M/60/12-M/60;", "sita", "H/12+M/60/12-M/60", "H/12+M/60/12", "H/12", "H", "12", "M/60/12", "M/60/12", "M", "60", "12", "M/60", "M", "60", "double sita2;", "sita2", "AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita))", "AB", "Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita))", "Math.sqrt", "Math", "A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita)", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(2*Math.PI*sita)", "B", "2*A*B*Math.cos(2*Math.PI*sita)", "2", "A", "B", "Math.cos(2*Math.PI*sita)", "Math.cos", "Math", "2*Math.PI*sita", "2*Math.PI*sita", "2", "Math.PI", "Math", "Math.PI", "sita", "System.out.println(AB)", "System.out.println", "System.out", "System", "System.out", "AB", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble A = scan.nextDouble();\n\t\tdouble B = scan.nextDouble();\n\t\tdouble H = scan.nextDouble();\n\t\tdouble M = scan.nextDouble();\n\t\t\n\n\t\tdouble Ax;\n\t\tdouble Ay;\n\t\tdouble Bx;\n\t\tdouble By;\n\t\tdouble AB;\n\t\tdouble AB2;\n\t\tdouble sita = H/12+M/60/12-M/60;\n\t\t//System.out.println(H/12);\n\t\t//System.out.println(M/60/12);\n\t\t//System.out.println(M/60);\n\t\tdouble sita2;\n\t\t\n\t\t/*\n\t\tif(sita>180) {\n\t\t\tsita = sita -180;\n\t\t}\n\t\tif(sita<0) {\n\t\t\tsita = -sita;\n\t\t\tif(sita>180) {\n\t\t\t\tsita = sita -180;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t\t\t\n\t\t//System.out.println(sita);\n\n\t\t//AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(sita)));\n\t\tAB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\t/*\tSystem.out.println(2*Math.PI*sita);\n\t\tSystem.out.println(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\n\n\t\tAx = A*Math.cos(Math.toRadians((60*H+M)/2));\n\t\tAy = A*Math.sin(Math.toRadians((60*H+M)/2));\n\t\tBx = B*Math.cos(Math.toRadians(6*M));\n\t\tBy = B*Math.sin(Math.toRadians(6*M));\n\n\t\tAB2 = Math.sqrt(Math.pow(Ax-Bx, 2)+Math.pow(Ay-By, 2));\n\t */\n\t\tSystem.out.println(AB);\n\t\t//System.out.println(AB2);\n\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble A = scan.nextDouble();\n\t\tdouble B = scan.nextDouble();\n\t\tdouble H = scan.nextDouble();\n\t\tdouble M = scan.nextDouble();\n\t\t\n\n\t\tdouble Ax;\n\t\tdouble Ay;\n\t\tdouble Bx;\n\t\tdouble By;\n\t\tdouble AB;\n\t\tdouble AB2;\n\t\tdouble sita = H/12+M/60/12-M/60;\n\t\t//System.out.println(H/12);\n\t\t//System.out.println(M/60/12);\n\t\t//System.out.println(M/60);\n\t\tdouble sita2;\n\t\t\n\t\t/*\n\t\tif(sita>180) {\n\t\t\tsita = sita -180;\n\t\t}\n\t\tif(sita<0) {\n\t\t\tsita = -sita;\n\t\t\tif(sita>180) {\n\t\t\t\tsita = sita -180;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t*/\n\t\t\n\t\t\t\t\n\t\t//System.out.println(sita);\n\n\t\t//AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(sita)));\n\t\tAB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\t/*\tSystem.out.println(2*Math.PI*sita);\n\t\tSystem.out.println(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita));\n\n\n\t\tAx = A*Math.cos(Math.toRadians((60*H+M)/2));\n\t\tAy = A*Math.sin(Math.toRadians((60*H+M)/2));\n\t\tBx = B*Math.cos(Math.toRadians(6*M));\n\t\tBy = B*Math.sin(Math.toRadians(6*M));\n\n\t\tAB2 = Math.sqrt(Math.pow(Ax-Bx, 2)+Math.pow(Ay-By, 2));\n\t */\n\t\tSystem.out.println(AB);\n\t\t//System.out.println(AB2);\n\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; //ACならず。いちぶWA。悔しい。 public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); double A = scan.nextDouble(); double B = scan.nextDouble(); double H = scan.nextDouble(); double M = scan.nextDouble(); double Ax; double Ay; double Bx; double By; double AB; double AB2; double sita = H/12+M/60/12-M/60; //System.out.println(H/12); //System.out.println(M/60/12); //System.out.println(M/60); double sita2; /* if(sita>180) { sita = sita -180; } if(sita<0) { sita = -sita; if(sita>180) { sita = sita -180; } } */ //System.out.println(sita); //AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(sita))); AB = Math.sqrt(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita)); /* System.out.println(2*Math.PI*sita); System.out.println(A*A+B*B-2*A*B*Math.cos(2*Math.PI*sita)); Ax = A*Math.cos(Math.toRadians((60*H+M)/2)); Ay = A*Math.sin(Math.toRadians((60*H+M)/2)); Bx = B*Math.cos(Math.toRadians(6*M)); By = B*Math.sin(Math.toRadians(6*M)); AB2 = Math.sqrt(Math.pow(Ax-Bx, 2)+Math.pow(Ay-By, 2)); */ System.out.println(AB); //System.out.println(AB2); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 17, 13, 41, 13, 2, 2, 2, 17, 17, 13, 2, 2, 17, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 2, 17, 13, 0, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 8, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 8, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 90, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble ma = 360 / 60 * m;\n\t\tdouble ha = 360 / 12 * h + 30.0 / 60 * m;\n\t\t\n\t\tdouble x = Math.abs(ma - ha);\n\t\tx = Math.min(x, 360 - x);\n\t\tx = Math.toRadians(x);\n\t\t\n\t\tdouble ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x));\n\t\t\n\t\tSystem.out.println(ans);\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\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble ma = 360 / 60 * m;\n\t\tdouble ha = 360 / 12 * h + 30.0 / 60 * m;\n\t\t\n\t\tdouble x = Math.abs(ma - ha);\n\t\tx = Math.min(x, 360 - x);\n\t\tx = Math.toRadians(x);\n\t\t\n\t\tdouble ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x));\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble ma = 360 / 60 * m;\n\t\tdouble ha = 360 / 12 * h + 30.0 / 60 * m;\n\t\t\n\t\tdouble x = Math.abs(ma - ha);\n\t\tx = Math.min(x, 360 - x);\n\t\tx = Math.toRadians(x);\n\t\t\n\t\tdouble ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x));\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble ma = 360 / 60 * m;\n\t\tdouble ha = 360 / 12 * h + 30.0 / 60 * m;\n\t\t\n\t\tdouble x = Math.abs(ma - ha);\n\t\tx = Math.min(x, 360 - x);\n\t\tx = Math.toRadians(x);\n\t\t\n\t\tdouble ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x));\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double ma = 360 / 60 * m;", "ma", "360 / 60 * m", "360 / 60", "360", "60", "m", "double ha = 360 / 12 * h + 30.0 / 60 * m;", "ha", "360 / 12 * h + 30.0 / 60 * m", "360 / 12 * h", "360 / 12", "360", "12", "h", "30.0 / 60 * m", "30.0 / 60", "30.0", "60", "m", "double x = Math.abs(ma - ha);", "x", "Math.abs(ma - ha)", "Math.abs", "Math", "ma - ha", "ma", "ha", "x = Math.min(x, 360 - x)", "x", "Math.min(x, 360 - x)", "Math.min", "Math", "x", "360 - x", "360", "x", "x = Math.toRadians(x)", "x", "Math.toRadians(x)", "Math.toRadians", "Math", "x", "double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x));", "ans", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(x)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(x)", "b", "2 * a * b * Math.cos(x)", "2", "a", "b", "Math.cos(x)", "Math.cos", "Math", "x", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble ma = 360 / 60 * m;\n\t\tdouble ha = 360 / 12 * h + 30.0 / 60 * m;\n\t\t\n\t\tdouble x = Math.abs(ma - ha);\n\t\tx = Math.min(x, 360 - x);\n\t\tx = Math.toRadians(x);\n\t\t\n\t\tdouble ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x));\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\tdouble ma = 360 / 60 * m;\n\t\tdouble ha = 360 / 12 * h + 30.0 / 60 * m;\n\t\t\n\t\tdouble x = Math.abs(ma - ha);\n\t\tx = Math.min(x, 360 - x);\n\t\tx = Math.toRadians(x);\n\t\t\n\t\tdouble ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x));\n\t\t\n\t\tSystem.out.println(ans);\n\t\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double ma = 360 / 60 * m; double ha = 360 / 12 * h + 30.0 / 60 * m; double x = Math.abs(ma - ha); x = Math.min(x, 360 - x); x = Math.toRadians(x); double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(x)); System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 17, 13, 2, 17, 13, 2, 17, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 8, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 69, 71 ], [ 8, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 8, 81 ], [ 81, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 83, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 110, 116 ], [ 8, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String A = scan.next();\n int a = Integer.parseInt(A);\n String B = scan.next();\n int b = Integer.parseInt(B);\n String H = scan.next();\n int h = Integer.parseInt(H);\n String M = scan.next();\n int m = Integer.parseInt(M);\n\n double angle = Math.abs((30 * h + 0.5 * m) - 6 * m);\n double cos = Math.cos(Math.toRadians(angle));\n\n double ans;\n if (angle == 0) {\n ans = Math.abs(a - b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos));\n }\n\n System.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String A = scan.next();\n int a = Integer.parseInt(A);\n String B = scan.next();\n int b = Integer.parseInt(B);\n String H = scan.next();\n int h = Integer.parseInt(H);\n String M = scan.next();\n int m = Integer.parseInt(M);\n\n double angle = Math.abs((30 * h + 0.5 * m) - 6 * m);\n double cos = Math.cos(Math.toRadians(angle));\n\n double ans;\n if (angle == 0) {\n ans = Math.abs(a - b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos));\n }\n\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String A = scan.next();\n int a = Integer.parseInt(A);\n String B = scan.next();\n int b = Integer.parseInt(B);\n String H = scan.next();\n int h = Integer.parseInt(H);\n String M = scan.next();\n int m = Integer.parseInt(M);\n\n double angle = Math.abs((30 * h + 0.5 * m) - 6 * m);\n double cos = Math.cos(Math.toRadians(angle));\n\n double ans;\n if (angle == 0) {\n ans = Math.abs(a - b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos));\n }\n\n System.out.println(ans);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String A = scan.next();\n int a = Integer.parseInt(A);\n String B = scan.next();\n int b = Integer.parseInt(B);\n String H = scan.next();\n int h = Integer.parseInt(H);\n String M = scan.next();\n int m = Integer.parseInt(M);\n\n double angle = Math.abs((30 * h + 0.5 * m) - 6 * m);\n double cos = Math.cos(Math.toRadians(angle));\n\n double ans;\n if (angle == 0) {\n ans = Math.abs(a - b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos));\n }\n\n System.out.println(ans);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String A = scan.next();", "A", "scan.next()", "scan.next", "scan", "int a = Integer.parseInt(A);", "a", "Integer.parseInt(A)", "Integer.parseInt", "Integer", "A", "String B = scan.next();", "B", "scan.next()", "scan.next", "scan", "int b = Integer.parseInt(B);", "b", "Integer.parseInt(B)", "Integer.parseInt", "Integer", "B", "String H = scan.next();", "H", "scan.next()", "scan.next", "scan", "int h = Integer.parseInt(H);", "h", "Integer.parseInt(H)", "Integer.parseInt", "Integer", "H", "String M = scan.next();", "M", "scan.next()", "scan.next", "scan", "int m = Integer.parseInt(M);", "m", "Integer.parseInt(M)", "Integer.parseInt", "Integer", "M", "double angle = Math.abs((30 * h + 0.5 * m) - 6 * m);", "angle", "Math.abs((30 * h + 0.5 * m) - 6 * m)", "Math.abs", "Math", "(30 * h + 0.5 * m) - 6 * m", "(30 * h + 0.5 * m)", "30 * h", "30", "h", "0.5 * m", "0.5", "m", "6 * m", "6", "m", "double cos = Math.cos(Math.toRadians(angle));", "cos", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "double ans;", "ans", "if (angle == 0) {\n ans = Math.abs(a - b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos));\n }", "angle == 0", "angle", "0", "{\n ans = Math.abs(a - b);\n }", "ans = Math.abs(a - b)", "ans", "Math.abs(a - b)", "Math.abs", "Math", "a - b", "a", "b", "{\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos));\n }", "ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos))", "ans", "Math.sqrt((a * a) + (b * b) - (2 * a * b * cos))", "Math.sqrt", "Math", "(a * a) + (b * b) - (2 * a * b * cos)", "(a * a) + (b * b)", "(a * a)", "a", "a", "(b * b)", "b", "b", "(2 * a * b * cos)", "b", "2 * a * b * cos", "2", "a", "b", "cos", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String A = scan.next();\n int a = Integer.parseInt(A);\n String B = scan.next();\n int b = Integer.parseInt(B);\n String H = scan.next();\n int h = Integer.parseInt(H);\n String M = scan.next();\n int m = Integer.parseInt(M);\n\n double angle = Math.abs((30 * h + 0.5 * m) - 6 * m);\n double cos = Math.cos(Math.toRadians(angle));\n\n double ans;\n if (angle == 0) {\n ans = Math.abs(a - b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos));\n }\n\n System.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String A = scan.next();\n int a = Integer.parseInt(A);\n String B = scan.next();\n int b = Integer.parseInt(B);\n String H = scan.next();\n int h = Integer.parseInt(H);\n String M = scan.next();\n int m = Integer.parseInt(M);\n\n double angle = Math.abs((30 * h + 0.5 * m) - 6 * m);\n double cos = Math.cos(Math.toRadians(angle));\n\n double ans;\n if (angle == 0) {\n ans = Math.abs(a - b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos));\n }\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String A = scan.next(); int a = Integer.parseInt(A); String B = scan.next(); int b = Integer.parseInt(B); String H = scan.next(); int h = Integer.parseInt(H); String M = scan.next(); int m = Integer.parseInt(M); double angle = Math.abs((30 * h + 0.5 * m) - 6 * m); double cos = Math.cos(Math.toRadians(angle)); double ans; if (angle == 0) { ans = Math.abs(a - b); } else { ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * cos)); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 2, 2, 2, 17, 13, 2, 13, 17, 2, 17, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 72, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 72, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 6, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n Double A = in.nextDouble(); \n Double B = in.nextDouble(); \n Double H = in.nextDouble(); \n double M = in.nextDouble(); \n double x = Math.abs(30*H+M/2-6*M);\n double X = Math.cos(Math.toRadians(x));\n double C = Math.sqrt(A*A+B*B-2*A*B*X);\n System.out.println(C);\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 Double A = in.nextDouble(); \n Double B = in.nextDouble(); \n Double H = in.nextDouble(); \n double M = in.nextDouble(); \n double x = Math.abs(30*H+M/2-6*M);\n double X = Math.cos(Math.toRadians(x));\n double C = Math.sqrt(A*A+B*B-2*A*B*X);\n System.out.println(C);\n }\n }", "Main", "public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n Double A = in.nextDouble(); \n Double B = in.nextDouble(); \n Double H = in.nextDouble(); \n double M = in.nextDouble(); \n double x = Math.abs(30*H+M/2-6*M);\n double X = Math.cos(Math.toRadians(x));\n double C = Math.sqrt(A*A+B*B-2*A*B*X);\n System.out.println(C);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n Double A = in.nextDouble(); \n Double B = in.nextDouble(); \n Double H = in.nextDouble(); \n double M = in.nextDouble(); \n double x = Math.abs(30*H+M/2-6*M);\n double X = Math.cos(Math.toRadians(x));\n double C = Math.sqrt(A*A+B*B-2*A*B*X);\n System.out.println(C);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "Double A = in.nextDouble();", "A", "in.nextDouble()", "in.nextDouble", "in", "Double B = in.nextDouble();", "B", "in.nextDouble()", "in.nextDouble", "in", "Double H = in.nextDouble();", "H", "in.nextDouble()", "in.nextDouble", "in", "double M = in.nextDouble();", "M", "in.nextDouble()", "in.nextDouble", "in", "double x = Math.abs(30*H+M/2-6*M);", "x", "Math.abs(30*H+M/2-6*M)", "Math.abs", "Math", "30*H+M/2-6*M", "30*H+M/2", "30*H", "30", "H", "M/2", "M", "2", "6*M", "6", "M", "double X = Math.cos(Math.toRadians(x));", "X", "Math.cos(Math.toRadians(x))", "Math.cos", "Math", "Math.toRadians(x)", "Math.toRadians", "Math", "x", "double C = Math.sqrt(A*A+B*B-2*A*B*X);", "C", "Math.sqrt(A*A+B*B-2*A*B*X)", "Math.sqrt", "Math", "A*A+B*B-2*A*B*X", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*X", "B", "2*A*B*X", "2", "A", "B", "X", "System.out.println(C)", "System.out.println", "System.out", "System", "System.out", "C", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n Double A = in.nextDouble(); \n Double B = in.nextDouble(); \n Double H = in.nextDouble(); \n double M = in.nextDouble(); \n double x = Math.abs(30*H+M/2-6*M);\n double X = Math.cos(Math.toRadians(x));\n double C = Math.sqrt(A*A+B*B-2*A*B*X);\n System.out.println(C);\n }\n }", "public class Main {\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n Double A = in.nextDouble(); \n Double B = in.nextDouble(); \n Double H = in.nextDouble(); \n double M = in.nextDouble(); \n double x = Math.abs(30*H+M/2-6*M);\n double X = Math.cos(Math.toRadians(x));\n double C = Math.sqrt(A*A+B*B-2*A*B*X);\n System.out.println(C);\n }\n }", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); Double A = in.nextDouble(); Double B = in.nextDouble(); Double H = in.nextDouble(); double M = in.nextDouble(); double x = Math.abs(30*H+M/2-6*M); double X = Math.cos(Math.toRadians(x)); double C = Math.sqrt(A*A+B*B-2*A*B*X); System.out.println(C); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 4, 18, 13, 2, 2, 17, 13, 2, 13, 17, 17, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 34, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 61, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 8, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 6, 81 ], [ 81, 82 ], [ 0, 83 ], [ 83, 84 ], [ 83, 85 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int A=input.nextInt();\n int B=input.nextInt();\n int H=input.nextInt();\n int M=input.nextInt();\n double angle=Math.abs(5.5*M-H*30)%360;\n double c=Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180));\n System.out.print(c);\n } \n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int A=input.nextInt();\n int B=input.nextInt();\n int H=input.nextInt();\n int M=input.nextInt();\n double angle=Math.abs(5.5*M-H*30)%360;\n double c=Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180));\n System.out.print(c);\n } \n}", "Main", "public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int A=input.nextInt();\n int B=input.nextInt();\n int H=input.nextInt();\n int M=input.nextInt();\n double angle=Math.abs(5.5*M-H*30)%360;\n double c=Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180));\n System.out.print(c);\n }", "main", "{\n Scanner input=new Scanner(System.in);\n int A=input.nextInt();\n int B=input.nextInt();\n int H=input.nextInt();\n int M=input.nextInt();\n double angle=Math.abs(5.5*M-H*30)%360;\n double c=Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180));\n System.out.print(c);\n }", "Scanner input=new Scanner(System.in);", "input", "new Scanner(System.in)", "int A=input.nextInt();", "A", "input.nextInt()", "input.nextInt", "input", "int B=input.nextInt();", "B", "input.nextInt()", "input.nextInt", "input", "int H=input.nextInt();", "H", "input.nextInt()", "input.nextInt", "input", "int M=input.nextInt();", "M", "input.nextInt()", "input.nextInt", "input", "double angle=Math.abs(5.5*M-H*30)%360;", "angle", "Math.abs(5.5*M-H*30)%360", "Math.abs(5.5*M-H*30)", "Math.abs", "Math", "5.5*M-H*30", "5.5*M", "5.5", "M", "H*30", "H", "30", "360", "double c=Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180));", "c", "Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180))", "Math.sqrt", "Math", "A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180)", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.PI*angle/180)", "B", "2*A*B*Math.cos(Math.PI*angle/180)", "2", "A", "B", "Math.cos(Math.PI*angle/180)", "Math.cos", "Math", "Math.PI*angle/180", "Math.PI*angle", "Math.PI", "Math", "Math.PI", "angle", "180", "System.out.print(c)", "System.out.print", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int A=input.nextInt();\n int B=input.nextInt();\n int H=input.nextInt();\n int M=input.nextInt();\n double angle=Math.abs(5.5*M-H*30)%360;\n double c=Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180));\n System.out.print(c);\n } \n}", "public class Main{\n public static void main(String[] args){\n Scanner input=new Scanner(System.in);\n int A=input.nextInt();\n int B=input.nextInt();\n int H=input.nextInt();\n int M=input.nextInt();\n double angle=Math.abs(5.5*M-H*30)%360;\n double c=Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180));\n System.out.print(c);\n } \n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner input=new Scanner(System.in); int A=input.nextInt(); int B=input.nextInt(); int H=input.nextInt(); int M=input.nextInt(); double angle=Math.abs(5.5*M-H*30)%360; double c=Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.PI*angle/180)); System.out.print(c); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 13, 41, 13, 4, 18, 13, 13, 41, 13, 2, 2, 13, 17, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 2, 2, 17, 17, 17, 41, 13, 2, 17, 17, 41, 13, 17, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 183, 8 ], [ 183, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 11, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 11, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 11, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 11, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 11, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 11, 78 ], [ 78, 79 ], [ 78, 80 ], [ 11, 81 ], [ 81, 82 ], [ 81, 83 ], [ 11, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 11, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 11, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 109, 111 ], [ 11, 112 ], [ 112, 113 ], [ 112, 114 ], [ 11, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 120, 122 ], [ 115, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 131, 135 ], [ 130, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 136, 140 ], [ 129, 141 ], [ 143, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 115, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 161, 163 ], [ 154, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 171, 173 ], [ 11, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 9, 180 ], [ 180, 181 ], [ 0, 182 ], [ 182, 183 ], [ 182, 184 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\n\npublic class Main {\n public static void main(String[] args) {\n // 標準入力取得\n Scanner sc = new Scanner(System.in); \n String iShortNeedle = sc.next();\n String iLongNeedle = sc.next();\n String h = sc.next();\n String m = sc.next();\n // 入力値加工\n double hour = Double.parseDouble(h);\n double min = Double.parseDouble(m);\n double wholeMin = (hour*60) + min;\n double shortNeedle = Double.parseDouble(iShortNeedle);\n double longNeedle = Double.parseDouble(iLongNeedle);\n\n// check\n// System.out.println(\"shortNlength:\" + shortNeedle + \"cm\");\n// System.out.println(\"longNlength:\" + longNeedle + \"cm\");\n// System.out.println(\"hour:\" + hour + \"H\");\n// System.out.println(\"min:\" + min + \"min\");\n// System.out.println(\"wholeMin: \"+ wholeMin + \"min\");\n\n double shortAngleByOneMin = (360.0/12.0)/60.0;\n double longAngleByOneMin = 360.0/60.0;\n// System.out.println(\"1分で短針が動く度数: \"+ shortAngleByOneMin + \"°\");\n// System.out.println(\"1分で長針が動く度数: \"+ longAngleByOneMin + \"°\");\n// System.out.println(\"XX分で短針が動く度数: \"+ shortAngleByOneMin * wholeMin);\n// System.out.println(\"XX分で長針が動く度数: \"+ longAngleByOneMin * min);\n\n // 各針の角度を計算する\n double rHour = 0; \n double rMin = 0;\n if(wholeMin!=0){\n rHour = shortAngleByOneMin * wholeMin; \n }\n if(min!=0){\n rMin = longAngleByOneMin * min;\n }\n double diffAngle = Math.abs(rHour - rMin); \n\n// check\n// System.out.println(\"rHour: \" + rHour + \"°\");\n// System.out.println(\"rMin: \" + rMin + \"°\");\n// System.out.println(\"diffAngle: \" + diffAngle + \"°\");\n\n double aLength = 0;\n if(diffAngle!=0 || diffAngle!=180){\n\t aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) );\n }else if(diffAngle==0){\n aLength = longNeedle - shortNeedle; \n }else if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }\n \n//answer\n System.out.println(aLength);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n public static void main(String[] args) {\n // 標準入力取得\n Scanner sc = new Scanner(System.in); \n String iShortNeedle = sc.next();\n String iLongNeedle = sc.next();\n String h = sc.next();\n String m = sc.next();\n // 入力値加工\n double hour = Double.parseDouble(h);\n double min = Double.parseDouble(m);\n double wholeMin = (hour*60) + min;\n double shortNeedle = Double.parseDouble(iShortNeedle);\n double longNeedle = Double.parseDouble(iLongNeedle);\n\n// check\n// System.out.println(\"shortNlength:\" + shortNeedle + \"cm\");\n// System.out.println(\"longNlength:\" + longNeedle + \"cm\");\n// System.out.println(\"hour:\" + hour + \"H\");\n// System.out.println(\"min:\" + min + \"min\");\n// System.out.println(\"wholeMin: \"+ wholeMin + \"min\");\n\n double shortAngleByOneMin = (360.0/12.0)/60.0;\n double longAngleByOneMin = 360.0/60.0;\n// System.out.println(\"1分で短針が動く度数: \"+ shortAngleByOneMin + \"°\");\n// System.out.println(\"1分で長針が動く度数: \"+ longAngleByOneMin + \"°\");\n// System.out.println(\"XX分で短針が動く度数: \"+ shortAngleByOneMin * wholeMin);\n// System.out.println(\"XX分で長針が動く度数: \"+ longAngleByOneMin * min);\n\n // 各針の角度を計算する\n double rHour = 0; \n double rMin = 0;\n if(wholeMin!=0){\n rHour = shortAngleByOneMin * wholeMin; \n }\n if(min!=0){\n rMin = longAngleByOneMin * min;\n }\n double diffAngle = Math.abs(rHour - rMin); \n\n// check\n// System.out.println(\"rHour: \" + rHour + \"°\");\n// System.out.println(\"rMin: \" + rMin + \"°\");\n// System.out.println(\"diffAngle: \" + diffAngle + \"°\");\n\n double aLength = 0;\n if(diffAngle!=0 || diffAngle!=180){\n\t aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) );\n }else if(diffAngle==0){\n aLength = longNeedle - shortNeedle; \n }else if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }\n \n//answer\n System.out.println(aLength);\n }\n}", "Main", "public static void main(String[] args) {\n // 標準入力取得\n Scanner sc = new Scanner(System.in); \n String iShortNeedle = sc.next();\n String iLongNeedle = sc.next();\n String h = sc.next();\n String m = sc.next();\n // 入力値加工\n double hour = Double.parseDouble(h);\n double min = Double.parseDouble(m);\n double wholeMin = (hour*60) + min;\n double shortNeedle = Double.parseDouble(iShortNeedle);\n double longNeedle = Double.parseDouble(iLongNeedle);\n\n// check\n// System.out.println(\"shortNlength:\" + shortNeedle + \"cm\");\n// System.out.println(\"longNlength:\" + longNeedle + \"cm\");\n// System.out.println(\"hour:\" + hour + \"H\");\n// System.out.println(\"min:\" + min + \"min\");\n// System.out.println(\"wholeMin: \"+ wholeMin + \"min\");\n\n double shortAngleByOneMin = (360.0/12.0)/60.0;\n double longAngleByOneMin = 360.0/60.0;\n// System.out.println(\"1分で短針が動く度数: \"+ shortAngleByOneMin + \"°\");\n// System.out.println(\"1分で長針が動く度数: \"+ longAngleByOneMin + \"°\");\n// System.out.println(\"XX分で短針が動く度数: \"+ shortAngleByOneMin * wholeMin);\n// System.out.println(\"XX分で長針が動く度数: \"+ longAngleByOneMin * min);\n\n // 各針の角度を計算する\n double rHour = 0; \n double rMin = 0;\n if(wholeMin!=0){\n rHour = shortAngleByOneMin * wholeMin; \n }\n if(min!=0){\n rMin = longAngleByOneMin * min;\n }\n double diffAngle = Math.abs(rHour - rMin); \n\n// check\n// System.out.println(\"rHour: \" + rHour + \"°\");\n// System.out.println(\"rMin: \" + rMin + \"°\");\n// System.out.println(\"diffAngle: \" + diffAngle + \"°\");\n\n double aLength = 0;\n if(diffAngle!=0 || diffAngle!=180){\n\t aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) );\n }else if(diffAngle==0){\n aLength = longNeedle - shortNeedle; \n }else if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }\n \n//answer\n System.out.println(aLength);\n }", "main", "{\n // 標準入力取得\n Scanner sc = new Scanner(System.in); \n String iShortNeedle = sc.next();\n String iLongNeedle = sc.next();\n String h = sc.next();\n String m = sc.next();\n // 入力値加工\n double hour = Double.parseDouble(h);\n double min = Double.parseDouble(m);\n double wholeMin = (hour*60) + min;\n double shortNeedle = Double.parseDouble(iShortNeedle);\n double longNeedle = Double.parseDouble(iLongNeedle);\n\n// check\n// System.out.println(\"shortNlength:\" + shortNeedle + \"cm\");\n// System.out.println(\"longNlength:\" + longNeedle + \"cm\");\n// System.out.println(\"hour:\" + hour + \"H\");\n// System.out.println(\"min:\" + min + \"min\");\n// System.out.println(\"wholeMin: \"+ wholeMin + \"min\");\n\n double shortAngleByOneMin = (360.0/12.0)/60.0;\n double longAngleByOneMin = 360.0/60.0;\n// System.out.println(\"1分で短針が動く度数: \"+ shortAngleByOneMin + \"°\");\n// System.out.println(\"1分で長針が動く度数: \"+ longAngleByOneMin + \"°\");\n// System.out.println(\"XX分で短針が動く度数: \"+ shortAngleByOneMin * wholeMin);\n// System.out.println(\"XX分で長針が動く度数: \"+ longAngleByOneMin * min);\n\n // 各針の角度を計算する\n double rHour = 0; \n double rMin = 0;\n if(wholeMin!=0){\n rHour = shortAngleByOneMin * wholeMin; \n }\n if(min!=0){\n rMin = longAngleByOneMin * min;\n }\n double diffAngle = Math.abs(rHour - rMin); \n\n// check\n// System.out.println(\"rHour: \" + rHour + \"°\");\n// System.out.println(\"rMin: \" + rMin + \"°\");\n// System.out.println(\"diffAngle: \" + diffAngle + \"°\");\n\n double aLength = 0;\n if(diffAngle!=0 || diffAngle!=180){\n\t aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) );\n }else if(diffAngle==0){\n aLength = longNeedle - shortNeedle; \n }else if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }\n \n//answer\n System.out.println(aLength);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String iShortNeedle = sc.next();", "iShortNeedle", "sc.next()", "sc.next", "sc", "String iLongNeedle = sc.next();", "iLongNeedle", "sc.next()", "sc.next", "sc", "String h = sc.next();", "h", "sc.next()", "sc.next", "sc", "String m = sc.next();", "m", "sc.next()", "sc.next", "sc", "double hour = Double.parseDouble(h);", "hour", "Double.parseDouble(h)", "Double.parseDouble", "Double", "h", "double min = Double.parseDouble(m);", "min", "Double.parseDouble(m)", "Double.parseDouble", "Double", "m", "double wholeMin = (hour*60) + min;", "wholeMin", "(hour*60) + min", "(hour*60)", "hour", "60", "min", "double shortNeedle = Double.parseDouble(iShortNeedle);", "shortNeedle", "Double.parseDouble(iShortNeedle)", "Double.parseDouble", "Double", "iShortNeedle", "double longNeedle = Double.parseDouble(iLongNeedle);", "longNeedle", "Double.parseDouble(iLongNeedle)", "Double.parseDouble", "Double", "iLongNeedle", "double shortAngleByOneMin = (360.0/12.0)/60.0;", "shortAngleByOneMin", "(360.0/12.0)/60.0", "(360.0/12.0)", "360.0", "12.0", "60.0", "double longAngleByOneMin = 360.0/60.0;", "longAngleByOneMin", "360.0/60.0", "360.0", "60.0", "double rHour = 0;", "rHour", "0", "double rMin = 0;", "rMin", "0", "if(wholeMin!=0){\n rHour = shortAngleByOneMin * wholeMin; \n }", "wholeMin!=0", "wholeMin", "0", "{\n rHour = shortAngleByOneMin * wholeMin; \n }", "rHour = shortAngleByOneMin * wholeMin", "rHour", "shortAngleByOneMin * wholeMin", "shortAngleByOneMin", "wholeMin", "if(min!=0){\n rMin = longAngleByOneMin * min;\n }", "min!=0", "min", "0", "{\n rMin = longAngleByOneMin * min;\n }", "rMin = longAngleByOneMin * min", "rMin", "longAngleByOneMin * min", "longAngleByOneMin", "min", "double diffAngle = Math.abs(rHour - rMin);", "diffAngle", "Math.abs(rHour - rMin)", "Math.abs", "Math", "rHour - rMin", "rHour", "rMin", "double aLength = 0;", "aLength", "0", "if(diffAngle!=0 || diffAngle!=180){\n\t aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) );\n }else if(diffAngle==0){\n aLength = longNeedle - shortNeedle; \n }else if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }", "diffAngle!=0 || diffAngle!=180", "diffAngle!=0", "diffAngle", "0", "diffAngle!=180", "diffAngle", "180", "{\n\t aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) );\n }", "aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) )", "aLength", "Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) )", "Math.sqrt", "Math", "Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle))", "Math.pow(shortNeedle,2) + Math.pow(longNeedle,2)", "Math.pow(shortNeedle,2)", "Math.pow", "Math", "shortNeedle", "2", "Math.pow(longNeedle,2)", "Math.pow", "Math", "longNeedle", "2", "2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle))", "longNeedle", "2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle))", "2", "shortNeedle", "longNeedle", "Math.cos(Math.toRadians(diffAngle))", "Math.cos", "Math", "Math.toRadians(diffAngle)", "Math.toRadians", "Math", "diffAngle", "if(diffAngle==0){\n aLength = longNeedle - shortNeedle; \n }else if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }", "diffAngle==0", "diffAngle", "0", "{\n aLength = longNeedle - shortNeedle; \n }", "aLength = longNeedle - shortNeedle", "aLength", "longNeedle - shortNeedle", "longNeedle", "shortNeedle", "if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }", "diffAngle==180", "diffAngle", "180", "{\n aLength = longNeedle + shortNeedle;\n }", "aLength = longNeedle + shortNeedle", "aLength", "longNeedle + shortNeedle", "longNeedle", "shortNeedle", "System.out.println(aLength)", "System.out.println", "System.out", "System", "System.out", "aLength", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n // 標準入力取得\n Scanner sc = new Scanner(System.in); \n String iShortNeedle = sc.next();\n String iLongNeedle = sc.next();\n String h = sc.next();\n String m = sc.next();\n // 入力値加工\n double hour = Double.parseDouble(h);\n double min = Double.parseDouble(m);\n double wholeMin = (hour*60) + min;\n double shortNeedle = Double.parseDouble(iShortNeedle);\n double longNeedle = Double.parseDouble(iLongNeedle);\n\n// check\n// System.out.println(\"shortNlength:\" + shortNeedle + \"cm\");\n// System.out.println(\"longNlength:\" + longNeedle + \"cm\");\n// System.out.println(\"hour:\" + hour + \"H\");\n// System.out.println(\"min:\" + min + \"min\");\n// System.out.println(\"wholeMin: \"+ wholeMin + \"min\");\n\n double shortAngleByOneMin = (360.0/12.0)/60.0;\n double longAngleByOneMin = 360.0/60.0;\n// System.out.println(\"1分で短針が動く度数: \"+ shortAngleByOneMin + \"°\");\n// System.out.println(\"1分で長針が動く度数: \"+ longAngleByOneMin + \"°\");\n// System.out.println(\"XX分で短針が動く度数: \"+ shortAngleByOneMin * wholeMin);\n// System.out.println(\"XX分で長針が動く度数: \"+ longAngleByOneMin * min);\n\n // 各針の角度を計算する\n double rHour = 0; \n double rMin = 0;\n if(wholeMin!=0){\n rHour = shortAngleByOneMin * wholeMin; \n }\n if(min!=0){\n rMin = longAngleByOneMin * min;\n }\n double diffAngle = Math.abs(rHour - rMin); \n\n// check\n// System.out.println(\"rHour: \" + rHour + \"°\");\n// System.out.println(\"rMin: \" + rMin + \"°\");\n// System.out.println(\"diffAngle: \" + diffAngle + \"°\");\n\n double aLength = 0;\n if(diffAngle!=0 || diffAngle!=180){\n\t aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) );\n }else if(diffAngle==0){\n aLength = longNeedle - shortNeedle; \n }else if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }\n \n//answer\n System.out.println(aLength);\n }\n}", "public class Main {\n public static void main(String[] args) {\n // 標準入力取得\n Scanner sc = new Scanner(System.in); \n String iShortNeedle = sc.next();\n String iLongNeedle = sc.next();\n String h = sc.next();\n String m = sc.next();\n // 入力値加工\n double hour = Double.parseDouble(h);\n double min = Double.parseDouble(m);\n double wholeMin = (hour*60) + min;\n double shortNeedle = Double.parseDouble(iShortNeedle);\n double longNeedle = Double.parseDouble(iLongNeedle);\n\n// check\n// System.out.println(\"shortNlength:\" + shortNeedle + \"cm\");\n// System.out.println(\"longNlength:\" + longNeedle + \"cm\");\n// System.out.println(\"hour:\" + hour + \"H\");\n// System.out.println(\"min:\" + min + \"min\");\n// System.out.println(\"wholeMin: \"+ wholeMin + \"min\");\n\n double shortAngleByOneMin = (360.0/12.0)/60.0;\n double longAngleByOneMin = 360.0/60.0;\n// System.out.println(\"1分で短針が動く度数: \"+ shortAngleByOneMin + \"°\");\n// System.out.println(\"1分で長針が動く度数: \"+ longAngleByOneMin + \"°\");\n// System.out.println(\"XX分で短針が動く度数: \"+ shortAngleByOneMin * wholeMin);\n// System.out.println(\"XX分で長針が動く度数: \"+ longAngleByOneMin * min);\n\n // 各針の角度を計算する\n double rHour = 0; \n double rMin = 0;\n if(wholeMin!=0){\n rHour = shortAngleByOneMin * wholeMin; \n }\n if(min!=0){\n rMin = longAngleByOneMin * min;\n }\n double diffAngle = Math.abs(rHour - rMin); \n\n// check\n// System.out.println(\"rHour: \" + rHour + \"°\");\n// System.out.println(\"rMin: \" + rMin + \"°\");\n// System.out.println(\"diffAngle: \" + diffAngle + \"°\");\n\n double aLength = 0;\n if(diffAngle!=0 || diffAngle!=180){\n\t aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) );\n }else if(diffAngle==0){\n aLength = longNeedle - shortNeedle; \n }else if(diffAngle==180){\n aLength = longNeedle + shortNeedle;\n }\n \n//answer\n System.out.println(aLength);\n }\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; public class Main { public static void main(String[] args) { // 標準入力取得 Scanner sc = new Scanner(System.in); String iShortNeedle = sc.next(); String iLongNeedle = sc.next(); String h = sc.next(); String m = sc.next(); // 入力値加工 double hour = Double.parseDouble(h); double min = Double.parseDouble(m); double wholeMin = (hour*60) + min; double shortNeedle = Double.parseDouble(iShortNeedle); double longNeedle = Double.parseDouble(iLongNeedle); // check // System.out.println("shortNlength:" + shortNeedle + "cm"); // System.out.println("longNlength:" + longNeedle + "cm"); // System.out.println("hour:" + hour + "H"); // System.out.println("min:" + min + "min"); // System.out.println("wholeMin: "+ wholeMin + "min"); double shortAngleByOneMin = (360.0/12.0)/60.0; double longAngleByOneMin = 360.0/60.0; // System.out.println("1分で短針が動く度数: "+ shortAngleByOneMin + "°"); // System.out.println("1分で長針が動く度数: "+ longAngleByOneMin + "°"); // System.out.println("XX分で短針が動く度数: "+ shortAngleByOneMin * wholeMin); // System.out.println("XX分で長針が動く度数: "+ longAngleByOneMin * min); // 各針の角度を計算する double rHour = 0; double rMin = 0; if(wholeMin!=0){ rHour = shortAngleByOneMin * wholeMin; } if(min!=0){ rMin = longAngleByOneMin * min; } double diffAngle = Math.abs(rHour - rMin); // check // System.out.println("rHour: " + rHour + "°"); // System.out.println("rMin: " + rMin + "°"); // System.out.println("diffAngle: " + diffAngle + "°"); double aLength = 0; if(diffAngle!=0 || diffAngle!=180){ aLength = Math.sqrt( Math.pow(shortNeedle,2) + Math.pow(longNeedle,2) - 2 * shortNeedle * longNeedle * Math.cos(Math.toRadians(diffAngle)) ); }else if(diffAngle==0){ aLength = longNeedle - shortNeedle; }else if(diffAngle==180){ aLength = longNeedle + shortNeedle; } //answer System.out.println(aLength); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 2, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 0, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 104, 8 ], [ 104, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 11, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 11, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 11, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 11, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 11, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 84, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 11, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 9, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\t//ここから角度を求める計算\n\t\tdouble minAngle = (double)M * 6;\n\t\tdouble onlyHour = (double)H * 30;\n\t\tdouble hourAngle = onlyHour + (double)M * 0.5;\n\t\tdouble angle = Math.abs(minAngle - hourAngle);\n\t\tif(angle > 180)\n\t\tangle = 360 - angle;\n\n\t\t//ここから長さを求める計算\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\t//ここから角度を求める計算\n\t\tdouble minAngle = (double)M * 6;\n\t\tdouble onlyHour = (double)H * 30;\n\t\tdouble hourAngle = onlyHour + (double)M * 0.5;\n\t\tdouble angle = Math.abs(minAngle - hourAngle);\n\t\tif(angle > 180)\n\t\tangle = 360 - angle;\n\n\t\t//ここから長さを求める計算\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\t//ここから角度を求める計算\n\t\tdouble minAngle = (double)M * 6;\n\t\tdouble onlyHour = (double)H * 30;\n\t\tdouble hourAngle = onlyHour + (double)M * 0.5;\n\t\tdouble angle = Math.abs(minAngle - hourAngle);\n\t\tif(angle > 180)\n\t\tangle = 360 - angle;\n\n\t\t//ここから長さを求める計算\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\t//ここから角度を求める計算\n\t\tdouble minAngle = (double)M * 6;\n\t\tdouble onlyHour = (double)H * 30;\n\t\tdouble hourAngle = onlyHour + (double)M * 0.5;\n\t\tdouble angle = Math.abs(minAngle - hourAngle);\n\t\tif(angle > 180)\n\t\tangle = 360 - angle;\n\n\t\t//ここから長さを求める計算\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double minAngle = (double)M * 6;", "minAngle", "(double)M * 6", "(double)M", "6", "double onlyHour = (double)H * 30;", "onlyHour", "(double)H * 30", "(double)H", "30", "double hourAngle = onlyHour + (double)M * 0.5;", "hourAngle", "onlyHour + (double)M * 0.5", "onlyHour", "(double)M * 0.5", "(double)M", "0.5", "double angle = Math.abs(minAngle - hourAngle);", "angle", "Math.abs(minAngle - hourAngle)", "Math.abs", "Math", "minAngle - hourAngle", "minAngle", "hourAngle", "if(angle > 180)\n\t\tangle = 360 - angle;", "angle > 180", "angle", "180", "angle = 360 - angle", "angle", "360 - angle", "360", "angle", "double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle)));", "ans", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle)))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle))", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(Math.toRadians(angle))", "B", "2 * A * B * Math.cos(Math.toRadians(angle))", "2", "A", "B", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\t//ここから角度を求める計算\n\t\tdouble minAngle = (double)M * 6;\n\t\tdouble onlyHour = (double)H * 30;\n\t\tdouble hourAngle = onlyHour + (double)M * 0.5;\n\t\tdouble angle = Math.abs(minAngle - hourAngle);\n\t\tif(angle > 180)\n\t\tangle = 360 - angle;\n\n\t\t//ここから長さを求める計算\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\t//ここから角度を求める計算\n\t\tdouble minAngle = (double)M * 6;\n\t\tdouble onlyHour = (double)H * 30;\n\t\tdouble hourAngle = onlyHour + (double)M * 0.5;\n\t\tdouble angle = Math.abs(minAngle - hourAngle);\n\t\tif(angle > 180)\n\t\tangle = 360 - angle;\n\n\t\t//ここから長さを求める計算\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(ans);\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); //ここから角度を求める計算 double minAngle = (double)M * 6; double onlyHour = (double)H * 30; double hourAngle = onlyHour + (double)M * 0.5; double angle = Math.abs(minAngle - hourAngle); if(angle > 180) angle = 360 - angle; //ここから長さを求める計算 double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(angle))); System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 2, 2, 17, 18, 13, 13, 17, 41, 13, 2, 2, 17, 18, 13, 13, 17, 12, 13, 30, 41, 13, 20, 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, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 2, 2, 17, 13, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 95, 5 ], [ 95, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 8, 14 ], [ 95, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 20, 22 ], [ 17, 23 ], [ 95, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 26, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 26, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 65, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 73, 79 ], [ 72, 80 ], [ 80, 81 ], [ 80, 82 ], [ 26, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 26, 89 ], [ 89, 90 ], [ 90, 91 ], [ 24, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.util.*;\n\npublic class Main {\n static final double H_SPEED = 2*Math.PI/720;\n static final double M_SPEED = 2*Math.PI/60;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double res = Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED));\n System.out.println(res);\n sc.close();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n static final double H_SPEED = 2*Math.PI/720;\n static final double M_SPEED = 2*Math.PI/60;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double res = Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED));\n System.out.println(res);\n sc.close();\n }\n}", "Main", "static final double H_SPEED = 2*Math.PI/720;", "H_SPEED", "2*Math.PI/720", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "720", "static final double M_SPEED = 2*Math.PI/60;", "M_SPEED", "2*Math.PI/60", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "60", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double res = Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED));\n System.out.println(res);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double res = Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED));\n System.out.println(res);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a = sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b = sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "double h = sc.nextDouble();", "h", "sc.nextDouble()", "sc.nextDouble", "sc", "double m = sc.nextDouble();", "m", "sc.nextDouble()", "sc.nextDouble", "sc", "double res = Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED));", "res", "Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED))", "Math.sqrt", "Math", "a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED)", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED)", "b", "2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED)", "2", "a", "b", "Math.cos((60*h+m)*H_SPEED-m*M_SPEED)", "Math.cos", "Math", "(60*h+m)*H_SPEED-m*M_SPEED", "(60*h+m)*H_SPEED", "(60*h+m)", "60*h", "60", "h", "m", "H_SPEED", "m*M_SPEED", "m", "M_SPEED", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n static final double H_SPEED = 2*Math.PI/720;\n static final double M_SPEED = 2*Math.PI/60;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double res = Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED));\n System.out.println(res);\n sc.close();\n }\n}", "public class Main {\n static final double H_SPEED = 2*Math.PI/720;\n static final double M_SPEED = 2*Math.PI/60;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double res = Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED));\n System.out.println(res);\n sc.close();\n }\n}", "Main" ]
import java.util.*; public class Main { static final double H_SPEED = 2*Math.PI/720; static final double M_SPEED = 2*Math.PI/60; public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double h = sc.nextDouble(); double m = sc.nextDouble(); double res = Math.sqrt(a*a+b*b-2*a*b*Math.cos((60*h+m)*H_SPEED-m*M_SPEED)); System.out.println(res); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 0, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 13, 4, 18, 13, 13, 13, 2, 2, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 49, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 8, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 8, 83 ], [ 83, 84 ], [ 83, 85 ], [ 87, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 86, 93 ], [ 87, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 8, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 101, 108 ], [ 100, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 109, 116 ], [ 8, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 125, 127 ], [ 6, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int h=kbd.nextInt();\n int m=kbd.nextInt();\n\n double A=h*30+m*0.5;\n double B=m*6;\n double C=0;\n if(A-B>=0){\n C=A-B;\n }else{\n C=B-A;\n }\n if(C>180){\n C=360-C;\n }\n C=Math.toRadians(C);\n double x=b*Math.sin(C)*b*Math.sin(C);\n double y=(b*Math.cos(C)-a)*(b*Math.cos(C)-a);\n System.out.println(Math.sqrt(x+y));\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int h=kbd.nextInt();\n int m=kbd.nextInt();\n\n double A=h*30+m*0.5;\n double B=m*6;\n double C=0;\n if(A-B>=0){\n C=A-B;\n }else{\n C=B-A;\n }\n if(C>180){\n C=360-C;\n }\n C=Math.toRadians(C);\n double x=b*Math.sin(C)*b*Math.sin(C);\n double y=(b*Math.cos(C)-a)*(b*Math.cos(C)-a);\n System.out.println(Math.sqrt(x+y));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int h=kbd.nextInt();\n int m=kbd.nextInt();\n\n double A=h*30+m*0.5;\n double B=m*6;\n double C=0;\n if(A-B>=0){\n C=A-B;\n }else{\n C=B-A;\n }\n if(C>180){\n C=360-C;\n }\n C=Math.toRadians(C);\n double x=b*Math.sin(C)*b*Math.sin(C);\n double y=(b*Math.cos(C)-a)*(b*Math.cos(C)-a);\n System.out.println(Math.sqrt(x+y));\n }", "main", "{\n Scanner kbd =new Scanner(System.in);\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int h=kbd.nextInt();\n int m=kbd.nextInt();\n\n double A=h*30+m*0.5;\n double B=m*6;\n double C=0;\n if(A-B>=0){\n C=A-B;\n }else{\n C=B-A;\n }\n if(C>180){\n C=360-C;\n }\n C=Math.toRadians(C);\n double x=b*Math.sin(C)*b*Math.sin(C);\n double y=(b*Math.cos(C)-a)*(b*Math.cos(C)-a);\n System.out.println(Math.sqrt(x+y));\n }", "Scanner kbd =new Scanner(System.in);", "kbd", "new Scanner(System.in)", "int a=kbd.nextInt();", "a", "kbd.nextInt()", "kbd.nextInt", "kbd", "int b=kbd.nextInt();", "b", "kbd.nextInt()", "kbd.nextInt", "kbd", "int h=kbd.nextInt();", "h", "kbd.nextInt()", "kbd.nextInt", "kbd", "int m=kbd.nextInt();", "m", "kbd.nextInt()", "kbd.nextInt", "kbd", "double A=h*30+m*0.5;", "A", "h*30+m*0.5", "h*30", "h", "30", "m*0.5", "m", "0.5", "double B=m*6;", "B", "m*6", "m", "6", "double C=0;", "C", "0", "if(A-B>=0){\n C=A-B;\n }else{\n C=B-A;\n }", "A-B>=0", "A-B", "A", "B", "0", "{\n C=A-B;\n }", "C=A-B", "C", "A-B", "A", "B", "{\n C=B-A;\n }", "C=B-A", "C", "B-A", "B", "A", "if(C>180){\n C=360-C;\n }", "C>180", "C", "180", "{\n C=360-C;\n }", "C=360-C", "C", "360-C", "360", "C", "C=Math.toRadians(C)", "C", "Math.toRadians(C)", "Math.toRadians", "Math", "C", "double x=b*Math.sin(C)*b*Math.sin(C);", "x", "b*Math.sin(C)*b*Math.sin(C)", "b", "b*Math.sin(C)*b*Math.sin(C)", "b", "Math.sin(C)", "Math.sin", "Math", "C", "b", "Math.sin(C)", "Math.sin", "Math", "C", "double y=(b*Math.cos(C)-a)*(b*Math.cos(C)-a);", "y", "(b*Math.cos(C)-a)*(b*Math.cos(C)-a)", "(b*Math.cos(C)-a)", "b*Math.cos(C)", "b", "Math.cos(C)", "Math.cos", "Math", "C", "a", "(b*Math.cos(C)-a)", "b*Math.cos(C)", "b", "Math.cos(C)", "Math.cos", "Math", "C", "a", "System.out.println(Math.sqrt(x+y))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(x+y)", "Math.sqrt", "Math", "x+y", "x", "y", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int h=kbd.nextInt();\n int m=kbd.nextInt();\n\n double A=h*30+m*0.5;\n double B=m*6;\n double C=0;\n if(A-B>=0){\n C=A-B;\n }else{\n C=B-A;\n }\n if(C>180){\n C=360-C;\n }\n C=Math.toRadians(C);\n double x=b*Math.sin(C)*b*Math.sin(C);\n double y=(b*Math.cos(C)-a)*(b*Math.cos(C)-a);\n System.out.println(Math.sqrt(x+y));\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n int a=kbd.nextInt();\n int b=kbd.nextInt();\n int h=kbd.nextInt();\n int m=kbd.nextInt();\n\n double A=h*30+m*0.5;\n double B=m*6;\n double C=0;\n if(A-B>=0){\n C=A-B;\n }else{\n C=B-A;\n }\n if(C>180){\n C=360-C;\n }\n C=Math.toRadians(C);\n double x=b*Math.sin(C)*b*Math.sin(C);\n double y=(b*Math.cos(C)-a)*(b*Math.cos(C)-a);\n System.out.println(Math.sqrt(x+y));\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner kbd =new Scanner(System.in); int a=kbd.nextInt(); int b=kbd.nextInt(); int h=kbd.nextInt(); int m=kbd.nextInt(); double A=h*30+m*0.5; double B=m*6; double C=0; if(A-B>=0){ C=A-B; }else{ C=B-A; } if(C>180){ C=360-C; } C=Math.toRadians(C); double x=b*Math.sin(C)*b*Math.sin(C); double y=(b*Math.cos(C)-a)*(b*Math.cos(C)-a); System.out.println(Math.sqrt(x+y)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 2, 2, 13, 17, 2, 13, 17, 0, 13, 2, 13, 17, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 0, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 8, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 8, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 8, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 8, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 8, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 102, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 102, 106 ], [ 8, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 6, 116 ], [ 116, 117 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n double A = scan.nextDouble();\n double B = scan.nextDouble();\n double H = scan.nextDouble();\n double M = scan.nextDouble();\n double hour, minute, c, co, ans;\n hour = H * 30 + M * 0.5;\n minute = M * 6;\n c = hour - minute;\n if (c > 180) {\n c = 360 - c;\n }\n else if (c < 0) {\n c = 360 + c;\n }\n co = Math.cos(Math.toRadians(c));\n ans = A * A + B * B - 2 * A * B * co;\n System.out.println(Math.sqrt(ans));\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n double A = scan.nextDouble();\n double B = scan.nextDouble();\n double H = scan.nextDouble();\n double M = scan.nextDouble();\n double hour, minute, c, co, ans;\n hour = H * 30 + M * 0.5;\n minute = M * 6;\n c = hour - minute;\n if (c > 180) {\n c = 360 - c;\n }\n else if (c < 0) {\n c = 360 + c;\n }\n co = Math.cos(Math.toRadians(c));\n ans = A * A + B * B - 2 * A * B * co;\n System.out.println(Math.sqrt(ans));\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n double A = scan.nextDouble();\n double B = scan.nextDouble();\n double H = scan.nextDouble();\n double M = scan.nextDouble();\n double hour, minute, c, co, ans;\n hour = H * 30 + M * 0.5;\n minute = M * 6;\n c = hour - minute;\n if (c > 180) {\n c = 360 - c;\n }\n else if (c < 0) {\n c = 360 + c;\n }\n co = Math.cos(Math.toRadians(c));\n ans = A * A + B * B - 2 * A * B * co;\n System.out.println(Math.sqrt(ans));\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n double A = scan.nextDouble();\n double B = scan.nextDouble();\n double H = scan.nextDouble();\n double M = scan.nextDouble();\n double hour, minute, c, co, ans;\n hour = H * 30 + M * 0.5;\n minute = M * 6;\n c = hour - minute;\n if (c > 180) {\n c = 360 - c;\n }\n else if (c < 0) {\n c = 360 + c;\n }\n co = Math.cos(Math.toRadians(c));\n ans = A * A + B * B - 2 * A * B * co;\n System.out.println(Math.sqrt(ans));\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "double A = scan.nextDouble();", "A", "scan.nextDouble()", "scan.nextDouble", "scan", "double B = scan.nextDouble();", "B", "scan.nextDouble()", "scan.nextDouble", "scan", "double H = scan.nextDouble();", "H", "scan.nextDouble()", "scan.nextDouble", "scan", "double M = scan.nextDouble();", "M", "scan.nextDouble()", "scan.nextDouble", "scan", "double hour", "hour", "minute", "minute", "c", "c", "co", "co", "ans;", "ans", "hour = H * 30 + M * 0.5", "hour", "H * 30 + M * 0.5", "H * 30", "H", "30", "M * 0.5", "M", "0.5", "minute = M * 6", "minute", "M * 6", "M", "6", "c = hour - minute", "c", "hour - minute", "hour", "minute", "if (c > 180) {\n c = 360 - c;\n }\n else if (c < 0) {\n c = 360 + c;\n }", "c > 180", "c", "180", "{\n c = 360 - c;\n }", "c = 360 - c", "c", "360 - c", "360", "c", "if (c < 0) {\n c = 360 + c;\n }", "c < 0", "c", "0", "{\n c = 360 + c;\n }", "c = 360 + c", "c", "360 + c", "360", "c", "co = Math.cos(Math.toRadians(c))", "co", "Math.cos(Math.toRadians(c))", "Math.cos", "Math", "Math.toRadians(c)", "Math.toRadians", "Math", "c", "ans = A * A + B * B - 2 * A * B * co", "ans", "A * A + B * B - 2 * A * B * co", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * co", "B", "2 * A * B * co", "2", "A", "B", "co", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); double A = scan.nextDouble(); double B = scan.nextDouble(); double H = scan.nextDouble(); double M = scan.nextDouble(); double hour, minute, c, co, ans; hour = H * 30 + M * 0.5; minute = M * 6; c = hour - minute; if (c > 180) { c = 360 - c; } else if (c < 0) { c = 360 + c; } co = Math.cos(Math.toRadians(c)); ans = A * A + B * B - 2 * A * B * co; System.out.println(Math.sqrt(ans)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 8, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 8, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 8, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 8, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 6, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n //String str = sc.next();\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double hx = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double hy = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double mx = B*Math.sin(Math.toRadians(M*6));\n double my = B*Math.cos(Math.toRadians(M*6));\n \n //System.out.println(hx);\n //System.out.println(hy);\n //System.out.println(mx);\n //System.out.println(my);\n \n double dist = Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my));\n System.out.println(dist);\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 //String str = sc.next();\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double hx = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double hy = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double mx = B*Math.sin(Math.toRadians(M*6));\n double my = B*Math.cos(Math.toRadians(M*6));\n \n //System.out.println(hx);\n //System.out.println(hy);\n //System.out.println(mx);\n //System.out.println(my);\n \n double dist = Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my));\n System.out.println(dist);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n //String str = sc.next();\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double hx = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double hy = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double mx = B*Math.sin(Math.toRadians(M*6));\n double my = B*Math.cos(Math.toRadians(M*6));\n \n //System.out.println(hx);\n //System.out.println(hy);\n //System.out.println(mx);\n //System.out.println(my);\n \n double dist = Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my));\n System.out.println(dist);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n //String str = sc.next();\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double hx = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double hy = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double mx = B*Math.sin(Math.toRadians(M*6));\n double my = B*Math.cos(Math.toRadians(M*6));\n \n //System.out.println(hx);\n //System.out.println(hy);\n //System.out.println(mx);\n //System.out.println(my);\n \n double dist = Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my));\n System.out.println(dist);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double A = sc.nextDouble();", "A", "sc.nextDouble()", "sc.nextDouble", "sc", "double B = sc.nextDouble();", "B", "sc.nextDouble()", "sc.nextDouble", "sc", "double H = sc.nextDouble();", "H", "sc.nextDouble()", "sc.nextDouble", "sc", "double M = sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "double hx = A*Math.sin(Math.toRadians(H*30+M*0.5));", "hx", "A*Math.sin(Math.toRadians(H*30+M*0.5))", "A", "Math.sin(Math.toRadians(H*30+M*0.5))", "Math.sin", "Math", "Math.toRadians(H*30+M*0.5)", "Math.toRadians", "Math", "H*30+M*0.5", "H*30", "H", "30", "M*0.5", "M", "0.5", "double hy = A*Math.cos(Math.toRadians(H*30+M*0.5));", "hy", "A*Math.cos(Math.toRadians(H*30+M*0.5))", "A", "Math.cos(Math.toRadians(H*30+M*0.5))", "Math.cos", "Math", "Math.toRadians(H*30+M*0.5)", "Math.toRadians", "Math", "H*30+M*0.5", "H*30", "H", "30", "M*0.5", "M", "0.5", "double mx = B*Math.sin(Math.toRadians(M*6));", "mx", "B*Math.sin(Math.toRadians(M*6))", "B", "Math.sin(Math.toRadians(M*6))", "Math.sin", "Math", "Math.toRadians(M*6)", "Math.toRadians", "Math", "M*6", "M", "6", "double my = B*Math.cos(Math.toRadians(M*6));", "my", "B*Math.cos(Math.toRadians(M*6))", "B", "Math.cos(Math.toRadians(M*6))", "Math.cos", "Math", "Math.toRadians(M*6)", "Math.toRadians", "Math", "M*6", "M", "6", "double dist = Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my));", "dist", "Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my))", "Math.sqrt", "Math", "(hx-mx)*(hx-mx)+(hy-my)*(hy-my)", "(hx-mx)*(hx-mx)", "(hx-mx)", "hx", "mx", "(hx-mx)", "hx", "mx", "(hy-my)*(hy-my)", "(hy-my)", "hy", "my", "(hy-my)", "hy", "my", "System.out.println(dist)", "System.out.println", "System.out", "System", "System.out", "dist", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n //String str = sc.next();\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double hx = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double hy = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double mx = B*Math.sin(Math.toRadians(M*6));\n double my = B*Math.cos(Math.toRadians(M*6));\n \n //System.out.println(hx);\n //System.out.println(hy);\n //System.out.println(mx);\n //System.out.println(my);\n \n double dist = Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my));\n System.out.println(dist);\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n //String str = sc.next();\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double hx = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double hy = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double mx = B*Math.sin(Math.toRadians(M*6));\n double my = B*Math.cos(Math.toRadians(M*6));\n \n //System.out.println(hx);\n //System.out.println(hy);\n //System.out.println(mx);\n //System.out.println(my);\n \n double dist = Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my));\n System.out.println(dist);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); //String str = sc.next(); double A = sc.nextDouble(); double B = sc.nextDouble(); double H = sc.nextDouble(); double M = sc.nextDouble(); double hx = A*Math.sin(Math.toRadians(H*30+M*0.5)); double hy = A*Math.cos(Math.toRadians(H*30+M*0.5)); double mx = B*Math.sin(Math.toRadians(M*6)); double my = B*Math.cos(Math.toRadians(M*6)); //System.out.println(hx); //System.out.println(hy); //System.out.println(mx); //System.out.println(my); double dist = Math.sqrt((hx-mx)*(hx-mx)+(hy-my)*(hy-my)); System.out.println(dist); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 18, 13, 13, 17, 13, 41, 13, 2, 2, 18, 13, 13, 17, 2, 13, 2, 13, 17, 41, 13, 2, 2, 18, 13, 13, 17, 2, 2, 17, 2, 13, 2, 13, 17, 13, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 106, 5 ], [ 106, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 59, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 8, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 86, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 6, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.util.Scanner;\npublic class Main {\n \n\tpublic static void main(String[] args) {\n \n \n\t\tdouble ans = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint minutes_length = scan.nextInt();\n\t\tint hour_length = scan.nextInt();\n\t\tdouble hour_time = scan.nextInt();\n\t\tdouble minutes_time = scan.nextInt();\n \n \n \n\t\tdouble minutes_pi = Math.PI/30*minutes_time;\n\t\tdouble hour_pi = Math.PI/6*(hour_time+ minutes_time/60);\n\t\tdouble theta = Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time);\n\t\tans = minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta);\n \n \n\t\tSystem.out.println( Math.sqrt(ans));\n\t}\n \n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \n\tpublic static void main(String[] args) {\n \n \n\t\tdouble ans = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint minutes_length = scan.nextInt();\n\t\tint hour_length = scan.nextInt();\n\t\tdouble hour_time = scan.nextInt();\n\t\tdouble minutes_time = scan.nextInt();\n \n \n \n\t\tdouble minutes_pi = Math.PI/30*minutes_time;\n\t\tdouble hour_pi = Math.PI/6*(hour_time+ minutes_time/60);\n\t\tdouble theta = Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time);\n\t\tans = minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta);\n \n \n\t\tSystem.out.println( Math.sqrt(ans));\n\t}\n \n}", "Main", "public static void main(String[] args) {\n \n \n\t\tdouble ans = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint minutes_length = scan.nextInt();\n\t\tint hour_length = scan.nextInt();\n\t\tdouble hour_time = scan.nextInt();\n\t\tdouble minutes_time = scan.nextInt();\n \n \n \n\t\tdouble minutes_pi = Math.PI/30*minutes_time;\n\t\tdouble hour_pi = Math.PI/6*(hour_time+ minutes_time/60);\n\t\tdouble theta = Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time);\n\t\tans = minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta);\n \n \n\t\tSystem.out.println( Math.sqrt(ans));\n\t}", "main", "{\n \n \n\t\tdouble ans = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint minutes_length = scan.nextInt();\n\t\tint hour_length = scan.nextInt();\n\t\tdouble hour_time = scan.nextInt();\n\t\tdouble minutes_time = scan.nextInt();\n \n \n \n\t\tdouble minutes_pi = Math.PI/30*minutes_time;\n\t\tdouble hour_pi = Math.PI/6*(hour_time+ minutes_time/60);\n\t\tdouble theta = Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time);\n\t\tans = minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta);\n \n \n\t\tSystem.out.println( Math.sqrt(ans));\n\t}", "double ans = 0;", "ans", "0", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int minutes_length = scan.nextInt();", "minutes_length", "scan.nextInt()", "scan.nextInt", "scan", "int hour_length = scan.nextInt();", "hour_length", "scan.nextInt()", "scan.nextInt", "scan", "double hour_time = scan.nextInt();", "hour_time", "scan.nextInt()", "scan.nextInt", "scan", "double minutes_time = scan.nextInt();", "minutes_time", "scan.nextInt()", "scan.nextInt", "scan", "double minutes_pi = Math.PI/30*minutes_time;", "minutes_pi", "Math.PI/30*minutes_time", "Math.PI/30", "Math.PI", "Math", "Math.PI", "30", "minutes_time", "double hour_pi = Math.PI/6*(hour_time+ minutes_time/60);", "hour_pi", "Math.PI/6*(hour_time+ minutes_time/60)", "Math.PI/6", "Math.PI", "Math", "Math.PI", "6", "(hour_time+ minutes_time/60)", "hour_time", "minutes_time/60", "minutes_time", "60", "double theta = Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time);", "theta", "Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time)", "Math.PI/30", "Math.PI", "Math", "Math.PI", "30", "(5*(hour_time+ minutes_time/60)-minutes_time)", "5*(hour_time+ minutes_time/60)", "5", "(hour_time+ minutes_time/60)", "hour_time", "minutes_time/60", "minutes_time", "60", "minutes_time", "ans = minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta)", "ans", "minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta)", "minutes_length*minutes_length+hour_length*hour_length", "minutes_length*minutes_length", "minutes_length", "minutes_length", "hour_length*hour_length", "hour_length", "hour_length", "2*hour_length*minutes_length*Math.cos(theta)", "minutes_length", "2*hour_length*minutes_length*Math.cos(theta)", "2", "hour_length", "minutes_length", "Math.cos(theta)", "Math.cos", "Math", "theta", "System.out.println( Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args", "public class Main {\n \n\tpublic static void main(String[] args) {\n \n \n\t\tdouble ans = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint minutes_length = scan.nextInt();\n\t\tint hour_length = scan.nextInt();\n\t\tdouble hour_time = scan.nextInt();\n\t\tdouble minutes_time = scan.nextInt();\n \n \n \n\t\tdouble minutes_pi = Math.PI/30*minutes_time;\n\t\tdouble hour_pi = Math.PI/6*(hour_time+ minutes_time/60);\n\t\tdouble theta = Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time);\n\t\tans = minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta);\n \n \n\t\tSystem.out.println( Math.sqrt(ans));\n\t}\n \n}", "public class Main {\n \n\tpublic static void main(String[] args) {\n \n \n\t\tdouble ans = 0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tint minutes_length = scan.nextInt();\n\t\tint hour_length = scan.nextInt();\n\t\tdouble hour_time = scan.nextInt();\n\t\tdouble minutes_time = scan.nextInt();\n \n \n \n\t\tdouble minutes_pi = Math.PI/30*minutes_time;\n\t\tdouble hour_pi = Math.PI/6*(hour_time+ minutes_time/60);\n\t\tdouble theta = Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time);\n\t\tans = minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta);\n \n \n\t\tSystem.out.println( Math.sqrt(ans));\n\t}\n \n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { double ans = 0; Scanner scan = new Scanner(System.in); int minutes_length = scan.nextInt(); int hour_length = scan.nextInt(); double hour_time = scan.nextInt(); double minutes_time = scan.nextInt(); double minutes_pi = Math.PI/30*minutes_time; double hour_pi = Math.PI/6*(hour_time+ minutes_time/60); double theta = Math.PI/30*(5*(hour_time+ minutes_time/60)-minutes_time); ans = minutes_length*minutes_length+hour_length*hour_length-2*hour_length*minutes_length*Math.cos(theta); System.out.println( Math.sqrt(ans)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 17, 17, 41, 13, 2, 2, 2, 17, 18, 13, 13, 13, 17, 41, 13, 2, 13, 13, 41, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 101, 5 ], [ 101, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 35, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 45, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 53, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 51, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 8, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 74, 78 ], [ 67, 79 ], [ 81, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 6, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n double hourLen = sc.nextDouble();\n double minLen = sc.nextDouble();\n double hour = sc.nextDouble();\n double min = sc.nextDouble();\n\n double hRad = 2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0);\n double mRad = 2 * Math.PI * min / 60.0;\n\n double theta = hRad - mRad;\n\n double ans = Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta);\n\n System.out.println(Math.sqrt(ans));\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n double hourLen = sc.nextDouble();\n double minLen = sc.nextDouble();\n double hour = sc.nextDouble();\n double min = sc.nextDouble();\n\n double hRad = 2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0);\n double mRad = 2 * Math.PI * min / 60.0;\n\n double theta = hRad - mRad;\n\n double ans = Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta);\n\n System.out.println(Math.sqrt(ans));\n\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n double hourLen = sc.nextDouble();\n double minLen = sc.nextDouble();\n double hour = sc.nextDouble();\n double min = sc.nextDouble();\n\n double hRad = 2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0);\n double mRad = 2 * Math.PI * min / 60.0;\n\n double theta = hRad - mRad;\n\n double ans = Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta);\n\n System.out.println(Math.sqrt(ans));\n\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n double hourLen = sc.nextDouble();\n double minLen = sc.nextDouble();\n double hour = sc.nextDouble();\n double min = sc.nextDouble();\n\n double hRad = 2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0);\n double mRad = 2 * Math.PI * min / 60.0;\n\n double theta = hRad - mRad;\n\n double ans = Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta);\n\n System.out.println(Math.sqrt(ans));\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double hourLen = sc.nextDouble();", "hourLen", "sc.nextDouble()", "sc.nextDouble", "sc", "double minLen = sc.nextDouble();", "minLen", "sc.nextDouble()", "sc.nextDouble", "sc", "double hour = sc.nextDouble();", "hour", "sc.nextDouble()", "sc.nextDouble", "sc", "double min = sc.nextDouble();", "min", "sc.nextDouble()", "sc.nextDouble", "sc", "double hRad = 2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0);", "hRad", "2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0)", "2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0)", "2", "Math.PI", "Math", "Math.PI", "(hour / 12.0 + min / 60.0 / 12.0)", "hour / 12.0", "hour", "12.0", "min / 60.0 / 12.0", "min / 60.0 / 12.0", "min", "60.0", "12.0", "double mRad = 2 * Math.PI * min / 60.0;", "mRad", "2 * Math.PI * min / 60.0", "2 * Math.PI * min", "2 * Math.PI * min", "2", "Math.PI", "Math", "Math.PI", "min", "60.0", "double theta = hRad - mRad;", "theta", "hRad - mRad", "hRad", "mRad", "double ans = Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta);", "ans", "Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta)", "Math.pow(hourLen, 2) + Math.pow(minLen, 2)", "Math.pow(hourLen, 2)", "Math.pow", "Math", "hourLen", "2", "Math.pow(minLen, 2)", "Math.pow", "Math", "minLen", "2", "2.0 * hourLen * minLen * Math.cos(theta)", "minLen", "2.0 * hourLen * minLen * Math.cos(theta)", "2.0", "hourLen", "minLen", "Math.cos(theta)", "Math.cos", "Math", "theta", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n double hourLen = sc.nextDouble();\n double minLen = sc.nextDouble();\n double hour = sc.nextDouble();\n double min = sc.nextDouble();\n\n double hRad = 2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0);\n double mRad = 2 * Math.PI * min / 60.0;\n\n double theta = hRad - mRad;\n\n double ans = Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta);\n\n System.out.println(Math.sqrt(ans));\n\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n double hourLen = sc.nextDouble();\n double minLen = sc.nextDouble();\n double hour = sc.nextDouble();\n double min = sc.nextDouble();\n\n double hRad = 2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0);\n double mRad = 2 * Math.PI * min / 60.0;\n\n double theta = hRad - mRad;\n\n double ans = Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta);\n\n System.out.println(Math.sqrt(ans));\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double hourLen = sc.nextDouble(); double minLen = sc.nextDouble(); double hour = sc.nextDouble(); double min = sc.nextDouble(); double hRad = 2 * Math.PI * (hour / 12.0 + min / 60.0 / 12.0); double mRad = 2 * Math.PI * min / 60.0; double theta = hRad - mRad; double ans = Math.pow(hourLen, 2) + Math.pow(minLen, 2) - 2.0 * hourLen * minLen * Math.cos(theta); System.out.println(Math.sqrt(ans)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 2, 2, 2, 17, 13, 13, 18, 13, 13, 17, 41, 13, 4, 18, 13, 2, 2, 2, 2, 13, 13, 17, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 44, 54 ], [ 8, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 63, 63 ], [ 63, 64 ], [ 63, 65 ], [ 63, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 72, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 72, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double mm = h + (m / 60.0) ;\n double cc = Math.cos((5 * mm - m) * Math.PI / 30.0);\n double z = Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc);\n System.out.println(z);\n sc.close();\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 int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double mm = h + (m / 60.0) ;\n double cc = Math.cos((5 * mm - m) * Math.PI / 30.0);\n double z = Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc);\n System.out.println(z);\n sc.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double mm = h + (m / 60.0) ;\n double cc = Math.cos((5 * mm - m) * Math.PI / 30.0);\n double z = Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc);\n System.out.println(z);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double mm = h + (m / 60.0) ;\n double cc = Math.cos((5 * mm - m) * Math.PI / 30.0);\n double z = Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc);\n System.out.println(z);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double mm = h + (m / 60.0) ;", "mm", "h + (m / 60.0)", "h", "(m / 60.0)", "m", "60.0", "double cc = Math.cos((5 * mm - m) * Math.PI / 30.0);", "cc", "Math.cos((5 * mm - m) * Math.PI / 30.0)", "Math.cos", "Math", "(5 * mm - m) * Math.PI / 30.0", "(5 * mm - m) * Math.PI", "(5 * mm - m)", "5 * mm", "5", "mm", "m", "Math.PI", "Math", "Math.PI", "30.0", "double z = Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc);", "z", "Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc)", "Math.sqrt", "Math", "a * a * 1.0 + b * b - 2.0 * a * b * cc", "a * a * 1.0 + b * b", "a * a * 1.0", "a * a * 1.0", "a", "a", "1.0", "b * b", "b", "b", "2.0 * a * b * cc", "b", "2.0 * a * b * cc", "2.0", "a", "b", "cc", "System.out.println(z)", "System.out.println", "System.out", "System", "System.out", "z", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double mm = h + (m / 60.0) ;\n double cc = Math.cos((5 * mm - m) * Math.PI / 30.0);\n double z = Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc);\n System.out.println(z);\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double mm = h + (m / 60.0) ;\n double cc = Math.cos((5 * mm - m) * Math.PI / 30.0);\n double z = Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc);\n System.out.println(z);\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double mm = h + (m / 60.0) ; double cc = Math.cos((5 * mm - m) * Math.PI / 30.0); double z = Math.sqrt(a * a * 1.0 + b * b - 2.0 * a * b * cc); System.out.println(z); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 12, 13, 30, 41, 13, 20, 0, 13, 20, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 17, 18, 13, 13, 2, 13, 2, 13, 17, 17, 41, 13, 2, 2, 2, 17, 18, 13, 13, 13, 17, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 2, 17, 13, 13, 2, 2, 17, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 17, 2, 13, 13, 29, 17, 14, 2, 2, 13, 13, 2, 13, 17, 29, 17, 41, 13, 2, 2, 18, 13, 13, 4, 13, 2, 2, 18, 13, 13, 18, 13, 2, 13, 13, 13, 2, 13, 17, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 0, 13, 2, 2, 13, 13, 13, 0, 13, 2, 2, 13, 13, 13, 0, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 29, 2, 2, 18, 13, 2, 13, 17, 13, 18, 13, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 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 ], [ 393, 11 ], [ 393, 12 ], [ 12, 13 ], [ 12, 14 ], [ 393, 15 ], [ 15, 16 ], [ 393, 17 ], [ 17, 18 ], [ 17, 19 ], [ 393, 20 ], [ 20, 21 ], [ 20, 22 ], [ 393, 23 ], [ 23, 24 ], [ 23, 25 ], [ 393, 26 ], [ 26, 27 ], [ 393, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 45, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 45, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 70, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 68, 80 ], [ 45, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 85, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 83, 91 ], [ 45, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 45, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 103, 104 ], [ 105, 105 ], [ 105, 106 ], [ 105, 107 ], [ 105, 108 ], [ 103, 109 ], [ 110, 110 ], [ 110, 111 ], [ 110, 112 ], [ 110, 113 ], [ 102, 114 ], [ 116, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 45, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 30, 128 ], [ 128, 129 ], [ 129, 130 ], [ 28, 131 ], [ 131, 132 ], [ 393, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 141, 143 ], [ 136, 144 ], [ 144, 145 ], [ 135, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 151, 153 ], [ 146, 154 ], [ 154, 155 ], [ 135, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 172, 174 ], [ 165, 175 ], [ 163, 176 ], [ 176, 177 ], [ 176, 178 ], [ 158, 179 ], [ 135, 180 ], [ 180, 181 ], [ 133, 182 ], [ 182, 183 ], [ 133, 184 ], [ 184, 185 ], [ 393, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 188, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 192, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 198, 202 ], [ 197, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 205, 209 ], [ 196, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 216 ], [ 196, 217 ], [ 217, 218 ], [ 217, 219 ], [ 188, 220 ], [ 220, 221 ], [ 186, 222 ], [ 222, 223 ], [ 186, 224 ], [ 224, 225 ], [ 393, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 230, 234 ], [ 229, 235 ], [ 235, 236 ], [ 228, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 238, 241 ], [ 241, 242 ], [ 241, 243 ], [ 226, 244 ], [ 244, 245 ], [ 226, 246 ], [ 246, 247 ], [ 393, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 252, 256 ], [ 251, 257 ], [ 257, 258 ], [ 250, 259 ], [ 259, 260 ], [ 260, 261 ], [ 260, 262 ], [ 260, 263 ], [ 263, 264 ], [ 263, 265 ], [ 248, 266 ], [ 266, 267 ], [ 248, 268 ], [ 268, 269 ], [ 393, 270 ], [ 270, 271 ], [ 270, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 275, 277 ], [ 272, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 280, 282 ], [ 272, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 285, 287 ], [ 272, 288 ], [ 288, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 293, 294 ], [ 293, 295 ], [ 290, 296 ], [ 289, 297 ], [ 297, 298 ], [ 297, 299 ], [ 270, 300 ], [ 300, 301 ], [ 270, 302 ], [ 302, 303 ], [ 393, 304 ], [ 304, 305 ], [ 304, 306 ], [ 306, 307 ], [ 304, 308 ], [ 308, 309 ], [ 304, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 304, 316 ], [ 316, 317 ], [ 316, 318 ], [ 318, 319 ], [ 319, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 320, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 319, 328 ], [ 328, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 333, 334 ], [ 334, 335 ], [ 329, 336 ], [ 336, 337 ], [ 337, 338 ], [ 337, 339 ], [ 318, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 304, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 349, 350 ], [ 348, 351 ], [ 351, 352 ], [ 304, 353 ], [ 353, 354 ], [ 353, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 358, 359 ], [ 357, 360 ], [ 360, 361 ], [ 304, 362 ], [ 362, 363 ], [ 362, 364 ], [ 364, 365 ], [ 365, 366 ], [ 366, 367 ], [ 367, 368 ], [ 366, 369 ], [ 369, 370 ], [ 304, 371 ], [ 371, 372 ], [ 371, 373 ], [ 373, 374 ], [ 374, 375 ], [ 374, 376 ], [ 373, 377 ], [ 377, 378 ], [ 378, 379 ], [ 378, 380 ], [ 380, 381 ], [ 381, 382 ], [ 382, 383 ], [ 377, 384 ], [ 384, 385 ], [ 385, 386 ], [ 385, 387 ], [ 387, 388 ], [ 388, 389 ], [ 373, 390 ], [ 390, 391 ], [ 0, 392 ], [ 392, 393 ], [ 392, 394 ] ]
[ "import java.io.*;\nimport java.math.*;\nimport java.util.*;\n\n\npublic class Main{\n static long MOD = 998244353L;\n static long [] fac;\n static int[][] dir = new int[][]{{1, 0}, {0, 1}, {-1, 0}, {0, -1}};\n static long lMax = 0x3f3f3f3f3f3f3f3fL;\n static int iMax = 0x3f3f3f3f;\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n // Start writing your solution here. -------------------------------------\n //int t = sc.nextInt();\n int t = 1;\n while(t-- > 0)\n {\n int a = sc.nextInt(), b= sc.nextInt();\n double H = sc.nextDouble(), M = sc.nextDouble();\n double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60;\n double ang = ang1 - ang2;\n double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));\n out.println(res);\n }\n out.close();\n }\n public static long C(int n, int m)\n {\n if(m == 0 || m == n) return 1l;\n if(m > n || m < 0) return 0l;\n long res = fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD;\n\n return res;\n }\n public static long quickPOW(long n, long m)\n {\n long ans = 1l;\n while(m > 0)\n {\n if(m % 2 == 1)\n ans = (ans * n) % MOD;\n n = (n * n) % MOD;\n m >>= 1;\n }\n return ans;\n }\n public static int gcd(int a, int b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }\n public static long gcd(long a, long b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }\n public static long solve(long x, long[] res){\n int n = res.length;\n long a = x / n;\n int b = (int)(x % n);\n return res[n - 1] * a + res[b];\n }\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n //--------------------------------------------------------\n}", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n static long MOD = 998244353L;\n static long [] fac;\n static int[][] dir = new int[][]{{1, 0}, {0, 1}, {-1, 0}, {0, -1}};\n static long lMax = 0x3f3f3f3f3f3f3f3fL;\n static int iMax = 0x3f3f3f3f;\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n // Start writing your solution here. -------------------------------------\n //int t = sc.nextInt();\n int t = 1;\n while(t-- > 0)\n {\n int a = sc.nextInt(), b= sc.nextInt();\n double H = sc.nextDouble(), M = sc.nextDouble();\n double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60;\n double ang = ang1 - ang2;\n double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));\n out.println(res);\n }\n out.close();\n }\n public static long C(int n, int m)\n {\n if(m == 0 || m == n) return 1l;\n if(m > n || m < 0) return 0l;\n long res = fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD;\n\n return res;\n }\n public static long quickPOW(long n, long m)\n {\n long ans = 1l;\n while(m > 0)\n {\n if(m % 2 == 1)\n ans = (ans * n) % MOD;\n n = (n * n) % MOD;\n m >>= 1;\n }\n return ans;\n }\n public static int gcd(int a, int b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }\n public static long gcd(long a, long b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }\n public static long solve(long x, long[] res){\n int n = res.length;\n long a = x / n;\n int b = (int)(x % n);\n return res[n - 1] * a + res[b];\n }\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n //--------------------------------------------------------\n}", "Main", "static long MOD = 998244353L;", "MOD", "998244353L", "static long [] fac;", "fac", "static int[][] dir = new int[][]{{1, 0}, {0, 1}, {-1, 0}, {0, -1}};", "dir", "new int[][]{{1, 0}, {0, 1}, {-1, 0}, {0, -1}}", "static long lMax = 0x3f3f3f3f3f3f3f3fL;", "lMax", "0x3f3f3f3f3f3f3f3fL", "static int iMax = 0x3f3f3f3f;", "iMax", "0x3f3f3f3f", "//-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;", "out", "public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n // Start writing your solution here. -------------------------------------\n //int t = sc.nextInt();\n int t = 1;\n while(t-- > 0)\n {\n int a = sc.nextInt(), b= sc.nextInt();\n double H = sc.nextDouble(), M = sc.nextDouble();\n double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60;\n double ang = ang1 - ang2;\n double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));\n out.println(res);\n }\n out.close();\n }", "main", "{\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n // Start writing your solution here. -------------------------------------\n //int t = sc.nextInt();\n int t = 1;\n while(t-- > 0)\n {\n int a = sc.nextInt(), b= sc.nextInt();\n double H = sc.nextDouble(), M = sc.nextDouble();\n double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60;\n double ang = ang1 - ang2;\n double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));\n out.println(res);\n }\n out.close();\n }", "MyScanner sc = new MyScanner();", "sc", "new MyScanner()", "out = new PrintWriter(new BufferedOutputStream(System.out))", "out", "new PrintWriter(new BufferedOutputStream(System.out))", "int t = 1;", "t", "1", "while(t-- > 0)\n {\n int a = sc.nextInt(), b= sc.nextInt();\n double H = sc.nextDouble(), M = sc.nextDouble();\n double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60;\n double ang = ang1 - ang2;\n double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));\n out.println(res);\n }", "t-- > 0", "t--", "t", "0", "{\n int a = sc.nextInt(), b= sc.nextInt();\n double H = sc.nextDouble(), M = sc.nextDouble();\n double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60;\n double ang = ang1 - ang2;\n double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));\n out.println(res);\n }", "int a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b= sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "double H = sc.nextDouble()", "H", "sc.nextDouble()", "sc.nextDouble", "sc", "M = sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "double ang1 = 2.0 * Math.PI * (H + M / 60) / 12", "ang1", "2.0 * Math.PI * (H + M / 60) / 12", "2.0 * Math.PI * (H + M / 60)", "2.0 * Math.PI * (H + M / 60)", "2.0", "Math.PI", "Math", "Math.PI", "(H + M / 60)", "H", "M / 60", "M", "60", "12", "ang2 = 2.0 * Math.PI * M / 60;", "ang2", "2.0 * Math.PI * M / 60", "2.0 * Math.PI * M", "2.0 * Math.PI * M", "2.0", "Math.PI", "Math", "Math.PI", "M", "60", "double ang = ang1 - ang2;", "ang", "ang1 - ang2", "ang1", "ang2", "double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));", "res", "Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang))", "Math.sqrt", "Math", "1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang)", "1.0 * a * a + 1.0 *b * b", "1.0 * a * a", "1.0 * a * a", "1.0", "a", "a", "1.0 *b * b", "1.0 *b * b", "1.0", "b", "b", "2.0 * a * b * Math.cos(ang)", "b", "2.0 * a * b * Math.cos(ang)", "2.0", "a", "b", "Math.cos(ang)", "Math.cos", "Math", "ang", "out.println(res)", "out.println", "out", "res", "out.close()", "out.close", "out", "String[] args", "args", "public static long C(int n, int m)\n {\n if(m == 0 || m == n) return 1l;\n if(m > n || m < 0) return 0l;\n long res = fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD;\n\n return res;\n }", "C", "{\n if(m == 0 || m == n) return 1l;\n if(m > n || m < 0) return 0l;\n long res = fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD;\n\n return res;\n }", "if(m == 0 || m == n) return 1l;", "m == 0 || m == n", "m == 0", "m", "0", "m == n", "m", "n", "return 1l;", "1l", "if(m > n || m < 0) return 0l;", "m > n || m < 0", "m > n", "m", "n", "m < 0", "m", "0", "return 0l;", "0l", "long res = fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD;", "res", "fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD", "fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2)", "fac[n]", "fac", "n", "quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2)", "quickPOW", "(fac[m] * fac[n - m]) % MOD", "(fac[m] * fac[n - m])", "fac[m]", "fac", "m", "fac[n - m]", "fac", "n - m", "n", "m", "MOD", "MOD - 2", "MOD", "2", "MOD", "return res;", "res", "int n", "n", "int m", "m", "public static long quickPOW(long n, long m)\n {\n long ans = 1l;\n while(m > 0)\n {\n if(m % 2 == 1)\n ans = (ans * n) % MOD;\n n = (n * n) % MOD;\n m >>= 1;\n }\n return ans;\n }", "quickPOW", "{\n long ans = 1l;\n while(m > 0)\n {\n if(m % 2 == 1)\n ans = (ans * n) % MOD;\n n = (n * n) % MOD;\n m >>= 1;\n }\n return ans;\n }", "long ans = 1l;", "ans", "1l", "while(m > 0)\n {\n if(m % 2 == 1)\n ans = (ans * n) % MOD;\n n = (n * n) % MOD;\n m >>= 1;\n }", "m > 0", "m", "0", "{\n if(m % 2 == 1)\n ans = (ans * n) % MOD;\n n = (n * n) % MOD;\n m >>= 1;\n }", "if(m % 2 == 1)\n ans = (ans * n) % MOD;", "m % 2 == 1", "m % 2", "m", "2", "1", "ans = (ans * n) % MOD", "ans", "(ans * n) % MOD", "(ans * n)", "ans", "n", "MOD", "n = (n * n) % MOD", "n", "(n * n) % MOD", "(n * n)", "n", "n", "MOD", "m >>= 1", "m", "1", "return ans;", "ans", "long n", "n", "long m", "m", "public static int gcd(int a, int b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }", "gcd", "{\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }", "if(a % b == 0) return b;", "a % b == 0", "a % b", "a", "b", "0", "return b;", "b", "return gcd(b, a % b);", "gcd(b, a % b)", "gcd", "b", "a % b", "a", "b", "int a", "a", "int b", "b", "public static long gcd(long a, long b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }", "gcd", "{\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }", "if(a % b == 0) return b;", "a % b == 0", "a % b", "a", "b", "0", "return b;", "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 solve(long x, long[] res){\n int n = res.length;\n long a = x / n;\n int b = (int)(x % n);\n return res[n - 1] * a + res[b];\n }", "solve", "{\n int n = res.length;\n long a = x / n;\n int b = (int)(x % n);\n return res[n - 1] * a + res[b];\n }", "int n = res.length;", "n", "res.length", "res", "res.length", "long a = x / n;", "a", "x / n", "x", "n", "int b = (int)(x % n);", "b", "(int)(x % n)", "x", "n", "return res[n - 1] * a + res[b];", "res[n - 1] * a + res[b]", "res[n - 1] * a", "res[n - 1]", "res", "n - 1", "n", "1", "a", "res[b]", "res", "b", "long x", "x", "long[] res", "res", "public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "MyScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "MyScanner", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\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 st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\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 str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main{\n static long MOD = 998244353L;\n static long [] fac;\n static int[][] dir = new int[][]{{1, 0}, {0, 1}, {-1, 0}, {0, -1}};\n static long lMax = 0x3f3f3f3f3f3f3f3fL;\n static int iMax = 0x3f3f3f3f;\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n // Start writing your solution here. -------------------------------------\n //int t = sc.nextInt();\n int t = 1;\n while(t-- > 0)\n {\n int a = sc.nextInt(), b= sc.nextInt();\n double H = sc.nextDouble(), M = sc.nextDouble();\n double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60;\n double ang = ang1 - ang2;\n double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));\n out.println(res);\n }\n out.close();\n }\n public static long C(int n, int m)\n {\n if(m == 0 || m == n) return 1l;\n if(m > n || m < 0) return 0l;\n long res = fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD;\n\n return res;\n }\n public static long quickPOW(long n, long m)\n {\n long ans = 1l;\n while(m > 0)\n {\n if(m % 2 == 1)\n ans = (ans * n) % MOD;\n n = (n * n) % MOD;\n m >>= 1;\n }\n return ans;\n }\n public static int gcd(int a, int b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }\n public static long gcd(long a, long b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }\n public static long solve(long x, long[] res){\n int n = res.length;\n long a = x / n;\n int b = (int)(x % n);\n return res[n - 1] * a + res[b];\n }\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n //--------------------------------------------------------\n}", "public class Main{\n static long MOD = 998244353L;\n static long [] fac;\n static int[][] dir = new int[][]{{1, 0}, {0, 1}, {-1, 0}, {0, -1}};\n static long lMax = 0x3f3f3f3f3f3f3f3fL;\n static int iMax = 0x3f3f3f3f;\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n out = new PrintWriter(new BufferedOutputStream(System.out));\n // Start writing your solution here. -------------------------------------\n //int t = sc.nextInt();\n int t = 1;\n while(t-- > 0)\n {\n int a = sc.nextInt(), b= sc.nextInt();\n double H = sc.nextDouble(), M = sc.nextDouble();\n double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60;\n double ang = ang1 - ang2;\n double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang));\n out.println(res);\n }\n out.close();\n }\n public static long C(int n, int m)\n {\n if(m == 0 || m == n) return 1l;\n if(m > n || m < 0) return 0l;\n long res = fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD;\n\n return res;\n }\n public static long quickPOW(long n, long m)\n {\n long ans = 1l;\n while(m > 0)\n {\n if(m % 2 == 1)\n ans = (ans * n) % MOD;\n n = (n * n) % MOD;\n m >>= 1;\n }\n return ans;\n }\n public static int gcd(int a, int b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }\n public static long gcd(long a, long b)\n {\n if(a % b == 0) return b;\n return gcd(b, a % b);\n }\n public static long solve(long x, long[] res){\n int n = res.length;\n long a = x / n;\n int b = (int)(x % n);\n return res[n - 1] * a + res[b];\n }\n //-----------PrintWriter for faster output---------------------------------\n public static PrintWriter out;\n //-----------MyScanner class for faster input----------\n public static class MyScanner {\n BufferedReader br;\n StringTokenizer st;\n\n public MyScanner() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n double nextDouble() {\n return Double.parseDouble(next());\n }\n String nextLine(){\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n //--------------------------------------------------------\n}", "Main" ]
import java.io.*; import java.math.*; import java.util.*; public class Main{ static long MOD = 998244353L; static long [] fac; static int[][] dir = new int[][]{{1, 0}, {0, 1}, {-1, 0}, {0, -1}}; static long lMax = 0x3f3f3f3f3f3f3f3fL; static int iMax = 0x3f3f3f3f; public static void main(String[] args) { MyScanner sc = new MyScanner(); out = new PrintWriter(new BufferedOutputStream(System.out)); // Start writing your solution here. ------------------------------------- //int t = sc.nextInt(); int t = 1; while(t-- > 0) { int a = sc.nextInt(), b= sc.nextInt(); double H = sc.nextDouble(), M = sc.nextDouble(); double ang1 = 2.0 * Math.PI * (H + M / 60) / 12, ang2 = 2.0 * Math.PI * M / 60; double ang = ang1 - ang2; double res = Math.sqrt(1.0 * a * a + 1.0 *b * b - 2.0 * a * b * Math.cos(ang)); out.println(res); } out.close(); } public static long C(int n, int m) { if(m == 0 || m == n) return 1l; if(m > n || m < 0) return 0l; long res = fac[n] * quickPOW((fac[m] * fac[n - m]) % MOD, MOD - 2) % MOD; return res; } public static long quickPOW(long n, long m) { long ans = 1l; while(m > 0) { if(m % 2 == 1) ans = (ans * n) % MOD; n = (n * n) % MOD; m >>= 1; } return ans; } public static int gcd(int a, int b) { if(a % b == 0) return b; return gcd(b, a % b); } public static long gcd(long a, long b) { if(a % b == 0) return b; return gcd(b, a % b); } public static long solve(long x, long[] res){ int n = res.length; long a = x / n; int b = (int)(x % n); return res[n - 1] * a + res[b]; } //-----------PrintWriter for faster output--------------------------------- public static PrintWriter out; //-----------MyScanner class for faster input---------- public static class MyScanner { BufferedReader br; StringTokenizer st; public MyScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine(){ String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } //-------------------------------------------------------- }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 17, 2, 13, 2, 13, 17, 41, 13, 2, 17, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 62, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 61, 73 ], [ 75, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 6, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n //標準入力のインスタンス作成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 数値の入力\n\t\tdouble A = sc.nextDouble();//Acm\n\t\tdouble B = sc.nextDouble();//Bcm\n\t\tdouble H = sc.nextDouble();//H時間\n\t\tdouble M = sc.nextDouble();//M分\n\t\t//長短針間の角度を計算\n\t\tdouble theta_a = 30*(H+M/60);\n\t\tdouble theta_b = 360*(M/60);\n\t\tdouble theta_ab = Math.abs(theta_a-theta_b);\n\t\t//余弦定理で距離計算\n\t\tdouble C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI));\n\t\t// 出力\n\t\tSystem.out.println(C);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n //標準入力のインスタンス作成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 数値の入力\n\t\tdouble A = sc.nextDouble();//Acm\n\t\tdouble B = sc.nextDouble();//Bcm\n\t\tdouble H = sc.nextDouble();//H時間\n\t\tdouble M = sc.nextDouble();//M分\n\t\t//長短針間の角度を計算\n\t\tdouble theta_a = 30*(H+M/60);\n\t\tdouble theta_b = 360*(M/60);\n\t\tdouble theta_ab = Math.abs(theta_a-theta_b);\n\t\t//余弦定理で距離計算\n\t\tdouble C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI));\n\t\t// 出力\n\t\tSystem.out.println(C);\n\t}\n}", "Main", "public static void main(String[] args){\n //標準入力のインスタンス作成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 数値の入力\n\t\tdouble A = sc.nextDouble();//Acm\n\t\tdouble B = sc.nextDouble();//Bcm\n\t\tdouble H = sc.nextDouble();//H時間\n\t\tdouble M = sc.nextDouble();//M分\n\t\t//長短針間の角度を計算\n\t\tdouble theta_a = 30*(H+M/60);\n\t\tdouble theta_b = 360*(M/60);\n\t\tdouble theta_ab = Math.abs(theta_a-theta_b);\n\t\t//余弦定理で距離計算\n\t\tdouble C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI));\n\t\t// 出力\n\t\tSystem.out.println(C);\n\t}", "main", "{\n //標準入力のインスタンス作成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 数値の入力\n\t\tdouble A = sc.nextDouble();//Acm\n\t\tdouble B = sc.nextDouble();//Bcm\n\t\tdouble H = sc.nextDouble();//H時間\n\t\tdouble M = sc.nextDouble();//M分\n\t\t//長短針間の角度を計算\n\t\tdouble theta_a = 30*(H+M/60);\n\t\tdouble theta_b = 360*(M/60);\n\t\tdouble theta_ab = Math.abs(theta_a-theta_b);\n\t\t//余弦定理で距離計算\n\t\tdouble C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI));\n\t\t// 出力\n\t\tSystem.out.println(C);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double A = sc.nextDouble();", "A", "sc.nextDouble()", "sc.nextDouble", "sc", "double B = sc.nextDouble();", "B", "sc.nextDouble()", "sc.nextDouble", "sc", "double H = sc.nextDouble();", "H", "sc.nextDouble()", "sc.nextDouble", "sc", "double M = sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "double theta_a = 30*(H+M/60);", "theta_a", "30*(H+M/60)", "30", "(H+M/60)", "H", "M/60", "M", "60", "double theta_b = 360*(M/60);", "theta_b", "360*(M/60)", "360", "(M/60)", "M", "60", "double theta_ab = Math.abs(theta_a-theta_b);", "theta_ab", "Math.abs(theta_a-theta_b)", "Math.abs", "Math", "theta_a-theta_b", "theta_a", "theta_b", "double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI));", "C", "Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI))", "Math.sqrt", "Math", "Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI)", "Math.pow(A,2)+Math.pow(B,2)", "Math.pow(A,2)", "Math.pow", "Math", "A", "2", "Math.pow(B,2)", "Math.pow", "Math", "B", "2", "2*A*B*Math.cos(theta_ab/180*Math.PI)", "B", "2*A*B*Math.cos(theta_ab/180*Math.PI)", "2", "A", "B", "Math.cos(theta_ab/180*Math.PI)", "Math.cos", "Math", "theta_ab/180*Math.PI", "theta_ab/180", "theta_ab", "180", "Math.PI", "Math", "Math.PI", "System.out.println(C)", "System.out.println", "System.out", "System", "System.out", "C", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n //標準入力のインスタンス作成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 数値の入力\n\t\tdouble A = sc.nextDouble();//Acm\n\t\tdouble B = sc.nextDouble();//Bcm\n\t\tdouble H = sc.nextDouble();//H時間\n\t\tdouble M = sc.nextDouble();//M分\n\t\t//長短針間の角度を計算\n\t\tdouble theta_a = 30*(H+M/60);\n\t\tdouble theta_b = 360*(M/60);\n\t\tdouble theta_ab = Math.abs(theta_a-theta_b);\n\t\t//余弦定理で距離計算\n\t\tdouble C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI));\n\t\t// 出力\n\t\tSystem.out.println(C);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n //標準入力のインスタンス作成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 数値の入力\n\t\tdouble A = sc.nextDouble();//Acm\n\t\tdouble B = sc.nextDouble();//Bcm\n\t\tdouble H = sc.nextDouble();//H時間\n\t\tdouble M = sc.nextDouble();//M分\n\t\t//長短針間の角度を計算\n\t\tdouble theta_a = 30*(H+M/60);\n\t\tdouble theta_b = 360*(M/60);\n\t\tdouble theta_ab = Math.abs(theta_a-theta_b);\n\t\t//余弦定理で距離計算\n\t\tdouble C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI));\n\t\t// 出力\n\t\tSystem.out.println(C);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ //標準入力のインスタンス作成 Scanner sc = new Scanner(System.in); // 数値の入力 double A = sc.nextDouble();//Acm double B = sc.nextDouble();//Bcm double H = sc.nextDouble();//H時間 double M = sc.nextDouble();//M分 //長短針間の角度を計算 double theta_a = 30*(H+M/60); double theta_b = 360*(M/60); double theta_ab = Math.abs(theta_a-theta_b); //余弦定理で距離計算 double C = Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(theta_ab/180*Math.PI)); // 出力 System.out.println(C); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 4, 18, 13, 13, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 51, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 8, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 77, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 8, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tsc.close();\n\t\tdouble shortHand = m * 6;\n\t\tdouble longHand = h * 30 + m * 0.5;\n\t\tdouble angle = Math.max(longHand, shortHand) -\n\t\t\t\tMath.min(longHand, shortHand);\n\t\tdouble distance = Math.sqrt(\n\t\t\t\tb * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(distance);\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 sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tsc.close();\n\t\tdouble shortHand = m * 6;\n\t\tdouble longHand = h * 30 + m * 0.5;\n\t\tdouble angle = Math.max(longHand, shortHand) -\n\t\t\t\tMath.min(longHand, shortHand);\n\t\tdouble distance = Math.sqrt(\n\t\t\t\tb * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(distance);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tsc.close();\n\t\tdouble shortHand = m * 6;\n\t\tdouble longHand = h * 30 + m * 0.5;\n\t\tdouble angle = Math.max(longHand, shortHand) -\n\t\t\t\tMath.min(longHand, shortHand);\n\t\tdouble distance = Math.sqrt(\n\t\t\t\tb * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(distance);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tsc.close();\n\t\tdouble shortHand = m * 6;\n\t\tdouble longHand = h * 30 + m * 0.5;\n\t\tdouble angle = Math.max(longHand, shortHand) -\n\t\t\t\tMath.min(longHand, shortHand);\n\t\tdouble distance = Math.sqrt(\n\t\t\t\tb * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(distance);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "double shortHand = m * 6;", "shortHand", "m * 6", "m", "6", "double longHand = h * 30 + m * 0.5;", "longHand", "h * 30 + m * 0.5", "h * 30", "h", "30", "m * 0.5", "m", "0.5", "double angle = Math.max(longHand, shortHand) -\n\t\t\t\tMath.min(longHand, shortHand);", "angle", "Math.max(longHand, shortHand) -\n\t\t\t\tMath.min(longHand, shortHand)", "Math.max(longHand, shortHand)", "Math.max", "Math", "longHand", "shortHand", "Math.min(longHand, shortHand)", "Math.min", "Math", "longHand", "shortHand", "double distance = Math.sqrt(\n\t\t\t\tb * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle)));", "distance", "Math.sqrt(\n\t\t\t\tb * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle)))", "Math.sqrt", "Math", "b * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle))", "b * b + a * a", "b * b", "b", "b", "a * a", "a", "a", "2 * a * b * Math.cos(Math.toRadians(angle))", "b", "2 * a * b * Math.cos(Math.toRadians(angle))", "2", "a", "b", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "System.out.println(distance)", "System.out.println", "System.out", "System", "System.out", "distance", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tsc.close();\n\t\tdouble shortHand = m * 6;\n\t\tdouble longHand = h * 30 + m * 0.5;\n\t\tdouble angle = Math.max(longHand, shortHand) -\n\t\t\t\tMath.min(longHand, shortHand);\n\t\tdouble distance = Math.sqrt(\n\t\t\t\tb * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(distance);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tsc.close();\n\t\tdouble shortHand = m * 6;\n\t\tdouble longHand = h * 30 + m * 0.5;\n\t\tdouble angle = Math.max(longHand, shortHand) -\n\t\t\t\tMath.min(longHand, shortHand);\n\t\tdouble distance = Math.sqrt(\n\t\t\t\tb * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.println(distance);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); sc.close(); double shortHand = m * 6; double longHand = h * 30 + m * 0.5; double angle = Math.max(longHand, shortHand) - Math.min(longHand, shortHand); double distance = Math.sqrt( b * b + a * a - 2 * a * b * Math.cos(Math.toRadians(angle))); System.out.println(distance); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 2, 4, 18, 13, 2, 2, 2, 2, 13, 17, 13, 17, 2, 13, 17, 18, 13, 13, 17, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 101, 5 ], [ 101, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 55, 61 ], [ 54, 62 ], [ 62, 63 ], [ 62, 64 ], [ 50, 65 ], [ 65, 66 ], [ 65, 67 ], [ 50, 68 ], [ 8, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 81, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 6, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n int h = Integer.parseInt(scan.next());\n int m = Integer.parseInt(scan.next());\n scan.close();\n\n double rad = Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2;\n\n double ans2 = a * a + b * b - 2 * a * b * Math.cos(rad);\n\n System.out.println(Math.sqrt(ans2));\n \n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n int h = Integer.parseInt(scan.next());\n int m = Integer.parseInt(scan.next());\n scan.close();\n\n double rad = Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2;\n\n double ans2 = a * a + b * b - 2 * a * b * Math.cos(rad);\n\n System.out.println(Math.sqrt(ans2));\n \n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n int h = Integer.parseInt(scan.next());\n int m = Integer.parseInt(scan.next());\n scan.close();\n\n double rad = Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2;\n\n double ans2 = a * a + b * b - 2 * a * b * Math.cos(rad);\n\n System.out.println(Math.sqrt(ans2));\n \n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n int h = Integer.parseInt(scan.next());\n int m = Integer.parseInt(scan.next());\n scan.close();\n\n double rad = Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2;\n\n double ans2 = a * a + b * b - 2 * a * b * Math.cos(rad);\n\n System.out.println(Math.sqrt(ans2));\n \n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int a = Integer.parseInt(scan.next());", "a", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "int b = Integer.parseInt(scan.next());", "b", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "int h = Integer.parseInt(scan.next());", "h", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "int m = Integer.parseInt(scan.next());", "m", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "scan.close()", "scan.close", "scan", "double rad = Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2;", "rad", "Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2", "Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2", "Math.abs((double)(h * 60 + m) / 720 - (double)m / 60)", "Math.abs", "Math", "(double)(h * 60 + m) / 720 - (double)m / 60", "(double)(h * 60 + m) / 720", "(double)(h * 60 + m)", "h * 60", "h", "60", "m", "720", "(double)m / 60", "(double)m", "60", "Math.PI", "Math", "Math.PI", "2", "double ans2 = a * a + b * b - 2 * a * b * Math.cos(rad);", "ans2", "a * a + b * b - 2 * a * b * Math.cos(rad)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(rad)", "b", "2 * a * b * Math.cos(rad)", "2", "a", "b", "Math.cos(rad)", "Math.cos", "Math", "rad", "System.out.println(Math.sqrt(ans2))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans2)", "Math.sqrt", "Math", "ans2", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n int h = Integer.parseInt(scan.next());\n int m = Integer.parseInt(scan.next());\n scan.close();\n\n double rad = Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2;\n\n double ans2 = a * a + b * b - 2 * a * b * Math.cos(rad);\n\n System.out.println(Math.sqrt(ans2));\n \n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int a = Integer.parseInt(scan.next());\n int b = Integer.parseInt(scan.next());\n int h = Integer.parseInt(scan.next());\n int m = Integer.parseInt(scan.next());\n scan.close();\n\n double rad = Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2;\n\n double ans2 = a * a + b * b - 2 * a * b * Math.cos(rad);\n\n System.out.println(Math.sqrt(ans2));\n \n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = Integer.parseInt(scan.next()); int b = Integer.parseInt(scan.next()); int h = Integer.parseInt(scan.next()); int m = Integer.parseInt(scan.next()); scan.close(); double rad = Math.abs((double)(h * 60 + m) / 720 - (double)m / 60) * Math.PI * 2; double ans2 = a * a + b * b - 2 * a * b * Math.cos(rad); System.out.println(Math.sqrt(ans2)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 2, 2, 13, 17, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 2, 17, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 2, 17, 13, 17, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 2, 17, 13, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 13, 30, 0, 13, 2, 2, 17, 13, 17, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 2, 17, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 2, 17, 13, 17, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 2, 17, 13, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 13, 30, 0, 13, 2, 2, 17, 13, 17, 0, 13, 2, 40, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 2, 4, 18, 13, 2, 13, 13, 17, 4, 18, 13, 2, 13, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 364, 5 ], [ 364, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 64, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 60, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 98, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 98, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 94, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 133, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 155, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 129, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 165, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 165, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 192, 193 ], [ 193, 194 ], [ 192, 195 ], [ 8, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 205, 207 ], [ 200, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 212, 215 ], [ 215, 216 ], [ 216, 217 ], [ 215, 218 ], [ 200, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 221, 223 ], [ 223, 224 ], [ 224, 225 ], [ 223, 226 ], [ 226, 227 ], [ 227, 228 ], [ 226, 229 ], [ 196, 230 ], [ 230, 231 ], [ 231, 232 ], [ 231, 233 ], [ 230, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 241 ], [ 234, 242 ], [ 242, 243 ], [ 242, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 247, 248 ], [ 246, 249 ], [ 249, 250 ], [ 250, 251 ], [ 249, 252 ], [ 234, 253 ], [ 253, 254 ], [ 253, 255 ], [ 255, 256 ], [ 256, 257 ], [ 255, 258 ], [ 258, 259 ], [ 259, 260 ], [ 258, 261 ], [ 261, 262 ], [ 262, 263 ], [ 261, 264 ], [ 230, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 265, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 272, 273 ], [ 272, 274 ], [ 274, 275 ], [ 274, 276 ], [ 269, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 280, 281 ], [ 279, 282 ], [ 282, 283 ], [ 283, 284 ], [ 282, 285 ], [ 285, 286 ], [ 286, 287 ], [ 285, 288 ], [ 269, 289 ], [ 289, 290 ], [ 289, 291 ], [ 291, 292 ], [ 292, 293 ], [ 291, 294 ], [ 294, 295 ], [ 295, 296 ], [ 294, 297 ], [ 297, 298 ], [ 298, 299 ], [ 297, 300 ], [ 265, 301 ], [ 301, 302 ], [ 302, 303 ], [ 302, 304 ], [ 304, 305 ], [ 305, 306 ], [ 305, 307 ], [ 304, 308 ], [ 301, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 312, 313 ], [ 311, 314 ], [ 314, 315 ], [ 315, 316 ], [ 314, 317 ], [ 317, 318 ], [ 318, 319 ], [ 317, 320 ], [ 301, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 323, 325 ], [ 325, 326 ], [ 326, 327 ], [ 325, 328 ], [ 328, 329 ], [ 329, 330 ], [ 328, 331 ], [ 8, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 335, 336 ], [ 334, 337 ], [ 337, 338 ], [ 338, 339 ], [ 339, 340 ], [ 338, 341 ], [ 341, 342 ], [ 341, 343 ], [ 338, 344 ], [ 337, 345 ], [ 345, 346 ], [ 346, 347 ], [ 345, 348 ], [ 348, 349 ], [ 348, 350 ], [ 345, 351 ], [ 8, 352 ], [ 352, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 352, 357 ], [ 8, 358 ], [ 358, 359 ], [ 359, 360 ], [ 6, 361 ], [ 361, 362 ], [ 0, 363 ], [ 363, 364 ], [ 363, 365 ] ]
[ "\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 A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tdouble xLong = 0;\n\t\tdouble yLong = 0;\n\t\tdouble xShort = 0;\n\t\tdouble yShort = 0;\n\t\tdouble ans = 0;\n\n\t\tdouble ThetaLong = 0;\n\t\tdouble ThetaShort = 0;\n\n\t\tdouble minute = H * 60 + M;\n\n\t\tif(H < 3) {\n\t\t\tThetaShort = 90 - 0.5 * minute;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 6) {\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}\n\n\t\tif(M < 15) {\n\t\t\tThetaLong = 90 - 6 * M;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 30) {\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}\n\n\t\tans = Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2));\n\t\tSystem.out.println(ans);\n\n\t\tscan.close();\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\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tdouble xLong = 0;\n\t\tdouble yLong = 0;\n\t\tdouble xShort = 0;\n\t\tdouble yShort = 0;\n\t\tdouble ans = 0;\n\n\t\tdouble ThetaLong = 0;\n\t\tdouble ThetaShort = 0;\n\n\t\tdouble minute = H * 60 + M;\n\n\t\tif(H < 3) {\n\t\t\tThetaShort = 90 - 0.5 * minute;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 6) {\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}\n\n\t\tif(M < 15) {\n\t\t\tThetaLong = 90 - 6 * M;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 30) {\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}\n\n\t\tans = Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2));\n\t\tSystem.out.println(ans);\n\n\t\tscan.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tdouble xLong = 0;\n\t\tdouble yLong = 0;\n\t\tdouble xShort = 0;\n\t\tdouble yShort = 0;\n\t\tdouble ans = 0;\n\n\t\tdouble ThetaLong = 0;\n\t\tdouble ThetaShort = 0;\n\n\t\tdouble minute = H * 60 + M;\n\n\t\tif(H < 3) {\n\t\t\tThetaShort = 90 - 0.5 * minute;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 6) {\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}\n\n\t\tif(M < 15) {\n\t\t\tThetaLong = 90 - 6 * M;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 30) {\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}\n\n\t\tans = Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2));\n\t\tSystem.out.println(ans);\n\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tdouble xLong = 0;\n\t\tdouble yLong = 0;\n\t\tdouble xShort = 0;\n\t\tdouble yShort = 0;\n\t\tdouble ans = 0;\n\n\t\tdouble ThetaLong = 0;\n\t\tdouble ThetaShort = 0;\n\n\t\tdouble minute = H * 60 + M;\n\n\t\tif(H < 3) {\n\t\t\tThetaShort = 90 - 0.5 * minute;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 6) {\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}\n\n\t\tif(M < 15) {\n\t\t\tThetaLong = 90 - 6 * M;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 30) {\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}\n\n\t\tans = Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2));\n\t\tSystem.out.println(ans);\n\n\t\tscan.close();\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int A = scan.nextInt();", "A", "scan.nextInt()", "scan.nextInt", "scan", "int B = scan.nextInt();", "B", "scan.nextInt()", "scan.nextInt", "scan", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int M = scan.nextInt();", "M", "scan.nextInt()", "scan.nextInt", "scan", "double xLong = 0;", "xLong", "0", "double yLong = 0;", "yLong", "0", "double xShort = 0;", "xShort", "0", "double yShort = 0;", "yShort", "0", "double ans = 0;", "ans", "0", "double ThetaLong = 0;", "ThetaLong", "0", "double ThetaShort = 0;", "ThetaShort", "0", "double minute = H * 60 + M;", "minute", "H * 60 + M", "H * 60", "H", "60", "M", "if(H < 3) {\n\t\t\tThetaShort = 90 - 0.5 * minute;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 6) {\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}", "H < 3", "H", "3", "{\n\t\t\tThetaShort = 90 - 0.5 * minute;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}", "ThetaShort = 90 - 0.5 * minute", "ThetaShort", "90 - 0.5 * minute", "90", "0.5 * minute", "0.5", "minute", "xShort = A * Math.cos(Math.toRadians(ThetaShort))", "xShort", "A * Math.cos(Math.toRadians(ThetaShort))", "A", "Math.cos(Math.toRadians(ThetaShort))", "Math.cos", "Math", "Math.toRadians(ThetaShort)", "Math.toRadians", "Math", "ThetaShort", "yShort = A * Math.sin(Math.toRadians(ThetaShort))", "yShort", "A * Math.sin(Math.toRadians(ThetaShort))", "A", "Math.sin(Math.toRadians(ThetaShort))", "Math.sin", "Math", "Math.toRadians(ThetaShort)", "Math.toRadians", "Math", "ThetaShort", "if(H < 6) {\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}", "H < 6", "H", "6", "{\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}", "ThetaShort = 0.5 * minute - 90", "ThetaShort", "0.5 * minute - 90", "0.5 * minute", "0.5", "minute", "90", "xShort = A * Math.cos(Math.toRadians(ThetaShort))", "xShort", "A * Math.cos(Math.toRadians(ThetaShort))", "A", "Math.cos(Math.toRadians(ThetaShort))", "Math.cos", "Math", "Math.toRadians(ThetaShort)", "Math.toRadians", "Math", "ThetaShort", "yShort = -A * Math.sin(Math.toRadians(ThetaShort))", "yShort", "-A * Math.sin(Math.toRadians(ThetaShort))", "-A", "A", "Math.sin(Math.toRadians(ThetaShort))", "Math.sin", "Math", "Math.toRadians(ThetaShort)", "Math.toRadians", "Math", "ThetaShort", "if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}", "H < 9", "H", "9", "{\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}", "ThetaShort = 270 - 0.5 * minute", "ThetaShort", "270 - 0.5 * minute", "270", "0.5 * minute", "0.5", "minute", "xShort = -A * Math.cos(Math.toRadians(ThetaShort))", "xShort", "-A * Math.cos(Math.toRadians(ThetaShort))", "-A", "A", "Math.cos(Math.toRadians(ThetaShort))", "Math.cos", "Math", "Math.toRadians(ThetaShort)", "Math.toRadians", "Math", "ThetaShort", "yShort = -A * Math.sin(Math.toRadians(ThetaShort))", "yShort", "-A * Math.sin(Math.toRadians(ThetaShort))", "-A", "A", "Math.sin(Math.toRadians(ThetaShort))", "Math.sin", "Math", "Math.toRadians(ThetaShort)", "Math.toRadians", "Math", "ThetaShort", "{\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}", "ThetaShort = 0.5 * minute - 270", "ThetaShort", "0.5 * minute - 270", "0.5 * minute", "0.5", "minute", "270", "xShort = -A * Math.cos(Math.toRadians(ThetaShort))", "xShort", "-A * Math.cos(Math.toRadians(ThetaShort))", "-A", "A", "Math.cos(Math.toRadians(ThetaShort))", "Math.cos", "Math", "Math.toRadians(ThetaShort)", "Math.toRadians", "Math", "ThetaShort", "yShort = A * Math.sin(Math.toRadians(ThetaShort))", "yShort", "A * Math.sin(Math.toRadians(ThetaShort))", "A", "Math.sin(Math.toRadians(ThetaShort))", "Math.sin", "Math", "Math.toRadians(ThetaShort)", "Math.toRadians", "Math", "ThetaShort", "if(M < 15) {\n\t\t\tThetaLong = 90 - 6 * M;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 30) {\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}", "M < 15", "M", "15", "{\n\t\t\tThetaLong = 90 - 6 * M;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}", "ThetaLong = 90 - 6 * M", "ThetaLong", "90 - 6 * M", "90", "6 * M", "6", "M", "xLong = B * Math.cos(Math.toRadians(ThetaLong))", "xLong", "B * Math.cos(Math.toRadians(ThetaLong))", "B", "Math.cos(Math.toRadians(ThetaLong))", "Math.cos", "Math", "Math.toRadians(ThetaLong)", "Math.toRadians", "Math", "ThetaLong", "yLong = B * Math.sin(Math.toRadians(ThetaLong))", "yLong", "B * Math.sin(Math.toRadians(ThetaLong))", "B", "Math.sin(Math.toRadians(ThetaLong))", "Math.sin", "Math", "Math.toRadians(ThetaLong)", "Math.toRadians", "Math", "ThetaLong", "if(M < 30) {\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}", "M < 30", "M", "30", "{\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}", "ThetaLong = 6 * M - 90", "ThetaLong", "6 * M - 90", "6 * M", "6", "M", "90", "xLong = B * Math.cos(Math.toRadians(ThetaLong))", "xLong", "B * Math.cos(Math.toRadians(ThetaLong))", "B", "Math.cos(Math.toRadians(ThetaLong))", "Math.cos", "Math", "Math.toRadians(ThetaLong)", "Math.toRadians", "Math", "ThetaLong", "yLong = -B * Math.sin(Math.toRadians(ThetaLong))", "yLong", "-B * Math.sin(Math.toRadians(ThetaLong))", "-B", "B", "Math.sin(Math.toRadians(ThetaLong))", "Math.sin", "Math", "Math.toRadians(ThetaLong)", "Math.toRadians", "Math", "ThetaLong", "if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}", "M < 45", "M", "45", "{\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}", "ThetaLong = 270 - 6 * M", "ThetaLong", "270 - 6 * M", "270", "6 * M", "6", "M", "xLong = -B * Math.cos(Math.toRadians(ThetaLong))", "xLong", "-B * Math.cos(Math.toRadians(ThetaLong))", "-B", "B", "Math.cos(Math.toRadians(ThetaLong))", "Math.cos", "Math", "Math.toRadians(ThetaLong)", "Math.toRadians", "Math", "ThetaLong", "yLong = -B * Math.sin(Math.toRadians(ThetaLong))", "yLong", "-B * Math.sin(Math.toRadians(ThetaLong))", "-B", "B", "Math.sin(Math.toRadians(ThetaLong))", "Math.sin", "Math", "Math.toRadians(ThetaLong)", "Math.toRadians", "Math", "ThetaLong", "{\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}", "ThetaLong = 6 * M - 270", "ThetaLong", "6 * M - 270", "6 * M", "6", "M", "270", "xLong = -B * Math.cos(Math.toRadians(ThetaLong))", "xLong", "-B * Math.cos(Math.toRadians(ThetaLong))", "-B", "B", "Math.cos(Math.toRadians(ThetaLong))", "Math.cos", "Math", "Math.toRadians(ThetaLong)", "Math.toRadians", "Math", "ThetaLong", "yLong = B * Math.sin(Math.toRadians(ThetaLong))", "yLong", "B * Math.sin(Math.toRadians(ThetaLong))", "B", "Math.sin(Math.toRadians(ThetaLong))", "Math.sin", "Math", "Math.toRadians(ThetaLong)", "Math.toRadians", "Math", "ThetaLong", "ans = Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2))", "ans", "Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2))", "Math.sqrt", "Math", "Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2)", "Math.pow(xShort-xLong, 2)", "Math.pow", "Math", "xShort-xLong", "xShort", "xLong", "2", "Math.pow(yShort-yLong, 2)", "Math.pow", "Math", "yShort-yLong", "yShort", "yLong", "2", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tdouble xLong = 0;\n\t\tdouble yLong = 0;\n\t\tdouble xShort = 0;\n\t\tdouble yShort = 0;\n\t\tdouble ans = 0;\n\n\t\tdouble ThetaLong = 0;\n\t\tdouble ThetaShort = 0;\n\n\t\tdouble minute = H * 60 + M;\n\n\t\tif(H < 3) {\n\t\t\tThetaShort = 90 - 0.5 * minute;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 6) {\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}\n\n\t\tif(M < 15) {\n\t\t\tThetaLong = 90 - 6 * M;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 30) {\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}\n\n\t\tans = Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2));\n\t\tSystem.out.println(ans);\n\n\t\tscan.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tdouble xLong = 0;\n\t\tdouble yLong = 0;\n\t\tdouble xShort = 0;\n\t\tdouble yShort = 0;\n\t\tdouble ans = 0;\n\n\t\tdouble ThetaLong = 0;\n\t\tdouble ThetaShort = 0;\n\n\t\tdouble minute = H * 60 + M;\n\n\t\tif(H < 3) {\n\t\t\tThetaShort = 90 - 0.5 * minute;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 6) {\n\t\t\tThetaShort = 0.5 * minute - 90;\n\t\t\txShort = A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else if(H < 9) {\n\t\t\tThetaShort = 270 - 0.5 * minute;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = -A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}else {\n\t\t\tThetaShort = 0.5 * minute - 270;\n\t\t\txShort = -A * Math.cos(Math.toRadians(ThetaShort));\n\t\t\tyShort = A * Math.sin(Math.toRadians(ThetaShort));\n\t\t}\n\n\t\tif(M < 15) {\n\t\t\tThetaLong = 90 - 6 * M;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 30) {\n\t\t\tThetaLong = 6 * M - 90;\n\t\t\txLong = B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else if(M < 45) {\n\t\t\tThetaLong = 270 - 6 * M;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = -B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}else {\n\t\t\tThetaLong = 6 * M - 270;\n\t\t\txLong = -B * Math.cos(Math.toRadians(ThetaLong));\n\t\t\tyLong = B * Math.sin(Math.toRadians(ThetaLong));\n\t\t}\n\n\t\tans = Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2));\n\t\tSystem.out.println(ans);\n\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int H = scan.nextInt(); int M = scan.nextInt(); double xLong = 0; double yLong = 0; double xShort = 0; double yShort = 0; double ans = 0; double ThetaLong = 0; double ThetaShort = 0; double minute = H * 60 + M; if(H < 3) { ThetaShort = 90 - 0.5 * minute; xShort = A * Math.cos(Math.toRadians(ThetaShort)); yShort = A * Math.sin(Math.toRadians(ThetaShort)); }else if(H < 6) { ThetaShort = 0.5 * minute - 90; xShort = A * Math.cos(Math.toRadians(ThetaShort)); yShort = -A * Math.sin(Math.toRadians(ThetaShort)); }else if(H < 9) { ThetaShort = 270 - 0.5 * minute; xShort = -A * Math.cos(Math.toRadians(ThetaShort)); yShort = -A * Math.sin(Math.toRadians(ThetaShort)); }else { ThetaShort = 0.5 * minute - 270; xShort = -A * Math.cos(Math.toRadians(ThetaShort)); yShort = A * Math.sin(Math.toRadians(ThetaShort)); } if(M < 15) { ThetaLong = 90 - 6 * M; xLong = B * Math.cos(Math.toRadians(ThetaLong)); yLong = B * Math.sin(Math.toRadians(ThetaLong)); }else if(M < 30) { ThetaLong = 6 * M - 90; xLong = B * Math.cos(Math.toRadians(ThetaLong)); yLong = -B * Math.sin(Math.toRadians(ThetaLong)); }else if(M < 45) { ThetaLong = 270 - 6 * M; xLong = -B * Math.cos(Math.toRadians(ThetaLong)); yLong = -B * Math.sin(Math.toRadians(ThetaLong)); }else { ThetaLong = 6 * M - 270; xLong = -B * Math.cos(Math.toRadians(ThetaLong)); yLong = B * Math.sin(Math.toRadians(ThetaLong)); } ans = Math.sqrt( Math.pow(xShort-xLong, 2) + Math.pow(yShort-yLong, 2)); System.out.println(ans); scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 17, 4, 18, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 41, 13, 2, 2, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 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 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 56, 58 ], [ 42, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 102, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.*;\n \npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a, b, h, m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n double angle = Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6));\n double pi = angle / 180 * Math.PI;\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi)));\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 double a, b, h, m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n double angle = Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6));\n double pi = angle / 180 * Math.PI;\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi)));\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a, b, h, m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n double angle = Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6));\n double pi = angle / 180 * Math.PI;\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi)));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n double a, b, h, m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n double angle = Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6));\n double pi = angle / 180 * Math.PI;\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi)));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a", "a", "b", "b", "h", "h", "m;", "m", "a = sc.nextDouble()", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "b = sc.nextDouble()", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "h = sc.nextDouble()", "h", "sc.nextDouble()", "sc.nextDouble", "sc", "m = sc.nextDouble()", "m", "sc.nextDouble()", "sc.nextDouble", "sc", "double angle = Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6));", "angle", "Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6))", "Math.min", "Math", "Math.abs(h * 30 + m * 0.5 - m * 6)", "Math.abs", "Math", "h * 30 + m * 0.5 - m * 6", "h * 30 + m * 0.5", "h * 30", "h", "30", "m * 0.5", "m", "0.5", "m * 6", "m", "6", "360 - Math.abs(h * 30 + m * 0.5 - m * 6)", "360", "Math.abs(h * 30 + m * 0.5 - m * 6)", "Math.abs", "Math", "h * 30 + m * 0.5 - m * 6", "h * 30 + m * 0.5", "h * 30", "h", "30", "m * 0.5", "m", "0.5", "m * 6", "m", "6", "double pi = angle / 180 * Math.PI;", "pi", "angle / 180 * Math.PI", "angle / 180", "angle", "180", "Math.PI", "Math", "Math.PI", "System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(pi)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(pi)", "b", "2 * a * b * Math.cos(pi)", "2", "a", "b", "Math.cos(pi)", "Math.cos", "Math", "pi", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a, b, h, m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n double angle = Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6));\n double pi = angle / 180 * Math.PI;\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi)));\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a, b, h, m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n double angle = Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6));\n double pi = angle / 180 * Math.PI;\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi)));\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double a, b, h, m; a = sc.nextDouble(); b = sc.nextDouble(); h = sc.nextDouble(); m = sc.nextDouble(); double angle = Math.min(Math.abs(h * 30 + m * 0.5 - m * 6), 360 - Math.abs(h * 30 + m * 0.5 - m * 6)); double pi = angle / 180 * Math.PI; System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(pi))); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 4, 18, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 41, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 18, 13, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 14, 2, 13, 13, 29, 17, 0, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 29, 18, 13, 40, 13, 29, 40, 17, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 40, 4, 13, 18, 13, 13, 40, 13, 12, 13, 30, 4, 13, 29, 4, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 42, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 29, 4, 13, 12, 13, 30, 29, 4, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 17, 13, 37, 20, 42, 17, 30, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 40, 17, 40, 4, 13, 13, 29, 8, 13, 40, 13, 13, 37, 20, 0, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 304, 8 ], [ 304, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 51, 53 ], [ 11, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 56, 68 ], [ 70, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 70, 74 ], [ 11, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 9, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 86, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 97 ], [ 97, 98 ], [ 97, 99 ], [ 86, 100 ], [ 100, 101 ], [ 100, 102 ], [ 86, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 106, 112 ], [ 112, 113 ], [ 112, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 115, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 105, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 129, 133 ], [ 133, 134 ], [ 105, 135 ], [ 135, 136 ], [ 86, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 140, 148 ], [ 148, 149 ], [ 149, 150 ], [ 86, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 151, 162 ], [ 162, 163 ], [ 86, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 174, 176 ], [ 167, 177 ], [ 177, 178 ], [ 86, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 182, 183 ], [ 181, 184 ], [ 184, 185 ], [ 185, 186 ], [ 86, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 189, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 197, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 202, 205 ], [ 201, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 189, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 86, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 86, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 86, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 228, 232 ], [ 232, 233 ], [ 232, 234 ], [ 228, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 228, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 247, 248 ], [ 247, 249 ], [ 249, 250 ], [ 228, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 252, 256 ], [ 256, 257 ], [ 256, 258 ], [ 251, 259 ], [ 259, 260 ], [ 228, 261 ], [ 261, 262 ], [ 261, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 265, 269 ], [ 269, 270 ], [ 269, 271 ], [ 264, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 272, 276 ], [ 276, 277 ], [ 276, 278 ], [ 278, 279 ], [ 278, 280 ], [ 264, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 282, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 281, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 292, 296 ], [ 281, 297 ], [ 297, 298 ], [ 263, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 0, 303 ], [ 303, 304 ], [ 303, 305 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n double a=fs.nextDouble();\n double b=fs.nextDouble();\n double h=fs.nextDouble();\n double m=fs.nextDouble();\n\n double cos=Math.cos(Math.toRadians( (h*30+m*0.5) -m*6));\n double ans= Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos;\n\n System.out.println(Math.sqrt(ans));\n }\n}\n\nclass FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen)\n return true;\n else\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0)\n return false;\n return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private static boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n private void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n }\n\n public boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }\n\n public String next() {\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public int nextInt() {\n return (int) nextLong();\n }\n\n public double nextDouble() {\n return (double) nextLong();\n }\n\n public long nextLong() {\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b)\n throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b))\n return minus ? -n : n;\n else\n throw new NumberFormatException();\n b = readByte();\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n double a=fs.nextDouble();\n double b=fs.nextDouble();\n double h=fs.nextDouble();\n double m=fs.nextDouble();\n\n double cos=Math.cos(Math.toRadians( (h*30+m*0.5) -m*6));\n double ans= Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos;\n\n System.out.println(Math.sqrt(ans));\n }\n}", "Main", "public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n double a=fs.nextDouble();\n double b=fs.nextDouble();\n double h=fs.nextDouble();\n double m=fs.nextDouble();\n\n double cos=Math.cos(Math.toRadians( (h*30+m*0.5) -m*6));\n double ans= Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos;\n\n System.out.println(Math.sqrt(ans));\n }", "main", "{\n FastScanner fs = new FastScanner();\n double a=fs.nextDouble();\n double b=fs.nextDouble();\n double h=fs.nextDouble();\n double m=fs.nextDouble();\n\n double cos=Math.cos(Math.toRadians( (h*30+m*0.5) -m*6));\n double ans= Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos;\n\n System.out.println(Math.sqrt(ans));\n }", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "double a=fs.nextDouble();", "a", "fs.nextDouble()", "fs.nextDouble", "fs", "double b=fs.nextDouble();", "b", "fs.nextDouble()", "fs.nextDouble", "fs", "double h=fs.nextDouble();", "h", "fs.nextDouble()", "fs.nextDouble", "fs", "double m=fs.nextDouble();", "m", "fs.nextDouble()", "fs.nextDouble", "fs", "double cos=Math.cos(Math.toRadians( (h*30+m*0.5) -m*6));", "cos", "Math.cos(Math.toRadians( (h*30+m*0.5) -m*6))", "Math.cos", "Math", "Math.toRadians( (h*30+m*0.5) -m*6)", "Math.toRadians", "Math", "(h*30+m*0.5) -m*6", "(h*30+m*0.5)", "h*30", "h", "30", "m*0.5", "m", "0.5", "m*6", "m", "6", "double ans= Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos;", "ans", "Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos", "Math.pow(a, 2)+ Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "2 * a * b * cos", "b", "2 * a * b * cos", "2", "a", "b", "cos", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args", "class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n private boolean hasNextByte() {\n if (ptr < buflen)\n return true;\n else\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0)\n return false;\n return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private static boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n private void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n }\n\n public boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }\n\n public String next() {\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public int nextInt() {\n return (int) nextLong();\n }\n\n public double nextDouble() {\n return (double) nextLong();\n }\n\n public long nextLong() {\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b)\n throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b))\n return minus ? -n : n;\n else\n throw new NumberFormatException();\n b = readByte();\n }\n }\n}", "FastScanner", "private final InputStream in = System.in;", "in", "System.in", "System", "System.in", "private final byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int ptr = 0;", "ptr", "0", "private int buflen = 0;", "buflen", "0", "private boolean hasNextByte() {\n if (ptr < buflen)\n return true;\n else\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0)\n return false;\n return true;\n }", "hasNextByte", "{\n if (ptr < buflen)\n return true;\n else\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0)\n return false;\n return true;\n }", "if (ptr < buflen)\n return true;\n else\n ptr = 0;", "ptr < buflen", "ptr", "buflen", "return true;", "true", "ptr = 0", "ptr", "0", "try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }", "catch (final IOException e) {\n e.printStackTrace();\n }", "final IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n buflen = in.read(buffer);\n }", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0)\n return false;", "buflen <= 0", "buflen", "0", "return false;", "false", "return true;", "true", "private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }", "readByte", "{\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }", "if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "private static boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }", "isPrintableChar", "{\n return 33 <= c && c <= 126;\n }", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "final int c", "c", "private void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n }", "skipUnprintable", "{\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n }", "while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "ptr++", "ptr", "public boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }", "hasNext", "{\n skipUnprintable();\n return hasNextByte();\n }", "skipUnprintable()", "skipUnprintable", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "next", "{\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "final StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = readByte();", "b", "readByte()", "readByte", "while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }", "isPrintableChar(b)", "isPrintableChar", "b", "{\n sb.appendCodePoint(b);\n b = readByte();\n }", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public int nextInt() {\n return (int) nextLong();\n }", "nextInt", "{\n return (int) nextLong();\n }", "return (int) nextLong();", "(int) nextLong()", "nextLong", "public double nextDouble() {\n return (double) nextLong();\n }", "nextDouble", "{\n return (double) nextLong();\n }", "return (double) nextLong();", "(double) nextLong()", "nextLong", "public long nextLong() {\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b)\n throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b))\n return minus ? -n : n;\n else\n throw new NumberFormatException();\n b = readByte();\n }\n }", "nextLong", "{\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b)\n throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b))\n return minus ? -n : n;\n else\n throw new NumberFormatException();\n b = readByte();\n }\n }", "long n = 0;", "n", "0", "boolean minus = false;", "minus", "false", "int b = readByte();", "b", "readByte()", "readByte", "if (b == '-') {\n minus = true;\n b = readByte();\n }", "b == '-'", "b", "'-'", "{\n minus = true;\n b = readByte();\n }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b)\n throw new NumberFormatException();", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "throw new NumberFormatException();", "new NumberFormatException()", "while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b))\n return minus ? -n : n;\n else\n throw new NumberFormatException();\n b = readByte();\n }", "true", "{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b))\n return minus ? -n : n;\n else\n throw new NumberFormatException();\n b = readByte();\n }", "if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b))\n return minus ? -n : n;\n else\n throw new NumberFormatException();", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n n *= 10;\n n += b - '0';\n }", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if (b == -1 || !isPrintableChar(b))\n return minus ? -n : n;\n else\n throw new NumberFormatException();", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n double a=fs.nextDouble();\n double b=fs.nextDouble();\n double h=fs.nextDouble();\n double m=fs.nextDouble();\n\n double cos=Math.cos(Math.toRadians( (h*30+m*0.5) -m*6));\n double ans= Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos;\n\n System.out.println(Math.sqrt(ans));\n }\n}", "public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n double a=fs.nextDouble();\n double b=fs.nextDouble();\n double h=fs.nextDouble();\n double m=fs.nextDouble();\n\n double cos=Math.cos(Math.toRadians( (h*30+m*0.5) -m*6));\n double ans= Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos;\n\n System.out.println(Math.sqrt(ans));\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); double a=fs.nextDouble(); double b=fs.nextDouble(); double h=fs.nextDouble(); double m=fs.nextDouble(); double cos=Math.cos(Math.toRadians( (h*30+m*0.5) -m*6)); double ans= Math.pow(a, 2)+ Math.pow(b, 2)- 2 * a * b * cos; System.out.println(Math.sqrt(ans)); } } class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) return true; else ptr = 0; try { buflen = in.read(buffer); } catch (final IOException e) { e.printStackTrace(); } if (buflen <= 0) return false; return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1; } private static boolean isPrintableChar(final int c) { return 33 <= c && c <= 126; } private void skipUnprintable() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; } public boolean hasNext() { skipUnprintable(); return hasNextByte(); } public String next() { final StringBuilder sb = new StringBuilder(); int b = readByte(); while (isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public int nextInt() { return (int) nextLong(); } public double nextDouble() { return (double) nextLong(); } public long nextLong() { long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) throw new NumberFormatException(); while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n; else throw new NumberFormatException(); b = readByte(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 2, 2, 17, 17, 18, 13, 13, 41, 13, 2, 2, 13, 17, 13, 41, 13, 2, 2, 13, 13, 17, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 43, 43 ], [ 43, 44 ], [ 43, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 75, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 8, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 6, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a, b, h, m;\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\t\th = sc.nextInt();\n\t\tm = sc.nextInt();\n\n\t\tfinal double rad_per_min_720 = 11 * 2 * Math.PI;\n\n\t\tint min = h * 60 + m;\n\t\tdouble rad_dif = rad_per_min_720 * min / 720;\n\n\t\tdouble c_pow = a * a + b * b - 2 * a * b * Math.cos(rad_dif);\n\t\tdouble c = Math.sqrt(c_pow);\n\n\t\tSystem.out.println(c);\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a, b, h, m;\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\t\th = sc.nextInt();\n\t\tm = sc.nextInt();\n\n\t\tfinal double rad_per_min_720 = 11 * 2 * Math.PI;\n\n\t\tint min = h * 60 + m;\n\t\tdouble rad_dif = rad_per_min_720 * min / 720;\n\n\t\tdouble c_pow = a * a + b * b - 2 * a * b * Math.cos(rad_dif);\n\t\tdouble c = Math.sqrt(c_pow);\n\n\t\tSystem.out.println(c);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a, b, h, m;\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\t\th = sc.nextInt();\n\t\tm = sc.nextInt();\n\n\t\tfinal double rad_per_min_720 = 11 * 2 * Math.PI;\n\n\t\tint min = h * 60 + m;\n\t\tdouble rad_dif = rad_per_min_720 * min / 720;\n\n\t\tdouble c_pow = a * a + b * b - 2 * a * b * Math.cos(rad_dif);\n\t\tdouble c = Math.sqrt(c_pow);\n\n\t\tSystem.out.println(c);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a, b, h, m;\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\t\th = sc.nextInt();\n\t\tm = sc.nextInt();\n\n\t\tfinal double rad_per_min_720 = 11 * 2 * Math.PI;\n\n\t\tint min = h * 60 + m;\n\t\tdouble rad_dif = rad_per_min_720 * min / 720;\n\n\t\tdouble c_pow = a * a + b * b - 2 * a * b * Math.cos(rad_dif);\n\t\tdouble c = Math.sqrt(c_pow);\n\n\t\tSystem.out.println(c);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a", "a", "b", "b", "h", "h", "m;", "m", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "h = sc.nextInt()", "h", "sc.nextInt()", "sc.nextInt", "sc", "m = sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "final double rad_per_min_720 = 11 * 2 * Math.PI;", "rad_per_min_720", "11 * 2 * Math.PI", "11 * 2 * Math.PI", "11", "2", "Math.PI", "Math", "Math.PI", "int min = h * 60 + m;", "min", "h * 60 + m", "h * 60", "h", "60", "m", "double rad_dif = rad_per_min_720 * min / 720;", "rad_dif", "rad_per_min_720 * min / 720", "rad_per_min_720 * min", "rad_per_min_720", "min", "720", "double c_pow = a * a + b * b - 2 * a * b * Math.cos(rad_dif);", "c_pow", "a * a + b * b - 2 * a * b * Math.cos(rad_dif)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(rad_dif)", "b", "2 * a * b * Math.cos(rad_dif)", "2", "a", "b", "Math.cos(rad_dif)", "Math.cos", "Math", "rad_dif", "double c = Math.sqrt(c_pow);", "c", "Math.sqrt(c_pow)", "Math.sqrt", "Math", "c_pow", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a, b, h, m;\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\t\th = sc.nextInt();\n\t\tm = sc.nextInt();\n\n\t\tfinal double rad_per_min_720 = 11 * 2 * Math.PI;\n\n\t\tint min = h * 60 + m;\n\t\tdouble rad_dif = rad_per_min_720 * min / 720;\n\n\t\tdouble c_pow = a * a + b * b - 2 * a * b * Math.cos(rad_dif);\n\t\tdouble c = Math.sqrt(c_pow);\n\n\t\tSystem.out.println(c);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a, b, h, m;\n\t\ta = sc.nextInt();\n\t\tb = sc.nextInt();\n\t\th = sc.nextInt();\n\t\tm = sc.nextInt();\n\n\t\tfinal double rad_per_min_720 = 11 * 2 * Math.PI;\n\n\t\tint min = h * 60 + m;\n\t\tdouble rad_dif = rad_per_min_720 * min / 720;\n\n\t\tdouble c_pow = a * a + b * b - 2 * a * b * Math.cos(rad_dif);\n\t\tdouble c = Math.sqrt(c_pow);\n\n\t\tSystem.out.println(c);\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a, b, h, m; a = sc.nextInt(); b = sc.nextInt(); h = sc.nextInt(); m = sc.nextInt(); final double rad_per_min_720 = 11 * 2 * Math.PI; int min = h * 60 + m; double rad_dif = rad_per_min_720 * min / 720; double c_pow = a * a + b * b - 2 * a * b * Math.cos(rad_dif); double c = Math.sqrt(c_pow); System.out.println(c); } }
[ 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, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 17, 2, 17, 2, 13, 17, 2, 13, 17, 14, 2, 13, 2, 17, 13, 30, 0, 13, 2, 17, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 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 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 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 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 23, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 23, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 23, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 62 ], [ 62, 63 ], [ 62, 64 ], [ 23, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 65, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 23, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 87, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 92, 96 ], [ 85, 97 ], [ 99, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 21, 110 ], [ 110, 111 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.stream.Collectors;\nimport java.util.HashSet;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Double A=sc.nextDouble();\n Double B=sc.nextDouble();\n Double H=sc.nextDouble();\n Double M=sc.nextDouble();\n Double kakudo=Math.abs(H*30+30*(M/60)-M*6);\n if(kakudo>360-kakudo){\n kakudo=360-kakudo;\n }\n\n\n System.out.println(Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(kakudo))));\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.stream.Collectors;", "Collectors", "java.util.stream", "import java.util.HashSet;", "HashSet", "java.util", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Double A=sc.nextDouble();\n Double B=sc.nextDouble();\n Double H=sc.nextDouble();\n Double M=sc.nextDouble();\n Double kakudo=Math.abs(H*30+30*(M/60)-M*6);\n if(kakudo>360-kakudo){\n kakudo=360-kakudo;\n }\n\n\n System.out.println(Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(kakudo))));\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n Double A=sc.nextDouble();\n Double B=sc.nextDouble();\n Double H=sc.nextDouble();\n Double M=sc.nextDouble();\n Double kakudo=Math.abs(H*30+30*(M/60)-M*6);\n if(kakudo>360-kakudo){\n kakudo=360-kakudo;\n }\n\n\n System.out.println(Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(kakudo))));\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n Double A=sc.nextDouble();\n Double B=sc.nextDouble();\n Double H=sc.nextDouble();\n Double M=sc.nextDouble();\n Double kakudo=Math.abs(H*30+30*(M/60)-M*6);\n if(kakudo>360-kakudo){\n kakudo=360-kakudo;\n }\n\n\n System.out.println(Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(kakudo))));\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "Double A=sc.nextDouble();", "A", "sc.nextDouble()", "sc.nextDouble", "sc", "Double B=sc.nextDouble();", "B", "sc.nextDouble()", "sc.nextDouble", "sc", "Double H=sc.nextDouble();", "H", "sc.nextDouble()", "sc.nextDouble", "sc", "Double M=sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "Double kakudo=Math.abs(H*30+30*(M/60)-M*6);", "kakudo", "Math.abs(H*30+30*(M/60)-M*6)", "Math.abs", "Math", "H*30+30*(M/60)-M*6", "H*30+30*(M/60)", "H*30", "H", "30", "30*(M/60)", "30", "(M/60)", "M", "60", "M*6", "M", "6", "if(kakudo>360-kakudo){\n kakudo=360-kakudo;\n }", "kakudo>360-kakudo", "kakudo", "360-kakudo", "360", "kakudo", "{\n kakudo=360-kakudo;\n }", "kakudo=360-kakudo", "kakudo", "360-kakudo", "360", "kakudo", "System.out.println(Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(kakudo))))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(kakudo)))", "Math.sqrt", "Math", "Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(kakudo))", "Math.pow(A,2)+Math.pow(B,2)", "Math.pow(A,2)", "Math.pow", "Math", "A", "2", "Math.pow(B,2)", "Math.pow", "Math", "B", "2", "2*A*B*Math.cos(Math.toRadians(kakudo))", "B", "2*A*B*Math.cos(Math.toRadians(kakudo))", "2", "A", "B", "Math.cos(Math.toRadians(kakudo))", "Math.cos", "Math", "Math.toRadians(kakudo)", "Math.toRadians", "Math", "kakudo", "String[] args", "args" ]
import java.util.Scanner; import java.util.Arrays; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import java.util.HashSet; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Double A=sc.nextDouble(); Double B=sc.nextDouble(); Double H=sc.nextDouble(); Double M=sc.nextDouble(); Double kakudo=Math.abs(H*30+30*(M/60)-M*6); if(kakudo>360-kakudo){ kakudo=360-kakudo; } System.out.println(Math.sqrt(Math.pow(A,2)+Math.pow(B,2)-2*A*B*Math.cos(Math.toRadians(kakudo)))); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 17, 41, 13, 2, 2, 2, 2, 13, 17, 13, 17, 2, 17, 17, 41, 13, 17, 14, 2, 2, 13, 13, 17, 30, 0, 13, 2, 17, 2, 13, 13, 30, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 13, 2, 18, 13, 13, 17, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 42, 48 ], [ 41, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 55, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 8, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 100, 106 ], [ 8, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 6, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\t//0時からの分針の角度を求める\n\t\tdouble Mangle = (m*360.0)/60.0;\n\t\t//0時からの時針の角度を求める\n\t\tdouble Hangle = (h*60.0+m)*360.0/(12.0*60.0);\n\t\t\n\t\t//時針の角度-分針の角度で辺a,bの間の角度を求める\n\t\tdouble MHangle = 0;\n\t\t//180°を超えている場合は360からマイナスする\n\t\t//例:(9:00の場合0時からだと270°となるので引いて90°となる)\n\t\tif(Hangle-Mangle>180) {\n\t\t\tMHangle = 360-(Hangle-Mangle);\n\t\t}else {\n\t\t\tMHangle = Hangle-Mangle;\n\t\t}\n\t\t\n\t\t//求めた角度からcosを求める\n\t\t//(一度ラジアンに変換する必要があるため[角度*(Math.PI/180)]とする)\n\t\tdouble cosA = Math.cos(MHangle*(Math.PI/180.0));\n\t\t\n\t\t//余弦定理から答えを求める Math.sqrt√(平方根)で求める\n\t\tdouble answer = Math.sqrt((a*a)+(b*b)-(2*a*b*cosA));\n\n\t\tSystem.out.println(answer);\n\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\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\t//0時からの分針の角度を求める\n\t\tdouble Mangle = (m*360.0)/60.0;\n\t\t//0時からの時針の角度を求める\n\t\tdouble Hangle = (h*60.0+m)*360.0/(12.0*60.0);\n\t\t\n\t\t//時針の角度-分針の角度で辺a,bの間の角度を求める\n\t\tdouble MHangle = 0;\n\t\t//180°を超えている場合は360からマイナスする\n\t\t//例:(9:00の場合0時からだと270°となるので引いて90°となる)\n\t\tif(Hangle-Mangle>180) {\n\t\t\tMHangle = 360-(Hangle-Mangle);\n\t\t}else {\n\t\t\tMHangle = Hangle-Mangle;\n\t\t}\n\t\t\n\t\t//求めた角度からcosを求める\n\t\t//(一度ラジアンに変換する必要があるため[角度*(Math.PI/180)]とする)\n\t\tdouble cosA = Math.cos(MHangle*(Math.PI/180.0));\n\t\t\n\t\t//余弦定理から答えを求める Math.sqrt√(平方根)で求める\n\t\tdouble answer = Math.sqrt((a*a)+(b*b)-(2*a*b*cosA));\n\n\t\tSystem.out.println(answer);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\t//0時からの分針の角度を求める\n\t\tdouble Mangle = (m*360.0)/60.0;\n\t\t//0時からの時針の角度を求める\n\t\tdouble Hangle = (h*60.0+m)*360.0/(12.0*60.0);\n\t\t\n\t\t//時針の角度-分針の角度で辺a,bの間の角度を求める\n\t\tdouble MHangle = 0;\n\t\t//180°を超えている場合は360からマイナスする\n\t\t//例:(9:00の場合0時からだと270°となるので引いて90°となる)\n\t\tif(Hangle-Mangle>180) {\n\t\t\tMHangle = 360-(Hangle-Mangle);\n\t\t}else {\n\t\t\tMHangle = Hangle-Mangle;\n\t\t}\n\t\t\n\t\t//求めた角度からcosを求める\n\t\t//(一度ラジアンに変換する必要があるため[角度*(Math.PI/180)]とする)\n\t\tdouble cosA = Math.cos(MHangle*(Math.PI/180.0));\n\t\t\n\t\t//余弦定理から答えを求める Math.sqrt√(平方根)で求める\n\t\tdouble answer = Math.sqrt((a*a)+(b*b)-(2*a*b*cosA));\n\n\t\tSystem.out.println(answer);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\t//0時からの分針の角度を求める\n\t\tdouble Mangle = (m*360.0)/60.0;\n\t\t//0時からの時針の角度を求める\n\t\tdouble Hangle = (h*60.0+m)*360.0/(12.0*60.0);\n\t\t\n\t\t//時針の角度-分針の角度で辺a,bの間の角度を求める\n\t\tdouble MHangle = 0;\n\t\t//180°を超えている場合は360からマイナスする\n\t\t//例:(9:00の場合0時からだと270°となるので引いて90°となる)\n\t\tif(Hangle-Mangle>180) {\n\t\t\tMHangle = 360-(Hangle-Mangle);\n\t\t}else {\n\t\t\tMHangle = Hangle-Mangle;\n\t\t}\n\t\t\n\t\t//求めた角度からcosを求める\n\t\t//(一度ラジアンに変換する必要があるため[角度*(Math.PI/180)]とする)\n\t\tdouble cosA = Math.cos(MHangle*(Math.PI/180.0));\n\t\t\n\t\t//余弦定理から答えを求める Math.sqrt√(平方根)で求める\n\t\tdouble answer = Math.sqrt((a*a)+(b*b)-(2*a*b*cosA));\n\n\t\tSystem.out.println(answer);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double Mangle = (m*360.0)/60.0;", "Mangle", "(m*360.0)/60.0", "(m*360.0)", "m", "360.0", "60.0", "double Hangle = (h*60.0+m)*360.0/(12.0*60.0);", "Hangle", "(h*60.0+m)*360.0/(12.0*60.0)", "(h*60.0+m)*360.0", "(h*60.0+m)", "h*60.0", "h", "60.0", "m", "360.0", "(12.0*60.0)", "12.0", "60.0", "double MHangle = 0;", "MHangle", "0", "if(Hangle-Mangle>180) {\n\t\t\tMHangle = 360-(Hangle-Mangle);\n\t\t}else {\n\t\t\tMHangle = Hangle-Mangle;\n\t\t}", "Hangle-Mangle>180", "Hangle-Mangle", "Hangle", "Mangle", "180", "{\n\t\t\tMHangle = 360-(Hangle-Mangle);\n\t\t}", "MHangle = 360-(Hangle-Mangle)", "MHangle", "360-(Hangle-Mangle)", "360", "(Hangle-Mangle)", "Hangle", "Mangle", "{\n\t\t\tMHangle = Hangle-Mangle;\n\t\t}", "MHangle = Hangle-Mangle", "MHangle", "Hangle-Mangle", "Hangle", "Mangle", "double cosA = Math.cos(MHangle*(Math.PI/180.0));", "cosA", "Math.cos(MHangle*(Math.PI/180.0))", "Math.cos", "Math", "MHangle*(Math.PI/180.0)", "MHangle", "(Math.PI/180.0)", "Math.PI", "Math", "Math.PI", "180.0", "double answer = Math.sqrt((a*a)+(b*b)-(2*a*b*cosA));", "answer", "Math.sqrt((a*a)+(b*b)-(2*a*b*cosA))", "Math.sqrt", "Math", "(a*a)+(b*b)-(2*a*b*cosA)", "(a*a)+(b*b)", "(a*a)", "a", "a", "(b*b)", "b", "b", "(2*a*b*cosA)", "b", "2*a*b*cosA", "2", "a", "b", "cosA", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\t//0時からの分針の角度を求める\n\t\tdouble Mangle = (m*360.0)/60.0;\n\t\t//0時からの時針の角度を求める\n\t\tdouble Hangle = (h*60.0+m)*360.0/(12.0*60.0);\n\t\t\n\t\t//時針の角度-分針の角度で辺a,bの間の角度を求める\n\t\tdouble MHangle = 0;\n\t\t//180°を超えている場合は360からマイナスする\n\t\t//例:(9:00の場合0時からだと270°となるので引いて90°となる)\n\t\tif(Hangle-Mangle>180) {\n\t\t\tMHangle = 360-(Hangle-Mangle);\n\t\t}else {\n\t\t\tMHangle = Hangle-Mangle;\n\t\t}\n\t\t\n\t\t//求めた角度からcosを求める\n\t\t//(一度ラジアンに変換する必要があるため[角度*(Math.PI/180)]とする)\n\t\tdouble cosA = Math.cos(MHangle*(Math.PI/180.0));\n\t\t\n\t\t//余弦定理から答えを求める Math.sqrt√(平方根)で求める\n\t\tdouble answer = Math.sqrt((a*a)+(b*b)-(2*a*b*cosA));\n\n\t\tSystem.out.println(answer);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\t\n\t\t//0時からの分針の角度を求める\n\t\tdouble Mangle = (m*360.0)/60.0;\n\t\t//0時からの時針の角度を求める\n\t\tdouble Hangle = (h*60.0+m)*360.0/(12.0*60.0);\n\t\t\n\t\t//時針の角度-分針の角度で辺a,bの間の角度を求める\n\t\tdouble MHangle = 0;\n\t\t//180°を超えている場合は360からマイナスする\n\t\t//例:(9:00の場合0時からだと270°となるので引いて90°となる)\n\t\tif(Hangle-Mangle>180) {\n\t\t\tMHangle = 360-(Hangle-Mangle);\n\t\t}else {\n\t\t\tMHangle = Hangle-Mangle;\n\t\t}\n\t\t\n\t\t//求めた角度からcosを求める\n\t\t//(一度ラジアンに変換する必要があるため[角度*(Math.PI/180)]とする)\n\t\tdouble cosA = Math.cos(MHangle*(Math.PI/180.0));\n\t\t\n\t\t//余弦定理から答えを求める Math.sqrt√(平方根)で求める\n\t\tdouble answer = Math.sqrt((a*a)+(b*b)-(2*a*b*cosA));\n\n\t\tSystem.out.println(answer);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); //0時からの分針の角度を求める double Mangle = (m*360.0)/60.0; //0時からの時針の角度を求める double Hangle = (h*60.0+m)*360.0/(12.0*60.0); //時針の角度-分針の角度で辺a,bの間の角度を求める double MHangle = 0; //180°を超えている場合は360からマイナスする //例:(9:00の場合0時からだと270°となるので引いて90°となる) if(Hangle-Mangle>180) { MHangle = 360-(Hangle-Mangle); }else { MHangle = Hangle-Mangle; } //求めた角度からcosを求める //(一度ラジアンに変換する必要があるため[角度*(Math.PI/180)]とする) double cosA = Math.cos(MHangle*(Math.PI/180.0)); //余弦定理から答えを求める Math.sqrt√(平方根)で求める double answer = Math.sqrt((a*a)+(b*b)-(2*a*b*cosA)); System.out.println(answer); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 2, 2, 2, 13, 17, 2, 2, 13, 17, 17, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 79, 5 ], [ 79, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 50, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 58, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 69, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 63, 73 ], [ 73, 74 ], [ 73, 75 ], [ 6, 76 ], [ 76, 77 ], [ 0, 78 ], [ 78, 79 ], [ 78, 80 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n // System.out.println((H/12.0+M/12.0/60.0-M/60.0));\n System.out.println(Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))));\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 double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n // System.out.println((H/12.0+M/12.0/60.0-M/60.0));\n System.out.println(Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n // System.out.println((H/12.0+M/12.0/60.0-M/60.0));\n System.out.println(Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n // System.out.println((H/12.0+M/12.0/60.0-M/60.0));\n System.out.println(Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double A = sc.nextDouble();", "A", "sc.nextDouble()", "sc.nextDouble", "sc", "double B = sc.nextDouble();", "B", "sc.nextDouble()", "sc.nextDouble", "sc", "double H = sc.nextDouble();", "H", "sc.nextDouble()", "sc.nextDouble", "sc", "double M = sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "System.out.println(Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0)))", "Math.sqrt", "Math", "A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))", "B", "2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))", "2.0", "A", "B", "Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))", "Math.cos", "Math", "2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0)", "2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0)", "2.0", "Math.PI", "Math", "Math.PI", "(H/12.0+M/12.0/60.0-M/60.0)", "H/12.0+M/12.0/60.0", "H/12.0", "H", "12.0", "M/12.0/60.0", "M/12.0/60.0", "M", "12.0", "60.0", "M/60.0", "M", "60.0", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n // System.out.println((H/12.0+M/12.0/60.0-M/60.0));\n System.out.println(Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))));\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n // System.out.println((H/12.0+M/12.0/60.0-M/60.0));\n System.out.println(Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0))));\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double A = sc.nextDouble(); double B = sc.nextDouble(); double H = sc.nextDouble(); double M = sc.nextDouble(); // System.out.println((H/12.0+M/12.0/60.0-M/60.0)); System.out.println(Math.sqrt(A*A+B*B-2.0*A*B*Math.cos(2.0*Math.PI*(H/12.0+M/12.0/60.0-M/60.0)))); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 13, 17, 13, 17, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 34, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 48, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 72, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 6, 89 ], [ 89, 90 ] ]
[ "import java.util.*;\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int b = sc.nextInt();\n int c = sc.nextInt();\n int x = sc.nextInt();\n int y = sc.nextInt();\n\tdouble xr = (x*60 + y)/2.0;\n double yr = 6.0*y;\n double e = Math.max(xr-yr, yr-xr);\n double r = Math.sqrt(b*b + c*c - 2*b*c*Math.cos(Math.toRadians(e)));\n \t\n System.out.println(r);\n }\n \n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int b = sc.nextInt();\n int c = sc.nextInt();\n int x = sc.nextInt();\n int y = sc.nextInt();\n\tdouble xr = (x*60 + y)/2.0;\n double yr = 6.0*y;\n double e = Math.max(xr-yr, yr-xr);\n double r = Math.sqrt(b*b + c*c - 2*b*c*Math.cos(Math.toRadians(e)));\n \t\n System.out.println(r);\n }\n \n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int b = sc.nextInt();\n int c = sc.nextInt();\n int x = sc.nextInt();\n int y = sc.nextInt();\n\tdouble xr = (x*60 + y)/2.0;\n double yr = 6.0*y;\n double e = Math.max(xr-yr, yr-xr);\n double r = Math.sqrt(b*b + c*c - 2*b*c*Math.cos(Math.toRadians(e)));\n \t\n System.out.println(r);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int b = sc.nextInt();\n int c = sc.nextInt();\n int x = sc.nextInt();\n int y = sc.nextInt();\n\tdouble xr = (x*60 + y)/2.0;\n double yr = 6.0*y;\n double e = Math.max(xr-yr, yr-xr);\n double r = Math.sqrt(b*b + c*c - 2*b*c*Math.cos(Math.toRadians(e)));\n \t\n System.out.println(r);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "int x = sc.nextInt();", "x", "sc.nextInt()", "sc.nextInt", "sc", "int y = sc.nextInt();", "y", "sc.nextInt()", "sc.nextInt", "sc", "double xr = (x*60 + y)/2.0;", "xr", "(x*60 + y)/2.0", "(x*60 + y)", "x*60", "x", "60", "y", "2.0", "double yr = 6.0*y;", "yr", "6.0*y", "6.0", "y", "double e = Math.max(xr-yr, yr-xr);", "e", "Math.max(xr-yr, yr-xr)", "Math.max", "Math", "xr-yr", "xr", "yr", "yr-xr", "yr", "xr", "double r = Math.sqrt(b*b + c*c - 2*b*c*Math.cos(Math.toRadians(e)));", "r", "Math.sqrt(b*b + c*c - 2*b*c*Math.cos(Math.toRadians(e)))", "Math.sqrt", "Math", "b*b + c*c - 2*b*c*Math.cos(Math.toRadians(e))", "b*b + c*c", "b*b", "b", "b", "c*c", "c", "c", "2*b*c*Math.cos(Math.toRadians(e))", "c", "2*b*c*Math.cos(Math.toRadians(e))", "2", "b", "c", "Math.cos(Math.toRadians(e))", "Math.cos", "Math", "Math.toRadians(e)", "Math.toRadians", "Math", "e", "System.out.println(r)", "System.out.println", "System.out", "System", "System.out", "r", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int b = sc.nextInt(); int c = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); double xr = (x*60 + y)/2.0; double yr = 6.0*y; double e = Math.max(xr-yr, yr-xr); double r = Math.sqrt(b*b + c*c - 2*b*c*Math.cos(Math.toRadians(e))); System.out.println(r); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 120, 5 ], [ 120, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 8, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 8, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 8, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 8, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 8, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 6, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble num1 = 0.5*m + 30*h;\n\t\tdouble num2 = 6*m;\n\t\tdouble num3 = 0;\n\t\t\n\t\tif(num1 > num2) {\n\t\t\tnum3 = num1 - num2;\n\t\t} else if (num2 > num1){\n\t\t\tnum3 = num2 - num1;\n\t\t}\n\t\t\n\t\tif(num3 > 180) {\n\t\t\tnum3 = 360- num3;\n\t\t}\n\t\t\n\n\n\t\tdouble cos = Math.cos(Math.toRadians(num3));\n\t\tdouble c = (a*a+b*b)-(2*a*b*cos);\n\t\tdouble ans = Math.sqrt(c);\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble num1 = 0.5*m + 30*h;\n\t\tdouble num2 = 6*m;\n\t\tdouble num3 = 0;\n\t\t\n\t\tif(num1 > num2) {\n\t\t\tnum3 = num1 - num2;\n\t\t} else if (num2 > num1){\n\t\t\tnum3 = num2 - num1;\n\t\t}\n\t\t\n\t\tif(num3 > 180) {\n\t\t\tnum3 = 360- num3;\n\t\t}\n\t\t\n\n\n\t\tdouble cos = Math.cos(Math.toRadians(num3));\n\t\tdouble c = (a*a+b*b)-(2*a*b*cos);\n\t\tdouble ans = Math.sqrt(c);\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble num1 = 0.5*m + 30*h;\n\t\tdouble num2 = 6*m;\n\t\tdouble num3 = 0;\n\t\t\n\t\tif(num1 > num2) {\n\t\t\tnum3 = num1 - num2;\n\t\t} else if (num2 > num1){\n\t\t\tnum3 = num2 - num1;\n\t\t}\n\t\t\n\t\tif(num3 > 180) {\n\t\t\tnum3 = 360- num3;\n\t\t}\n\t\t\n\n\n\t\tdouble cos = Math.cos(Math.toRadians(num3));\n\t\tdouble c = (a*a+b*b)-(2*a*b*cos);\n\t\tdouble ans = Math.sqrt(c);\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble num1 = 0.5*m + 30*h;\n\t\tdouble num2 = 6*m;\n\t\tdouble num3 = 0;\n\t\t\n\t\tif(num1 > num2) {\n\t\t\tnum3 = num1 - num2;\n\t\t} else if (num2 > num1){\n\t\t\tnum3 = num2 - num1;\n\t\t}\n\t\t\n\t\tif(num3 > 180) {\n\t\t\tnum3 = 360- num3;\n\t\t}\n\t\t\n\n\n\t\tdouble cos = Math.cos(Math.toRadians(num3));\n\t\tdouble c = (a*a+b*b)-(2*a*b*cos);\n\t\tdouble ans = Math.sqrt(c);\n\t\tSystem.out.println(ans);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a = sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b = sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double num1 = 0.5*m + 30*h;", "num1", "0.5*m + 30*h", "0.5*m", "0.5", "m", "30*h", "30", "h", "double num2 = 6*m;", "num2", "6*m", "6", "m", "double num3 = 0;", "num3", "0", "if(num1 > num2) {\n\t\t\tnum3 = num1 - num2;\n\t\t} else if (num2 > num1){\n\t\t\tnum3 = num2 - num1;\n\t\t}", "num1 > num2", "num1", "num2", "{\n\t\t\tnum3 = num1 - num2;\n\t\t}", "num3 = num1 - num2", "num3", "num1 - num2", "num1", "num2", "if (num2 > num1){\n\t\t\tnum3 = num2 - num1;\n\t\t}", "num2 > num1", "num2", "num1", "{\n\t\t\tnum3 = num2 - num1;\n\t\t}", "num3 = num2 - num1", "num3", "num2 - num1", "num2", "num1", "if(num3 > 180) {\n\t\t\tnum3 = 360- num3;\n\t\t}", "num3 > 180", "num3", "180", "{\n\t\t\tnum3 = 360- num3;\n\t\t}", "num3 = 360- num3", "num3", "360- num3", "360", "num3", "double cos = Math.cos(Math.toRadians(num3));", "cos", "Math.cos(Math.toRadians(num3))", "Math.cos", "Math", "Math.toRadians(num3)", "Math.toRadians", "Math", "num3", "double c = (a*a+b*b)-(2*a*b*cos);", "c", "(a*a+b*b)-(2*a*b*cos)", "(a*a+b*b)", "a*a", "a", "a", "b*b", "b", "b", "(2*a*b*cos)", "b", "2*a*b*cos", "2", "a", "b", "cos", "double ans = Math.sqrt(c);", "ans", "Math.sqrt(c)", "Math.sqrt", "Math", "c", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble num1 = 0.5*m + 30*h;\n\t\tdouble num2 = 6*m;\n\t\tdouble num3 = 0;\n\t\t\n\t\tif(num1 > num2) {\n\t\t\tnum3 = num1 - num2;\n\t\t} else if (num2 > num1){\n\t\t\tnum3 = num2 - num1;\n\t\t}\n\t\t\n\t\tif(num3 > 180) {\n\t\t\tnum3 = 360- num3;\n\t\t}\n\t\t\n\n\n\t\tdouble cos = Math.cos(Math.toRadians(num3));\n\t\tdouble c = (a*a+b*b)-(2*a*b*cos);\n\t\tdouble ans = Math.sqrt(c);\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble num1 = 0.5*m + 30*h;\n\t\tdouble num2 = 6*m;\n\t\tdouble num3 = 0;\n\t\t\n\t\tif(num1 > num2) {\n\t\t\tnum3 = num1 - num2;\n\t\t} else if (num2 > num1){\n\t\t\tnum3 = num2 - num1;\n\t\t}\n\t\t\n\t\tif(num3 > 180) {\n\t\t\tnum3 = 360- num3;\n\t\t}\n\t\t\n\n\n\t\tdouble cos = Math.cos(Math.toRadians(num3));\n\t\tdouble c = (a*a+b*b)-(2*a*b*cos);\n\t\tdouble ans = Math.sqrt(c);\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); int h = sc.nextInt(); int m = sc.nextInt(); double num1 = 0.5*m + 30*h; double num2 = 6*m; double num3 = 0; if(num1 > num2) { num3 = num1 - num2; } else if (num2 > num1){ num3 = num2 - num1; } if(num3 > 180) { num3 = 360- num3; } double cos = Math.cos(Math.toRadians(num3)); double c = (a*a+b*b)-(2*a*b*cos); double ans = Math.sqrt(c); System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 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, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 2, 2, 2, 2, 13, 17, 13, 17, 17, 41, 13, 2, 2, 13, 17, 2, 2, 13, 17, 17, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 0, 13, 2, 17, 13, 41, 13, 2, 2, 13, 13, 2, 13, 13, 41, 13, 2, 2, 17, 13, 13, 41, 13, 2, 13, 2, 13, 4, 18, 13, 2, 2, 13, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 141, 8 ], [ 141, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 11, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 11, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 11, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 55, 57 ], [ 11, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 60, 68 ], [ 11, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 11, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 11, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 11, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 11, 106 ], [ 106, 107 ], [ 106, 108 ], [ 109, 109 ], [ 109, 110 ], [ 109, 111 ], [ 109, 112 ], [ 11, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 122, 128 ], [ 11, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 9, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "\nimport java.io.*;\nimport java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=br.readLine();\n\t\tString[] cmd=s.split(\" \");\n\t\tdouble a=Double.valueOf(cmd[0]);\n\t\tdouble b=Double.valueOf(cmd[1]);\n\t\tdouble c=Double.valueOf(cmd[2]);\n\t\tdouble d=Double.valueOf(cmd[3]);\n\t\tdouble x=((c*60+d)*6)%360;\n\t\tdouble y=c*30+(d*1.0)/2;\n\t\tdouble an=Math.abs(x-y);\n\t\tif(an>180)\n\t\t\tan=360-an;\n\t\tdouble a1=a*a+b*b;\n\t\tdouble a2=2*a*b;\n\t\tdouble a3=a1-a2*Math.cos((an*Math.PI)/180);\n\t\tSystem.out.println(Math.sqrt(a3));\n\t}\n\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=br.readLine();\n\t\tString[] cmd=s.split(\" \");\n\t\tdouble a=Double.valueOf(cmd[0]);\n\t\tdouble b=Double.valueOf(cmd[1]);\n\t\tdouble c=Double.valueOf(cmd[2]);\n\t\tdouble d=Double.valueOf(cmd[3]);\n\t\tdouble x=((c*60+d)*6)%360;\n\t\tdouble y=c*30+(d*1.0)/2;\n\t\tdouble an=Math.abs(x-y);\n\t\tif(an>180)\n\t\t\tan=360-an;\n\t\tdouble a1=a*a+b*b;\n\t\tdouble a2=2*a*b;\n\t\tdouble a3=a1-a2*Math.cos((an*Math.PI)/180);\n\t\tSystem.out.println(Math.sqrt(a3));\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=br.readLine();\n\t\tString[] cmd=s.split(\" \");\n\t\tdouble a=Double.valueOf(cmd[0]);\n\t\tdouble b=Double.valueOf(cmd[1]);\n\t\tdouble c=Double.valueOf(cmd[2]);\n\t\tdouble d=Double.valueOf(cmd[3]);\n\t\tdouble x=((c*60+d)*6)%360;\n\t\tdouble y=c*30+(d*1.0)/2;\n\t\tdouble an=Math.abs(x-y);\n\t\tif(an>180)\n\t\t\tan=360-an;\n\t\tdouble a1=a*a+b*b;\n\t\tdouble a2=2*a*b;\n\t\tdouble a3=a1-a2*Math.cos((an*Math.PI)/180);\n\t\tSystem.out.println(Math.sqrt(a3));\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=br.readLine();\n\t\tString[] cmd=s.split(\" \");\n\t\tdouble a=Double.valueOf(cmd[0]);\n\t\tdouble b=Double.valueOf(cmd[1]);\n\t\tdouble c=Double.valueOf(cmd[2]);\n\t\tdouble d=Double.valueOf(cmd[3]);\n\t\tdouble x=((c*60+d)*6)%360;\n\t\tdouble y=c*30+(d*1.0)/2;\n\t\tdouble an=Math.abs(x-y);\n\t\tif(an>180)\n\t\t\tan=360-an;\n\t\tdouble a1=a*a+b*b;\n\t\tdouble a2=2*a*b;\n\t\tdouble a3=a1-a2*Math.cos((an*Math.PI)/180);\n\t\tSystem.out.println(Math.sqrt(a3));\n\t}", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String s=br.readLine();", "s", "br.readLine()", "br.readLine", "br", "String[] cmd=s.split(\" \");", "cmd", "s.split(\" \")", "s.split", "s", "\" \"", "double a=Double.valueOf(cmd[0]);", "a", "Double.valueOf(cmd[0])", "Double.valueOf", "Double", "cmd[0]", "cmd", "0", "double b=Double.valueOf(cmd[1]);", "b", "Double.valueOf(cmd[1])", "Double.valueOf", "Double", "cmd[1]", "cmd", "1", "double c=Double.valueOf(cmd[2]);", "c", "Double.valueOf(cmd[2])", "Double.valueOf", "Double", "cmd[2]", "cmd", "2", "double d=Double.valueOf(cmd[3]);", "d", "Double.valueOf(cmd[3])", "Double.valueOf", "Double", "cmd[3]", "cmd", "3", "double x=((c*60+d)*6)%360;", "x", "((c*60+d)*6)%360", "((c*60+d)*6)", "(c*60+d)", "c*60", "c", "60", "d", "6", "360", "double y=c*30+(d*1.0)/2;", "y", "c*30+(d*1.0)/2", "c*30", "c", "30", "(d*1.0)/2", "(d*1.0)", "d", "1.0", "2", "double an=Math.abs(x-y);", "an", "Math.abs(x-y)", "Math.abs", "Math", "x-y", "x", "y", "if(an>180)\n\t\t\tan=360-an;", "an>180", "an", "180", "an=360-an", "an", "360-an", "360", "an", "double a1=a*a+b*b;", "a1", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "double a2=2*a*b;", "a2", "2*a*b", "2*a*b", "2", "a", "b", "double a3=a1-a2*Math.cos((an*Math.PI)/180);", "a3", "a1-a2*Math.cos((an*Math.PI)/180)", "a1", "a2*Math.cos((an*Math.PI)/180)", "a2", "Math.cos((an*Math.PI)/180)", "Math.cos", "Math", "(an*Math.PI)/180", "(an*Math.PI)", "an", "Math.PI", "Math", "Math.PI", "180", "System.out.println(Math.sqrt(a3))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a3)", "Math.sqrt", "Math", "a3", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=br.readLine();\n\t\tString[] cmd=s.split(\" \");\n\t\tdouble a=Double.valueOf(cmd[0]);\n\t\tdouble b=Double.valueOf(cmd[1]);\n\t\tdouble c=Double.valueOf(cmd[2]);\n\t\tdouble d=Double.valueOf(cmd[3]);\n\t\tdouble x=((c*60+d)*6)%360;\n\t\tdouble y=c*30+(d*1.0)/2;\n\t\tdouble an=Math.abs(x-y);\n\t\tif(an>180)\n\t\t\tan=360-an;\n\t\tdouble a1=a*a+b*b;\n\t\tdouble a2=2*a*b;\n\t\tdouble a3=a1-a2*Math.cos((an*Math.PI)/180);\n\t\tSystem.out.println(Math.sqrt(a3));\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=br.readLine();\n\t\tString[] cmd=s.split(\" \");\n\t\tdouble a=Double.valueOf(cmd[0]);\n\t\tdouble b=Double.valueOf(cmd[1]);\n\t\tdouble c=Double.valueOf(cmd[2]);\n\t\tdouble d=Double.valueOf(cmd[3]);\n\t\tdouble x=((c*60+d)*6)%360;\n\t\tdouble y=c*30+(d*1.0)/2;\n\t\tdouble an=Math.abs(x-y);\n\t\tif(an>180)\n\t\t\tan=360-an;\n\t\tdouble a1=a*a+b*b;\n\t\tdouble a2=2*a*b;\n\t\tdouble a3=a1-a2*Math.cos((an*Math.PI)/180);\n\t\tSystem.out.println(Math.sqrt(a3));\n\t}\n\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception{ // TODO Auto-generated method stub BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String s=br.readLine(); String[] cmd=s.split(" "); double a=Double.valueOf(cmd[0]); double b=Double.valueOf(cmd[1]); double c=Double.valueOf(cmd[2]); double d=Double.valueOf(cmd[3]); double x=((c*60+d)*6)%360; double y=c*30+(d*1.0)/2; double an=Math.abs(x-y); if(an>180) an=360-an; double a1=a*a+b*b; double a2=2*a*b; double a3=a1-a2*Math.cos((an*Math.PI)/180); System.out.println(Math.sqrt(a3)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 2, 2, 13, 17, 17, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 2, 2, 13, 17, 17, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 2, 2, 13, 17, 17, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 2, 2, 13, 17, 17, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 41, 53 ], [ 8, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 56, 68 ], [ 8, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 71, 83 ], [ 8, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 86, 98 ], [ 8, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 8, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 6, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tdouble a=sc.nextInt();\n\t\tdouble b=sc.nextInt();\n\t\tdouble h=sc.nextInt();\n\t\tdouble m=sc.nextInt();\n\t\t\n\t\tdouble t=h*60+m;\n\t\t\n\t\t\n\t\t//double hx = Math.sin(Math.toRadians(t*0.5))*3;\n\t\t//double hy = Math.cos(Math.toRadians(t*0.5))*3;\n\t\tdouble hx = Math.cos(Math.toRadians(t*0.5-90))*a;\n\t\tdouble hy = Math.sin(Math.toRadians(t*0.5-90))*a;\n\t\t//System.out.println(hx);\n\t\t//System.out.println(hy);\n\t\t\n\t\t//double mx = Math.sin(Math.toRadians(t/6))*4;\n\t\t//double my = Math.cos(Math.toRadians(t/6))*4;\n\t\tdouble mx = Math.cos(Math.toRadians(t*6-90))*b;\n\t\tdouble my = Math.sin(Math.toRadians(t*6-90))*b;\n\t\t//System.out.println(mx);\n\t\t//System.out.println(my);\n\t\t\n\t\tdouble d = Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx));\n\t\tSystem.out.println(d);\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\t\n\t\tdouble a=sc.nextInt();\n\t\tdouble b=sc.nextInt();\n\t\tdouble h=sc.nextInt();\n\t\tdouble m=sc.nextInt();\n\t\t\n\t\tdouble t=h*60+m;\n\t\t\n\t\t\n\t\t//double hx = Math.sin(Math.toRadians(t*0.5))*3;\n\t\t//double hy = Math.cos(Math.toRadians(t*0.5))*3;\n\t\tdouble hx = Math.cos(Math.toRadians(t*0.5-90))*a;\n\t\tdouble hy = Math.sin(Math.toRadians(t*0.5-90))*a;\n\t\t//System.out.println(hx);\n\t\t//System.out.println(hy);\n\t\t\n\t\t//double mx = Math.sin(Math.toRadians(t/6))*4;\n\t\t//double my = Math.cos(Math.toRadians(t/6))*4;\n\t\tdouble mx = Math.cos(Math.toRadians(t*6-90))*b;\n\t\tdouble my = Math.sin(Math.toRadians(t*6-90))*b;\n\t\t//System.out.println(mx);\n\t\t//System.out.println(my);\n\t\t\n\t\tdouble d = Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx));\n\t\tSystem.out.println(d);\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tdouble a=sc.nextInt();\n\t\tdouble b=sc.nextInt();\n\t\tdouble h=sc.nextInt();\n\t\tdouble m=sc.nextInt();\n\t\t\n\t\tdouble t=h*60+m;\n\t\t\n\t\t\n\t\t//double hx = Math.sin(Math.toRadians(t*0.5))*3;\n\t\t//double hy = Math.cos(Math.toRadians(t*0.5))*3;\n\t\tdouble hx = Math.cos(Math.toRadians(t*0.5-90))*a;\n\t\tdouble hy = Math.sin(Math.toRadians(t*0.5-90))*a;\n\t\t//System.out.println(hx);\n\t\t//System.out.println(hy);\n\t\t\n\t\t//double mx = Math.sin(Math.toRadians(t/6))*4;\n\t\t//double my = Math.cos(Math.toRadians(t/6))*4;\n\t\tdouble mx = Math.cos(Math.toRadians(t*6-90))*b;\n\t\tdouble my = Math.sin(Math.toRadians(t*6-90))*b;\n\t\t//System.out.println(mx);\n\t\t//System.out.println(my);\n\t\t\n\t\tdouble d = Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx));\n\t\tSystem.out.println(d);\n\t\t\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tdouble a=sc.nextInt();\n\t\tdouble b=sc.nextInt();\n\t\tdouble h=sc.nextInt();\n\t\tdouble m=sc.nextInt();\n\t\t\n\t\tdouble t=h*60+m;\n\t\t\n\t\t\n\t\t//double hx = Math.sin(Math.toRadians(t*0.5))*3;\n\t\t//double hy = Math.cos(Math.toRadians(t*0.5))*3;\n\t\tdouble hx = Math.cos(Math.toRadians(t*0.5-90))*a;\n\t\tdouble hy = Math.sin(Math.toRadians(t*0.5-90))*a;\n\t\t//System.out.println(hx);\n\t\t//System.out.println(hy);\n\t\t\n\t\t//double mx = Math.sin(Math.toRadians(t/6))*4;\n\t\t//double my = Math.cos(Math.toRadians(t/6))*4;\n\t\tdouble mx = Math.cos(Math.toRadians(t*6-90))*b;\n\t\tdouble my = Math.sin(Math.toRadians(t*6-90))*b;\n\t\t//System.out.println(mx);\n\t\t//System.out.println(my);\n\t\t\n\t\tdouble d = Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx));\n\t\tSystem.out.println(d);\n\t\t\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a=sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "double b=sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "double h=sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "double m=sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double t=h*60+m;", "t", "h*60+m", "h*60", "h", "60", "m", "double hx = Math.cos(Math.toRadians(t*0.5-90))*a;", "hx", "Math.cos(Math.toRadians(t*0.5-90))*a", "Math.cos(Math.toRadians(t*0.5-90))", "Math.cos", "Math", "Math.toRadians(t*0.5-90)", "Math.toRadians", "Math", "t*0.5-90", "t*0.5", "t", "0.5", "90", "a", "double hy = Math.sin(Math.toRadians(t*0.5-90))*a;", "hy", "Math.sin(Math.toRadians(t*0.5-90))*a", "Math.sin(Math.toRadians(t*0.5-90))", "Math.sin", "Math", "Math.toRadians(t*0.5-90)", "Math.toRadians", "Math", "t*0.5-90", "t*0.5", "t", "0.5", "90", "a", "double mx = Math.cos(Math.toRadians(t*6-90))*b;", "mx", "Math.cos(Math.toRadians(t*6-90))*b", "Math.cos(Math.toRadians(t*6-90))", "Math.cos", "Math", "Math.toRadians(t*6-90)", "Math.toRadians", "Math", "t*6-90", "t*6", "t", "6", "90", "b", "double my = Math.sin(Math.toRadians(t*6-90))*b;", "my", "Math.sin(Math.toRadians(t*6-90))*b", "Math.sin(Math.toRadians(t*6-90))", "Math.sin", "Math", "Math.toRadians(t*6-90)", "Math.toRadians", "Math", "t*6-90", "t*6", "t", "6", "90", "b", "double d = Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx));", "d", "Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx))", "Math.sqrt", "Math", "(hy-my)*(hy-my)+(hx-mx)*(hx-mx)", "(hy-my)*(hy-my)", "(hy-my)", "hy", "my", "(hy-my)", "hy", "my", "(hx-mx)*(hx-mx)", "(hx-mx)", "hx", "mx", "(hx-mx)", "hx", "mx", "System.out.println(d)", "System.out.println", "System.out", "System", "System.out", "d", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tdouble a=sc.nextInt();\n\t\tdouble b=sc.nextInt();\n\t\tdouble h=sc.nextInt();\n\t\tdouble m=sc.nextInt();\n\t\t\n\t\tdouble t=h*60+m;\n\t\t\n\t\t\n\t\t//double hx = Math.sin(Math.toRadians(t*0.5))*3;\n\t\t//double hy = Math.cos(Math.toRadians(t*0.5))*3;\n\t\tdouble hx = Math.cos(Math.toRadians(t*0.5-90))*a;\n\t\tdouble hy = Math.sin(Math.toRadians(t*0.5-90))*a;\n\t\t//System.out.println(hx);\n\t\t//System.out.println(hy);\n\t\t\n\t\t//double mx = Math.sin(Math.toRadians(t/6))*4;\n\t\t//double my = Math.cos(Math.toRadians(t/6))*4;\n\t\tdouble mx = Math.cos(Math.toRadians(t*6-90))*b;\n\t\tdouble my = Math.sin(Math.toRadians(t*6-90))*b;\n\t\t//System.out.println(mx);\n\t\t//System.out.println(my);\n\t\t\n\t\tdouble d = Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx));\n\t\tSystem.out.println(d);\n\t\t\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\t\n\t\tdouble a=sc.nextInt();\n\t\tdouble b=sc.nextInt();\n\t\tdouble h=sc.nextInt();\n\t\tdouble m=sc.nextInt();\n\t\t\n\t\tdouble t=h*60+m;\n\t\t\n\t\t\n\t\t//double hx = Math.sin(Math.toRadians(t*0.5))*3;\n\t\t//double hy = Math.cos(Math.toRadians(t*0.5))*3;\n\t\tdouble hx = Math.cos(Math.toRadians(t*0.5-90))*a;\n\t\tdouble hy = Math.sin(Math.toRadians(t*0.5-90))*a;\n\t\t//System.out.println(hx);\n\t\t//System.out.println(hy);\n\t\t\n\t\t//double mx = Math.sin(Math.toRadians(t/6))*4;\n\t\t//double my = Math.cos(Math.toRadians(t/6))*4;\n\t\tdouble mx = Math.cos(Math.toRadians(t*6-90))*b;\n\t\tdouble my = Math.sin(Math.toRadians(t*6-90))*b;\n\t\t//System.out.println(mx);\n\t\t//System.out.println(my);\n\t\t\n\t\tdouble d = Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx));\n\t\tSystem.out.println(d);\n\t\t\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); double a=sc.nextInt(); double b=sc.nextInt(); double h=sc.nextInt(); double m=sc.nextInt(); double t=h*60+m; //double hx = Math.sin(Math.toRadians(t*0.5))*3; //double hy = Math.cos(Math.toRadians(t*0.5))*3; double hx = Math.cos(Math.toRadians(t*0.5-90))*a; double hy = Math.sin(Math.toRadians(t*0.5-90))*a; //System.out.println(hx); //System.out.println(hy); //double mx = Math.sin(Math.toRadians(t/6))*4; //double my = Math.cos(Math.toRadians(t/6))*4; double mx = Math.cos(Math.toRadians(t*6-90))*b; double my = Math.sin(Math.toRadians(t*6-90))*b; //System.out.println(mx); //System.out.println(my); double d = Math.sqrt((hy-my)*(hy-my)+(hx-mx)*(hx-mx)); System.out.println(d); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 17, 2, 2, 13, 17, 13, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 0, 13, 4, 18, 13, 2, 17, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 53, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 8, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 6, 70 ], [ 70, 71 ], [ 113, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 74, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 74, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 74, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 74, 106 ], [ 106, 107 ], [ 72, 108 ], [ 108, 109 ], [ 72, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n double degree = calculateAngle(H, M);\n double side = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.out.println(side);\n }\n\n static double calculateAngle(double h, double m) {\n double hour_angle = (0.5 * (h * 60 + m));\n double minute_angle = (6 * m);\n double angle = Math.abs(hour_angle - minute_angle);\n angle = Math.min(360 - angle, angle);\n return angle;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n double degree = calculateAngle(H, M);\n double side = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.out.println(side);\n }\n\n static double calculateAngle(double h, double m) {\n double hour_angle = (0.5 * (h * 60 + m));\n double minute_angle = (6 * m);\n double angle = Math.abs(hour_angle - minute_angle);\n angle = Math.min(360 - angle, angle);\n return angle;\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n double degree = calculateAngle(H, M);\n double side = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.out.println(side);\n }", "main", "{\n\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n double degree = calculateAngle(H, M);\n double side = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.out.println(side);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int A = scanner.nextInt();", "A", "scanner.nextInt()", "scanner.nextInt", "scanner", "int B = scanner.nextInt();", "B", "scanner.nextInt()", "scanner.nextInt", "scanner", "int H = scanner.nextInt();", "H", "scanner.nextInt()", "scanner.nextInt", "scanner", "int M = scanner.nextInt();", "M", "scanner.nextInt()", "scanner.nextInt", "scanner", "double degree = calculateAngle(H, M);", "degree", "calculateAngle(H, M)", "calculateAngle", "H", "M", "double side = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));", "side", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree))", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(Math.toRadians(degree))", "B", "2 * A * B * Math.cos(Math.toRadians(degree))", "2", "A", "B", "Math.cos(Math.toRadians(degree))", "Math.cos", "Math", "Math.toRadians(degree)", "Math.toRadians", "Math", "degree", "System.out.println(side)", "System.out.println", "System.out", "System", "System.out", "side", "String[] args", "args", "static double calculateAngle(double h, double m) {\n double hour_angle = (0.5 * (h * 60 + m));\n double minute_angle = (6 * m);\n double angle = Math.abs(hour_angle - minute_angle);\n angle = Math.min(360 - angle, angle);\n return angle;\n }", "calculateAngle", "{\n double hour_angle = (0.5 * (h * 60 + m));\n double minute_angle = (6 * m);\n double angle = Math.abs(hour_angle - minute_angle);\n angle = Math.min(360 - angle, angle);\n return angle;\n }", "double hour_angle = (0.5 * (h * 60 + m));", "hour_angle", "(0.5 * (h * 60 + m))", "0.5", "(h * 60 + m)", "h * 60", "h", "60", "m", "double minute_angle = (6 * m);", "minute_angle", "(6 * m)", "6", "m", "double angle = Math.abs(hour_angle - minute_angle);", "angle", "Math.abs(hour_angle - minute_angle)", "Math.abs", "Math", "hour_angle - minute_angle", "hour_angle", "minute_angle", "angle = Math.min(360 - angle, angle)", "angle", "Math.min(360 - angle, angle)", "Math.min", "Math", "360 - angle", "360", "angle", "angle", "return angle;", "angle", "double h", "h", "double m", "m", "public class Main {\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n double degree = calculateAngle(H, M);\n double side = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.out.println(side);\n }\n\n static double calculateAngle(double h, double m) {\n double hour_angle = (0.5 * (h * 60 + m));\n double minute_angle = (6 * m);\n double angle = Math.abs(hour_angle - minute_angle);\n angle = Math.min(360 - angle, angle);\n return angle;\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n double degree = calculateAngle(H, M);\n double side = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree)));\n System.out.println(side);\n }\n\n static double calculateAngle(double h, double m) {\n double hour_angle = (0.5 * (h * 60 + m));\n double minute_angle = (6 * m);\n double angle = Math.abs(hour_angle - minute_angle);\n angle = Math.min(360 - angle, angle);\n return angle;\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int A = scanner.nextInt(); int B = scanner.nextInt(); int H = scanner.nextInt(); int M = scanner.nextInt(); double degree = calculateAngle(H, M); double side = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(degree))); System.out.println(side); } static double calculateAngle(double h, double m) { double hour_angle = (0.5 * (h * 60 + m)); double minute_angle = (6 * m); double angle = Math.abs(hour_angle - minute_angle); angle = Math.min(360 - angle, angle); return angle; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 2, 2, 13, 17, 2, 2, 17, 13, 17, 0, 13, 2, 2, 17, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 0, 13, 2, 17, 13, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 116, 8 ], [ 116, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 11, 37 ], [ 37, 38 ], [ 11, 39 ], [ 39, 40 ], [ 11, 41 ], [ 41, 42 ], [ 11, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 11, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 11, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 11, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 11, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 90, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 90, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 11, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 11, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 9, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.*;\nimport java.lang.Math;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double rot;\n double hrot;\n double mrot;\n double ans;\n \n \throt = h*30 + 30*m/60.0;\n \n mrot = 360*m/60.0;\n \n rot = Math.abs(hrot - mrot);\n if(rot > 180) rot = 360 - rot;\n \n ans = (double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot));\n ans = Math.sqrt(ans);\n \n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double rot;\n double hrot;\n double mrot;\n double ans;\n \n \throt = h*30 + 30*m/60.0;\n \n mrot = 360*m/60.0;\n \n rot = Math.abs(hrot - mrot);\n if(rot > 180) rot = 360 - rot;\n \n ans = (double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot));\n ans = Math.sqrt(ans);\n \n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double rot;\n double hrot;\n double mrot;\n double ans;\n \n \throt = h*30 + 30*m/60.0;\n \n mrot = 360*m/60.0;\n \n rot = Math.abs(hrot - mrot);\n if(rot > 180) rot = 360 - rot;\n \n ans = (double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot));\n ans = Math.sqrt(ans);\n \n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double rot;\n double hrot;\n double mrot;\n double ans;\n \n \throt = h*30 + 30*m/60.0;\n \n mrot = 360*m/60.0;\n \n rot = Math.abs(hrot - mrot);\n if(rot > 180) rot = 360 - rot;\n \n ans = (double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot));\n ans = Math.sqrt(ans);\n \n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double rot;", "rot", "double hrot;", "hrot", "double mrot;", "mrot", "double ans;", "ans", "hrot = h*30 + 30*m/60.0", "hrot", "h*30 + 30*m/60.0", "h*30", "h", "30", "30*m/60.0", "30*m", "30", "m", "60.0", "mrot = 360*m/60.0", "mrot", "360*m/60.0", "360*m", "360", "m", "60.0", "rot = Math.abs(hrot - mrot)", "rot", "Math.abs(hrot - mrot)", "Math.abs", "Math", "hrot - mrot", "hrot", "mrot", "if(rot > 180) rot = 360 - rot;", "rot > 180", "rot", "180", "rot = 360 - rot", "rot", "360 - rot", "360", "rot", "ans = (double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot))", "ans", "(double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot))", "(double)a*a + (double)b*b", "(double)a*a", "(double)a", "a", "(double)b*b", "(double)b", "b", "2*a*b*Math.cos(Math.toRadians(rot))", "b", "2*a*b*Math.cos(Math.toRadians(rot))", "2", "a", "b", "Math.cos(Math.toRadians(rot))", "Math.cos", "Math", "Math.toRadians(rot)", "Math.toRadians", "Math", "rot", "ans = Math.sqrt(ans)", "ans", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double rot;\n double hrot;\n double mrot;\n double ans;\n \n \throt = h*30 + 30*m/60.0;\n \n mrot = 360*m/60.0;\n \n rot = Math.abs(hrot - mrot);\n if(rot > 180) rot = 360 - rot;\n \n ans = (double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot));\n ans = Math.sqrt(ans);\n \n System.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n \tint b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double rot;\n double hrot;\n double mrot;\n double ans;\n \n \throt = h*30 + 30*m/60.0;\n \n mrot = 360*m/60.0;\n \n rot = Math.abs(hrot - mrot);\n if(rot > 180) rot = 360 - rot;\n \n ans = (double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot));\n ans = Math.sqrt(ans);\n \n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; import java.lang.Math; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double rot; double hrot; double mrot; double ans; hrot = h*30 + 30*m/60.0; mrot = 360*m/60.0; rot = Math.abs(hrot - mrot); if(rot > 180) rot = 360 - rot; ans = (double)a*a + (double)b*b - 2*a*b*Math.cos(Math.toRadians(rot)); ans = Math.sqrt(ans); System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 13, 17, 0, 13, 2, 13, 17, 0, 13, 2, 2, 2, 13, 13, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 8, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 76, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 6, 84 ], [ 84, 85 ] ]
[ "import java.util.*;\nclass Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int b=sc.nextInt();\n int c=sc.nextInt();\n int d=sc.nextInt();\n double x=c*30;\n double y=d*6;\n x+=d*0.5;\n x=(x-y)*Math.PI/180;\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(x)));\n}\n}", "import java.util.*;", "util.*", "java", "class Main{\npublic static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int b=sc.nextInt();\n int c=sc.nextInt();\n int d=sc.nextInt();\n double x=c*30;\n double y=d*6;\n x+=d*0.5;\n x=(x-y)*Math.PI/180;\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(x)));\n}\n}", "Main", "public static void main(String[]args){\nScanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int b=sc.nextInt();\n int c=sc.nextInt();\n int d=sc.nextInt();\n double x=c*30;\n double y=d*6;\n x+=d*0.5;\n x=(x-y)*Math.PI/180;\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(x)));\n}", "main", "{\nScanner sc=new Scanner(System.in);\n int a=sc.nextInt();\n int b=sc.nextInt();\n int c=sc.nextInt();\n int d=sc.nextInt();\n double x=c*30;\n double y=d*6;\n x+=d*0.5;\n x=(x-y)*Math.PI/180;\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(x)));\n}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a=sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b=sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c=sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "int d=sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "double x=c*30;", "x", "c*30", "c", "30", "double y=d*6;", "y", "d*6", "d", "6", "x+=d*0.5", "x", "d*0.5", "d", "0.5", "x=(x-y)*Math.PI/180", "x", "(x-y)*Math.PI/180", "(x-y)*Math.PI", "(x-y)", "x", "y", "Math.PI", "Math", "Math.PI", "180", "System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(x)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a*a+b*b-2*a*b*Math.cos(x))", "Math.sqrt", "Math", "a*a+b*b-2*a*b*Math.cos(x)", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(x)", "b", "2*a*b*Math.cos(x)", "2", "a", "b", "Math.cos(x)", "Math.cos", "Math", "x", "String[]args", "args" ]
import java.util.*; class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); int d=sc.nextInt(); double x=c*30; double y=d*6; x+=d*0.5; x=(x-y)*Math.PI/180; System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(x))); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 13, 41, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 40, 17, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 40, 17, 41, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 142, 5 ], [ 142, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 51, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 62, 70 ], [ 8, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 73, 81 ], [ 8, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 84, 92 ], [ 8, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 8, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 8, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 8, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 127, 129 ], [ 8, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 6, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60+m;\n double hd = 0.5*time;\n double md = 6.0*m;\n\n double hx = Math.sin(Math.toRadians(hd)) * a;\n double hy = Math.cos(Math.toRadians(hd)) * a;\n double mx = Math.sin(Math.toRadians(md)) * b;\n double my = Math.cos(Math.toRadians(md)) * b;\n\n double x = (hx - mx);\n if (x<0) {\n x *= -1;\n }\n double y = (hy - my);\n if (y<0) {\n y *= -1;\n }\n double ans = x*x + y*y;\n System.out.println(Math.sqrt(ans));\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 int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60+m;\n double hd = 0.5*time;\n double md = 6.0*m;\n\n double hx = Math.sin(Math.toRadians(hd)) * a;\n double hy = Math.cos(Math.toRadians(hd)) * a;\n double mx = Math.sin(Math.toRadians(md)) * b;\n double my = Math.cos(Math.toRadians(md)) * b;\n\n double x = (hx - mx);\n if (x<0) {\n x *= -1;\n }\n double y = (hy - my);\n if (y<0) {\n y *= -1;\n }\n double ans = x*x + y*y;\n System.out.println(Math.sqrt(ans));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60+m;\n double hd = 0.5*time;\n double md = 6.0*m;\n\n double hx = Math.sin(Math.toRadians(hd)) * a;\n double hy = Math.cos(Math.toRadians(hd)) * a;\n double mx = Math.sin(Math.toRadians(md)) * b;\n double my = Math.cos(Math.toRadians(md)) * b;\n\n double x = (hx - mx);\n if (x<0) {\n x *= -1;\n }\n double y = (hy - my);\n if (y<0) {\n y *= -1;\n }\n double ans = x*x + y*y;\n System.out.println(Math.sqrt(ans));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60+m;\n double hd = 0.5*time;\n double md = 6.0*m;\n\n double hx = Math.sin(Math.toRadians(hd)) * a;\n double hy = Math.cos(Math.toRadians(hd)) * a;\n double mx = Math.sin(Math.toRadians(md)) * b;\n double my = Math.cos(Math.toRadians(md)) * b;\n\n double x = (hx - mx);\n if (x<0) {\n x *= -1;\n }\n double y = (hy - my);\n if (y<0) {\n y *= -1;\n }\n double ans = x*x + y*y;\n System.out.println(Math.sqrt(ans));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int time = h*60+m;", "time", "h*60+m", "h*60", "h", "60", "m", "double hd = 0.5*time;", "hd", "0.5*time", "0.5", "time", "double md = 6.0*m;", "md", "6.0*m", "6.0", "m", "double hx = Math.sin(Math.toRadians(hd)) * a;", "hx", "Math.sin(Math.toRadians(hd)) * a", "Math.sin(Math.toRadians(hd))", "Math.sin", "Math", "Math.toRadians(hd)", "Math.toRadians", "Math", "hd", "a", "double hy = Math.cos(Math.toRadians(hd)) * a;", "hy", "Math.cos(Math.toRadians(hd)) * a", "Math.cos(Math.toRadians(hd))", "Math.cos", "Math", "Math.toRadians(hd)", "Math.toRadians", "Math", "hd", "a", "double mx = Math.sin(Math.toRadians(md)) * b;", "mx", "Math.sin(Math.toRadians(md)) * b", "Math.sin(Math.toRadians(md))", "Math.sin", "Math", "Math.toRadians(md)", "Math.toRadians", "Math", "md", "b", "double my = Math.cos(Math.toRadians(md)) * b;", "my", "Math.cos(Math.toRadians(md)) * b", "Math.cos(Math.toRadians(md))", "Math.cos", "Math", "Math.toRadians(md)", "Math.toRadians", "Math", "md", "b", "double x = (hx - mx);", "x", "(hx - mx)", "hx", "mx", "if (x<0) {\n x *= -1;\n }", "x<0", "x", "0", "{\n x *= -1;\n }", "x *= -1", "x", "-1", "1", "double y = (hy - my);", "y", "(hy - my)", "hy", "my", "if (y<0) {\n y *= -1;\n }", "y<0", "y", "0", "{\n y *= -1;\n }", "y *= -1", "y", "-1", "1", "double ans = x*x + y*y;", "ans", "x*x + y*y", "x*x", "x", "x", "y*y", "y", "y", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60+m;\n double hd = 0.5*time;\n double md = 6.0*m;\n\n double hx = Math.sin(Math.toRadians(hd)) * a;\n double hy = Math.cos(Math.toRadians(hd)) * a;\n double mx = Math.sin(Math.toRadians(md)) * b;\n double my = Math.cos(Math.toRadians(md)) * b;\n\n double x = (hx - mx);\n if (x<0) {\n x *= -1;\n }\n double y = (hy - my);\n if (y<0) {\n y *= -1;\n }\n double ans = x*x + y*y;\n System.out.println(Math.sqrt(ans));\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60+m;\n double hd = 0.5*time;\n double md = 6.0*m;\n\n double hx = Math.sin(Math.toRadians(hd)) * a;\n double hy = Math.cos(Math.toRadians(hd)) * a;\n double mx = Math.sin(Math.toRadians(md)) * b;\n double my = Math.cos(Math.toRadians(md)) * b;\n\n double x = (hx - mx);\n if (x<0) {\n x *= -1;\n }\n double y = (hy - my);\n if (y<0) {\n y *= -1;\n }\n double ans = x*x + y*y;\n System.out.println(Math.sqrt(ans));\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); int time = h*60+m; double hd = 0.5*time; double md = 6.0*m; double hx = Math.sin(Math.toRadians(hd)) * a; double hy = Math.cos(Math.toRadians(hd)) * a; double mx = Math.sin(Math.toRadians(md)) * b; double my = Math.cos(Math.toRadians(md)) * b; double x = (hx - mx); if (x<0) { x *= -1; } double y = (hy - my); if (y<0) { y *= -1; } double ans = x*x + y*y; System.out.println(Math.sqrt(ans)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 2, 2, 13, 17, 2, 17, 2, 2, 17, 13, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 55, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 60, 64 ], [ 53, 65 ], [ 67, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 6, 84 ], [ 84, 85 ], [ 0, 86 ], [ 86, 87 ], [ 86, 88 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n double angle = Math.abs(M*6.0 - 0.5*(60*H + M));\n double length = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle)));\n System.out.println(length);\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 int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n double angle = Math.abs(M*6.0 - 0.5*(60*H + M));\n double length = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle)));\n System.out.println(length);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n double angle = Math.abs(M*6.0 - 0.5*(60*H + M));\n double length = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle)));\n System.out.println(length);\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n double angle = Math.abs(M*6.0 - 0.5*(60*H + M));\n double length = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle)));\n System.out.println(length);\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int A = scanner.nextInt();", "A", "scanner.nextInt()", "scanner.nextInt", "scanner", "int B = scanner.nextInt();", "B", "scanner.nextInt()", "scanner.nextInt", "scanner", "int H = scanner.nextInt();", "H", "scanner.nextInt()", "scanner.nextInt", "scanner", "int M = scanner.nextInt();", "M", "scanner.nextInt()", "scanner.nextInt", "scanner", "double angle = Math.abs(M*6.0 - 0.5*(60*H + M));", "angle", "Math.abs(M*6.0 - 0.5*(60*H + M))", "Math.abs", "Math", "M*6.0 - 0.5*(60*H + M)", "M*6.0", "M", "6.0", "0.5*(60*H + M)", "0.5", "(60*H + M)", "60*H", "60", "H", "M", "double length = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle)));", "length", "Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle)))", "Math.sqrt", "Math", "Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle))", "Math.pow(A, 2) + Math.pow(B, 2)", "Math.pow(A, 2)", "Math.pow", "Math", "A", "2", "Math.pow(B, 2)", "Math.pow", "Math", "B", "2", "2*A*B*Math.cos(Math.toRadians(angle))", "B", "2*A*B*Math.cos(Math.toRadians(angle))", "2", "A", "B", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "System.out.println(length)", "System.out.println", "System.out", "System", "System.out", "length", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n double angle = Math.abs(M*6.0 - 0.5*(60*H + M));\n double length = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle)));\n System.out.println(length);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int A = scanner.nextInt();\n int B = scanner.nextInt();\n int H = scanner.nextInt();\n int M = scanner.nextInt();\n\n double angle = Math.abs(M*6.0 - 0.5*(60*H + M));\n double length = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle)));\n System.out.println(length);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int A = scanner.nextInt(); int B = scanner.nextInt(); int H = scanner.nextInt(); int M = scanner.nextInt(); double angle = Math.abs(M*6.0 - 0.5*(60*H + M)); double length = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2*A*B*Math.cos(Math.toRadians(angle))); System.out.println(length); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 0, 13, 2, 2, 13, 17, 2, 13, 17, 0, 13, 2, 13, 17, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 62, 74 ], [ 76, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ] ]
[ "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 = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble angleH = 0;\n\t\tdouble angleM = 0;\n\t\tangleH = H * 30 + M * 0.5;\n\t\tangleM = M * 6;\n\t\tdouble angle = angleH - angleM;\n\t\tdouble ans = Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.print(ans);\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 = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble angleH = 0;\n\t\tdouble angleM = 0;\n\t\tangleH = H * 30 + M * 0.5;\n\t\tangleM = M * 6;\n\t\tdouble angle = angleH - angleM;\n\t\tdouble ans = Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.print(ans);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble angleH = 0;\n\t\tdouble angleM = 0;\n\t\tangleH = H * 30 + M * 0.5;\n\t\tangleM = M * 6;\n\t\tdouble angle = angleH - angleM;\n\t\tdouble ans = Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.print(ans);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble angleH = 0;\n\t\tdouble angleM = 0;\n\t\tangleH = H * 30 + M * 0.5;\n\t\tangleM = M * 6;\n\t\tdouble angle = angleH - angleM;\n\t\tdouble ans = Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2 * A * B * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.print(ans);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double angleH = 0;", "angleH", "0", "double angleM = 0;", "angleM", "0", "angleH = H * 30 + M * 0.5", "angleH", "H * 30 + M * 0.5", "H * 30", "H", "30", "M * 0.5", "M", "0.5", "angleM = M * 6", "angleM", "M * 6", "M", "6", "double angle = angleH - angleM;", "angle", "angleH - angleM", "angleH", "angleM", "double ans = Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2 * A * B * Math.cos(Math.toRadians(angle)));", "ans", "Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2 * A * B * Math.cos(Math.toRadians(angle)))", "Math.sqrt", "Math", "Math.pow(A,2) + Math.pow(B,2) - 2 * A * B * Math.cos(Math.toRadians(angle))", "Math.pow(A,2) + Math.pow(B,2)", "Math.pow(A,2)", "Math.pow", "Math", "A", "2", "Math.pow(B,2)", "Math.pow", "Math", "B", "2", "2 * A * B * Math.cos(Math.toRadians(angle))", "B", "2 * A * B * Math.cos(Math.toRadians(angle))", "2", "A", "B", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "System.out.print(ans)", "System.out.print", "System.out", "System", "System.out", "ans", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); double angleH = 0; double angleM = 0; angleH = H * 30 + M * 0.5; angleM = M * 6; double angle = angleH - angleM; double ans = Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2 * A * B * Math.cos(Math.toRadians(angle))); System.out.print(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 0, 13, 2, 2, 13, 17, 2, 13, 17, 0, 13, 8, 2, 13, 17, 40, 17, 17, 0, 13, 8, 2, 13, 17, 2, 17, 13, 13, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 105, 5 ], [ 105, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 8, 37 ], [ 37, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 50, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 59, 66 ], [ 8, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 8, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 6, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double rad;\n double ans;\n\n rad = (double)((h*30)-(m*5.5));\n rad *= (rad<=0)?-1:1;\n rad = (rad>=180)?360-rad:rad;\n\n ans = (a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad))));\n ans = Math.sqrt(ans);\n\n System.out.println(ans);\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double rad;\n double ans;\n\n rad = (double)((h*30)-(m*5.5));\n rad *= (rad<=0)?-1:1;\n rad = (rad>=180)?360-rad:rad;\n\n ans = (a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad))));\n ans = Math.sqrt(ans);\n\n System.out.println(ans);\n\n }\n}", "Main", "public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double rad;\n double ans;\n\n rad = (double)((h*30)-(m*5.5));\n rad *= (rad<=0)?-1:1;\n rad = (rad>=180)?360-rad:rad;\n\n ans = (a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad))));\n ans = Math.sqrt(ans);\n\n System.out.println(ans);\n\n }", "main", "{\n \n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double rad;\n double ans;\n\n rad = (double)((h*30)-(m*5.5));\n rad *= (rad<=0)?-1:1;\n rad = (rad>=180)?360-rad:rad;\n\n ans = (a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad))));\n ans = Math.sqrt(ans);\n\n System.out.println(ans);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "double rad;", "rad", "double ans;", "ans", "rad = (double)((h*30)-(m*5.5))", "rad", "(double)((h*30)-(m*5.5))", "(h*30)", "h", "30", "(m*5.5)", "m", "5.5", "rad *= (rad<=0)?-1:1", "rad", "(rad<=0)?-1:1", "(rad<=0)", "rad", "0", "-1", "1", "1", "rad = (rad>=180)?360-rad:rad", "rad", "(rad>=180)?360-rad:rad", "(rad>=180)", "rad", "180", "360-rad", "360", "rad", "rad", "ans = (a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad))))", "ans", "(a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad))))", "(a*a)+(b*b)", "(a*a)", "a", "a", "(b*b)", "b", "b", "((2*a*b)*(Math.cos(Math.toRadians(rad))))", "(2*a*b)", "2*a*b", "2", "a", "b", "(Math.cos(Math.toRadians(rad)))", "Math.cos", "Math", "Math.toRadians(rad)", "Math.toRadians", "Math", "rad", "ans = Math.sqrt(ans)", "ans", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double rad;\n double ans;\n\n rad = (double)((h*30)-(m*5.5));\n rad *= (rad<=0)?-1:1;\n rad = (rad>=180)?360-rad:rad;\n\n ans = (a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad))));\n ans = Math.sqrt(ans);\n\n System.out.println(ans);\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n \n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double rad;\n double ans;\n\n rad = (double)((h*30)-(m*5.5));\n rad *= (rad<=0)?-1:1;\n rad = (rad>=180)?360-rad:rad;\n\n ans = (a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad))));\n ans = Math.sqrt(ans);\n\n System.out.println(ans);\n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); sc.close(); double rad; double ans; rad = (double)((h*30)-(m*5.5)); rad *= (rad<=0)?-1:1; rad = (rad>=180)?360-rad:rad; ans = (a*a)+(b*b)-((2*a*b)*(Math.cos(Math.toRadians(rad)))); ans = Math.sqrt(ans); System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 2, 17, 18, 13, 13, 17, 41, 13, 2, 2, 17, 18, 13, 13, 17, 41, 13, 2, 2, 13, 13, 2, 2, 13, 18, 13, 13, 17, 41, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 37, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 46, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 59, 65 ], [ 8, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 8, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 86, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 8, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int A = sc.nextInt();\n\t\tfinal int B = sc.nextInt();\n\t\tfinal int H = sc.nextInt();\n\t\tfinal int M = sc.nextInt();\n\t\tsc.close();\n\t\tdouble omega_h = 2*Math.PI/12;\n\t\tdouble omega_m = 2*Math.PI/60;\n\t\tdouble dig_h = omega_h*H + M*Math.PI/360;\n\t\tdouble dig_m = omega_m*M;\n\t\tdouble ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m)));\n\t\tSystem.out.println(ans);\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\tfinal int A = sc.nextInt();\n\t\tfinal int B = sc.nextInt();\n\t\tfinal int H = sc.nextInt();\n\t\tfinal int M = sc.nextInt();\n\t\tsc.close();\n\t\tdouble omega_h = 2*Math.PI/12;\n\t\tdouble omega_m = 2*Math.PI/60;\n\t\tdouble dig_h = omega_h*H + M*Math.PI/360;\n\t\tdouble dig_m = omega_m*M;\n\t\tdouble ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m)));\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int A = sc.nextInt();\n\t\tfinal int B = sc.nextInt();\n\t\tfinal int H = sc.nextInt();\n\t\tfinal int M = sc.nextInt();\n\t\tsc.close();\n\t\tdouble omega_h = 2*Math.PI/12;\n\t\tdouble omega_m = 2*Math.PI/60;\n\t\tdouble dig_h = omega_h*H + M*Math.PI/360;\n\t\tdouble dig_m = omega_m*M;\n\t\tdouble ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m)));\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int A = sc.nextInt();\n\t\tfinal int B = sc.nextInt();\n\t\tfinal int H = sc.nextInt();\n\t\tfinal int M = sc.nextInt();\n\t\tsc.close();\n\t\tdouble omega_h = 2*Math.PI/12;\n\t\tdouble omega_m = 2*Math.PI/60;\n\t\tdouble dig_h = omega_h*H + M*Math.PI/360;\n\t\tdouble dig_m = omega_m*M;\n\t\tdouble ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m)));\n\t\tSystem.out.println(ans);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "final int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "final int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "final int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "double omega_h = 2*Math.PI/12;", "omega_h", "2*Math.PI/12", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "12", "double omega_m = 2*Math.PI/60;", "omega_m", "2*Math.PI/60", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "60", "double dig_h = omega_h*H + M*Math.PI/360;", "dig_h", "omega_h*H + M*Math.PI/360", "omega_h*H", "omega_h", "H", "M*Math.PI/360", "M*Math.PI", "M", "Math.PI", "Math", "Math.PI", "360", "double dig_m = omega_m*M;", "dig_m", "omega_m*M", "omega_m", "M", "double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m)));", "ans", "Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m)))", "Math.sqrt", "Math", "A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m))", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.abs(dig_h - dig_m))", "B", "2*A*B*Math.cos(Math.abs(dig_h - dig_m))", "2", "A", "B", "Math.cos(Math.abs(dig_h - dig_m))", "Math.cos", "Math", "Math.abs(dig_h - dig_m)", "Math.abs", "Math", "dig_h - dig_m", "dig_h", "dig_m", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int A = sc.nextInt();\n\t\tfinal int B = sc.nextInt();\n\t\tfinal int H = sc.nextInt();\n\t\tfinal int M = sc.nextInt();\n\t\tsc.close();\n\t\tdouble omega_h = 2*Math.PI/12;\n\t\tdouble omega_m = 2*Math.PI/60;\n\t\tdouble dig_h = omega_h*H + M*Math.PI/360;\n\t\tdouble dig_m = omega_m*M;\n\t\tdouble ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m)));\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tfinal int A = sc.nextInt();\n\t\tfinal int B = sc.nextInt();\n\t\tfinal int H = sc.nextInt();\n\t\tfinal int M = sc.nextInt();\n\t\tsc.close();\n\t\tdouble omega_h = 2*Math.PI/12;\n\t\tdouble omega_m = 2*Math.PI/60;\n\t\tdouble dig_h = omega_h*H + M*Math.PI/360;\n\t\tdouble dig_m = omega_m*M;\n\t\tdouble ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m)));\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int A = sc.nextInt(); final int B = sc.nextInt(); final int H = sc.nextInt(); final int M = sc.nextInt(); sc.close(); double omega_h = 2*Math.PI/12; double omega_m = 2*Math.PI/60; double dig_h = omega_h*H + M*Math.PI/360; double dig_m = omega_m*M; double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.abs(dig_h - dig_m))); System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 2, 2, 17, 13, 13, 41, 13, 2, 2, 13, 17, 17, 41, 13, 2, 13, 17, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 136, 5 ], [ 136, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 8, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 8, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 110, 114 ], [ 109, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 115, 119 ], [ 108, 120 ], [ 122, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 122, 126 ], [ 8, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 6, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "\nimport java.util.*;\n\n\n \npublic class Main {\n\n public static void main(String args[]) {\n \tScanner sc = new Scanner(System.in);\n \tdouble shortA=sc.nextInt();\n \tdouble longB =sc.nextInt();\n \tdouble time=sc.nextInt();\n \tdouble minute=sc.nextInt();\n \tdouble all=360;\n \tdouble ans=0.0;\n double timeMinute=60.0*time+minute;\n double shortaa=(timeMinute/720.0)*360;\n double longaa =minute*6;\n double angle=0.0;\n if(shortaa<longaa) {\n \tangle=longaa-shortaa;\n }else {\n \tangle=shortaa-longaa;\n } \n\n \n if(angle==360.0) {\n \tangle=0.0;\n }\n else if(angle>180.0) {\n \tangle=360.0-angle;\n }\n \n double cos = Math.cos(Math.toRadians(angle));\n ans= Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos);\n\n \n System.out.println(ans);\n\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String args[]) {\n \tScanner sc = new Scanner(System.in);\n \tdouble shortA=sc.nextInt();\n \tdouble longB =sc.nextInt();\n \tdouble time=sc.nextInt();\n \tdouble minute=sc.nextInt();\n \tdouble all=360;\n \tdouble ans=0.0;\n double timeMinute=60.0*time+minute;\n double shortaa=(timeMinute/720.0)*360;\n double longaa =minute*6;\n double angle=0.0;\n if(shortaa<longaa) {\n \tangle=longaa-shortaa;\n }else {\n \tangle=shortaa-longaa;\n } \n\n \n if(angle==360.0) {\n \tangle=0.0;\n }\n else if(angle>180.0) {\n \tangle=360.0-angle;\n }\n \n double cos = Math.cos(Math.toRadians(angle));\n ans= Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos);\n\n \n System.out.println(ans);\n\n\n }\n}", "Main", "public static void main(String args[]) {\n \tScanner sc = new Scanner(System.in);\n \tdouble shortA=sc.nextInt();\n \tdouble longB =sc.nextInt();\n \tdouble time=sc.nextInt();\n \tdouble minute=sc.nextInt();\n \tdouble all=360;\n \tdouble ans=0.0;\n double timeMinute=60.0*time+minute;\n double shortaa=(timeMinute/720.0)*360;\n double longaa =minute*6;\n double angle=0.0;\n if(shortaa<longaa) {\n \tangle=longaa-shortaa;\n }else {\n \tangle=shortaa-longaa;\n } \n\n \n if(angle==360.0) {\n \tangle=0.0;\n }\n else if(angle>180.0) {\n \tangle=360.0-angle;\n }\n \n double cos = Math.cos(Math.toRadians(angle));\n ans= Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos);\n\n \n System.out.println(ans);\n\n\n }", "main", "{\n \tScanner sc = new Scanner(System.in);\n \tdouble shortA=sc.nextInt();\n \tdouble longB =sc.nextInt();\n \tdouble time=sc.nextInt();\n \tdouble minute=sc.nextInt();\n \tdouble all=360;\n \tdouble ans=0.0;\n double timeMinute=60.0*time+minute;\n double shortaa=(timeMinute/720.0)*360;\n double longaa =minute*6;\n double angle=0.0;\n if(shortaa<longaa) {\n \tangle=longaa-shortaa;\n }else {\n \tangle=shortaa-longaa;\n } \n\n \n if(angle==360.0) {\n \tangle=0.0;\n }\n else if(angle>180.0) {\n \tangle=360.0-angle;\n }\n \n double cos = Math.cos(Math.toRadians(angle));\n ans= Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos);\n\n \n System.out.println(ans);\n\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double shortA=sc.nextInt();", "shortA", "sc.nextInt()", "sc.nextInt", "sc", "double longB =sc.nextInt();", "longB", "sc.nextInt()", "sc.nextInt", "sc", "double time=sc.nextInt();", "time", "sc.nextInt()", "sc.nextInt", "sc", "double minute=sc.nextInt();", "minute", "sc.nextInt()", "sc.nextInt", "sc", "double all=360;", "all", "360", "double ans=0.0;", "ans", "0.0", "double timeMinute=60.0*time+minute;", "timeMinute", "60.0*time+minute", "60.0*time", "60.0", "time", "minute", "double shortaa=(timeMinute/720.0)*360;", "shortaa", "(timeMinute/720.0)*360", "(timeMinute/720.0)", "timeMinute", "720.0", "360", "double longaa =minute*6;", "longaa", "minute*6", "minute", "6", "double angle=0.0;", "angle", "0.0", "if(shortaa<longaa) {\n \tangle=longaa-shortaa;\n }else {\n \tangle=shortaa-longaa;\n }", "shortaa<longaa", "shortaa", "longaa", "{\n \tangle=longaa-shortaa;\n }", "angle=longaa-shortaa", "angle", "longaa-shortaa", "longaa", "shortaa", "{\n \tangle=shortaa-longaa;\n }", "angle=shortaa-longaa", "angle", "shortaa-longaa", "shortaa", "longaa", "if(angle==360.0) {\n \tangle=0.0;\n }\n else if(angle>180.0) {\n \tangle=360.0-angle;\n }", "angle==360.0", "angle", "360.0", "{\n \tangle=0.0;\n }", "angle=0.0", "angle", "0.0", "if(angle>180.0) {\n \tangle=360.0-angle;\n }", "angle>180.0", "angle", "180.0", "{\n \tangle=360.0-angle;\n }", "angle=360.0-angle", "angle", "360.0-angle", "360.0", "angle", "double cos = Math.cos(Math.toRadians(angle));", "cos", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "ans= Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos)", "ans", "Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos)", "Math.sqrt", "Math", "Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos", "Math.pow(shortA, 2)+Math.pow(longB, 2)", "Math.pow(shortA, 2)", "Math.pow", "Math", "shortA", "2", "Math.pow(longB, 2)", "Math.pow", "Math", "longB", "2", "2.0*shortA*longB*cos", "longB", "2.0*shortA*longB*cos", "2.0", "shortA", "longB", "cos", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String args[]", "args", "public class Main {\n\n public static void main(String args[]) {\n \tScanner sc = new Scanner(System.in);\n \tdouble shortA=sc.nextInt();\n \tdouble longB =sc.nextInt();\n \tdouble time=sc.nextInt();\n \tdouble minute=sc.nextInt();\n \tdouble all=360;\n \tdouble ans=0.0;\n double timeMinute=60.0*time+minute;\n double shortaa=(timeMinute/720.0)*360;\n double longaa =minute*6;\n double angle=0.0;\n if(shortaa<longaa) {\n \tangle=longaa-shortaa;\n }else {\n \tangle=shortaa-longaa;\n } \n\n \n if(angle==360.0) {\n \tangle=0.0;\n }\n else if(angle>180.0) {\n \tangle=360.0-angle;\n }\n \n double cos = Math.cos(Math.toRadians(angle));\n ans= Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos);\n\n \n System.out.println(ans);\n\n\n }\n}", "public class Main {\n\n public static void main(String args[]) {\n \tScanner sc = new Scanner(System.in);\n \tdouble shortA=sc.nextInt();\n \tdouble longB =sc.nextInt();\n \tdouble time=sc.nextInt();\n \tdouble minute=sc.nextInt();\n \tdouble all=360;\n \tdouble ans=0.0;\n double timeMinute=60.0*time+minute;\n double shortaa=(timeMinute/720.0)*360;\n double longaa =minute*6;\n double angle=0.0;\n if(shortaa<longaa) {\n \tangle=longaa-shortaa;\n }else {\n \tangle=shortaa-longaa;\n } \n\n \n if(angle==360.0) {\n \tangle=0.0;\n }\n else if(angle>180.0) {\n \tangle=360.0-angle;\n }\n \n double cos = Math.cos(Math.toRadians(angle));\n ans= Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos);\n\n \n System.out.println(ans);\n\n\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); double shortA=sc.nextInt(); double longB =sc.nextInt(); double time=sc.nextInt(); double minute=sc.nextInt(); double all=360; double ans=0.0; double timeMinute=60.0*time+minute; double shortaa=(timeMinute/720.0)*360; double longaa =minute*6; double angle=0.0; if(shortaa<longaa) { angle=longaa-shortaa; }else { angle=shortaa-longaa; } if(angle==360.0) { angle=0.0; } else if(angle>180.0) { angle=360.0-angle; } double cos = Math.cos(Math.toRadians(angle)); ans= Math.sqrt( Math.pow(shortA, 2)+Math.pow(longB, 2)-2.0*shortA*longB*cos); System.out.println(ans); } }
[ 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, 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, 18, 13, 2, 2, 2, 4, 18, 13, 18, 13, 17, 17, 17, 2, 2, 17, 4, 18, 13, 18, 13, 17, 17, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 18, 13, 17, 17, 17, 41, 13, 41, 13, 14, 2, 13, 13, 30, 14, 2, 2, 13, 13, 18, 13, 13, 30, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 2, 13, 13, 30, 14, 2, 2, 13, 13, 18, 13, 13, 30, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 2, 13, 13, 4, 18, 18, 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 ], [ 242, 11 ], [ 242, 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 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 33 ], [ 25, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 25, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 25, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 56, 65 ], [ 55, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 75 ], [ 25, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 86, 88 ], [ 82, 89 ], [ 81, 90 ], [ 25, 91 ], [ 91, 92 ], [ 25, 93 ], [ 93, 94 ], [ 25, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 114, 122 ], [ 124, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 124, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 100, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 145, 147 ], [ 140, 148 ], [ 150, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 157, 163 ], [ 163, 164 ], [ 163, 165 ], [ 95, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 172, 174 ], [ 167, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 186, 188 ], [ 181, 189 ], [ 191, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 191, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 198, 199 ], [ 198, 200 ], [ 167, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 212, 214 ], [ 207, 215 ], [ 217, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 220 ], [ 217, 221 ], [ 221, 222 ], [ 222, 223 ], [ 221, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 227, 228 ], [ 227, 229 ], [ 224, 230 ], [ 230, 231 ], [ 230, 232 ], [ 25, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 233, 238 ], [ 12, 239 ], [ 239, 240 ], [ 0, 241 ], [ 241, 242 ], [ 241, 243 ] ]
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] inputs = br.readLine().split(\" \");\n double hour = Double.parseDouble(inputs[0]);\n double minutes = Double.parseDouble(inputs[1]);\n double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);\n double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);\n double chajiao;\n double result;\n if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }\n System.out.print(result);\n }catch (IOException e){\n e.printStackTrace();\n }\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 public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] inputs = br.readLine().split(\" \");\n double hour = Double.parseDouble(inputs[0]);\n double minutes = Double.parseDouble(inputs[1]);\n double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);\n double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);\n double chajiao;\n double result;\n if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }\n System.out.print(result);\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] inputs = br.readLine().split(\" \");\n double hour = Double.parseDouble(inputs[0]);\n double minutes = Double.parseDouble(inputs[1]);\n double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);\n double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);\n double chajiao;\n double result;\n if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }\n System.out.print(result);\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] inputs = br.readLine().split(\" \");\n double hour = Double.parseDouble(inputs[0]);\n double minutes = Double.parseDouble(inputs[1]);\n double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);\n double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);\n double chajiao;\n double result;\n if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }\n System.out.print(result);\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try {\n String[] inputs = br.readLine().split(\" \");\n double hour = Double.parseDouble(inputs[0]);\n double minutes = Double.parseDouble(inputs[1]);\n double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);\n double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);\n double chajiao;\n double result;\n if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }\n System.out.print(result);\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 String[] inputs = br.readLine().split(\" \");\n double hour = Double.parseDouble(inputs[0]);\n double minutes = Double.parseDouble(inputs[1]);\n double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);\n double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);\n double chajiao;\n double result;\n if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }\n System.out.print(result);\n }", "String[] inputs = br.readLine().split(\" \");", "inputs", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "double hour = Double.parseDouble(inputs[0]);", "hour", "Double.parseDouble(inputs[0])", "Double.parseDouble", "Double", "inputs[0]", "inputs", "0", "double minutes = Double.parseDouble(inputs[1]);", "minutes", "Double.parseDouble(inputs[1])", "Double.parseDouble", "Double", "inputs[1]", "inputs", "1", "double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);", "hour_jiaodu", "Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60)", "Math.toRadians", "Math", "Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60", "Double.parseDouble(inputs[2])/12*360", "Double.parseDouble(inputs[2])/12", "Double.parseDouble(inputs[2])", "Double.parseDouble", "Double", "inputs[2]", "inputs", "2", "12", "360", "30*Double.parseDouble(inputs[3])/60", "30*Double.parseDouble(inputs[3])", "30", "Double.parseDouble(inputs[3])", "Double.parseDouble", "Double", "inputs[3]", "inputs", "3", "60", "double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);", "minute_jiaodu", "Math.toRadians(Double.parseDouble(inputs[3])/60*360)", "Math.toRadians", "Math", "Double.parseDouble(inputs[3])/60*360", "Double.parseDouble(inputs[3])/60", "Double.parseDouble(inputs[3])", "Double.parseDouble", "Double", "inputs[3]", "inputs", "3", "60", "360", "double chajiao;", "chajiao", "double result;", "result", "if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }", "hour_jiaodu>minute_jiaodu", "hour_jiaodu", "minute_jiaodu", "{\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }", "if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }", "(hour_jiaodu-minute_jiaodu)<=Math.PI", "(hour_jiaodu-minute_jiaodu)", "hour_jiaodu", "minute_jiaodu", "Math.PI", "Math", "Math.PI", "{\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }", "result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu))", "result", "Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu))", "Math.sqrt", "Math", "hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu)", "hour*hour+minutes*minutes", "hour*hour", "hour", "hour", "minutes*minutes", "minutes", "minutes", "2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu)", "minutes", "2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu)", "2", "hour", "minutes", "Math.cos(hour_jiaodu-minute_jiaodu)", "Math.cos", "Math", "hour_jiaodu-minute_jiaodu", "hour_jiaodu", "minute_jiaodu", "{\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }", "result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)))", "result", "Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)))", "Math.sqrt", "Math", "hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu))", "hour*hour+minutes*minutes", "hour*hour", "hour", "hour", "minutes*minutes", "minutes", "minutes", "2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu))", "minutes", "2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu))", "2", "hour", "minutes", "Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu))", "Math.cos", "Math", "2*Math.PI-(hour_jiaodu-minute_jiaodu)", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "(hour_jiaodu-minute_jiaodu)", "hour_jiaodu", "minute_jiaodu", "{\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }", "if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }", "minute_jiaodu-hour_jiaodu<=Math.PI", "minute_jiaodu-hour_jiaodu", "minute_jiaodu", "hour_jiaodu", "Math.PI", "Math", "Math.PI", "{\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }", "result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu))", "result", "Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu))", "Math.sqrt", "Math", "hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu)", "hour*hour+minutes*minutes", "hour*hour", "hour", "hour", "minutes*minutes", "minutes", "minutes", "2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu)", "minutes", "2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu)", "2", "hour", "minutes", "Math.cos(minute_jiaodu-hour_jiaodu)", "Math.cos", "Math", "minute_jiaodu-hour_jiaodu", "minute_jiaodu", "hour_jiaodu", "{\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }", "result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)))", "result", "Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)))", "Math.sqrt", "Math", "hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu))", "hour*hour+minutes*minutes", "hour*hour", "hour", "hour", "minutes*minutes", "minutes", "minutes", "2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu))", "minutes", "2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu))", "2", "hour", "minutes", "Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu))", "Math.cos", "Math", "2*Math.PI-(minute_jiaodu-hour_jiaodu)", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "(minute_jiaodu-hour_jiaodu)", "minute_jiaodu", "hour_jiaodu", "System.out.print(result)", "System.out.print", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] inputs = br.readLine().split(\" \");\n double hour = Double.parseDouble(inputs[0]);\n double minutes = Double.parseDouble(inputs[1]);\n double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);\n double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);\n double chajiao;\n double result;\n if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }\n System.out.print(result);\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n String[] inputs = br.readLine().split(\" \");\n double hour = Double.parseDouble(inputs[0]);\n double minutes = Double.parseDouble(inputs[1]);\n double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60);\n double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360);\n double chajiao;\n double result;\n if(hour_jiaodu>minute_jiaodu){\n if((hour_jiaodu-minute_jiaodu)<=Math.PI){\n result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu));\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu)));\n }\n }\n else {\n if(minute_jiaodu-hour_jiaodu<=Math.PI){\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));;\n }\n else {\n result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu)));\n }\n }\n System.out.print(result);\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args){ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String[] inputs = br.readLine().split(" "); double hour = Double.parseDouble(inputs[0]); double minutes = Double.parseDouble(inputs[1]); double hour_jiaodu = Math.toRadians(Double.parseDouble(inputs[2])/12*360+30*Double.parseDouble(inputs[3])/60); double minute_jiaodu = Math.toRadians(Double.parseDouble(inputs[3])/60*360); double chajiao; double result; if(hour_jiaodu>minute_jiaodu){ if((hour_jiaodu-minute_jiaodu)<=Math.PI){ result = Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(hour_jiaodu-minute_jiaodu)); } else { result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(hour_jiaodu-minute_jiaodu))); } } else { if(minute_jiaodu-hour_jiaodu<=Math.PI){ result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(minute_jiaodu-hour_jiaodu));; } else { result=Math.sqrt(hour*hour+minutes*minutes-2*hour*minutes*Math.cos(2*Math.PI-(minute_jiaodu-hour_jiaodu))); } } System.out.print(result); }catch (IOException e){ e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 2, 2, 13, 17, 2, 13, 2, 17, 17, 2, 13, 17, 18, 13, 13, 17, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 10, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 10, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 10, 34 ], [ 34, 35 ], [ 34, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 48, 50 ], [ 37, 51 ], [ 51, 52 ], [ 51, 53 ], [ 37, 54 ], [ 10, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 60, 72 ], [ 74, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 10, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 6, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\t\t\t//a^2 = b^2 + c^2 - 2*b*c*cosA\n\t\t\t\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\t\n\t\t\tdouble h = sc.nextInt();\n\t\t\tdouble m = sc.nextInt();\n\t\t\t\n\t\t\t//calc radius from h and m\n\t\t\tdouble radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;\n//\t\t\tif ( radius > Math.PI) {\n//\t\t\t\tradius = 2*Math.PI - radius;\n//\t\t\t}\n//\t\t\tSystem.out.println((h/12 - m / 60) * 360);\n//\t\t\tSystem.out.println(radius);\n//\t\t\tSystem.out.println(Math.pow(a, 2));\n//\t\t\tSystem.out.println(Math.pow(b, 2));\n//\t\t\tSystem.out.println(2 * a * b * Math.cos(radius));\n\t\t\t\n\t\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t\t\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\t\t\t//a^2 = b^2 + c^2 - 2*b*c*cosA\n\t\t\t\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\t\n\t\t\tdouble h = sc.nextInt();\n\t\t\tdouble m = sc.nextInt();\n\t\t\t\n\t\t\t//calc radius from h and m\n\t\t\tdouble radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;\n//\t\t\tif ( radius > Math.PI) {\n//\t\t\t\tradius = 2*Math.PI - radius;\n//\t\t\t}\n//\t\t\tSystem.out.println((h/12 - m / 60) * 360);\n//\t\t\tSystem.out.println(radius);\n//\t\t\tSystem.out.println(Math.pow(a, 2));\n//\t\t\tSystem.out.println(Math.pow(b, 2));\n//\t\t\tSystem.out.println(2 * a * b * Math.cos(radius));\n\t\t\t\n\t\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t\t\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\t\t\t//a^2 = b^2 + c^2 - 2*b*c*cosA\n\t\t\t\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\t\n\t\t\tdouble h = sc.nextInt();\n\t\t\tdouble m = sc.nextInt();\n\t\t\t\n\t\t\t//calc radius from h and m\n\t\t\tdouble radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;\n//\t\t\tif ( radius > Math.PI) {\n//\t\t\t\tradius = 2*Math.PI - radius;\n//\t\t\t}\n//\t\t\tSystem.out.println((h/12 - m / 60) * 360);\n//\t\t\tSystem.out.println(radius);\n//\t\t\tSystem.out.println(Math.pow(a, 2));\n//\t\t\tSystem.out.println(Math.pow(b, 2));\n//\t\t\tSystem.out.println(2 * a * b * Math.cos(radius));\n\t\t\t\n\t\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\t\t\t//a^2 = b^2 + c^2 - 2*b*c*cosA\n\t\t\t\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\t\n\t\t\tdouble h = sc.nextInt();\n\t\t\tdouble m = sc.nextInt();\n\t\t\t\n\t\t\t//calc radius from h and m\n\t\t\tdouble radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;\n//\t\t\tif ( radius > Math.PI) {\n//\t\t\t\tradius = 2*Math.PI - radius;\n//\t\t\t}\n//\t\t\tSystem.out.println((h/12 - m / 60) * 360);\n//\t\t\tSystem.out.println(radius);\n//\t\t\tSystem.out.println(Math.pow(a, 2));\n//\t\t\tSystem.out.println(Math.pow(b, 2));\n//\t\t\tSystem.out.println(2 * a * b * Math.cos(radius));\n\t\t\t\n\t\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t\t\n\t\t}\n\t}", "try(Scanner sc = new Scanner(System.in)) {\n\n\t\t\t//a^2 = b^2 + c^2 - 2*b*c*cosA\n\t\t\t\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\t\n\t\t\tdouble h = sc.nextInt();\n\t\t\tdouble m = sc.nextInt();\n\t\t\t\n\t\t\t//calc radius from h and m\n\t\t\tdouble radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;\n//\t\t\tif ( radius > Math.PI) {\n//\t\t\t\tradius = 2*Math.PI - radius;\n//\t\t\t}\n//\t\t\tSystem.out.println((h/12 - m / 60) * 360);\n//\t\t\tSystem.out.println(radius);\n//\t\t\tSystem.out.println(Math.pow(a, 2));\n//\t\t\tSystem.out.println(Math.pow(b, 2));\n//\t\t\tSystem.out.println(2 * a * b * Math.cos(radius));\n\t\t\t\n\t\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t\t\n\t\t}", "{\n\n\t\t\t//a^2 = b^2 + c^2 - 2*b*c*cosA\n\t\t\t\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\t\n\t\t\tdouble h = sc.nextInt();\n\t\t\tdouble m = sc.nextInt();\n\t\t\t\n\t\t\t//calc radius from h and m\n\t\t\tdouble radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;\n//\t\t\tif ( radius > Math.PI) {\n//\t\t\t\tradius = 2*Math.PI - radius;\n//\t\t\t}\n//\t\t\tSystem.out.println((h/12 - m / 60) * 360);\n//\t\t\tSystem.out.println(radius);\n//\t\t\tSystem.out.println(Math.pow(a, 2));\n//\t\t\tSystem.out.println(Math.pow(b, 2));\n//\t\t\tSystem.out.println(2 * a * b * Math.cos(radius));\n\t\t\t\n\t\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t\t\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "double a = sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b = sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "double h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "double m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;", "radius", "(h / 12 + m/(60*12) - m /60) * Math.PI * 2.0", "(h / 12 + m/(60*12) - m /60) * Math.PI * 2.0", "(h / 12 + m/(60*12) - m /60)", "h / 12 + m/(60*12)", "h / 12", "h", "12", "m/(60*12)", "m", "(60*12)", "60", "12", "m /60", "m", "60", "Math.PI", "Math", "Math.PI", "2.0", "double ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));", "ans", "Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius))", "Math.sqrt", "Math", "Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius)", "Math.pow(a, 2) + Math.pow(b,2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b,2)", "Math.pow", "Math", "b", "2", "2*a*b*Math.cos(radius)", "b", "2*a*b*Math.cos(radius)", "2", "a", "b", "Math.cos(radius)", "Math.cos", "Math", "radius", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\t\t\t//a^2 = b^2 + c^2 - 2*b*c*cosA\n\t\t\t\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\t\n\t\t\tdouble h = sc.nextInt();\n\t\t\tdouble m = sc.nextInt();\n\t\t\t\n\t\t\t//calc radius from h and m\n\t\t\tdouble radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;\n//\t\t\tif ( radius > Math.PI) {\n//\t\t\t\tradius = 2*Math.PI - radius;\n//\t\t\t}\n//\t\t\tSystem.out.println((h/12 - m / 60) * 360);\n//\t\t\tSystem.out.println(radius);\n//\t\t\tSystem.out.println(Math.pow(a, 2));\n//\t\t\tSystem.out.println(Math.pow(b, 2));\n//\t\t\tSystem.out.println(2 * a * b * Math.cos(radius));\n\t\t\t\n\t\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t\t\n\t\t}\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\ttry(Scanner sc = new Scanner(System.in)) {\n\n\t\t\t//a^2 = b^2 + c^2 - 2*b*c*cosA\n\t\t\t\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\t\n\t\t\tdouble h = sc.nextInt();\n\t\t\tdouble m = sc.nextInt();\n\t\t\t\n\t\t\t//calc radius from h and m\n\t\t\tdouble radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0;\n//\t\t\tif ( radius > Math.PI) {\n//\t\t\t\tradius = 2*Math.PI - radius;\n//\t\t\t}\n//\t\t\tSystem.out.println((h/12 - m / 60) * 360);\n//\t\t\tSystem.out.println(radius);\n//\t\t\tSystem.out.println(Math.pow(a, 2));\n//\t\t\tSystem.out.println(Math.pow(b, 2));\n//\t\t\tSystem.out.println(2 * a * b * Math.cos(radius));\n\t\t\t\n\t\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius));\n\t\t\t\n\t\t\tSystem.out.println(ans);\n\t\t\t\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ try(Scanner sc = new Scanner(System.in)) { //a^2 = b^2 + c^2 - 2*b*c*cosA double a = sc.nextDouble(); double b = sc.nextDouble(); double h = sc.nextInt(); double m = sc.nextInt(); //calc radius from h and m double radius = (h / 12 + m/(60*12) - m /60) * Math.PI * 2.0; // if ( radius > Math.PI) { // radius = 2*Math.PI - radius; // } // System.out.println((h/12 - m / 60) * 360); // System.out.println(radius); // System.out.println(Math.pow(a, 2)); // System.out.println(Math.pow(b, 2)); // System.out.println(2 * a * b * Math.cos(radius)); double ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b,2) - 2*a*b*Math.cos(radius)); System.out.println(ans); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 0, 13, 2, 13, 17, 0, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 82, 86 ], [ 75, 87 ], [ 89, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 8, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\tdouble h = scan.nextDouble();\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble ah = 0;\n\t\tdouble am = 0;\n\t\tam = m * 6;\n\t\tah = h * 30 + m / 2;\n\n\t\tdouble angle = Math.abs(am - ah);\n\t\tif(angle > 180) {\n\t\t\tangle = 360 - angle;\n\t\t}\n\n\t\t// System.out.println(angle);\n\n\t\tdouble r=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(r);\n\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\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\tdouble h = scan.nextDouble();\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble ah = 0;\n\t\tdouble am = 0;\n\t\tam = m * 6;\n\t\tah = h * 30 + m / 2;\n\n\t\tdouble angle = Math.abs(am - ah);\n\t\tif(angle > 180) {\n\t\t\tangle = 360 - angle;\n\t\t}\n\n\t\t// System.out.println(angle);\n\n\t\tdouble r=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(r);\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\tdouble h = scan.nextDouble();\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble ah = 0;\n\t\tdouble am = 0;\n\t\tam = m * 6;\n\t\tah = h * 30 + m / 2;\n\n\t\tdouble angle = Math.abs(am - ah);\n\t\tif(angle > 180) {\n\t\t\tangle = 360 - angle;\n\t\t}\n\n\t\t// System.out.println(angle);\n\n\t\tdouble r=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(r);\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\tdouble h = scan.nextDouble();\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble ah = 0;\n\t\tdouble am = 0;\n\t\tam = m * 6;\n\t\tah = h * 30 + m / 2;\n\n\t\tdouble angle = Math.abs(am - ah);\n\t\tif(angle > 180) {\n\t\t\tangle = 360 - angle;\n\t\t}\n\n\t\t// System.out.println(angle);\n\n\t\tdouble r=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(r);\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "double a = scan.nextDouble();", "a", "scan.nextDouble()", "scan.nextDouble", "scan", "double b = scan.nextDouble();", "b", "scan.nextDouble()", "scan.nextDouble", "scan", "double h = scan.nextDouble();", "h", "scan.nextDouble()", "scan.nextDouble", "scan", "double m = scan.nextDouble();", "m", "scan.nextDouble()", "scan.nextDouble", "scan", "double ah = 0;", "ah", "0", "double am = 0;", "am", "0", "am = m * 6", "am", "m * 6", "m", "6", "ah = h * 30 + m / 2", "ah", "h * 30 + m / 2", "h * 30", "h", "30", "m / 2", "m", "2", "double angle = Math.abs(am - ah);", "angle", "Math.abs(am - ah)", "Math.abs", "Math", "am - ah", "am", "ah", "if(angle > 180) {\n\t\t\tangle = 360 - angle;\n\t\t}", "angle > 180", "angle", "180", "{\n\t\t\tangle = 360 - angle;\n\t\t}", "angle = 360 - angle", "angle", "360 - angle", "360", "angle", "double r=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle)));", "r", "Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle)))", "Math.sqrt", "Math", "Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle))", "Math.pow(b,2)+Math.pow(a,2)", "Math.pow(b,2)", "Math.pow", "Math", "b", "2", "Math.pow(a,2)", "Math.pow", "Math", "a", "2", "2*b*a*Math.cos(Math.toRadians(angle))", "a", "2*b*a*Math.cos(Math.toRadians(angle))", "2", "b", "a", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "System.out.println(r)", "System.out.println", "System.out", "System", "System.out", "r", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\tdouble h = scan.nextDouble();\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble ah = 0;\n\t\tdouble am = 0;\n\t\tam = m * 6;\n\t\tah = h * 30 + m / 2;\n\n\t\tdouble angle = Math.abs(am - ah);\n\t\tif(angle > 180) {\n\t\t\tangle = 360 - angle;\n\t\t}\n\n\t\t// System.out.println(angle);\n\n\t\tdouble r=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(r);\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdouble a = scan.nextDouble();\n\t\tdouble b = scan.nextDouble();\n\t\tdouble h = scan.nextDouble();\n\t\tdouble m = scan.nextDouble();\n\n\t\tdouble ah = 0;\n\t\tdouble am = 0;\n\t\tam = m * 6;\n\t\tah = h * 30 + m / 2;\n\n\t\tdouble angle = Math.abs(am - ah);\n\t\tif(angle > 180) {\n\t\t\tangle = 360 - angle;\n\t\t}\n\n\t\t// System.out.println(angle);\n\n\t\tdouble r=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(r);\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); double a = scan.nextDouble(); double b = scan.nextDouble(); double h = scan.nextDouble(); double m = scan.nextDouble(); double ah = 0; double am = 0; am = m * 6; ah = h * 30 + m / 2; double angle = Math.abs(am - ah); if(angle > 180) { angle = 360 - angle; } // System.out.println(angle); double r=Math.sqrt(Math.pow(b,2)+Math.pow(a,2)-2*b*a*Math.cos(Math.toRadians(angle))); System.out.println(r); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 8, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 8, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 98, 100 ], [ 95, 101 ], [ 101, 102 ], [ 101, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "/* C - :(Colon) */\n\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double arg1 = 30 * H + 0.5 * M;\n double arg2 = 6 * M;\n double x1 = A * Math.cos(Math.toRadians(arg1));\n double y1 = A * Math.sin(Math.toRadians(arg1));\n double x2 = B * Math.cos(Math.toRadians(arg2));\n double y2 = B * Math.sin(Math.toRadians(arg2));\n System.out.println(Math.hypot(x2 - x1, y2 - y1));\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double arg1 = 30 * H + 0.5 * M;\n double arg2 = 6 * M;\n double x1 = A * Math.cos(Math.toRadians(arg1));\n double y1 = A * Math.sin(Math.toRadians(arg1));\n double x2 = B * Math.cos(Math.toRadians(arg2));\n double y2 = B * Math.sin(Math.toRadians(arg2));\n System.out.println(Math.hypot(x2 - x1, y2 - y1));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double arg1 = 30 * H + 0.5 * M;\n double arg2 = 6 * M;\n double x1 = A * Math.cos(Math.toRadians(arg1));\n double y1 = A * Math.sin(Math.toRadians(arg1));\n double x2 = B * Math.cos(Math.toRadians(arg2));\n double y2 = B * Math.sin(Math.toRadians(arg2));\n System.out.println(Math.hypot(x2 - x1, y2 - y1));\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double arg1 = 30 * H + 0.5 * M;\n double arg2 = 6 * M;\n double x1 = A * Math.cos(Math.toRadians(arg1));\n double y1 = A * Math.sin(Math.toRadians(arg1));\n double x2 = B * Math.cos(Math.toRadians(arg2));\n double y2 = B * Math.sin(Math.toRadians(arg2));\n System.out.println(Math.hypot(x2 - x1, y2 - y1));\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int A = scan.nextInt();", "A", "scan.nextInt()", "scan.nextInt", "scan", "int B = scan.nextInt();", "B", "scan.nextInt()", "scan.nextInt", "scan", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int M = scan.nextInt();", "M", "scan.nextInt()", "scan.nextInt", "scan", "double arg1 = 30 * H + 0.5 * M;", "arg1", "30 * H + 0.5 * M", "30 * H", "30", "H", "0.5 * M", "0.5", "M", "double arg2 = 6 * M;", "arg2", "6 * M", "6", "M", "double x1 = A * Math.cos(Math.toRadians(arg1));", "x1", "A * Math.cos(Math.toRadians(arg1))", "A", "Math.cos(Math.toRadians(arg1))", "Math.cos", "Math", "Math.toRadians(arg1)", "Math.toRadians", "Math", "arg1", "double y1 = A * Math.sin(Math.toRadians(arg1));", "y1", "A * Math.sin(Math.toRadians(arg1))", "A", "Math.sin(Math.toRadians(arg1))", "Math.sin", "Math", "Math.toRadians(arg1)", "Math.toRadians", "Math", "arg1", "double x2 = B * Math.cos(Math.toRadians(arg2));", "x2", "B * Math.cos(Math.toRadians(arg2))", "B", "Math.cos(Math.toRadians(arg2))", "Math.cos", "Math", "Math.toRadians(arg2)", "Math.toRadians", "Math", "arg2", "double y2 = B * Math.sin(Math.toRadians(arg2));", "y2", "B * Math.sin(Math.toRadians(arg2))", "B", "Math.sin(Math.toRadians(arg2))", "Math.sin", "Math", "Math.toRadians(arg2)", "Math.toRadians", "Math", "arg2", "System.out.println(Math.hypot(x2 - x1, y2 - y1))", "System.out.println", "System.out", "System", "System.out", "Math.hypot(x2 - x1, y2 - y1)", "Math.hypot", "Math", "x2 - x1", "x2", "x1", "y2 - y1", "y2", "y1", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double arg1 = 30 * H + 0.5 * M;\n double arg2 = 6 * M;\n double x1 = A * Math.cos(Math.toRadians(arg1));\n double y1 = A * Math.sin(Math.toRadians(arg1));\n double x2 = B * Math.cos(Math.toRadians(arg2));\n double y2 = B * Math.sin(Math.toRadians(arg2));\n System.out.println(Math.hypot(x2 - x1, y2 - y1));\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double arg1 = 30 * H + 0.5 * M;\n double arg2 = 6 * M;\n double x1 = A * Math.cos(Math.toRadians(arg1));\n double y1 = A * Math.sin(Math.toRadians(arg1));\n double x2 = B * Math.cos(Math.toRadians(arg2));\n double y2 = B * Math.sin(Math.toRadians(arg2));\n System.out.println(Math.hypot(x2 - x1, y2 - y1));\n }\n}", "Main" ]
/* C - :(Colon) */ import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int H = scan.nextInt(); int M = scan.nextInt(); double arg1 = 30 * H + 0.5 * M; double arg2 = 6 * M; double x1 = A * Math.cos(Math.toRadians(arg1)); double y1 = A * Math.sin(Math.toRadians(arg1)); double x2 = B * Math.cos(Math.toRadians(arg2)); double y2 = B * Math.sin(Math.toRadians(arg2)); System.out.println(Math.hypot(x2 - x1, y2 - y1)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 2, 13, 17, 13, 17, 2, 13, 17, 0, 13, 2, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 2, 2, 40, 4, 18, 13, 13, 17, 13, 13, 2, 13, 13, 2, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 34, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 61, 61 ], [ 61, 62 ], [ 64, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 64, 70 ], [ 63, 71 ], [ 64, 72 ], [ 61, 73 ], [ 73, 74 ], [ 73, 75 ], [ 61, 76 ], [ 76, 77 ], [ 76, 78 ], [ 6, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n double theta = (h * 60 + m) / 720 - m / 60;\n theta *= Math.PI * 2;\n System.out.println(Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b));\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n double theta = (h * 60 + m) / 720 - m / 60;\n theta *= Math.PI * 2;\n System.out.println(Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b));\n }\n}", "Main", "public static void main(String[] args) {\n // write your code here\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n double theta = (h * 60 + m) / 720 - m / 60;\n theta *= Math.PI * 2;\n System.out.println(Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b));\n }", "main", "{\n // write your code here\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n double theta = (h * 60 + m) / 720 - m / 60;\n theta *= Math.PI * 2;\n System.out.println(Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "double h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "double m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double theta = (h * 60 + m) / 720 - m / 60;", "theta", "(h * 60 + m) / 720 - m / 60", "(h * 60 + m) / 720", "(h * 60 + m)", "h * 60", "h", "60", "m", "720", "m / 60", "m", "60", "theta *= Math.PI * 2", "theta", "Math.PI * 2", "Math.PI", "Math", "Math.PI", "2", "System.out.println(Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b)", "Math.sqrt", "Math", "- Math.cos(theta) * 2 * a * b + a * a + b * b", "- Math.cos(theta) * 2 * a * b + a * a + b * b", "- Math.cos(theta) * 2 * a * b", "a", "- Math.cos(theta) * 2 * a * b", "- Math.cos(theta)", "Math.cos(theta)", "Math.cos", "Math", "theta", "2", "a", "b", "a * a", "a", "a", "b * b", "b", "b", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n double theta = (h * 60 + m) / 720 - m / 60;\n theta *= Math.PI * 2;\n System.out.println(Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b));\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n // write your code here\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n double h = sc.nextInt();\n double m = sc.nextInt();\n double theta = (h * 60 + m) / 720 - m / 60;\n theta *= Math.PI * 2;\n System.out.println(Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b));\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { // write your code here Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); double h = sc.nextInt(); double m = sc.nextInt(); double theta = (h * 60 + m) / 720 - m / 60; theta *= Math.PI * 2; System.out.println(Math.sqrt(- Math.cos(theta) * 2 * a * b + a * a + b * b)); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 41, 13, 4, 18, 13, 2, 2, 2, 17, 13, 2, 13, 17, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 17, 14, 2, 13, 17, 30, 41, 13, 2, 2, 13, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 30, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 166, 8 ], [ 166, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 42, 37 ], [ 61, 38 ], [ 58, 39 ], [ 55, 40 ], [ 52, 41 ], [ 49, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 49, 49 ], [ 49, 50 ], [ 49, 51 ], [ 52, 52 ], [ 52, 53 ], [ 52, 54 ], [ 55, 55 ], [ 55, 56 ], [ 55, 57 ], [ 58, 58 ], [ 58, 59 ], [ 58, 60 ], [ 61, 61 ], [ 61, 62 ], [ 61, 63 ], [ 42, 64 ], [ 64, 65 ], [ 64, 66 ], [ 35, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 81, 83 ], [ 67, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 67, 94 ], [ 94, 95 ], [ 94, 96 ], [ 67, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 101, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 97, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 131, 133 ], [ 126, 134 ], [ 136, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 136, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 123, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 35, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 9, 163 ], [ 163, 164 ], [ 0, 165 ], [ 165, 166 ], [ 165, 167 ] ]
[ "import java.util.*;\nimport java.math.*;\n\npublic class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n if(A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59){\n double hm = Math.abs(30*H +M*0.5-M*6);\n if(hm >= 180){\n hm = 360.0 - hm;\n }\n \n double ans = 0;\n if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n } \n }else{\n System.out.println(\"入力条件に違反しています\"); \n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "public class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n if(A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59){\n double hm = Math.abs(30*H +M*0.5-M*6);\n if(hm >= 180){\n hm = 360.0 - hm;\n }\n \n double ans = 0;\n if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n } \n }else{\n System.out.println(\"入力条件に違反しています\"); \n }\n }\n}", "Main", "public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n if(A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59){\n double hm = Math.abs(30*H +M*0.5-M*6);\n if(hm >= 180){\n hm = 360.0 - hm;\n }\n \n double ans = 0;\n if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n } \n }else{\n System.out.println(\"入力条件に違反しています\"); \n }\n }", "main", "{\n \n Scanner sc = new Scanner(System.in);\n \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n if(A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59){\n double hm = Math.abs(30*H +M*0.5-M*6);\n if(hm >= 180){\n hm = 360.0 - hm;\n }\n \n double ans = 0;\n if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n } \n }else{\n System.out.println(\"入力条件に違反しています\"); \n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "if(A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59){\n double hm = Math.abs(30*H +M*0.5-M*6);\n if(hm >= 180){\n hm = 360.0 - hm;\n }\n \n double ans = 0;\n if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n } \n }else{\n System.out.println(\"入力条件に違反しています\"); \n }", "A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59", "M>=0", "H<=11", "H>=0", "B<=1000", "B>=1", "A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59", "A>=1", "A", "1", "A<=1000", "A", "1000", "B>=1", "B", "1", "B<=1000", "B", "1000", "H>=0", "H", "0", "H<=11", "H", "11", "M>=0", "M", "0", "M<=59", "M", "59", "{\n double hm = Math.abs(30*H +M*0.5-M*6);\n if(hm >= 180){\n hm = 360.0 - hm;\n }\n \n double ans = 0;\n if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n } \n }", "double hm = Math.abs(30*H +M*0.5-M*6);", "hm", "Math.abs(30*H +M*0.5-M*6)", "Math.abs", "Math", "30*H +M*0.5-M*6", "30*H +M*0.5", "30*H", "30", "H", "M*0.5", "M", "0.5", "M*6", "M", "6", "if(hm >= 180){\n hm = 360.0 - hm;\n }", "hm >= 180", "hm", "180", "{\n hm = 360.0 - hm;\n }", "hm = 360.0 - hm", "hm", "360.0 - hm", "360.0", "hm", "double ans = 0;", "ans", "0", "if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n }", "hm == 90", "hm", "90", "{\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }", "int I = A*A + B*B;", "I", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "ans = Math.sqrt(I)", "ans", "Math.sqrt(I)", "Math.sqrt", "Math", "I", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n }", "ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm))", "ans", "A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm))", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.toRadians(hm))", "B", "2*A*B*Math.cos(Math.toRadians(hm))", "2", "A", "B", "Math.cos(Math.toRadians(hm))", "Math.cos", "Math", "Math.toRadians(hm)", "Math.toRadians", "Math", "hm", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "{\n System.out.println(\"入力条件に違反しています\"); \n }", "System.out.println(\"入力条件に違反しています\")", "System.out.println", "System.out", "System", "System.out", "\"入力条件に違反しています\"", "String[] args", "args", "public class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n if(A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59){\n double hm = Math.abs(30*H +M*0.5-M*6);\n if(hm >= 180){\n hm = 360.0 - hm;\n }\n \n double ans = 0;\n if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n } \n }else{\n System.out.println(\"入力条件に違反しています\"); \n }\n }\n}", "public class Main{\n \n public static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n \n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n if(A>=1 && A<=1000 && B>=1 && B<=1000 \n && H>=0 && H<=11 && M>=0 && M<=59){\n double hm = Math.abs(30*H +M*0.5-M*6);\n if(hm >= 180){\n hm = 360.0 - hm;\n }\n \n double ans = 0;\n if(hm == 90){\n int I = A*A + B*B;\n ans = Math.sqrt(I);\n //String answer = String.format(\"%.20f\",ans);\n //System.out.println(answer);\n System.out.println(ans); \n }else{\n ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm));\n //String answer = String.format(\"%.20f\",Math.sqrt(ans));\n //System.out.println(answer);\n System.out.println(Math.sqrt(ans)); \n } \n }else{\n System.out.println(\"入力条件に違反しています\"); \n }\n }\n}", "Main" ]
import java.util.*; import java.math.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); if(A>=1 && A<=1000 && B>=1 && B<=1000 && H>=0 && H<=11 && M>=0 && M<=59){ double hm = Math.abs(30*H +M*0.5-M*6); if(hm >= 180){ hm = 360.0 - hm; } double ans = 0; if(hm == 90){ int I = A*A + B*B; ans = Math.sqrt(I); //String answer = String.format("%.20f",ans); //System.out.println(answer); System.out.println(ans); }else{ ans = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(hm)); //String answer = String.format("%.20f",Math.sqrt(ans)); //System.out.println(answer); System.out.println(Math.sqrt(ans)); } }else{ System.out.println("入力条件に違反しています"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 2, 2, 13, 17, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 99, 5 ], [ 99, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 8, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 70, 74 ], [ 69, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 75, 79 ], [ 68, 80 ], [ 82, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 82, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 6, 96 ], [ 96, 97 ], [ 0, 98 ], [ 98, 99 ], [ 98, 100 ] ]
[ "import java.util.*;\n \npublic class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double ans = 0;\n double hh = h * 30 + 0.5 * m;\n double mm = 6 * m;\n double hm = (double)Math.abs(hh - mm);\n double cos = (double)Math.cos(Math.toRadians(hm));\n ans = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos;\n System.out.println(Math.sqrt(ans));\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double ans = 0;\n double hh = h * 30 + 0.5 * m;\n double mm = 6 * m;\n double hm = (double)Math.abs(hh - mm);\n double cos = (double)Math.cos(Math.toRadians(hm));\n ans = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos;\n System.out.println(Math.sqrt(ans));\n }\n}", "Main", "public static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double ans = 0;\n double hh = h * 30 + 0.5 * m;\n double mm = 6 * m;\n double hm = (double)Math.abs(hh - mm);\n double cos = (double)Math.cos(Math.toRadians(hm));\n ans = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos;\n System.out.println(Math.sqrt(ans));\n }", "main", "{\n \tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double ans = 0;\n double hh = h * 30 + 0.5 * m;\n double mm = 6 * m;\n double hm = (double)Math.abs(hh - mm);\n double cos = (double)Math.cos(Math.toRadians(hm));\n ans = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos;\n System.out.println(Math.sqrt(ans));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double ans = 0;", "ans", "0", "double hh = h * 30 + 0.5 * m;", "hh", "h * 30 + 0.5 * m", "h * 30", "h", "30", "0.5 * m", "0.5", "m", "double mm = 6 * m;", "mm", "6 * m", "6", "m", "double hm = (double)Math.abs(hh - mm);", "hm", "(double)Math.abs(hh - mm)", "Math.abs", "Math", "hh - mm", "hh", "mm", "double cos = (double)Math.cos(Math.toRadians(hm));", "cos", "(double)Math.cos(Math.toRadians(hm))", "Math.cos", "Math", "Math.toRadians(hm)", "Math.toRadians", "Math", "hm", "ans = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos", "ans", "Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos", "Math.pow(a, 2) + Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "2 * a * b * cos", "b", "2 * a * b * cos", "2", "a", "b", "cos", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double ans = 0;\n double hh = h * 30 + 0.5 * m;\n double mm = 6 * m;\n double hm = (double)Math.abs(hh - mm);\n double cos = (double)Math.cos(Math.toRadians(hm));\n ans = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos;\n System.out.println(Math.sqrt(ans));\n }\n}", "public class Main{\n\tpublic static void main(String[] args){\n \tScanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double ans = 0;\n double hh = h * 30 + 0.5 * m;\n double mm = 6 * m;\n double hm = (double)Math.abs(hh - mm);\n double cos = (double)Math.cos(Math.toRadians(hm));\n ans = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos;\n System.out.println(Math.sqrt(ans));\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double ans = 0; double hh = h * 30 + 0.5 * m; double mm = 6 * m; double hm = (double)Math.abs(hh - mm); double cos = (double)Math.cos(Math.toRadians(hm)); ans = Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * cos; System.out.println(Math.sqrt(ans)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 18, 13, 2, 13, 13, 0, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 8, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 8, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 8, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 8, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 100, 104 ], [ 93, 105 ], [ 107, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 8, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 6, 124 ], [ 124, 125 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60 + m;\n \n double len = 0;\n double rad = 0;\n double hh = 0;\n double mm = 0;\n\n for(int i=0; i<time; i++) {\n hh += 0.5;\n mm += 6;\n }\n hh = hh % 360;\n mm = mm % 360;\n //System.out.println(hh);\n //System.out.println(mm);\n rad = Math.abs(hh - mm);\n\n\n len = Math.sqrt(Math.pow(a,2)+Math.pow(b,2) - 2*a*b* Math.cos(Math.toRadians(rad)));\n System.out.println(len);\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60 + m;\n \n double len = 0;\n double rad = 0;\n double hh = 0;\n double mm = 0;\n\n for(int i=0; i<time; i++) {\n hh += 0.5;\n mm += 6;\n }\n hh = hh % 360;\n mm = mm % 360;\n //System.out.println(hh);\n //System.out.println(mm);\n rad = Math.abs(hh - mm);\n\n\n len = Math.sqrt(Math.pow(a,2)+Math.pow(b,2) - 2*a*b* Math.cos(Math.toRadians(rad)));\n System.out.println(len);\n }\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60 + m;\n \n double len = 0;\n double rad = 0;\n double hh = 0;\n double mm = 0;\n\n for(int i=0; i<time; i++) {\n hh += 0.5;\n mm += 6;\n }\n hh = hh % 360;\n mm = mm % 360;\n //System.out.println(hh);\n //System.out.println(mm);\n rad = Math.abs(hh - mm);\n\n\n len = Math.sqrt(Math.pow(a,2)+Math.pow(b,2) - 2*a*b* Math.cos(Math.toRadians(rad)));\n System.out.println(len);\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n int h = sc.nextInt();\n int m = sc.nextInt();\n int time = h*60 + m;\n \n double len = 0;\n double rad = 0;\n double hh = 0;\n double mm = 0;\n\n for(int i=0; i<time; i++) {\n hh += 0.5;\n mm += 6;\n }\n hh = hh % 360;\n mm = mm % 360;\n //System.out.println(hh);\n //System.out.println(mm);\n rad = Math.abs(hh - mm);\n\n\n len = Math.sqrt(Math.pow(a,2)+Math.pow(b,2) - 2*a*b* Math.cos(Math.toRadians(rad)));\n System.out.println(len);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a = sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b = sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "int time = h*60 + m;", "time", "h*60 + m", "h*60", "h", "60", "m", "double len = 0;", "len", "0", "double rad = 0;", "rad", "0", "double hh = 0;", "hh", "0", "double mm = 0;", "mm", "0", "for(int i=0; i<time; i++) {\n hh += 0.5;\n mm += 6;\n }", "int i=0;", "int i=0;", "i", "0", "i<time", "i", "time", "i++", "i++", "i", "{\n hh += 0.5;\n mm += 6;\n }", "{\n hh += 0.5;\n mm += 6;\n }", "hh += 0.5", "hh", "0.5", "mm += 6", "mm", "6", "hh = hh % 360", "hh", "hh % 360", "hh", "360", "mm = mm % 360", "mm", "mm % 360", "mm", "360", "rad = Math.abs(hh - mm)", "rad", "Math.abs(hh - mm)", "Math.abs", "Math", "hh - mm", "hh", "mm", "len = Math.sqrt(Math.pow(a,2)+Math.pow(b,2) - 2*a*b* Math.cos(Math.toRadians(rad)))", "len", "Math.sqrt(Math.pow(a,2)+Math.pow(b,2) - 2*a*b* Math.cos(Math.toRadians(rad)))", "Math.sqrt", "Math", "Math.pow(a,2)+Math.pow(b,2) - 2*a*b* Math.cos(Math.toRadians(rad))", "Math.pow(a,2)+Math.pow(b,2)", "Math.pow(a,2)", "Math.pow", "Math", "a", "2", "Math.pow(b,2)", "Math.pow", "Math", "b", "2", "2*a*b* Math.cos(Math.toRadians(rad))", "b", "2*a*b* Math.cos(Math.toRadians(rad))", "2", "a", "b", "Math.cos(Math.toRadians(rad))", "Math.cos", "Math", "Math.toRadians(rad)", "Math.toRadians", "Math", "rad", "System.out.println(len)", "System.out.println", "System.out", "System", "System.out", "len", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); int h = sc.nextInt(); int m = sc.nextInt(); int time = h*60 + m; double len = 0; double rad = 0; double hh = 0; double mm = 0; for(int i=0; i<time; i++) { hh += 0.5; mm += 6; } hh = hh % 360; mm = mm % 360; //System.out.println(hh); //System.out.println(mm); rad = Math.abs(hh - mm); len = Math.sqrt(Math.pow(a,2)+Math.pow(b,2) - 2*a*b* Math.cos(Math.toRadians(rad))); System.out.println(len); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 2, 2, 2, 13, 17, 2, 17, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 70, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 8, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 取得\n\t double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double theta = (double)Math.abs((H*30+0.5*M)-M*6);\n if(theta>=180){\n theta=(double)360.0-theta;\n }\n double ans = A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 取得\n\t double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double theta = (double)Math.abs((H*30+0.5*M)-M*6);\n if(theta>=180){\n theta=(double)360.0-theta;\n }\n double ans = A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 取得\n\t double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double theta = (double)Math.abs((H*30+0.5*M)-M*6);\n if(theta>=180){\n theta=(double)360.0-theta;\n }\n double ans = A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n // 取得\n\t double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double theta = (double)Math.abs((H*30+0.5*M)-M*6);\n if(theta>=180){\n theta=(double)360.0-theta;\n }\n double ans = A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "double B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "double H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "double M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double theta = (double)Math.abs((H*30+0.5*M)-M*6);", "theta", "(double)Math.abs((H*30+0.5*M)-M*6)", "Math.abs", "Math", "(H*30+0.5*M)-M*6", "(H*30+0.5*M)", "H*30", "H", "30", "0.5*M", "0.5", "M", "M*6", "M", "6", "if(theta>=180){\n theta=(double)360.0-theta;\n }", "theta>=180", "theta", "180", "{\n theta=(double)360.0-theta;\n }", "theta=(double)360.0-theta", "theta", "(double)360.0-theta", "(double)360.0", "theta", "double ans = A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta));", "ans", "A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta))", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.toRadians(theta))", "B", "2*A*B*Math.cos(Math.toRadians(theta))", "2", "A", "B", "Math.cos(Math.toRadians(theta))", "Math.cos", "Math", "Math.toRadians(theta)", "Math.toRadians", "Math", "theta", "ans = Math.sqrt(ans)", "ans", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 取得\n\t double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double theta = (double)Math.abs((H*30+0.5*M)-M*6);\n if(theta>=180){\n theta=(double)360.0-theta;\n }\n double ans = A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n }\n}", "public class Main {\n\tpublic static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n // 取得\n\t double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double theta = (double)Math.abs((H*30+0.5*M)-M*6);\n if(theta>=180){\n theta=(double)360.0-theta;\n }\n double ans = A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 取得 double A = sc.nextInt(); double B = sc.nextInt(); double H = sc.nextInt(); double M = sc.nextInt(); double theta = (double)Math.abs((H*30+0.5*M)-M*6); if(theta>=180){ theta=(double)360.0-theta; } double ans = A*A+B*B-2*A*B*Math.cos(Math.toRadians(theta)); ans = Math.sqrt(ans); System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 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, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 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, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 29, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 29, 17, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 210, 29 ], [ 210, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 32, 43 ], [ 43, 44 ], [ 43, 45 ], [ 32, 46 ], [ 46, 47 ], [ 46, 48 ], [ 32, 49 ], [ 49, 50 ], [ 49, 51 ], [ 32, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 52, 57 ], [ 32, 58 ], [ 58, 59 ], [ 59, 60 ], [ 30, 61 ], [ 61, 62 ], [ 210, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 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 ], [ 80, 81 ], [ 81, 82 ], [ 67, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 67, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 67, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 67, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 107, 109 ], [ 67, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 117, 121 ], [ 116, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 122, 126 ], [ 115, 127 ], [ 129, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 129, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 67, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 65, 141 ], [ 141, 142 ], [ 65, 143 ], [ 143, 144 ], [ 65, 145 ], [ 145, 146 ], [ 210, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 147, 151 ], [ 151, 152 ], [ 147, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 153, 159 ], [ 159, 160 ], [ 147, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 164, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 174, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 180, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 190, 191 ], [ 191, 192 ], [ 180, 193 ], [ 193, 194 ], [ 193, 195 ], [ 163, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 147, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 207, 208 ], [ 0, 209 ], [ 209, 210 ], [ 209, 211 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class C {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int A = in.Int();\n int B = in.Int();\n int H = in.Int();\n int M = in.Int();\n\n double hp = H * 30 + M * 0.5;\n double mp = M * 6;\n double rad = Math.toRadians(hp - mp);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad));\n out.println(ans);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class C {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int A = in.Int();\n int B = in.Int();\n int H = in.Int();\n int M = in.Int();\n\n double hp = H * 30 + M * 0.5;\n double mp = M * 6;\n double rad = Math.toRadians(hp - mp);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad));\n out.println(ans);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "MyScanner in = new MyScanner(inputStream);", "in", "new MyScanner(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "C solver = new C();", "solver", "new C()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class C {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int A = in.Int();\n int B = in.Int();\n int H = in.Int();\n int M = in.Int();\n\n double hp = H * 30 + M * 0.5;\n double mp = M * 6;\n double rad = Math.toRadians(hp - mp);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad));\n out.println(ans);\n }\n\n }", "C", "public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int A = in.Int();\n int B = in.Int();\n int H = in.Int();\n int M = in.Int();\n\n double hp = H * 30 + M * 0.5;\n double mp = M * 6;\n double rad = Math.toRadians(hp - mp);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad));\n out.println(ans);\n }", "solve", "{\n int A = in.Int();\n int B = in.Int();\n int H = in.Int();\n int M = in.Int();\n\n double hp = H * 30 + M * 0.5;\n double mp = M * 6;\n double rad = Math.toRadians(hp - mp);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad));\n out.println(ans);\n }", "int A = in.Int();", "A", "in.Int()", "in.Int", "in", "int B = in.Int();", "B", "in.Int()", "in.Int", "in", "int H = in.Int();", "H", "in.Int()", "in.Int", "in", "int M = in.Int();", "M", "in.Int()", "in.Int", "in", "double hp = H * 30 + M * 0.5;", "hp", "H * 30 + M * 0.5", "H * 30", "H", "30", "M * 0.5", "M", "0.5", "double mp = M * 6;", "mp", "M * 6", "M", "6", "double rad = Math.toRadians(hp - mp);", "rad", "Math.toRadians(hp - mp)", "Math.toRadians", "Math", "hp - mp", "hp", "mp", "double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad));", "ans", "Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad))", "Math.sqrt", "Math", "Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad)", "Math.pow(A, 2) + Math.pow(B, 2)", "Math.pow(A, 2)", "Math.pow", "Math", "A", "2", "Math.pow(B, 2)", "Math.pow", "Math", "B", "2", "2L * A * B * Math.cos(rad)", "B", "2L * A * B * Math.cos(rad)", "2L", "A", "B", "Math.cos(rad)", "Math.cos", "Math", "rad", "out.println(ans)", "out.println", "out", "ans", "int testNumber", "testNumber", "MyScanner in", "in", "PrintWriter out", "out", "static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\n }\n\n }", "MyScanner", "private BufferedReader in;", "in", "private StringTokenizer st;", "st", "public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }", "MyScanner", "{\n in = new BufferedReader(new InputStreamReader(stream));\n }", "in = new BufferedReader(new InputStreamReader(stream))", "in", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }", "try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }", "catch (IOException e) {\n return null;\n }", "IOException e", "{\n return null;\n }", "return null;", "null", "{\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n }", "String rl = in.readLine();", "rl", "in.readLine()", "in.readLine", "in", "if (rl == null) {\n return null;\n }", "rl == null", "rl", "null", "{\n return null;\n }", "return null;", "null", "st = new StringTokenizer(rl)", "st", "new StringTokenizer(rl)", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int Int() {\n return Integer.parseInt(next());\n }", "Int", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class C {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int A = in.Int();\n int B = in.Int();\n int H = in.Int();\n int M = in.Int();\n\n double hp = H * 30 + M * 0.5;\n double mp = M * 6;\n double rad = Math.toRadians(hp - mp);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad));\n out.println(ans);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n MyScanner in = new MyScanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n C solver = new C();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class C {\n public void solve(int testNumber, MyScanner in, PrintWriter out) {\n int A = in.Int();\n int B = in.Int();\n int H = in.Int();\n int M = in.Int();\n\n double hp = H * 30 + M * 0.5;\n double mp = M * 6;\n double rad = Math.toRadians(hp - mp);\n double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad));\n out.println(ans);\n }\n\n }\n\n static class MyScanner {\n private BufferedReader in;\n private StringTokenizer st;\n\n public MyScanner(InputStream stream) {\n in = new BufferedReader(new InputStreamReader(stream));\n }\n\n public String next() {\n while (st == null || !st.hasMoreTokens()) {\n try {\n String rl = in.readLine();\n if (rl == null) {\n return null;\n }\n st = new StringTokenizer(rl);\n } catch (IOException e) {\n return null;\n }\n }\n return st.nextToken();\n }\n\n public int Int() {\n return Integer.parseInt(next());\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.StringTokenizer; import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; MyScanner in = new MyScanner(inputStream); PrintWriter out = new PrintWriter(outputStream); C solver = new C(); solver.solve(1, in, out); out.close(); } static class C { public void solve(int testNumber, MyScanner in, PrintWriter out) { int A = in.Int(); int B = in.Int(); int H = in.Int(); int M = in.Int(); double hp = H * 30 + M * 0.5; double mp = M * 6; double rad = Math.toRadians(hp - mp); double ans = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - 2L * A * B * Math.cos(rad)); out.println(ans); } } static class MyScanner { private BufferedReader in; private StringTokenizer st; public MyScanner(InputStream stream) { in = new BufferedReader(new InputStreamReader(stream)); } public String next() { while (st == null || !st.hasMoreTokens()) { try { String rl = in.readLine(); if (rl == null) { return null; } st = new StringTokenizer(rl); } catch (IOException e) { return null; } } return st.nextToken(); } public int Int() { return Integer.parseInt(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 2, 13, 17, 0, 13, 4, 18, 13, 8, 2, 13, 17, 2, 17, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 46, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 72, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n int b = scan.nextInt();\n int h = scan.nextInt();\n int m = scan.nextInt();\n double angle = h * 30 - m * 5.5;\n angle = Math.abs(angle > 180 ? 360 - angle : angle);\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle))));\n scan.close();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n int b = scan.nextInt();\n int h = scan.nextInt();\n int m = scan.nextInt();\n double angle = h * 30 - m * 5.5;\n angle = Math.abs(angle > 180 ? 360 - angle : angle);\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle))));\n scan.close();\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n int b = scan.nextInt();\n int h = scan.nextInt();\n int m = scan.nextInt();\n double angle = h * 30 - m * 5.5;\n angle = Math.abs(angle > 180 ? 360 - angle : angle);\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle))));\n scan.close();\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n int b = scan.nextInt();\n int h = scan.nextInt();\n int m = scan.nextInt();\n double angle = h * 30 - m * 5.5;\n angle = Math.abs(angle > 180 ? 360 - angle : angle);\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle))));\n scan.close();\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "int b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "int m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "double angle = h * 30 - m * 5.5;", "angle", "h * 30 - m * 5.5", "h * 30", "h", "30", "m * 5.5", "m", "5.5", "angle = Math.abs(angle > 180 ? 360 - angle : angle)", "angle", "Math.abs(angle > 180 ? 360 - angle : angle)", "Math.abs", "Math", "angle > 180 ? 360 - angle : angle", "angle > 180", "angle", "180", "360 - angle", "360", "angle", "angle", "System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle))))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle)))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle))", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(Math.toRadians(angle))", "b", "2 * a * b * Math.cos(Math.toRadians(angle))", "2", "a", "b", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n int b = scan.nextInt();\n int h = scan.nextInt();\n int m = scan.nextInt();\n double angle = h * 30 - m * 5.5;\n angle = Math.abs(angle > 180 ? 360 - angle : angle);\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle))));\n scan.close();\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int a = scan.nextInt();\n int b = scan.nextInt();\n int h = scan.nextInt();\n int m = scan.nextInt();\n double angle = h * 30 - m * 5.5;\n angle = Math.abs(angle > 180 ? 360 - angle : angle);\n System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle))));\n scan.close();\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int h = scan.nextInt(); int m = scan.nextInt(); double angle = h * 30 - m * 5.5; angle = Math.abs(angle > 180 ? 360 - angle : angle); System.out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(angle)))); scan.close(); } }
[ 7, 15, 13, 17, 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, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 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, 18, 13, 13, 41, 13, 2, 2, 17, 13, 2, 2, 2, 13, 17, 2, 2, 13, 17, 17, 2, 13, 17, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 13, 17, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 30, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 29, 2, 13, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 4, 18, 13, 13, 29, 4, 13, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 40, 17, 0, 13, 4, 13, 41, 13, 17, 42, 2, 40, 4, 13, 13, 2, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 29, 2, 13, 4, 18, 13, 17, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 37, 20, 0, 13, 17, 0, 13, 2, 13, 17, 0, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 29, 2, 13, 4, 18, 13, 17, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 37, 20, 0, 13, 17, 0, 13, 2, 2, 13, 17, 13, 0, 13, 4, 13, 29, 2, 13, 13, 6, 13, 12, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 484, 23 ], [ 484, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 46, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 484, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 61, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 61, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 61, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 61, 87 ], [ 87, 88 ], [ 87, 89 ], [ 90, 90 ], [ 90, 91 ], [ 90, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 93, 103 ], [ 103, 104 ], [ 103, 105 ], [ 61, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 113, 117 ], [ 112, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 118, 122 ], [ 111, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 123, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 61, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 133, 137 ], [ 59, 138 ], [ 138, 139 ], [ 59, 140 ], [ 140, 141 ], [ 59, 142 ], [ 142, 143 ], [ 484, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 144, 148 ], [ 148, 149 ], [ 148, 150 ], [ 144, 152 ], [ 152, 153 ], [ 144, 154 ], [ 154, 155 ], [ 144, 156 ], [ 156, 157 ], [ 144, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 158, 166 ], [ 166, 167 ], [ 144, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 171, 176 ], [ 176, 177 ], [ 177, 178 ], [ 170, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 187, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 197, 198 ], [ 196, 199 ], [ 183, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 170, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 144, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 215, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 220, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 227, 228 ], [ 215, 229 ], [ 229, 230 ], [ 229, 231 ], [ 215, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 236, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 215, 245 ], [ 245, 246 ], [ 245, 247 ], [ 215, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 248, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 255, 259 ], [ 259, 260 ], [ 259, 261 ], [ 254, 262 ], [ 262, 263 ], [ 263, 264 ], [ 253, 265 ], [ 265, 266 ], [ 265, 267 ], [ 253, 268 ], [ 268, 269 ], [ 268, 270 ], [ 270, 271 ], [ 270, 272 ], [ 253, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 215, 277 ], [ 277, 278 ], [ 278, 279 ], [ 278, 280 ], [ 144, 281 ], [ 281, 282 ], [ 281, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 284, 288 ], [ 288, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 290, 293 ], [ 283, 294 ], [ 294, 295 ], [ 295, 296 ], [ 295, 297 ], [ 281, 298 ], [ 298, 299 ], [ 144, 300 ], [ 300, 301 ], [ 300, 302 ], [ 302, 303 ], [ 303, 304 ], [ 307, 305 ], [ 317, 306 ], [ 314, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 307, 311 ], [ 311, 312 ], [ 311, 313 ], [ 314, 314 ], [ 314, 315 ], [ 314, 316 ], [ 317, 317 ], [ 317, 318 ], [ 317, 319 ], [ 307, 320 ], [ 320, 321 ], [ 320, 322 ], [ 322, 323 ], [ 300, 324 ], [ 324, 325 ], [ 144, 326 ], [ 326, 327 ], [ 326, 328 ], [ 328, 329 ], [ 329, 330 ], [ 329, 331 ], [ 331, 332 ], [ 328, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 337 ], [ 337, 338 ], [ 338, 339 ], [ 338, 340 ], [ 340, 341 ], [ 328, 342 ], [ 342, 343 ], [ 342, 344 ], [ 328, 345 ], [ 345, 346 ], [ 346, 347 ], [ 346, 348 ], [ 345, 349 ], [ 349, 350 ], [ 350, 351 ], [ 350, 352 ], [ 352, 353 ], [ 349, 354 ], [ 354, 355 ], [ 354, 356 ], [ 356, 357 ], [ 328, 358 ], [ 358, 359 ], [ 358, 360 ], [ 328, 361 ], [ 361, 362 ], [ 362, 363 ], [ 363, 364 ], [ 364, 365 ], [ 364, 366 ], [ 362, 367 ], [ 367, 368 ], [ 367, 369 ], [ 361, 370 ], [ 370, 371 ], [ 371, 372 ], [ 372, 373 ], [ 373, 374 ], [ 373, 375 ], [ 372, 376 ], [ 376, 377 ], [ 376, 378 ], [ 371, 379 ], [ 379, 380 ], [ 380, 381 ], [ 381, 382 ], [ 381, 383 ], [ 383, 384 ], [ 384, 385 ], [ 383, 386 ], [ 383, 387 ], [ 387, 388 ], [ 370, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 391, 393 ], [ 390, 394 ], [ 394, 395 ], [ 394, 396 ], [ 389, 397 ], [ 397, 398 ], [ 398, 399 ], [ 370, 400 ], [ 400, 401 ], [ 400, 402 ], [ 370, 403 ], [ 403, 404 ], [ 403, 405 ], [ 405, 406 ], [ 405, 407 ], [ 370, 408 ], [ 408, 409 ], [ 408, 410 ], [ 410, 411 ], [ 328, 412 ], [ 412, 413 ], [ 413, 414 ], [ 413, 415 ], [ 412, 416 ], [ 416, 417 ], [ 417, 418 ], [ 417, 419 ], [ 419, 420 ], [ 416, 421 ], [ 421, 422 ], [ 421, 423 ], [ 416, 424 ], [ 424, 425 ], [ 425, 426 ], [ 426, 427 ], [ 426, 428 ], [ 424, 429 ], [ 429, 430 ], [ 430, 431 ], [ 431, 432 ], [ 432, 433 ], [ 432, 434 ], [ 431, 435 ], [ 435, 436 ], [ 435, 437 ], [ 430, 438 ], [ 438, 439 ], [ 439, 440 ], [ 440, 441 ], [ 440, 442 ], [ 442, 443 ], [ 443, 444 ], [ 442, 445 ], [ 442, 446 ], [ 446, 447 ], [ 429, 448 ], [ 448, 449 ], [ 449, 450 ], [ 450, 451 ], [ 450, 452 ], [ 449, 453 ], [ 453, 454 ], [ 453, 455 ], [ 448, 456 ], [ 456, 457 ], [ 457, 458 ], [ 429, 459 ], [ 459, 460 ], [ 459, 461 ], [ 429, 462 ], [ 462, 463 ], [ 462, 464 ], [ 464, 465 ], [ 465, 466 ], [ 465, 467 ], [ 464, 468 ], [ 429, 469 ], [ 469, 470 ], [ 469, 471 ], [ 471, 472 ], [ 328, 473 ], [ 473, 474 ], [ 474, 475 ], [ 474, 476 ], [ 144, 477 ], [ 477, 478 ], [ 477, 479 ], [ 479, 480 ], [ 479, 481 ], [ 481, 482 ], [ 0, 483 ], [ 483, 484 ], [ 483, 485 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Vishal Burman\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n CColon solver = new CColon();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class CColon {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n double pi = Math.PI;\n double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0));\n double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)));\n out.printf(\"%.20f\", ans);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n CColon solver = new CColon();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class CColon {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n double pi = Math.PI;\n double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0));\n double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)));\n out.printf(\"%.20f\", ans);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n CColon solver = new CColon();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n CColon solver = new CColon();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "CColon solver = new CColon();", "solver", "new CColon()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class CColon {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n double pi = Math.PI;\n double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0));\n double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)));\n out.printf(\"%.20f\", ans);\n }\n\n }", "CColon", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n double pi = Math.PI;\n double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0));\n double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)));\n out.printf(\"%.20f\", ans);\n }", "solve", "{\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n double pi = Math.PI;\n double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0));\n double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)));\n out.printf(\"%.20f\", ans);\n }", "double a = in.nextDouble();", "a", "in.nextDouble()", "in.nextDouble", "in", "double b = in.nextDouble();", "b", "in.nextDouble()", "in.nextDouble", "in", "double h = in.nextDouble();", "h", "in.nextDouble()", "in.nextDouble", "in", "double m = in.nextDouble();", "m", "in.nextDouble()", "in.nextDouble", "in", "double pi = Math.PI;", "pi", "Math.PI", "Math", "Math.PI", "double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0));", "rad", "2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0))", "2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0))", "2", "pi", "((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0))", "(h / 12.0 + ((m / 60.0) / 12.0))", "h / 12.0", "h", "12.0", "((m / 60.0) / 12.0)", "(m / 60.0)", "m", "60.0", "12.0", "(m / 60.0)", "m", "60.0", "double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)));", "ans", "Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)))", "Math.sqrt", "Math", "(Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad))", "(Math.pow(a, 2) + Math.pow(b, 2))", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "(2 * a * b * Math.cos(rad))", "b", "2 * a * b * Math.cos(rad)", "2", "a", "b", "Math.cos(rad)", "Math.cos", "Math", "rad", "out.printf(\"%.20f\", ans)", "out.printf", "out", "\"%.20f\"", "ans", "int testNumber", "testNumber", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private InputReader.SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "if (numChars == -1) {\n throw new InputMismatchException();\n }", "numChars == -1", "numChars", "-1", "1", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0) {\n return -1;\n }", "numChars <= 0", "numChars", "0", "{\n return -1;\n }", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "nextInt", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "int res = 0;", "res", "0", "do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "isSpaceChar", "{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "if (filter != null) {\n return filter.isSpaceChar(c);\n }", "filter != null", "filter", "null", "{\n return filter.isSpaceChar(c);\n }", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return isWhitespace(c);", "isWhitespace(c)", "isWhitespace", "c", "int c", "c", "public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isWhitespace", "{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }", "nextDouble", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "c = read()", "c", "read()", "read", "int sgn = 1;", "sgn", "1", "if (c == '-') {\n sgn = -1;\n c = read();\n }", "c == '-'", "c", "'-'", "{\n sgn = -1;\n c = read();\n }", "sgn = -1", "sgn", "-1", "1", "c = read()", "c", "read()", "read", "double res = 0;", "res", "0", "while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }", "!isSpaceChar(c) && c != '.'", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "c != '.'", "c", "'.'", "{\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }", "if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }", "c == 'e' || c == 'E'", "c == 'e'", "c", "'e'", "c == 'E'", "c", "'E'", "{\n return res * Math.pow(10, nextInt());\n }", "return res * Math.pow(10, nextInt());", "res * Math.pow(10, nextInt())", "res", "Math.pow(10, nextInt())", "Math.pow", "Math", "10", "nextInt()", "nextInt", "if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "c = read()", "c", "read()", "read", "if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }", "c == '.'", "c", "'.'", "{\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }", "c = read()", "c", "read()", "read", "double m = 1;", "m", "1", "while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }", "if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }", "c == 'e' || c == 'E'", "c == 'e'", "c", "'e'", "c == 'E'", "c", "'E'", "{\n return res * Math.pow(10, nextInt());\n }", "return res * Math.pow(10, nextInt());", "res * Math.pow(10, nextInt())", "res", "Math.pow(10, nextInt())", "Math.pow", "Math", "10", "nextInt()", "nextInt", "if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "m /= 10", "m", "10", "res += (c - '0') * m", "res", "(c - '0') * m", "(c - '0')", "c", "'0'", "m", "c = read()", "c", "read()", "read", "return res * sgn;", "res * sgn", "res", "sgn", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n CColon solver = new CColon();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class CColon {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n double pi = Math.PI;\n double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0));\n double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)));\n out.printf(\"%.20f\", ans);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n CColon solver = new CColon();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class CColon {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n double pi = Math.PI;\n double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0));\n double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad)));\n out.printf(\"%.20f\", ans);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public int nextInt() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n int res = 0;\n do {\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n } while (!isSpaceChar(c));\n return res * sgn;\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public double nextDouble() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n int sgn = 1;\n if (c == '-') {\n sgn = -1;\n c = read();\n }\n double res = 0;\n while (!isSpaceChar(c) && c != '.') {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n res *= 10;\n res += c - '0';\n c = read();\n }\n if (c == '.') {\n c = read();\n double m = 1;\n while (!isSpaceChar(c)) {\n if (c == 'e' || c == 'E') {\n return res * Math.pow(10, nextInt());\n }\n if (c < '0' || c > '9') {\n throw new InputMismatchException();\n }\n m /= 10;\n res += (c - '0') * m;\n c = read();\n }\n }\n return res * sgn;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top * * @author Vishal Burman */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); CColon solver = new CColon(); solver.solve(1, in, out); out.close(); } static class CColon { public void solve(int testNumber, InputReader in, PrintWriter out) { double a = in.nextDouble(); double b = in.nextDouble(); double h = in.nextDouble(); double m = in.nextDouble(); double pi = Math.PI; double rad = 2 * pi * ((h / 12.0 + ((m / 60.0) / 12.0)) - (m / 60.0)); double ans = Math.sqrt((Math.pow(a, 2) + Math.pow(b, 2)) - (2 * a * b * Math.cos(rad))); out.printf("%.20f", ans); } } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private InputReader.SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) { throw new InputMismatchException(); } if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) { return -1; } } return buf[curChar++]; } public int nextInt() { int c = read(); while (isSpaceChar(c)) { c = read(); } int sgn = 1; if (c == '-') { sgn = -1; c = read(); } int res = 0; do { if (c < '0' || c > '9') { throw new InputMismatchException(); } res *= 10; res += c - '0'; c = read(); } while (!isSpaceChar(c)); return res * sgn; } public boolean isSpaceChar(int c) { if (filter != null) { return filter.isSpaceChar(c); } return isWhitespace(c); } public static boolean isWhitespace(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public double nextDouble() { int c = read(); while (isSpaceChar(c)) { c = read(); } int sgn = 1; if (c == '-') { sgn = -1; c = read(); } double res = 0; while (!isSpaceChar(c) && c != '.') { if (c == 'e' || c == 'E') { return res * Math.pow(10, nextInt()); } if (c < '0' || c > '9') { throw new InputMismatchException(); } res *= 10; res += c - '0'; c = read(); } if (c == '.') { c = read(); double m = 1; while (!isSpaceChar(c)) { if (c == 'e' || c == 'E') { return res * Math.pow(10, nextInt()); } if (c < '0' || c > '9') { throw new InputMismatchException(); } m /= 10; res += (c - '0') * m; c = read(); } } return res * sgn; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 17, 2, 2, 13, 17, 13, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 0, 13, 4, 18, 13, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 13, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 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 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 8, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 8, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 89, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 8, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 103, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n double a, b, h, m;\n a = in.nextDouble();\n b = in.nextDouble();\n h = in.nextDouble();\n m = in.nextDouble();\n in.close();\n double h_angle = 0.5 * (h * 60 + m);\n double m_angle = 6 * m;\n double angle = Math.abs(h_angle - m_angle);\n angle = Math.min(angle, 360 - angle);\n double res = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180));\n System.out.printf(\"%.20f\\n\", res);\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 double a, b, h, m;\n a = in.nextDouble();\n b = in.nextDouble();\n h = in.nextDouble();\n m = in.nextDouble();\n in.close();\n double h_angle = 0.5 * (h * 60 + m);\n double m_angle = 6 * m;\n double angle = Math.abs(h_angle - m_angle);\n angle = Math.min(angle, 360 - angle);\n double res = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180));\n System.out.printf(\"%.20f\\n\", res);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n double a, b, h, m;\n a = in.nextDouble();\n b = in.nextDouble();\n h = in.nextDouble();\n m = in.nextDouble();\n in.close();\n double h_angle = 0.5 * (h * 60 + m);\n double m_angle = 6 * m;\n double angle = Math.abs(h_angle - m_angle);\n angle = Math.min(angle, 360 - angle);\n double res = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180));\n System.out.printf(\"%.20f\\n\", res);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n double a, b, h, m;\n a = in.nextDouble();\n b = in.nextDouble();\n h = in.nextDouble();\n m = in.nextDouble();\n in.close();\n double h_angle = 0.5 * (h * 60 + m);\n double m_angle = 6 * m;\n double angle = Math.abs(h_angle - m_angle);\n angle = Math.min(angle, 360 - angle);\n double res = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180));\n System.out.printf(\"%.20f\\n\", res);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "double a", "a", "b", "b", "h", "h", "m;", "m", "a = in.nextDouble()", "a", "in.nextDouble()", "in.nextDouble", "in", "b = in.nextDouble()", "b", "in.nextDouble()", "in.nextDouble", "in", "h = in.nextDouble()", "h", "in.nextDouble()", "in.nextDouble", "in", "m = in.nextDouble()", "m", "in.nextDouble()", "in.nextDouble", "in", "in.close()", "in.close", "in", "double h_angle = 0.5 * (h * 60 + m);", "h_angle", "0.5 * (h * 60 + m)", "0.5", "(h * 60 + m)", "h * 60", "h", "60", "m", "double m_angle = 6 * m;", "m_angle", "6 * m", "6", "m", "double angle = Math.abs(h_angle - m_angle);", "angle", "Math.abs(h_angle - m_angle)", "Math.abs", "Math", "h_angle - m_angle", "h_angle", "m_angle", "angle = Math.min(angle, 360 - angle)", "angle", "Math.min(angle, 360 - angle)", "Math.min", "Math", "angle", "360 - angle", "360", "angle", "double res = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180));", "res", "Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180))", "Math.sqrt", "Math", "a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180)", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(angle*Math.PI/180)", "b", "2*a*b*Math.cos(angle*Math.PI/180)", "2", "a", "b", "Math.cos(angle*Math.PI/180)", "Math.cos", "Math", "angle*Math.PI/180", "angle*Math.PI", "angle", "Math.PI", "Math", "Math.PI", "180", "System.out.printf(\"%.20f\\n\", res)", "System.out.printf", "System.out", "System", "System.out", "\"%.20f\\n\"", "res", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n double a, b, h, m;\n a = in.nextDouble();\n b = in.nextDouble();\n h = in.nextDouble();\n m = in.nextDouble();\n in.close();\n double h_angle = 0.5 * (h * 60 + m);\n double m_angle = 6 * m;\n double angle = Math.abs(h_angle - m_angle);\n angle = Math.min(angle, 360 - angle);\n double res = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180));\n System.out.printf(\"%.20f\\n\", res);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n double a, b, h, m;\n a = in.nextDouble();\n b = in.nextDouble();\n h = in.nextDouble();\n m = in.nextDouble();\n in.close();\n double h_angle = 0.5 * (h * 60 + m);\n double m_angle = 6 * m;\n double angle = Math.abs(h_angle - m_angle);\n angle = Math.min(angle, 360 - angle);\n double res = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180));\n System.out.printf(\"%.20f\\n\", res);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); double a, b, h, m; a = in.nextDouble(); b = in.nextDouble(); h = in.nextDouble(); m = in.nextDouble(); in.close(); double h_angle = 0.5 * (h * 60 + m); double m_angle = 6 * m; double angle = Math.abs(h_angle - m_angle); angle = Math.min(angle, 360 - angle); double res = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(angle*Math.PI/180)); System.out.printf("%.20f\n", res); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 2, 17, 17, 17, 41, 13, 2, 2, 17, 17, 17, 41, 13, 2, 2, 13, 13, 2, 2, 13, 17, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 13, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 47, 47 ], [ 47, 48 ], [ 47, 49 ], [ 47, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 54, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 8, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 8, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 81, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n double timeSpeed = 360. / 12 / 60;\n double minuteSpeed = 360. / 1 / 60;\n\n double x = (minuteSpeed - timeSpeed) * (h * 60 + m);\n\n double c2 = a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180);\n\n System.out.println(Math.sqrt(c2));\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\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n double timeSpeed = 360. / 12 / 60;\n double minuteSpeed = 360. / 1 / 60;\n\n double x = (minuteSpeed - timeSpeed) * (h * 60 + m);\n\n double c2 = a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180);\n\n System.out.println(Math.sqrt(c2));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n double timeSpeed = 360. / 12 / 60;\n double minuteSpeed = 360. / 1 / 60;\n\n double x = (minuteSpeed - timeSpeed) * (h * 60 + m);\n\n double c2 = a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180);\n\n System.out.println(Math.sqrt(c2));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n double timeSpeed = 360. / 12 / 60;\n double minuteSpeed = 360. / 1 / 60;\n\n double x = (minuteSpeed - timeSpeed) * (h * 60 + m);\n\n double c2 = a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180);\n\n System.out.println(Math.sqrt(c2));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = Integer.parseInt(sc.next());", "a", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int b = Integer.parseInt(sc.next());", "b", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int h = Integer.parseInt(sc.next());", "h", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int m = Integer.parseInt(sc.next());", "m", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "double timeSpeed = 360. / 12 / 60;", "timeSpeed", "360. / 12 / 60", "360. / 12 / 60", "360.", "12", "60", "double minuteSpeed = 360. / 1 / 60;", "minuteSpeed", "360. / 1 / 60", "360. / 1 / 60", "360.", "1", "60", "double x = (minuteSpeed - timeSpeed) * (h * 60 + m);", "x", "(minuteSpeed - timeSpeed) * (h * 60 + m)", "(minuteSpeed - timeSpeed)", "minuteSpeed", "timeSpeed", "(h * 60 + m)", "h * 60", "h", "60", "m", "double c2 = a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180);", "c2", "a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(x * Math.PI / 180)", "b", "2 * a * b * Math.cos(x * Math.PI / 180)", "2", "a", "b", "Math.cos(x * Math.PI / 180)", "Math.cos", "Math", "x * Math.PI / 180", "x * Math.PI", "x", "Math.PI", "Math", "Math.PI", "180", "System.out.println(Math.sqrt(c2))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(c2)", "Math.sqrt", "Math", "c2", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n double timeSpeed = 360. / 12 / 60;\n double minuteSpeed = 360. / 1 / 60;\n\n double x = (minuteSpeed - timeSpeed) * (h * 60 + m);\n\n double c2 = a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180);\n\n System.out.println(Math.sqrt(c2));\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n\n double timeSpeed = 360. / 12 / 60;\n double minuteSpeed = 360. / 1 / 60;\n\n double x = (minuteSpeed - timeSpeed) * (h * 60 + m);\n\n double c2 = a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180);\n\n System.out.println(Math.sqrt(c2));\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int h = Integer.parseInt(sc.next()); int m = Integer.parseInt(sc.next()); double timeSpeed = 360. / 12 / 60; double minuteSpeed = 360. / 1 / 60; double x = (minuteSpeed - timeSpeed) * (h * 60 + m); double c2 = a * a + b * b - 2 * a * b * Math.cos(x * Math.PI / 180); System.out.println(Math.sqrt(c2)); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 29, 41, 13, 13, 14, 2, 13, 17, 0, 13, 2, 17, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 12, 13, 30, 38, 5, 13, 30, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 174, 8 ], [ 174, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 11, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 11, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 11, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 61, 73 ], [ 11, 74 ], [ 74, 75 ], [ 74, 76 ], [ 11, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 11, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 11, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 107, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 107, 111 ], [ 11, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 9, 121 ], [ 121, 122 ], [ 174, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 128, 129 ], [ 123, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 138, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 132, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 123, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 162, 163 ], [ 123, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 0, 173 ], [ 173, 174 ], [ 173, 175 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double angH = 30 * h + 0.5 * m;\n double angM = 6 * m;\n double disAng = Math.abs(angH - angM);\n\n if (disAng == 0) {\n System.out.println(Math.abs(a - b));\n return;\n }\n\n double angC = disAng;\n if (disAng > 180)\n angC = 360 - disAng;\n double cosC = Math.cos(Math.toRadians(angC));\n double c = a * a + b * b - 2 * a * b * cosC;\n\n System.out.println(Math.sqrt(c));\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double angH = 30 * h + 0.5 * m;\n double angM = 6 * m;\n double disAng = Math.abs(angH - angM);\n\n if (disAng == 0) {\n System.out.println(Math.abs(a - b));\n return;\n }\n\n double angC = disAng;\n if (disAng > 180)\n angC = 360 - disAng;\n double cosC = Math.cos(Math.toRadians(angC));\n double c = a * a + b * b - 2 * a * b * cosC;\n\n System.out.println(Math.sqrt(c));\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main", "public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double angH = 30 * h + 0.5 * m;\n double angM = 6 * m;\n double disAng = Math.abs(angH - angM);\n\n if (disAng == 0) {\n System.out.println(Math.abs(a - b));\n return;\n }\n\n double angC = disAng;\n if (disAng > 180)\n angC = 360 - disAng;\n double cosC = Math.cos(Math.toRadians(angC));\n double c = a * a + b * b - 2 * a * b * cosC;\n\n System.out.println(Math.sqrt(c));\n }", "main", "{\n MyScanner sc = new MyScanner();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double angH = 30 * h + 0.5 * m;\n double angM = 6 * m;\n double disAng = Math.abs(angH - angM);\n\n if (disAng == 0) {\n System.out.println(Math.abs(a - b));\n return;\n }\n\n double angC = disAng;\n if (disAng > 180)\n angC = 360 - disAng;\n double cosC = Math.cos(Math.toRadians(angC));\n double c = a * a + b * b - 2 * a * b * cosC;\n\n System.out.println(Math.sqrt(c));\n }", "MyScanner sc = new MyScanner();", "sc", "new MyScanner()", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double angH = 30 * h + 0.5 * m;", "angH", "30 * h + 0.5 * m", "30 * h", "30", "h", "0.5 * m", "0.5", "m", "double angM = 6 * m;", "angM", "6 * m", "6", "m", "double disAng = Math.abs(angH - angM);", "disAng", "Math.abs(angH - angM)", "Math.abs", "Math", "angH - angM", "angH", "angM", "if (disAng == 0) {\n System.out.println(Math.abs(a - b));\n return;\n }", "disAng == 0", "disAng", "0", "{\n System.out.println(Math.abs(a - b));\n return;\n }", "System.out.println(Math.abs(a - b))", "System.out.println", "System.out", "System", "System.out", "Math.abs(a - b)", "Math.abs", "Math", "a - b", "a", "b", "return;", "double angC = disAng;", "angC", "disAng", "if (disAng > 180)\n angC = 360 - disAng;", "disAng > 180", "disAng", "180", "angC = 360 - disAng", "angC", "360 - disAng", "360", "disAng", "double cosC = Math.cos(Math.toRadians(angC));", "cosC", "Math.cos(Math.toRadians(angC))", "Math.cos", "Math", "Math.toRadians(angC)", "Math.toRadians", "Math", "angC", "double c = a * a + b * b - 2 * a * b * cosC;", "c", "a * a + b * b - 2 * a * b * cosC", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * cosC", "b", "2 * a * b * cosC", "2", "a", "b", "cosC", "System.out.println(Math.sqrt(c))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(c)", "Math.sqrt", "Math", "c", "String[] args", "args", "static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "MyScanner", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);", "reader", "new BufferedReader(new InputStreamReader(System.in), 1 << 15)", "StringTokenizer tokenizer;", "tokenizer", "String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }", "next", "{\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }", "try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }", "catch (IOException ignored) {\n }", "IOException ignored", "{\n }", "{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n }", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double angH = 30 * h + 0.5 * m;\n double angM = 6 * m;\n double disAng = Math.abs(angH - angM);\n\n if (disAng == 0) {\n System.out.println(Math.abs(a - b));\n return;\n }\n\n double angC = disAng;\n if (disAng > 180)\n angC = 360 - disAng;\n double cosC = Math.cos(Math.toRadians(angC));\n double c = a * a + b * b - 2 * a * b * cosC;\n\n System.out.println(Math.sqrt(c));\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n MyScanner sc = new MyScanner();\n\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double angH = 30 * h + 0.5 * m;\n double angM = 6 * m;\n double disAng = Math.abs(angH - angM);\n\n if (disAng == 0) {\n System.out.println(Math.abs(a - b));\n return;\n }\n\n double angC = disAng;\n if (disAng > 180)\n angC = 360 - disAng;\n double cosC = Math.cos(Math.toRadians(angC));\n double c = a * a + b * b - 2 * a * b * cosC;\n\n System.out.println(Math.sqrt(c));\n }\n\n static class MyScanner {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15);\n StringTokenizer tokenizer;\n\n String next() {\n try {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n tokenizer = new StringTokenizer(reader.readLine());\n }\n } catch (IOException ignored) {\n }\n return tokenizer.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { MyScanner sc = new MyScanner(); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double angH = 30 * h + 0.5 * m; double angM = 6 * m; double disAng = Math.abs(angH - angM); if (disAng == 0) { System.out.println(Math.abs(a - b)); return; } double angC = disAng; if (disAng > 180) angC = 360 - disAng; double cosC = Math.cos(Math.toRadians(angC)); double c = a * a + b * b - 2 * a * b * cosC; System.out.println(Math.sqrt(c)); } static class MyScanner { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 1 << 15); StringTokenizer tokenizer; String next() { try { while (tokenizer == null || !tokenizer.hasMoreTokens()) { tokenizer = new StringTokenizer(reader.readLine()); } } catch (IOException ignored) { } return tokenizer.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 13, 41, 13, 2, 2, 2, 2, 17, 17, 17, 13, 17, 41, 13, 2, 2, 2, 17, 17, 13, 17, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 99, 5 ], [ 99, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 44, 44 ], [ 44, 45 ], [ 44, 46 ], [ 44, 47 ], [ 42, 48 ], [ 41, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 52, 58 ], [ 8, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 74, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 87, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 6, 96 ], [ 96, 97 ], [ 0, 98 ], [ 98, 99 ], [ 98, 100 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\t\n\t\tint pass_time = H*60 + M;\n \t\n\t\tdouble a = ((double)360/60/12 * (double)pass_time) % 360;\n\t\tdouble b = (360/60 * pass_time) % 360;\n \n\t\tdouble ans = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b))));\n \n\t\tSystem.out.println(ans);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\t\n\t\tint pass_time = H*60 + M;\n \t\n\t\tdouble a = ((double)360/60/12 * (double)pass_time) % 360;\n\t\tdouble b = (360/60 * pass_time) % 360;\n \n\t\tdouble ans = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b))));\n \n\t\tSystem.out.println(ans);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\t\n\t\tint pass_time = H*60 + M;\n \t\n\t\tdouble a = ((double)360/60/12 * (double)pass_time) % 360;\n\t\tdouble b = (360/60 * pass_time) % 360;\n \n\t\tdouble ans = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b))));\n \n\t\tSystem.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\t\n\t\tint pass_time = H*60 + M;\n \t\n\t\tdouble a = ((double)360/60/12 * (double)pass_time) % 360;\n\t\tdouble b = (360/60 * pass_time) % 360;\n \n\t\tdouble ans = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b))));\n \n\t\tSystem.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "int pass_time = H*60 + M;", "pass_time", "H*60 + M", "H*60", "H", "60", "M", "double a = ((double)360/60/12 * (double)pass_time) % 360;", "a", "((double)360/60/12 * (double)pass_time) % 360", "((double)360/60/12 * (double)pass_time)", "(double)360/60/12", "(double)360/60/12", "(double)360", "60", "12", "(double)pass_time", "360", "double b = (360/60 * pass_time) % 360;", "b", "(360/60 * pass_time) % 360", "(360/60 * pass_time)", "360/60", "360", "60", "pass_time", "360", "double ans = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b))));", "ans", "Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b))))", "Math.sqrt", "Math", "A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b)))", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.toRadians(Math.abs(a-b)))", "B", "2*A*B*Math.cos(Math.toRadians(Math.abs(a-b)))", "2", "A", "B", "Math.cos(Math.toRadians(Math.abs(a-b)))", "Math.cos", "Math", "Math.toRadians(Math.abs(a-b))", "Math.toRadians", "Math", "Math.abs(a-b)", "Math.abs", "Math", "a-b", "a", "b", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\t\n\t\tint pass_time = H*60 + M;\n \t\n\t\tdouble a = ((double)360/60/12 * (double)pass_time) % 360;\n\t\tdouble b = (360/60 * pass_time) % 360;\n \n\t\tdouble ans = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b))));\n \n\t\tSystem.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n \n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\t\n\t\tint pass_time = H*60 + M;\n \t\n\t\tdouble a = ((double)360/60/12 * (double)pass_time) % 360;\n\t\tdouble b = (360/60 * pass_time) % 360;\n \n\t\tdouble ans = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b))));\n \n\t\tSystem.out.println(ans);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); int pass_time = H*60 + M; double a = ((double)360/60/12 * (double)pass_time) % 360; double b = (360/60 * pass_time) % 360; double ans = Math.sqrt(A*A + B*B -2*A*B*Math.cos(Math.toRadians(Math.abs(a-b)))); System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 2, 4, 18, 13, 2, 13, 13, 17, 4, 18, 13, 2, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 119, 5 ], [ 119, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 48, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 59, 67 ], [ 8, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 70, 78 ], [ 8, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 81, 89 ], [ 8, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 99, 101 ], [ 96, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 8, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 6, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n \n double ten_a = h*30 + m*0.5;\n double ten_b = m*6;\n \n double ax = Math.cos(Math.toRadians(ten_a)) * a;\n double ay = Math.sin(Math.toRadians(ten_a)) * a;\n \n double bx = Math.cos(Math.toRadians(ten_b)) * b;\n double by = Math.sin(Math.toRadians(ten_b)) * b;\n \n double ans = (Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)));\n\n System.out.println(ans);\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 double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n \n double ten_a = h*30 + m*0.5;\n double ten_b = m*6;\n \n double ax = Math.cos(Math.toRadians(ten_a)) * a;\n double ay = Math.sin(Math.toRadians(ten_a)) * a;\n \n double bx = Math.cos(Math.toRadians(ten_b)) * b;\n double by = Math.sin(Math.toRadians(ten_b)) * b;\n \n double ans = (Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)));\n\n System.out.println(ans);\n \n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n \n double ten_a = h*30 + m*0.5;\n double ten_b = m*6;\n \n double ax = Math.cos(Math.toRadians(ten_a)) * a;\n double ay = Math.sin(Math.toRadians(ten_a)) * a;\n \n double bx = Math.cos(Math.toRadians(ten_b)) * b;\n double by = Math.sin(Math.toRadians(ten_b)) * b;\n \n double ans = (Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)));\n\n System.out.println(ans);\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n \n double ten_a = h*30 + m*0.5;\n double ten_b = m*6;\n \n double ax = Math.cos(Math.toRadians(ten_a)) * a;\n double ay = Math.sin(Math.toRadians(ten_a)) * a;\n \n double bx = Math.cos(Math.toRadians(ten_b)) * b;\n double by = Math.sin(Math.toRadians(ten_b)) * b;\n \n double ans = (Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)));\n\n System.out.println(ans);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a = sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b = sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "double h = sc.nextDouble();", "h", "sc.nextDouble()", "sc.nextDouble", "sc", "double m = sc.nextDouble();", "m", "sc.nextDouble()", "sc.nextDouble", "sc", "double ten_a = h*30 + m*0.5;", "ten_a", "h*30 + m*0.5", "h*30", "h", "30", "m*0.5", "m", "0.5", "double ten_b = m*6;", "ten_b", "m*6", "m", "6", "double ax = Math.cos(Math.toRadians(ten_a)) * a;", "ax", "Math.cos(Math.toRadians(ten_a)) * a", "Math.cos(Math.toRadians(ten_a))", "Math.cos", "Math", "Math.toRadians(ten_a)", "Math.toRadians", "Math", "ten_a", "a", "double ay = Math.sin(Math.toRadians(ten_a)) * a;", "ay", "Math.sin(Math.toRadians(ten_a)) * a", "Math.sin(Math.toRadians(ten_a))", "Math.sin", "Math", "Math.toRadians(ten_a)", "Math.toRadians", "Math", "ten_a", "a", "double bx = Math.cos(Math.toRadians(ten_b)) * b;", "bx", "Math.cos(Math.toRadians(ten_b)) * b", "Math.cos(Math.toRadians(ten_b))", "Math.cos", "Math", "Math.toRadians(ten_b)", "Math.toRadians", "Math", "ten_b", "b", "double by = Math.sin(Math.toRadians(ten_b)) * b;", "by", "Math.sin(Math.toRadians(ten_b)) * b", "Math.sin(Math.toRadians(ten_b))", "Math.sin", "Math", "Math.toRadians(ten_b)", "Math.toRadians", "Math", "ten_b", "b", "double ans = (Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)));", "ans", "(Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)))", "Math.sqrt", "Math", "Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)", "Math.pow((ax-bx), 2)", "Math.pow", "Math", "(ax-bx)", "ax", "bx", "2", "Math.pow((ay-by), 2)", "Math.pow", "Math", "(ay-by)", "ay", "by", "2", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n \n double ten_a = h*30 + m*0.5;\n double ten_b = m*6;\n \n double ax = Math.cos(Math.toRadians(ten_a)) * a;\n double ay = Math.sin(Math.toRadians(ten_a)) * a;\n \n double bx = Math.cos(Math.toRadians(ten_b)) * b;\n double by = Math.sin(Math.toRadians(ten_b)) * b;\n \n double ans = (Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)));\n\n System.out.println(ans);\n \n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n \n double ten_a = h*30 + m*0.5;\n double ten_b = m*6;\n \n double ax = Math.cos(Math.toRadians(ten_a)) * a;\n double ay = Math.sin(Math.toRadians(ten_a)) * a;\n \n double bx = Math.cos(Math.toRadians(ten_b)) * b;\n double by = Math.sin(Math.toRadians(ten_b)) * b;\n \n double ans = (Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2)));\n\n System.out.println(ans);\n \n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double h = sc.nextDouble(); double m = sc.nextDouble(); double ten_a = h*30 + m*0.5; double ten_b = m*6; double ax = Math.cos(Math.toRadians(ten_a)) * a; double ay = Math.sin(Math.toRadians(ten_a)) * a; double bx = Math.cos(Math.toRadians(ten_b)) * b; double by = Math.sin(Math.toRadians(ten_b)) * b; double ans = (Math.sqrt(Math.pow((ax-bx), 2) + Math.pow((ay-by), 2))); System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 20, 4, 18, 13, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 41, 13, 41, 13, 2, 2, 13, 17, 2, 13, 17, 0, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 0, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 41, 13, 41, 13, 2, 13, 17, 0, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 0, 13, 2, 4, 18, 13, 4, 18, 13, 13, 13, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 13, 4, 18, 13, 17, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 6, 13, 41, 13, 18, 13, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 14, 2, 13, 13, 30, 29, 17, 30, 0, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 29, 18, 13, 40, 13, 29, 40, 17, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 40, 4, 13, 18, 13, 13, 40, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 20, 41, 13, 4, 13, 42, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 17, 13, 30, 37, 20, 42, 17, 30, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 40, 17, 40, 4, 13, 13, 30, 29, 8, 13, 40, 13, 13, 30, 37, 20, 0, 13, 4, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 37, 20, 29, 13, 12, 13, 30, 29, 4, 18, 13, 4, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ], [ 0, 37 ], [ 37, 38 ], [ 37, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ], [ 0, 43 ], [ 43, 44 ], [ 43, 45 ], [ 0, 46 ], [ 46, 47 ], [ 46, 48 ], [ 0, 49 ], [ 49, 50 ], [ 49, 51 ], [ 0, 52 ], [ 52, 53 ], [ 52, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ], [ 0, 58 ], [ 58, 59 ], [ 58, 60 ], [ 0, 61 ], [ 61, 62 ], [ 61, 63 ], [ 0, 64 ], [ 715, 65 ], [ 715, 66 ], [ 66, 67 ], [ 66, 68 ], [ 715, 69 ], [ 69, 70 ], [ 69, 71 ], [ 715, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 72, 86 ], [ 86, 87 ], [ 715, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 90, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 90, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 90, 107 ], [ 107, 108 ], [ 90, 109 ], [ 109, 110 ], [ 90, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 90, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 122, 130 ], [ 90, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 133, 141 ], [ 90, 142 ], [ 142, 143 ], [ 90, 144 ], [ 144, 145 ], [ 90, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 90, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 153, 161 ], [ 90, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 164, 172 ], [ 90, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 178, 179 ], [ 178, 180 ], [ 90, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 186, 187 ], [ 186, 188 ], [ 90, 189 ], [ 189, 190 ], [ 189, 191 ], [ 191, 192 ], [ 192, 193 ], [ 191, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 198, 199 ], [ 198, 200 ], [ 90, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 204, 205 ], [ 205, 206 ], [ 204, 207 ], [ 204, 208 ], [ 715, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 715, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 223, 228 ], [ 228, 229 ], [ 228, 230 ], [ 223, 231 ], [ 231, 232 ], [ 232, 233 ], [ 223, 234 ], [ 235, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 236, 240 ], [ 240, 241 ], [ 218, 242 ], [ 242, 243 ], [ 216, 244 ], [ 244, 245 ], [ 715, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 248, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 256, 258 ], [ 254, 259 ], [ 259, 260 ], [ 259, 261 ], [ 254, 262 ], [ 262, 263 ], [ 263, 264 ], [ 254, 265 ], [ 266, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 267, 272 ], [ 272, 273 ], [ 272, 274 ], [ 267, 275 ], [ 275, 276 ], [ 276, 277 ], [ 267, 278 ], [ 279, 279 ], [ 279, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 281, 285 ], [ 280, 286 ], [ 286, 287 ], [ 248, 288 ], [ 288, 289 ], [ 246, 290 ], [ 290, 291 ], [ 246, 292 ], [ 292, 293 ], [ 715, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 715, 301 ], [ 301, 302 ], [ 301, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 303, 308 ], [ 308, 309 ], [ 309, 310 ], [ 310, 311 ], [ 310, 312 ], [ 308, 313 ], [ 313, 314 ], [ 313, 315 ], [ 308, 316 ], [ 316, 317 ], [ 317, 318 ], [ 308, 319 ], [ 320, 320 ], [ 320, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 321, 325 ], [ 325, 326 ], [ 303, 327 ], [ 327, 328 ], [ 301, 329 ], [ 329, 330 ], [ 715, 331 ], [ 331, 332 ], [ 331, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 333, 339 ], [ 339, 340 ], [ 340, 341 ], [ 341, 342 ], [ 341, 343 ], [ 339, 344 ], [ 344, 345 ], [ 344, 346 ], [ 339, 347 ], [ 347, 348 ], [ 348, 349 ], [ 339, 350 ], [ 351, 351 ], [ 351, 352 ], [ 352, 353 ], [ 353, 354 ], [ 354, 355 ], [ 354, 356 ], [ 352, 357 ], [ 357, 358 ], [ 357, 359 ], [ 352, 360 ], [ 360, 361 ], [ 361, 362 ], [ 352, 363 ], [ 364, 364 ], [ 364, 365 ], [ 365, 366 ], [ 366, 367 ], [ 367, 368 ], [ 367, 369 ], [ 366, 370 ], [ 365, 371 ], [ 371, 372 ], [ 333, 373 ], [ 373, 374 ], [ 331, 375 ], [ 375, 376 ], [ 331, 377 ], [ 377, 378 ], [ 715, 379 ], [ 379, 380 ], [ 379, 381 ], [ 381, 382 ], [ 382, 383 ], [ 383, 384 ], [ 384, 385 ], [ 715, 386 ], [ 386, 387 ], [ 386, 388 ], [ 388, 389 ], [ 389, 390 ], [ 389, 391 ], [ 388, 393 ], [ 393, 394 ], [ 394, 395 ], [ 395, 396 ], [ 395, 397 ], [ 393, 398 ], [ 398, 399 ], [ 398, 400 ], [ 393, 401 ], [ 401, 402 ], [ 402, 403 ], [ 393, 404 ], [ 405, 405 ], [ 405, 406 ], [ 406, 407 ], [ 407, 408 ], [ 407, 409 ], [ 406, 410 ], [ 410, 411 ], [ 388, 412 ], [ 412, 413 ], [ 386, 414 ], [ 414, 415 ], [ 715, 416 ], [ 416, 417 ], [ 416, 418 ], [ 418, 419 ], [ 419, 420 ], [ 419, 421 ], [ 418, 424 ], [ 424, 425 ], [ 425, 426 ], [ 426, 427 ], [ 426, 428 ], [ 424, 429 ], [ 429, 430 ], [ 429, 431 ], [ 424, 432 ], [ 432, 433 ], [ 433, 434 ], [ 424, 435 ], [ 436, 436 ], [ 436, 437 ], [ 437, 438 ], [ 438, 439 ], [ 439, 440 ], [ 439, 441 ], [ 437, 442 ], [ 442, 443 ], [ 442, 444 ], [ 437, 445 ], [ 445, 446 ], [ 446, 447 ], [ 437, 448 ], [ 449, 449 ], [ 449, 450 ], [ 450, 451 ], [ 451, 452 ], [ 452, 453 ], [ 452, 454 ], [ 451, 455 ], [ 450, 456 ], [ 456, 457 ], [ 418, 458 ], [ 458, 459 ], [ 416, 460 ], [ 460, 461 ], [ 416, 462 ], [ 462, 463 ], [ 0, 464 ], [ 464, 465 ], [ 464, 466 ], [ 466, 467 ], [ 466, 468 ], [ 468, 469 ], [ 468, 470 ], [ 464, 471 ], [ 471, 472 ], [ 471, 473 ], [ 464, 475 ], [ 475, 476 ], [ 475, 477 ], [ 464, 478 ], [ 478, 479 ], [ 478, 480 ], [ 464, 481 ], [ 481, 482 ], [ 481, 483 ], [ 483, 484 ], [ 484, 485 ], [ 485, 486 ], [ 485, 487 ], [ 484, 488 ], [ 488, 489 ], [ 489, 490 ], [ 484, 491 ], [ 491, 492 ], [ 492, 493 ], [ 492, 494 ], [ 491, 495 ], [ 495, 496 ], [ 496, 497 ], [ 496, 498 ], [ 498, 499 ], [ 499, 500 ], [ 500, 501 ], [ 495, 502 ], [ 502, 503 ], [ 503, 504 ], [ 503, 505 ], [ 505, 506 ], [ 506, 507 ], [ 505, 508 ], [ 491, 509 ], [ 509, 510 ], [ 510, 511 ], [ 510, 512 ], [ 509, 513 ], [ 513, 514 ], [ 514, 515 ], [ 483, 516 ], [ 516, 517 ], [ 464, 518 ], [ 518, 519 ], [ 518, 520 ], [ 520, 521 ], [ 521, 522 ], [ 522, 523 ], [ 521, 524 ], [ 524, 525 ], [ 525, 526 ], [ 525, 527 ], [ 527, 528 ], [ 521, 529 ], [ 529, 530 ], [ 530, 531 ], [ 464, 532 ], [ 532, 533 ], [ 532, 534 ], [ 534, 535 ], [ 535, 536 ], [ 536, 537 ], [ 537, 538 ], [ 537, 539 ], [ 536, 540 ], [ 540, 541 ], [ 540, 542 ], [ 532, 543 ], [ 543, 544 ], [ 464, 545 ], [ 545, 546 ], [ 545, 547 ], [ 547, 548 ], [ 548, 549 ], [ 549, 550 ], [ 550, 551 ], [ 549, 552 ], [ 552, 553 ], [ 553, 554 ], [ 553, 555 ], [ 555, 556 ], [ 555, 557 ], [ 548, 558 ], [ 558, 559 ], [ 547, 560 ], [ 560, 561 ], [ 561, 562 ], [ 464, 563 ], [ 563, 564 ], [ 563, 565 ], [ 565, 566 ], [ 566, 567 ], [ 567, 568 ], [ 568, 569 ], [ 566, 570 ], [ 570, 571 ], [ 565, 572 ], [ 572, 573 ], [ 572, 574 ], [ 565, 575 ], [ 575, 576 ], [ 575, 577 ], [ 577, 578 ], [ 565, 579 ], [ 579, 580 ], [ 580, 581 ], [ 580, 582 ], [ 579, 583 ], [ 583, 584 ], [ 584, 585 ], [ 585, 586 ], [ 584, 587 ], [ 583, 588 ], [ 588, 589 ], [ 588, 590 ], [ 590, 591 ], [ 565, 592 ], [ 592, 593 ], [ 593, 594 ], [ 594, 595 ], [ 464, 596 ], [ 596, 597 ], [ 596, 598 ], [ 598, 599 ], [ 599, 600 ], [ 600, 601 ], [ 601, 602 ], [ 599, 603 ], [ 603, 604 ], [ 598, 605 ], [ 605, 606 ], [ 605, 607 ], [ 598, 608 ], [ 608, 609 ], [ 608, 610 ], [ 598, 611 ], [ 611, 612 ], [ 611, 613 ], [ 613, 614 ], [ 598, 615 ], [ 615, 616 ], [ 616, 617 ], [ 616, 618 ], [ 615, 619 ], [ 619, 620 ], [ 620, 621 ], [ 620, 622 ], [ 619, 623 ], [ 623, 624 ], [ 623, 625 ], [ 625, 626 ], [ 598, 627 ], [ 627, 628 ], [ 628, 629 ], [ 629, 630 ], [ 629, 631 ], [ 628, 632 ], [ 632, 633 ], [ 632, 634 ], [ 627, 635 ], [ 635, 636 ], [ 636, 637 ], [ 598, 638 ], [ 638, 639 ], [ 638, 640 ], [ 640, 641 ], [ 641, 642 ], [ 642, 643 ], [ 643, 644 ], [ 643, 645 ], [ 642, 646 ], [ 646, 647 ], [ 646, 648 ], [ 641, 649 ], [ 649, 650 ], [ 650, 651 ], [ 650, 652 ], [ 649, 653 ], [ 653, 654 ], [ 653, 655 ], [ 655, 656 ], [ 655, 657 ], [ 641, 658 ], [ 658, 659 ], [ 659, 660 ], [ 660, 661 ], [ 660, 662 ], [ 662, 663 ], [ 659, 664 ], [ 664, 665 ], [ 665, 666 ], [ 665, 667 ], [ 658, 668 ], [ 668, 669 ], [ 669, 670 ], [ 670, 671 ], [ 670, 672 ], [ 672, 673 ], [ 670, 674 ], [ 658, 675 ], [ 675, 676 ], [ 676, 677 ], [ 640, 678 ], [ 678, 679 ], [ 678, 680 ], [ 680, 681 ], [ 464, 682 ], [ 682, 683 ], [ 682, 684 ], [ 684, 685 ], [ 685, 686 ], [ 685, 687 ], [ 687, 688 ], [ 684, 689 ], [ 689, 690 ], [ 690, 691 ], [ 691, 692 ], [ 691, 693 ], [ 693, 694 ], [ 693, 695 ], [ 690, 696 ], [ 696, 697 ], [ 696, 698 ], [ 698, 699 ], [ 698, 700 ], [ 689, 701 ], [ 701, 702 ], [ 684, 703 ], [ 703, 704 ], [ 464, 705 ], [ 705, 706 ], [ 705, 707 ], [ 707, 708 ], [ 708, 709 ], [ 709, 710 ], [ 710, 711 ], [ 709, 712 ], [ 712, 713 ], [ 0, 714 ], [ 714, 715 ], [ 714, 716 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.net.ConnectException;\nimport java.rmi.dgc.Lease;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.Deque;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.NoSuchElementException;\nimport java.util.Objects;\nimport java.util.Set;\nimport java.util.Stack;\nimport java.util.TreeMap;\nimport java.util.TreeSet;\n\nimport static java.util.Comparator.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.solve();\n\t\tmain.out.close();\n\t}\n\n\t// ======================================================================\n\tpublic void solve() {\n\t\tdouble A = ni();\n\t\tdouble B = ni();\n\t\tdouble H = ni();\n\t\tdouble M = ni();\n\t\tdouble HX, HY;\n\t\tdouble intHR = H * 30 + M / 2;\t\t// 時針も分の影響を受ける\n\t\tHX = Math.cos(Math.toRadians(intHR)) * A;\n\t\tHY = Math.sin(Math.toRadians(intHR)) * A;\n\t\tdouble MX, MY;\n\t\tdouble intMR = M * 6;\n\t\tMX = Math.cos(Math.toRadians(intMR)) * B;\n\t\tMY = Math.sin(Math.toRadians(intMR)) * B;\n\t\tdouble XX = Math.abs(HX - MX);\n\t\tdouble YY = Math.abs(HY - MY);\n\t\tdouble ans = Math.sqrt(XX * XX + YY * YY);\n\t\tout.println(String.format(\"%.10f\", ans));\n\t}\n\n\t// ------------------------------------------\n\t// ライブラリ\n\t// ------------------------------------------\n\t// Print\n\tprivate PrintWriter out = new PrintWriter(System.out);\n\n\t// Scanner\n\tprivate FastScanner scan = new FastScanner();\n\n\tint ni() {\n\t\treturn scan.nextInt();\n\t}\n\n\tint[] ni(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ni();\n\t\t}\n\t\treturn a;\n\t}\n\n\tint[][] ni(int y, int x) {\n\t\tint[][] a = new int[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n\n\tlong nl() {\n\t\treturn scan.nextLong();\n\t}\n\n\tlong[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = nl();\n\t\t}\n\t\treturn a;\n\t}\n\n\tlong[][] nl(int y, int x) {\n\t\tlong[][] a = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n\n\tString ns() {\n\t\treturn scan.next();\n\t}\n\n\tString[] ns(int n) {\n\t\tString[] a = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ns();\n\t\t}\n\t\treturn a;\n\t}\n\n\tString[][] ns(int y, int x) {\n\t\tString[][] a = new String[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n}\n\nclass FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.net.ConnectException;", "ConnectException", "java.net", "import java.rmi.dgc.Lease;", "Lease", "java.rmi.dgc", "import java.util.ArrayDeque;", "ArrayDeque", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Deque;", "Deque", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.HashSet;", "HashSet", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.NoSuchElementException;", "NoSuchElementException", "java.util", "import java.util.Objects;", "Objects", "java.util", "import java.util.Set;", "Set", "java.util", "import java.util.Stack;", "Stack", "java.util", "import java.util.TreeMap;", "TreeMap", "java.util", "import java.util.TreeSet;", "TreeSet", "java.util", "import static java.util.Comparator.*;", "import static java.util.Comparator.*;", "import static java.util.Comparator.*;", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.solve();\n\t\tmain.out.close();\n\t}\n\n\t// ======================================================================\n\tpublic void solve() {\n\t\tdouble A = ni();\n\t\tdouble B = ni();\n\t\tdouble H = ni();\n\t\tdouble M = ni();\n\t\tdouble HX, HY;\n\t\tdouble intHR = H * 30 + M / 2;\t\t// 時針も分の影響を受ける\n\t\tHX = Math.cos(Math.toRadians(intHR)) * A;\n\t\tHY = Math.sin(Math.toRadians(intHR)) * A;\n\t\tdouble MX, MY;\n\t\tdouble intMR = M * 6;\n\t\tMX = Math.cos(Math.toRadians(intMR)) * B;\n\t\tMY = Math.sin(Math.toRadians(intMR)) * B;\n\t\tdouble XX = Math.abs(HX - MX);\n\t\tdouble YY = Math.abs(HY - MY);\n\t\tdouble ans = Math.sqrt(XX * XX + YY * YY);\n\t\tout.println(String.format(\"%.10f\", ans));\n\t}\n\n\t// ------------------------------------------\n\t// ライブラリ\n\t// ------------------------------------------\n\t// Print\n\tprivate PrintWriter out = new PrintWriter(System.out);\n\n\t// Scanner\n\tprivate FastScanner scan = new FastScanner();\n\n\tint ni() {\n\t\treturn scan.nextInt();\n\t}\n\n\tint[] ni(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ni();\n\t\t}\n\t\treturn a;\n\t}\n\n\tint[][] ni(int y, int x) {\n\t\tint[][] a = new int[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n\n\tlong nl() {\n\t\treturn scan.nextLong();\n\t}\n\n\tlong[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = nl();\n\t\t}\n\t\treturn a;\n\t}\n\n\tlong[][] nl(int y, int x) {\n\t\tlong[][] a = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n\n\tString ns() {\n\t\treturn scan.next();\n\t}\n\n\tString[] ns(int n) {\n\t\tString[] a = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ns();\n\t\t}\n\t\treturn a;\n\t}\n\n\tString[][] ns(int y, int x) {\n\t\tString[][] a = new String[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n}", "Main", "// ------------------------------------------\n\t// ライブラリ\n\t// ------------------------------------------\n\t// Print\n\tprivate PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "// Scanner\n\tprivate FastScanner scan = new FastScanner();", "scan", "new FastScanner()", "public static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.solve();\n\t\tmain.out.close();\n\t}", "main", "{\n\t\tMain main = new Main();\n\t\tmain.solve();\n\t\tmain.out.close();\n\t}", "Main main = new Main();", "main", "new Main()", "main.solve()", "main.solve", "main", "main.out.close()", "main.out.close", "main.out", "main", "main.out", "String[] args", "args", "// ======================================================================\n\tpublic void solve() {\n\t\tdouble A = ni();\n\t\tdouble B = ni();\n\t\tdouble H = ni();\n\t\tdouble M = ni();\n\t\tdouble HX, HY;\n\t\tdouble intHR = H * 30 + M / 2;\t\t// 時針も分の影響を受ける\n\t\tHX = Math.cos(Math.toRadians(intHR)) * A;\n\t\tHY = Math.sin(Math.toRadians(intHR)) * A;\n\t\tdouble MX, MY;\n\t\tdouble intMR = M * 6;\n\t\tMX = Math.cos(Math.toRadians(intMR)) * B;\n\t\tMY = Math.sin(Math.toRadians(intMR)) * B;\n\t\tdouble XX = Math.abs(HX - MX);\n\t\tdouble YY = Math.abs(HY - MY);\n\t\tdouble ans = Math.sqrt(XX * XX + YY * YY);\n\t\tout.println(String.format(\"%.10f\", ans));\n\t}", "solve", "{\n\t\tdouble A = ni();\n\t\tdouble B = ni();\n\t\tdouble H = ni();\n\t\tdouble M = ni();\n\t\tdouble HX, HY;\n\t\tdouble intHR = H * 30 + M / 2;\t\t// 時針も分の影響を受ける\n\t\tHX = Math.cos(Math.toRadians(intHR)) * A;\n\t\tHY = Math.sin(Math.toRadians(intHR)) * A;\n\t\tdouble MX, MY;\n\t\tdouble intMR = M * 6;\n\t\tMX = Math.cos(Math.toRadians(intMR)) * B;\n\t\tMY = Math.sin(Math.toRadians(intMR)) * B;\n\t\tdouble XX = Math.abs(HX - MX);\n\t\tdouble YY = Math.abs(HY - MY);\n\t\tdouble ans = Math.sqrt(XX * XX + YY * YY);\n\t\tout.println(String.format(\"%.10f\", ans));\n\t}", "double A = ni();", "A", "ni()", "ni", "double B = ni();", "B", "ni()", "ni", "double H = ni();", "H", "ni()", "ni", "double M = ni();", "M", "ni()", "ni", "double HX", "HX", "HY;", "HY", "double intHR = H * 30 + M / 2;", "intHR", "H * 30 + M / 2", "H * 30", "H", "30", "M / 2", "M", "2", "HX = Math.cos(Math.toRadians(intHR)) * A", "HX", "Math.cos(Math.toRadians(intHR)) * A", "Math.cos(Math.toRadians(intHR))", "Math.cos", "Math", "Math.toRadians(intHR)", "Math.toRadians", "Math", "intHR", "A", "HY = Math.sin(Math.toRadians(intHR)) * A", "HY", "Math.sin(Math.toRadians(intHR)) * A", "Math.sin(Math.toRadians(intHR))", "Math.sin", "Math", "Math.toRadians(intHR)", "Math.toRadians", "Math", "intHR", "A", "double MX", "MX", "MY;", "MY", "double intMR = M * 6;", "intMR", "M * 6", "M", "6", "MX = Math.cos(Math.toRadians(intMR)) * B", "MX", "Math.cos(Math.toRadians(intMR)) * B", "Math.cos(Math.toRadians(intMR))", "Math.cos", "Math", "Math.toRadians(intMR)", "Math.toRadians", "Math", "intMR", "B", "MY = Math.sin(Math.toRadians(intMR)) * B", "MY", "Math.sin(Math.toRadians(intMR)) * B", "Math.sin(Math.toRadians(intMR))", "Math.sin", "Math", "Math.toRadians(intMR)", "Math.toRadians", "Math", "intMR", "B", "double XX = Math.abs(HX - MX);", "XX", "Math.abs(HX - MX)", "Math.abs", "Math", "HX - MX", "HX", "MX", "double YY = Math.abs(HY - MY);", "YY", "Math.abs(HY - MY)", "Math.abs", "Math", "HY - MY", "HY", "MY", "double ans = Math.sqrt(XX * XX + YY * YY);", "ans", "Math.sqrt(XX * XX + YY * YY)", "Math.sqrt", "Math", "XX * XX + YY * YY", "XX * XX", "XX", "XX", "YY * YY", "YY", "YY", "out.println(String.format(\"%.10f\", ans))", "out.println", "out", "String.format(\"%.10f\", ans)", "String.format", "String", "\"%.10f\"", "ans", "int ni() {\n\t\treturn scan.nextInt();\n\t}", "ni", "{\n\t\treturn scan.nextInt();\n\t}", "return scan.nextInt();", "scan.nextInt()", "scan.nextInt", "scan", "int[] ni(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ni();\n\t\t}\n\t\treturn a;\n\t}", "ni", "{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ni();\n\t\t}\n\t\treturn a;\n\t}", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\ta[i] = ni();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i] = ni();\n\t\t}", "{\n\t\t\ta[i] = ni();\n\t\t}", "a[i] = ni()", "a[i]", "a", "i", "ni()", "ni", "return a;", "a", "int n", "n", "int[][] ni(int y, int x) {\n\t\tint[][] a = new int[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "ni", "{\n\t\tint[][] a = new int[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "int[][] a = new int[y][x];", "a", "new int[y][x]", "y", "x", "for (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < y", "i", "y", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}", "for (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < x", "j", "x", "j++", "j++", "j", "{\n\t\t\t\ta[i][j] = ni();\n\t\t\t}", "{\n\t\t\t\ta[i][j] = ni();\n\t\t\t}", "a[i][j] = ni()", "a[i][j]", "a[i]", "a", "i", "j", "ni()", "ni", "return a;", "a", "int y", "y", "int x", "x", "long nl() {\n\t\treturn scan.nextLong();\n\t}", "nl", "{\n\t\treturn scan.nextLong();\n\t}", "return scan.nextLong();", "scan.nextLong()", "scan.nextLong", "scan", "long[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = nl();\n\t\t}\n\t\treturn a;\n\t}", "nl", "{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = nl();\n\t\t}\n\t\treturn a;\n\t}", "long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\ta[i] = nl();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i] = nl();\n\t\t}", "{\n\t\t\ta[i] = nl();\n\t\t}", "a[i] = nl()", "a[i]", "a", "i", "nl()", "nl", "return a;", "a", "int n", "n", "long[][] nl(int y, int x) {\n\t\tlong[][] a = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "nl", "{\n\t\tlong[][] a = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "long[][] a = new long[y][x];", "a", "new long[y][x]", "y", "x", "for (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < y", "i", "y", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}", "for (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < x", "j", "x", "j++", "j++", "j", "{\n\t\t\t\ta[i][j] = nl();\n\t\t\t}", "{\n\t\t\t\ta[i][j] = nl();\n\t\t\t}", "a[i][j] = nl()", "a[i][j]", "a[i]", "a", "i", "j", "nl()", "nl", "return a;", "a", "int y", "y", "int x", "x", "String ns() {\n\t\treturn scan.next();\n\t}", "ns", "{\n\t\treturn scan.next();\n\t}", "return scan.next();", "scan.next()", "scan.next", "scan", "String[] ns(int n) {\n\t\tString[] a = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ns();\n\t\t}\n\t\treturn a;\n\t}", "ns", "{\n\t\tString[] a = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ns();\n\t\t}\n\t\treturn a;\n\t}", "String[] a = new String[n];", "a", "new String[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\ta[i] = ns();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i] = ns();\n\t\t}", "{\n\t\t\ta[i] = ns();\n\t\t}", "a[i] = ns()", "a[i]", "a", "i", "ns()", "ns", "return a;", "a", "int n", "n", "String[][] ns(int y, int x) {\n\t\tString[][] a = new String[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "ns", "{\n\t\tString[][] a = new String[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "String[][] a = new String[y][x];", "a", "new String[y][x]", "y", "x", "for (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < y", "i", "y", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}", "for (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < x", "j", "x", "j++", "j++", "j", "{\n\t\t\t\ta[i][j] = ns();\n\t\t\t}", "{\n\t\t\t\ta[i][j] = ns();\n\t\t\t}", "a[i][j] = ns()", "a[i][j]", "a[i]", "a", "i", "j", "ns()", "ns", "return a;", "a", "int y", "y", "int x", "x", "class FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n}", "FastScanner", "private final InputStream in = System.in;", "in", "System.in", "System", "System.in", "private final byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int ptr = 0;", "ptr", "0", "private int buflen = 0;", "buflen", "0", "private boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "hasNextByte", "{\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "if (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "ptr < buflen", "ptr", "buflen", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "{\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "ptr = 0", "ptr", "0", "try {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "IOException e", "{\n\t\t\t\te.printStackTrace();\n\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t}", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}", "buflen <= 0", "buflen", "0", "{\n\t\t\t\treturn false;\n\t\t\t}", "return false;", "false", "return true;", "true", "private int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}", "readByte", "{\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}", "if (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "private static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}", "isPrintableChar", "{\n\t\treturn 33 <= c && c <= 126;\n\t}", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "int c", "c", "public boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}", "hasNext", "{\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}", "while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "ptr++", "ptr", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}", "next", "{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}", "if (!hasNext())\n\t\t\tthrow new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = readByte();", "b", "readByte()", "readByte", "while (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}", "nextLong", "{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}", "if (!hasNext())\n\t\t\tthrow new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "long n = 0;", "n", "0", "boolean minus = false;", "minus", "false", "int b = readByte();", "b", "readByte()", "readByte", "if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}", "b == '-'", "b", "'-'", "{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n\t\t\tthrow new NumberFormatException();\n\t\t}", "throw new NumberFormatException();", "new NumberFormatException()", "while (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}", "true", "{\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}", "if ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t}", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t\t\t\treturn minus ? -n : n;\n\t\t\t}", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}", "nextInt", "{\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}", "long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();", "nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE", "nl < Integer.MIN_VALUE", "nl", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "nl > Integer.MAX_VALUE", "nl", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}", "nextDouble", "{\n\t\treturn Double.parseDouble(next());\n\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.solve();\n\t\tmain.out.close();\n\t}\n\n\t// ======================================================================\n\tpublic void solve() {\n\t\tdouble A = ni();\n\t\tdouble B = ni();\n\t\tdouble H = ni();\n\t\tdouble M = ni();\n\t\tdouble HX, HY;\n\t\tdouble intHR = H * 30 + M / 2;\t\t// 時針も分の影響を受ける\n\t\tHX = Math.cos(Math.toRadians(intHR)) * A;\n\t\tHY = Math.sin(Math.toRadians(intHR)) * A;\n\t\tdouble MX, MY;\n\t\tdouble intMR = M * 6;\n\t\tMX = Math.cos(Math.toRadians(intMR)) * B;\n\t\tMY = Math.sin(Math.toRadians(intMR)) * B;\n\t\tdouble XX = Math.abs(HX - MX);\n\t\tdouble YY = Math.abs(HY - MY);\n\t\tdouble ans = Math.sqrt(XX * XX + YY * YY);\n\t\tout.println(String.format(\"%.10f\", ans));\n\t}\n\n\t// ------------------------------------------\n\t// ライブラリ\n\t// ------------------------------------------\n\t// Print\n\tprivate PrintWriter out = new PrintWriter(System.out);\n\n\t// Scanner\n\tprivate FastScanner scan = new FastScanner();\n\n\tint ni() {\n\t\treturn scan.nextInt();\n\t}\n\n\tint[] ni(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ni();\n\t\t}\n\t\treturn a;\n\t}\n\n\tint[][] ni(int y, int x) {\n\t\tint[][] a = new int[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n\n\tlong nl() {\n\t\treturn scan.nextLong();\n\t}\n\n\tlong[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = nl();\n\t\t}\n\t\treturn a;\n\t}\n\n\tlong[][] nl(int y, int x) {\n\t\tlong[][] a = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n\n\tString ns() {\n\t\treturn scan.next();\n\t}\n\n\tString[] ns(int n) {\n\t\tString[] a = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ns();\n\t\t}\n\t\treturn a;\n\t}\n\n\tString[][] ns(int y, int x) {\n\t\tString[][] a = new String[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tMain main = new Main();\n\t\tmain.solve();\n\t\tmain.out.close();\n\t}\n\n\t// ======================================================================\n\tpublic void solve() {\n\t\tdouble A = ni();\n\t\tdouble B = ni();\n\t\tdouble H = ni();\n\t\tdouble M = ni();\n\t\tdouble HX, HY;\n\t\tdouble intHR = H * 30 + M / 2;\t\t// 時針も分の影響を受ける\n\t\tHX = Math.cos(Math.toRadians(intHR)) * A;\n\t\tHY = Math.sin(Math.toRadians(intHR)) * A;\n\t\tdouble MX, MY;\n\t\tdouble intMR = M * 6;\n\t\tMX = Math.cos(Math.toRadians(intMR)) * B;\n\t\tMY = Math.sin(Math.toRadians(intMR)) * B;\n\t\tdouble XX = Math.abs(HX - MX);\n\t\tdouble YY = Math.abs(HY - MY);\n\t\tdouble ans = Math.sqrt(XX * XX + YY * YY);\n\t\tout.println(String.format(\"%.10f\", ans));\n\t}\n\n\t// ------------------------------------------\n\t// ライブラリ\n\t// ------------------------------------------\n\t// Print\n\tprivate PrintWriter out = new PrintWriter(System.out);\n\n\t// Scanner\n\tprivate FastScanner scan = new FastScanner();\n\n\tint ni() {\n\t\treturn scan.nextInt();\n\t}\n\n\tint[] ni(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ni();\n\t\t}\n\t\treturn a;\n\t}\n\n\tint[][] ni(int y, int x) {\n\t\tint[][] a = new int[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ni();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n\n\tlong nl() {\n\t\treturn scan.nextLong();\n\t}\n\n\tlong[] nl(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = nl();\n\t\t}\n\t\treturn a;\n\t}\n\n\tlong[][] nl(int y, int x) {\n\t\tlong[][] a = new long[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = nl();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n\n\tString ns() {\n\t\treturn scan.next();\n\t}\n\n\tString[] ns(int n) {\n\t\tString[] a = new String[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta[i] = ns();\n\t\t}\n\t\treturn a;\n\t}\n\n\tString[][] ns(int y, int x) {\n\t\tString[][] a = new String[y][x];\n\t\tfor (int i = 0; i < y; i++) {\n\t\t\tfor (int j = 0; j < x; j++) {\n\t\t\t\ta[i][j] = ns();\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.net.ConnectException; import java.rmi.dgc.Lease; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Deque; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; import java.util.Stack; import java.util.TreeMap; import java.util.TreeSet; import static java.util.Comparator.*; public class Main { public static void main(String[] args) { Main main = new Main(); main.solve(); main.out.close(); } // ====================================================================== public void solve() { double A = ni(); double B = ni(); double H = ni(); double M = ni(); double HX, HY; double intHR = H * 30 + M / 2; // 時針も分の影響を受ける HX = Math.cos(Math.toRadians(intHR)) * A; HY = Math.sin(Math.toRadians(intHR)) * A; double MX, MY; double intMR = M * 6; MX = Math.cos(Math.toRadians(intMR)) * B; MY = Math.sin(Math.toRadians(intMR)) * B; double XX = Math.abs(HX - MX); double YY = Math.abs(HY - MY); double ans = Math.sqrt(XX * XX + YY * YY); out.println(String.format("%.10f", ans)); } // ------------------------------------------ // ライブラリ // ------------------------------------------ // Print private PrintWriter out = new PrintWriter(System.out); // Scanner private FastScanner scan = new FastScanner(); int ni() { return scan.nextInt(); } int[] ni(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) { a[i] = ni(); } return a; } int[][] ni(int y, int x) { int[][] a = new int[y][x]; for (int i = 0; i < y; i++) { for (int j = 0; j < x; j++) { a[i][j] = ni(); } } return a; } long nl() { return scan.nextLong(); } long[] nl(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) { a[i] = nl(); } return a; } long[][] nl(int y, int x) { long[][] a = new long[y][x]; for (int i = 0; i < y; i++) { for (int j = 0; j < x; j++) { a[i][j] = nl(); } } return a; } String ns() { return scan.next(); } String[] ns(int n) { String[] a = new String[n]; for (int i = 0; i < n; i++) { a[i] = ns(); } return a; } String[][] ns(int y, int x) { String[][] a = new String[y][x]; for (int i = 0; i < y; i++) { for (int j = 0; j < x; j++) { a[i][j] = ns(); } } return a; } } class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { return true; } else { ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } if (buflen <= 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1; } private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126; } public boolean hasNext() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte(); } public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while (isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) { return minus ? -n : n; } else { throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { long nl = nextLong(); if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 14, 2, 4, 18, 13, 2, 13, 13, 17, 30, 0, 13, 2, 17, 4, 18, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 2, 13, 13, 41, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 56, 58 ], [ 52, 59 ], [ 51, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 51, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 8, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 82, 94 ], [ 96, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 8, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 8, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double l = m*6;\n double s = h*30+m*0.5;\n double cos;\n if (Math.abs(l-s) > 180) {\n cos = 360 - Math.abs(l-s);\n } else {\n cos = Math.abs(l-s);\n }\n double c2 = Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos));\n double c = Math.sqrt(c2);\n\n System.out.println(c);\n \n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double l = m*6;\n double s = h*30+m*0.5;\n double cos;\n if (Math.abs(l-s) > 180) {\n cos = 360 - Math.abs(l-s);\n } else {\n cos = Math.abs(l-s);\n }\n double c2 = Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos));\n double c = Math.sqrt(c2);\n\n System.out.println(c);\n \n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double l = m*6;\n double s = h*30+m*0.5;\n double cos;\n if (Math.abs(l-s) > 180) {\n cos = 360 - Math.abs(l-s);\n } else {\n cos = Math.abs(l-s);\n }\n double c2 = Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos));\n double c = Math.sqrt(c2);\n\n System.out.println(c);\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double l = m*6;\n double s = h*30+m*0.5;\n double cos;\n if (Math.abs(l-s) > 180) {\n cos = 360 - Math.abs(l-s);\n } else {\n cos = Math.abs(l-s);\n }\n double c2 = Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos));\n double c = Math.sqrt(c2);\n\n System.out.println(c);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "double l = m*6;", "l", "m*6", "m", "6", "double s = h*30+m*0.5;", "s", "h*30+m*0.5", "h*30", "h", "30", "m*0.5", "m", "0.5", "double cos;", "cos", "if (Math.abs(l-s) > 180) {\n cos = 360 - Math.abs(l-s);\n } else {\n cos = Math.abs(l-s);\n }", "Math.abs(l-s) > 180", "Math.abs(l-s)", "Math.abs", "Math", "l-s", "l", "s", "180", "{\n cos = 360 - Math.abs(l-s);\n }", "cos = 360 - Math.abs(l-s)", "cos", "360 - Math.abs(l-s)", "360", "Math.abs(l-s)", "Math.abs", "Math", "l-s", "l", "s", "{\n cos = Math.abs(l-s);\n }", "cos = Math.abs(l-s)", "cos", "Math.abs(l-s)", "Math.abs", "Math", "l-s", "l", "s", "double c2 = Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos));", "c2", "Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos))", "Math.pow(a, 2) + Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "2*a*b*Math.cos(Math.toRadians(cos))", "b", "2*a*b*Math.cos(Math.toRadians(cos))", "2", "a", "b", "Math.cos(Math.toRadians(cos))", "Math.cos", "Math", "Math.toRadians(cos)", "Math.toRadians", "Math", "cos", "double c = Math.sqrt(c2);", "c", "Math.sqrt(c2)", "Math.sqrt", "Math", "c2", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double l = m*6;\n double s = h*30+m*0.5;\n double cos;\n if (Math.abs(l-s) > 180) {\n cos = 360 - Math.abs(l-s);\n } else {\n cos = Math.abs(l-s);\n }\n double c2 = Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos));\n double c = Math.sqrt(c2);\n\n System.out.println(c);\n \n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n double l = m*6;\n double s = h*30+m*0.5;\n double cos;\n if (Math.abs(l-s) > 180) {\n cos = 360 - Math.abs(l-s);\n } else {\n cos = Math.abs(l-s);\n }\n double c2 = Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos));\n double c = Math.sqrt(c2);\n\n System.out.println(c);\n \n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); sc.close(); double l = m*6; double s = h*30+m*0.5; double cos; if (Math.abs(l-s) > 180) { cos = 360 - Math.abs(l-s); } else { cos = Math.abs(l-s); } double c2 = Math.pow(a, 2) + Math.pow(b, 2) - 2*a*b*Math.cos(Math.toRadians(cos)); double c = Math.sqrt(c2); System.out.println(c); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 17, 13, 41, 13, 2, 2, 17, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 66, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double m_angle = 6.0 * m;\n double h_angle = (30.0 * h) + (0.5 * m);\n double mh_angle = Math.abs(h_angle - m_angle);\n //余弦定理\n double cc = (a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle));\n System.out.println(Math.sqrt(cc));\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double m_angle = 6.0 * m;\n double h_angle = (30.0 * h) + (0.5 * m);\n double mh_angle = Math.abs(h_angle - m_angle);\n //余弦定理\n double cc = (a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle));\n System.out.println(Math.sqrt(cc));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double m_angle = 6.0 * m;\n double h_angle = (30.0 * h) + (0.5 * m);\n double mh_angle = Math.abs(h_angle - m_angle);\n //余弦定理\n double cc = (a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle));\n System.out.println(Math.sqrt(cc));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double m_angle = 6.0 * m;\n double h_angle = (30.0 * h) + (0.5 * m);\n double mh_angle = Math.abs(h_angle - m_angle);\n //余弦定理\n double cc = (a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle));\n System.out.println(Math.sqrt(cc));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double m_angle = 6.0 * m;", "m_angle", "6.0 * m", "6.0", "m", "double h_angle = (30.0 * h) + (0.5 * m);", "h_angle", "(30.0 * h) + (0.5 * m)", "(30.0 * h)", "30.0", "h", "(0.5 * m)", "0.5", "m", "double mh_angle = Math.abs(h_angle - m_angle);", "mh_angle", "Math.abs(h_angle - m_angle)", "Math.abs", "Math", "h_angle - m_angle", "h_angle", "m_angle", "double cc = (a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle));", "cc", "(a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle))", "(a * a) + (b * b)", "(a * a)", "a", "a", "(b * b)", "b", "b", "2 * a * b * Math.cos(Math.toRadians(mh_angle))", "b", "2 * a * b * Math.cos(Math.toRadians(mh_angle))", "2", "a", "b", "Math.cos(Math.toRadians(mh_angle))", "Math.cos", "Math", "Math.toRadians(mh_angle)", "Math.toRadians", "Math", "mh_angle", "System.out.println(Math.sqrt(cc))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(cc)", "Math.sqrt", "Math", "cc", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double m_angle = 6.0 * m;\n double h_angle = (30.0 * h) + (0.5 * m);\n double mh_angle = Math.abs(h_angle - m_angle);\n //余弦定理\n double cc = (a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle));\n System.out.println(Math.sqrt(cc));\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n double m_angle = 6.0 * m;\n double h_angle = (30.0 * h) + (0.5 * m);\n double mh_angle = Math.abs(h_angle - m_angle);\n //余弦定理\n double cc = (a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle));\n System.out.println(Math.sqrt(cc));\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double m_angle = 6.0 * m; double h_angle = (30.0 * h) + (0.5 * m); double mh_angle = Math.abs(h_angle - m_angle); //余弦定理 double cc = (a * a) + (b * b) - 2 * a * b * Math.cos(Math.toRadians(mh_angle)); System.out.println(Math.sqrt(cc)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 13, 17, 17, 2, 2, 2, 13, 17, 17, 17, 41, 13, 2, 2, 13, 17, 17, 4, 18, 13, 41, 13, 17, 0, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 105, 5 ], [ 105, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 34, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 41, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 66, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 65, 77 ], [ 79, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 62, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 6, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "\nimport java.util.*;\n\npublic class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double a = sc.nextInt();\n final double b = sc.nextInt();\n final double h = sc.nextInt();\n final double m = sc.nextInt();\n double h_deg = h * 360 / 12 + m * 360 / 12 / 60;\n double m_deg = m * 360 / 60;\n sc.close();\n double result = 0;\n result = Math.pow(\n (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5);\n\n System.out.println(result);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double a = sc.nextInt();\n final double b = sc.nextInt();\n final double h = sc.nextInt();\n final double m = sc.nextInt();\n double h_deg = h * 360 / 12 + m * 360 / 12 / 60;\n double m_deg = m * 360 / 60;\n sc.close();\n double result = 0;\n result = Math.pow(\n (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5);\n\n System.out.println(result);\n }\n}", "Main", "public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double a = sc.nextInt();\n final double b = sc.nextInt();\n final double h = sc.nextInt();\n final double m = sc.nextInt();\n double h_deg = h * 360 / 12 + m * 360 / 12 / 60;\n double m_deg = m * 360 / 60;\n sc.close();\n double result = 0;\n result = Math.pow(\n (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5);\n\n System.out.println(result);\n }", "main", "{\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double a = sc.nextInt();\n final double b = sc.nextInt();\n final double h = sc.nextInt();\n final double m = sc.nextInt();\n double h_deg = h * 360 / 12 + m * 360 / 12 / 60;\n double m_deg = m * 360 / 60;\n sc.close();\n double result = 0;\n result = Math.pow(\n (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5);\n\n System.out.println(result);\n }", "final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final double a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "final double b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "final double h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "final double m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double h_deg = h * 360 / 12 + m * 360 / 12 / 60;", "h_deg", "h * 360 / 12 + m * 360 / 12 / 60", "h * 360 / 12", "h * 360", "h", "360", "12", "m * 360 / 12 / 60", "m * 360 / 12 / 60", "m * 360", "m", "360", "12", "60", "double m_deg = m * 360 / 60;", "m_deg", "m * 360 / 60", "m * 360", "m", "360", "60", "sc.close()", "sc.close", "sc", "double result = 0;", "result", "0", "result = Math.pow(\n (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5)", "result", "Math.pow(\n (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5)", "Math.pow", "Math", "(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg))))", "Math.pow(a, 2) + Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))", "b", "2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))", "2", "a", "b", "Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))", "Math.cos", "Math", "Math.toRadians(Math.abs(h_deg - m_deg))", "Math.toRadians", "Math", "Math.abs(h_deg - m_deg)", "Math.abs", "Math", "h_deg - m_deg", "h_deg", "m_deg", "0.5", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "final String[] args", "args", "public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double a = sc.nextInt();\n final double b = sc.nextInt();\n final double h = sc.nextInt();\n final double m = sc.nextInt();\n double h_deg = h * 360 / 12 + m * 360 / 12 / 60;\n double m_deg = m * 360 / 60;\n sc.close();\n double result = 0;\n result = Math.pow(\n (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5);\n\n System.out.println(result);\n }\n}", "public class Main {\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n // 整数の入力\n // final int a = sc.nextInt();\n // 文字列の入力\n // final String s1 = sc.next();\n final double a = sc.nextInt();\n final double b = sc.nextInt();\n final double h = sc.nextInt();\n final double m = sc.nextInt();\n double h_deg = h * 360 / 12 + m * 360 / 12 / 60;\n double m_deg = m * 360 / 60;\n sc.close();\n double result = 0;\n result = Math.pow(\n (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5);\n\n System.out.println(result);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(final String[] args) { final Scanner sc = new Scanner(System.in); // 整数の入力 // final int a = sc.nextInt(); // 文字列の入力 // final String s1 = sc.next(); final double a = sc.nextInt(); final double b = sc.nextInt(); final double h = sc.nextInt(); final double m = sc.nextInt(); double h_deg = h * 360 / 12 + m * 360 / 12 / 60; double m_deg = m * 360 / 60; sc.close(); double result = 0; result = Math.pow( (Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b * Math.cos(Math.toRadians(Math.abs(h_deg - m_deg)))), 0.5); System.out.println(result); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 29, 4, 18, 13, 2, 4, 18, 13, 2, 13, 13, 17, 2, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 18, 13, 13, 17, 0, 13, 2, 13, 2, 13, 17, 41, 13, 2, 2, 17, 18, 13, 13, 17, 0, 13, 2, 13, 2, 2, 2, 13, 17, 13, 17, 4, 18, 18, 13, 13, 4, 13, 13, 13, 4, 18, 13, 2, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 230, 17 ], [ 230, 18 ], [ 18, 19 ], [ 230, 20 ], [ 20, 21 ], [ 230, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 24, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 24, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 46, 52 ], [ 45, 53 ], [ 53, 54 ], [ 53, 55 ], [ 22, 56 ], [ 56, 57 ], [ 22, 58 ], [ 58, 59 ], [ 22, 60 ], [ 60, 61 ], [ 230, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 64, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 64, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 64, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 64, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 64, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 64, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 64, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 117, 123 ], [ 64, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 129, 132 ], [ 129, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 136, 137 ], [ 136, 138 ], [ 62, 139 ], [ 139, 140 ], [ 230, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 141, 145 ], [ 145, 146 ], [ 141, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 141, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 156, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 166, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 155, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 141, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 188, 189 ], [ 141, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 197, 198 ], [ 141, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 206, 207 ], [ 141, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 214, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 210, 227 ], [ 227, 228 ], [ 0, 229 ], [ 229, 230 ], [ 229, 231 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.reflect.Array;\nimport java.util.*;\n\n\npublic class Main {\n \n \n static FastReader in;\n static StringBuilder out;\n\n\n public static double dist(int x1, int b, double angle){\n double x2=b*Math.cos(angle), y2=b*Math.sin(angle);\n return Math.sqrt(Math.pow((x2-x1), 2)+y2*y2);\n }\n public static void main(String[] args) {\n \n in = new FastReader();\n int a=in.nextInt(),b=in.nextInt(),h=in.nextInt(),m=in.nextInt();\n double minAn=2*Math.PI/60;\n minAn=minAn*(m%60);\n double houAn=2*Math.PI/720;\n houAn=houAn*(((h*60)+m)%720);\n System.out.println(dist(a, b, Math.abs(houAn-minAn)));\n }\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n \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.lang.reflect.Array;", "Array", "java.lang.reflect", "import java.util.*;", "util.*", "java", "public class Main {\n \n \n static FastReader in;\n static StringBuilder out;\n\n\n public static double dist(int x1, int b, double angle){\n double x2=b*Math.cos(angle), y2=b*Math.sin(angle);\n return Math.sqrt(Math.pow((x2-x1), 2)+y2*y2);\n }\n public static void main(String[] args) {\n \n in = new FastReader();\n int a=in.nextInt(),b=in.nextInt(),h=in.nextInt(),m=in.nextInt();\n double minAn=2*Math.PI/60;\n minAn=minAn*(m%60);\n double houAn=2*Math.PI/720;\n houAn=houAn*(((h*60)+m)%720);\n System.out.println(dist(a, b, Math.abs(houAn-minAn)));\n }\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n \n \n \n}", "Main", "static FastReader in;", "in", "static StringBuilder out;", "out", "public static double dist(int x1, int b, double angle){\n double x2=b*Math.cos(angle), y2=b*Math.sin(angle);\n return Math.sqrt(Math.pow((x2-x1), 2)+y2*y2);\n }", "dist", "{\n double x2=b*Math.cos(angle), y2=b*Math.sin(angle);\n return Math.sqrt(Math.pow((x2-x1), 2)+y2*y2);\n }", "double x2=b*Math.cos(angle)", "x2", "b*Math.cos(angle)", "b", "Math.cos(angle)", "Math.cos", "Math", "angle", "y2=b*Math.sin(angle);", "y2", "b*Math.sin(angle)", "b", "Math.sin(angle)", "Math.sin", "Math", "angle", "return Math.sqrt(Math.pow((x2-x1), 2)+y2*y2);", "Math.sqrt(Math.pow((x2-x1), 2)+y2*y2)", "Math.sqrt", "Math", "Math.pow((x2-x1), 2)+y2*y2", "Math.pow((x2-x1), 2)", "Math.pow", "Math", "(x2-x1)", "x2", "x1", "2", "y2*y2", "y2", "y2", "int x1", "x1", "int b", "b", "double angle", "angle", "public static void main(String[] args) {\n \n in = new FastReader();\n int a=in.nextInt(),b=in.nextInt(),h=in.nextInt(),m=in.nextInt();\n double minAn=2*Math.PI/60;\n minAn=minAn*(m%60);\n double houAn=2*Math.PI/720;\n houAn=houAn*(((h*60)+m)%720);\n System.out.println(dist(a, b, Math.abs(houAn-minAn)));\n }", "main", "{\n \n in = new FastReader();\n int a=in.nextInt(),b=in.nextInt(),h=in.nextInt(),m=in.nextInt();\n double minAn=2*Math.PI/60;\n minAn=minAn*(m%60);\n double houAn=2*Math.PI/720;\n houAn=houAn*(((h*60)+m)%720);\n System.out.println(dist(a, b, Math.abs(houAn-minAn)));\n }", "in = new FastReader()", "in", "new FastReader()", "int a=in.nextInt()", "a", "in.nextInt()", "in.nextInt", "in", "b=in.nextInt()", "b", "in.nextInt()", "in.nextInt", "in", "h=in.nextInt()", "h", "in.nextInt()", "in.nextInt", "in", "m=in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "double minAn=2*Math.PI/60;", "minAn", "2*Math.PI/60", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "60", "minAn=minAn*(m%60)", "minAn", "minAn*(m%60)", "minAn", "(m%60)", "m", "60", "double houAn=2*Math.PI/720;", "houAn", "2*Math.PI/720", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "720", "houAn=houAn*(((h*60)+m)%720)", "houAn", "houAn*(((h*60)+m)%720)", "houAn", "(((h*60)+m)%720)", "((h*60)+m)", "(h*60)", "h", "60", "m", "720", "System.out.println(dist(a, b, Math.abs(houAn-minAn)))", "System.out.println", "System.out", "System", "System.out", "dist(a, b, Math.abs(houAn-minAn))", "dist", "a", "b", "Math.abs(houAn-minAn)", "Math.abs", "Math", "houAn-minAn", "houAn", "minAn", "String[] args", "args", "static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\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 st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\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 str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n \n \n static FastReader in;\n static StringBuilder out;\n\n\n public static double dist(int x1, int b, double angle){\n double x2=b*Math.cos(angle), y2=b*Math.sin(angle);\n return Math.sqrt(Math.pow((x2-x1), 2)+y2*y2);\n }\n public static void main(String[] args) {\n \n in = new FastReader();\n int a=in.nextInt(),b=in.nextInt(),h=in.nextInt(),m=in.nextInt();\n double minAn=2*Math.PI/60;\n minAn=minAn*(m%60);\n double houAn=2*Math.PI/720;\n houAn=houAn*(((h*60)+m)%720);\n System.out.println(dist(a, b, Math.abs(houAn-minAn)));\n }\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n \n \n \n}", "public class Main {\n \n \n static FastReader in;\n static StringBuilder out;\n\n\n public static double dist(int x1, int b, double angle){\n double x2=b*Math.cos(angle), y2=b*Math.sin(angle);\n return Math.sqrt(Math.pow((x2-x1), 2)+y2*y2);\n }\n public static void main(String[] args) {\n \n in = new FastReader();\n int a=in.nextInt(),b=in.nextInt(),h=in.nextInt(),m=in.nextInt();\n double minAn=2*Math.PI/60;\n minAn=minAn*(m%60);\n double houAn=2*Math.PI/720;\n houAn=houAn*(((h*60)+m)%720);\n System.out.println(dist(a, b, Math.abs(houAn-minAn)));\n }\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n \n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n \n int nextInt() {\n return Integer.parseInt(next());\n }\n \n long nextLong() {\n return Long.parseLong(next());\n }\n \n double nextDouble() {\n return Double.parseDouble(next());\n }\n \n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n \n \n \n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.Array; import java.util.*; public class Main { static FastReader in; static StringBuilder out; public static double dist(int x1, int b, double angle){ double x2=b*Math.cos(angle), y2=b*Math.sin(angle); return Math.sqrt(Math.pow((x2-x1), 2)+y2*y2); } public static void main(String[] args) { in = new FastReader(); int a=in.nextInt(),b=in.nextInt(),h=in.nextInt(),m=in.nextInt(); double minAn=2*Math.PI/60; minAn=minAn*(m%60); double houAn=2*Math.PI/720; houAn=houAn*(((h*60)+m)%720); System.out.println(dist(a, b, Math.abs(houAn-minAn))); } static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 17, 2, 2, 17, 13, 13, 41, 13, 2, 17, 13, 41, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 2, 2, 17, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 17, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 105, 5 ], [ 105, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 75, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 6, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.util.Scanner;\n\n/*\n問題文\n問題文\n時針と分針の長さがそれぞれ A センチメートル、\nB センチメートルであるアナログ時計を考えます。\n\n時針と分針それぞれの片方の端点は同じ定点に固定されており、\nこの点を中心としてそれぞれの針は一定の角速度で時計回りに回転します。時針は\n12 時間で、分針は 1 時間で 1 周します。\n\n0 時ちょうどに時針と分針は重なっていました。\nちょうど H 時 M 分になったとき、2 本の針の固定されていない方の\n端点は何センチメートル離れているでしょうか。\n\n制約\n入力はすべて整数\n1≤A,B≤1000\n0≤H≤11\n0≤M≤59\n\n*/\n\npublic class Main {\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double hour = 0.5 * (60 * h + m);\n double min = 6 * m;\n\n double angle = hour-min;\n\n if (hour < min) {\n \tangle = 360 - min + hour;\n }\n\n double ans = a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI);\n System.out.println(String.format(\"%.20f\", Math.sqrt(ans)));\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double hour = 0.5 * (60 * h + m);\n double min = 6 * m;\n\n double angle = hour-min;\n\n if (hour < min) {\n \tangle = 360 - min + hour;\n }\n\n double ans = a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI);\n System.out.println(String.format(\"%.20f\", Math.sqrt(ans)));\n }\n}", "Main", "public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double hour = 0.5 * (60 * h + m);\n double min = 6 * m;\n\n double angle = hour-min;\n\n if (hour < min) {\n \tangle = 360 - min + hour;\n }\n\n double ans = a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI);\n System.out.println(String.format(\"%.20f\", Math.sqrt(ans)));\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double hour = 0.5 * (60 * h + m);\n double min = 6 * m;\n\n double angle = hour-min;\n\n if (hour < min) {\n \tangle = 360 - min + hour;\n }\n\n double ans = a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI);\n System.out.println(String.format(\"%.20f\", Math.sqrt(ans)));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double hour = 0.5 * (60 * h + m);", "hour", "0.5 * (60 * h + m)", "0.5", "(60 * h + m)", "60 * h", "60", "h", "m", "double min = 6 * m;", "min", "6 * m", "6", "m", "double angle = hour-min;", "angle", "hour-min", "hour", "min", "if (hour < min) {\n \tangle = 360 - min + hour;\n }", "hour < min", "hour", "min", "{\n \tangle = 360 - min + hour;\n }", "angle = 360 - min + hour", "angle", "360 - min + hour", "360 - min", "360", "min", "hour", "double ans = a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI);", "ans", "a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI)", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b * Math.cos(angle / 180 * Math.PI)", "b", "2*a*b * Math.cos(angle / 180 * Math.PI)", "2", "a", "b", "Math.cos(angle / 180 * Math.PI)", "Math.cos", "Math", "angle / 180 * Math.PI", "angle / 180", "angle", "180", "Math.PI", "Math", "Math.PI", "System.out.println(String.format(\"%.20f\", Math.sqrt(ans)))", "System.out.println", "System.out", "System", "System.out", "String.format(\"%.20f\", Math.sqrt(ans))", "String.format", "String", "\"%.20f\"", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double hour = 0.5 * (60 * h + m);\n double min = 6 * m;\n\n double angle = hour-min;\n\n if (hour < min) {\n \tangle = 360 - min + hour;\n }\n\n double ans = a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI);\n System.out.println(String.format(\"%.20f\", Math.sqrt(ans)));\n }\n}", "public class Main {\n public static void main(String[] args){\n\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n\n double hour = 0.5 * (60 * h + m);\n double min = 6 * m;\n\n double angle = hour-min;\n\n if (hour < min) {\n \tangle = 360 - min + hour;\n }\n\n double ans = a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI);\n System.out.println(String.format(\"%.20f\", Math.sqrt(ans)));\n }\n}", "Main" ]
import java.util.Scanner; /* 問題文 問題文 時針と分針の長さがそれぞれ A センチメートル、 B センチメートルであるアナログ時計を考えます。 時針と分針それぞれの片方の端点は同じ定点に固定されており、 この点を中心としてそれぞれの針は一定の角速度で時計回りに回転します。時針は 12 時間で、分針は 1 時間で 1 周します。 0 時ちょうどに時針と分針は重なっていました。 ちょうど H 時 M 分になったとき、2 本の針の固定されていない方の 端点は何センチメートル離れているでしょうか。 制約 入力はすべて整数 1≤A,B≤1000 0≤H≤11 0≤M≤59 */ public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double hour = 0.5 * (60 * h + m); double min = 6 * m; double angle = hour-min; if (hour < min) { angle = 360 - min + hour; } double ans = a*a + b*b - 2*a*b * Math.cos(angle / 180 * Math.PI); System.out.println(String.format("%.20f", Math.sqrt(ans))); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 18, 13, 13, 17, 2, 2, 2, 13, 17, 2, 2, 13, 17, 17, 2, 13, 17, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 40, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 8, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 6, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint hour = scan.nextInt();\n\t\tint minute = scan.nextInt();\n\n\t\tdouble rad = Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0);\n\t\tdouble len = (double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad);\n\n\t\tSystem.out.printf(\"%.20f\",Math.sqrt(len));\n\t\tscan.close();\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint hour = scan.nextInt();\n\t\tint minute = scan.nextInt();\n\n\t\tdouble rad = Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0);\n\t\tdouble len = (double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad);\n\n\t\tSystem.out.printf(\"%.20f\",Math.sqrt(len));\n\t\tscan.close();\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint hour = scan.nextInt();\n\t\tint minute = scan.nextInt();\n\n\t\tdouble rad = Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0);\n\t\tdouble len = (double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad);\n\n\t\tSystem.out.printf(\"%.20f\",Math.sqrt(len));\n\t\tscan.close();\n\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint hour = scan.nextInt();\n\t\tint minute = scan.nextInt();\n\n\t\tdouble rad = Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0);\n\t\tdouble len = (double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad);\n\n\t\tSystem.out.printf(\"%.20f\",Math.sqrt(len));\n\t\tscan.close();\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "int b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "int hour = scan.nextInt();", "hour", "scan.nextInt()", "scan.nextInt", "scan", "int minute = scan.nextInt();", "minute", "scan.nextInt()", "scan.nextInt", "scan", "double rad = Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0);", "rad", "Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0)", "Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0)", "Math.PI", "Math", "Math.PI", "2", "((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0)", "(double)hour/12.0 + ((double)minute/60.0)/12.0", "(double)hour/12.0", "(double)hour", "12.0", "((double)minute/60.0)/12.0", "((double)minute/60.0)", "(double)minute", "60.0", "12.0", "(double)minute/60.0", "(double)minute", "60.0", "double len = (double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad);", "len", "(double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad)", "(double)(b*b + a*a)", "b*b", "b", "b", "a*a", "a", "a", "(double)(2*b*a)*Math.cos(rad)", "(double)(2*b*a)", "2*b*a", "2", "b", "a", "Math.cos(rad)", "Math.cos", "Math", "rad", "System.out.printf(\"%.20f\",Math.sqrt(len))", "System.out.printf", "System.out", "System", "System.out", "\"%.20f\"", "Math.sqrt(len)", "Math.sqrt", "Math", "len", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint hour = scan.nextInt();\n\t\tint minute = scan.nextInt();\n\n\t\tdouble rad = Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0);\n\t\tdouble len = (double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad);\n\n\t\tSystem.out.printf(\"%.20f\",Math.sqrt(len));\n\t\tscan.close();\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint hour = scan.nextInt();\n\t\tint minute = scan.nextInt();\n\n\t\tdouble rad = Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0);\n\t\tdouble len = (double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad);\n\n\t\tSystem.out.printf(\"%.20f\",Math.sqrt(len));\n\t\tscan.close();\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int hour = scan.nextInt(); int minute = scan.nextInt(); double rad = Math.PI*2*((double)hour/12.0 + ((double)minute/60.0)/12.0 - (double)minute/60.0); double len = (double)(b*b + a*a) - (double)(2*b*a)*Math.cos(rad); System.out.printf("%.20f",Math.sqrt(len)); scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 17, 2, 2, 13, 17, 13, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 30, 0, 13, 2, 17, 13, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 29, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 156, 5 ], [ 156, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 60, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 103, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 83, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 135, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 135, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 8, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 8, 152 ], [ 6, 153 ], [ 153, 154 ], [ 0, 155 ], [ 155, 156 ], [ 155, 157 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.close();\n\n // 角度を求める\n double kakudoA = (double) (0.5 * (H * 60 + M));\n double kakudoB = (double) (6 * M);\n double kakudoC = Math.abs(kakudoA - kakudoB);\n\n double c = 0;\n if (kakudoC == 0) {\n c = Math.abs(A - B);\n } else if (kakudoC == 180) {\n c = A + B;\n } else if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }\n System.out.println(c);\n return;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.close();\n\n // 角度を求める\n double kakudoA = (double) (0.5 * (H * 60 + M));\n double kakudoB = (double) (6 * M);\n double kakudoC = Math.abs(kakudoA - kakudoB);\n\n double c = 0;\n if (kakudoC == 0) {\n c = Math.abs(A - B);\n } else if (kakudoC == 180) {\n c = A + B;\n } else if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }\n System.out.println(c);\n return;\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.close();\n\n // 角度を求める\n double kakudoA = (double) (0.5 * (H * 60 + M));\n double kakudoB = (double) (6 * M);\n double kakudoC = Math.abs(kakudoA - kakudoB);\n\n double c = 0;\n if (kakudoC == 0) {\n c = Math.abs(A - B);\n } else if (kakudoC == 180) {\n c = A + B;\n } else if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }\n System.out.println(c);\n return;\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.close();\n\n // 角度を求める\n double kakudoA = (double) (0.5 * (H * 60 + M));\n double kakudoB = (double) (6 * M);\n double kakudoC = Math.abs(kakudoA - kakudoB);\n\n double c = 0;\n if (kakudoC == 0) {\n c = Math.abs(A - B);\n } else if (kakudoC == 180) {\n c = A + B;\n } else if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }\n System.out.println(c);\n return;\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "double kakudoA = (double) (0.5 * (H * 60 + M));", "kakudoA", "(double) (0.5 * (H * 60 + M))", "0.5", "(H * 60 + M)", "H * 60", "H", "60", "M", "double kakudoB = (double) (6 * M);", "kakudoB", "(double) (6 * M)", "6", "M", "double kakudoC = Math.abs(kakudoA - kakudoB);", "kakudoC", "Math.abs(kakudoA - kakudoB)", "Math.abs", "Math", "kakudoA - kakudoB", "kakudoA", "kakudoB", "double c = 0;", "c", "0", "if (kakudoC == 0) {\n c = Math.abs(A - B);\n } else if (kakudoC == 180) {\n c = A + B;\n } else if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }", "kakudoC == 0", "kakudoC", "0", "{\n c = Math.abs(A - B);\n }", "c = Math.abs(A - B)", "c", "Math.abs(A - B)", "Math.abs", "Math", "A - B", "A", "B", "if (kakudoC == 180) {\n c = A + B;\n } else if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }", "kakudoC == 180", "kakudoC", "180", "{\n c = A + B;\n }", "c = A + B", "c", "A + B", "A", "B", "if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }", "kakudoC < 180", "kakudoC", "180", "{\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }", "c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)))", "c", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC))", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(Math.toRadians(kakudoC))", "B", "2 * A * B * Math.cos(Math.toRadians(kakudoC))", "2", "A", "B", "Math.cos(Math.toRadians(kakudoC))", "Math.cos", "Math", "Math.toRadians(kakudoC)", "Math.toRadians", "Math", "kakudoC", "{\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }", "kakudoC = 360 - kakudoC", "kakudoC", "360 - kakudoC", "360", "kakudoC", "c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)))", "c", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC))", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(Math.toRadians(kakudoC))", "B", "2 * A * B * Math.cos(Math.toRadians(kakudoC))", "2", "A", "B", "Math.cos(Math.toRadians(kakudoC))", "Math.cos", "Math", "Math.toRadians(kakudoC)", "Math.toRadians", "Math", "kakudoC", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "return;", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.close();\n\n // 角度を求める\n double kakudoA = (double) (0.5 * (H * 60 + M));\n double kakudoB = (double) (6 * M);\n double kakudoC = Math.abs(kakudoA - kakudoB);\n\n double c = 0;\n if (kakudoC == 0) {\n c = Math.abs(A - B);\n } else if (kakudoC == 180) {\n c = A + B;\n } else if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }\n System.out.println(c);\n return;\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n sc.close();\n\n // 角度を求める\n double kakudoA = (double) (0.5 * (H * 60 + M));\n double kakudoB = (double) (6 * M);\n double kakudoC = Math.abs(kakudoA - kakudoB);\n\n double c = 0;\n if (kakudoC == 0) {\n c = Math.abs(A - B);\n } else if (kakudoC == 180) {\n c = A + B;\n } else if (kakudoC < 180) {\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n } else {\n kakudoC = 360 - kakudoC;\n c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC)));\n }\n System.out.println(c);\n return;\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); sc.close(); // 角度を求める double kakudoA = (double) (0.5 * (H * 60 + M)); double kakudoB = (double) (6 * M); double kakudoC = Math.abs(kakudoA - kakudoB); double c = 0; if (kakudoC == 0) { c = Math.abs(A - B); } else if (kakudoC == 180) { c = A + B; } else if (kakudoC < 180) { c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC))); } else { kakudoC = 360 - kakudoC; c = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.toRadians(kakudoC))); } System.out.println(c); return; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 4, 18, 13, 2, 2, 2, 2, 13, 17, 13, 17, 2, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 119, 5 ], [ 119, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 41, 47 ], [ 40, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 51, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 67, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 80, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 8, 113 ], [ 113, 114 ], [ 114, 115 ], [ 6, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n double a = scn.nextInt();\n double b = scn.nextInt();\n double h = scn.nextInt();\n double m = scn.nextInt();\n\n double ans = 0;\n double r = Math.abs(((((h * 60) + m) / 2) - (m * 6)));\n\n if ( r == 0) {\n System.out.println(Math.abs(a - b));\n } else if (r == 180) {\n System.out.println(a + b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }\n\n scn.close();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n double a = scn.nextInt();\n double b = scn.nextInt();\n double h = scn.nextInt();\n double m = scn.nextInt();\n\n double ans = 0;\n double r = Math.abs(((((h * 60) + m) / 2) - (m * 6)));\n\n if ( r == 0) {\n System.out.println(Math.abs(a - b));\n } else if (r == 180) {\n System.out.println(a + b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }\n\n scn.close();\n }\n}", "Main", "public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n double a = scn.nextInt();\n double b = scn.nextInt();\n double h = scn.nextInt();\n double m = scn.nextInt();\n\n double ans = 0;\n double r = Math.abs(((((h * 60) + m) / 2) - (m * 6)));\n\n if ( r == 0) {\n System.out.println(Math.abs(a - b));\n } else if (r == 180) {\n System.out.println(a + b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }\n\n scn.close();\n }", "main", "{\n Scanner scn = new Scanner(System.in);\n double a = scn.nextInt();\n double b = scn.nextInt();\n double h = scn.nextInt();\n double m = scn.nextInt();\n\n double ans = 0;\n double r = Math.abs(((((h * 60) + m) / 2) - (m * 6)));\n\n if ( r == 0) {\n System.out.println(Math.abs(a - b));\n } else if (r == 180) {\n System.out.println(a + b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }\n\n scn.close();\n }", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "double a = scn.nextInt();", "a", "scn.nextInt()", "scn.nextInt", "scn", "double b = scn.nextInt();", "b", "scn.nextInt()", "scn.nextInt", "scn", "double h = scn.nextInt();", "h", "scn.nextInt()", "scn.nextInt", "scn", "double m = scn.nextInt();", "m", "scn.nextInt()", "scn.nextInt", "scn", "double ans = 0;", "ans", "0", "double r = Math.abs(((((h * 60) + m) / 2) - (m * 6)));", "r", "Math.abs(((((h * 60) + m) / 2) - (m * 6)))", "Math.abs", "Math", "((((h * 60) + m) / 2) - (m * 6))", "(((h * 60) + m) / 2)", "((h * 60) + m)", "(h * 60)", "h", "60", "m", "2", "(m * 6)", "m", "6", "if ( r == 0) {\n System.out.println(Math.abs(a - b));\n } else if (r == 180) {\n System.out.println(a + b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }", "r == 0", "r", "0", "{\n System.out.println(Math.abs(a - b));\n }", "System.out.println(Math.abs(a - b))", "System.out.println", "System.out", "System", "System.out", "Math.abs(a - b)", "Math.abs", "Math", "a - b", "a", "b", "if (r == 180) {\n System.out.println(a + b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }", "r == 180", "r", "180", "{\n System.out.println(a + b);\n }", "System.out.println(a + b)", "System.out.println", "System.out", "System", "System.out", "a + b", "a", "b", "{\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }", "ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))))", "ans", "Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))))", "Math.sqrt", "Math", "(a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r)))", "(a * a) + (b * b)", "(a * a)", "a", "a", "(b * b)", "b", "b", "(2 * a * b * Math.cos(Math.toRadians(r)))", "b", "2 * a * b * Math.cos(Math.toRadians(r))", "2", "a", "b", "Math.cos(Math.toRadians(r))", "Math.cos", "Math", "Math.toRadians(r)", "Math.toRadians", "Math", "r", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "scn.close()", "scn.close", "scn", "String args[]", "args", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n double a = scn.nextInt();\n double b = scn.nextInt();\n double h = scn.nextInt();\n double m = scn.nextInt();\n\n double ans = 0;\n double r = Math.abs(((((h * 60) + m) / 2) - (m * 6)));\n\n if ( r == 0) {\n System.out.println(Math.abs(a - b));\n } else if (r == 180) {\n System.out.println(a + b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }\n\n scn.close();\n }\n}", "public class Main {\n public static void main(String args[]) {\n Scanner scn = new Scanner(System.in);\n double a = scn.nextInt();\n double b = scn.nextInt();\n double h = scn.nextInt();\n double m = scn.nextInt();\n\n double ans = 0;\n double r = Math.abs(((((h * 60) + m) / 2) - (m * 6)));\n\n if ( r == 0) {\n System.out.println(Math.abs(a - b));\n } else if (r == 180) {\n System.out.println(a + b);\n } else {\n ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r))));\n System.out.println(ans);\n }\n\n scn.close();\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner scn = new Scanner(System.in); double a = scn.nextInt(); double b = scn.nextInt(); double h = scn.nextInt(); double m = scn.nextInt(); double ans = 0; double r = Math.abs(((((h * 60) + m) / 2) - (m * 6))); if ( r == 0) { System.out.println(Math.abs(a - b)); } else if (r == 180) { System.out.println(a + b); } else { ans = Math.sqrt((a * a) + (b * b) - (2 * a * b * Math.cos(Math.toRadians(r)))); System.out.println(ans); } scn.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 17, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 2, 17, 17, 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, 2, 2, 2, 18, 13, 13, 13, 17, 2, 2, 2, 18, 13, 13, 13, 17, 17, 41, 13, 2, 2, 18, 13, 13, 13, 17, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 145, 5 ], [ 145, 6 ], [ 6, 7 ], [ 6, 8 ], [ 145, 9 ], [ 9, 10 ], [ 9, 11 ], [ 145, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 145, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 145, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 145, 27 ], [ 27, 28 ], [ 27, 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 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 29, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 53, 59 ], [ 52, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 61, 67 ], [ 61, 68 ], [ 29, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 71, 77 ], [ 29, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 29, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 29, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 29, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 29, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 120, 122 ], [ 115, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 127, 129 ], [ 29, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 145, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 136, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 1000000007;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\n\tvoid doIt() {\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble argA = Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0;\n\t\tdouble argB = Math.PI * (double)M / 30.0;\n\t\tdouble Ax = A * Math.cos(argA);\n\t\tdouble Ay = A * Math.sin(argA);\n\t\tdouble Bx = B * Math.cos(argB);\n\t\tdouble By = B * Math.sin(argB);\n\t\tdouble ans = Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By));\n\t\tSystem.out.println(ans);\n\t}\n\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 1000000007;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\n\tvoid doIt() {\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble argA = Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0;\n\t\tdouble argB = Math.PI * (double)M / 30.0;\n\t\tdouble Ax = A * Math.cos(argA);\n\t\tdouble Ay = A * Math.sin(argA);\n\t\tdouble Bx = B * Math.cos(argB);\n\t\tdouble By = B * Math.sin(argB);\n\t\tdouble ans = Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By));\n\t\tSystem.out.println(ans);\n\t}\n\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final int MOD = 1000000007;", "MOD", "1000000007", "final int MAX = Integer.MAX_VALUE;", "MAX", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "final long LMAX = Long.MAX_VALUE;", "LMAX", "Long.MAX_VALUE", "Long", "Long.MAX_VALUE", "int len = (int)1e6 + 1;", "len", "(int)1e6 + 1", "(int)1e6", "1", "void doIt() {\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble argA = Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0;\n\t\tdouble argB = Math.PI * (double)M / 30.0;\n\t\tdouble Ax = A * Math.cos(argA);\n\t\tdouble Ay = A * Math.sin(argA);\n\t\tdouble Bx = B * Math.cos(argB);\n\t\tdouble By = B * Math.sin(argB);\n\t\tdouble ans = Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By));\n\t\tSystem.out.println(ans);\n\t}", "doIt", "{\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble argA = Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0;\n\t\tdouble argB = Math.PI * (double)M / 30.0;\n\t\tdouble Ax = A * Math.cos(argA);\n\t\tdouble Ay = A * Math.sin(argA);\n\t\tdouble Bx = B * Math.cos(argB);\n\t\tdouble By = B * Math.sin(argB);\n\t\tdouble ans = Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By));\n\t\tSystem.out.println(ans);\n\t}", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double argA = Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0;", "argA", "Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0", "Math.PI * (double)H / 6.0", "Math.PI * (double)H", "Math.PI", "Math", "Math.PI", "(double)H", "6.0", "Math.PI * (double)M / 6.0 / 60.0", "Math.PI * (double)M / 6.0 / 60.0", "Math.PI * (double)M", "Math.PI", "Math", "Math.PI", "(double)M", "6.0", "60.0", "double argB = Math.PI * (double)M / 30.0;", "argB", "Math.PI * (double)M / 30.0", "Math.PI * (double)M", "Math.PI", "Math", "Math.PI", "(double)M", "30.0", "double Ax = A * Math.cos(argA);", "Ax", "A * Math.cos(argA)", "A", "Math.cos(argA)", "Math.cos", "Math", "argA", "double Ay = A * Math.sin(argA);", "Ay", "A * Math.sin(argA)", "A", "Math.sin(argA)", "Math.sin", "Math", "argA", "double Bx = B * Math.cos(argB);", "Bx", "B * Math.cos(argB)", "B", "Math.cos(argB)", "Math.cos", "Math", "argB", "double By = B * Math.sin(argB);", "By", "B * Math.sin(argB)", "B", "Math.sin(argB)", "Math.sin", "Math", "argB", "double ans = Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By));", "ans", "Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By))", "Math.sqrt", "Math", "(Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By)", "(Ax - Bx) * (Ax - Bx)", "(Ax - Bx)", "Ax", "Bx", "(Ax - Bx)", "Ax", "Bx", "(Ay - By) * (Ay - By)", "(Ay - By)", "Ay", "By", "(Ay - By)", "Ay", "By", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "public static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}", "main", "{\n\t\tnew Main().doIt();\n\t}", "new Main().doIt()", "new Main().doIt", "new Main()", "String[] args", "args", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 1000000007;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\n\tvoid doIt() {\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble argA = Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0;\n\t\tdouble argB = Math.PI * (double)M / 30.0;\n\t\tdouble Ax = A * Math.cos(argA);\n\t\tdouble Ay = A * Math.sin(argA);\n\t\tdouble Bx = B * Math.cos(argB);\n\t\tdouble By = B * Math.sin(argB);\n\t\tdouble ans = Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By));\n\t\tSystem.out.println(ans);\n\t}\n\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}", "public class Main {\n\tScanner sc = new Scanner(System.in);\n\tfinal int MOD = 1000000007;\n\tfinal int MAX = Integer.MAX_VALUE;\n\tfinal long LMAX = Long.MAX_VALUE;\n\tint len = (int)1e6 + 1;\n\n\tvoid doIt() {\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\t\tdouble argA = Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0;\n\t\tdouble argB = Math.PI * (double)M / 30.0;\n\t\tdouble Ax = A * Math.cos(argA);\n\t\tdouble Ay = A * Math.sin(argA);\n\t\tdouble Bx = B * Math.cos(argB);\n\t\tdouble By = B * Math.sin(argB);\n\t\tdouble ans = Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By));\n\t\tSystem.out.println(ans);\n\t}\n\n\t\n\t\n\tpublic static void main(String[] args) {\n\t\tnew Main().doIt();\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { Scanner sc = new Scanner(System.in); final int MOD = 1000000007; final int MAX = Integer.MAX_VALUE; final long LMAX = Long.MAX_VALUE; int len = (int)1e6 + 1; void doIt() { int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); double argA = Math.PI * (double)H / 6.0 + Math.PI * (double)M / 6.0 / 60.0; double argB = Math.PI * (double)M / 30.0; double Ax = A * Math.cos(argA); double Ay = A * Math.sin(argA); double Bx = B * Math.cos(argB); double By = B * Math.sin(argB); double ans = Math.sqrt((Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By)); System.out.println(ans); } public static void main(String[] args) { new Main().doIt(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 17, 17, 41, 13, 2, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 2, 2, 13, 17, 2, 2, 13, 17, 17, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 17, 18, 13, 13, 13, 17, 41, 13, 2, 13, 4, 18, 13, 2, 2, 2, 17, 18, 13, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 137, 8 ], [ 137, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 43, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 53, 53 ], [ 53, 54 ], [ 53, 55 ], [ 53, 56 ], [ 11, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 65, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 75, 75 ], [ 75, 76 ], [ 75, 77 ], [ 75, 78 ], [ 11, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 88, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 86, 94 ], [ 11, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 104, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 102, 110 ], [ 11, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 119, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 131, 133 ], [ 9, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint a = in.nextInt();\n\t\tint b = in.nextInt();\n\t\tint h = in.nextInt();\n\t\tint m = in.nextInt();\n\n\t\tdouble x1 = (double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\t\tdouble y1 = (double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\n\t\tdouble x2 = (double)b * Math.sin(2.0*Math.PI*(double)m/60.0);\n\t\tdouble y2 = (double)b * Math.cos(2.0*Math.PI*(double)m/60.0);\n\n\t\tSystem.out.println(Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)));\n\t}\n}\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint a = in.nextInt();\n\t\tint b = in.nextInt();\n\t\tint h = in.nextInt();\n\t\tint m = in.nextInt();\n\n\t\tdouble x1 = (double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\t\tdouble y1 = (double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\n\t\tdouble x2 = (double)b * Math.sin(2.0*Math.PI*(double)m/60.0);\n\t\tdouble y2 = (double)b * Math.cos(2.0*Math.PI*(double)m/60.0);\n\n\t\tSystem.out.println(Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)));\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint a = in.nextInt();\n\t\tint b = in.nextInt();\n\t\tint h = in.nextInt();\n\t\tint m = in.nextInt();\n\n\t\tdouble x1 = (double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\t\tdouble y1 = (double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\n\t\tdouble x2 = (double)b * Math.sin(2.0*Math.PI*(double)m/60.0);\n\t\tdouble y2 = (double)b * Math.cos(2.0*Math.PI*(double)m/60.0);\n\n\t\tSystem.out.println(Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)));\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint a = in.nextInt();\n\t\tint b = in.nextInt();\n\t\tint h = in.nextInt();\n\t\tint m = in.nextInt();\n\n\t\tdouble x1 = (double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\t\tdouble y1 = (double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\n\t\tdouble x2 = (double)b * Math.sin(2.0*Math.PI*(double)m/60.0);\n\t\tdouble y2 = (double)b * Math.cos(2.0*Math.PI*(double)m/60.0);\n\n\t\tSystem.out.println(Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)));\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int a = in.nextInt();", "a", "in.nextInt()", "in.nextInt", "in", "int b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "int h = in.nextInt();", "h", "in.nextInt()", "in.nextInt", "in", "int m = in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "double x1 = (double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));", "x1", "(double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0))", "(double)a", "Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0))", "Math.sin", "Math", "2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0)", "2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0)", "2.0", "Math.PI", "Math", "Math.PI", "((double)h/12.0 + (double)m/60.0/12.0)", "(double)h/12.0", "(double)h", "12.0", "(double)m/60.0/12.0", "(double)m/60.0/12.0", "(double)m", "60.0", "12.0", "double y1 = (double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));", "y1", "(double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0))", "(double)a", "Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0))", "Math.cos", "Math", "2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0)", "2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0)", "2.0", "Math.PI", "Math", "Math.PI", "((double)h/12.0 + (double)m/60.0/12.0)", "(double)h/12.0", "(double)h", "12.0", "(double)m/60.0/12.0", "(double)m/60.0/12.0", "(double)m", "60.0", "12.0", "double x2 = (double)b * Math.sin(2.0*Math.PI*(double)m/60.0);", "x2", "(double)b * Math.sin(2.0*Math.PI*(double)m/60.0)", "(double)b", "Math.sin(2.0*Math.PI*(double)m/60.0)", "Math.sin", "Math", "2.0*Math.PI*(double)m/60.0", "2.0*Math.PI*(double)m", "2.0*Math.PI*(double)m", "2.0", "Math.PI", "Math", "Math.PI", "(double)m", "60.0", "double y2 = (double)b * Math.cos(2.0*Math.PI*(double)m/60.0);", "y2", "(double)b * Math.cos(2.0*Math.PI*(double)m/60.0)", "(double)b", "Math.cos(2.0*Math.PI*(double)m/60.0)", "Math.cos", "Math", "2.0*Math.PI*(double)m/60.0", "2.0*Math.PI*(double)m", "2.0*Math.PI*(double)m", "2.0", "Math.PI", "Math", "Math.PI", "(double)m", "60.0", "System.out.println(Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1))", "Math.sqrt", "Math", "(x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)", "(x2-x1)*(x2-x1)", "(x2-x1)", "x2", "x1", "(x2-x1)", "x2", "x1", "(y2-y1)*(y2-y1)", "(y2-y1)", "y2", "y1", "(y2-y1)", "y2", "y1", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint a = in.nextInt();\n\t\tint b = in.nextInt();\n\t\tint h = in.nextInt();\n\t\tint m = in.nextInt();\n\n\t\tdouble x1 = (double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\t\tdouble y1 = (double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\n\t\tdouble x2 = (double)b * Math.sin(2.0*Math.PI*(double)m/60.0);\n\t\tdouble y2 = (double)b * Math.cos(2.0*Math.PI*(double)m/60.0);\n\n\t\tSystem.out.println(Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)));\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint a = in.nextInt();\n\t\tint b = in.nextInt();\n\t\tint h = in.nextInt();\n\t\tint m = in.nextInt();\n\n\t\tdouble x1 = (double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\t\tdouble y1 = (double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0));\n\n\t\tdouble x2 = (double)b * Math.sin(2.0*Math.PI*(double)m/60.0);\n\t\tdouble y2 = (double)b * Math.cos(2.0*Math.PI*(double)m/60.0);\n\n\t\tSystem.out.println(Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)));\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); int h = in.nextInt(); int m = in.nextInt(); double x1 = (double)a * Math.sin(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0)); double y1 = (double)a * Math.cos(2.0*Math.PI*((double)h/12.0 + (double)m/60.0/12.0)); double x2 = (double)b * Math.sin(2.0*Math.PI*(double)m/60.0); double y2 = (double)b * Math.cos(2.0*Math.PI*(double)m/60.0); System.out.println(Math.sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1))); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 41, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 8, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 8, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 76, 78 ], [ 80, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 8, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 8, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 8, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 8, 116 ], [ 116, 117 ], [ 117, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\n\n//\tfinal int MOD = 1000000007;\n\n//\tpublic static int min = 3000000;\n\n\tpublic static void main(String[] args) {\n\n\t\tdouble ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\n//\t\tString s = sc.next();\n\n//\t\tlong k = sc.nextLong();\n\n//\t\tint[] a = new int[n];\n//\t\tfor (int i = 0; i < n; i++) {\n//\t\t\ta[i] = sc.nextInt();\n//\t\t}\n\n//\t\tString s = sc.next();\n\n//\t\tint[] ans = new int[n];\n\n//\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(h == m && h == 0) {\n//\t\t\tans = 0;\n//\t\t} else {\n\t\t\tdouble ak = (30 * h) + (0.5 * m);\n\t\t\tdouble bk = 6 * m;\n\t\t\tdouble kakudo = Math.abs(ak - bk);\n\t\t\tSystem.err.println(kakudo);\n\t\t\tak = a * a;\n\t\t\tbk = b * b;\n\t\t\tdouble tmp = 2 * a * b * Math.cos(Math.toRadians(kakudo));\n\t\t\tans = ak + bk - tmp;\n\t\t\tSystem.err.println(tmp);\n\t\t\tans = Math.sqrt(ans);\n//\t\t}\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(!f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\n//\tfinal int MOD = 1000000007;\n\n//\tpublic static int min = 3000000;\n\n\tpublic static void main(String[] args) {\n\n\t\tdouble ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\n//\t\tString s = sc.next();\n\n//\t\tlong k = sc.nextLong();\n\n//\t\tint[] a = new int[n];\n//\t\tfor (int i = 0; i < n; i++) {\n//\t\t\ta[i] = sc.nextInt();\n//\t\t}\n\n//\t\tString s = sc.next();\n\n//\t\tint[] ans = new int[n];\n\n//\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(h == m && h == 0) {\n//\t\t\tans = 0;\n//\t\t} else {\n\t\t\tdouble ak = (30 * h) + (0.5 * m);\n\t\t\tdouble bk = 6 * m;\n\t\t\tdouble kakudo = Math.abs(ak - bk);\n\t\t\tSystem.err.println(kakudo);\n\t\t\tak = a * a;\n\t\t\tbk = b * b;\n\t\t\tdouble tmp = 2 * a * b * Math.cos(Math.toRadians(kakudo));\n\t\t\tans = ak + bk - tmp;\n\t\t\tSystem.err.println(tmp);\n\t\t\tans = Math.sqrt(ans);\n//\t\t}\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(!f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tdouble ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\n//\t\tString s = sc.next();\n\n//\t\tlong k = sc.nextLong();\n\n//\t\tint[] a = new int[n];\n//\t\tfor (int i = 0; i < n; i++) {\n//\t\t\ta[i] = sc.nextInt();\n//\t\t}\n\n//\t\tString s = sc.next();\n\n//\t\tint[] ans = new int[n];\n\n//\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(h == m && h == 0) {\n//\t\t\tans = 0;\n//\t\t} else {\n\t\t\tdouble ak = (30 * h) + (0.5 * m);\n\t\t\tdouble bk = 6 * m;\n\t\t\tdouble kakudo = Math.abs(ak - bk);\n\t\t\tSystem.err.println(kakudo);\n\t\t\tak = a * a;\n\t\t\tbk = b * b;\n\t\t\tdouble tmp = 2 * a * b * Math.cos(Math.toRadians(kakudo));\n\t\t\tans = ak + bk - tmp;\n\t\t\tSystem.err.println(tmp);\n\t\t\tans = Math.sqrt(ans);\n//\t\t}\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(!f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}", "main", "{\n\n\t\tdouble ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\n//\t\tString s = sc.next();\n\n//\t\tlong k = sc.nextLong();\n\n//\t\tint[] a = new int[n];\n//\t\tfor (int i = 0; i < n; i++) {\n//\t\t\ta[i] = sc.nextInt();\n//\t\t}\n\n//\t\tString s = sc.next();\n\n//\t\tint[] ans = new int[n];\n\n//\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(h == m && h == 0) {\n//\t\t\tans = 0;\n//\t\t} else {\n\t\t\tdouble ak = (30 * h) + (0.5 * m);\n\t\t\tdouble bk = 6 * m;\n\t\t\tdouble kakudo = Math.abs(ak - bk);\n\t\t\tSystem.err.println(kakudo);\n\t\t\tak = a * a;\n\t\t\tbk = b * b;\n\t\t\tdouble tmp = 2 * a * b * Math.cos(Math.toRadians(kakudo));\n\t\t\tans = ak + bk - tmp;\n\t\t\tSystem.err.println(tmp);\n\t\t\tans = Math.sqrt(ans);\n//\t\t}\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(!f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}", "double ans = 0;", "ans", "0", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "boolean f = false;", "f", "false", "double a = sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b = sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "double h = sc.nextDouble();", "h", "sc.nextDouble()", "sc.nextDouble", "sc", "double m = sc.nextDouble();", "m", "sc.nextDouble()", "sc.nextDouble", "sc", "double ak = (30 * h) + (0.5 * m);", "ak", "(30 * h) + (0.5 * m)", "(30 * h)", "30", "h", "(0.5 * m)", "0.5", "m", "double bk = 6 * m;", "bk", "6 * m", "6", "m", "double kakudo = Math.abs(ak - bk);", "kakudo", "Math.abs(ak - bk)", "Math.abs", "Math", "ak - bk", "ak", "bk", "System.err.println(kakudo)", "System.err.println", "System.err", "System", "System.err", "kakudo", "ak = a * a", "ak", "a * a", "a", "a", "bk = b * b", "bk", "b * b", "b", "b", "double tmp = 2 * a * b * Math.cos(Math.toRadians(kakudo));", "tmp", "2 * a * b * Math.cos(Math.toRadians(kakudo))", "b", "2 * a * b * Math.cos(Math.toRadians(kakudo))", "2", "a", "b", "Math.cos(Math.toRadians(kakudo))", "Math.cos", "Math", "Math.toRadians(kakudo)", "Math.toRadians", "Math", "kakudo", "ans = ak + bk - tmp", "ans", "ak + bk - tmp", "ak + bk", "ak", "bk", "tmp", "System.err.println(tmp)", "System.err.println", "System.err", "System", "System.err", "tmp", "ans = Math.sqrt(ans)", "ans", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\n//\tfinal int MOD = 1000000007;\n\n//\tpublic static int min = 3000000;\n\n\tpublic static void main(String[] args) {\n\n\t\tdouble ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\n//\t\tString s = sc.next();\n\n//\t\tlong k = sc.nextLong();\n\n//\t\tint[] a = new int[n];\n//\t\tfor (int i = 0; i < n; i++) {\n//\t\t\ta[i] = sc.nextInt();\n//\t\t}\n\n//\t\tString s = sc.next();\n\n//\t\tint[] ans = new int[n];\n\n//\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(h == m && h == 0) {\n//\t\t\tans = 0;\n//\t\t} else {\n\t\t\tdouble ak = (30 * h) + (0.5 * m);\n\t\t\tdouble bk = 6 * m;\n\t\t\tdouble kakudo = Math.abs(ak - bk);\n\t\t\tSystem.err.println(kakudo);\n\t\t\tak = a * a;\n\t\t\tbk = b * b;\n\t\t\tdouble tmp = 2 * a * b * Math.cos(Math.toRadians(kakudo));\n\t\t\tans = ak + bk - tmp;\n\t\t\tSystem.err.println(tmp);\n\t\t\tans = Math.sqrt(ans);\n//\t\t}\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(!f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}", "public class Main {\n\n\n//\tfinal int MOD = 1000000007;\n\n//\tpublic static int min = 3000000;\n\n\tpublic static void main(String[] args) {\n\n\t\tdouble ans = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean f = false;\n\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\n//\t\tString s = sc.next();\n\n//\t\tlong k = sc.nextLong();\n\n//\t\tint[] a = new int[n];\n//\t\tfor (int i = 0; i < n; i++) {\n//\t\t\ta[i] = sc.nextInt();\n//\t\t}\n\n//\t\tString s = sc.next();\n\n//\t\tint[] ans = new int[n];\n\n//\t\tArrayList<Integer> list = new ArrayList<>();\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(h == m && h == 0) {\n//\t\t\tans = 0;\n//\t\t} else {\n\t\t\tdouble ak = (30 * h) + (0.5 * m);\n\t\t\tdouble bk = 6 * m;\n\t\t\tdouble kakudo = Math.abs(ak - bk);\n\t\t\tSystem.err.println(kakudo);\n\t\t\tak = a * a;\n\t\t\tbk = b * b;\n\t\t\tdouble tmp = 2 * a * b * Math.cos(Math.toRadians(kakudo));\n\t\t\tans = ak + bk - tmp;\n\t\t\tSystem.err.println(tmp);\n\t\t\tans = Math.sqrt(ans);\n//\t\t}\n\n\t\t//-------------------------------------------------------------------------------------\n\n//\t\tif(!f) {\n//\t\t\tSystem.out.println(\"Yes\");\n//\t\t} else {\n//\t\t\tSystem.out.println(\"No\");\n//\t\t}\n\n\t\tSystem.out.println(ans);\n\n\t\tsc.close();\n\t}\n\n\n\n}", "Main" ]
import java.util.Scanner; public class Main { // final int MOD = 1000000007; // public static int min = 3000000; public static void main(String[] args) { double ans = 0; Scanner sc = new Scanner(System.in); boolean f = false; double a = sc.nextDouble(); double b = sc.nextDouble(); double h = sc.nextDouble(); double m = sc.nextDouble(); // String s = sc.next(); // long k = sc.nextLong(); // int[] a = new int[n]; // for (int i = 0; i < n; i++) { // a[i] = sc.nextInt(); // } // String s = sc.next(); // int[] ans = new int[n]; // ArrayList<Integer> list = new ArrayList<>(); //------------------------------------------------------------------------------------- // if(h == m && h == 0) { // ans = 0; // } else { double ak = (30 * h) + (0.5 * m); double bk = 6 * m; double kakudo = Math.abs(ak - bk); System.err.println(kakudo); ak = a * a; bk = b * b; double tmp = 2 * a * b * Math.cos(Math.toRadians(kakudo)); ans = ak + bk - tmp; System.err.println(tmp); ans = Math.sqrt(ans); // } //------------------------------------------------------------------------------------- // if(!f) { // System.out.println("Yes"); // } else { // System.out.println("No"); // } System.out.println(ans); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 2, 13, 13, 0, 13, 17, 0, 13, 18, 13, 13, 41, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 123, 5 ], [ 123, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 76, 78 ], [ 8, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 88, 92 ], [ 87, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 93, 97 ], [ 86, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 8, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 8, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 6, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n h *= 30;\n m *= 6;\n h += m / 12;\n if(m == 0)\n {\n m = 360.0;\n }\n if(h == 0)\n {\n h = 360.0;\n }\n double angle = Math.min(Math.abs(h - m), Math.abs(m - h));\n angle /= 180;\n angle *= Math.PI;\n double hyp = Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle));\n hyp = Math.sqrt(hyp);\n System.out.println(hyp);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n h *= 30;\n m *= 6;\n h += m / 12;\n if(m == 0)\n {\n m = 360.0;\n }\n if(h == 0)\n {\n h = 360.0;\n }\n double angle = Math.min(Math.abs(h - m), Math.abs(m - h));\n angle /= 180;\n angle *= Math.PI;\n double hyp = Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle));\n hyp = Math.sqrt(hyp);\n System.out.println(hyp);\n }\n}", "Main", "public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n h *= 30;\n m *= 6;\n h += m / 12;\n if(m == 0)\n {\n m = 360.0;\n }\n if(h == 0)\n {\n h = 360.0;\n }\n double angle = Math.min(Math.abs(h - m), Math.abs(m - h));\n angle /= 180;\n angle *= Math.PI;\n double hyp = Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle));\n hyp = Math.sqrt(hyp);\n System.out.println(hyp);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n h *= 30;\n m *= 6;\n h += m / 12;\n if(m == 0)\n {\n m = 360.0;\n }\n if(h == 0)\n {\n h = 360.0;\n }\n double angle = Math.min(Math.abs(h - m), Math.abs(m - h));\n angle /= 180;\n angle *= Math.PI;\n double hyp = Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle));\n hyp = Math.sqrt(hyp);\n System.out.println(hyp);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "double a = in.nextDouble();", "a", "in.nextDouble()", "in.nextDouble", "in", "double b = in.nextDouble();", "b", "in.nextDouble()", "in.nextDouble", "in", "double h = in.nextDouble();", "h", "in.nextDouble()", "in.nextDouble", "in", "double m = in.nextDouble();", "m", "in.nextDouble()", "in.nextDouble", "in", "h *= 30", "h", "30", "m *= 6", "m", "6", "h += m / 12", "h", "m / 12", "m", "12", "if(m == 0)\n {\n m = 360.0;\n }", "m == 0", "m", "0", "{\n m = 360.0;\n }", "m = 360.0", "m", "360.0", "if(h == 0)\n {\n h = 360.0;\n }", "h == 0", "h", "0", "{\n h = 360.0;\n }", "h = 360.0", "h", "360.0", "double angle = Math.min(Math.abs(h - m), Math.abs(m - h));", "angle", "Math.min(Math.abs(h - m), Math.abs(m - h))", "Math.min", "Math", "Math.abs(h - m)", "Math.abs", "Math", "h - m", "h", "m", "Math.abs(m - h)", "Math.abs", "Math", "m - h", "m", "h", "angle /= 180", "angle", "180", "angle *= Math.PI", "angle", "Math.PI", "Math", "Math.PI", "double hyp = Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle));", "hyp", "Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle))", "Math.pow(a, 2) + Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "(2 * a * b * Math.cos(angle))", "b", "2 * a * b * Math.cos(angle)", "2", "a", "b", "Math.cos(angle)", "Math.cos", "Math", "angle", "hyp = Math.sqrt(hyp)", "hyp", "Math.sqrt(hyp)", "Math.sqrt", "Math", "hyp", "System.out.println(hyp)", "System.out.println", "System.out", "System", "System.out", "hyp", "String agrs[]", "agrs", "public class Main {\n public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n h *= 30;\n m *= 6;\n h += m / 12;\n if(m == 0)\n {\n m = 360.0;\n }\n if(h == 0)\n {\n h = 360.0;\n }\n double angle = Math.min(Math.abs(h - m), Math.abs(m - h));\n angle /= 180;\n angle *= Math.PI;\n double hyp = Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle));\n hyp = Math.sqrt(hyp);\n System.out.println(hyp);\n }\n}", "public class Main {\n public static void main(String agrs[])\n {\n Scanner in = new Scanner(System.in);\n double a = in.nextDouble();\n double b = in.nextDouble();\n double h = in.nextDouble();\n double m = in.nextDouble();\n h *= 30;\n m *= 6;\n h += m / 12;\n if(m == 0)\n {\n m = 360.0;\n }\n if(h == 0)\n {\n h = 360.0;\n }\n double angle = Math.min(Math.abs(h - m), Math.abs(m - h));\n angle /= 180;\n angle *= Math.PI;\n double hyp = Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle));\n hyp = Math.sqrt(hyp);\n System.out.println(hyp);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String agrs[]) { Scanner in = new Scanner(System.in); double a = in.nextDouble(); double b = in.nextDouble(); double h = in.nextDouble(); double m = in.nextDouble(); h *= 30; m *= 6; h += m / 12; if(m == 0) { m = 360.0; } if(h == 0) { h = 360.0; } double angle = Math.min(Math.abs(h - m), Math.abs(m - h)); angle /= 180; angle *= Math.PI; double hyp = Math.pow(a, 2) + Math.pow(b, 2) - (2 * a * b * Math.cos(angle)); hyp = Math.sqrt(hyp); System.out.println(hyp); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 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, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 29, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 13, 2, 18, 13, 13, 17, 4, 13, 17, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 4, 18, 18, 13, 13, 2, 17, 2, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 301, 8 ], [ 301, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 11, 13 ], [ 301, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 16, 18 ], [ 301, 19 ], [ 19, 20 ], [ 19, 21 ], [ 301, 22 ], [ 22, 23 ], [ 22, 24 ], [ 301, 25 ], [ 25, 26 ], [ 25, 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 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 27, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 27, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 27, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 69, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 27, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 27, 86 ], [ 86, 87 ], [ 87, 88 ], [ 27, 89 ], [ 89, 90 ], [ 90, 91 ], [ 25, 92 ], [ 92, 93 ], [ 301, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 101, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 96, 121 ], [ 121, 122 ], [ 94, 123 ], [ 123, 124 ], [ 301, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 132, 140 ], [ 140, 141 ], [ 141, 142 ], [ 132, 143 ], [ 144, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 127, 152 ], [ 152, 153 ], [ 125, 154 ], [ 154, 155 ], [ 301, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 156, 163 ], [ 163, 164 ], [ 301, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 165, 172 ], [ 172, 173 ], [ 301, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 184, 186 ], [ 177, 187 ], [ 187, 188 ], [ 188, 189 ], [ 177, 190 ], [ 191, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 194, 198 ], [ 176, 199 ], [ 199, 200 ], [ 199, 201 ], [ 174, 202 ], [ 202, 203 ], [ 301, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 206, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 214, 216 ], [ 206, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 217, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 224, 226 ], [ 204, 227 ], [ 227, 228 ], [ 0, 229 ], [ 229, 230 ], [ 229, 231 ], [ 231, 232 ], [ 229, 233 ], [ 233, 234 ], [ 229, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 241 ], [ 241, 242 ], [ 241, 243 ], [ 229, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 247, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 246, 256 ], [ 256, 257 ], [ 257, 258 ], [ 258, 259 ], [ 229, 260 ], [ 260, 261 ], [ 260, 262 ], [ 262, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 267, 268 ], [ 229, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 273, 276 ], [ 276, 277 ], [ 229, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 282, 285 ], [ 285, 286 ], [ 229, 287 ], [ 287, 288 ], [ 287, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 229, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 0, 300 ], [ 300, 301 ], [ 300, 302 ] ]
[ "// created on : Tue Jun 23 2020\n \nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n int a = in.nextInt();\n int b = in.nextInt();\n int h = in.nextInt();\n int m = in.nextInt();\n\n double angle = 30*h - 5.5*m; // degrees\n\n // a^2 = b^2 + c^2 + 2bc cos(angle between b and c)\n double ans = a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle)));\n println(Math.sqrt(ans));\n\n in.close();\n out.close();\n }\n\n static int MIN = Integer.MIN_VALUE;\n static int MAX = Integer.MAX_VALUE;\n static Reader in = new Reader();\n static PrintWriter out = new PrintWriter(System.out);\n\n static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }\n \n static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }\n \n static void print(Object O) { \n \tout.print(O); \n }\n \n static void println(Object O) { \n \tout.println(O); \n }\n \n static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }\n \n static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }\n}\n\nclass Reader {\n BufferedReader reader;\n StringTokenizer tokenizer;\n\n Reader() {\n reader = new BufferedReader(new InputStreamReader(System.in));\n tokenizer = new StringTokenizer(\"\");\n }\n\n String next() throws IOException {\n while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }\n return tokenizer.nextToken();\n }\n\n int nextInt() throws IOException { \n return Integer.parseInt(next()); \n }\n \n double nextDouble() throws IOException { \n return Double.parseDouble(next());\n }\n \n long nextLong() throws IOException { \n return Long.parseLong(next()); \n }\n \n String nextLine() throws IOException { \n return reader.readLine(); \n }\n \n void close() throws IOException { \n reader.close(); \n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) throws IOException {\n int a = in.nextInt();\n int b = in.nextInt();\n int h = in.nextInt();\n int m = in.nextInt();\n\n double angle = 30*h - 5.5*m; // degrees\n\n // a^2 = b^2 + c^2 + 2bc cos(angle between b and c)\n double ans = a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle)));\n println(Math.sqrt(ans));\n\n in.close();\n out.close();\n }\n\n static int MIN = Integer.MIN_VALUE;\n static int MAX = Integer.MAX_VALUE;\n static Reader in = new Reader();\n static PrintWriter out = new PrintWriter(System.out);\n\n static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }\n \n static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }\n \n static void print(Object O) { \n \tout.print(O); \n }\n \n static void println(Object O) { \n \tout.println(O); \n }\n \n static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }\n \n static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }\n}", "Main", "static int MIN = Integer.MIN_VALUE;", "MIN", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "static int MAX = Integer.MAX_VALUE;", "MAX", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "static Reader in = new Reader();", "in", "new Reader()", "static PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "public static void main(String[] args) throws IOException {\n int a = in.nextInt();\n int b = in.nextInt();\n int h = in.nextInt();\n int m = in.nextInt();\n\n double angle = 30*h - 5.5*m; // degrees\n\n // a^2 = b^2 + c^2 + 2bc cos(angle between b and c)\n double ans = a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle)));\n println(Math.sqrt(ans));\n\n in.close();\n out.close();\n }", "main", "{\n int a = in.nextInt();\n int b = in.nextInt();\n int h = in.nextInt();\n int m = in.nextInt();\n\n double angle = 30*h - 5.5*m; // degrees\n\n // a^2 = b^2 + c^2 + 2bc cos(angle between b and c)\n double ans = a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle)));\n println(Math.sqrt(ans));\n\n in.close();\n out.close();\n }", "int a = in.nextInt();", "a", "in.nextInt()", "in.nextInt", "in", "int b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "int h = in.nextInt();", "h", "in.nextInt()", "in.nextInt", "in", "int m = in.nextInt();", "m", "in.nextInt()", "in.nextInt", "in", "double angle = 30*h - 5.5*m;", "angle", "30*h - 5.5*m", "30*h", "30", "h", "5.5*m", "5.5", "m", "double ans = a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle)));", "ans", "a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle)))", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * (Math.cos(Math.toRadians(angle)))", "b", "2 * a * b * (Math.cos(Math.toRadians(angle)))", "2", "a", "b", "(Math.cos(Math.toRadians(angle)))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "println(Math.sqrt(ans))", "println", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "in.close()", "in.close", "in", "out.close()", "out.close", "out", "String[] args", "args", "static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }", "readInt", "{ \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }", "int arr[] = new int[N];", "arr", "new int[N]", "N", "for(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{ \n \t\tarr[i] = in.nextInt(); \n \t}", "{ \n \t\tarr[i] = in.nextInt(); \n \t}", "arr[i] = in.nextInt()", "arr[i]", "arr", "i", "in.nextInt()", "in.nextInt", "in", "return arr;", "arr", "int N", "N", "static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }", "readLong", "{ \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }", "long arr[] = new long[N];", "arr", "new long[N]", "N", "for(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{ \n \t\tarr[i] = in.nextLong(); \n \t}", "{ \n \t\tarr[i] = in.nextLong(); \n \t}", "arr[i] = in.nextLong()", "arr[i]", "arr", "i", "in.nextLong()", "in.nextLong", "in", "return arr;", "arr", "int N", "N", "static void print(Object O) { \n \tout.print(O); \n }", "print", "{ \n \tout.print(O); \n }", "out.print(O)", "out.print", "out", "O", "Object O", "O", "static void println(Object O) { \n \tout.println(O); \n }", "println", "{ \n \tout.println(O); \n }", "out.println(O)", "out.println", "out", "O", "Object O", "O", "static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }", "println", "{ \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }", "for(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{ \n \t\tprint(arr[i] + \" \"); \n \t}", "{ \n \t\tprint(arr[i] + \" \"); \n \t}", "print(arr[i] + \" \")", "print", "arr[i] + \" \"", "arr[i]", "arr", "i", "\" \"", "println(\"\")", "println", "\"\"", "int arr[]", "arr", "static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }", "displayRuntime", "{\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }", "long stopTime = System.currentTimeMillis();", "stopTime", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "long elapsedTime = stopTime - startTime;", "elapsedTime", "stopTime - startTime", "stopTime", "startTime", "System.out.println(\"Runtime: \" + elapsedTime / 1000D)", "System.out.println", "System.out", "System", "System.out", "\"Runtime: \" + elapsedTime / 1000D", "\"Runtime: \"", "elapsedTime / 1000D", "elapsedTime", "1000D", "long startTime", "startTime", "class Reader {\n BufferedReader reader;\n StringTokenizer tokenizer;\n\n Reader() {\n reader = new BufferedReader(new InputStreamReader(System.in));\n tokenizer = new StringTokenizer(\"\");\n }\n\n String next() throws IOException {\n while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }\n return tokenizer.nextToken();\n }\n\n int nextInt() throws IOException { \n return Integer.parseInt(next()); \n }\n \n double nextDouble() throws IOException { \n return Double.parseDouble(next());\n }\n \n long nextLong() throws IOException { \n return Long.parseLong(next()); \n }\n \n String nextLine() throws IOException { \n return reader.readLine(); \n }\n \n void close() throws IOException { \n reader.close(); \n }\n}", "Reader", "BufferedReader reader;", "reader", "StringTokenizer tokenizer;", "tokenizer", "Reader() {\n reader = new BufferedReader(new InputStreamReader(System.in));\n tokenizer = new StringTokenizer(\"\");\n }", "Reader", "{\n reader = new BufferedReader(new InputStreamReader(System.in));\n tokenizer = new StringTokenizer(\"\");\n }", "reader = new BufferedReader(new InputStreamReader(System.in))", "reader", "new BufferedReader(new InputStreamReader(System.in))", "tokenizer = new StringTokenizer(\"\")", "tokenizer", "new StringTokenizer(\"\")", "String next() throws IOException {\n while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }\n return tokenizer.nextToken();\n }", "next", "{\n while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }\n return tokenizer.nextToken();\n }", "while (!tokenizer.hasMoreTokens() ) { \n tokenizer = new StringTokenizer(reader.readLine()); \n }", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{ \n tokenizer = new StringTokenizer(reader.readLine()); \n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "int nextInt() throws IOException { \n return Integer.parseInt(next()); \n }", "nextInt", "{ \n return Integer.parseInt(next()); \n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "double nextDouble() throws IOException { \n return Double.parseDouble(next());\n }", "nextDouble", "{ \n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "long nextLong() throws IOException { \n return Long.parseLong(next()); \n }", "nextLong", "{ \n return Long.parseLong(next()); \n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "String nextLine() throws IOException { \n return reader.readLine(); \n }", "nextLine", "{ \n return reader.readLine(); \n }", "return reader.readLine();", "reader.readLine()", "reader.readLine", "reader", "void close() throws IOException { \n reader.close(); \n }", "close", "{ \n reader.close(); \n }", "reader.close()", "reader.close", "reader", "public class Main {\n\n public static void main(String[] args) throws IOException {\n int a = in.nextInt();\n int b = in.nextInt();\n int h = in.nextInt();\n int m = in.nextInt();\n\n double angle = 30*h - 5.5*m; // degrees\n\n // a^2 = b^2 + c^2 + 2bc cos(angle between b and c)\n double ans = a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle)));\n println(Math.sqrt(ans));\n\n in.close();\n out.close();\n }\n\n static int MIN = Integer.MIN_VALUE;\n static int MAX = Integer.MAX_VALUE;\n static Reader in = new Reader();\n static PrintWriter out = new PrintWriter(System.out);\n\n static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }\n \n static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }\n \n static void print(Object O) { \n \tout.print(O); \n }\n \n static void println(Object O) { \n \tout.println(O); \n }\n \n static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }\n \n static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n int a = in.nextInt();\n int b = in.nextInt();\n int h = in.nextInt();\n int m = in.nextInt();\n\n double angle = 30*h - 5.5*m; // degrees\n\n // a^2 = b^2 + c^2 + 2bc cos(angle between b and c)\n double ans = a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle)));\n println(Math.sqrt(ans));\n\n in.close();\n out.close();\n }\n\n static int MIN = Integer.MIN_VALUE;\n static int MAX = Integer.MAX_VALUE;\n static Reader in = new Reader();\n static PrintWriter out = new PrintWriter(System.out);\n\n static int[] readInt(int N) throws IOException { \n \tint arr[] = new int[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextInt(); \n \t} \n \treturn arr;\n }\n \n static long[] readLong(int N) throws IOException { \n \tlong arr[] = new long[N];\n \tfor(int i = 0; i < N; i++){ \n \t\tarr[i] = in.nextLong(); \n \t} \n \treturn arr;\n }\n \n static void print(Object O) { \n \tout.print(O); \n }\n \n static void println(Object O) { \n \tout.println(O); \n }\n \n static void println(int arr[]) { \n \tfor(int i = 0; i < arr.length; i++){ \n \t\tprint(arr[i] + \" \"); \n \t} \n \tprintln(\"\"); \n }\n \n static void displayRuntime(long startTime){\n long stopTime = System.currentTimeMillis();\n long elapsedTime = stopTime - startTime;\n System.out.println(\"Runtime: \" + elapsedTime / 1000D);\n }\n}", "Main" ]
// created on : Tue Jun 23 2020 import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { int a = in.nextInt(); int b = in.nextInt(); int h = in.nextInt(); int m = in.nextInt(); double angle = 30*h - 5.5*m; // degrees // a^2 = b^2 + c^2 + 2bc cos(angle between b and c) double ans = a * a + b * b - 2 * a * b * (Math.cos(Math.toRadians(angle))); println(Math.sqrt(ans)); in.close(); out.close(); } static int MIN = Integer.MIN_VALUE; static int MAX = Integer.MAX_VALUE; static Reader in = new Reader(); static PrintWriter out = new PrintWriter(System.out); static int[] readInt(int N) throws IOException { int arr[] = new int[N]; for(int i = 0; i < N; i++){ arr[i] = in.nextInt(); } return arr; } static long[] readLong(int N) throws IOException { long arr[] = new long[N]; for(int i = 0; i < N; i++){ arr[i] = in.nextLong(); } return arr; } static void print(Object O) { out.print(O); } static void println(Object O) { out.println(O); } static void println(int arr[]) { for(int i = 0; i < arr.length; i++){ print(arr[i] + " "); } println(""); } static void displayRuntime(long startTime){ long stopTime = System.currentTimeMillis(); long elapsedTime = stopTime - startTime; System.out.println("Runtime: " + elapsedTime / 1000D); } } class Reader { BufferedReader reader; StringTokenizer tokenizer; Reader() { reader = new BufferedReader(new InputStreamReader(System.in)); tokenizer = new StringTokenizer(""); } String next() throws IOException { while (!tokenizer.hasMoreTokens() ) { tokenizer = new StringTokenizer(reader.readLine()); } return tokenizer.nextToken(); } int nextInt() throws IOException { return Integer.parseInt(next()); } double nextDouble() throws IOException { return Double.parseDouble(next()); } long nextLong() throws IOException { return Long.parseLong(next()); } String nextLine() throws IOException { return reader.readLine(); } void close() throws IOException { reader.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 102, 8 ], [ 102, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 11, 35 ], [ 35, 36 ], [ 11, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 11, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 11, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 11, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 79, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 11, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 9, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.util.*;\nimport java.lang.Math;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double s;\n\n \n double sA = 30 * H + 0.5 * M;\n double sB = 6 * M;\n \n if(sA <= sB) {\n s = sB - sA;\n } else {\n s = sA - sB;\n }\n \n double ans2 = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s));\n System.out.println(Math.sqrt(ans2));\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double s;\n\n \n double sA = 30 * H + 0.5 * M;\n double sB = 6 * M;\n \n if(sA <= sB) {\n s = sB - sA;\n } else {\n s = sA - sB;\n }\n \n double ans2 = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s));\n System.out.println(Math.sqrt(ans2));\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double s;\n\n \n double sA = 30 * H + 0.5 * M;\n double sB = 6 * M;\n \n if(sA <= sB) {\n s = sB - sA;\n } else {\n s = sA - sB;\n }\n \n double ans2 = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s));\n System.out.println(Math.sqrt(ans2));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double s;\n\n \n double sA = 30 * H + 0.5 * M;\n double sB = 6 * M;\n \n if(sA <= sB) {\n s = sB - sA;\n } else {\n s = sA - sB;\n }\n \n double ans2 = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s));\n System.out.println(Math.sqrt(ans2));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double s;", "s", "double sA = 30 * H + 0.5 * M;", "sA", "30 * H + 0.5 * M", "30 * H", "30", "H", "0.5 * M", "0.5", "M", "double sB = 6 * M;", "sB", "6 * M", "6", "M", "if(sA <= sB) {\n s = sB - sA;\n } else {\n s = sA - sB;\n }", "sA <= sB", "sA", "sB", "{\n s = sB - sA;\n }", "s = sB - sA", "s", "sB - sA", "sB", "sA", "{\n s = sA - sB;\n }", "s = sA - sB", "s", "sA - sB", "sA", "sB", "double ans2 = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s));", "ans2", "A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s))", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.toRadians(s))", "B", "2*A*B*Math.cos(Math.toRadians(s))", "2", "A", "B", "Math.cos(Math.toRadians(s))", "Math.cos", "Math", "Math.toRadians(s)", "Math.toRadians", "Math", "s", "System.out.println(Math.sqrt(ans2))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans2)", "Math.sqrt", "Math", "ans2", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double s;\n\n \n double sA = 30 * H + 0.5 * M;\n double sB = 6 * M;\n \n if(sA <= sB) {\n s = sB - sA;\n } else {\n s = sA - sB;\n }\n \n double ans2 = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s));\n System.out.println(Math.sqrt(ans2));\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n double s;\n\n \n double sA = 30 * H + 0.5 * M;\n double sB = 6 * M;\n \n if(sA <= sB) {\n s = sB - sA;\n } else {\n s = sA - sB;\n }\n \n double ans2 = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s));\n System.out.println(Math.sqrt(ans2));\n }\n}", "Main" ]
import java.util.*; import java.lang.Math; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); double s; double sA = 30 * H + 0.5 * M; double sB = 6 * M; if(sA <= sB) { s = sB - sA; } else { s = sA - sB; } double ans2 = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(s)); System.out.println(Math.sqrt(ans2)); } }
[ 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, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 2, 2, 13, 17, 13, 17, 18, 13, 13, 2, 17, 17, 41, 13, 2, 2, 2, 17, 18, 13, 13, 13, 17, 41, 13, 8, 2, 13, 13, 2, 13, 13, 2, 13, 13, 0, 13, 8, 2, 13, 18, 13, 13, 2, 2, 18, 13, 13, 17, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 18, 13, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 14, 2, 13, 13, 30, 29, 17, 30, 0, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 29, 18, 13, 40, 13, 29, 40, 17, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 40, 4, 13, 18, 13, 13, 40, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 20, 41, 13, 4, 13, 42, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 17, 13, 30, 37, 20, 42, 17, 30, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 40, 17, 40, 4, 13, 13, 30, 29, 8, 13, 40, 13, 13, 30, 37, 20, 0, 13, 4, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 37, 20, 29, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 41, 13, 4, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 13, 4, 18, 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 ], [ 677, 20 ], [ 677, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 23, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 23, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 23, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 23, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 54, 60 ], [ 54, 61 ], [ 61, 62 ], [ 61, 63 ], [ 52, 64 ], [ 64, 65 ], [ 64, 66 ], [ 23, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 69, 77 ], [ 23, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 80, 87 ], [ 87, 88 ], [ 87, 89 ], [ 23, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 98, 104 ], [ 92, 105 ], [ 23, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 111, 119 ], [ 121, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 121, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 23, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 23, 133 ], [ 133, 134 ], [ 134, 135 ], [ 21, 136 ], [ 136, 137 ], [ 0, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 138, 145 ], [ 145, 146 ], [ 145, 147 ], [ 138, 149 ], [ 149, 150 ], [ 149, 151 ], [ 138, 152 ], [ 152, 153 ], [ 152, 154 ], [ 138, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 158, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 169, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 165, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 188, 189 ], [ 157, 190 ], [ 190, 191 ], [ 138, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 195, 203 ], [ 203, 204 ], [ 204, 205 ], [ 138, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 211, 213 ], [ 210, 214 ], [ 214, 215 ], [ 214, 216 ], [ 206, 217 ], [ 217, 218 ], [ 138, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 223, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 229, 231 ], [ 222, 232 ], [ 232, 233 ], [ 221, 234 ], [ 234, 235 ], [ 235, 236 ], [ 138, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 240, 244 ], [ 244, 245 ], [ 239, 246 ], [ 246, 247 ], [ 246, 248 ], [ 239, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 239, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 253, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 258, 261 ], [ 257, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 239, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 138, 270 ], [ 270, 271 ], [ 270, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 275, 276 ], [ 273, 277 ], [ 277, 278 ], [ 272, 279 ], [ 279, 280 ], [ 279, 281 ], [ 272, 282 ], [ 282, 283 ], [ 282, 284 ], [ 272, 285 ], [ 285, 286 ], [ 285, 287 ], [ 287, 288 ], [ 272, 289 ], [ 289, 290 ], [ 290, 291 ], [ 290, 292 ], [ 289, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 293, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 272, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 306, 307 ], [ 306, 308 ], [ 301, 309 ], [ 309, 310 ], [ 310, 311 ], [ 272, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 316, 320 ], [ 320, 321 ], [ 320, 322 ], [ 315, 323 ], [ 323, 324 ], [ 324, 325 ], [ 324, 326 ], [ 323, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 329, 331 ], [ 315, 332 ], [ 332, 333 ], [ 333, 334 ], [ 334, 335 ], [ 334, 336 ], [ 336, 337 ], [ 333, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 332, 342 ], [ 342, 343 ], [ 343, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 344, 348 ], [ 332, 349 ], [ 349, 350 ], [ 350, 351 ], [ 314, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 138, 356 ], [ 356, 357 ], [ 356, 358 ], [ 358, 359 ], [ 359, 360 ], [ 359, 361 ], [ 361, 362 ], [ 358, 363 ], [ 363, 364 ], [ 364, 365 ], [ 365, 366 ], [ 365, 367 ], [ 367, 368 ], [ 367, 369 ], [ 364, 370 ], [ 370, 371 ], [ 370, 372 ], [ 372, 373 ], [ 372, 374 ], [ 363, 375 ], [ 375, 376 ], [ 358, 377 ], [ 377, 378 ], [ 138, 379 ], [ 379, 380 ], [ 379, 381 ], [ 381, 382 ], [ 382, 383 ], [ 383, 384 ], [ 384, 385 ], [ 383, 386 ], [ 386, 387 ], [ 138, 388 ], [ 388, 389 ], [ 388, 390 ], [ 390, 391 ], [ 391, 392 ], [ 391, 393 ], [ 390, 395 ], [ 395, 396 ], [ 396, 397 ], [ 397, 398 ], [ 397, 399 ], [ 395, 400 ], [ 400, 401 ], [ 400, 402 ], [ 395, 403 ], [ 403, 404 ], [ 404, 405 ], [ 395, 406 ], [ 407, 407 ], [ 407, 408 ], [ 408, 409 ], [ 409, 410 ], [ 409, 411 ], [ 408, 412 ], [ 412, 413 ], [ 390, 414 ], [ 414, 415 ], [ 388, 416 ], [ 416, 417 ], [ 138, 418 ], [ 418, 419 ], [ 418, 420 ], [ 420, 421 ], [ 421, 422 ], [ 421, 423 ], [ 420, 425 ], [ 425, 426 ], [ 426, 427 ], [ 427, 428 ], [ 427, 429 ], [ 425, 430 ], [ 430, 431 ], [ 430, 432 ], [ 425, 433 ], [ 433, 434 ], [ 434, 435 ], [ 425, 436 ], [ 437, 437 ], [ 437, 438 ], [ 438, 439 ], [ 439, 440 ], [ 439, 441 ], [ 438, 442 ], [ 442, 443 ], [ 420, 444 ], [ 444, 445 ], [ 418, 446 ], [ 446, 447 ], [ 138, 448 ], [ 448, 449 ], [ 448, 450 ], [ 450, 451 ], [ 451, 452 ], [ 451, 453 ], [ 450, 455 ], [ 455, 456 ], [ 455, 457 ], [ 457, 458 ], [ 450, 459 ], [ 459, 460 ], [ 460, 461 ], [ 461, 462 ], [ 461, 463 ], [ 459, 464 ], [ 464, 465 ], [ 464, 466 ], [ 459, 467 ], [ 467, 468 ], [ 468, 469 ], [ 459, 470 ], [ 471, 471 ], [ 471, 472 ], [ 472, 473 ], [ 473, 474 ], [ 473, 475 ], [ 472, 476 ], [ 476, 477 ], [ 477, 478 ], [ 476, 479 ], [ 450, 480 ], [ 480, 481 ], [ 448, 482 ], [ 482, 483 ], [ 138, 484 ], [ 484, 485 ], [ 484, 486 ], [ 486, 487 ], [ 487, 488 ], [ 487, 489 ], [ 486, 492 ], [ 492, 493 ], [ 493, 494 ], [ 494, 495 ], [ 494, 496 ], [ 492, 497 ], [ 497, 498 ], [ 497, 499 ], [ 492, 500 ], [ 500, 501 ], [ 501, 502 ], [ 492, 503 ], [ 504, 504 ], [ 504, 505 ], [ 505, 506 ], [ 505, 507 ], [ 507, 508 ], [ 504, 509 ], [ 509, 510 ], [ 510, 511 ], [ 511, 512 ], [ 511, 513 ], [ 509, 514 ], [ 514, 515 ], [ 514, 516 ], [ 509, 517 ], [ 517, 518 ], [ 518, 519 ], [ 509, 520 ], [ 521, 521 ], [ 521, 522 ], [ 522, 523 ], [ 523, 524 ], [ 524, 525 ], [ 524, 526 ], [ 523, 527 ], [ 522, 528 ], [ 528, 529 ], [ 529, 530 ], [ 528, 531 ], [ 486, 532 ], [ 532, 533 ], [ 484, 534 ], [ 534, 535 ], [ 484, 536 ], [ 536, 537 ], [ 138, 538 ], [ 538, 539 ], [ 538, 540 ], [ 540, 541 ], [ 541, 542 ], [ 541, 543 ], [ 540, 546 ], [ 546, 547 ], [ 547, 548 ], [ 548, 549 ], [ 548, 550 ], [ 546, 551 ], [ 551, 552 ], [ 551, 553 ], [ 546, 554 ], [ 554, 555 ], [ 555, 556 ], [ 546, 557 ], [ 558, 558 ], [ 558, 559 ], [ 559, 560 ], [ 560, 561 ], [ 561, 562 ], [ 561, 563 ], [ 559, 564 ], [ 564, 565 ], [ 564, 566 ], [ 559, 567 ], [ 567, 568 ], [ 568, 569 ], [ 559, 570 ], [ 571, 571 ], [ 571, 572 ], [ 572, 573 ], [ 573, 574 ], [ 574, 575 ], [ 574, 576 ], [ 573, 577 ], [ 572, 578 ], [ 578, 579 ], [ 540, 580 ], [ 580, 581 ], [ 538, 582 ], [ 582, 583 ], [ 538, 584 ], [ 584, 585 ], [ 138, 586 ], [ 586, 587 ], [ 586, 588 ], [ 588, 589 ], [ 589, 590 ], [ 589, 591 ], [ 588, 592 ], [ 592, 593 ], [ 593, 594 ], [ 594, 595 ], [ 594, 596 ], [ 592, 597 ], [ 597, 598 ], [ 597, 599 ], [ 592, 600 ], [ 600, 601 ], [ 601, 602 ], [ 592, 603 ], [ 604, 604 ], [ 604, 605 ], [ 605, 606 ], [ 606, 607 ], [ 605, 608 ], [ 608, 609 ], [ 588, 610 ], [ 610, 611 ], [ 586, 612 ], [ 612, 613 ], [ 138, 614 ], [ 614, 615 ], [ 614, 616 ], [ 616, 617 ], [ 617, 618 ], [ 617, 619 ], [ 616, 620 ], [ 620, 621 ], [ 621, 622 ], [ 622, 623 ], [ 622, 624 ], [ 620, 625 ], [ 625, 626 ], [ 625, 627 ], [ 620, 628 ], [ 628, 629 ], [ 629, 630 ], [ 620, 631 ], [ 632, 632 ], [ 632, 633 ], [ 633, 634 ], [ 634, 635 ], [ 633, 636 ], [ 636, 637 ], [ 616, 638 ], [ 638, 639 ], [ 614, 640 ], [ 640, 641 ], [ 138, 642 ], [ 642, 643 ], [ 642, 644 ], [ 644, 645 ], [ 645, 646 ], [ 645, 647 ], [ 644, 648 ], [ 648, 649 ], [ 649, 650 ], [ 650, 651 ], [ 650, 652 ], [ 648, 653 ], [ 653, 654 ], [ 653, 655 ], [ 648, 656 ], [ 656, 657 ], [ 657, 658 ], [ 648, 659 ], [ 660, 660 ], [ 660, 661 ], [ 661, 662 ], [ 661, 663 ], [ 663, 664 ], [ 663, 665 ], [ 660, 666 ], [ 666, 667 ], [ 667, 668 ], [ 666, 669 ], [ 644, 670 ], [ 670, 671 ], [ 642, 672 ], [ 672, 673 ], [ 642, 674 ], [ 674, 675 ], [ 0, 676 ], [ 676, 677 ], [ 676, 678 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.NoSuchElementException;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\tdouble Hpy = (H * 60 + M) * 2 * Math.PI / (60 * 12);\n\t\tdouble Mpy = (2 * Math.PI * M) / 60;\n\t\tdouble sita = Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy;\n\t\tsita = sita > Math.PI ? Math.PI * 2 - sita : sita;\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita));\n\n\t\tout.print(ans);\n\t\tout.flush();\n\n\t}\n\n}\n\nclass FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tpublic int[] nextIntsN(int N) {\n\t\tint[] ints = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}\n\t\treturn ints;\n\t}\n\n\tpublic long[] nextLongsN(int N) {\n\t\tlong[] longs = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}\n\t\treturn longs;\n\t}\n\n\tpublic char[] nextCharsN(int N) {\n\t\tchar[] chars = new char[N];\n\t\tString msg = next();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}\n\n\tpublic char[][] nextCharsHW(int H, int W) {\n\t\tchar[][] chars = new char[H][W];\n\t\tfor (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}\n\t\treturn chars;\n\t}\n\n\tpublic int[][] nextIntsNM(int N, int M) {\n\t\tint[][] ints = new int[N][M];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}\n\n\tpublic List<Integer> nextArrayIntsN(int N) {\n\t\tArrayList<Integer> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}\n\t\treturn array;\n\t}\n\n\tpublic List<Long> nextArrayLongsN(int N) {\n\t\tArrayList<Long> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}\n\t\treturn array;\n\t}\n\n\tpublic List<List<Long>> nextArrayLongsNM(int N, int M) {\n\n\t\tList<List<Long>> arrays = new ArrayList<List<Long>>(M);\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}\n\t\treturn arrays;\n\t}\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.NoSuchElementException;", "NoSuchElementException", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\tdouble Hpy = (H * 60 + M) * 2 * Math.PI / (60 * 12);\n\t\tdouble Mpy = (2 * Math.PI * M) / 60;\n\t\tdouble sita = Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy;\n\t\tsita = sita > Math.PI ? Math.PI * 2 - sita : sita;\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita));\n\n\t\tout.print(ans);\n\t\tout.flush();\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\tdouble Hpy = (H * 60 + M) * 2 * Math.PI / (60 * 12);\n\t\tdouble Mpy = (2 * Math.PI * M) / 60;\n\t\tdouble sita = Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy;\n\t\tsita = sita > Math.PI ? Math.PI * 2 - sita : sita;\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita));\n\n\t\tout.print(ans);\n\t\tout.flush();\n\n\t}", "main", "{\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\tdouble Hpy = (H * 60 + M) * 2 * Math.PI / (60 * 12);\n\t\tdouble Mpy = (2 * Math.PI * M) / 60;\n\t\tdouble sita = Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy;\n\t\tsita = sita > Math.PI ? Math.PI * 2 - sita : sita;\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita));\n\n\t\tout.print(ans);\n\t\tout.flush();\n\n\t}", "FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double Hpy = (H * 60 + M) * 2 * Math.PI / (60 * 12);", "Hpy", "(H * 60 + M) * 2 * Math.PI / (60 * 12)", "(H * 60 + M) * 2 * Math.PI", "(H * 60 + M) * 2 * Math.PI", "(H * 60 + M)", "H * 60", "H", "60", "M", "2", "Math.PI", "Math", "Math.PI", "(60 * 12)", "60", "12", "double Mpy = (2 * Math.PI * M) / 60;", "Mpy", "(2 * Math.PI * M) / 60", "(2 * Math.PI * M)", "2 * Math.PI * M", "2", "Math.PI", "Math", "Math.PI", "M", "60", "double sita = Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy;", "sita", "Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy", "Hpy > Mpy", "Hpy", "Mpy", "Hpy - Mpy", "Hpy", "Mpy", "Mpy - Hpy", "Mpy", "Hpy", "sita = sita > Math.PI ? Math.PI * 2 - sita : sita", "sita", "sita > Math.PI ? Math.PI * 2 - sita : sita", "sita > Math.PI", "sita", "Math.PI", "Math", "Math.PI", "Math.PI * 2 - sita", "Math.PI * 2", "Math.PI", "Math", "Math.PI", "2", "sita", "sita", "double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita));", "ans", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(sita)", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(sita)", "B", "2 * A * B * Math.cos(sita)", "2", "A", "B", "Math.cos(sita)", "Math.cos", "Math", "sita", "out.print(ans)", "out.print", "out", "ans", "out.flush()", "out.flush", "out", "String[] args", "args", "class FastScanner {\n\tprivate final InputStream in = System.in;\n\tprivate final byte[] buffer = new byte[1024];\n\tprivate int ptr = 0;\n\tprivate int buflen = 0;\n\n\tprivate boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}\n\n\tprivate int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}\n\n\tprivate static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}\n\n\tpublic boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}\n\n\tpublic String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}\n\n\tpublic long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}\n\n\tpublic int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}\n\n\tpublic double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tpublic int[] nextIntsN(int N) {\n\t\tint[] ints = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}\n\t\treturn ints;\n\t}\n\n\tpublic long[] nextLongsN(int N) {\n\t\tlong[] longs = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}\n\t\treturn longs;\n\t}\n\n\tpublic char[] nextCharsN(int N) {\n\t\tchar[] chars = new char[N];\n\t\tString msg = next();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}\n\n\tpublic char[][] nextCharsHW(int H, int W) {\n\t\tchar[][] chars = new char[H][W];\n\t\tfor (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}\n\t\treturn chars;\n\t}\n\n\tpublic int[][] nextIntsNM(int N, int M) {\n\t\tint[][] ints = new int[N][M];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}\n\n\tpublic List<Integer> nextArrayIntsN(int N) {\n\t\tArrayList<Integer> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}\n\t\treturn array;\n\t}\n\n\tpublic List<Long> nextArrayLongsN(int N) {\n\t\tArrayList<Long> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}\n\t\treturn array;\n\t}\n\n\tpublic List<List<Long>> nextArrayLongsNM(int N, int M) {\n\n\t\tList<List<Long>> arrays = new ArrayList<List<Long>>(M);\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}\n\t\treturn arrays;\n\t}\n\n}", "FastScanner", "private final InputStream in = System.in;", "in", "System.in", "System", "System.in", "private final byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int ptr = 0;", "ptr", "0", "private int buflen = 0;", "buflen", "0", "private boolean hasNextByte() {\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "hasNextByte", "{\n\t\tif (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "if (ptr < buflen) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "ptr < buflen", "ptr", "buflen", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "{\n\t\t\tptr = 0;\n\t\t\ttry {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tif (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "ptr = 0", "ptr", "0", "try {\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "IOException e", "{\n\t\t\t\te.printStackTrace();\n\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\tbuflen = in.read(buffer);\n\t\t\t}", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n\t\t\t\treturn false;\n\t\t\t}", "buflen <= 0", "buflen", "0", "{\n\t\t\t\treturn false;\n\t\t\t}", "return false;", "false", "return true;", "true", "private int readByte() {\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}", "readByte", "{\n\t\tif (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;\n\t}", "if (hasNextByte())\n\t\t\treturn buffer[ptr++];\n\t\telse\n\t\t\treturn -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "private static boolean isPrintableChar(int c) {\n\t\treturn 33 <= c && c <= 126;\n\t}", "isPrintableChar", "{\n\t\treturn 33 <= c && c <= 126;\n\t}", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "int c", "c", "public boolean hasNext() {\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}", "hasNext", "{\n\t\twhile (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;\n\t\treturn hasNextByte();\n\t}", "while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n\t\t\tptr++;", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "ptr++", "ptr", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}", "next", "{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint b = readByte();\n\t\twhile (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}\n\t\treturn sb.toString();\n\t}", "if (!hasNext())\n\t\t\tthrow new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = readByte();", "b", "readByte()", "readByte", "while (isPrintableChar(b)) {\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t\t\tsb.appendCodePoint(b);\n\t\t\tb = readByte();\n\t\t}", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public long nextLong() {\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}", "nextLong", "{\n\t\tif (!hasNext())\n\t\t\tthrow new NoSuchElementException();\n\t\tlong n = 0;\n\t\tboolean minus = false;\n\t\tint b = readByte();\n\t\tif (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}\n\t\tif (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}\n\t\twhile (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}\n\t}", "if (!hasNext())\n\t\t\tthrow new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "long n = 0;", "n", "0", "boolean minus = false;", "minus", "false", "int b = readByte();", "b", "readByte()", "readByte", "if (b == '-') {\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}", "b == '-'", "b", "'-'", "{\n\t\t\tminus = true;\n\t\t\tb = readByte();\n\t\t}", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) {\n\t\t\tthrow new NumberFormatException();\n\t\t}", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n\t\t\tthrow new NumberFormatException();\n\t\t}", "throw new NumberFormatException();", "new NumberFormatException()", "while (true) {\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}", "true", "{\n\t\t\tif ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}\n\t\t\tb = readByte();\n\t\t}", "if ('0' <= b && b <= '9') {\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t} else if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n\t\t\t\tn *= 10;\n\t\t\t\tn += b - '0';\n\t\t\t}", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if (b == -1 || !isPrintableChar(b)) {\n\t\t\t\treturn minus ? -n : n;\n\t\t\t} else {\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n\t\t\t\treturn minus ? -n : n;\n\t\t\t}", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n\t\t\t\tthrow new NumberFormatException();\n\t\t\t}", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public int nextInt() {\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}", "nextInt", "{\n\t\tlong nl = nextLong();\n\t\tif (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();\n\t\treturn (int) nl;\n\t}", "long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n\t\t\tthrow new NumberFormatException();", "nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE", "nl < Integer.MIN_VALUE", "nl", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "nl > Integer.MAX_VALUE", "nl", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}", "nextDouble", "{\n\t\treturn Double.parseDouble(next());\n\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public int[] nextIntsN(int N) {\n\t\tint[] ints = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}\n\t\treturn ints;\n\t}", "nextIntsN", "{\n\t\tint[] ints = new int[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}\n\t\treturn ints;\n\t}", "int[] ints = new int[N];", "ints", "new int[N]", "N", "for (int i = 0; i < N; i++) {\n\t\t\tints[i] = nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tints[i] = nextInt();\n\t\t}", "{\n\t\t\tints[i] = nextInt();\n\t\t}", "ints[i] = nextInt()", "ints[i]", "ints", "i", "nextInt()", "nextInt", "return ints;", "ints", "int N", "N", "public long[] nextLongsN(int N) {\n\t\tlong[] longs = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}\n\t\treturn longs;\n\t}", "nextLongsN", "{\n\t\tlong[] longs = new long[N];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}\n\t\treturn longs;\n\t}", "long[] longs = new long[N];", "longs", "new long[N]", "N", "for (int i = 0; i < N; i++) {\n\t\t\tlongs[i] = nextLong();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tlongs[i] = nextLong();\n\t\t}", "{\n\t\t\tlongs[i] = nextLong();\n\t\t}", "longs[i] = nextLong()", "longs[i]", "longs", "i", "nextLong()", "nextLong", "return longs;", "longs", "int N", "N", "public char[] nextCharsN(int N) {\n\t\tchar[] chars = new char[N];\n\t\tString msg = next();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}", "nextCharsN", "{\n\t\tchar[] chars = new char[N];\n\t\tString msg = next();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}\n\t\treturn chars;\n\t}", "char[] chars = new char[N];", "chars", "new char[N]", "N", "String msg = next();", "msg", "next()", "next", "for (int i = 0; i < N; i++) {\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}", "{\n\t\t\tchars[i] = msg.charAt(i);\n\t\t}", "chars[i] = msg.charAt(i)", "chars[i]", "chars", "i", "msg.charAt(i)", "msg.charAt", "msg", "i", "return chars;", "chars", "int N", "N", "public char[][] nextCharsHW(int H, int W) {\n\t\tchar[][] chars = new char[H][W];\n\t\tfor (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}\n\t\treturn chars;\n\t}", "nextCharsHW", "{\n\t\tchar[][] chars = new char[H][W];\n\t\tfor (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}\n\t\treturn chars;\n\t}", "char[][] chars = new char[H][W];", "chars", "new char[H][W]", "H", "W", "for (int i = 0; i < H; i++) {\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}", "{\n\t\t\tString str = next();\n\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}\n\t\t}", "String str = next();", "str", "next()", "next", "for (int j = 0; j < W; j++) {\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}", "{\n\t\t\t\tchars[i][j] = str.charAt(j);\n\t\t\t}", "chars[i][j] = str.charAt(j)", "chars[i][j]", "chars[i]", "chars", "i", "j", "str.charAt(j)", "str.charAt", "str", "j", "return chars;", "chars", "int H", "H", "int W", "W", "public int[][] nextIntsNM(int N, int M) {\n\t\tint[][] ints = new int[N][M];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}", "nextIntsNM", "{\n\t\tint[][] ints = new int[N][M];\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}\n\t\treturn ints;\n\t}", "int[][] ints = new int[N][M];", "ints", "new int[N][M]", "N", "M", "for (int i = 0; i < N; i++) {\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}\n\t\t}", "for (int j = 0; j < M; j++) {\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < M", "j", "M", "j++", "j++", "j", "{\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}", "{\n\t\t\t\tints[i][j] = nextInt();\n\t\t\t}", "ints[i][j] = nextInt()", "ints[i][j]", "ints[i]", "ints", "i", "j", "nextInt()", "nextInt", "return ints;", "ints", "int N", "N", "int M", "M", "public List<Integer> nextArrayIntsN(int N) {\n\t\tArrayList<Integer> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}\n\t\treturn array;\n\t}", "nextArrayIntsN", "{\n\t\tArrayList<Integer> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}\n\t\treturn array;\n\t}", "ArrayList<Integer> array = new ArrayList<>(N);", "array", "new ArrayList<>(N)", "for (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextInt());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tarray.add(nextInt());\n\t\t}", "{\n\t\t\tarray.add(nextInt());\n\t\t}", "array.add(nextInt())", "array.add", "array", "nextInt()", "nextInt", "return array;", "array", "int N", "N", "public List<Long> nextArrayLongsN(int N) {\n\t\tArrayList<Long> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}\n\t\treturn array;\n\t}", "nextArrayLongsN", "{\n\t\tArrayList<Long> array = new ArrayList<>(N);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}\n\t\treturn array;\n\t}", "ArrayList<Long> array = new ArrayList<>(N);", "array", "new ArrayList<>(N)", "for (int i = 0; i < N; i++) {\n\t\t\tarray.add(nextLong());\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tarray.add(nextLong());\n\t\t}", "{\n\t\t\tarray.add(nextLong());\n\t\t}", "array.add(nextLong())", "array.add", "array", "nextLong()", "nextLong", "return array;", "array", "int N", "N", "public List<List<Long>> nextArrayLongsNM(int N, int M) {\n\n\t\tList<List<Long>> arrays = new ArrayList<List<Long>>(M);\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}\n\t\treturn arrays;\n\t}", "nextArrayLongsNM", "{\n\n\t\tList<List<Long>> arrays = new ArrayList<List<Long>>(M);\n\t\tfor (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}\n\t\treturn arrays;\n\t}", "List<List<Long>> arrays = new ArrayList<List<Long>>(M);", "arrays", "new ArrayList<List<Long>>(M)", "for (int i = 0; i < M; i++) {\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < M", "i", "M", "i++", "i++", "i", "{\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}", "{\n\t\t\tList<Long> array = nextArrayLongsN(N);\n\t\t\tarrays.add(array);\n\t\t}", "List<Long> array = nextArrayLongsN(N);", "array", "nextArrayLongsN(N)", "nextArrayLongsN", "N", "arrays.add(array)", "arrays.add", "arrays", "array", "return arrays;", "arrays", "int N", "N", "int M", "M", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\tdouble Hpy = (H * 60 + M) * 2 * Math.PI / (60 * 12);\n\t\tdouble Mpy = (2 * Math.PI * M) / 60;\n\t\tdouble sita = Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy;\n\t\tsita = sita > Math.PI ? Math.PI * 2 - sita : sita;\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita));\n\n\t\tout.print(ans);\n\t\tout.flush();\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tFastScanner sc = new FastScanner();\n\t\tPrintWriter out = new PrintWriter(System.out);\n\n\t\tint A = sc.nextInt();\n\t\tint B = sc.nextInt();\n\t\tint H = sc.nextInt();\n\t\tint M = sc.nextInt();\n\n\t\tdouble Hpy = (H * 60 + M) * 2 * Math.PI / (60 * 12);\n\t\tdouble Mpy = (2 * Math.PI * M) / 60;\n\t\tdouble sita = Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy;\n\t\tsita = sita > Math.PI ? Math.PI * 2 - sita : sita;\n\t\tdouble ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita));\n\n\t\tout.print(ans);\n\t\tout.flush();\n\n\t}\n\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.NoSuchElementException; public class Main { public static void main(String[] args) { FastScanner sc = new FastScanner(); PrintWriter out = new PrintWriter(System.out); int A = sc.nextInt(); int B = sc.nextInt(); int H = sc.nextInt(); int M = sc.nextInt(); double Hpy = (H * 60 + M) * 2 * Math.PI / (60 * 12); double Mpy = (2 * Math.PI * M) / 60; double sita = Hpy > Mpy ? Hpy - Mpy : Mpy - Hpy; sita = sita > Math.PI ? Math.PI * 2 - sita : sita; double ans = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(sita)); out.print(ans); out.flush(); } } class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; private boolean hasNextByte() { if (ptr < buflen) { return true; } else { ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } if (buflen <= 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1; } private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126; } public boolean hasNext() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte(); } public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while (isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) { return minus ? -n : n; } else { throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { long nl = nextLong(); if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } public int[] nextIntsN(int N) { int[] ints = new int[N]; for (int i = 0; i < N; i++) { ints[i] = nextInt(); } return ints; } public long[] nextLongsN(int N) { long[] longs = new long[N]; for (int i = 0; i < N; i++) { longs[i] = nextLong(); } return longs; } public char[] nextCharsN(int N) { char[] chars = new char[N]; String msg = next(); for (int i = 0; i < N; i++) { chars[i] = msg.charAt(i); } return chars; } public char[][] nextCharsHW(int H, int W) { char[][] chars = new char[H][W]; for (int i = 0; i < H; i++) { String str = next(); for (int j = 0; j < W; j++) { chars[i][j] = str.charAt(j); } } return chars; } public int[][] nextIntsNM(int N, int M) { int[][] ints = new int[N][M]; for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { ints[i][j] = nextInt(); } } return ints; } public List<Integer> nextArrayIntsN(int N) { ArrayList<Integer> array = new ArrayList<>(N); for (int i = 0; i < N; i++) { array.add(nextInt()); } return array; } public List<Long> nextArrayLongsN(int N) { ArrayList<Long> array = new ArrayList<>(N); for (int i = 0; i < N; i++) { array.add(nextLong()); } return array; } public List<List<Long>> nextArrayLongsNM(int N, int M) { List<List<Long>> arrays = new ArrayList<List<Long>>(M); for (int i = 0; i < M; i++) { List<Long> array = nextArrayLongsN(N); arrays.add(array); } return arrays; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 8, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 72, 76 ], [ 71, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 77, 81 ], [ 70, 82 ], [ 84, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tdouble h = sc.nextInt();\n\t\tdouble m = sc.nextInt();\n\n\t\tdouble angle_h = (30 * h) + 0.5 * m;\n\t\tdouble angle_m = 6 * m;\n\t\tdouble angle = 0;\n\n\t\tif(angle_h < angle_m) {\n\t\t\tangle = angle_m - angle_h;\n\t\t}else {\n\t\t\tangle = angle_h - angle_m;\n\t\t}\n\n\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(ans);\n\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 sc = new Scanner(System.in);\n\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tdouble h = sc.nextInt();\n\t\tdouble m = sc.nextInt();\n\n\t\tdouble angle_h = (30 * h) + 0.5 * m;\n\t\tdouble angle_m = 6 * m;\n\t\tdouble angle = 0;\n\n\t\tif(angle_h < angle_m) {\n\t\t\tangle = angle_m - angle_h;\n\t\t}else {\n\t\t\tangle = angle_h - angle_m;\n\t\t}\n\n\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tdouble h = sc.nextInt();\n\t\tdouble m = sc.nextInt();\n\n\t\tdouble angle_h = (30 * h) + 0.5 * m;\n\t\tdouble angle_m = 6 * m;\n\t\tdouble angle = 0;\n\n\t\tif(angle_h < angle_m) {\n\t\t\tangle = angle_m - angle_h;\n\t\t}else {\n\t\t\tangle = angle_h - angle_m;\n\t\t}\n\n\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(ans);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tdouble h = sc.nextInt();\n\t\tdouble m = sc.nextInt();\n\n\t\tdouble angle_h = (30 * h) + 0.5 * m;\n\t\tdouble angle_m = 6 * m;\n\t\tdouble angle = 0;\n\n\t\tif(angle_h < angle_m) {\n\t\t\tangle = angle_m - angle_h;\n\t\t}else {\n\t\t\tangle = angle_h - angle_m;\n\t\t}\n\n\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(ans);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "double b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "double h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "double m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double angle_h = (30 * h) + 0.5 * m;", "angle_h", "(30 * h) + 0.5 * m", "(30 * h)", "30", "h", "0.5 * m", "0.5", "m", "double angle_m = 6 * m;", "angle_m", "6 * m", "6", "m", "double angle = 0;", "angle", "0", "if(angle_h < angle_m) {\n\t\t\tangle = angle_m - angle_h;\n\t\t}else {\n\t\t\tangle = angle_h - angle_m;\n\t\t}", "angle_h < angle_m", "angle_h", "angle_m", "{\n\t\t\tangle = angle_m - angle_h;\n\t\t}", "angle = angle_m - angle_h", "angle", "angle_m - angle_h", "angle_m", "angle_h", "{\n\t\t\tangle = angle_h - angle_m;\n\t\t}", "angle = angle_h - angle_m", "angle", "angle_h - angle_m", "angle_h", "angle_m", "double ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle)));", "ans", "Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle)))", "Math.sqrt", "Math", "Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle))", "Math.pow(a, 2) + Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "2 * a * b *Math.cos(Math.toRadians(angle))", "b", "2 * a * b *Math.cos(Math.toRadians(angle))", "2", "a", "b", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tdouble h = sc.nextInt();\n\t\tdouble m = sc.nextInt();\n\n\t\tdouble angle_h = (30 * h) + 0.5 * m;\n\t\tdouble angle_m = 6 * m;\n\t\tdouble angle = 0;\n\n\t\tif(angle_h < angle_m) {\n\t\t\tangle = angle_m - angle_h;\n\t\t}else {\n\t\t\tangle = angle_h - angle_m;\n\t\t}\n\n\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tdouble a = sc.nextInt();\n\t\tdouble b = sc.nextInt();\n\t\tdouble h = sc.nextInt();\n\t\tdouble m = sc.nextInt();\n\n\t\tdouble angle_h = (30 * h) + 0.5 * m;\n\t\tdouble angle_m = 6 * m;\n\t\tdouble angle = 0;\n\n\t\tif(angle_h < angle_m) {\n\t\t\tangle = angle_m - angle_h;\n\t\t}else {\n\t\t\tangle = angle_h - angle_m;\n\t\t}\n\n\t\tdouble ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle)));\n\n\t\tSystem.out.println(ans);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double a = sc.nextInt(); double b = sc.nextInt(); double h = sc.nextInt(); double m = sc.nextInt(); double angle_h = (30 * h) + 0.5 * m; double angle_m = 6 * m; double angle = 0; if(angle_h < angle_m) { angle = angle_m - angle_h; }else { angle = angle_h - angle_m; } double ans = Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2) - 2 * a * b *Math.cos(Math.toRadians(angle))); System.out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 0, 13, 2, 2, 2, 2, 17, 18, 13, 13, 13, 17, 2, 2, 2, 17, 18, 13, 13, 13, 17, 0, 13, 2, 2, 2, 17, 18, 13, 13, 13, 17, 14, 2, 4, 18, 13, 2, 13, 13, 18, 13, 13, 0, 13, 2, 2, 17, 18, 13, 13, 4, 18, 13, 2, 13, 13, 0, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 144, 8 ], [ 144, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 37, 38 ], [ 11, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 52, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 50, 58 ], [ 49, 59 ], [ 59, 60 ], [ 61, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 59, 67 ], [ 11, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 72, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 70, 78 ], [ 11, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 80, 87 ], [ 87, 88 ], [ 87, 89 ], [ 79, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 79, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 109, 111 ], [ 11, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 127, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 127, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 11, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 9, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "import java.util.*;\nimport java.io.*;\n \npublic class Main {\n public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tdouble a = Double.parseDouble(sc.next());\n double b = Double.parseDouble(sc.next());\n \tdouble h = Double.parseDouble(sc.next());\n \tdouble m = Double.parseDouble(sc.next());\n \n \th = 2*Math.PI*h/12 + 2*Math.PI*m/720;\n \tm = 2*Math.PI*m/60;\n \n \tif (Math.abs(h - m) > Math.PI) h = 2*Math.PI - Math.abs(h - m);\n \telse h = Math.abs(h - m);\n \t\n \tdouble result = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h));\n \tSystem.out.println(result);\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tdouble a = Double.parseDouble(sc.next());\n double b = Double.parseDouble(sc.next());\n \tdouble h = Double.parseDouble(sc.next());\n \tdouble m = Double.parseDouble(sc.next());\n \n \th = 2*Math.PI*h/12 + 2*Math.PI*m/720;\n \tm = 2*Math.PI*m/60;\n \n \tif (Math.abs(h - m) > Math.PI) h = 2*Math.PI - Math.abs(h - m);\n \telse h = Math.abs(h - m);\n \t\n \tdouble result = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h));\n \tSystem.out.println(result);\n }\n}", "Main", "public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tdouble a = Double.parseDouble(sc.next());\n double b = Double.parseDouble(sc.next());\n \tdouble h = Double.parseDouble(sc.next());\n \tdouble m = Double.parseDouble(sc.next());\n \n \th = 2*Math.PI*h/12 + 2*Math.PI*m/720;\n \tm = 2*Math.PI*m/60;\n \n \tif (Math.abs(h - m) > Math.PI) h = 2*Math.PI - Math.abs(h - m);\n \telse h = Math.abs(h - m);\n \t\n \tdouble result = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h));\n \tSystem.out.println(result);\n }", "main", "{\n final Scanner sc = new Scanner(System.in);\n \tdouble a = Double.parseDouble(sc.next());\n double b = Double.parseDouble(sc.next());\n \tdouble h = Double.parseDouble(sc.next());\n \tdouble m = Double.parseDouble(sc.next());\n \n \th = 2*Math.PI*h/12 + 2*Math.PI*m/720;\n \tm = 2*Math.PI*m/60;\n \n \tif (Math.abs(h - m) > Math.PI) h = 2*Math.PI - Math.abs(h - m);\n \telse h = Math.abs(h - m);\n \t\n \tdouble result = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h));\n \tSystem.out.println(result);\n }", "final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a = Double.parseDouble(sc.next());", "a", "Double.parseDouble(sc.next())", "Double.parseDouble", "Double", "sc.next()", "sc.next", "sc", "double b = Double.parseDouble(sc.next());", "b", "Double.parseDouble(sc.next())", "Double.parseDouble", "Double", "sc.next()", "sc.next", "sc", "double h = Double.parseDouble(sc.next());", "h", "Double.parseDouble(sc.next())", "Double.parseDouble", "Double", "sc.next()", "sc.next", "sc", "double m = Double.parseDouble(sc.next());", "m", "Double.parseDouble(sc.next())", "Double.parseDouble", "Double", "sc.next()", "sc.next", "sc", "h = 2*Math.PI*h/12 + 2*Math.PI*m/720", "h", "2*Math.PI*h/12 + 2*Math.PI*m/720", "2*Math.PI*h/12", "2*Math.PI*h", "2*Math.PI*h", "2", "Math.PI", "Math", "Math.PI", "h", "12", "2*Math.PI*m/720", "2*Math.PI*m", "2*Math.PI*m", "2", "Math.PI", "Math", "Math.PI", "m", "720", "m = 2*Math.PI*m/60", "m", "2*Math.PI*m/60", "2*Math.PI*m", "2*Math.PI*m", "2", "Math.PI", "Math", "Math.PI", "m", "60", "if (Math.abs(h - m) > Math.PI) h = 2*Math.PI - Math.abs(h - m);\n \telse h = Math.abs(h - m);", "Math.abs(h - m) > Math.PI", "Math.abs(h - m)", "Math.abs", "Math", "h - m", "h", "m", "Math.PI", "Math", "Math.PI", "h = 2*Math.PI - Math.abs(h - m)", "h", "2*Math.PI - Math.abs(h - m)", "2*Math.PI", "2", "Math.PI", "Math", "Math.PI", "Math.abs(h - m)", "Math.abs", "Math", "h - m", "h", "m", "h = Math.abs(h - m)", "h", "Math.abs(h - m)", "Math.abs", "Math", "h - m", "h", "m", "double result = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h));", "result", "Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h))", "Math.sqrt", "Math", "a*a + b*b - 2*a*b*Math.cos(h)", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(h)", "b", "2*a*b*Math.cos(h)", "2", "a", "b", "Math.cos(h)", "Math.cos", "Math", "h", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "final String[] args", "args", "public class Main {\n public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tdouble a = Double.parseDouble(sc.next());\n double b = Double.parseDouble(sc.next());\n \tdouble h = Double.parseDouble(sc.next());\n \tdouble m = Double.parseDouble(sc.next());\n \n \th = 2*Math.PI*h/12 + 2*Math.PI*m/720;\n \tm = 2*Math.PI*m/60;\n \n \tif (Math.abs(h - m) > Math.PI) h = 2*Math.PI - Math.abs(h - m);\n \telse h = Math.abs(h - m);\n \t\n \tdouble result = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h));\n \tSystem.out.println(result);\n }\n}", "public class Main {\n public static void main (final String[] args) {\n final Scanner sc = new Scanner(System.in);\n \tdouble a = Double.parseDouble(sc.next());\n double b = Double.parseDouble(sc.next());\n \tdouble h = Double.parseDouble(sc.next());\n \tdouble m = Double.parseDouble(sc.next());\n \n \th = 2*Math.PI*h/12 + 2*Math.PI*m/720;\n \tm = 2*Math.PI*m/60;\n \n \tif (Math.abs(h - m) > Math.PI) h = 2*Math.PI - Math.abs(h - m);\n \telse h = Math.abs(h - m);\n \t\n \tdouble result = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h));\n \tSystem.out.println(result);\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main (final String[] args) { final Scanner sc = new Scanner(System.in); double a = Double.parseDouble(sc.next()); double b = Double.parseDouble(sc.next()); double h = Double.parseDouble(sc.next()); double m = Double.parseDouble(sc.next()); h = 2*Math.PI*h/12 + 2*Math.PI*m/720; m = 2*Math.PI*m/60; if (Math.abs(h - m) > Math.PI) h = 2*Math.PI - Math.abs(h - m); else h = Math.abs(h - m); double result = Math.sqrt(a*a + b*b - 2*a*b*Math.cos(h)); System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 2, 17, 4, 18, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 124, 5 ], [ 124, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 8, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 8, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 8, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 97, 101 ], [ 90, 102 ], [ 104, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 104, 108 ], [ 8, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 6, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble p = h*30 + m*0.5;\n\t\tdouble q = m*6;\n\t\t\n\t\tdouble ans = 0;\n\t\tdouble th = Math.abs(p-q);\n\t\tdouble th1 = 360 - Math.abs((p-q));\n\t\tif(th<th1) {\n\t\t\tans = th;\n\t\t}else {\n\t\t\tans = th1;\n\t\t}\n\t\tdouble result = Math.cos(Math.toRadians(ans));\n\t\tdouble line = Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result;\n\t\tdouble x = Math.sqrt(line);\n\t\tSystem.out.println(x);\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 sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble p = h*30 + m*0.5;\n\t\tdouble q = m*6;\n\t\t\n\t\tdouble ans = 0;\n\t\tdouble th = Math.abs(p-q);\n\t\tdouble th1 = 360 - Math.abs((p-q));\n\t\tif(th<th1) {\n\t\t\tans = th;\n\t\t}else {\n\t\t\tans = th1;\n\t\t}\n\t\tdouble result = Math.cos(Math.toRadians(ans));\n\t\tdouble line = Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result;\n\t\tdouble x = Math.sqrt(line);\n\t\tSystem.out.println(x);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble p = h*30 + m*0.5;\n\t\tdouble q = m*6;\n\t\t\n\t\tdouble ans = 0;\n\t\tdouble th = Math.abs(p-q);\n\t\tdouble th1 = 360 - Math.abs((p-q));\n\t\tif(th<th1) {\n\t\t\tans = th;\n\t\t}else {\n\t\t\tans = th1;\n\t\t}\n\t\tdouble result = Math.cos(Math.toRadians(ans));\n\t\tdouble line = Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result;\n\t\tdouble x = Math.sqrt(line);\n\t\tSystem.out.println(x);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble p = h*30 + m*0.5;\n\t\tdouble q = m*6;\n\t\t\n\t\tdouble ans = 0;\n\t\tdouble th = Math.abs(p-q);\n\t\tdouble th1 = 360 - Math.abs((p-q));\n\t\tif(th<th1) {\n\t\t\tans = th;\n\t\t}else {\n\t\t\tans = th1;\n\t\t}\n\t\tdouble result = Math.cos(Math.toRadians(ans));\n\t\tdouble line = Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result;\n\t\tdouble x = Math.sqrt(line);\n\t\tSystem.out.println(x);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double p = h*30 + m*0.5;", "p", "h*30 + m*0.5", "h*30", "h", "30", "m*0.5", "m", "0.5", "double q = m*6;", "q", "m*6", "m", "6", "double ans = 0;", "ans", "0", "double th = Math.abs(p-q);", "th", "Math.abs(p-q)", "Math.abs", "Math", "p-q", "p", "q", "double th1 = 360 - Math.abs((p-q));", "th1", "360 - Math.abs((p-q))", "360", "Math.abs((p-q))", "Math.abs", "Math", "(p-q)", "p", "q", "if(th<th1) {\n\t\t\tans = th;\n\t\t}else {\n\t\t\tans = th1;\n\t\t}", "th<th1", "th", "th1", "{\n\t\t\tans = th;\n\t\t}", "ans = th", "ans", "th", "{\n\t\t\tans = th1;\n\t\t}", "ans = th1", "ans", "th1", "double result = Math.cos(Math.toRadians(ans));", "result", "Math.cos(Math.toRadians(ans))", "Math.cos", "Math", "Math.toRadians(ans)", "Math.toRadians", "Math", "ans", "double line = Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result;", "line", "Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result", "Math.pow(a,2) + Math.pow(b, 2)", "Math.pow(a,2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "2*a*b*result", "b", "2*a*b*result", "2", "a", "b", "result", "double x = Math.sqrt(line);", "x", "Math.sqrt(line)", "Math.sqrt", "Math", "line", "System.out.println(x)", "System.out.println", "System.out", "System", "System.out", "x", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble p = h*30 + m*0.5;\n\t\tdouble q = m*6;\n\t\t\n\t\tdouble ans = 0;\n\t\tdouble th = Math.abs(p-q);\n\t\tdouble th1 = 360 - Math.abs((p-q));\n\t\tif(th<th1) {\n\t\t\tans = th;\n\t\t}else {\n\t\t\tans = th1;\n\t\t}\n\t\tdouble result = Math.cos(Math.toRadians(ans));\n\t\tdouble line = Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result;\n\t\tdouble x = Math.sqrt(line);\n\t\tSystem.out.println(x);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble p = h*30 + m*0.5;\n\t\tdouble q = m*6;\n\t\t\n\t\tdouble ans = 0;\n\t\tdouble th = Math.abs(p-q);\n\t\tdouble th1 = 360 - Math.abs((p-q));\n\t\tif(th<th1) {\n\t\t\tans = th;\n\t\t}else {\n\t\t\tans = th1;\n\t\t}\n\t\tdouble result = Math.cos(Math.toRadians(ans));\n\t\tdouble line = Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result;\n\t\tdouble x = Math.sqrt(line);\n\t\tSystem.out.println(x);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double p = h*30 + m*0.5; double q = m*6; double ans = 0; double th = Math.abs(p-q); double th1 = 360 - Math.abs((p-q)); if(th<th1) { ans = th; }else { ans = th1; } double result = Math.cos(Math.toRadians(ans)); double line = Math.pow(a,2) + Math.pow(b, 2) - 2*a*b*result; double x = Math.sqrt(line); System.out.println(x); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 13, 17, 13, 17, 41, 13, 2, 13, 17, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 41, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 34, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 8, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 8, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 8, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 82, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 82, 86 ], [ 8, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 8, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java. util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tdouble s = (h*60+m)*(0.5);\n\t\tdouble l = m*6;\n\n\t\tdouble kaku = s-l;\n\n\t\tif(kaku>180) {\n\t\t\tkaku = 360-kaku;\n\t\t}\n\n\t\tdouble cos = Math.cos(Math.toRadians(kaku));\n\n\t\tdouble result2 = a*a + b*b - 2*a*b*cos;\n\n\t\tdouble result = Math.sqrt(result2);\n\n\t\tSystem.out.println(result);\n\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 scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tdouble s = (h*60+m)*(0.5);\n\t\tdouble l = m*6;\n\n\t\tdouble kaku = s-l;\n\n\t\tif(kaku>180) {\n\t\t\tkaku = 360-kaku;\n\t\t}\n\n\t\tdouble cos = Math.cos(Math.toRadians(kaku));\n\n\t\tdouble result2 = a*a + b*b - 2*a*b*cos;\n\n\t\tdouble result = Math.sqrt(result2);\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tdouble s = (h*60+m)*(0.5);\n\t\tdouble l = m*6;\n\n\t\tdouble kaku = s-l;\n\n\t\tif(kaku>180) {\n\t\t\tkaku = 360-kaku;\n\t\t}\n\n\t\tdouble cos = Math.cos(Math.toRadians(kaku));\n\n\t\tdouble result2 = a*a + b*b - 2*a*b*cos;\n\n\t\tdouble result = Math.sqrt(result2);\n\n\t\tSystem.out.println(result);\n\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tdouble s = (h*60+m)*(0.5);\n\t\tdouble l = m*6;\n\n\t\tdouble kaku = s-l;\n\n\t\tif(kaku>180) {\n\t\t\tkaku = 360-kaku;\n\t\t}\n\n\t\tdouble cos = Math.cos(Math.toRadians(kaku));\n\n\t\tdouble result2 = a*a + b*b - 2*a*b*cos;\n\n\t\tdouble result = Math.sqrt(result2);\n\n\t\tSystem.out.println(result);\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "int b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "int m = scan.nextInt();", "m", "scan.nextInt()", "scan.nextInt", "scan", "double s = (h*60+m)*(0.5);", "s", "(h*60+m)*(0.5)", "(h*60+m)", "h*60", "h", "60", "m", "(0.5)", "double l = m*6;", "l", "m*6", "m", "6", "double kaku = s-l;", "kaku", "s-l", "s", "l", "if(kaku>180) {\n\t\t\tkaku = 360-kaku;\n\t\t}", "kaku>180", "kaku", "180", "{\n\t\t\tkaku = 360-kaku;\n\t\t}", "kaku = 360-kaku", "kaku", "360-kaku", "360", "kaku", "double cos = Math.cos(Math.toRadians(kaku));", "cos", "Math.cos(Math.toRadians(kaku))", "Math.cos", "Math", "Math.toRadians(kaku)", "Math.toRadians", "Math", "kaku", "double result2 = a*a + b*b - 2*a*b*cos;", "result2", "a*a + b*b - 2*a*b*cos", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*cos", "b", "2*a*b*cos", "2", "a", "b", "cos", "double result = Math.sqrt(result2);", "result", "Math.sqrt(result2)", "Math.sqrt", "Math", "result2", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tdouble s = (h*60+m)*(0.5);\n\t\tdouble l = m*6;\n\n\t\tdouble kaku = s-l;\n\n\t\tif(kaku>180) {\n\t\t\tkaku = 360-kaku;\n\t\t}\n\n\t\tdouble cos = Math.cos(Math.toRadians(kaku));\n\n\t\tdouble result2 = a*a + b*b - 2*a*b*cos;\n\n\t\tdouble result = Math.sqrt(result2);\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tint b = scan.nextInt();\n\t\tint h = scan.nextInt();\n\t\tint m = scan.nextInt();\n\n\t\tdouble s = (h*60+m)*(0.5);\n\t\tdouble l = m*6;\n\n\t\tdouble kaku = s-l;\n\n\t\tif(kaku>180) {\n\t\t\tkaku = 360-kaku;\n\t\t}\n\n\t\tdouble cos = Math.cos(Math.toRadians(kaku));\n\n\t\tdouble result2 = a*a + b*b - 2*a*b*cos;\n\n\t\tdouble result = Math.sqrt(result2);\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}", "Main" ]
import java. util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner scan = new Scanner(System.in); int a = scan.nextInt(); int b = scan.nextInt(); int h = scan.nextInt(); int m = scan.nextInt(); double s = (h*60+m)*(0.5); double l = m*6; double kaku = s-l; if(kaku>180) { kaku = 360-kaku; } double cos = Math.cos(Math.toRadians(kaku)); double result2 = a*a + b*b - 2*a*b*cos; double result = Math.sqrt(result2); System.out.println(result); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 17, 41, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 42, 2, 40, 13, 17, 30, 4, 13, 4, 18, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 2, 13, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 2, 13, 13, 2, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 4, 18, 13, 13, 4, 18, 13, 17, 23, 13, 12, 13, 30, 41, 13, 17, 0, 13, 13, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 0, 13, 4, 13, 13, 13, 0, 13, 4, 13, 13, 13, 0, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 20, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 0, 18, 13, 17, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 40, 18, 13, 13, 30, 11, 1, 41, 13, 2, 17, 13, 2, 13, 17, 1, 0, 13, 13, 30, 0, 18, 13, 13, 17, 12, 13, 30, 14, 2, 13, 17, 29, 17, 11, 1, 41, 13, 17, 2, 2, 13, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 29, 17, 29, 17, 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, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 2, 2, 17, 13, 2, 2, 17, 13, 17, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 13, 0, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 412, 14 ], [ 412, 15 ], [ 15, 16 ], [ 15, 17 ], [ 412, 18 ], [ 18, 19 ], [ 18, 20 ], [ 412, 21 ], [ 21, 22 ], [ 412, 23 ], [ 23, 24 ], [ 23, 25 ], [ 412, 26 ], [ 26, 27 ], [ 26, 28 ], [ 412, 29 ], [ 29, 30 ], [ 29, 31 ], [ 412, 33 ], [ 33, 34 ], [ 33, 35 ], [ 412, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 39, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 38, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 412, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 412, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 412, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 87, 92 ], [ 92, 93 ], [ 93, 94 ], [ 83, 95 ], [ 95, 96 ], [ 96, 97 ], [ 81, 98 ], [ 98, 99 ], [ 412, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 105, 111 ], [ 104, 112 ], [ 100, 113 ], [ 113, 114 ], [ 100, 115 ], [ 115, 116 ], [ 412, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 117, 126 ], [ 126, 127 ], [ 117, 128 ], [ 128, 129 ], [ 412, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 134, 144 ], [ 130, 145 ], [ 145, 146 ], [ 130, 147 ], [ 147, 148 ], [ 412, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 154, 157 ], [ 153, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 149, 162 ], [ 162, 163 ], [ 412, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 170, 172 ], [ 166, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 173, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 178, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 186, 188 ], [ 186, 189 ], [ 177, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 192, 194 ], [ 192, 195 ], [ 177, 196 ], [ 196, 197 ], [ 196, 198 ], [ 166, 199 ], [ 199, 200 ], [ 164, 201 ], [ 201, 202 ], [ 164, 203 ], [ 203, 204 ], [ 412, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 207, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 215, 218 ], [ 207, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 220, 223 ], [ 205, 224 ], [ 224, 225 ], [ 412, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 229, 233 ], [ 228, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 236, 238 ], [ 234, 239 ], [ 239, 240 ], [ 239, 241 ], [ 234, 242 ], [ 242, 243 ], [ 243, 244 ], [ 234, 245 ], [ 246, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 247, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 257, 259 ], [ 253, 260 ], [ 260, 261 ], [ 260, 262 ], [ 253, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 253, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 269, 271 ], [ 268, 272 ], [ 412, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 276, 280 ], [ 280, 281 ], [ 275, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 282, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 287, 291 ], [ 282, 292 ], [ 292, 293 ], [ 293, 294 ], [ 282, 295 ], [ 296, 296 ], [ 296, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 298, 302 ], [ 297, 303 ], [ 303, 304 ], [ 275, 305 ], [ 305, 306 ], [ 273, 307 ], [ 307, 308 ], [ 412, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 312, 316 ], [ 316, 317 ], [ 311, 318 ], [ 318, 319 ], [ 319, 320 ], [ 319, 321 ], [ 319, 322 ], [ 322, 323 ], [ 322, 324 ], [ 309, 325 ], [ 325, 326 ], [ 309, 327 ], [ 327, 328 ], [ 412, 329 ], [ 329, 330 ], [ 329, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 331, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 331, 340 ], [ 340, 341 ], [ 340, 342 ], [ 342, 343 ], [ 331, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 331, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 350, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 354, 358 ], [ 331, 359 ], [ 359, 360 ], [ 359, 361 ], [ 361, 362 ], [ 362, 363 ], [ 361, 364 ], [ 364, 365 ], [ 365, 366 ], [ 366, 367 ], [ 366, 368 ], [ 365, 369 ], [ 369, 370 ], [ 369, 371 ], [ 364, 372 ], [ 374, 373 ], [ 373, 374 ], [ 374, 375 ], [ 374, 376 ], [ 373, 377 ], [ 374, 378 ], [ 378, 379 ], [ 379, 380 ], [ 378, 381 ], [ 381, 382 ], [ 382, 383 ], [ 381, 384 ], [ 331, 385 ], [ 385, 386 ], [ 386, 387 ], [ 385, 388 ], [ 388, 389 ], [ 389, 390 ], [ 388, 391 ], [ 412, 392 ], [ 392, 393 ], [ 392, 394 ], [ 394, 395 ], [ 392, 396 ], [ 396, 397 ], [ 392, 398 ], [ 398, 399 ], [ 398, 400 ], [ 400, 401 ], [ 401, 402 ], [ 401, 403 ], [ 400, 404 ], [ 404, 405 ], [ 404, 406 ], [ 398, 407 ], [ 407, 408 ], [ 398, 409 ], [ 409, 410 ], [ 0, 411 ], [ 411, 412 ], [ 411, 413 ] ]
[ "import java.math.BigInteger;\nimport java.util.*;\nimport java.io.*;\nimport java.text.*;\n\npublic class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n\n static long mod = (long) 998244353;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int maxn = 1000005;\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static long modpow(long x, long y) {\n long res = 1l;\n x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res = pro(res, x);\n x = pro(x, x);\n y /= 2;\n }\n return res;\n }\n\n static class pair {\n String a;\n int b;\n\n pair(String x, int y) {\n a = x;\n b = y;\n }\n }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static long gcd(long a, long b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n static DecimalFormat df=new DecimalFormat(\"0.000000000000000000000\");\n static void solve() {\n int a = ni();\n int b = ni();\n int h = ni();\n int m = ni();\n double alpha = (30.0 * h) - ((11.0 * m) / 2.0);\n// out.println(Math.cos(Math.toRadians(270)));\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha)));\n out.println(df.format(ans));\n }\n}\n", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.text.*;", "text.*", "java", "public class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n\n static long mod = (long) 998244353;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int maxn = 1000005;\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static long modpow(long x, long y) {\n long res = 1l;\n x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res = pro(res, x);\n x = pro(x, x);\n y /= 2;\n }\n return res;\n }\n\n static class pair {\n String a;\n int b;\n\n pair(String x, int y) {\n a = x;\n b = y;\n }\n }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static long gcd(long a, long b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n static DecimalFormat df=new DecimalFormat(\"0.000000000000000000000\");\n static void solve() {\n int a = ni();\n int b = ni();\n int h = ni();\n int m = ni();\n double alpha = (30.0 * h) - ((11.0 * m) / 2.0);\n// out.println(Math.cos(Math.toRadians(270)));\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha)));\n out.println(df.format(ans));\n }\n}", "Main", "static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);", "br", "new BufferedReader(new InputStreamReader(System.in), 32768)", "static PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "static StringTokenizer t;", "t", "static long mod = (long) 998244353;", "mod", "(long) 998244353", "static int maxn = 1000005;", "maxn", "1000005", "static boolean v[] = new boolean[1000005];", "v", "new boolean[1000005]", "1000005", "static DecimalFormat df=new DecimalFormat(\"0.000000000000000000000\");", "df", "new DecimalFormat(\"0.000000000000000000000\")", "static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }", "sn", "{\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }", "while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "t == null || !t.hasMoreTokens()", "t == null", "t", "null", "!t.hasMoreTokens()", "t.hasMoreTokens()", "t.hasMoreTokens", "t", "{\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }", "try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }", "catch (IOException e) {\n throw new RuntimeException();\n }", "IOException e", "{\n throw new RuntimeException();\n }", "throw new RuntimeException();", "new RuntimeException()", "{\n t = new StringTokenizer(br.readLine());\n }", "t = new StringTokenizer(br.readLine())", "t", "new StringTokenizer(br.readLine())", "return t.nextToken();", "t.nextToken()", "t.nextToken", "t", "static int ni() {\n return Integer.parseInt(sn());\n }", "ni", "{\n return Integer.parseInt(sn());\n }", "return Integer.parseInt(sn());", "Integer.parseInt(sn())", "Integer.parseInt", "Integer", "sn()", "sn", "static long nlo() {\n return Long.parseLong(sn());\n }", "nlo", "{\n return Long.parseLong(sn());\n }", "return Long.parseLong(sn());", "Long.parseLong(sn())", "Long.parseLong", "Long", "sn()", "sn", "public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }", "main", "{\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }", "int t = 1;", "t", "1", "while (t-- > 0) {\n solve();\n }", "t-- > 0", "t--", "t", "0", "{\n solve();\n }", "solve()", "solve", "out.close()", "out.close", "out", "String args[]", "args", "static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }", "pro", "{\n return (a % mod * b % mod) % mod;\n }", "return (a % mod * b % mod) % mod;", "(a % mod * b % mod) % mod", "(a % mod * b % mod)", "a % mod * b", "a % mod", "a", "mod", "b", "mod", "mod", "long a", "a", "long b", "b", "static long add(long a, long b) {\n return (a + b) % mod;\n }", "add", "{\n return (a + b) % mod;\n }", "return (a + b) % mod;", "(a + b) % mod", "(a + b)", "a", "b", "mod", "long a", "a", "long b", "b", "static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }", "sub", "{\n return ((a % mod - b % mod) + mod) % mod;\n }", "return ((a % mod - b % mod) + mod) % mod;", "((a % mod - b % mod) + mod) % mod", "((a % mod - b % mod) + mod)", "(a % mod - b % mod)", "a % mod", "a", "mod", "b % mod", "b", "mod", "mod", "mod", "long a", "a", "long b", "b", "static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }", "pow", "{\n return (int) (Math.log10(n) / Math.log10(2));\n }", "return (int) (Math.log10(n) / Math.log10(2));", "(int) (Math.log10(n) / Math.log10(2))", "Math.log10(n)", "Math.log10", "Math", "n", "Math.log10(2)", "Math.log10", "Math", "2", "int n", "n", "static long modpow(long x, long y) {\n long res = 1l;\n x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res = pro(res, x);\n x = pro(x, x);\n y /= 2;\n }\n return res;\n }", "modpow", "{\n long res = 1l;\n x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res = pro(res, x);\n x = pro(x, x);\n y /= 2;\n }\n return res;\n }", "long res = 1l;", "res", "1l", "x %= mod", "x", "mod", "while (y > 0) {\n if (y % 2 != 0)\n res = pro(res, x);\n x = pro(x, x);\n y /= 2;\n }", "y > 0", "y", "0", "{\n if (y % 2 != 0)\n res = pro(res, x);\n x = pro(x, x);\n y /= 2;\n }", "if (y % 2 != 0)\n res = pro(res, x);", "y % 2 != 0", "y % 2", "y", "2", "0", "res = pro(res, x)", "res", "pro(res, x)", "pro", "res", "x", "x = pro(x, x)", "x", "pro(x, x)", "pro", "x", "x", "y /= 2", "y", "2", "return res;", "res", "long x", "x", "long y", "y", "static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }", "modInverse", "{\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }", "BigInteger n1 = new BigInteger(Long.toString(n));", "n1", "new BigInteger(Long.toString(n))", "String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();", "s", "(n1.modInverse(new BigInteger(Long.toString(mod)))).toString()", "(n1.modInverse(new BigInteger(Long.toString(mod)))).toString", "(n1.modInverse(new BigInteger(Long.toString(mod))))", "n1.modInverse", "n1", "new BigInteger(Long.toString(mod))", "return Long.parseLong(s);", "Long.parseLong(s)", "Long.parseLong", "Long", "s", "long n", "n", "static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }", "seive", "{\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }", "v[1] = true", "v[1]", "v", "1", "true", "for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }", "int i = 2;", "int i = 2;", "i", "2", "i < 1000005", "i", "1000005", "i++", "i++", "i", "{\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }", "{\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }", "if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }", "!v[i]", "v[i]", "v", "i", "{\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }", "for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;", "int j = 2 * i;", "int j = 2 * i;", "j", "2 * i", "2", "i", "j < 1000005", "j", "1000005", "j += i", "j += i", "j", "i", "v[j] = true;", "v[j] = true", "v[j]", "v", "j", "true", "static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }", "isprime", "{\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }", "if (n == 1)\n return false;", "n == 1", "n", "1", "return false;", "false", "for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }", "int i = 2;", "int i = 2;", "i", "2", "i * i <= n", "i * i", "i", "i", "n", "i++", "i++", "i", "{\n if (n % i == 0)\n return false;\n }", "{\n if (n % i == 0)\n return false;\n }", "if (n % i == 0)\n return false;", "n % i == 0", "n % i", "n", "i", "0", "return false;", "false", "return true;", "true", "long n", "n", "static long gcd(long a, long b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }", "gcd", "{\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }", "if (b == 0)\n 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", "static void solve() {\n int a = ni();\n int b = ni();\n int h = ni();\n int m = ni();\n double alpha = (30.0 * h) - ((11.0 * m) / 2.0);\n// out.println(Math.cos(Math.toRadians(270)));\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha)));\n out.println(df.format(ans));\n }", "solve", "{\n int a = ni();\n int b = ni();\n int h = ni();\n int m = ni();\n double alpha = (30.0 * h) - ((11.0 * m) / 2.0);\n// out.println(Math.cos(Math.toRadians(270)));\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha)));\n out.println(df.format(ans));\n }", "int a = ni();", "a", "ni()", "ni", "int b = ni();", "b", "ni()", "ni", "int h = ni();", "h", "ni()", "ni", "int m = ni();", "m", "ni()", "ni", "double alpha = (30.0 * h) - ((11.0 * m) / 2.0);", "alpha", "(30.0 * h) - ((11.0 * m) / 2.0)", "(30.0 * h)", "30.0", "h", "((11.0 * m) / 2.0)", "(11.0 * m)", "11.0", "m", "2.0", "double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha)));", "ans", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha)))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha))", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(Math.toRadians(alpha))", "b", "2 * a * b * Math.cos(Math.toRadians(alpha))", "2", "a", "b", "Math.cos(Math.toRadians(alpha))", "Math.cos", "Math", "Math.toRadians(alpha)", "Math.toRadians", "Math", "alpha", "out.println(df.format(ans))", "out.println", "out", "df.format(ans)", "df.format", "df", "ans", "static class pair {\n String a;\n int b;\n\n pair(String x, int y) {\n a = x;\n b = y;\n }\n }", "pair", "String a;", "a", "int b;", "b", "pair(String x, int y) {\n a = x;\n b = y;\n }", "pair", "{\n a = x;\n b = y;\n }", "a = x", "a", "x", "b = y", "b", "y", "String x", "x", "int y", "y", "public class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n\n static long mod = (long) 998244353;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int maxn = 1000005;\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static long modpow(long x, long y) {\n long res = 1l;\n x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res = pro(res, x);\n x = pro(x, x);\n y /= 2;\n }\n return res;\n }\n\n static class pair {\n String a;\n int b;\n\n pair(String x, int y) {\n a = x;\n b = y;\n }\n }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static long gcd(long a, long b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n static DecimalFormat df=new DecimalFormat(\"0.000000000000000000000\");\n static void solve() {\n int a = ni();\n int b = ni();\n int h = ni();\n int m = ni();\n double alpha = (30.0 * h) - ((11.0 * m) / 2.0);\n// out.println(Math.cos(Math.toRadians(270)));\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha)));\n out.println(df.format(ans));\n }\n}", "public class Main {\n static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768);\n static PrintWriter out = new PrintWriter(System.out);\n static StringTokenizer t;\n\n static String sn() {\n while (t == null || !t.hasMoreTokens()) {\n try {\n t = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }\n return t.nextToken();\n }\n\n static int ni() {\n return Integer.parseInt(sn());\n }\n\n static long nlo() {\n return Long.parseLong(sn());\n }\n\n public static void main(String args[]) {\n int t = 1;\n while (t-- > 0) {\n solve();\n }\n out.close();\n }\n\n static long mod = (long) 998244353;\n\n static long pro(long a, long b) {\n return (a % mod * b % mod) % mod;\n }\n\n static long add(long a, long b) {\n return (a + b) % mod;\n }\n\n static long sub(long a, long b) {\n return ((a % mod - b % mod) + mod) % mod;\n }\n\n static int maxn = 1000005;\n\n static int pow(int n) {\n return (int) (Math.log10(n) / Math.log10(2));\n }\n\n static long modpow(long x, long y) {\n long res = 1l;\n x %= mod;\n while (y > 0) {\n if (y % 2 != 0)\n res = pro(res, x);\n x = pro(x, x);\n y /= 2;\n }\n return res;\n }\n\n static class pair {\n String a;\n int b;\n\n pair(String x, int y) {\n a = x;\n b = y;\n }\n }\n\n static long modInverse(long n) {\n BigInteger n1 = new BigInteger(Long.toString(n));\n String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString();\n return Long.parseLong(s);\n }\n\n static boolean v[] = new boolean[1000005];\n\n static void seive() {\n v[1] = true;\n for (int i = 2; i < 1000005; i++) {\n if (!v[i]) {\n for (int j = 2 * i; j < 1000005; j += i)\n v[j] = true;\n }\n }\n }\n\n static boolean isprime(long n) {\n if (n == 1)\n return false;\n for (int i = 2; i * i <= n; i++) {\n if (n % i == 0)\n return false;\n }\n return true;\n }\n\n static long gcd(long a, long b) {\n if (b == 0)\n return a;\n return gcd(b, a % b);\n }\n static DecimalFormat df=new DecimalFormat(\"0.000000000000000000000\");\n static void solve() {\n int a = ni();\n int b = ni();\n int h = ni();\n int m = ni();\n double alpha = (30.0 * h) - ((11.0 * m) / 2.0);\n// out.println(Math.cos(Math.toRadians(270)));\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha)));\n out.println(df.format(ans));\n }\n}", "Main" ]
import java.math.BigInteger; import java.util.*; import java.io.*; import java.text.*; public class Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 32768); static PrintWriter out = new PrintWriter(System.out); static StringTokenizer t; static String sn() { while (t == null || !t.hasMoreTokens()) { try { t = new StringTokenizer(br.readLine()); } catch (IOException e) { throw new RuntimeException(); } } return t.nextToken(); } static int ni() { return Integer.parseInt(sn()); } static long nlo() { return Long.parseLong(sn()); } public static void main(String args[]) { int t = 1; while (t-- > 0) { solve(); } out.close(); } static long mod = (long) 998244353; static long pro(long a, long b) { return (a % mod * b % mod) % mod; } static long add(long a, long b) { return (a + b) % mod; } static long sub(long a, long b) { return ((a % mod - b % mod) + mod) % mod; } static int maxn = 1000005; static int pow(int n) { return (int) (Math.log10(n) / Math.log10(2)); } static long modpow(long x, long y) { long res = 1l; x %= mod; while (y > 0) { if (y % 2 != 0) res = pro(res, x); x = pro(x, x); y /= 2; } return res; } static class pair { String a; int b; pair(String x, int y) { a = x; b = y; } } static long modInverse(long n) { BigInteger n1 = new BigInteger(Long.toString(n)); String s = (n1.modInverse(new BigInteger(Long.toString(mod)))).toString(); return Long.parseLong(s); } static boolean v[] = new boolean[1000005]; static void seive() { v[1] = true; for (int i = 2; i < 1000005; i++) { if (!v[i]) { for (int j = 2 * i; j < 1000005; j += i) v[j] = true; } } } static boolean isprime(long n) { if (n == 1) return false; for (int i = 2; i * i <= n; i++) { if (n % i == 0) return false; } return true; } static long gcd(long a, long b) { if (b == 0) return a; return gcd(b, a % b); } static DecimalFormat df=new DecimalFormat("0.000000000000000000000"); static void solve() { int a = ni(); int b = ni(); int h = ni(); int m = ni(); double alpha = (30.0 * h) - ((11.0 * m) / 2.0); // out.println(Math.cos(Math.toRadians(270))); double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(alpha))); out.println(df.format(ans)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 2, 2, 13, 17, 13, 17, 41, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 69, 73 ], [ 62, 74 ], [ 76, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hDegree = (h*60+m)*0.5;\n double mDegree = m*6;\n double degree = Math.abs(hDegree-mDegree);\n\n double ans = Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree)));\n System.out.println(ans);\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 int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hDegree = (h*60+m)*0.5;\n double mDegree = m*6;\n double degree = Math.abs(hDegree-mDegree);\n\n double ans = Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree)));\n System.out.println(ans);\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hDegree = (h*60+m)*0.5;\n double mDegree = m*6;\n double degree = Math.abs(hDegree-mDegree);\n\n double ans = Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree)));\n System.out.println(ans);\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hDegree = (h*60+m)*0.5;\n double mDegree = m*6;\n double degree = Math.abs(hDegree-mDegree);\n\n double ans = Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree)));\n System.out.println(ans);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "double hDegree = (h*60+m)*0.5;", "hDegree", "(h*60+m)*0.5", "(h*60+m)", "h*60", "h", "60", "m", "0.5", "double mDegree = m*6;", "mDegree", "m*6", "m", "6", "double degree = Math.abs(hDegree-mDegree);", "degree", "Math.abs(hDegree-mDegree)", "Math.abs", "Math", "hDegree-mDegree", "hDegree", "mDegree", "double ans = Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree)));", "ans", "Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree)))", "Math.sqrt", "Math", "Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree))", "Math.pow(a,2)+Math.pow(b,2)", "Math.pow(a,2)", "Math.pow", "Math", "a", "2", "Math.pow(b,2)", "Math.pow", "Math", "b", "2", "2*a*b*Math.cos(Math.toRadians(degree))", "b", "2*a*b*Math.cos(Math.toRadians(degree))", "2", "a", "b", "Math.cos(Math.toRadians(degree))", "Math.cos", "Math", "Math.toRadians(degree)", "Math.toRadians", "Math", "degree", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hDegree = (h*60+m)*0.5;\n double mDegree = m*6;\n double degree = Math.abs(hDegree-mDegree);\n\n double ans = Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree)));\n System.out.println(ans);\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hDegree = (h*60+m)*0.5;\n double mDegree = m*6;\n double degree = Math.abs(hDegree-mDegree);\n\n double ans = Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree)));\n System.out.println(ans);\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); sc.close(); double hDegree = (h*60+m)*0.5; double mDegree = m*6; double degree = Math.abs(hDegree-mDegree); double ans = Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(degree))); System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 2, 13, 17, 17, 2, 13, 17, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 17, 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 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 34, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 65, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 52, 73 ], [ 6, 74 ], [ 74, 75 ] ]
[ "import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double x = (m*11/360 - h/6) * Math.PI;\n\t\tSystem.out.println(Math.pow(a*a+b*b-2*a*b*Math.cos(x), 0.5));\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double x = (m*11/360 - h/6) * Math.PI;\n\t\tSystem.out.println(Math.pow(a*a+b*b-2*a*b*Math.cos(x), 0.5));\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double x = (m*11/360 - h/6) * Math.PI;\n\t\tSystem.out.println(Math.pow(a*a+b*b-2*a*b*Math.cos(x), 0.5));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n double x = (m*11/360 - h/6) * Math.PI;\n\t\tSystem.out.println(Math.pow(a*a+b*b-2*a*b*Math.cos(x), 0.5));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double a = sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b = sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "double h = sc.nextDouble();", "h", "sc.nextDouble()", "sc.nextDouble", "sc", "double m = sc.nextDouble();", "m", "sc.nextDouble()", "sc.nextDouble", "sc", "double x = (m*11/360 - h/6) * Math.PI;", "x", "(m*11/360 - h/6) * Math.PI", "(m*11/360 - h/6)", "m*11/360", "m*11", "m", "11", "360", "h/6", "h", "6", "Math.PI", "Math", "Math.PI", "System.out.println(Math.pow(a*a+b*b-2*a*b*Math.cos(x), 0.5))", "System.out.println", "System.out", "System", "System.out", "Math.pow(a*a+b*b-2*a*b*Math.cos(x), 0.5)", "Math.pow", "Math", "a*a+b*b-2*a*b*Math.cos(x)", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(x)", "b", "2*a*b*Math.cos(x)", "2", "a", "b", "Math.cos(x)", "Math.cos", "Math", "x", "0.5", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); double a = sc.nextDouble(); double b = sc.nextDouble(); double h = sc.nextDouble(); double m = sc.nextDouble(); double x = (m*11/360 - h/6) * Math.PI; System.out.println(Math.pow(a*a+b*b-2*a*b*Math.cos(x), 0.5)); } }
[ 7, 15, 13, 17, 15, 13, 17, 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, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 2, 17, 18, 13, 13, 2, 13, 17, 2, 2, 2, 13, 17, 17, 18, 13, 13, 2, 2, 17, 18, 13, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 2, 2, 17, 18, 13, 13, 2, 13, 17, 2, 2, 2, 13, 17, 17, 18, 13, 13, 2, 2, 17, 18, 13, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 2, 17, 18, 13, 13, 2, 13, 17, 2, 2, 2, 17, 18, 13, 13, 2, 13, 17, 2, 2, 2, 13, 17, 17, 18, 13, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 274, 26 ], [ 274, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 29, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 29, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 29, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 57, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 54, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 74, 80 ], [ 80, 81 ], [ 80, 82 ], [ 53, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 92, 100 ], [ 102, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 110, 111 ], [ 112, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 110, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 109, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 132, 134 ], [ 129, 135 ], [ 135, 136 ], [ 135, 137 ], [ 53, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 157, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 168, 170 ], [ 165, 171 ], [ 171, 172 ], [ 171, 173 ], [ 164, 174 ], [ 174, 175 ], [ 176, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 178, 180 ], [ 176, 181 ], [ 181, 182 ], [ 181, 183 ], [ 174, 184 ], [ 185, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 185, 189 ], [ 185, 190 ], [ 190, 191 ], [ 190, 192 ], [ 27, 193 ], [ 193, 194 ], [ 274, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 197, 199 ], [ 195, 200 ], [ 200, 201 ], [ 200, 202 ], [ 195, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 206, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 211, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 205, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 195, 226 ], [ 226, 227 ], [ 226, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 230, 233 ], [ 233, 234 ], [ 195, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 242, 247 ], [ 247, 248 ], [ 247, 249 ], [ 242, 250 ], [ 250, 251 ], [ 251, 252 ], [ 242, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 254, 258 ], [ 258, 259 ], [ 237, 260 ], [ 260, 261 ], [ 235, 262 ], [ 262, 263 ], [ 195, 264 ], [ 264, 265 ], [ 264, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 269, 270 ], [ 268, 271 ], [ 271, 272 ], [ 0, 273 ], [ 273, 274 ], [ 273, 275 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\nimport java.lang.Math;\nimport java.util.Map;\nimport java.util.ArrayList;\nimport java.util.Collections;\n\npublic class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int a = fs.nextInt(); int b = fs.nextInt(); int h = fs.nextInt(); int m = fs.nextInt();\n if ((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))) {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))));\n } else {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))));\n }\n\n }\n\n\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\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.*;", "util.*", "java", "import java.lang.Math;", "Math", "java.lang", "import java.util.Map;", "Map", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int a = fs.nextInt(); int b = fs.nextInt(); int h = fs.nextInt(); int m = fs.nextInt();\n if ((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))) {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))));\n } else {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))));\n }\n\n }\n\n\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int a = fs.nextInt(); int b = fs.nextInt(); int h = fs.nextInt(); int m = fs.nextInt();\n if ((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))) {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))));\n } else {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))));\n }\n\n }", "main", "{\n FastScanner fs = new FastScanner();\n int a = fs.nextInt(); int b = fs.nextInt(); int h = fs.nextInt(); int m = fs.nextInt();\n if ((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))) {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))));\n } else {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))));\n }\n\n }", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "int a = fs.nextInt();", "a", "fs.nextInt()", "fs.nextInt", "fs", "int b = fs.nextInt();", "b", "fs.nextInt()", "fs.nextInt", "fs", "int h = fs.nextInt();", "h", "fs.nextInt()", "fs.nextInt", "fs", "int m = fs.nextInt();", "m", "fs.nextInt()", "fs.nextInt", "fs", "if ((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))) {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))));\n } else {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))));\n }", "(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))", "(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)", "2*Math.PI*((double)h/12)", "2*Math.PI*((double)h/12)", "2", "Math.PI", "Math", "Math.PI", "((double)h/12)", "(double)h", "12", "((double)m/720)*2*Math.PI", "((double)m/720)*2*Math.PI", "((double)m/720)", "(double)m", "720", "2", "Math.PI", "Math", "Math.PI", "(2*Math.PI*((double)m/60))", "2*Math.PI*((double)m/60)", "2", "Math.PI", "Math", "Math.PI", "((double)m/60)", "(double)m", "60", "{\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))));\n }", "System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60))))", "Math.sqrt", "Math", "a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))", "b", "2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))", "2", "a", "b", "Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))", "Math.cos", "Math", "(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60))", "(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)", "2*Math.PI*((double)h/12)", "2*Math.PI*((double)h/12)", "2", "Math.PI", "Math", "Math.PI", "((double)h/12)", "(double)h", "12", "((double)m/720)*2*Math.PI", "((double)m/720)*2*Math.PI", "((double)m/720)", "(double)m", "720", "2", "Math.PI", "Math", "Math.PI", "(2*Math.PI*((double)m/60))", "2*Math.PI*((double)m/60)", "2", "Math.PI", "Math", "Math.PI", "((double)m/60)", "(double)m", "60", "{\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))));\n }", "System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)))", "Math.sqrt", "Math", "a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))", "b", "2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))", "2", "a", "b", "Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))", "Math.cos", "Math", "(2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)", "(2*Math.PI*((double)m/60))", "2*Math.PI*((double)m/60)", "2", "Math.PI", "Math", "Math.PI", "((double)m/60)", "(double)m", "60", "(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)", "2*Math.PI*((double)h/12)", "2*Math.PI*((double)h/12)", "2", "Math.PI", "Math", "Math.PI", "((double)h/12)", "(double)h", "12", "((double)m/720)*2*Math.PI", "((double)m/720)*2*Math.PI", "((double)m/720)", "(double)m", "720", "2", "Math.PI", "Math", "Math.PI", "String[] args", "args", "static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "FastScanner", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st=new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "next", "{\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n st=new StringTokenizer(br.readLine());\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 st=new StringTokenizer(br.readLine());\n }", "st=new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "readArray", "{\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }", "int[] a=new int[n];", "a", "new int[n]", "n", "for (int i=0; i<n; i++) a[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "a[i]=nextInt();", "a[i]=nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int a = fs.nextInt(); int b = fs.nextInt(); int h = fs.nextInt(); int m = fs.nextInt();\n if ((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))) {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))));\n } else {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))));\n }\n\n }\n\n\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int a = fs.nextInt(); int b = fs.nextInt(); int h = fs.nextInt(); int m = fs.nextInt();\n if ((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))) {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60)))));\n } else {\n System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI))));\n }\n\n }\n\n\n\n\n static class FastScanner {\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st=new StringTokenizer(\"\");\n String next() {\n while (!st.hasMoreTokens())\n try {\n st=new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n int[] readArray(int n) {\n int[] a=new int[n];\n for (int i=0; i<n; i++) a[i]=nextInt();\n return a;\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.lang.Math; import java.util.Map; import java.util.ArrayList; import java.util.Collections; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); int a = fs.nextInt(); int b = fs.nextInt(); int h = fs.nextInt(); int m = fs.nextInt(); if ((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)>(2*Math.PI*((double)m/60))) { System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)-(2*Math.PI*((double)m/60))))); } else { System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos((2*Math.PI*((double)m/60))-(2*Math.PI*((double)h/12)+((double)m/720)*2*Math.PI)))); } } static class FastScanner { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st=new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) try { st=new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { int[] a=new int[n]; for (int i=0; i<n; i++) a[i]=nextInt(); return a; } long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 2, 2, 2, 13, 17, 2, 2, 13, 17, 17, 2, 13, 17, 17, 18, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 39, 49 ], [ 49, 50 ], [ 49, 51 ], [ 35, 52 ], [ 35, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 68, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 8, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 82, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "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\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\n\t\tdouble angle= Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI;\n\t\tdouble res= (double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle);\n\t\tres =Math.sqrt(res);\n\n System.out.printf(\"%.20f\",res);\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\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\n\t\tdouble angle= Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI;\n\t\tdouble res= (double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle);\n\t\tres =Math.sqrt(res);\n\n System.out.printf(\"%.20f\",res);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\n\t\tdouble angle= Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI;\n\t\tdouble res= (double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle);\n\t\tres =Math.sqrt(res);\n\n System.out.printf(\"%.20f\",res);\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\n\t\tdouble angle= Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI;\n\t\tdouble res= (double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle);\n\t\tres =Math.sqrt(res);\n\n System.out.printf(\"%.20f\",res);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a=sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b=sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h=sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m=sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double angle= Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI;", "angle", "Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI", "Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI", "Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)", "Math.abs", "Math", "(double)h/12+((double)m/60)/12.0 -(double)m/60.0", "(double)h/12+((double)m/60)/12.0", "(double)h/12", "(double)h", "12", "((double)m/60)/12.0", "((double)m/60)", "(double)m", "60", "12.0", "(double)m/60.0", "(double)m", "60.0", "2", "Math.PI", "Math", "Math.PI", "double res= (double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle);", "res", "(double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle)", "(double)a*a +(double)b*b", "(double)a*a", "(double)a", "a", "(double)b*b", "(double)b", "b", "(double) 2*a*b*Math.cos(angle)", "b", "(double) 2*a*b*Math.cos(angle)", "(double) 2", "a", "b", "Math.cos(angle)", "Math.cos", "Math", "angle", "res =Math.sqrt(res)", "res", "Math.sqrt(res)", "Math.sqrt", "Math", "res", "System.out.printf(\"%.20f\",res)", "System.out.printf", "System.out", "System", "System.out", "\"%.20f\"", "res", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\n\t\tdouble angle= Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI;\n\t\tdouble res= (double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle);\n\t\tres =Math.sqrt(res);\n\n System.out.printf(\"%.20f\",res);\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\n\t\tint a=sc.nextInt();\n\t\tint b=sc.nextInt();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\n\t\tdouble angle= Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI;\n\t\tdouble res= (double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle);\n\t\tres =Math.sqrt(res);\n\n System.out.printf(\"%.20f\",res);\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); int a=sc.nextInt(); int b=sc.nextInt(); int h=sc.nextInt(); int m=sc.nextInt(); double angle= Math.abs((double)h/12+((double)m/60)/12.0 -(double)m/60.0)*2*Math.PI; double res= (double)a*a +(double)b*b -(double) 2*a*b*Math.cos(angle); res =Math.sqrt(res); System.out.printf("%.20f",res); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 41, 13, 2, 17, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 2, 13, 17, 41, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 18, 13, 13, 4, 18, 13, 2, 2, 13, 17, 2, 13, 17, 17, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 2, 2, 13, 13, 17, 29, 17, 29, 17, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 14, 2, 2, 13, 17, 17, 0, 13, 2, 2, 13, 13, 13, 0, 13, 2, 2, 13, 13, 13, 0, 13, 17, 29, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 18, 13, 2, 2, 13, 17, 13, 0, 18, 13, 2, 2, 13, 13, 17, 18, 13, 13, 0, 18, 13, 13, 18, 13, 2, 2, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 17, 41, 13, 2, 13, 17, 41, 13, 40, 17, 42, 2, 13, 13, 30, 41, 13, 2, 13, 2, 2, 13, 13, 17, 14, 2, 18, 13, 13, 13, 30, 0, 13, 2, 13, 17, 0, 13, 13, 0, 13, 2, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 17, 41, 13, 2, 13, 17, 41, 13, 40, 17, 42, 2, 13, 13, 30, 41, 13, 2, 13, 2, 2, 13, 13, 17, 14, 2, 18, 13, 13, 13, 30, 0, 13, 2, 13, 17, 0, 13, 13, 0, 13, 2, 13, 17, 29, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 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 ], [ 470, 14 ], [ 470, 15 ], [ 15, 16 ], [ 15, 17 ], [ 470, 18 ], [ 18, 19 ], [ 18, 20 ], [ 470, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 23, 25 ], [ 470, 26 ], [ 26, 27 ], [ 26, 28 ], [ 470, 29 ], [ 29, 30 ], [ 29, 31 ], [ 470, 32 ], [ 32, 33 ], [ 32, 34 ], [ 470, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 37, 42 ], [ 42, 43 ], [ 37, 44 ], [ 44, 45 ], [ 37, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 37, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 37, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 37, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 37, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 37, 73 ], [ 73, 74 ], [ 73, 75 ], [ 77, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 84, 99 ], [ 37, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 37, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 37, 118 ], [ 118, 119 ], [ 119, 120 ], [ 37, 121 ], [ 121, 122 ], [ 122, 123 ], [ 35, 124 ], [ 124, 125 ], [ 470, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 144, 145 ], [ 145, 146 ], [ 134, 147 ], [ 148, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 154, 156 ], [ 157, 157 ], [ 157, 158 ], [ 157, 159 ], [ 157, 160 ], [ 149, 161 ], [ 161, 162 ], [ 128, 163 ], [ 163, 164 ], [ 126, 165 ], [ 165, 166 ], [ 470, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 173, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 178, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 177, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 193, 197 ], [ 177, 198 ], [ 198, 199 ], [ 198, 200 ], [ 169, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 167, 205 ], [ 205, 206 ], [ 167, 207 ], [ 207, 208 ], [ 470, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 214, 216 ], [ 211, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 217, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 224, 226 ], [ 217, 227 ], [ 227, 228 ], [ 228, 229 ], [ 217, 230 ], [ 231, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 236 ], [ 236, 237 ], [ 236, 238 ], [ 239, 239 ], [ 239, 240 ], [ 239, 241 ], [ 239, 242 ], [ 231, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 247, 247 ], [ 247, 248 ], [ 247, 249 ], [ 247, 250 ], [ 243, 251 ], [ 251, 252 ], [ 251, 253 ], [ 231, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 254, 258 ], [ 258, 259 ], [ 258, 260 ], [ 261, 261 ], [ 261, 262 ], [ 261, 263 ], [ 261, 264 ], [ 209, 265 ], [ 265, 266 ], [ 470, 267 ], [ 267, 268 ], [ 267, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 272, 273 ], [ 272, 274 ], [ 269, 275 ], [ 275, 276 ], [ 275, 277 ], [ 269, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 280, 282 ], [ 269, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 269, 287 ], [ 287, 288 ], [ 288, 289 ], [ 288, 290 ], [ 287, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 296, 300 ], [ 291, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 301, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 310, 311 ], [ 310, 312 ], [ 307, 313 ], [ 313, 314 ], [ 313, 315 ], [ 301, 316 ], [ 316, 317 ], [ 316, 318 ], [ 318, 319 ], [ 318, 320 ], [ 269, 321 ], [ 321, 322 ], [ 267, 323 ], [ 323, 324 ], [ 267, 325 ], [ 325, 326 ], [ 470, 327 ], [ 327, 328 ], [ 327, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 332, 334 ], [ 329, 335 ], [ 335, 336 ], [ 335, 337 ], [ 329, 338 ], [ 338, 339 ], [ 338, 340 ], [ 340, 341 ], [ 340, 342 ], [ 329, 343 ], [ 343, 344 ], [ 343, 345 ], [ 345, 346 ], [ 329, 347 ], [ 347, 348 ], [ 348, 349 ], [ 348, 350 ], [ 347, 351 ], [ 351, 352 ], [ 352, 353 ], [ 352, 354 ], [ 354, 355 ], [ 354, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 356, 360 ], [ 351, 361 ], [ 361, 362 ], [ 362, 363 ], [ 363, 364 ], [ 363, 365 ], [ 362, 366 ], [ 361, 367 ], [ 367, 368 ], [ 368, 369 ], [ 368, 370 ], [ 370, 371 ], [ 370, 372 ], [ 367, 373 ], [ 373, 374 ], [ 373, 375 ], [ 361, 376 ], [ 376, 377 ], [ 376, 378 ], [ 378, 379 ], [ 378, 380 ], [ 329, 381 ], [ 381, 382 ], [ 327, 383 ], [ 383, 384 ], [ 327, 385 ], [ 385, 386 ], [ 470, 387 ], [ 387, 388 ], [ 387, 389 ], [ 389, 390 ], [ 387, 391 ], [ 391, 392 ], [ 387, 393 ], [ 393, 394 ], [ 393, 395 ], [ 395, 396 ], [ 396, 397 ], [ 396, 398 ], [ 393, 399 ], [ 399, 400 ], [ 387, 401 ], [ 401, 402 ], [ 401, 403 ], [ 403, 404 ], [ 404, 405 ], [ 404, 406 ], [ 401, 407 ], [ 407, 408 ], [ 387, 409 ], [ 409, 410 ], [ 409, 411 ], [ 411, 412 ], [ 412, 413 ], [ 413, 414 ], [ 414, 415 ], [ 414, 416 ], [ 413, 417 ], [ 417, 418 ], [ 418, 419 ], [ 419, 420 ], [ 412, 421 ], [ 421, 422 ], [ 421, 423 ], [ 411, 424 ], [ 424, 425 ], [ 425, 426 ], [ 426, 427 ], [ 387, 428 ], [ 428, 429 ], [ 428, 430 ], [ 430, 431 ], [ 431, 432 ], [ 432, 433 ], [ 433, 434 ], [ 432, 435 ], [ 435, 436 ], [ 387, 437 ], [ 437, 438 ], [ 437, 439 ], [ 439, 440 ], [ 440, 441 ], [ 441, 442 ], [ 442, 443 ], [ 441, 444 ], [ 444, 445 ], [ 387, 446 ], [ 446, 447 ], [ 446, 448 ], [ 448, 449 ], [ 449, 450 ], [ 450, 451 ], [ 451, 452 ], [ 450, 453 ], [ 453, 454 ], [ 387, 455 ], [ 455, 456 ], [ 455, 457 ], [ 457, 458 ], [ 458, 459 ], [ 459, 460 ], [ 460, 461 ], [ 387, 462 ], [ 462, 463 ], [ 462, 464 ], [ 464, 465 ], [ 465, 466 ], [ 466, 467 ], [ 467, 468 ], [ 0, 469 ], [ 469, 470 ], [ 469, 471 ] ]
[ "\n\nimport java.math.*;\nimport java.io.*;\nimport java.util.*;\nimport java.lang.*;\n\n//solution classes here\n\npublic class Main {\n\n //main solution here\n\n static Scanner sc = new Scanner(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n static long mod = (long)1e9+7;\n static long MOD = 998244353;\n static long INF = (long)1e18;\n static int inf = (int)1e9;\n //static ArrayList<Integer> list[] = new ArrayList[(int)3e3+1];\n //static int color[] = new int[(int)2e6+1];\n //static int visit[] = new int[(int)1e4+1];\n //static int level[] = new int[(int)1e4+1];\n //static Deque<Integer> q = new ArrayDeque<>();\n\n public static void main(String[] args) throws IOException {\n double a,b,h,m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n h= h + m/60;\n double y = 2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180);\n double ans = a*a+b*b-y;\n out.println(Math.sqrt(ans));\n\n out.flush();\n out.close();\n }\n\n //solution functions here\n\n //---templates---\n public static boolean ispal(char[] c) {\n int n = c.length;\n for(int i=0;i<n/2;i++) {\n if(c[i]!=c[n-i-1])\n return false;\n }\n return true;\n }\n\n static long pow(long base, long exp)\n {\n long t = 1L;\n while (exp > 0) {\n if (exp % 2 != 0)\n t = (t * base) % mod;\n\n base = (base * base) % mod;\n exp /= 2;\n }\n return t % mod;\n }\n public static void reverse (long[] array) {\n int len = array.length;\n for(int i=0;i<len/2;i++) {\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }\n }\n\n public static int low_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;\n }\n return ans;\n }\n\n public static int up_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;\n }\n return ans;\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader fileReader) {\n br = new BufferedReader(fileReader);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}\n\n/* *****************************************************************************************************************************\n * I'M NOT IN DANGER, I'M THE DANGER!!!\n * *****************************************************************************************************************************\n */", "import java.math.*;", "math.*", "java", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "public class Main {\n\n //main solution here\n\n static Scanner sc = new Scanner(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n static long mod = (long)1e9+7;\n static long MOD = 998244353;\n static long INF = (long)1e18;\n static int inf = (int)1e9;\n //static ArrayList<Integer> list[] = new ArrayList[(int)3e3+1];\n //static int color[] = new int[(int)2e6+1];\n //static int visit[] = new int[(int)1e4+1];\n //static int level[] = new int[(int)1e4+1];\n //static Deque<Integer> q = new ArrayDeque<>();\n\n public static void main(String[] args) throws IOException {\n double a,b,h,m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n h= h + m/60;\n double y = 2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180);\n double ans = a*a+b*b-y;\n out.println(Math.sqrt(ans));\n\n out.flush();\n out.close();\n }\n\n //solution functions here\n\n //---templates---\n public static boolean ispal(char[] c) {\n int n = c.length;\n for(int i=0;i<n/2;i++) {\n if(c[i]!=c[n-i-1])\n return false;\n }\n return true;\n }\n\n static long pow(long base, long exp)\n {\n long t = 1L;\n while (exp > 0) {\n if (exp % 2 != 0)\n t = (t * base) % mod;\n\n base = (base * base) % mod;\n exp /= 2;\n }\n return t % mod;\n }\n public static void reverse (long[] array) {\n int len = array.length;\n for(int i=0;i<len/2;i++) {\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }\n }\n\n public static int low_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;\n }\n return ans;\n }\n\n public static int up_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;\n }\n return ans;\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader fileReader) {\n br = new BufferedReader(fileReader);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "static PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "static long mod = (long)1e9+7;", "mod", "(long)1e9+7", "(long)1e9", "7", "static long MOD = 998244353;", "MOD", "998244353", "static long INF = (long)1e18;", "INF", "(long)1e18", "static int inf = (int)1e9;", "inf", "(int)1e9", "public static void main(String[] args) throws IOException {\n double a,b,h,m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n h= h + m/60;\n double y = 2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180);\n double ans = a*a+b*b-y;\n out.println(Math.sqrt(ans));\n\n out.flush();\n out.close();\n }", "main", "{\n double a,b,h,m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n h= h + m/60;\n double y = 2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180);\n double ans = a*a+b*b-y;\n out.println(Math.sqrt(ans));\n\n out.flush();\n out.close();\n }", "double a", "a", "b", "b", "h", "h", "m;", "m", "a = sc.nextDouble()", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "b = sc.nextDouble()", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "h = sc.nextDouble()", "h", "sc.nextDouble()", "sc.nextDouble", "sc", "m = sc.nextDouble()", "m", "sc.nextDouble()", "sc.nextDouble", "sc", "h= h + m/60", "h", "h + m/60", "h", "m/60", "m", "60", "double y = 2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180);", "y", "2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180)", "b", "2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180)", "2", "a", "b", "Math.cos((Math.PI*Math.abs(h*30-m*6))/180)", "Math.cos", "Math", "(Math.PI*Math.abs(h*30-m*6))/180", "(Math.PI*Math.abs(h*30-m*6))", "Math.PI", "Math", "Math.PI", "Math.abs(h*30-m*6)", "Math.abs", "Math", "h*30-m*6", "h*30", "h", "30", "m*6", "m", "6", "180", "double ans = a*a+b*b-y;", "ans", "a*a+b*b-y", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "y", "out.println(Math.sqrt(ans))", "out.println", "out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "out.flush()", "out.flush", "out", "out.close()", "out.close", "out", "String[] args", "args", "//---templates---\n public static boolean ispal(char[] c) {\n int n = c.length;\n for(int i=0;i<n/2;i++) {\n if(c[i]!=c[n-i-1])\n return false;\n }\n return true;\n }", "ispal", "{\n int n = c.length;\n for(int i=0;i<n/2;i++) {\n if(c[i]!=c[n-i-1])\n return false;\n }\n return true;\n }", "int n = c.length;", "n", "c.length", "c", "c.length", "for(int i=0;i<n/2;i++) {\n if(c[i]!=c[n-i-1])\n return false;\n }", "int i=0;", "int i=0;", "i", "0", "i<n/2", "i", "n/2", "n", "2", "i++", "i++", "i", "{\n if(c[i]!=c[n-i-1])\n return false;\n }", "{\n if(c[i]!=c[n-i-1])\n return false;\n }", "if(c[i]!=c[n-i-1])\n return false;", "c[i]!=c[n-i-1]", "c[i]", "c", "i", "c[n-i-1]", "c", "n-i-1", "n-i-1", "n", "i", "1", "return false;", "false", "return true;", "true", "char[] c", "c", "static long pow(long base, long exp)\n {\n long t = 1L;\n while (exp > 0) {\n if (exp % 2 != 0)\n t = (t * base) % mod;\n\n base = (base * base) % mod;\n exp /= 2;\n }\n return t % mod;\n }", "pow", "{\n long t = 1L;\n while (exp > 0) {\n if (exp % 2 != 0)\n t = (t * base) % mod;\n\n base = (base * base) % mod;\n exp /= 2;\n }\n return t % mod;\n }", "long t = 1L;", "t", "1L", "while (exp > 0) {\n if (exp % 2 != 0)\n t = (t * base) % mod;\n\n base = (base * base) % mod;\n exp /= 2;\n }", "exp > 0", "exp", "0", "{\n if (exp % 2 != 0)\n t = (t * base) % mod;\n\n base = (base * base) % mod;\n exp /= 2;\n }", "if (exp % 2 != 0)\n t = (t * base) % mod;", "exp % 2 != 0", "exp % 2", "exp", "2", "0", "t = (t * base) % mod", "t", "(t * base) % mod", "(t * base)", "t", "base", "mod", "base = (base * base) % mod", "base", "(base * base) % mod", "(base * base)", "base", "base", "mod", "exp /= 2", "exp", "2", "return t % mod;", "t % mod", "t", "mod", "long base", "base", "long exp", "exp", "public static void reverse (long[] array) {\n int len = array.length;\n for(int i=0;i<len/2;i++) {\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }\n }", "reverse", "{\n int len = array.length;\n for(int i=0;i<len/2;i++) {\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }\n }", "int len = array.length;", "len", "array.length", "array", "array.length", "for(int i=0;i<len/2;i++) {\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }", "int i=0;", "int i=0;", "i", "0", "i<len/2", "i", "len/2", "len", "2", "i++", "i++", "i", "{\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }", "{\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }", "array[i]^=array[len-1-i]", "array[i]", "array", "i", "array[len-1-i]", "array", "len-1-i", "len-1-i", "len", "1", "i", "array[len-i-1]^=array[i]", "array[len-i-1]", "array", "len-i-1", "len-i-1", "len", "i", "1", "array[i]", "array", "i", "array[i]^=array[len-i-1]", "array[i]", "array", "i", "array[len-i-1]", "array", "len-i-1", "len-i-1", "len", "i", "1", "long[] array", "array", "public static int low_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;\n }\n return ans;\n }", "low_bound", "{\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;\n }\n return ans;\n }", "int len = array.length;", "len", "array.length", "array", "array.length", "int lo = 0;", "lo", "0", "int hi = len-1;", "hi", "len-1", "len", "1", "int ans = -1;", "ans", "-1", "1", "while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;\n }", "lo<=hi", "lo", "hi", "{\n int mid = lo+(hi-lo)/2;\n if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;\n }", "int mid = lo+(hi-lo)/2;", "mid", "lo+(hi-lo)/2", "lo", "(hi-lo)/2", "(hi-lo)", "hi", "lo", "2", "if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;", "array[mid]<=value", "array[mid]", "array", "mid", "value", "{\n lo=mid+1;\n ans=mid;\n }", "lo=mid+1", "lo", "mid+1", "mid", "1", "ans=mid", "ans", "mid", "hi=mid-1", "hi", "mid-1", "mid", "1", "return ans;", "ans", "long[] array", "array", "long value", "value", "public static int up_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;\n }\n return ans;\n }", "up_bound", "{\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;\n }\n return ans;\n }", "int len = array.length;", "len", "array.length", "array", "array.length", "int lo = 0;", "lo", "0", "int hi = len-1;", "hi", "len-1", "len", "1", "int ans = -1;", "ans", "-1", "1", "while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;\n }", "lo<=hi", "lo", "hi", "{\n int mid = lo+(hi-lo)/2;\n if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;\n }", "int mid = lo+(hi-lo)/2;", "mid", "lo+(hi-lo)/2", "lo", "(hi-lo)/2", "(hi-lo)", "hi", "lo", "2", "if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;", "array[mid]>=value", "array[mid]", "array", "mid", "value", "{\n hi=mid-1;\n ans=mid;\n }", "hi=mid-1", "hi", "mid-1", "mid", "1", "ans=mid", "ans", "mid", "lo=mid+1", "lo", "mid+1", "mid", "1", "return ans;", "ans", "long[] array", "array", "long value", "value", "static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader fileReader) {\n br = new BufferedReader(fileReader);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }", "Scanner", "StringTokenizer st;", "st", "BufferedReader br;", "br", "public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }", "Scanner", "{\n br = new BufferedReader(new InputStreamReader(s));\n }", "br = new BufferedReader(new InputStreamReader(s))", "br", "new BufferedReader(new InputStreamReader(s))", "InputStream s", "s", "public Scanner(FileReader fileReader) {\n br = new BufferedReader(fileReader);\n }", "Scanner", "{\n br = new BufferedReader(fileReader);\n }", "br = new BufferedReader(fileReader)", "br", "new BufferedReader(fileReader)", "FileReader fileReader", "fileReader", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() throws IOException {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public String nextLine() throws IOException {\n return br.readLine();\n }", "nextLine", "{\n return br.readLine();\n }", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public boolean ready() throws IOException {\n return br.ready();\n }", "ready", "{\n return br.ready();\n }", "return br.ready();", "br.ready()", "br.ready", "br", "public class Main {\n\n //main solution here\n\n static Scanner sc = new Scanner(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n static long mod = (long)1e9+7;\n static long MOD = 998244353;\n static long INF = (long)1e18;\n static int inf = (int)1e9;\n //static ArrayList<Integer> list[] = new ArrayList[(int)3e3+1];\n //static int color[] = new int[(int)2e6+1];\n //static int visit[] = new int[(int)1e4+1];\n //static int level[] = new int[(int)1e4+1];\n //static Deque<Integer> q = new ArrayDeque<>();\n\n public static void main(String[] args) throws IOException {\n double a,b,h,m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n h= h + m/60;\n double y = 2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180);\n double ans = a*a+b*b-y;\n out.println(Math.sqrt(ans));\n\n out.flush();\n out.close();\n }\n\n //solution functions here\n\n //---templates---\n public static boolean ispal(char[] c) {\n int n = c.length;\n for(int i=0;i<n/2;i++) {\n if(c[i]!=c[n-i-1])\n return false;\n }\n return true;\n }\n\n static long pow(long base, long exp)\n {\n long t = 1L;\n while (exp > 0) {\n if (exp % 2 != 0)\n t = (t * base) % mod;\n\n base = (base * base) % mod;\n exp /= 2;\n }\n return t % mod;\n }\n public static void reverse (long[] array) {\n int len = array.length;\n for(int i=0;i<len/2;i++) {\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }\n }\n\n public static int low_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;\n }\n return ans;\n }\n\n public static int up_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;\n }\n return ans;\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader fileReader) {\n br = new BufferedReader(fileReader);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}", "public class Main {\n\n //main solution here\n\n static Scanner sc = new Scanner(System.in);\n static PrintWriter out = new PrintWriter(System.out);\n static long mod = (long)1e9+7;\n static long MOD = 998244353;\n static long INF = (long)1e18;\n static int inf = (int)1e9;\n //static ArrayList<Integer> list[] = new ArrayList[(int)3e3+1];\n //static int color[] = new int[(int)2e6+1];\n //static int visit[] = new int[(int)1e4+1];\n //static int level[] = new int[(int)1e4+1];\n //static Deque<Integer> q = new ArrayDeque<>();\n\n public static void main(String[] args) throws IOException {\n double a,b,h,m;\n a = sc.nextDouble();\n b = sc.nextDouble();\n h = sc.nextDouble();\n m = sc.nextDouble();\n h= h + m/60;\n double y = 2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180);\n double ans = a*a+b*b-y;\n out.println(Math.sqrt(ans));\n\n out.flush();\n out.close();\n }\n\n //solution functions here\n\n //---templates---\n public static boolean ispal(char[] c) {\n int n = c.length;\n for(int i=0;i<n/2;i++) {\n if(c[i]!=c[n-i-1])\n return false;\n }\n return true;\n }\n\n static long pow(long base, long exp)\n {\n long t = 1L;\n while (exp > 0) {\n if (exp % 2 != 0)\n t = (t * base) % mod;\n\n base = (base * base) % mod;\n exp /= 2;\n }\n return t % mod;\n }\n public static void reverse (long[] array) {\n int len = array.length;\n for(int i=0;i<len/2;i++) {\n array[i]^=array[len-1-i];\n array[len-i-1]^=array[i];\n array[i]^=array[len-i-1];\n }\n }\n\n public static int low_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]<=value) {\n lo=mid+1;\n ans=mid;\n }\n else\n hi=mid-1;\n }\n return ans;\n }\n\n public static int up_bound(long[] array, long value) {\n int len = array.length;\n int lo = 0;\n int hi = len-1;\n int ans = -1;\n while(lo<=hi) {\n int mid = lo+(hi-lo)/2;\n if(array[mid]>=value) {\n hi=mid-1;\n ans=mid;\n }\n else\n lo=mid+1;\n }\n return ans;\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader fileReader) {\n br = new BufferedReader(fileReader);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}", "Main" ]
import java.math.*; import java.io.*; import java.util.*; import java.lang.*; //solution classes here public class Main { //main solution here static Scanner sc = new Scanner(System.in); static PrintWriter out = new PrintWriter(System.out); static long mod = (long)1e9+7; static long MOD = 998244353; static long INF = (long)1e18; static int inf = (int)1e9; //static ArrayList<Integer> list[] = new ArrayList[(int)3e3+1]; //static int color[] = new int[(int)2e6+1]; //static int visit[] = new int[(int)1e4+1]; //static int level[] = new int[(int)1e4+1]; //static Deque<Integer> q = new ArrayDeque<>(); public static void main(String[] args) throws IOException { double a,b,h,m; a = sc.nextDouble(); b = sc.nextDouble(); h = sc.nextDouble(); m = sc.nextDouble(); h= h + m/60; double y = 2 * a * b * Math.cos((Math.PI*Math.abs(h*30-m*6))/180); double ans = a*a+b*b-y; out.println(Math.sqrt(ans)); out.flush(); out.close(); } //solution functions here //---templates--- public static boolean ispal(char[] c) { int n = c.length; for(int i=0;i<n/2;i++) { if(c[i]!=c[n-i-1]) return false; } return true; } static long pow(long base, long exp) { long t = 1L; while (exp > 0) { if (exp % 2 != 0) t = (t * base) % mod; base = (base * base) % mod; exp /= 2; } return t % mod; } public static void reverse (long[] array) { int len = array.length; for(int i=0;i<len/2;i++) { array[i]^=array[len-1-i]; array[len-i-1]^=array[i]; array[i]^=array[len-i-1]; } } public static int low_bound(long[] array, long value) { int len = array.length; int lo = 0; int hi = len-1; int ans = -1; while(lo<=hi) { int mid = lo+(hi-lo)/2; if(array[mid]<=value) { lo=mid+1; ans=mid; } else hi=mid-1; } return ans; } public static int up_bound(long[] array, long value) { int len = array.length; int lo = 0; int hi = len-1; int ans = -1; while(lo<=hi) { int mid = lo+(hi-lo)/2; if(array[mid]>=value) { hi=mid-1; ans=mid; } else lo=mid+1; } return ans; } static class Scanner { StringTokenizer st; BufferedReader br; public Scanner(InputStream s) { br = new BufferedReader(new InputStreamReader(s)); } public Scanner(FileReader fileReader) { br = new BufferedReader(fileReader); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine()); return st.nextToken(); } public int nextInt() throws IOException { return Integer.parseInt(next()); } public long nextLong() throws IOException { return Long.parseLong(next()); } public double nextDouble() throws IOException { return Double.parseDouble(next()); } public String nextLine() throws IOException { return br.readLine(); } public boolean ready() throws IOException { return br.ready(); } } } /* ***************************************************************************************************************************** * I'M NOT IN DANGER, I'M THE DANGER!!! * ***************************************************************************************************************************** */
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 18, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 2, 17, 2, 17, 13, 2, 13, 17, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 2, 17, 2, 17, 13, 2, 13, 17, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 2, 17, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 2, 17, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 169, 32 ], [ 169, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 33, 44 ], [ 44, 45 ], [ 169, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 48, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 48, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 48, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 48, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 83, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 48, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 102, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 48, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 48, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 48, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 150, 151 ], [ 150, 152 ], [ 145, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 157, 159 ], [ 48, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 46, 164 ], [ 164, 165 ], [ 46, 166 ], [ 166, 167 ], [ 0, 168 ], [ 168, 169 ], [ 168, 170 ] ]
[ "\nimport java.io.InputStream;\nimport java.io.PrintStream;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.PriorityQueue;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n\n double ax = A*Math.cos(Math.toRadians(90-30*H-M/2.0));\n double ay = A*Math.sin(Math.toRadians(90-30*H-M/2.0));\n double bx = B*Math.cos(Math.toRadians(90-6*M));\n double by = B*Math.sin(Math.toRadians(90-6*M));\n\n double ans = Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));\n\n os.println(ans);\n }\n\n\n}", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintStream;", "PrintStream", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.HashSet;", "HashSet", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.PriorityQueue;", "PriorityQueue", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n\n double ax = A*Math.cos(Math.toRadians(90-30*H-M/2.0));\n double ay = A*Math.sin(Math.toRadians(90-30*H-M/2.0));\n double bx = B*Math.cos(Math.toRadians(90-6*M));\n double by = B*Math.sin(Math.toRadians(90-6*M));\n\n double ans = Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));\n\n os.println(ans);\n }\n\n\n}", "Main", "public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }", "main", "{\n solve(System.in, System.out);\n }", "solve(System.in, System.out)", "solve", "System.in", "System", "System.in", "System.out", "System", "System.out", "String[] args", "args", "static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n\n double ax = A*Math.cos(Math.toRadians(90-30*H-M/2.0));\n double ay = A*Math.sin(Math.toRadians(90-30*H-M/2.0));\n double bx = B*Math.cos(Math.toRadians(90-6*M));\n double by = B*Math.sin(Math.toRadians(90-6*M));\n\n double ans = Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));\n\n os.println(ans);\n }", "solve", "{\n // Your code here!\n Scanner scan = new Scanner(is);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n\n double ax = A*Math.cos(Math.toRadians(90-30*H-M/2.0));\n double ay = A*Math.sin(Math.toRadians(90-30*H-M/2.0));\n double bx = B*Math.cos(Math.toRadians(90-6*M));\n double by = B*Math.sin(Math.toRadians(90-6*M));\n\n double ans = Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));\n\n os.println(ans);\n }", "Scanner scan = new Scanner(is);", "scan", "new Scanner(is)", "int A = scan.nextInt();", "A", "scan.nextInt()", "scan.nextInt", "scan", "int B = scan.nextInt();", "B", "scan.nextInt()", "scan.nextInt", "scan", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int M = scan.nextInt();", "M", "scan.nextInt()", "scan.nextInt", "scan", "double ax = A*Math.cos(Math.toRadians(90-30*H-M/2.0));", "ax", "A*Math.cos(Math.toRadians(90-30*H-M/2.0))", "A", "Math.cos(Math.toRadians(90-30*H-M/2.0))", "Math.cos", "Math", "Math.toRadians(90-30*H-M/2.0)", "Math.toRadians", "Math", "90-30*H-M/2.0", "90-30*H-M/2.0", "90", "30*H", "30", "H", "M/2.0", "M", "2.0", "double ay = A*Math.sin(Math.toRadians(90-30*H-M/2.0));", "ay", "A*Math.sin(Math.toRadians(90-30*H-M/2.0))", "A", "Math.sin(Math.toRadians(90-30*H-M/2.0))", "Math.sin", "Math", "Math.toRadians(90-30*H-M/2.0)", "Math.toRadians", "Math", "90-30*H-M/2.0", "90-30*H-M/2.0", "90", "30*H", "30", "H", "M/2.0", "M", "2.0", "double bx = B*Math.cos(Math.toRadians(90-6*M));", "bx", "B*Math.cos(Math.toRadians(90-6*M))", "B", "Math.cos(Math.toRadians(90-6*M))", "Math.cos", "Math", "Math.toRadians(90-6*M)", "Math.toRadians", "Math", "90-6*M", "90", "6*M", "6", "M", "double by = B*Math.sin(Math.toRadians(90-6*M));", "by", "B*Math.sin(Math.toRadians(90-6*M))", "B", "Math.sin(Math.toRadians(90-6*M))", "Math.sin", "Math", "Math.toRadians(90-6*M)", "Math.toRadians", "Math", "90-6*M", "90", "6*M", "6", "M", "double ans = Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));", "ans", "Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by))", "Math.sqrt", "Math", "(ax-bx)*(ax-bx)+(ay-by)*(ay-by)", "(ax-bx)*(ax-bx)", "(ax-bx)", "ax", "bx", "(ax-bx)", "ax", "bx", "(ay-by)*(ay-by)", "(ay-by)", "ay", "by", "(ay-by)", "ay", "by", "os.println(ans)", "os.println", "os", "ans", "InputStream is", "is", "PrintStream os", "os", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n\n double ax = A*Math.cos(Math.toRadians(90-30*H-M/2.0));\n double ay = A*Math.sin(Math.toRadians(90-30*H-M/2.0));\n double bx = B*Math.cos(Math.toRadians(90-6*M));\n double by = B*Math.sin(Math.toRadians(90-6*M));\n\n double ans = Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));\n\n os.println(ans);\n }\n\n\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n solve(System.in, System.out);\n }\n\n static void solve(InputStream is, PrintStream os) {\n // Your code here!\n Scanner scan = new Scanner(is);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n\n double ax = A*Math.cos(Math.toRadians(90-30*H-M/2.0));\n double ay = A*Math.sin(Math.toRadians(90-30*H-M/2.0));\n double bx = B*Math.cos(Math.toRadians(90-6*M));\n double by = B*Math.sin(Math.toRadians(90-6*M));\n\n double ans = Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by));\n\n os.println(ans);\n }\n\n\n}", "Main" ]
import java.io.InputStream; import java.io.PrintStream; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.PriorityQueue; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { solve(System.in, System.out); } static void solve(InputStream is, PrintStream os) { // Your code here! Scanner scan = new Scanner(is); int A = scan.nextInt(); int B = scan.nextInt(); int H = scan.nextInt(); int M = scan.nextInt(); double ax = A*Math.cos(Math.toRadians(90-30*H-M/2.0)); double ay = A*Math.sin(Math.toRadians(90-30*H-M/2.0)); double bx = B*Math.cos(Math.toRadians(90-6*M)); double by = B*Math.sin(Math.toRadians(90-6*M)); double ans = Math.sqrt((ax-bx)*(ax-bx)+(ay-by)*(ay-by)); os.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 18, 13, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 4, 18, 13, 17, 4, 18, 13, 41, 13, 2, 2, 2, 17, 13, 17, 17, 4, 18, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 4, 13, 4, 18, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 0, 18, 36, 13, 17, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 29, 18, 13, 40, 13, 29, 40, 17, 12, 13, 30, 29, 40, 2, 2, 13, 17, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 4, 13, 18, 13, 13, 40, 13, 12, 13, 30, 4, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 20, 41, 13, 4, 13, 42, 40, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 2, 2, 2, 13, 17, 13, 17, 0, 13, 4, 13, 29, 8, 13, 40, 13, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 4, 13, 42, 4, 13, 13, 0, 13, 4, 13, 41, 13, 17, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 41, 13, 17, 42, 40, 4, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 17, 37, 20, 0, 13, 2, 2, 2, 13, 17, 13, 17, 0, 13, 4, 13, 29, 8, 13, 40, 13, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 4, 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 ], [ 517, 20 ], [ 517, 21 ], [ 21, 22 ], [ 517, 23 ], [ 23, 24 ], [ 517, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 517, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 46, 50 ], [ 45, 51 ], [ 51, 52 ], [ 52, 53 ], [ 32, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 56, 62 ], [ 32, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 79, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 79, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 517, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 99, 100 ], [ 92, 101 ], [ 101, 102 ], [ 102, 103 ], [ 90, 104 ], [ 104, 105 ], [ 517, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 106, 118 ], [ 118, 119 ], [ 517, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 120, 128 ], [ 128, 129 ], [ 120, 130 ], [ 130, 131 ], [ 120, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 135, 139 ], [ 134, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 132, 149 ], [ 149, 150 ], [ 120, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 166, 167 ], [ 162, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 171, 174 ], [ 158, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 179 ], [ 179, 180 ], [ 153, 181 ], [ 181, 182 ], [ 120, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 186, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 186, 194 ], [ 194, 195 ], [ 195, 196 ], [ 120, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 202, 206 ], [ 206, 207 ], [ 206, 208 ], [ 197, 209 ], [ 209, 210 ], [ 120, 211 ], [ 211, 212 ], [ 211, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 215, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 220, 222 ], [ 214, 223 ], [ 223, 224 ], [ 120, 225 ], [ 225, 226 ], [ 225, 227 ], [ 227, 228 ], [ 228, 229 ], [ 227, 230 ], [ 230, 231 ], [ 231, 232 ], [ 120, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 236, 240 ], [ 240, 241 ], [ 235, 242 ], [ 242, 243 ], [ 242, 244 ], [ 235, 245 ], [ 245, 246 ], [ 245, 247 ], [ 247, 248 ], [ 235, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 249, 254 ], [ 254, 255 ], [ 255, 256 ], [ 256, 257 ], [ 255, 258 ], [ 254, 259 ], [ 259, 260 ], [ 259, 261 ], [ 261, 262 ], [ 235, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 120, 267 ], [ 267, 268 ], [ 267, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 270, 274 ], [ 274, 275 ], [ 269, 276 ], [ 276, 277 ], [ 276, 278 ], [ 278, 279 ], [ 269, 280 ], [ 280, 281 ], [ 281, 282 ], [ 281, 283 ], [ 280, 284 ], [ 284, 285 ], [ 284, 286 ], [ 286, 287 ], [ 269, 288 ], [ 288, 289 ], [ 288, 290 ], [ 269, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 291, 295 ], [ 295, 296 ], [ 296, 297 ], [ 296, 298 ], [ 295, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 269, 303 ], [ 303, 304 ], [ 303, 305 ], [ 269, 306 ], [ 306, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 306, 311 ], [ 311, 312 ], [ 312, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 313, 317 ], [ 317, 318 ], [ 317, 319 ], [ 312, 320 ], [ 320, 321 ], [ 311, 322 ], [ 322, 323 ], [ 322, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 325, 329 ], [ 324, 330 ], [ 311, 331 ], [ 331, 332 ], [ 331, 333 ], [ 333, 334 ], [ 269, 335 ], [ 335, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 336, 340 ], [ 120, 341 ], [ 341, 342 ], [ 341, 343 ], [ 343, 344 ], [ 344, 345 ], [ 345, 346 ], [ 346, 347 ], [ 344, 348 ], [ 348, 349 ], [ 343, 350 ], [ 350, 351 ], [ 350, 352 ], [ 352, 353 ], [ 343, 354 ], [ 354, 355 ], [ 355, 356 ], [ 355, 357 ], [ 354, 358 ], [ 358, 359 ], [ 358, 360 ], [ 360, 361 ], [ 343, 362 ], [ 362, 363 ], [ 362, 364 ], [ 343, 365 ], [ 365, 366 ], [ 366, 367 ], [ 366, 368 ], [ 365, 369 ], [ 369, 370 ], [ 370, 371 ], [ 370, 372 ], [ 369, 373 ], [ 373, 374 ], [ 373, 375 ], [ 375, 376 ], [ 343, 377 ], [ 377, 378 ], [ 377, 379 ], [ 343, 380 ], [ 380, 381 ], [ 381, 382 ], [ 382, 383 ], [ 382, 384 ], [ 380, 385 ], [ 385, 386 ], [ 386, 387 ], [ 387, 388 ], [ 388, 389 ], [ 388, 390 ], [ 387, 391 ], [ 391, 392 ], [ 391, 393 ], [ 386, 394 ], [ 394, 395 ], [ 385, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 399, 403 ], [ 398, 404 ], [ 385, 405 ], [ 405, 406 ], [ 405, 407 ], [ 407, 408 ], [ 343, 409 ], [ 409, 410 ], [ 410, 411 ], [ 410, 412 ], [ 412, 413 ], [ 410, 414 ], [ 120, 415 ], [ 415, 416 ], [ 415, 417 ], [ 417, 418 ], [ 418, 419 ], [ 419, 420 ], [ 420, 421 ], [ 419, 422 ], [ 422, 423 ], [ 120, 424 ], [ 424, 425 ], [ 424, 426 ], [ 426, 427 ], [ 427, 428 ], [ 427, 429 ], [ 426, 431 ], [ 431, 432 ], [ 432, 433 ], [ 433, 434 ], [ 433, 435 ], [ 431, 436 ], [ 436, 437 ], [ 436, 438 ], [ 431, 439 ], [ 439, 440 ], [ 440, 441 ], [ 431, 442 ], [ 442, 443 ], [ 443, 444 ], [ 444, 445 ], [ 444, 446 ], [ 443, 447 ], [ 447, 448 ], [ 426, 449 ], [ 449, 450 ], [ 424, 451 ], [ 451, 452 ], [ 120, 453 ], [ 453, 454 ], [ 453, 455 ], [ 455, 456 ], [ 456, 457 ], [ 456, 458 ], [ 455, 460 ], [ 460, 461 ], [ 461, 462 ], [ 462, 463 ], [ 462, 464 ], [ 460, 465 ], [ 465, 466 ], [ 465, 467 ], [ 460, 468 ], [ 468, 469 ], [ 469, 470 ], [ 460, 471 ], [ 471, 472 ], [ 472, 473 ], [ 473, 474 ], [ 473, 475 ], [ 472, 476 ], [ 476, 477 ], [ 455, 478 ], [ 478, 479 ], [ 453, 480 ], [ 480, 481 ], [ 120, 482 ], [ 482, 483 ], [ 482, 484 ], [ 484, 485 ], [ 485, 486 ], [ 485, 487 ], [ 484, 490 ], [ 490, 491 ], [ 491, 492 ], [ 492, 493 ], [ 492, 494 ], [ 490, 495 ], [ 495, 496 ], [ 495, 497 ], [ 490, 498 ], [ 498, 499 ], [ 499, 500 ], [ 490, 501 ], [ 501, 502 ], [ 502, 503 ], [ 503, 504 ], [ 503, 505 ], [ 502, 506 ], [ 506, 507 ], [ 507, 508 ], [ 508, 509 ], [ 484, 510 ], [ 510, 511 ], [ 482, 512 ], [ 512, 513 ], [ 482, 514 ], [ 514, 515 ], [ 0, 516 ], [ 516, 517 ], [ 516, 518 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\nimport java.util.NoSuchElementException;\n\npublic class Main {\n\tstatic PrintWriter out;\n\tstatic InputReader ir;\n\tstatic final long INF = Long.MAX_VALUE;\n\n\tstatic void solve() {\n\t\tint a = ir.nextInt();\n\t\tint b = ir.nextInt();\n\t\tint m = ir.nextInt() * 60 + ir.nextInt();\n\t\tdouble t = ((11 * m) % 720) / 2.0;\n\t\tout.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t))));\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\n\tstatic class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}\n\n\tstatic void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.util.NoSuchElementException;", "NoSuchElementException", "java.util", "public class Main {\n\tstatic PrintWriter out;\n\tstatic InputReader ir;\n\tstatic final long INF = Long.MAX_VALUE;\n\n\tstatic void solve() {\n\t\tint a = ir.nextInt();\n\t\tint b = ir.nextInt();\n\t\tint m = ir.nextInt() * 60 + ir.nextInt();\n\t\tdouble t = ((11 * m) % 720) / 2.0;\n\t\tout.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t))));\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\n\tstatic class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}\n\n\tstatic void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}\n}", "Main", "static PrintWriter out;", "out", "static InputReader ir;", "ir", "static final long INF = Long.MAX_VALUE;", "INF", "Long.MAX_VALUE", "Long", "Long.MAX_VALUE", "static void solve() {\n\t\tint a = ir.nextInt();\n\t\tint b = ir.nextInt();\n\t\tint m = ir.nextInt() * 60 + ir.nextInt();\n\t\tdouble t = ((11 * m) % 720) / 2.0;\n\t\tout.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t))));\n\t}", "solve", "{\n\t\tint a = ir.nextInt();\n\t\tint b = ir.nextInt();\n\t\tint m = ir.nextInt() * 60 + ir.nextInt();\n\t\tdouble t = ((11 * m) % 720) / 2.0;\n\t\tout.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t))));\n\t}", "int a = ir.nextInt();", "a", "ir.nextInt()", "ir.nextInt", "ir", "int b = ir.nextInt();", "b", "ir.nextInt()", "ir.nextInt", "ir", "int m = ir.nextInt() * 60 + ir.nextInt();", "m", "ir.nextInt() * 60 + ir.nextInt()", "ir.nextInt() * 60", "ir.nextInt()", "ir.nextInt", "ir", "60", "ir.nextInt()", "ir.nextInt", "ir", "double t = ((11 * m) % 720) / 2.0;", "t", "((11 * m) % 720) / 2.0", "((11 * m) % 720)", "(11 * m)", "11", "m", "720", "2.0", "out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t))))", "out.println", "out", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t)))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t))", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(Math.toRadians(t))", "b", "2 * a * b * Math.cos(Math.toRadians(t))", "2", "a", "b", "Math.cos(Math.toRadians(t))", "Math.cos", "Math", "Math.toRadians(t)", "Math.toRadians", "Math", "t", "public static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}", "main", "{\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}", "ir = new InputReader(System.in)", "ir", "new InputReader(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "solve()", "solve", "out.flush()", "out.flush", "out", "String[] args", "args", "static void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}", "tr", "{\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}", "System.err.println(Arrays.deepToString(o))", "System.err.println", "System.err", "System", "System.err", "Arrays.deepToString(o)", "Arrays.deepToString", "Arrays", "o", "Object... o", "o", "static class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}", "InputReader", "private InputStream in;", "in", "private byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int curbuf;", "curbuf", "private int lenbuf;", "lenbuf", "public InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}", "InputReader", "{\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}", "this.in = in", "this.in", "this", "this.in", "in", "this.curbuf = this.lenbuf = 0", "this.curbuf", "this", "this.curbuf", "this.lenbuf = 0", "this.lenbuf", "this", "this.lenbuf", "0", "InputStream in", "in", "public boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "hasNextByte", "{\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "if (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}", "curbuf >= lenbuf", "curbuf", "lenbuf", "{\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}", "curbuf = 0", "curbuf", "0", "try {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}", "catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}", "IOException e", "{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}", "throw new InputMismatchException();", "new InputMismatchException()", "{\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t}", "lenbuf = in.read(buffer)", "lenbuf", "in.read(buffer)", "in.read", "in", "buffer", "if (lenbuf <= 0)\n\t\t\t\t\treturn false;", "lenbuf <= 0", "lenbuf", "0", "return false;", "false", "return true;", "true", "private int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}", "readByte", "{\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}", "if (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;", "hasNextByte()", "hasNextByte", "return buffer[curbuf++];", "buffer[curbuf++]", "buffer", "curbuf++", "curbuf", "return -1;", "-1", "1", "private boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}", "isSpaceChar", "{\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}", "return !(c >= 33 && c <= 126);", "!(c >= 33 && c <= 126)", "(c >= 33 && c <= 126)", "c >= 33", "c", "33", "c <= 126", "c", "126", "int c", "c", "private void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}", "skip", "{\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}", "while (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;", "hasNextByte() && isSpaceChar(buffer[curbuf])", "hasNextByte()", "hasNextByte", "isSpaceChar(buffer[curbuf])", "isSpaceChar", "buffer[curbuf]", "buffer", "curbuf", "curbuf++", "curbuf", "public boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}", "hasNext", "{\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}", "skip()", "skip", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}", "next", "{\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}", "if (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = readByte();", "b", "readByte()", "readByte", "while (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}", "!isSpaceChar(b)", "isSpaceChar(b)", "isSpaceChar", "b", "{\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}", "nextInt", "{\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}", "if (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "int c = readByte();", "c", "readByte()", "readByte", "while (isSpaceChar(c))\n\t\t\t\tc = readByte();", "isSpaceChar(c)", "isSpaceChar", "c", "c = readByte()", "c", "readByte()", "readByte", "boolean minus = false;", "minus", "false", "if (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}", "c == '-'", "c", "'-'", "{\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}", "minus = true", "minus", "true", "c = readByte()", "c", "readByte()", "readByte", "int res = 0;", "res", "0", "do {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t}", "if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res = res * 10 + c - '0'", "res", "res * 10 + c - '0'", "res * 10 + c", "res * 10", "res", "10", "c", "'0'", "c = readByte()", "c", "readByte()", "readByte", "return (minus) ? -res : res;", "(minus) ? -res : res", "(minus)", "-res", "res", "res", "public long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}", "nextLong", "{\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}", "if (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "int c = readByte();", "c", "readByte()", "readByte", "while (isSpaceChar(c))\n\t\t\t\tc = readByte();", "isSpaceChar(c)", "isSpaceChar", "c", "c = readByte()", "c", "readByte()", "readByte", "boolean minus = false;", "minus", "false", "if (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}", "c == '-'", "c", "'-'", "{\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}", "minus = true", "minus", "true", "c = readByte()", "c", "readByte()", "readByte", "long res = 0;", "res", "0", "do {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t}", "if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();", "c < '0' || c > '9'", "c < '0'", "c", "'0'", "c > '9'", "c", "'9'", "throw new InputMismatchException();", "new InputMismatchException()", "res = res * 10 + c - '0'", "res", "res * 10 + c - '0'", "res * 10 + c", "res * 10", "res", "10", "c", "'0'", "c = readByte()", "c", "readByte()", "readByte", "return (minus) ? -res : res;", "(minus) ? -res : res", "(minus)", "-res", "res", "res", "public double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "nextDouble", "{\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "nextIntArray", "{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}", "nextLongArray", "{\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}", "long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextLong();", "a[i] = nextLong()", "a[i]", "a", "i", "nextLong()", "nextLong", "return a;", "a", "int n", "n", "public char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}", "nextCharMap", "{\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}", "char[][] map = new char[n][m];", "map", "new char[n][m]", "n", "m", "for (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "map[i] = next().toCharArray();", "map[i] = next().toCharArray()", "map[i]", "map", "i", "next().toCharArray()", "next().toCharArray", "next()", "next", "return map;", "map", "int n", "n", "int m", "m", "public class Main {\n\tstatic PrintWriter out;\n\tstatic InputReader ir;\n\tstatic final long INF = Long.MAX_VALUE;\n\n\tstatic void solve() {\n\t\tint a = ir.nextInt();\n\t\tint b = ir.nextInt();\n\t\tint m = ir.nextInt() * 60 + ir.nextInt();\n\t\tdouble t = ((11 * m) % 720) / 2.0;\n\t\tout.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t))));\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\n\tstatic class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}\n\n\tstatic void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}\n}", "public class Main {\n\tstatic PrintWriter out;\n\tstatic InputReader ir;\n\tstatic final long INF = Long.MAX_VALUE;\n\n\tstatic void solve() {\n\t\tint a = ir.nextInt();\n\t\tint b = ir.nextInt();\n\t\tint m = ir.nextInt() * 60 + ir.nextInt();\n\t\tdouble t = ((11 * m) % 720) / 2.0;\n\t\tout.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t))));\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\n\tstatic class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}\n\n\tstatic void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}\n}", "Main" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Arrays; import java.util.InputMismatchException; import java.util.NoSuchElementException; public class Main { static PrintWriter out; static InputReader ir; static final long INF = Long.MAX_VALUE; static void solve() { int a = ir.nextInt(); int b = ir.nextInt(); int m = ir.nextInt() * 60 + ir.nextInt(); double t = ((11 * m) % 720) / 2.0; out.println(Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(t)))); } public static void main(String[] args) { ir = new InputReader(System.in); out = new PrintWriter(System.out); solve(); out.flush(); } static class InputReader { private InputStream in; private byte[] buffer = new byte[1024]; private int curbuf; private int lenbuf; public InputReader(InputStream in) { this.in = in; this.curbuf = this.lenbuf = 0; } public boolean hasNextByte() { if (curbuf >= lenbuf) { curbuf = 0; try { lenbuf = in.read(buffer); } catch (IOException e) { throw new InputMismatchException(); } if (lenbuf <= 0) return false; } return true; } private int readByte() { if (hasNextByte()) return buffer[curbuf++]; else return -1; } private boolean isSpaceChar(int c) { return !(c >= 33 && c <= 126); } private void skip() { while (hasNextByte() && isSpaceChar(buffer[curbuf])) curbuf++; } public boolean hasNext() { skip(); return hasNextByte(); } public String next() { if (!hasNext()) throw new NoSuchElementException(); StringBuilder sb = new StringBuilder(); int b = readByte(); while (!isSpaceChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public int nextInt() { if (!hasNext()) throw new NoSuchElementException(); int c = readByte(); while (isSpaceChar(c)) c = readByte(); boolean minus = false; if (c == '-') { minus = true; c = readByte(); } int res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res = res * 10 + c - '0'; c = readByte(); } while (!isSpaceChar(c)); return (minus) ? -res : res; } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); int c = readByte(); while (isSpaceChar(c)) c = readByte(); boolean minus = false; if (c == '-') { minus = true; c = readByte(); } long res = 0; do { if (c < '0' || c > '9') throw new InputMismatchException(); res = res * 10 + c - '0'; c = readByte(); } while (!isSpaceChar(c)); return (minus) ? -res : res; } public double nextDouble() { return Double.parseDouble(next()); } public int[] nextIntArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } public long[] nextLongArray(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nextLong(); return a; } public char[][] nextCharMap(int n, int m) { char[][] map = new char[n][m]; for (int i = 0; i < n; i++) map[i] = next().toCharArray(); return map; } } static void tr(Object... o) { System.err.println(Arrays.deepToString(o)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 17, 2, 13, 17, 2, 17, 2, 13, 17, 41, 13, 2, 17, 2, 13, 17, 41, 13, 2, 13, 13, 41, 13, 17, 0, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 34, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 54, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 72, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 6, 92 ], [ 92, 93 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt(); //A cm 時針\n int B = sc.nextInt(); //B cm 分針\n double H = sc.nextInt(); //時\n double M = sc.nextInt(); //分\n \n //時針の0時からの傾き\n double Y = 360 * (H / 12)+30*(M/60);\n //分針の0時からの傾き\n double X = 360 * (M / 60);\n //求める角度\n double angle = X - Y;\n //求める長さ\n double C = 0.00000000000000;\n C = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(angle));\n \n //System.out.println(angle);\n System.out.println(Math.sqrt(C));\n \n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt(); //A cm 時針\n int B = sc.nextInt(); //B cm 分針\n double H = sc.nextInt(); //時\n double M = sc.nextInt(); //分\n \n //時針の0時からの傾き\n double Y = 360 * (H / 12)+30*(M/60);\n //分針の0時からの傾き\n double X = 360 * (M / 60);\n //求める角度\n double angle = X - Y;\n //求める長さ\n double C = 0.00000000000000;\n C = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(angle));\n \n //System.out.println(angle);\n System.out.println(Math.sqrt(C));\n \n \n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt(); //A cm 時針\n int B = sc.nextInt(); //B cm 分針\n double H = sc.nextInt(); //時\n double M = sc.nextInt(); //分\n \n //時針の0時からの傾き\n double Y = 360 * (H / 12)+30*(M/60);\n //分針の0時からの傾き\n double X = 360 * (M / 60);\n //求める角度\n double angle = X - Y;\n //求める長さ\n double C = 0.00000000000000;\n C = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(angle));\n \n //System.out.println(angle);\n System.out.println(Math.sqrt(C));\n \n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt(); //A cm 時針\n int B = sc.nextInt(); //B cm 分針\n double H = sc.nextInt(); //時\n double M = sc.nextInt(); //分\n \n //時針の0時からの傾き\n double Y = 360 * (H / 12)+30*(M/60);\n //分針の0時からの傾き\n double X = 360 * (M / 60);\n //求める角度\n double angle = X - Y;\n //求める長さ\n double C = 0.00000000000000;\n C = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(angle));\n \n //System.out.println(angle);\n System.out.println(Math.sqrt(C));\n \n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int A = sc.nextInt();", "A", "sc.nextInt()", "sc.nextInt", "sc", "int B = sc.nextInt();", "B", "sc.nextInt()", "sc.nextInt", "sc", "double H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "double M = sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double Y = 360 * (H / 12)+30*(M/60);", "Y", "360 * (H / 12)+30*(M/60)", "360 * (H / 12)", "360", "(H / 12)", "H", "12", "30*(M/60)", "30", "(M/60)", "M", "60", "double X = 360 * (M / 60);", "X", "360 * (M / 60)", "360", "(M / 60)", "M", "60", "double angle = X - Y;", "angle", "X - Y", "X", "Y", "double C = 0.00000000000000;", "C", "0.00000000000000", "C = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(angle))", "C", "A*A + B*B - 2*A*B*Math.cos(Math.toRadians(angle))", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.toRadians(angle))", "B", "2*A*B*Math.cos(Math.toRadians(angle))", "2", "A", "B", "Math.cos(Math.toRadians(angle))", "Math.cos", "Math", "Math.toRadians(angle)", "Math.toRadians", "Math", "angle", "System.out.println(Math.sqrt(C))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(C)", "Math.sqrt", "Math", "C", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int A = sc.nextInt(); //A cm 時針 int B = sc.nextInt(); //B cm 分針 double H = sc.nextInt(); //時 double M = sc.nextInt(); //分 //時針の0時からの傾き double Y = 360 * (H / 12)+30*(M/60); //分針の0時からの傾き double X = 360 * (M / 60); //求める角度 double angle = X - Y; //求める長さ double C = 0.00000000000000; C = A*A + B*B - 2*A*B*Math.cos(Math.toRadians(angle)); //System.out.println(angle); System.out.println(Math.sqrt(C)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 2, 2, 13, 17, 2, 13, 17, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 54, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 70, 72 ], [ 61, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tscan.close();\n\t\tSystem.out.printf(\"%4.10f\", Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)));\n\t}\n}\n", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tscan.close();\n\t\tSystem.out.printf(\"%4.10f\", Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)));\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tscan.close();\n\t\tSystem.out.printf(\"%4.10f\", Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)));\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tscan.close();\n\t\tSystem.out.printf(\"%4.10f\", Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)));\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int A = scan.nextInt();", "A", "scan.nextInt()", "scan.nextInt", "scan", "int B = scan.nextInt();", "B", "scan.nextInt()", "scan.nextInt", "scan", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int M = scan.nextInt();", "M", "scan.nextInt()", "scan.nextInt", "scan", "scan.close()", "scan.close", "scan", "System.out.printf(\"%4.10f\", Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)))", "System.out.printf", "System.out", "System", "System.out", "\"%4.10f\"", "Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180))", "Math.sqrt", "Math", "A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)", "A*A + B*B", "A*A", "A", "A", "B*B", "B", "B", "2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)", "B", "2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)", "2", "A", "B", "Math.cos((H*30 - M*5.5) * Math.PI / 180)", "Math.cos", "Math", "(H*30 - M*5.5) * Math.PI / 180", "(H*30 - M*5.5) * Math.PI", "(H*30 - M*5.5)", "H*30", "H", "30", "M*5.5", "M", "5.5", "Math.PI", "Math", "Math.PI", "180", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tscan.close();\n\t\tSystem.out.printf(\"%4.10f\", Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)));\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tscan.close();\n\t\tSystem.out.printf(\"%4.10f\", Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180)));\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int H = scan.nextInt(); int M = scan.nextInt(); scan.close(); System.out.printf("%4.10f", Math.sqrt(A*A + B*B - 2 *A*B*Math.cos((H*30 - M*5.5) * Math.PI / 180))); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 2, 2, 13, 17, 17, 41, 13, 2, 13, 17, 41, 13, 2, 2, 18, 13, 13, 17, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 91, 5 ], [ 91, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 39, 39 ], [ 39, 40 ], [ 39, 41 ], [ 39, 42 ], [ 8, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 45, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 74, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 6, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t\n\t\tdouble jisin = (double)H /12 + (double)M / 60 / 12;\n\t\tdouble funsin = (double)M / 60;\n\t\t\n\t\tdouble kakudo = Math.PI * 2 * (jisin - funsin);\n\t\tdouble C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo));\n\t\t\n\t\tSystem.out.println(C);\n\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 scan = new Scanner(System.in);\n\t\t\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t\n\t\tdouble jisin = (double)H /12 + (double)M / 60 / 12;\n\t\tdouble funsin = (double)M / 60;\n\t\t\n\t\tdouble kakudo = Math.PI * 2 * (jisin - funsin);\n\t\tdouble C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo));\n\t\t\n\t\tSystem.out.println(C);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t\n\t\tdouble jisin = (double)H /12 + (double)M / 60 / 12;\n\t\tdouble funsin = (double)M / 60;\n\t\t\n\t\tdouble kakudo = Math.PI * 2 * (jisin - funsin);\n\t\tdouble C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo));\n\t\t\n\t\tSystem.out.println(C);\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t\n\t\tdouble jisin = (double)H /12 + (double)M / 60 / 12;\n\t\tdouble funsin = (double)M / 60;\n\t\t\n\t\tdouble kakudo = Math.PI * 2 * (jisin - funsin);\n\t\tdouble C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo));\n\t\t\n\t\tSystem.out.println(C);\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int A = scan.nextInt();", "A", "scan.nextInt()", "scan.nextInt", "scan", "int B = scan.nextInt();", "B", "scan.nextInt()", "scan.nextInt", "scan", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int M = scan.nextInt();", "M", "scan.nextInt()", "scan.nextInt", "scan", "double jisin = (double)H /12 + (double)M / 60 / 12;", "jisin", "(double)H /12 + (double)M / 60 / 12", "(double)H /12", "(double)H", "12", "(double)M / 60 / 12", "(double)M / 60 / 12", "(double)M", "60", "12", "double funsin = (double)M / 60;", "funsin", "(double)M / 60", "(double)M", "60", "double kakudo = Math.PI * 2 * (jisin - funsin);", "kakudo", "Math.PI * 2 * (jisin - funsin)", "Math.PI * 2 * (jisin - funsin)", "Math.PI", "Math", "Math.PI", "2", "(jisin - funsin)", "jisin", "funsin", "double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo));", "C", "Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo))", "Math.sqrt", "Math", "A*A+B*B-2*A*B*Math.cos(kakudo)", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(kakudo)", "B", "2*A*B*Math.cos(kakudo)", "2", "A", "B", "Math.cos(kakudo)", "Math.cos", "Math", "kakudo", "System.out.println(C)", "System.out.println", "System.out", "System", "System.out", "C", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t\n\t\tdouble jisin = (double)H /12 + (double)M / 60 / 12;\n\t\tdouble funsin = (double)M / 60;\n\t\t\n\t\tdouble kakudo = Math.PI * 2 * (jisin - funsin);\n\t\tdouble C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo));\n\t\t\n\t\tSystem.out.println(C);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t\n\t\tdouble jisin = (double)H /12 + (double)M / 60 / 12;\n\t\tdouble funsin = (double)M / 60;\n\t\t\n\t\tdouble kakudo = Math.PI * 2 * (jisin - funsin);\n\t\tdouble C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo));\n\t\t\n\t\tSystem.out.println(C);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int A = scan.nextInt(); int B = scan.nextInt(); int H = scan.nextInt(); int M = scan.nextInt(); double jisin = (double)H /12 + (double)M / 60 / 12; double funsin = (double)M / 60; double kakudo = Math.PI * 2 * (jisin - funsin); double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(kakudo)); System.out.println(C); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 17, 2, 2, 17, 2, 13, 13, 17, 41, 13, 2, 17, 2, 2, 17, 13, 17, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 4, 18, 13, 2, 13, 13, 17, 4, 18, 13, 2, 13, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 41, 47 ], [ 8, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 8, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 8, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 8, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 8, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 8, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 107, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 117, 119 ], [ 114, 120 ], [ 8, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 8, 127 ], [ 127, 128 ], [ 128, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int Hlength=sc.nextInt();\n int Mlength=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double Hdiff=(double)M/60;\n double Hdeg=90-(360*(H+Hdiff)/12);\n double Mdeg=90-(360*M/60);\n \n double Hth=Math.toRadians(Hdeg);\n double Mth=Math.toRadians(Mdeg);\n \n double Hx=Hlength*Math.cos(Hth);\n double Hy=Hlength*Math.sin(Hth);\n double Mx=Mlength*Math.cos(Mth);\n double My=Mlength*Math.sin(Mth);\n \n double dis=Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2));\n System.out.println(dis);\n sc.close();\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 int Hlength=sc.nextInt();\n int Mlength=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double Hdiff=(double)M/60;\n double Hdeg=90-(360*(H+Hdiff)/12);\n double Mdeg=90-(360*M/60);\n \n double Hth=Math.toRadians(Hdeg);\n double Mth=Math.toRadians(Mdeg);\n \n double Hx=Hlength*Math.cos(Hth);\n double Hy=Hlength*Math.sin(Hth);\n double Mx=Mlength*Math.cos(Mth);\n double My=Mlength*Math.sin(Mth);\n \n double dis=Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2));\n System.out.println(dis);\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int Hlength=sc.nextInt();\n int Mlength=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double Hdiff=(double)M/60;\n double Hdeg=90-(360*(H+Hdiff)/12);\n double Mdeg=90-(360*M/60);\n \n double Hth=Math.toRadians(Hdeg);\n double Mth=Math.toRadians(Mdeg);\n \n double Hx=Hlength*Math.cos(Hth);\n double Hy=Hlength*Math.sin(Hth);\n double Mx=Mlength*Math.cos(Mth);\n double My=Mlength*Math.sin(Mth);\n \n double dis=Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2));\n System.out.println(dis);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int Hlength=sc.nextInt();\n int Mlength=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double Hdiff=(double)M/60;\n double Hdeg=90-(360*(H+Hdiff)/12);\n double Mdeg=90-(360*M/60);\n \n double Hth=Math.toRadians(Hdeg);\n double Mth=Math.toRadians(Mdeg);\n \n double Hx=Hlength*Math.cos(Hth);\n double Hy=Hlength*Math.sin(Hth);\n double Mx=Mlength*Math.cos(Mth);\n double My=Mlength*Math.sin(Mth);\n \n double dis=Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2));\n System.out.println(dis);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int Hlength=sc.nextInt();", "Hlength", "sc.nextInt()", "sc.nextInt", "sc", "int Mlength=sc.nextInt();", "Mlength", "sc.nextInt()", "sc.nextInt", "sc", "int H=sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int M=sc.nextInt();", "M", "sc.nextInt()", "sc.nextInt", "sc", "double Hdiff=(double)M/60;", "Hdiff", "(double)M/60", "(double)M", "60", "double Hdeg=90-(360*(H+Hdiff)/12);", "Hdeg", "90-(360*(H+Hdiff)/12)", "90", "(360*(H+Hdiff)/12)", "360*(H+Hdiff)", "360", "(H+Hdiff)", "H", "Hdiff", "12", "double Mdeg=90-(360*M/60);", "Mdeg", "90-(360*M/60)", "90", "(360*M/60)", "360*M", "360", "M", "60", "double Hth=Math.toRadians(Hdeg);", "Hth", "Math.toRadians(Hdeg)", "Math.toRadians", "Math", "Hdeg", "double Mth=Math.toRadians(Mdeg);", "Mth", "Math.toRadians(Mdeg)", "Math.toRadians", "Math", "Mdeg", "double Hx=Hlength*Math.cos(Hth);", "Hx", "Hlength*Math.cos(Hth)", "Hlength", "Math.cos(Hth)", "Math.cos", "Math", "Hth", "double Hy=Hlength*Math.sin(Hth);", "Hy", "Hlength*Math.sin(Hth)", "Hlength", "Math.sin(Hth)", "Math.sin", "Math", "Hth", "double Mx=Mlength*Math.cos(Mth);", "Mx", "Mlength*Math.cos(Mth)", "Mlength", "Math.cos(Mth)", "Math.cos", "Math", "Mth", "double My=Mlength*Math.sin(Mth);", "My", "Mlength*Math.sin(Mth)", "Mlength", "Math.sin(Mth)", "Math.sin", "Math", "Mth", "double dis=Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2));", "dis", "Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2))", "Math.sqrt", "Math", "Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2)", "Math.pow((Hx-Mx),2)", "Math.pow", "Math", "(Hx-Mx)", "Hx", "Mx", "2", "Math.pow((Hy-My),2)", "Math.pow", "Math", "(Hy-My)", "Hy", "My", "2", "System.out.println(dis)", "System.out.println", "System.out", "System", "System.out", "dis", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int Hlength=sc.nextInt();\n int Mlength=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double Hdiff=(double)M/60;\n double Hdeg=90-(360*(H+Hdiff)/12);\n double Mdeg=90-(360*M/60);\n \n double Hth=Math.toRadians(Hdeg);\n double Mth=Math.toRadians(Mdeg);\n \n double Hx=Hlength*Math.cos(Hth);\n double Hy=Hlength*Math.sin(Hth);\n double Mx=Mlength*Math.cos(Mth);\n double My=Mlength*Math.sin(Mth);\n \n double dis=Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2));\n System.out.println(dis);\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int Hlength=sc.nextInt();\n int Mlength=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double Hdiff=(double)M/60;\n double Hdeg=90-(360*(H+Hdiff)/12);\n double Mdeg=90-(360*M/60);\n \n double Hth=Math.toRadians(Hdeg);\n double Mth=Math.toRadians(Mdeg);\n \n double Hx=Hlength*Math.cos(Hth);\n double Hy=Hlength*Math.sin(Hth);\n double Mx=Mlength*Math.cos(Mth);\n double My=Mlength*Math.sin(Mth);\n \n double dis=Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2));\n System.out.println(dis);\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int Hlength=sc.nextInt(); int Mlength=sc.nextInt(); int H=sc.nextInt(); int M=sc.nextInt(); double Hdiff=(double)M/60; double Hdeg=90-(360*(H+Hdiff)/12); double Mdeg=90-(360*M/60); double Hth=Math.toRadians(Hdeg); double Mth=Math.toRadians(Mdeg); double Hx=Hlength*Math.cos(Hth); double Hy=Hlength*Math.sin(Hth); double Mx=Mlength*Math.cos(Mth); double My=Mlength*Math.sin(Mth); double dis=Math.sqrt(Math.pow((Hx-Mx),2)+Math.pow((Hy-My),2)); System.out.println(dis); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 41, 13, 2, 13, 13, 0, 13, 2, 13, 17, 14, 2, 13, 17, 0, 13, 17, 14, 2, 13, 17, 0, 13, 40, 17, 0, 13, 2, 2, 13, 18, 13, 13, 17, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 120, 8 ], [ 120, 9 ], [ 9, 10 ], [ 9, 11 ], [ 120, 12 ], [ 12, 13 ], [ 12, 14 ], [ 120, 15 ], [ 15, 16 ], [ 15, 17 ], [ 120, 18 ], [ 18, 19 ], [ 18, 20 ], [ 120, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 24, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 24, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 24, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 24, 48 ], [ 48, 49 ], [ 48, 50 ], [ 24, 51 ], [ 51, 52 ], [ 51, 53 ], [ 24, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 24, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 24, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 24, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 24, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 81, 87 ], [ 24, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 100, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 24, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 22, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.util.*;\nimport java.math.*;\n\npublic class Main {\n static final int MOD = 1_000_000_007; // 10^9+7\n // static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9\n static final int MAX = 10_000_000;\n static long[] fact = new long[100];\n\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n h *= 30;\n m*=6;\n //System.out.println(h+\" \"+m);\n //何度\n double rad = h-m;\n rad+=(double)m/12;\n if(rad>180)rad -=360;\n if(rad<0)rad*=-1;\n //System.out.println(rad);\n //System.out.println(Math.acos(rad));\n rad = rad*Math.PI/180;\n \n //rad =Math.PI*80/180;\n //System.out.println(rad);\n //System.out.println(Math.cos(rad));\n double ans = a*a +b*b - 2*a*b*Math.cos(rad);\n //System.out.println(ans);\n System.out.println(Math.sqrt(ans));\n }\n}", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "public class Main {\n static final int MOD = 1_000_000_007; // 10^9+7\n // static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9\n static final int MAX = 10_000_000;\n static long[] fact = new long[100];\n\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n h *= 30;\n m*=6;\n //System.out.println(h+\" \"+m);\n //何度\n double rad = h-m;\n rad+=(double)m/12;\n if(rad>180)rad -=360;\n if(rad<0)rad*=-1;\n //System.out.println(rad);\n //System.out.println(Math.acos(rad));\n rad = rad*Math.PI/180;\n \n //rad =Math.PI*80/180;\n //System.out.println(rad);\n //System.out.println(Math.cos(rad));\n double ans = a*a +b*b - 2*a*b*Math.cos(rad);\n //System.out.println(ans);\n System.out.println(Math.sqrt(ans));\n }\n}", "Main", "static final int MOD = 1_000_000_007; // 10^9+7", "MOD", "1_000_000_007", "// static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9", "INF", "1_000_000_000", "static final int MAX = 10_000_000;", "MAX", "10_000_000", "static long[] fact = new long[100];", "fact", "new long[100]", "100", "public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n h *= 30;\n m*=6;\n //System.out.println(h+\" \"+m);\n //何度\n double rad = h-m;\n rad+=(double)m/12;\n if(rad>180)rad -=360;\n if(rad<0)rad*=-1;\n //System.out.println(rad);\n //System.out.println(Math.acos(rad));\n rad = rad*Math.PI/180;\n \n //rad =Math.PI*80/180;\n //System.out.println(rad);\n //System.out.println(Math.cos(rad));\n double ans = a*a +b*b - 2*a*b*Math.cos(rad);\n //System.out.println(ans);\n System.out.println(Math.sqrt(ans));\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n h *= 30;\n m*=6;\n //System.out.println(h+\" \"+m);\n //何度\n double rad = h-m;\n rad+=(double)m/12;\n if(rad>180)rad -=360;\n if(rad<0)rad*=-1;\n //System.out.println(rad);\n //System.out.println(Math.acos(rad));\n rad = rad*Math.PI/180;\n \n //rad =Math.PI*80/180;\n //System.out.println(rad);\n //System.out.println(Math.cos(rad));\n double ans = a*a +b*b - 2*a*b*Math.cos(rad);\n //System.out.println(ans);\n System.out.println(Math.sqrt(ans));\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "h *= 30", "h", "30", "m*=6", "m", "6", "double rad = h-m;", "rad", "h-m", "h", "m", "rad+=(double)m/12", "rad", "(double)m/12", "(double)m", "12", "if(rad>180)rad -=360;", "rad>180", "rad", "180", "rad -=360", "rad", "360", "if(rad<0)rad*=-1;", "rad<0", "rad", "0", "rad*=-1", "rad", "-1", "1", "rad = rad*Math.PI/180", "rad", "rad*Math.PI/180", "rad*Math.PI", "rad", "Math.PI", "Math", "Math.PI", "180", "double ans = a*a +b*b - 2*a*b*Math.cos(rad);", "ans", "a*a +b*b - 2*a*b*Math.cos(rad)", "a*a +b*b", "a*a", "a", "a", "b*b", "b", "b", "2*a*b*Math.cos(rad)", "b", "2*a*b*Math.cos(rad)", "2", "a", "b", "Math.cos(rad)", "Math.cos", "Math", "rad", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "String args[]", "args", "public class Main {\n static final int MOD = 1_000_000_007; // 10^9+7\n // static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9\n static final int MAX = 10_000_000;\n static long[] fact = new long[100];\n\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n h *= 30;\n m*=6;\n //System.out.println(h+\" \"+m);\n //何度\n double rad = h-m;\n rad+=(double)m/12;\n if(rad>180)rad -=360;\n if(rad<0)rad*=-1;\n //System.out.println(rad);\n //System.out.println(Math.acos(rad));\n rad = rad*Math.PI/180;\n \n //rad =Math.PI*80/180;\n //System.out.println(rad);\n //System.out.println(Math.cos(rad));\n double ans = a*a +b*b - 2*a*b*Math.cos(rad);\n //System.out.println(ans);\n System.out.println(Math.sqrt(ans));\n }\n}", "public class Main {\n static final int MOD = 1_000_000_007; // 10^9+7\n // static final int MAX = 2_147_483_646; // intの最大値\n static final int INF = 1_000_000_000; // 10^9\n static final int MAX = 10_000_000;\n static long[] fact = new long[100];\n\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n h *= 30;\n m*=6;\n //System.out.println(h+\" \"+m);\n //何度\n double rad = h-m;\n rad+=(double)m/12;\n if(rad>180)rad -=360;\n if(rad<0)rad*=-1;\n //System.out.println(rad);\n //System.out.println(Math.acos(rad));\n rad = rad*Math.PI/180;\n \n //rad =Math.PI*80/180;\n //System.out.println(rad);\n //System.out.println(Math.cos(rad));\n double ans = a*a +b*b - 2*a*b*Math.cos(rad);\n //System.out.println(ans);\n System.out.println(Math.sqrt(ans));\n }\n}", "Main" ]
import java.util.*; import java.math.*; public class Main { static final int MOD = 1_000_000_007; // 10^9+7 // static final int MAX = 2_147_483_646; // intの最大値 static final int INF = 1_000_000_000; // 10^9 static final int MAX = 10_000_000; static long[] fact = new long[100]; public static void main(String args[]) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); h *= 30; m*=6; //System.out.println(h+" "+m); //何度 double rad = h-m; rad+=(double)m/12; if(rad>180)rad -=360; if(rad<0)rad*=-1; //System.out.println(rad); //System.out.println(Math.acos(rad)); rad = rad*Math.PI/180; //rad =Math.PI*80/180; //System.out.println(rad); //System.out.println(Math.cos(rad)); double ans = a*a +b*b - 2*a*b*Math.cos(rad); //System.out.println(ans); System.out.println(Math.sqrt(ans)); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 2, 13, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 17, 18, 13, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 95, 5 ], [ 95, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 8, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 62, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 60, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 72, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 82, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 57, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 6, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tdouble A = sc.nextDouble();\n\t\tdouble B = sc.nextDouble();\n\t\tdouble H = sc.nextDouble();\n\t\tdouble M = sc.nextDouble();\n\t\t\n\t\t//時針と分針の角度\n\t\tdouble minuteHand = M / 60;\n\t\tdouble hourHand = (H + minuteHand) / 12;\n\t\tdouble angle = Math.abs(minuteHand - hourHand);\n\n\t\t// 結果の出力\n\t\tSystem.out.println(Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5));\n\t\t\n\t\tsc.close();\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\n\t\t// 入力値の取得\n\t\tdouble A = sc.nextDouble();\n\t\tdouble B = sc.nextDouble();\n\t\tdouble H = sc.nextDouble();\n\t\tdouble M = sc.nextDouble();\n\t\t\n\t\t//時針と分針の角度\n\t\tdouble minuteHand = M / 60;\n\t\tdouble hourHand = (H + minuteHand) / 12;\n\t\tdouble angle = Math.abs(minuteHand - hourHand);\n\n\t\t// 結果の出力\n\t\tSystem.out.println(Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5));\n\t\t\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tdouble A = sc.nextDouble();\n\t\tdouble B = sc.nextDouble();\n\t\tdouble H = sc.nextDouble();\n\t\tdouble M = sc.nextDouble();\n\t\t\n\t\t//時針と分針の角度\n\t\tdouble minuteHand = M / 60;\n\t\tdouble hourHand = (H + minuteHand) / 12;\n\t\tdouble angle = Math.abs(minuteHand - hourHand);\n\n\t\t// 結果の出力\n\t\tSystem.out.println(Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5));\n\t\t\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tdouble A = sc.nextDouble();\n\t\tdouble B = sc.nextDouble();\n\t\tdouble H = sc.nextDouble();\n\t\tdouble M = sc.nextDouble();\n\t\t\n\t\t//時針と分針の角度\n\t\tdouble minuteHand = M / 60;\n\t\tdouble hourHand = (H + minuteHand) / 12;\n\t\tdouble angle = Math.abs(minuteHand - hourHand);\n\n\t\t// 結果の出力\n\t\tSystem.out.println(Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5));\n\t\t\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double A = sc.nextDouble();", "A", "sc.nextDouble()", "sc.nextDouble", "sc", "double B = sc.nextDouble();", "B", "sc.nextDouble()", "sc.nextDouble", "sc", "double H = sc.nextDouble();", "H", "sc.nextDouble()", "sc.nextDouble", "sc", "double M = sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "double minuteHand = M / 60;", "minuteHand", "M / 60", "M", "60", "double hourHand = (H + minuteHand) / 12;", "hourHand", "(H + minuteHand) / 12", "(H + minuteHand)", "H", "minuteHand", "12", "double angle = Math.abs(minuteHand - hourHand);", "angle", "Math.abs(minuteHand - hourHand)", "Math.abs", "Math", "minuteHand - hourHand", "minuteHand", "hourHand", "System.out.println(Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5))", "System.out.println", "System.out", "System", "System.out", "Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5)", "Math.pow", "Math", "Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle))", "Math.pow(A, 2) + Math.pow(B, 2)", "Math.pow(A, 2)", "Math.pow", "Math", "A", "2", "Math.pow(B, 2)", "Math.pow", "Math", "B", "2", "(2 * A * B * Math.cos(2 * Math.PI * angle))", "B", "2 * A * B * Math.cos(2 * Math.PI * angle)", "2", "A", "B", "Math.cos(2 * Math.PI * angle)", "Math.cos", "Math", "2 * Math.PI * angle", "2 * Math.PI * angle", "2", "Math.PI", "Math", "Math.PI", "angle", "0.5", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tdouble A = sc.nextDouble();\n\t\tdouble B = sc.nextDouble();\n\t\tdouble H = sc.nextDouble();\n\t\tdouble M = sc.nextDouble();\n\t\t\n\t\t//時針と分針の角度\n\t\tdouble minuteHand = M / 60;\n\t\tdouble hourHand = (H + minuteHand) / 12;\n\t\tdouble angle = Math.abs(minuteHand - hourHand);\n\n\t\t// 結果の出力\n\t\tSystem.out.println(Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5));\n\t\t\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// 入力値の取得\n\t\tdouble A = sc.nextDouble();\n\t\tdouble B = sc.nextDouble();\n\t\tdouble H = sc.nextDouble();\n\t\tdouble M = sc.nextDouble();\n\t\t\n\t\t//時針と分針の角度\n\t\tdouble minuteHand = M / 60;\n\t\tdouble hourHand = (H + minuteHand) / 12;\n\t\tdouble angle = Math.abs(minuteHand - hourHand);\n\n\t\t// 結果の出力\n\t\tSystem.out.println(Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5));\n\t\t\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // 入力値の取得 double A = sc.nextDouble(); double B = sc.nextDouble(); double H = sc.nextDouble(); double M = sc.nextDouble(); //時針と分針の角度 double minuteHand = M / 60; double hourHand = (H + minuteHand) / 12; double angle = Math.abs(minuteHand - hourHand); // 結果の出力 System.out.println(Math.pow(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * Math.cos(2 * Math.PI * angle)), 0.5)); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 2, 2, 17, 18, 13, 13, 17, 41, 13, 2, 13, 2, 13, 2, 13, 17, 41, 13, 2, 2, 17, 18, 13, 13, 17, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 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, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 4, 13, 13, 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 ], [ 147, 11 ], [ 147, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 20, 22 ], [ 17, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 14, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 35, 41 ], [ 14, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 14, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 14, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 64, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 14, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 12, 81 ], [ 81, 82 ], [ 12, 83 ], [ 83, 84 ], [ 12, 85 ], [ 85, 86 ], [ 12, 87 ], [ 87, 88 ], [ 147, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 91, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 91, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 111, 113 ], [ 91, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 119, 120 ], [ 119, 121 ], [ 91, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 127, 128 ], [ 127, 129 ], [ 91, 130 ], [ 130, 131 ], [ 130, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 135, 137 ], [ 91, 138 ], [ 138, 139 ], [ 138, 140 ], [ 138, 141 ], [ 138, 142 ], [ 138, 143 ], [ 89, 144 ], [ 144, 145 ], [ 0, 146 ], [ 146, 147 ], [ 146, 148 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void fun(int a, int b, int h, int m) {\n\n double oneH = 2 * Math.PI / 12.0;\n double angleH = oneH * (h + m / 60.0);\n double oneM = 2 * Math.PI / 60.0;\n double angleM = oneM * m;\n\n// double angle = angleH - angleM;\n double angle = angleM - angleH;\n\n\n double ans = a * a + b * b - 2 * a * b * Math.cos(angle);\n System.out.println(Math.sqrt(ans));\n }\n\n\n\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String line = in.readLine();\n String[] ss=line.split(\" \");\n int a = Integer.valueOf(ss[0]);\n int b = Integer.valueOf(ss[1]);\n int h = Integer.valueOf(ss[2]);\n int m = Integer.valueOf(ss[3]);\n fun(a, b, h, m);\n }\n\n\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 public static void fun(int a, int b, int h, int m) {\n\n double oneH = 2 * Math.PI / 12.0;\n double angleH = oneH * (h + m / 60.0);\n double oneM = 2 * Math.PI / 60.0;\n double angleM = oneM * m;\n\n// double angle = angleH - angleM;\n double angle = angleM - angleH;\n\n\n double ans = a * a + b * b - 2 * a * b * Math.cos(angle);\n System.out.println(Math.sqrt(ans));\n }\n\n\n\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String line = in.readLine();\n String[] ss=line.split(\" \");\n int a = Integer.valueOf(ss[0]);\n int b = Integer.valueOf(ss[1]);\n int h = Integer.valueOf(ss[2]);\n int m = Integer.valueOf(ss[3]);\n fun(a, b, h, m);\n }\n\n\n\n}", "Main", "public static void fun(int a, int b, int h, int m) {\n\n double oneH = 2 * Math.PI / 12.0;\n double angleH = oneH * (h + m / 60.0);\n double oneM = 2 * Math.PI / 60.0;\n double angleM = oneM * m;\n\n// double angle = angleH - angleM;\n double angle = angleM - angleH;\n\n\n double ans = a * a + b * b - 2 * a * b * Math.cos(angle);\n System.out.println(Math.sqrt(ans));\n }", "fun", "{\n\n double oneH = 2 * Math.PI / 12.0;\n double angleH = oneH * (h + m / 60.0);\n double oneM = 2 * Math.PI / 60.0;\n double angleM = oneM * m;\n\n// double angle = angleH - angleM;\n double angle = angleM - angleH;\n\n\n double ans = a * a + b * b - 2 * a * b * Math.cos(angle);\n System.out.println(Math.sqrt(ans));\n }", "double oneH = 2 * Math.PI / 12.0;", "oneH", "2 * Math.PI / 12.0", "2 * Math.PI", "2", "Math.PI", "Math", "Math.PI", "12.0", "double angleH = oneH * (h + m / 60.0);", "angleH", "oneH * (h + m / 60.0)", "oneH", "(h + m / 60.0)", "h", "m / 60.0", "m", "60.0", "double oneM = 2 * Math.PI / 60.0;", "oneM", "2 * Math.PI / 60.0", "2 * Math.PI", "2", "Math.PI", "Math", "Math.PI", "60.0", "double angleM = oneM * m;", "angleM", "oneM * m", "oneM", "m", "double angle = angleM - angleH;", "angle", "angleM - angleH", "angleM", "angleH", "double ans = a * a + b * b - 2 * a * b * Math.cos(angle);", "ans", "a * a + b * b - 2 * a * b * Math.cos(angle)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(angle)", "b", "2 * a * b * Math.cos(angle)", "2", "a", "b", "Math.cos(angle)", "Math.cos", "Math", "angle", "System.out.println(Math.sqrt(ans))", "System.out.println", "System.out", "System", "System.out", "Math.sqrt(ans)", "Math.sqrt", "Math", "ans", "int a", "a", "int b", "b", "int h", "h", "int m", "m", "public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String line = in.readLine();\n String[] ss=line.split(\" \");\n int a = Integer.valueOf(ss[0]);\n int b = Integer.valueOf(ss[1]);\n int h = Integer.valueOf(ss[2]);\n int m = Integer.valueOf(ss[3]);\n fun(a, b, h, m);\n }", "main", "{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String line = in.readLine();\n String[] ss=line.split(\" \");\n int a = Integer.valueOf(ss[0]);\n int b = Integer.valueOf(ss[1]);\n int h = Integer.valueOf(ss[2]);\n int m = Integer.valueOf(ss[3]);\n fun(a, b, h, m);\n }", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String line = in.readLine();", "line", "in.readLine()", "in.readLine", "in", "String[] ss=line.split(\" \");", "ss", "line.split(\" \")", "line.split", "line", "\" \"", "int a = Integer.valueOf(ss[0]);", "a", "Integer.valueOf(ss[0])", "Integer.valueOf", "Integer", "ss[0]", "ss", "0", "int b = Integer.valueOf(ss[1]);", "b", "Integer.valueOf(ss[1])", "Integer.valueOf", "Integer", "ss[1]", "ss", "1", "int h = Integer.valueOf(ss[2]);", "h", "Integer.valueOf(ss[2])", "Integer.valueOf", "Integer", "ss[2]", "ss", "2", "int m = Integer.valueOf(ss[3]);", "m", "Integer.valueOf(ss[3])", "Integer.valueOf", "Integer", "ss[3]", "ss", "3", "fun(a, b, h, m)", "fun", "a", "b", "h", "m", "String[] args", "args", "public class Main {\n\n public static void fun(int a, int b, int h, int m) {\n\n double oneH = 2 * Math.PI / 12.0;\n double angleH = oneH * (h + m / 60.0);\n double oneM = 2 * Math.PI / 60.0;\n double angleM = oneM * m;\n\n// double angle = angleH - angleM;\n double angle = angleM - angleH;\n\n\n double ans = a * a + b * b - 2 * a * b * Math.cos(angle);\n System.out.println(Math.sqrt(ans));\n }\n\n\n\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String line = in.readLine();\n String[] ss=line.split(\" \");\n int a = Integer.valueOf(ss[0]);\n int b = Integer.valueOf(ss[1]);\n int h = Integer.valueOf(ss[2]);\n int m = Integer.valueOf(ss[3]);\n fun(a, b, h, m);\n }\n\n\n\n}", "public class Main {\n\n public static void fun(int a, int b, int h, int m) {\n\n double oneH = 2 * Math.PI / 12.0;\n double angleH = oneH * (h + m / 60.0);\n double oneM = 2 * Math.PI / 60.0;\n double angleM = oneM * m;\n\n// double angle = angleH - angleM;\n double angle = angleM - angleH;\n\n\n double ans = a * a + b * b - 2 * a * b * Math.cos(angle);\n System.out.println(Math.sqrt(ans));\n }\n\n\n\n public static void main(String[] args) throws IOException {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n String line = in.readLine();\n String[] ss=line.split(\" \");\n int a = Integer.valueOf(ss[0]);\n int b = Integer.valueOf(ss[1]);\n int h = Integer.valueOf(ss[2]);\n int m = Integer.valueOf(ss[3]);\n fun(a, b, h, m);\n }\n\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void fun(int a, int b, int h, int m) { double oneH = 2 * Math.PI / 12.0; double angleH = oneH * (h + m / 60.0); double oneM = 2 * Math.PI / 60.0; double angleM = oneM * m; // double angle = angleH - angleM; double angle = angleM - angleH; double ans = a * a + b * b - 2 * a * b * Math.cos(angle); System.out.println(Math.sqrt(ans)); } public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line = in.readLine(); String[] ss=line.split(" "); int a = Integer.valueOf(ss[0]); int b = Integer.valueOf(ss[1]); int h = Integer.valueOf(ss[2]); int m = Integer.valueOf(ss[3]); fun(a, b, h, m); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 17, 2, 13, 17, 41, 13, 2, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 8, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 8, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 8, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 54, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 67, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 83, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 108, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 108, 112 ], [ 83, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tdouble h_angle = h * 30 + (m * 0.5);\n\t\tdouble m_angle = m * 6;\n\n\t\tdouble diff_angle = Math.abs(h_angle - m_angle);\n\t\tif (diff_angle == 180.0) {\n\t\t\tSystem.out.println(a + b);\n\t\t} else if (diff_angle == 0.0) {\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t} else {\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\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\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tdouble h_angle = h * 30 + (m * 0.5);\n\t\tdouble m_angle = m * 6;\n\n\t\tdouble diff_angle = Math.abs(h_angle - m_angle);\n\t\tif (diff_angle == 180.0) {\n\t\t\tSystem.out.println(a + b);\n\t\t} else if (diff_angle == 0.0) {\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t} else {\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tdouble h_angle = h * 30 + (m * 0.5);\n\t\tdouble m_angle = m * 6;\n\n\t\tdouble diff_angle = Math.abs(h_angle - m_angle);\n\t\tif (diff_angle == 180.0) {\n\t\t\tSystem.out.println(a + b);\n\t\t} else if (diff_angle == 0.0) {\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t} else {\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tdouble h_angle = h * 30 + (m * 0.5);\n\t\tdouble m_angle = m * 6;\n\n\t\tdouble diff_angle = Math.abs(h_angle - m_angle);\n\t\tif (diff_angle == 180.0) {\n\t\t\tSystem.out.println(a + b);\n\t\t} else if (diff_angle == 0.0) {\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t} else {\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "double h_angle = h * 30 + (m * 0.5);", "h_angle", "h * 30 + (m * 0.5)", "h * 30", "h", "30", "(m * 0.5)", "m", "0.5", "double m_angle = m * 6;", "m_angle", "m * 6", "m", "6", "double diff_angle = Math.abs(h_angle - m_angle);", "diff_angle", "Math.abs(h_angle - m_angle)", "Math.abs", "Math", "h_angle - m_angle", "h_angle", "m_angle", "if (diff_angle == 180.0) {\n\t\t\tSystem.out.println(a + b);\n\t\t} else if (diff_angle == 0.0) {\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t} else {\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\t}", "diff_angle == 180.0", "diff_angle", "180.0", "{\n\t\t\tSystem.out.println(a + b);\n\t\t}", "System.out.println(a + b)", "System.out.println", "System.out", "System", "System.out", "a + b", "a", "b", "if (diff_angle == 0.0) {\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t} else {\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\t}", "diff_angle == 0.0", "diff_angle", "0.0", "{\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t}", "System.out.println(Math.abs(a - b))", "System.out.println", "System.out", "System", "System.out", "Math.abs(a - b)", "Math.abs", "Math", "a - b", "a", "b", "{\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\t}", "double cosC = Math.cos(Math.toRadians(diff_angle));", "cosC", "Math.cos(Math.toRadians(diff_angle))", "Math.cos", "Math", "Math.toRadians(diff_angle)", "Math.toRadians", "Math", "diff_angle", "double length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);", "length", "Math.sqrt(a * a + b * b - 2 * a * b * cosC)", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * cosC", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * cosC", "b", "2 * a * b * cosC", "2", "a", "b", "cosC", "System.out.println(length)", "System.out.println", "System.out", "System", "System.out", "length", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tdouble h_angle = h * 30 + (m * 0.5);\n\t\tdouble m_angle = m * 6;\n\n\t\tdouble diff_angle = Math.abs(h_angle - m_angle);\n\t\tif (diff_angle == 180.0) {\n\t\t\tSystem.out.println(a + b);\n\t\t} else if (diff_angle == 0.0) {\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t} else {\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\n\t\tdouble h_angle = h * 30 + (m * 0.5);\n\t\tdouble m_angle = m * 6;\n\n\t\tdouble diff_angle = Math.abs(h_angle - m_angle);\n\t\tif (diff_angle == 180.0) {\n\t\t\tSystem.out.println(a + b);\n\t\t} else if (diff_angle == 0.0) {\n\t\t\tSystem.out.println(Math.abs(a - b));\n\t\t} else {\n\t\t\tdouble cosC = Math.cos(Math.toRadians(diff_angle));\n\t\t\tdouble length = Math.sqrt(a * a + b * b - 2 * a * b * cosC);\n\t\t\tSystem.out.println(length);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); double h_angle = h * 30 + (m * 0.5); double m_angle = m * 6; double diff_angle = Math.abs(h_angle - m_angle); if (diff_angle == 180.0) { System.out.println(a + b); } else if (diff_angle == 0.0) { System.out.println(Math.abs(a - b)); } else { double cosC = Math.cos(Math.toRadians(diff_angle)); double length = Math.sqrt(a * a + b * b - 2 * a * b * cosC); System.out.println(length); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 2, 2, 17, 13, 13, 17, 41, 13, 2, 13, 17, 41, 13, 17, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 13, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 14, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 2, 2, 13, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 4, 18, 13, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 177, 5 ], [ 177, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 37, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 8, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 56, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 56, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 87, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 56, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 52, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 111, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 111, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 137, 139 ], [ 132, 140 ], [ 142, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 142, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 149, 155 ], [ 111, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 107, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 163, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 171, 172 ], [ 171, 173 ], [ 6, 174 ], [ 174, 175 ], [ 0, 176 ], [ 176, 177 ], [ 176, 178 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hd = (60 * h + m) * 0.5;\n double md = m * 6;\n\n double r = 0.000000000;\n if(hd < md) {\n r = md - hd;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else if(hd > md) {\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else {\n System.out.println(Math.abs(a-b));\n }\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hd = (60 * h + m) * 0.5;\n double md = m * 6;\n\n double r = 0.000000000;\n if(hd < md) {\n r = md - hd;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else if(hd > md) {\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else {\n System.out.println(Math.abs(a-b));\n }\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hd = (60 * h + m) * 0.5;\n double md = m * 6;\n\n double r = 0.000000000;\n if(hd < md) {\n r = md - hd;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else if(hd > md) {\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else {\n System.out.println(Math.abs(a-b));\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hd = (60 * h + m) * 0.5;\n double md = m * 6;\n\n double r = 0.000000000;\n if(hd < md) {\n r = md - hd;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else if(hd > md) {\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else {\n System.out.println(Math.abs(a-b));\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int m = sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "double hd = (60 * h + m) * 0.5;", "hd", "(60 * h + m) * 0.5", "(60 * h + m)", "60 * h", "60", "h", "m", "0.5", "double md = m * 6;", "md", "m * 6", "m", "6", "double r = 0.000000000;", "r", "0.000000000", "if(hd < md) {\n r = md - hd;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else if(hd > md) {\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else {\n System.out.println(Math.abs(a-b));\n }", "hd < md", "hd", "md", "{\n r = md - hd;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }", "r = md - hd", "r", "md - hd", "md", "hd", "if(r > 180) {\n r = 360 - r;\n }", "r > 180", "r", "180", "{\n r = 360 - r;\n }", "r = 360 - r", "r", "360 - r", "360", "r", "double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));", "ans", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(r * Math.PI/180)", "b", "2 * a * b * Math.cos(r * Math.PI/180)", "2", "a", "b", "Math.cos(r * Math.PI/180)", "Math.cos", "Math", "r * Math.PI/180", "r * Math.PI", "r", "Math.PI", "Math", "Math.PI", "180", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "if(hd > md) {\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else {\n System.out.println(Math.abs(a-b));\n }", "hd > md", "hd", "md", "{\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }", "r = hd - md", "r", "hd - md", "hd", "md", "if(r > 180) {\n r = 360 - r;\n }", "r > 180", "r", "180", "{\n r = 360 - r;\n }", "r = 360 - r", "r", "360 - r", "360", "r", "double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));", "ans", "Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180))", "Math.sqrt", "Math", "a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "2 * a * b * Math.cos(r * Math.PI/180)", "b", "2 * a * b * Math.cos(r * Math.PI/180)", "2", "a", "b", "Math.cos(r * Math.PI/180)", "Math.cos", "Math", "r * Math.PI/180", "r * Math.PI", "r", "Math.PI", "Math", "Math.PI", "180", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "{\n System.out.println(Math.abs(a-b));\n }", "System.out.println(Math.abs(a-b))", "System.out.println", "System.out", "System", "System.out", "Math.abs(a-b)", "Math.abs", "Math", "a-b", "a", "b", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hd = (60 * h + m) * 0.5;\n double md = m * 6;\n\n double r = 0.000000000;\n if(hd < md) {\n r = md - hd;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else if(hd > md) {\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else {\n System.out.println(Math.abs(a-b));\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();\n int b = sc.nextInt();\n int h = sc.nextInt();\n int m = sc.nextInt();\n sc.close();\n\n double hd = (60 * h + m) * 0.5;\n double md = m * 6;\n\n double r = 0.000000000;\n if(hd < md) {\n r = md - hd;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else if(hd > md) {\n r = hd - md;\n if(r > 180) {\n r = 360 - r;\n }\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180));\n System.out.println(ans);\n }else {\n System.out.println(Math.abs(a-b));\n }\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int h = sc.nextInt(); int m = sc.nextInt(); sc.close(); double hd = (60 * h + m) * 0.5; double md = m * 6; double r = 0.000000000; if(hd < md) { r = md - hd; if(r > 180) { r = 360 - r; } double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180)); System.out.println(ans); }else if(hd > md) { r = hd - md; if(r > 180) { r = 360 - r; } double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(r * Math.PI/180)); System.out.println(ans); }else { System.out.println(Math.abs(a-b)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 4, 18, 13, 17, 41, 13, 4, 18, 13, 0, 13, 2, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 2, 17, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 17, 18, 13, 13, 17, 4, 18, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 17, 42, 2, 40, 13, 17, 4, 13, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 18, 13, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 2, 4, 18, 13, 18, 13, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 4, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 4, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 4, 13, 17, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 4, 18, 13, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 500, 8 ], [ 500, 9 ], [ 9, 10 ], [ 500, 11 ], [ 11, 12 ], [ 500, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 15, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 28, 32 ], [ 15, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 15, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 40, 42 ], [ 15, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 45, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 15, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 69, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 15, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 92, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 92, 96 ], [ 500, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 99, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 109, 114 ], [ 114, 115 ], [ 99, 116 ], [ 116, 117 ], [ 117, 118 ], [ 97, 119 ], [ 119, 120 ], [ 500, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 124, 137 ], [ 138, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 141, 145 ], [ 145, 146 ], [ 145, 147 ], [ 138, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 138, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 157, 159 ], [ 138, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 121, 165 ], [ 165, 166 ], [ 500, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 177, 179 ], [ 170, 180 ], [ 180, 181 ], [ 181, 182 ], [ 170, 183 ], [ 184, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 187, 191 ], [ 191, 192 ], [ 191, 193 ], [ 184, 194 ], [ 194, 195 ], [ 194, 196 ], [ 196, 197 ], [ 196, 198 ], [ 184, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 203, 204 ], [ 203, 205 ], [ 184, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 206, 210 ], [ 167, 211 ], [ 211, 212 ], [ 500, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 213, 217 ], [ 217, 218 ], [ 213, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 219, 225 ], [ 225, 226 ], [ 213, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 227, 233 ], [ 233, 234 ], [ 213, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 238, 247 ], [ 247, 248 ], [ 247, 249 ], [ 237, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 213, 254 ], [ 254, 255 ], [ 254, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 256, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 261, 266 ], [ 266, 267 ], [ 266, 268 ], [ 261, 269 ], [ 269, 270 ], [ 270, 271 ], [ 261, 272 ], [ 272, 273 ], [ 273, 274 ], [ 274, 275 ], [ 274, 276 ], [ 273, 277 ], [ 277, 278 ], [ 256, 279 ], [ 279, 280 ], [ 254, 281 ], [ 281, 282 ], [ 213, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 285, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 290, 295 ], [ 295, 296 ], [ 295, 297 ], [ 290, 298 ], [ 298, 299 ], [ 299, 300 ], [ 290, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 302, 306 ], [ 306, 307 ], [ 285, 308 ], [ 308, 309 ], [ 283, 310 ], [ 310, 311 ], [ 213, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 315, 316 ], [ 315, 317 ], [ 314, 319 ], [ 319, 320 ], [ 320, 321 ], [ 321, 322 ], [ 321, 323 ], [ 319, 324 ], [ 324, 325 ], [ 324, 326 ], [ 319, 327 ], [ 327, 328 ], [ 328, 329 ], [ 319, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 332, 334 ], [ 331, 335 ], [ 335, 336 ], [ 314, 337 ], [ 337, 338 ], [ 337, 339 ], [ 314, 340 ], [ 340, 341 ], [ 341, 342 ], [ 340, 343 ], [ 314, 344 ], [ 344, 345 ], [ 312, 346 ], [ 346, 347 ], [ 213, 348 ], [ 348, 349 ], [ 348, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 350, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 355, 360 ], [ 360, 361 ], [ 360, 362 ], [ 355, 363 ], [ 363, 364 ], [ 364, 365 ], [ 355, 366 ], [ 366, 367 ], [ 367, 368 ], [ 368, 369 ], [ 368, 370 ], [ 367, 371 ], [ 371, 372 ], [ 350, 373 ], [ 373, 374 ], [ 373, 375 ], [ 350, 376 ], [ 376, 377 ], [ 377, 378 ], [ 376, 379 ], [ 350, 380 ], [ 380, 381 ], [ 348, 382 ], [ 382, 383 ], [ 213, 384 ], [ 384, 385 ], [ 384, 386 ], [ 386, 387 ], [ 387, 388 ], [ 387, 389 ], [ 386, 391 ], [ 391, 392 ], [ 392, 393 ], [ 393, 394 ], [ 393, 395 ], [ 391, 396 ], [ 396, 397 ], [ 396, 398 ], [ 391, 399 ], [ 399, 400 ], [ 400, 401 ], [ 391, 402 ], [ 402, 403 ], [ 403, 404 ], [ 404, 405 ], [ 404, 406 ], [ 403, 407 ], [ 407, 408 ], [ 386, 409 ], [ 409, 410 ], [ 384, 411 ], [ 411, 412 ], [ 213, 413 ], [ 413, 414 ], [ 413, 415 ], [ 415, 416 ], [ 416, 417 ], [ 416, 418 ], [ 415, 420 ], [ 420, 421 ], [ 421, 422 ], [ 422, 423 ], [ 422, 424 ], [ 420, 425 ], [ 425, 426 ], [ 425, 427 ], [ 420, 428 ], [ 428, 429 ], [ 429, 430 ], [ 420, 431 ], [ 431, 432 ], [ 432, 433 ], [ 433, 434 ], [ 433, 435 ], [ 432, 436 ], [ 436, 437 ], [ 415, 438 ], [ 438, 439 ], [ 413, 440 ], [ 440, 441 ], [ 213, 442 ], [ 442, 443 ], [ 442, 444 ], [ 444, 445 ], [ 445, 446 ], [ 446, 447 ], [ 447, 448 ], [ 213, 449 ], [ 449, 450 ], [ 449, 451 ], [ 451, 452 ], [ 452, 453 ], [ 453, 454 ], [ 454, 455 ], [ 453, 456 ], [ 456, 457 ], [ 213, 458 ], [ 458, 459 ], [ 458, 460 ], [ 460, 461 ], [ 461, 462 ], [ 462, 463 ], [ 463, 464 ], [ 462, 465 ], [ 465, 466 ], [ 213, 467 ], [ 467, 468 ], [ 467, 469 ], [ 469, 470 ], [ 470, 471 ], [ 471, 472 ], [ 472, 473 ], [ 473, 474 ], [ 471, 475 ], [ 213, 476 ], [ 476, 477 ], [ 476, 478 ], [ 478, 479 ], [ 479, 480 ], [ 480, 481 ], [ 481, 482 ], [ 480, 483 ], [ 483, 484 ], [ 213, 485 ], [ 485, 486 ], [ 485, 487 ], [ 487, 488 ], [ 488, 489 ], [ 489, 490 ], [ 490, 491 ], [ 213, 492 ], [ 492, 493 ], [ 492, 494 ], [ 494, 495 ], [ 495, 496 ], [ 496, 497 ], [ 495, 498 ], [ 0, 499 ], [ 499, 500 ], [ 499, 501 ] ]
[ "import java.io.*;\nimport java.util.*;\n\n\npublic class Main{\n\tstatic void main() throws Exception{\n\t\tdouble a=sc.nextInt(),b=sc.nextInt(),h=sc.nextInt()*5,m=sc.nextInt();\n\t\th+=m/(12);\n\t\tdouble dif=Math.min(Math.abs(h-m), 60-Math.abs(h-m));\n//\t\tSystem.out.println(dif);\n\t\tdouble cosa=Math.cos(dif*2*Math.PI/60);\n\t\tpw.println(Math.sqrt(a*a+b*b-2*cosa*a*b));\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tpw=new PrintWriter(System.out);\n\t\tsc = new MScanner(System.in);\n\t\tint tc=1;\n\t\twhile(tc-->0)main();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n\tstatic void main() throws Exception{\n\t\tdouble a=sc.nextInt(),b=sc.nextInt(),h=sc.nextInt()*5,m=sc.nextInt();\n\t\th+=m/(12);\n\t\tdouble dif=Math.min(Math.abs(h-m), 60-Math.abs(h-m));\n//\t\tSystem.out.println(dif);\n\t\tdouble cosa=Math.cos(dif*2*Math.PI/60);\n\t\tpw.println(Math.sqrt(a*a+b*b-2*cosa*a*b));\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tpw=new PrintWriter(System.out);\n\t\tsc = new MScanner(System.in);\n\t\tint tc=1;\n\t\twhile(tc-->0)main();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}", "Main", "static PrintWriter pw;", "pw", "static MScanner sc;", "sc", "static void main() throws Exception{\n\t\tdouble a=sc.nextInt(),b=sc.nextInt(),h=sc.nextInt()*5,m=sc.nextInt();\n\t\th+=m/(12);\n\t\tdouble dif=Math.min(Math.abs(h-m), 60-Math.abs(h-m));\n//\t\tSystem.out.println(dif);\n\t\tdouble cosa=Math.cos(dif*2*Math.PI/60);\n\t\tpw.println(Math.sqrt(a*a+b*b-2*cosa*a*b));\n\t}", "main", "{\n\t\tdouble a=sc.nextInt(),b=sc.nextInt(),h=sc.nextInt()*5,m=sc.nextInt();\n\t\th+=m/(12);\n\t\tdouble dif=Math.min(Math.abs(h-m), 60-Math.abs(h-m));\n//\t\tSystem.out.println(dif);\n\t\tdouble cosa=Math.cos(dif*2*Math.PI/60);\n\t\tpw.println(Math.sqrt(a*a+b*b-2*cosa*a*b));\n\t}", "double a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b=sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "h=sc.nextInt()*5", "h", "sc.nextInt()*5", "sc.nextInt()", "sc.nextInt", "sc", "5", "m=sc.nextInt();", "m", "sc.nextInt()", "sc.nextInt", "sc", "h+=m/(12)", "h", "m/(12)", "m", "(12)", "double dif=Math.min(Math.abs(h-m), 60-Math.abs(h-m));", "dif", "Math.min(Math.abs(h-m), 60-Math.abs(h-m))", "Math.min", "Math", "Math.abs(h-m)", "Math.abs", "Math", "h-m", "h", "m", "60-Math.abs(h-m)", "60", "Math.abs(h-m)", "Math.abs", "Math", "h-m", "h", "m", "double cosa=Math.cos(dif*2*Math.PI/60);", "cosa", "Math.cos(dif*2*Math.PI/60)", "Math.cos", "Math", "dif*2*Math.PI/60", "dif*2*Math.PI", "dif*2*Math.PI", "dif", "2", "Math.PI", "Math", "Math.PI", "60", "pw.println(Math.sqrt(a*a+b*b-2*cosa*a*b))", "pw.println", "pw", "Math.sqrt(a*a+b*b-2*cosa*a*b)", "Math.sqrt", "Math", "a*a+b*b-2*cosa*a*b", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "2*cosa*a*b", "a", "2*cosa*a*b", "2", "cosa", "a", "b", "public static void main(String[] args) throws Exception{\n\t\tpw=new PrintWriter(System.out);\n\t\tsc = new MScanner(System.in);\n\t\tint tc=1;\n\t\twhile(tc-->0)main();\n\t\tpw.flush();\n\t}", "main", "{\n\t\tpw=new PrintWriter(System.out);\n\t\tsc = new MScanner(System.in);\n\t\tint tc=1;\n\t\twhile(tc-->0)main();\n\t\tpw.flush();\n\t}", "pw=new PrintWriter(System.out)", "pw", "new PrintWriter(System.out)", "sc = new MScanner(System.in)", "sc", "new MScanner(System.in)", "int tc=1;", "tc", "1", "while(tc-->0)main();", "tc-->0", "tc--", "tc", "0", "main()", "main", "pw.flush()", "pw.flush", "pw", "String[] args", "args", "static void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}", "shuffle", "{\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}", "for(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<in.length", "i", "in.length", "in", "in.length", "i++", "i++", "i", "{\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}", "{\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}", "int idx=(int)(Math.random()*in.length);", "idx", "(int)(Math.random()*in.length)", "Math.random()", "Math.random", "Math", "in.length", "in", "in.length", "int tmp=in[i];", "tmp", "in[i]", "in", "i", "in[i]=in[idx]", "in[i]", "in", "i", "in[idx]", "in", "idx", "in[idx]=tmp", "in[idx]", "in", "idx", "tmp", "int[]in", "in", "static void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}", "shuffle", "{\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}", "for(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<in.length", "i", "in.length", "in", "in.length", "i++", "i++", "i", "{\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}", "{\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}", "int idx=(int)(Math.random()*in.length);", "idx", "(int)(Math.random()*in.length)", "Math.random()", "Math.random", "Math", "in.length", "in", "in.length", "long tmp=in[i];", "tmp", "in[i]", "in", "i", "in[i]=in[idx]", "in[i]", "in", "i", "in[idx]", "in", "idx", "in[idx]=tmp", "in[idx]", "in", "idx", "tmp", "long[]in", "in", "static class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}", "MScanner", "StringTokenizer st;", "st", "BufferedReader br;", "br", "public MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}", "MScanner", "{\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}", "br = new BufferedReader(new InputStreamReader(system))", "br", "new BufferedReader(new InputStreamReader(system))", "InputStream system", "system", "public MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}", "MScanner", "{\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}", "br = new BufferedReader(new FileReader(file))", "br", "new BufferedReader(new FileReader(file))", "String file", "file", "public String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}", "next", "{\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}", "while (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}", "intArr", "{\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}", "int[]in=new int[n];", "in", "new int[n]", "n", "for(int i=0;i<n;i++)in[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "in[i]=nextInt();", "in[i]=nextInt()", "in[i]", "in", "i", "nextInt()", "nextInt", "return in;", "in", "int n", "n", "public long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}", "longArr", "{\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}", "long[]in=new long[n];", "in", "new long[n]", "n", "for(int i=0;i<n;i++)in[i]=nextLong();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "in[i]=nextLong();", "in[i]=nextLong()", "in[i]", "in", "i", "nextLong()", "nextLong", "return in;", "in", "int n", "n", "public int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}", "intSortedArr", "{\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}", "int[]in=new int[n];", "in", "new int[n]", "n", "for(int i=0;i<n;i++)in[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "in[i]=nextInt();", "in[i]=nextInt()", "in[i]", "in", "i", "nextInt()", "nextInt", "shuffle(in)", "shuffle", "in", "Arrays.sort(in)", "Arrays.sort", "Arrays", "in", "return in;", "in", "int n", "n", "public long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}", "longSortedArr", "{\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}", "long[]in=new long[n];", "in", "new long[n]", "n", "for(int i=0;i<n;i++)in[i]=nextLong();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "in[i]=nextLong();", "in[i]=nextLong()", "in[i]", "in", "i", "nextLong()", "nextLong", "shuffle(in)", "shuffle", "in", "Arrays.sort(in)", "Arrays.sort", "Arrays", "in", "return in;", "in", "int n", "n", "public Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}", "IntegerArr", "{\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}", "Integer[]in=new Integer[n];", "in", "new Integer[n]", "n", "for(int i=0;i<n;i++)in[i]=nextInt();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "in[i]=nextInt();", "in[i]=nextInt()", "in[i]", "in", "i", "nextInt()", "nextInt", "return in;", "in", "int n", "n", "public Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}", "LongArr", "{\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}", "Long[]in=new Long[n];", "in", "new Long[n]", "n", "for(int i=0;i<n;i++)in[i]=nextLong();", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "in[i]=nextLong();", "in[i]=nextLong()", "in[i]", "in", "i", "nextLong()", "nextLong", "return in;", "in", "int n", "n", "public String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}", "nextLine", "{\n\t\t\treturn br.readLine();\n\t\t}", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "nextInt", "{\n\t\t\treturn Integer.parseInt(next());\n\t\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "nextDouble", "{\n\t\t\treturn Double.parseDouble(next());\n\t\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}", "nextChar", "{\n\t\t\treturn next().charAt(0);\n\t\t}", "return next().charAt(0);", "next().charAt(0)", "next().charAt", "next()", "next", "0", "public long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}", "nextLong", "{\n\t\t\treturn Long.parseLong(next());\n\t\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}", "ready", "{\n\t\t\treturn br.ready();\n\t\t}", "return br.ready();", "br.ready()", "br.ready", "br", "public void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}", "waitForInput", "{\n\t\t\tThread.sleep(3000);\n\t\t}", "Thread.sleep(3000)", "Thread.sleep", "Thread", "3000", "public class Main{\n\tstatic void main() throws Exception{\n\t\tdouble a=sc.nextInt(),b=sc.nextInt(),h=sc.nextInt()*5,m=sc.nextInt();\n\t\th+=m/(12);\n\t\tdouble dif=Math.min(Math.abs(h-m), 60-Math.abs(h-m));\n//\t\tSystem.out.println(dif);\n\t\tdouble cosa=Math.cos(dif*2*Math.PI/60);\n\t\tpw.println(Math.sqrt(a*a+b*b-2*cosa*a*b));\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tpw=new PrintWriter(System.out);\n\t\tsc = new MScanner(System.in);\n\t\tint tc=1;\n\t\twhile(tc-->0)main();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}", "public class Main{\n\tstatic void main() throws Exception{\n\t\tdouble a=sc.nextInt(),b=sc.nextInt(),h=sc.nextInt()*5,m=sc.nextInt();\n\t\th+=m/(12);\n\t\tdouble dif=Math.min(Math.abs(h-m), 60-Math.abs(h-m));\n//\t\tSystem.out.println(dif);\n\t\tdouble cosa=Math.cos(dif*2*Math.PI/60);\n\t\tpw.println(Math.sqrt(a*a+b*b-2*cosa*a*b));\n\t}\n\tpublic static void main(String[] args) throws Exception{\n\t\tpw=new PrintWriter(System.out);\n\t\tsc = new MScanner(System.in);\n\t\tint tc=1;\n\t\twhile(tc-->0)main();\n\t\tpw.flush();\n\t}\n\tstatic PrintWriter pw;\n\tstatic MScanner sc;\n\tstatic class MScanner {\n\t\tStringTokenizer st;\n\t\tBufferedReader br;\n\t\tpublic MScanner(InputStream system) {\n\t\t\tbr = new BufferedReader(new InputStreamReader(system));\n\t\t}\n \n\t\tpublic MScanner(String file) throws Exception {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t}\n \n\t\tpublic String next() throws IOException {\n\t\t\twhile (st == null || !st.hasMoreTokens())\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\treturn st.nextToken();\n\t\t}\n\t\tpublic int[] intArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic long[] longArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic int[] intSortedArr(int n) throws IOException {\n\t int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic long[] longSortedArr(int n) throws IOException {\n\t long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t shuffle(in);\n\t Arrays.sort(in);\n\t return in;\n\t\t}\n\t\tpublic Integer[] IntegerArr(int n) throws IOException {\n\t Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt();\n\t return in;\n\t\t}\n\t\tpublic Long[] LongArr(int n) throws IOException {\n\t Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong();\n\t return in;\n\t\t}\n\t\tpublic String nextLine() throws IOException {\n\t\t\treturn br.readLine();\n\t\t}\n \n\t\tpublic int nextInt() throws IOException {\n\t\t\treturn Integer.parseInt(next());\n\t\t}\n \n\t\tpublic double nextDouble() throws IOException {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n \n\t\tpublic char nextChar() throws IOException {\n\t\t\treturn next().charAt(0);\n\t\t}\n \n\t\tpublic long nextLong() throws IOException {\n\t\t\treturn Long.parseLong(next());\n\t\t}\n \n\t\tpublic boolean ready() throws IOException {\n\t\t\treturn br.ready();\n\t\t}\n \n\t\tpublic void waitForInput() throws InterruptedException {\n\t\t\tThread.sleep(3000);\n\t\t}\n\t}\n\tstatic void shuffle(int[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tint tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n\tstatic void shuffle(long[]in) {\n\t\tfor(int i=0;i<in.length;i++) {\n\t\t\tint idx=(int)(Math.random()*in.length);\n\t\t\tlong tmp=in[i];\n\t\t\tin[i]=in[idx];\n\t\t\tin[idx]=tmp;\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ static void main() throws Exception{ double a=sc.nextInt(),b=sc.nextInt(),h=sc.nextInt()*5,m=sc.nextInt(); h+=m/(12); double dif=Math.min(Math.abs(h-m), 60-Math.abs(h-m)); // System.out.println(dif); double cosa=Math.cos(dif*2*Math.PI/60); pw.println(Math.sqrt(a*a+b*b-2*cosa*a*b)); } public static void main(String[] args) throws Exception{ pw=new PrintWriter(System.out); sc = new MScanner(System.in); int tc=1; while(tc-->0)main(); pw.flush(); } static PrintWriter pw; static MScanner sc; static class MScanner { StringTokenizer st; BufferedReader br; public MScanner(InputStream system) { br = new BufferedReader(new InputStreamReader(system)); } public MScanner(String file) throws Exception { br = new BufferedReader(new FileReader(file)); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine()); return st.nextToken(); } public int[] intArr(int n) throws IOException { int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt(); return in; } public long[] longArr(int n) throws IOException { long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong(); return in; } public int[] intSortedArr(int n) throws IOException { int[]in=new int[n];for(int i=0;i<n;i++)in[i]=nextInt(); shuffle(in); Arrays.sort(in); return in; } public long[] longSortedArr(int n) throws IOException { long[]in=new long[n];for(int i=0;i<n;i++)in[i]=nextLong(); shuffle(in); Arrays.sort(in); return in; } public Integer[] IntegerArr(int n) throws IOException { Integer[]in=new Integer[n];for(int i=0;i<n;i++)in[i]=nextInt(); return in; } public Long[] LongArr(int n) throws IOException { Long[]in=new Long[n];for(int i=0;i<n;i++)in[i]=nextLong(); return in; } public String nextLine() throws IOException { return br.readLine(); } public int nextInt() throws IOException { return Integer.parseInt(next()); } public double nextDouble() throws IOException { return Double.parseDouble(next()); } public char nextChar() throws IOException { return next().charAt(0); } public long nextLong() throws IOException { return Long.parseLong(next()); } public boolean ready() throws IOException { return br.ready(); } public void waitForInput() throws InterruptedException { Thread.sleep(3000); } } static void shuffle(int[]in) { for(int i=0;i<in.length;i++) { int idx=(int)(Math.random()*in.length); int tmp=in[i]; in[i]=in[idx]; in[idx]=tmp; } } static void shuffle(long[]in) { for(int i=0;i<in.length;i++) { int idx=(int)(Math.random()*in.length); long tmp=in[i]; in[i]=in[idx]; in[idx]=tmp; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 17, 17, 41, 13, 2, 17, 2, 17, 17, 41, 13, 2, 13, 13, 41, 13, 2, 2, 2, 13, 17, 13, 2, 13, 13, 41, 13, 2, 13, 13, 14, 2, 13, 17, 30, 0, 13, 2, 17, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 2, 13, 13, 30, 0, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 137, 5 ], [ 137, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 8, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 78, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 91, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 91, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 111, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 116, 120 ], [ 109, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 121, 127 ], [ 91, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 6, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n sc.close();\n\n // 一分ごとの分針の角度の増減値を求める\n double perMinRad = 360.0000 / 60.0000;\n\n // 一時間ごとの時針の角度の増減値を求める\n double perHourRad = 360.0000 / (12.0000 * 60.0000);\n\n // 分針の角度\n double minRad = perMinRad * M;\n\n // 時針の角度\n double hourRad = (H * 60 * perHourRad) + (M * perHourRad);\n\n double rad = hourRad - minRad;\n\n if (rad > 180) {\n rad = 360.0000 - rad;\n }\n\n if (rad == 180.0) {\n System.out.println(A + B);\n } else {\n rad = Math.toRadians(rad);\n double cosRad = Math.cos(rad);\n double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));\n System.out.println(res);\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n sc.close();\n\n // 一分ごとの分針の角度の増減値を求める\n double perMinRad = 360.0000 / 60.0000;\n\n // 一時間ごとの時針の角度の増減値を求める\n double perHourRad = 360.0000 / (12.0000 * 60.0000);\n\n // 分針の角度\n double minRad = perMinRad * M;\n\n // 時針の角度\n double hourRad = (H * 60 * perHourRad) + (M * perHourRad);\n\n double rad = hourRad - minRad;\n\n if (rad > 180) {\n rad = 360.0000 - rad;\n }\n\n if (rad == 180.0) {\n System.out.println(A + B);\n } else {\n rad = Math.toRadians(rad);\n double cosRad = Math.cos(rad);\n double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));\n System.out.println(res);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n sc.close();\n\n // 一分ごとの分針の角度の増減値を求める\n double perMinRad = 360.0000 / 60.0000;\n\n // 一時間ごとの時針の角度の増減値を求める\n double perHourRad = 360.0000 / (12.0000 * 60.0000);\n\n // 分針の角度\n double minRad = perMinRad * M;\n\n // 時針の角度\n double hourRad = (H * 60 * perHourRad) + (M * perHourRad);\n\n double rad = hourRad - minRad;\n\n if (rad > 180) {\n rad = 360.0000 - rad;\n }\n\n if (rad == 180.0) {\n System.out.println(A + B);\n } else {\n rad = Math.toRadians(rad);\n double cosRad = Math.cos(rad);\n double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));\n System.out.println(res);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n sc.close();\n\n // 一分ごとの分針の角度の増減値を求める\n double perMinRad = 360.0000 / 60.0000;\n\n // 一時間ごとの時針の角度の増減値を求める\n double perHourRad = 360.0000 / (12.0000 * 60.0000);\n\n // 分針の角度\n double minRad = perMinRad * M;\n\n // 時針の角度\n double hourRad = (H * 60 * perHourRad) + (M * perHourRad);\n\n double rad = hourRad - minRad;\n\n if (rad > 180) {\n rad = 360.0000 - rad;\n }\n\n if (rad == 180.0) {\n System.out.println(A + B);\n } else {\n rad = Math.toRadians(rad);\n double cosRad = Math.cos(rad);\n double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));\n System.out.println(res);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "double A = sc.nextDouble();", "A", "sc.nextDouble()", "sc.nextDouble", "sc", "double B = sc.nextDouble();", "B", "sc.nextDouble()", "sc.nextDouble", "sc", "double H = sc.nextDouble();", "H", "sc.nextDouble()", "sc.nextDouble", "sc", "double M = sc.nextDouble();", "M", "sc.nextDouble()", "sc.nextDouble", "sc", "sc.close()", "sc.close", "sc", "double perMinRad = 360.0000 / 60.0000;", "perMinRad", "360.0000 / 60.0000", "360.0000", "60.0000", "double perHourRad = 360.0000 / (12.0000 * 60.0000);", "perHourRad", "360.0000 / (12.0000 * 60.0000)", "360.0000", "(12.0000 * 60.0000)", "12.0000", "60.0000", "double minRad = perMinRad * M;", "minRad", "perMinRad * M", "perMinRad", "M", "double hourRad = (H * 60 * perHourRad) + (M * perHourRad);", "hourRad", "(H * 60 * perHourRad) + (M * perHourRad)", "(H * 60 * perHourRad)", "H * 60 * perHourRad", "H", "60", "perHourRad", "(M * perHourRad)", "M", "perHourRad", "double rad = hourRad - minRad;", "rad", "hourRad - minRad", "hourRad", "minRad", "if (rad > 180) {\n rad = 360.0000 - rad;\n }", "rad > 180", "rad", "180", "{\n rad = 360.0000 - rad;\n }", "rad = 360.0000 - rad", "rad", "360.0000 - rad", "360.0000", "rad", "if (rad == 180.0) {\n System.out.println(A + B);\n } else {\n rad = Math.toRadians(rad);\n double cosRad = Math.cos(rad);\n double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));\n System.out.println(res);\n }", "rad == 180.0", "rad", "180.0", "{\n System.out.println(A + B);\n }", "System.out.println(A + B)", "System.out.println", "System.out", "System", "System.out", "A + B", "A", "B", "{\n rad = Math.toRadians(rad);\n double cosRad = Math.cos(rad);\n double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));\n System.out.println(res);\n }", "rad = Math.toRadians(rad)", "rad", "Math.toRadians(rad)", "Math.toRadians", "Math", "rad", "double cosRad = Math.cos(rad);", "cosRad", "Math.cos(rad)", "Math.cos", "Math", "rad", "double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));", "res", "Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad))", "Math.sqrt", "Math", "Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad)", "Math.pow(A, 2) + Math.pow(B, 2)", "Math.pow(A, 2)", "Math.pow", "Math", "A", "2", "Math.pow(B, 2)", "Math.pow", "Math", "B", "2", "(2 * A * B * cosRad)", "B", "2 * A * B * cosRad", "2", "A", "B", "cosRad", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n sc.close();\n\n // 一分ごとの分針の角度の増減値を求める\n double perMinRad = 360.0000 / 60.0000;\n\n // 一時間ごとの時針の角度の増減値を求める\n double perHourRad = 360.0000 / (12.0000 * 60.0000);\n\n // 分針の角度\n double minRad = perMinRad * M;\n\n // 時針の角度\n double hourRad = (H * 60 * perHourRad) + (M * perHourRad);\n\n double rad = hourRad - minRad;\n\n if (rad > 180) {\n rad = 360.0000 - rad;\n }\n\n if (rad == 180.0) {\n System.out.println(A + B);\n } else {\n rad = Math.toRadians(rad);\n double cosRad = Math.cos(rad);\n double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));\n System.out.println(res);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n sc.close();\n\n // 一分ごとの分針の角度の増減値を求める\n double perMinRad = 360.0000 / 60.0000;\n\n // 一時間ごとの時針の角度の増減値を求める\n double perHourRad = 360.0000 / (12.0000 * 60.0000);\n\n // 分針の角度\n double minRad = perMinRad * M;\n\n // 時針の角度\n double hourRad = (H * 60 * perHourRad) + (M * perHourRad);\n\n double rad = hourRad - minRad;\n\n if (rad > 180) {\n rad = 360.0000 - rad;\n }\n\n if (rad == 180.0) {\n System.out.println(A + B);\n } else {\n rad = Math.toRadians(rad);\n double cosRad = Math.cos(rad);\n double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad));\n System.out.println(res);\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double A = sc.nextDouble(); double B = sc.nextDouble(); double H = sc.nextDouble(); double M = sc.nextDouble(); sc.close(); // 一分ごとの分針の角度の増減値を求める double perMinRad = 360.0000 / 60.0000; // 一時間ごとの時針の角度の増減値を求める double perHourRad = 360.0000 / (12.0000 * 60.0000); // 分針の角度 double minRad = perMinRad * M; // 時針の角度 double hourRad = (H * 60 * perHourRad) + (M * perHourRad); double rad = hourRad - minRad; if (rad > 180) { rad = 360.0000 - rad; } if (rad == 180.0) { System.out.println(A + B); } else { rad = Math.toRadians(rad); double cosRad = Math.cos(rad); double res = Math.sqrt(Math.pow(A, 2) + Math.pow(B, 2) - (2 * A * B * cosRad)); System.out.println(res); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 41, 13, 4, 13, 4, 18, 13, 41, 13, 4, 13, 4, 18, 13, 41, 13, 4, 13, 4, 18, 13, 41, 13, 4, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 2, 4, 13, 2, 13, 2, 2, 13, 17, 2, 13, 17, 13, 2, 4, 13, 2, 2, 13, 13, 17, 13, 41, 13, 2, 2, 4, 13, 2, 13, 2, 2, 13, 17, 2, 13, 17, 13, 2, 4, 13, 2, 2, 13, 13, 17, 13, 41, 13, 4, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 136, 23 ], [ 136, 24 ], [ 24, 25 ], [ 24, 26 ], [ 136, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 29, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 29, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 29, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 29, 65 ], [ 65, 66 ], [ 66, 67 ], [ 29, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 71, 83 ], [ 70, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 84, 92 ], [ 29, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 96, 108 ], [ 95, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 109, 117 ], [ 29, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 29, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 27, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.util.*;\nimport java.io.PrintWriter;\nimport static java.lang.Integer.*;\nimport static java.lang.Long.*;\nimport static java.lang.Double.*;\nimport static java.lang.Math.*;\nimport static java.lang.System.*;\n\npublic class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tdouble a = parseDouble(sc.next());\n\t\tdouble b = parseDouble(sc.next());\n\t\tdouble h = parseDouble(sc.next());\n\t\tdouble m = parseDouble(sc.next());\n\t\tsc.close();\n\t\tdouble dx = cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b;\n\t\tdouble dy = sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b;\n\t\tdouble ans=sqrt(dx*dx+dy*dy);\n\t\tout.println(ans);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import static java.lang.Integer.*;", "import static java.lang.Integer.*;", "import static java.lang.Integer.*;", "import static java.lang.Long.*;", "import static java.lang.Long.*;", "import static java.lang.Long.*;", "import static java.lang.Double.*;", "import static java.lang.Double.*;", "import static java.lang.Double.*;", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "import static java.lang.Math.*;", "import static java.lang.System.*;", "import static java.lang.System.*;", "import static java.lang.System.*;", "public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tdouble a = parseDouble(sc.next());\n\t\tdouble b = parseDouble(sc.next());\n\t\tdouble h = parseDouble(sc.next());\n\t\tdouble m = parseDouble(sc.next());\n\t\tsc.close();\n\t\tdouble dx = cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b;\n\t\tdouble dy = sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b;\n\t\tdouble ans=sqrt(dx*dx+dy*dy);\n\t\tout.println(ans);\n\t}\n}", "Main", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tdouble a = parseDouble(sc.next());\n\t\tdouble b = parseDouble(sc.next());\n\t\tdouble h = parseDouble(sc.next());\n\t\tdouble m = parseDouble(sc.next());\n\t\tsc.close();\n\t\tdouble dx = cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b;\n\t\tdouble dy = sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b;\n\t\tdouble ans=sqrt(dx*dx+dy*dy);\n\t\tout.println(ans);\n\t}", "main", "{\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tdouble a = parseDouble(sc.next());\n\t\tdouble b = parseDouble(sc.next());\n\t\tdouble h = parseDouble(sc.next());\n\t\tdouble m = parseDouble(sc.next());\n\t\tsc.close();\n\t\tdouble dx = cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b;\n\t\tdouble dy = sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b;\n\t\tdouble ans=sqrt(dx*dx+dy*dy);\n\t\tout.println(ans);\n\t}", "int i", "i", "j;", "j", "Scanner sc = new Scanner(in);", "sc", "new Scanner(in)", "double a = parseDouble(sc.next());", "a", "parseDouble(sc.next())", "parseDouble", "sc.next()", "sc.next", "sc", "double b = parseDouble(sc.next());", "b", "parseDouble(sc.next())", "parseDouble", "sc.next()", "sc.next", "sc", "double h = parseDouble(sc.next());", "h", "parseDouble(sc.next())", "parseDouble", "sc.next()", "sc.next", "sc", "double m = parseDouble(sc.next());", "m", "parseDouble(sc.next())", "parseDouble", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "double dx = cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b;", "dx", "cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b", "cos(PI*(h/6+m/360)) * a", "cos(PI*(h/6+m/360))", "cos", "PI*(h/6+m/360)", "PI", "(h/6+m/360)", "h/6", "h", "6", "m/360", "m", "360", "a", "cos(PI*m/30) * b", "cos(PI*m/30)", "cos", "PI*m/30", "PI*m", "PI", "m", "30", "b", "double dy = sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b;", "dy", "sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b", "sin(PI*(h/6+m/360)) * a", "sin(PI*(h/6+m/360))", "sin", "PI*(h/6+m/360)", "PI", "(h/6+m/360)", "h/6", "h", "6", "m/360", "m", "360", "a", "sin(PI*m/30) * b", "sin(PI*m/30)", "sin", "PI*m/30", "PI*m", "PI", "m", "30", "b", "double ans=sqrt(dx*dx+dy*dy);", "ans", "sqrt(dx*dx+dy*dy)", "sqrt", "dx*dx+dy*dy", "dx*dx", "dx", "dx", "dy*dy", "dy", "dy", "out.println(ans)", "out.println", "out", "ans", "String[] args", "args", "public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tdouble a = parseDouble(sc.next());\n\t\tdouble b = parseDouble(sc.next());\n\t\tdouble h = parseDouble(sc.next());\n\t\tdouble m = parseDouble(sc.next());\n\t\tsc.close();\n\t\tdouble dx = cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b;\n\t\tdouble dy = sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b;\n\t\tdouble ans=sqrt(dx*dx+dy*dy);\n\t\tout.println(ans);\n\t}\n}", "public class Main {\n\tpublic static final int MOD = 1000000007;\n\tpublic static void main(String[] args) {\n\t\tint i,j;\n\t\tScanner sc = new Scanner(in);\n\t\tdouble a = parseDouble(sc.next());\n\t\tdouble b = parseDouble(sc.next());\n\t\tdouble h = parseDouble(sc.next());\n\t\tdouble m = parseDouble(sc.next());\n\t\tsc.close();\n\t\tdouble dx = cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b;\n\t\tdouble dy = sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b;\n\t\tdouble ans=sqrt(dx*dx+dy*dy);\n\t\tout.println(ans);\n\t}\n}", "Main" ]
import java.util.*; import java.io.PrintWriter; import static java.lang.Integer.*; import static java.lang.Long.*; import static java.lang.Double.*; import static java.lang.Math.*; import static java.lang.System.*; public class Main { public static final int MOD = 1000000007; public static void main(String[] args) { int i,j; Scanner sc = new Scanner(in); double a = parseDouble(sc.next()); double b = parseDouble(sc.next()); double h = parseDouble(sc.next()); double m = parseDouble(sc.next()); sc.close(); double dx = cos(PI*(h/6+m/360)) * a - cos(PI*m/30) * b; double dy = sin(PI*(h/6+m/360)) * a - sin(PI*m/30) * b; double ans=sqrt(dx*dx+dy*dy); out.println(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 12, 13, 30, 4, 13, 13, 14, 2, 13, 17, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 2, 2, 17, 2, 13, 17, 2, 17, 13, 41, 13, 2, 17, 13, 41, 13, 4, 18, 13, 2, 17, 4, 18, 13, 2, 13, 13, 2, 17, 4, 18, 13, 2, 17, 4, 18, 13, 2, 13, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 17, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 0, 13, 20, 14, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 13, 4, 18, 4, 18, 13, 17, 0, 13, 17, 12, 13, 30, 4, 13, 29, 4, 18, 13, 18, 13, 40, 13, 12, 13, 30, 4, 13, 29, 4, 18, 13, 18, 13, 40, 13, 12, 13, 30, 4, 13, 29, 18, 13, 40, 13, 12, 13, 30, 4, 13, 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, 0, 13, 18, 13, 13, 29, 13, 12, 13, 30, 4, 13, 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, 0, 13, 18, 13, 13, 29, 13, 12, 13, 30, 4, 13, 0, 13, 18, 13, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 313, 8 ], [ 313, 9 ], [ 9, 10 ], [ 9, 11 ], [ 313, 12 ], [ 12, 13 ], [ 12, 14 ], [ 313, 15 ], [ 15, 16 ], [ 15, 17 ], [ 313, 18 ], [ 18, 19 ], [ 18, 20 ], [ 313, 21 ], [ 21, 22 ], [ 21, 23 ], [ 313, 24 ], [ 24, 25 ], [ 24, 26 ], [ 313, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 29, 44 ], [ 44, 45 ], [ 45, 46 ], [ 27, 47 ], [ 47, 48 ], [ 313, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 51, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 51, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 51, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 51, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 51, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 86, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 107, 109 ], [ 51, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 120, 122 ], [ 115, 123 ], [ 125, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 125, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 51, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 136, 142 ], [ 49, 143 ], [ 143, 144 ], [ 313, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 147, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 156, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 169, 174 ], [ 166, 175 ], [ 175, 176 ], [ 175, 177 ], [ 313, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 184, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 313, 191 ], [ 191, 192 ], [ 191, 193 ], [ 193, 194 ], [ 194, 195 ], [ 193, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 197, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 313, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 206, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 313, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 216, 219 ], [ 219, 220 ], [ 219, 221 ], [ 222, 223 ], [ 222, 224 ], [ 216, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 225, 230 ], [ 230, 231 ], [ 230, 232 ], [ 232, 233 ], [ 232, 234 ], [ 225, 235 ], [ 235, 236 ], [ 236, 237 ], [ 225, 238 ], [ 239, 239 ], [ 239, 240 ], [ 240, 241 ], [ 241, 242 ], [ 241, 243 ], [ 240, 244 ], [ 244, 245 ], [ 245, 246 ], [ 244, 247 ], [ 247, 248 ], [ 247, 249 ], [ 216, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 252, 254 ], [ 216, 255 ], [ 255, 256 ], [ 313, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 259, 262 ], [ 262, 263 ], [ 262, 264 ], [ 265, 266 ], [ 265, 267 ], [ 259, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 268, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 275, 277 ], [ 268, 278 ], [ 278, 279 ], [ 279, 280 ], [ 268, 281 ], [ 282, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 283, 287 ], [ 287, 288 ], [ 288, 289 ], [ 287, 290 ], [ 290, 291 ], [ 290, 292 ], [ 259, 293 ], [ 293, 294 ], [ 293, 295 ], [ 295, 296 ], [ 295, 297 ], [ 259, 298 ], [ 298, 299 ], [ 313, 300 ], [ 300, 301 ], [ 300, 302 ], [ 302, 303 ], [ 303, 304 ], [ 302, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 307, 309 ], [ 302, 310 ], [ 310, 311 ], [ 0, 312 ], [ 312, 313 ], [ 312, 314 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static long cnt=0;\n\tpublic static PrintWriter pw = new PrintWriter(System.out);\n\tpublic static void main(String[] args) throws Exception {\n\t\tsolution(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\n\tpublic static void solution(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\tdouble r = Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t\tdouble ans = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)));\n\n\t\tSystem.out.printf(\"%.12f\\n\",ans);\n\n\n\t}\n\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n}\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static long cnt=0;\n\tpublic static PrintWriter pw = new PrintWriter(System.out);\n\tpublic static void main(String[] args) throws Exception {\n\t\tsolution(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\n\tpublic static void solution(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\tdouble r = Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t\tdouble ans = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)));\n\n\t\tSystem.out.printf(\"%.12f\\n\",ans);\n\n\n\t}\n\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n}", "Main", "final static long MOD = 1000000007;", "MOD", "1000000007", "public static String[] Ws = null;", "Ws", "null", "public static int wsIndx = 0;", "wsIndx", "0", "public static BufferedReader in = null;", "in", "null", "public static long cnt=0;", "cnt", "0", "public static PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "public static void main(String[] args) throws Exception {\n\t\tsolution(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}", "main", "{\n\t\tsolution(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}", "solution(args)", "solution", "args", "if(in!=null){\n\t\t\tin.close();\n\t\t}", "in!=null", "in", "null", "{\n\t\t\tin.close();\n\t\t}", "in.close()", "in.close", "in", "pw.flush()", "pw.flush", "pw", "pw.close()", "pw.close", "pw", "String[] args", "args", "public static void solution(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\tdouble r = Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t\tdouble ans = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)));\n\n\t\tSystem.out.printf(\"%.12f\\n\",ans);\n\n\n\t}", "solution", "{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\tdouble r = Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t\tdouble ans = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)));\n\n\t\tSystem.out.printf(\"%.12f\\n\",ans);\n\n\n\t}", "int A = nextInt();", "A", "nextInt()", "nextInt", "int B = nextInt();", "B", "nextInt()", "nextInt", "int H = nextInt();", "H", "nextInt()", "nextInt", "int M = nextInt();", "M", "nextInt()", "nextInt", "double x=30*(H%12)+0.5*M;", "x", "30*(H%12)+0.5*M", "30*(H%12)", "30", "(H%12)", "H", "12", "0.5*M", "0.5", "M", "double y=6*M;", "y", "6*M", "6", "M", "double r = Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));", "r", "Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)))", "Math.min", "Math", "1.0*Math.abs(x-y)", "1.0", "Math.abs(x-y)", "Math.abs", "Math", "x-y", "x", "y", "1.0*Math.abs(360-Math.abs(x-y))", "1.0", "Math.abs(360-Math.abs(x-y))", "Math.abs", "Math", "360-Math.abs(x-y)", "360", "Math.abs(x-y)", "Math.abs", "Math", "x-y", "x", "y", "double ans = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)));", "ans", "Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)))", "Math.sqrt", "Math", "A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.toRadians(r))", "B", "2*A*B*Math.cos(Math.toRadians(r))", "2", "A", "B", "Math.cos(Math.toRadians(r))", "Math.cos", "Math", "Math.toRadians(r)", "Math.toRadians", "Math", "r", "System.out.printf(\"%.12f\\n\",ans)", "System.out.printf", "System.out", "System", "System.out", "\"%.12f\\n\"", "ans", "String[] args", "args", "public static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}", "check", "{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}", "if(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "in == null", "in", "null", "{\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "in = new BufferedReader(new InputStreamReader(System.in))", "in", "new BufferedReader(new InputStreamReader(System.in))", "if(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}", "Ws==null || Ws.length<=wsIndx", "Ws==null", "Ws", "null", "Ws.length<=wsIndx", "Ws.length", "Ws", "Ws.length", "wsIndx", "{\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}", "Ws = in.readLine().split(\" \")", "Ws", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "wsIndx=0", "wsIndx", "0", "public static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}", "nextInt", "{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}", "check()", "check", "return Integer.parseInt(Ws[wsIndx++]);", "Integer.parseInt(Ws[wsIndx++])", "Integer.parseInt", "Integer", "Ws[wsIndx++]", "Ws", "wsIndx++", "wsIndx", "public static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}", "nextLong", "{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}", "check()", "check", "return Long.parseLong(Ws[wsIndx++]);", "Long.parseLong(Ws[wsIndx++])", "Long.parseLong", "Long", "Ws[wsIndx++]", "Ws", "wsIndx++", "wsIndx", "public static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}", "nextString", "{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}", "check()", "check", "return Ws[wsIndx++];", "Ws[wsIndx++]", "Ws", "wsIndx++", "wsIndx", "public static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}", "nextInts", "{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}", "check()", "check", "int[] tmp = new int[Ws.length];", "tmp", "new int[Ws.length]", "Ws.length", "Ws", "Ws.length", "for(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<tmp.length", "i", "tmp.length", "tmp", "tmp.length", "i++", "i++", "i", "{\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}", "{\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}", "tmp[i]=Integer.parseInt(Ws[i])", "tmp[i]", "tmp", "i", "Integer.parseInt(Ws[i])", "Integer.parseInt", "Integer", "Ws[i]", "Ws", "i", "wsIndx=Ws.length", "wsIndx", "Ws.length", "Ws", "Ws.length", "return tmp;", "tmp", "public static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}", "nextLongs", "{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}", "check()", "check", "long[] tmp = new long[Ws.length];", "tmp", "new long[Ws.length]", "Ws.length", "Ws", "Ws.length", "for(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<tmp.length", "i", "tmp.length", "tmp", "tmp.length", "i++", "i++", "i", "{\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}", "{\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}", "tmp[i]=Long.parseLong(Ws[i])", "tmp[i]", "tmp", "i", "Long.parseLong(Ws[i])", "Long.parseLong", "Long", "Ws[i]", "Ws", "i", "wsIndx=Ws.length", "wsIndx", "Ws.length", "Ws", "Ws.length", "return tmp;", "tmp", "public static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}", "nextStrings", "{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}", "check()", "check", "wsIndx=Ws.length", "wsIndx", "Ws.length", "Ws", "Ws.length", "return Ws;", "Ws", "public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static long cnt=0;\n\tpublic static PrintWriter pw = new PrintWriter(System.out);\n\tpublic static void main(String[] args) throws Exception {\n\t\tsolution(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\n\tpublic static void solution(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\tdouble r = Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t\tdouble ans = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)));\n\n\t\tSystem.out.printf(\"%.12f\\n\",ans);\n\n\n\t}\n\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n}", "public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static long cnt=0;\n\tpublic static PrintWriter pw = new PrintWriter(System.out);\n\tpublic static void main(String[] args) throws Exception {\n\t\tsolution(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\n\tpublic static void solution(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\tdouble r = Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t\tdouble ans = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)));\n\n\t\tSystem.out.printf(\"%.12f\\n\",ans);\n\n\n\t}\n\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { final static long MOD = 1000000007; public static String[] Ws = null; public static int wsIndx = 0; public static BufferedReader in = null; public static long cnt=0; public static PrintWriter pw = new PrintWriter(System.out); public static void main(String[] args) throws Exception { solution(args); if(in!=null){ in.close(); } pw.flush(); pw.close(); } public static void solution(String[] args) throws Exception{ int A = nextInt(); int B = nextInt(); int H = nextInt(); int M = nextInt(); double x=30*(H%12)+0.5*M; double y=6*M; //内角の角度 double r = Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y))); double ans = Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))); System.out.printf("%.12f\n",ans); } public static void check() throws Exception{ if(in == null){ in = new BufferedReader(new InputStreamReader(System.in)); } if(Ws==null || Ws.length<=wsIndx){ Ws = in.readLine().split(" "); wsIndx=0; } } public static int nextInt()throws Exception{ check(); return Integer.parseInt(Ws[wsIndx++]); } public static long nextLong()throws Exception{ check(); return Long.parseLong(Ws[wsIndx++]); } public static String nextString()throws Exception{ check(); return Ws[wsIndx++]; } public static int[] nextInts()throws Exception{ check(); int[] tmp = new int[Ws.length]; for(int i=0;i<tmp.length;i++){ tmp[i]=Integer.parseInt(Ws[i]); } wsIndx=Ws.length; return tmp; } public static long[] nextLongs()throws Exception{ check(); long[] tmp = new long[Ws.length]; for(int i=0;i<tmp.length;i++){ tmp[i]=Long.parseLong(Ws[i]); } wsIndx=Ws.length; return tmp; } public static String[] nextStrings()throws Exception{ check(); wsIndx=Ws.length; return Ws; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 42, 44 ], [ 8, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 8, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 56, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 8, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n double a = scanner.nextDouble();\n double b = scanner.nextDouble();\n int h = scanner.nextInt();\n int m = scanner.nextInt();\n\n// 角度を求める\n double angle = (h * 30.0 + m * 0.5) - ( m * 6.0 );\n double angles = Math.abs(angle);\n\n double before = Math.sqrt(Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles))));\n System.out.println(before);\n\n scanner.close();\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 double a = scanner.nextDouble();\n double b = scanner.nextDouble();\n int h = scanner.nextInt();\n int m = scanner.nextInt();\n\n// 角度を求める\n double angle = (h * 30.0 + m * 0.5) - ( m * 6.0 );\n double angles = Math.abs(angle);\n\n double before = Math.sqrt(Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles))));\n System.out.println(before);\n\n scanner.close();\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n double a = scanner.nextDouble();\n double b = scanner.nextDouble();\n int h = scanner.nextInt();\n int m = scanner.nextInt();\n\n// 角度を求める\n double angle = (h * 30.0 + m * 0.5) - ( m * 6.0 );\n double angles = Math.abs(angle);\n\n double before = Math.sqrt(Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles))));\n System.out.println(before);\n\n scanner.close();\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n double a = scanner.nextDouble();\n double b = scanner.nextDouble();\n int h = scanner.nextInt();\n int m = scanner.nextInt();\n\n// 角度を求める\n double angle = (h * 30.0 + m * 0.5) - ( m * 6.0 );\n double angles = Math.abs(angle);\n\n double before = Math.sqrt(Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles))));\n System.out.println(before);\n\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "double a = scanner.nextDouble();", "a", "scanner.nextDouble()", "scanner.nextDouble", "scanner", "double b = scanner.nextDouble();", "b", "scanner.nextDouble()", "scanner.nextDouble", "scanner", "int h = scanner.nextInt();", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "int m = scanner.nextInt();", "m", "scanner.nextInt()", "scanner.nextInt", "scanner", "double angle = (h * 30.0 + m * 0.5) - ( m * 6.0 );", "angle", "(h * 30.0 + m * 0.5) - ( m * 6.0 )", "(h * 30.0 + m * 0.5)", "h * 30.0", "h", "30.0", "m * 0.5", "m", "0.5", "( m * 6.0 )", "m", "6.0", "double angles = Math.abs(angle);", "angles", "Math.abs(angle)", "Math.abs", "Math", "angle", "double before = Math.sqrt(Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles))));", "before", "Math.sqrt(Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles))))", "Math.sqrt", "Math", "Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles)))", "Math.pow(a,2) + Math.pow(b,2)", "Math.pow(a,2)", "Math.pow", "Math", "a", "2", "Math.pow(b,2)", "Math.pow", "Math", "b", "2", "(2.0 * a * b * Math.cos(Math.toRadians(angles)))", "b", "2.0 * a * b * Math.cos(Math.toRadians(angles))", "2.0", "a", "b", "Math.cos(Math.toRadians(angles))", "Math.cos", "Math", "Math.toRadians(angles)", "Math.toRadians", "Math", "angles", "System.out.println(before)", "System.out.println", "System.out", "System", "System.out", "before", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n double a = scanner.nextDouble();\n double b = scanner.nextDouble();\n int h = scanner.nextInt();\n int m = scanner.nextInt();\n\n// 角度を求める\n double angle = (h * 30.0 + m * 0.5) - ( m * 6.0 );\n double angles = Math.abs(angle);\n\n double before = Math.sqrt(Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles))));\n System.out.println(before);\n\n scanner.close();\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n double a = scanner.nextDouble();\n double b = scanner.nextDouble();\n int h = scanner.nextInt();\n int m = scanner.nextInt();\n\n// 角度を求める\n double angle = (h * 30.0 + m * 0.5) - ( m * 6.0 );\n double angles = Math.abs(angle);\n\n double before = Math.sqrt(Math.pow(a,2) + Math.pow(b,2)\n - (2.0 * a * b * Math.cos(Math.toRadians(angles))));\n System.out.println(before);\n\n scanner.close();\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double a = scanner.nextDouble(); double b = scanner.nextDouble(); int h = scanner.nextInt(); int m = scanner.nextInt(); // 角度を求める double angle = (h * 30.0 + m * 0.5) - ( m * 6.0 ); double angles = Math.abs(angle); double before = Math.sqrt(Math.pow(a,2) + Math.pow(b,2) - (2.0 * a * b * Math.cos(Math.toRadians(angles)))); System.out.println(before); scanner.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 12, 13, 30, 4, 13, 13, 14, 2, 13, 17, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 0, 13, 2, 13, 17, 14, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 23, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 14, 2, 4, 18, 13, 13, 30, 4, 18, 13, 13, 30, 4, 18, 13, 2, 4, 18, 13, 17, 13, 17, 23, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 2, 2, 17, 2, 13, 17, 2, 17, 13, 41, 13, 2, 17, 13, 29, 4, 18, 13, 2, 17, 4, 18, 13, 2, 13, 13, 2, 17, 4, 18, 13, 2, 17, 4, 18, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 14, 2, 13, 17, 30, 0, 13, 20, 14, 2, 2, 13, 17, 2, 18, 13, 13, 13, 30, 0, 13, 4, 18, 4, 18, 13, 17, 0, 13, 17, 12, 13, 30, 4, 13, 29, 4, 18, 13, 18, 13, 40, 13, 12, 13, 30, 4, 13, 29, 4, 18, 13, 18, 13, 40, 13, 12, 13, 30, 4, 13, 29, 18, 13, 40, 13, 12, 13, 30, 4, 13, 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, 0, 13, 18, 13, 13, 29, 13, 12, 13, 30, 4, 13, 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, 0, 13, 18, 13, 13, 29, 13, 12, 13, 30, 4, 13, 0, 13, 18, 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 ], [ 425, 11 ], [ 425, 12 ], [ 12, 13 ], [ 12, 14 ], [ 425, 15 ], [ 15, 16 ], [ 15, 17 ], [ 425, 18 ], [ 18, 19 ], [ 18, 20 ], [ 425, 21 ], [ 21, 22 ], [ 21, 23 ], [ 425, 24 ], [ 24, 25 ], [ 24, 26 ], [ 425, 27 ], [ 27, 28 ], [ 27, 29 ], [ 425, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 32, 44 ], [ 44, 45 ], [ 45, 46 ], [ 32, 47 ], [ 47, 48 ], [ 48, 49 ], [ 30, 50 ], [ 50, 51 ], [ 425, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 68, 66 ], [ 78, 67 ], [ 75, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 75, 75 ], [ 75, 76 ], [ 75, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 68, 81 ], [ 81, 82 ], [ 81, 83 ], [ 64, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 64, 89 ], [ 89, 90 ], [ 92, 91 ], [ 99, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 99, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 102, 104 ], [ 89, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 89, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 52, 115 ], [ 115, 116 ], [ 425, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 119, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 119, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 129, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 128, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 144, 148 ], [ 143, 149 ], [ 117, 150 ], [ 150, 151 ], [ 425, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 154, 163 ], [ 163, 164 ], [ 163, 165 ], [ 165, 166 ], [ 154, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 154, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 173, 175 ], [ 173, 176 ], [ 154, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 177, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 191, 192 ], [ 191, 193 ], [ 186, 194 ], [ 196, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 199 ], [ 196, 200 ], [ 200, 201 ], [ 201, 202 ], [ 200, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 152, 207 ], [ 207, 208 ], [ 425, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 217, 218 ], [ 217, 219 ], [ 214, 220 ], [ 220, 221 ], [ 220, 222 ], [ 211, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 225, 227 ], [ 211, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 229, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 234, 237 ], [ 237, 238 ], [ 237, 239 ], [ 229, 240 ], [ 240, 241 ], [ 240, 242 ], [ 242, 243 ], [ 243, 244 ], [ 242, 245 ], [ 245, 246 ], [ 245, 247 ], [ 247, 248 ], [ 248, 249 ], [ 247, 250 ], [ 250, 251 ], [ 250, 252 ], [ 209, 253 ], [ 253, 254 ], [ 209, 255 ], [ 255, 256 ], [ 425, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 261, 263 ], [ 260, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 259, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 270, 272 ], [ 269, 273 ], [ 273, 274 ], [ 274, 275 ], [ 274, 276 ], [ 273, 277 ], [ 268, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 281, 282 ], [ 282, 283 ], [ 283, 284 ], [ 284, 285 ], [ 281, 286 ], [ 278, 287 ], [ 287, 288 ], [ 287, 289 ], [ 425, 290 ], [ 290, 291 ], [ 290, 292 ], [ 292, 293 ], [ 293, 294 ], [ 292, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 296, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 425, 303 ], [ 303, 304 ], [ 303, 305 ], [ 305, 306 ], [ 306, 307 ], [ 305, 308 ], [ 308, 309 ], [ 309, 310 ], [ 310, 311 ], [ 309, 312 ], [ 312, 313 ], [ 312, 314 ], [ 314, 315 ], [ 425, 316 ], [ 316, 317 ], [ 316, 318 ], [ 318, 319 ], [ 319, 320 ], [ 318, 321 ], [ 321, 322 ], [ 322, 323 ], [ 322, 324 ], [ 324, 325 ], [ 425, 326 ], [ 326, 327 ], [ 326, 328 ], [ 328, 329 ], [ 329, 330 ], [ 328, 331 ], [ 331, 332 ], [ 331, 333 ], [ 334, 335 ], [ 334, 336 ], [ 328, 337 ], [ 337, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 337, 342 ], [ 342, 343 ], [ 342, 344 ], [ 344, 345 ], [ 344, 346 ], [ 337, 347 ], [ 347, 348 ], [ 348, 349 ], [ 337, 350 ], [ 351, 351 ], [ 351, 352 ], [ 352, 353 ], [ 353, 354 ], [ 353, 355 ], [ 352, 356 ], [ 356, 357 ], [ 357, 358 ], [ 356, 359 ], [ 359, 360 ], [ 359, 361 ], [ 328, 362 ], [ 362, 363 ], [ 362, 364 ], [ 364, 365 ], [ 364, 366 ], [ 328, 367 ], [ 367, 368 ], [ 425, 369 ], [ 369, 370 ], [ 369, 371 ], [ 371, 372 ], [ 372, 373 ], [ 371, 374 ], [ 374, 375 ], [ 374, 376 ], [ 377, 378 ], [ 377, 379 ], [ 371, 380 ], [ 380, 381 ], [ 381, 382 ], [ 382, 383 ], [ 382, 384 ], [ 380, 385 ], [ 385, 386 ], [ 385, 387 ], [ 387, 388 ], [ 387, 389 ], [ 380, 390 ], [ 390, 391 ], [ 391, 392 ], [ 380, 393 ], [ 394, 394 ], [ 394, 395 ], [ 395, 396 ], [ 396, 397 ], [ 396, 398 ], [ 395, 399 ], [ 399, 400 ], [ 400, 401 ], [ 399, 402 ], [ 402, 403 ], [ 402, 404 ], [ 371, 405 ], [ 405, 406 ], [ 405, 407 ], [ 407, 408 ], [ 407, 409 ], [ 371, 410 ], [ 410, 411 ], [ 425, 412 ], [ 412, 413 ], [ 412, 414 ], [ 414, 415 ], [ 415, 416 ], [ 414, 417 ], [ 417, 418 ], [ 417, 419 ], [ 419, 420 ], [ 419, 421 ], [ 414, 422 ], [ 422, 423 ], [ 0, 424 ], [ 424, 425 ], [ 424, 426 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nimport javax.lang.model.element.*;\n\npublic class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static long cnt=0;\n\tpublic static PrintWriter pw = new PrintWriter(System.out);\n\tpublic static void main(String[] args) throws Exception {\n\t\tsolutionC(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\n\tpublic static void solutionA(String[] args) throws Exception{\n\n\t\tint N = nextInt();\n\t\tN=N%10;\n\t\tif(N==2||N==4||N==5||N==7||N==9){\n\t\t\tpw.println(\"hon\");\n\t\t}else if(N==0||N==1||N==6||N==8){\n\t\t\tpw.println(\"pon\");\n\t\t}else{\n\t\t\tpw.println(\"bon\");\n\t\t}\n\n\n\t}\n\tpublic static void solutionB(String[] args) throws Exception{\n\n\t\tint K=nextInt();\n\t\tString S = nextString();\n\t\tif(S.length()<=K){\n\t\t\tpw.println(S);\n\t\t}else{\n\t\t\tpw.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\t}\n\n\tpublic static void solutionC(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\t\tdouble r = clockAngle(H,M);\n\t\tSystem.out.printf(\"%.12f\\n\",Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))));\n\t}\n\n\tpublic static double clockAngle(int H , int M){\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\treturn Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t}\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n}\n", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import javax.lang.model.element.*;", "element.*", "javax.lang.model", "public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static long cnt=0;\n\tpublic static PrintWriter pw = new PrintWriter(System.out);\n\tpublic static void main(String[] args) throws Exception {\n\t\tsolutionC(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\n\tpublic static void solutionA(String[] args) throws Exception{\n\n\t\tint N = nextInt();\n\t\tN=N%10;\n\t\tif(N==2||N==4||N==5||N==7||N==9){\n\t\t\tpw.println(\"hon\");\n\t\t}else if(N==0||N==1||N==6||N==8){\n\t\t\tpw.println(\"pon\");\n\t\t}else{\n\t\t\tpw.println(\"bon\");\n\t\t}\n\n\n\t}\n\tpublic static void solutionB(String[] args) throws Exception{\n\n\t\tint K=nextInt();\n\t\tString S = nextString();\n\t\tif(S.length()<=K){\n\t\t\tpw.println(S);\n\t\t}else{\n\t\t\tpw.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\t}\n\n\tpublic static void solutionC(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\t\tdouble r = clockAngle(H,M);\n\t\tSystem.out.printf(\"%.12f\\n\",Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))));\n\t}\n\n\tpublic static double clockAngle(int H , int M){\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\treturn Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t}\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n}", "Main", "final static long MOD = 1000000007;", "MOD", "1000000007", "public static String[] Ws = null;", "Ws", "null", "public static int wsIndx = 0;", "wsIndx", "0", "public static BufferedReader in = null;", "in", "null", "public static long cnt=0;", "cnt", "0", "public static PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "public static void main(String[] args) throws Exception {\n\t\tsolutionC(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}", "main", "{\n\t\tsolutionC(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}", "solutionC(args)", "solutionC", "args", "if(in!=null){\n\t\t\tin.close();\n\t\t}", "in!=null", "in", "null", "{\n\t\t\tin.close();\n\t\t}", "in.close()", "in.close", "in", "pw.flush()", "pw.flush", "pw", "pw.close()", "pw.close", "pw", "String[] args", "args", "public static void solutionA(String[] args) throws Exception{\n\n\t\tint N = nextInt();\n\t\tN=N%10;\n\t\tif(N==2||N==4||N==5||N==7||N==9){\n\t\t\tpw.println(\"hon\");\n\t\t}else if(N==0||N==1||N==6||N==8){\n\t\t\tpw.println(\"pon\");\n\t\t}else{\n\t\t\tpw.println(\"bon\");\n\t\t}\n\n\n\t}", "solutionA", "{\n\n\t\tint N = nextInt();\n\t\tN=N%10;\n\t\tif(N==2||N==4||N==5||N==7||N==9){\n\t\t\tpw.println(\"hon\");\n\t\t}else if(N==0||N==1||N==6||N==8){\n\t\t\tpw.println(\"pon\");\n\t\t}else{\n\t\t\tpw.println(\"bon\");\n\t\t}\n\n\n\t}", "int N = nextInt();", "N", "nextInt()", "nextInt", "N=N%10", "N", "N%10", "N", "10", "if(N==2||N==4||N==5||N==7||N==9){\n\t\t\tpw.println(\"hon\");\n\t\t}else if(N==0||N==1||N==6||N==8){\n\t\t\tpw.println(\"pon\");\n\t\t}else{\n\t\t\tpw.println(\"bon\");\n\t\t}", "N==2||N==4||N==5||N==7||N==9", "N==7", "N==5", "N==2||N==4||N==5||N==7||N==9", "N==2", "N", "2", "N==4", "N", "4", "N==5", "N", "5", "N==7", "N", "7", "N==9", "N", "9", "{\n\t\t\tpw.println(\"hon\");\n\t\t}", "pw.println(\"hon\")", "pw.println", "pw", "\"hon\"", "if(N==0||N==1||N==6||N==8){\n\t\t\tpw.println(\"pon\");\n\t\t}else{\n\t\t\tpw.println(\"bon\");\n\t\t}", "N==0||N==1||N==6||N==8", "N==6", "N==0||N==1||N==6||N==8", "N==0", "N", "0", "N==1", "N", "1", "N==6", "N", "6", "N==8", "N", "8", "{\n\t\t\tpw.println(\"pon\");\n\t\t}", "pw.println(\"pon\")", "pw.println", "pw", "\"pon\"", "{\n\t\t\tpw.println(\"bon\");\n\t\t}", "pw.println(\"bon\")", "pw.println", "pw", "\"bon\"", "String[] args", "args", "public static void solutionB(String[] args) throws Exception{\n\n\t\tint K=nextInt();\n\t\tString S = nextString();\n\t\tif(S.length()<=K){\n\t\t\tpw.println(S);\n\t\t}else{\n\t\t\tpw.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\t}", "solutionB", "{\n\n\t\tint K=nextInt();\n\t\tString S = nextString();\n\t\tif(S.length()<=K){\n\t\t\tpw.println(S);\n\t\t}else{\n\t\t\tpw.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\t}", "int K=nextInt();", "K", "nextInt()", "nextInt", "String S = nextString();", "S", "nextString()", "nextString", "if(S.length()<=K){\n\t\t\tpw.println(S);\n\t\t}else{\n\t\t\tpw.println(S.substring(0,K)+\"...\");\n\t\t}", "S.length()<=K", "S.length()", "S.length", "S", "K", "{\n\t\t\tpw.println(S);\n\t\t}", "pw.println(S)", "pw.println", "pw", "S", "{\n\t\t\tpw.println(S.substring(0,K)+\"...\");\n\t\t}", "pw.println(S.substring(0,K)+\"...\")", "pw.println", "pw", "S.substring(0,K)+\"...\"", "S.substring(0,K)", "S.substring", "S", "0", "K", "\"...\"", "String[] args", "args", "public static void solutionC(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\t\tdouble r = clockAngle(H,M);\n\t\tSystem.out.printf(\"%.12f\\n\",Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))));\n\t}", "solutionC", "{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\t\tdouble r = clockAngle(H,M);\n\t\tSystem.out.printf(\"%.12f\\n\",Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))));\n\t}", "int A = nextInt();", "A", "nextInt()", "nextInt", "int B = nextInt();", "B", "nextInt()", "nextInt", "int H = nextInt();", "H", "nextInt()", "nextInt", "int M = nextInt();", "M", "nextInt()", "nextInt", "double r = clockAngle(H,M);", "r", "clockAngle(H,M)", "clockAngle", "H", "M", "System.out.printf(\"%.12f\\n\",Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))))", "System.out.printf", "System.out", "System", "System.out", "\"%.12f\\n\"", "Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)))", "Math.sqrt", "Math", "A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))", "A*A+B*B", "A*A", "A", "A", "B*B", "B", "B", "2*A*B*Math.cos(Math.toRadians(r))", "B", "2*A*B*Math.cos(Math.toRadians(r))", "2", "A", "B", "Math.cos(Math.toRadians(r))", "Math.cos", "Math", "Math.toRadians(r)", "Math.toRadians", "Math", "r", "String[] args", "args", "public static double clockAngle(int H , int M){\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\treturn Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t}", "clockAngle", "{\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\treturn Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t}", "double x=30*(H%12)+0.5*M;", "x", "30*(H%12)+0.5*M", "30*(H%12)", "30", "(H%12)", "H", "12", "0.5*M", "0.5", "M", "double y=6*M;", "y", "6*M", "6", "M", "return Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));", "Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)))", "Math.min", "Math", "1.0*Math.abs(x-y)", "1.0", "Math.abs(x-y)", "Math.abs", "Math", "x-y", "x", "y", "1.0*Math.abs(360-Math.abs(x-y))", "1.0", "Math.abs(360-Math.abs(x-y))", "Math.abs", "Math", "360-Math.abs(x-y)", "360", "Math.abs(x-y)", "Math.abs", "Math", "x-y", "x", "y", "int H", "H", "int M", "M", "public static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}", "check", "{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}", "if(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "in == null", "in", "null", "{\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}", "in = new BufferedReader(new InputStreamReader(System.in))", "in", "new BufferedReader(new InputStreamReader(System.in))", "if(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}", "Ws==null || Ws.length<=wsIndx", "Ws==null", "Ws", "null", "Ws.length<=wsIndx", "Ws.length", "Ws", "Ws.length", "wsIndx", "{\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}", "Ws = in.readLine().split(\" \")", "Ws", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "wsIndx=0", "wsIndx", "0", "public static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}", "nextInt", "{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}", "check()", "check", "return Integer.parseInt(Ws[wsIndx++]);", "Integer.parseInt(Ws[wsIndx++])", "Integer.parseInt", "Integer", "Ws[wsIndx++]", "Ws", "wsIndx++", "wsIndx", "public static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}", "nextLong", "{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}", "check()", "check", "return Long.parseLong(Ws[wsIndx++]);", "Long.parseLong(Ws[wsIndx++])", "Long.parseLong", "Long", "Ws[wsIndx++]", "Ws", "wsIndx++", "wsIndx", "public static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}", "nextString", "{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}", "check()", "check", "return Ws[wsIndx++];", "Ws[wsIndx++]", "Ws", "wsIndx++", "wsIndx", "public static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}", "nextInts", "{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}", "check()", "check", "int[] tmp = new int[Ws.length];", "tmp", "new int[Ws.length]", "Ws.length", "Ws", "Ws.length", "for(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<tmp.length", "i", "tmp.length", "tmp", "tmp.length", "i++", "i++", "i", "{\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}", "{\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}", "tmp[i]=Integer.parseInt(Ws[i])", "tmp[i]", "tmp", "i", "Integer.parseInt(Ws[i])", "Integer.parseInt", "Integer", "Ws[i]", "Ws", "i", "wsIndx=Ws.length", "wsIndx", "Ws.length", "Ws", "Ws.length", "return tmp;", "tmp", "public static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}", "nextLongs", "{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}", "check()", "check", "long[] tmp = new long[Ws.length];", "tmp", "new long[Ws.length]", "Ws.length", "Ws", "Ws.length", "for(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<tmp.length", "i", "tmp.length", "tmp", "tmp.length", "i++", "i++", "i", "{\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}", "{\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}", "tmp[i]=Long.parseLong(Ws[i])", "tmp[i]", "tmp", "i", "Long.parseLong(Ws[i])", "Long.parseLong", "Long", "Ws[i]", "Ws", "i", "wsIndx=Ws.length", "wsIndx", "Ws.length", "Ws", "Ws.length", "return tmp;", "tmp", "public static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}", "nextStrings", "{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}", "check()", "check", "wsIndx=Ws.length", "wsIndx", "Ws.length", "Ws", "Ws.length", "return Ws;", "Ws", "public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static long cnt=0;\n\tpublic static PrintWriter pw = new PrintWriter(System.out);\n\tpublic static void main(String[] args) throws Exception {\n\t\tsolutionC(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\n\tpublic static void solutionA(String[] args) throws Exception{\n\n\t\tint N = nextInt();\n\t\tN=N%10;\n\t\tif(N==2||N==4||N==5||N==7||N==9){\n\t\t\tpw.println(\"hon\");\n\t\t}else if(N==0||N==1||N==6||N==8){\n\t\t\tpw.println(\"pon\");\n\t\t}else{\n\t\t\tpw.println(\"bon\");\n\t\t}\n\n\n\t}\n\tpublic static void solutionB(String[] args) throws Exception{\n\n\t\tint K=nextInt();\n\t\tString S = nextString();\n\t\tif(S.length()<=K){\n\t\t\tpw.println(S);\n\t\t}else{\n\t\t\tpw.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\t}\n\n\tpublic static void solutionC(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\t\tdouble r = clockAngle(H,M);\n\t\tSystem.out.printf(\"%.12f\\n\",Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))));\n\t}\n\n\tpublic static double clockAngle(int H , int M){\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\treturn Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t}\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n}", "public class Main {\n\n\tfinal static long MOD = 1000000007;\n\tpublic static String[] Ws = null;\n\tpublic static int wsIndx = 0;\n\tpublic static BufferedReader in = null;\n\tpublic static long cnt=0;\n\tpublic static PrintWriter pw = new PrintWriter(System.out);\n\tpublic static void main(String[] args) throws Exception {\n\t\tsolutionC(args);\n\t\tif(in!=null){\n\t\t\tin.close();\n\t\t}\n\t\tpw.flush();\n\t\tpw.close();\n\t}\n\n\tpublic static void solutionA(String[] args) throws Exception{\n\n\t\tint N = nextInt();\n\t\tN=N%10;\n\t\tif(N==2||N==4||N==5||N==7||N==9){\n\t\t\tpw.println(\"hon\");\n\t\t}else if(N==0||N==1||N==6||N==8){\n\t\t\tpw.println(\"pon\");\n\t\t}else{\n\t\t\tpw.println(\"bon\");\n\t\t}\n\n\n\t}\n\tpublic static void solutionB(String[] args) throws Exception{\n\n\t\tint K=nextInt();\n\t\tString S = nextString();\n\t\tif(S.length()<=K){\n\t\t\tpw.println(S);\n\t\t}else{\n\t\t\tpw.println(S.substring(0,K)+\"...\");\n\t\t}\n\n\n\t}\n\n\tpublic static void solutionC(String[] args) throws Exception{\n\n\t\tint A = nextInt();\n\t\tint B = nextInt();\n\t\tint H = nextInt();\n\t\tint M = nextInt();\n\n\t\tdouble r = clockAngle(H,M);\n\t\tSystem.out.printf(\"%.12f\\n\",Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r))));\n\t}\n\n\tpublic static double clockAngle(int H , int M){\n\t\tdouble x=30*(H%12)+0.5*M;\n\t\tdouble y=6*M;\n\n\t\t//内角の角度\n\t\treturn Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y)));\n\n\t}\n\n\tpublic static void check() throws Exception{\n\t\tif(in == null){\n\t\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t\t}\n\t\tif(Ws==null || Ws.length<=wsIndx){\n\t\t\tWs = in.readLine().split(\" \");\n\t\t\twsIndx=0;\n\t\t}\n\t}\n\tpublic static int nextInt()throws Exception{\n\t\tcheck();\n\t\treturn Integer.parseInt(Ws[wsIndx++]);\n\t}\n\n\tpublic static long nextLong()throws Exception{\n\t\tcheck();\n\t\treturn Long.parseLong(Ws[wsIndx++]);\n\t}\n\n\tpublic static String nextString()throws Exception{\n\t\tcheck();\n\t\treturn Ws[wsIndx++];\n\t}\n\n\tpublic static int[] nextInts()throws Exception{\n\t\tcheck();\n\t\tint[] tmp = new int[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Integer.parseInt(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static long[] nextLongs()throws Exception{\n\t\tcheck();\n\t\tlong[] tmp = new long[Ws.length];\n\t\tfor(int i=0;i<tmp.length;i++){\n\t\t\ttmp[i]=Long.parseLong(Ws[i]);\n\t\t}\n\t\twsIndx=Ws.length;\n\t\treturn tmp;\n\t}\n\n\tpublic static String[] nextStrings()throws Exception{\n\t\tcheck();\n\t\twsIndx=Ws.length;\n\t\treturn Ws;\n\t}\n\n}", "Main" ]
import java.io.*; import java.util.*; import javax.lang.model.element.*; public class Main { final static long MOD = 1000000007; public static String[] Ws = null; public static int wsIndx = 0; public static BufferedReader in = null; public static long cnt=0; public static PrintWriter pw = new PrintWriter(System.out); public static void main(String[] args) throws Exception { solutionC(args); if(in!=null){ in.close(); } pw.flush(); pw.close(); } public static void solutionA(String[] args) throws Exception{ int N = nextInt(); N=N%10; if(N==2||N==4||N==5||N==7||N==9){ pw.println("hon"); }else if(N==0||N==1||N==6||N==8){ pw.println("pon"); }else{ pw.println("bon"); } } public static void solutionB(String[] args) throws Exception{ int K=nextInt(); String S = nextString(); if(S.length()<=K){ pw.println(S); }else{ pw.println(S.substring(0,K)+"..."); } } public static void solutionC(String[] args) throws Exception{ int A = nextInt(); int B = nextInt(); int H = nextInt(); int M = nextInt(); double r = clockAngle(H,M); System.out.printf("%.12f\n",Math.sqrt(A*A+B*B-2*A*B*Math.cos(Math.toRadians(r)))); } public static double clockAngle(int H , int M){ double x=30*(H%12)+0.5*M; double y=6*M; //内角の角度 return Math.min(1.0*Math.abs(x-y),1.0*Math.abs(360-Math.abs(x-y))); } public static void check() throws Exception{ if(in == null){ in = new BufferedReader(new InputStreamReader(System.in)); } if(Ws==null || Ws.length<=wsIndx){ Ws = in.readLine().split(" "); wsIndx=0; } } public static int nextInt()throws Exception{ check(); return Integer.parseInt(Ws[wsIndx++]); } public static long nextLong()throws Exception{ check(); return Long.parseLong(Ws[wsIndx++]); } public static String nextString()throws Exception{ check(); return Ws[wsIndx++]; } public static int[] nextInts()throws Exception{ check(); int[] tmp = new int[Ws.length]; for(int i=0;i<tmp.length;i++){ tmp[i]=Integer.parseInt(Ws[i]); } wsIndx=Ws.length; return tmp; } public static long[] nextLongs()throws Exception{ check(); long[] tmp = new long[Ws.length]; for(int i=0;i<tmp.length;i++){ tmp[i]=Long.parseLong(Ws[i]); } wsIndx=Ws.length; return tmp; } public static String[] nextStrings()throws Exception{ check(); wsIndx=Ws.length; return Ws; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 2, 2, 17, 13, 2, 17, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 2, 17, 13, 41, 13, 2, 13, 4, 18, 13, 4, 18, 13, 2, 17, 2, 17, 13, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 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 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 8, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 8, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 8, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 8, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 8, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 125, 129 ], [ 129, 130 ], [ 129, 131 ], [ 8, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 6, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n double hx = a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double hy = a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double mx = b * Math.cos(Math.toRadians(90.0 - (6.0 * m)));\n double my = b * Math.sin(Math.toRadians(90.0 - (6.0 * m)));\n double rad = Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy));\n System.out.println(rad);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n double hx = a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double hy = a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double mx = b * Math.cos(Math.toRadians(90.0 - (6.0 * m)));\n double my = b * Math.sin(Math.toRadians(90.0 - (6.0 * m)));\n double rad = Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy));\n System.out.println(rad);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n double hx = a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double hy = a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double mx = b * Math.cos(Math.toRadians(90.0 - (6.0 * m)));\n double my = b * Math.sin(Math.toRadians(90.0 - (6.0 * m)));\n double rad = Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy));\n System.out.println(rad);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n double hx = a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double hy = a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double mx = b * Math.cos(Math.toRadians(90.0 - (6.0 * m)));\n double my = b * Math.sin(Math.toRadians(90.0 - (6.0 * m)));\n double rad = Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy));\n System.out.println(rad);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int a = Integer.parseInt(sc.next());", "a", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int b = Integer.parseInt(sc.next());", "b", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int h = Integer.parseInt(sc.next());", "h", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int m = Integer.parseInt(sc.next());", "m", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "double hx = a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));", "hx", "a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)))", "a", "Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)))", "Math.cos", "Math", "Math.toRadians(90.0 - (30.0 * h + 0.5 * m))", "Math.toRadians", "Math", "90.0 - (30.0 * h + 0.5 * m)", "90.0", "(30.0 * h + 0.5 * m)", "30.0 * h", "30.0", "h", "0.5 * m", "0.5", "m", "double hy = a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));", "hy", "a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)))", "a", "Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)))", "Math.sin", "Math", "Math.toRadians(90.0 - (30.0 * h + 0.5 * m))", "Math.toRadians", "Math", "90.0 - (30.0 * h + 0.5 * m)", "90.0", "(30.0 * h + 0.5 * m)", "30.0 * h", "30.0", "h", "0.5 * m", "0.5", "m", "double mx = b * Math.cos(Math.toRadians(90.0 - (6.0 * m)));", "mx", "b * Math.cos(Math.toRadians(90.0 - (6.0 * m)))", "b", "Math.cos(Math.toRadians(90.0 - (6.0 * m)))", "Math.cos", "Math", "Math.toRadians(90.0 - (6.0 * m))", "Math.toRadians", "Math", "90.0 - (6.0 * m)", "90.0", "(6.0 * m)", "6.0", "m", "double my = b * Math.sin(Math.toRadians(90.0 - (6.0 * m)));", "my", "b * Math.sin(Math.toRadians(90.0 - (6.0 * m)))", "b", "Math.sin(Math.toRadians(90.0 - (6.0 * m)))", "Math.sin", "Math", "Math.toRadians(90.0 - (6.0 * m))", "Math.toRadians", "Math", "90.0 - (6.0 * m)", "90.0", "(6.0 * m)", "6.0", "m", "double rad = Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy));", "rad", "Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy))", "Math.sqrt", "Math", "(mx - hx) * (mx - hx) + (my - hy) * (my - hy)", "(mx - hx) * (mx - hx)", "(mx - hx)", "mx", "hx", "(mx - hx)", "mx", "hx", "(my - hy) * (my - hy)", "(my - hy)", "my", "hy", "(my - hy)", "my", "hy", "System.out.println(rad)", "System.out.println", "System.out", "System", "System.out", "rad", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n double hx = a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double hy = a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double mx = b * Math.cos(Math.toRadians(90.0 - (6.0 * m)));\n double my = b * Math.sin(Math.toRadians(90.0 - (6.0 * m)));\n double rad = Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy));\n System.out.println(rad);\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int h = Integer.parseInt(sc.next());\n int m = Integer.parseInt(sc.next());\n double hx = a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double hy = a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m)));\n double mx = b * Math.cos(Math.toRadians(90.0 - (6.0 * m)));\n double my = b * Math.sin(Math.toRadians(90.0 - (6.0 * m)));\n double rad = Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy));\n System.out.println(rad);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); int h = Integer.parseInt(sc.next()); int m = Integer.parseInt(sc.next()); double hx = a * Math.cos(Math.toRadians(90.0 - (30.0 * h + 0.5 * m))); double hy = a * Math.sin(Math.toRadians(90.0 - (30.0 * h + 0.5 * m))); double mx = b * Math.cos(Math.toRadians(90.0 - (6.0 * m))); double my = b * Math.sin(Math.toRadians(90.0 - (6.0 * m))); double rad = Math.sqrt((mx - hx) * (mx - hx) + (my - hy) * (my - hy)); System.out.println(rad); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 2, 2, 2, 18, 13, 13, 2, 2, 17, 13, 13, 2, 17, 17, 17, 41, 13, 2, 2, 2, 18, 13, 13, 13, 17, 17, 41, 13, 4, 18, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 2, 2, 17, 13, 13, 4, 18, 13, 4, 18, 13, 2, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 120, 8 ], [ 120, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 17, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 11, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 11, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 11, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 58, 68 ], [ 68, 69 ], [ 68, 70 ], [ 57, 71 ], [ 11, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 75, 81 ], [ 74, 82 ], [ 11, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 98, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 108, 109 ], [ 108, 110 ], [ 11, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 9, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n String[] line = bufferedReader.readLine().split(\" \");\n int A = Integer.parseInt(line[0]);\n int B = Integer.parseInt(line[1]);\n int H = Integer.parseInt(line[2]);\n int M = Integer.parseInt(line[3]);\n double radA = Math.PI * (60 * H + M) / (60 * 12) * 2;\n double radB = Math.PI * M / 60 * 2;\n double C = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB)));\n System.out.println(C);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n String[] line = bufferedReader.readLine().split(\" \");\n int A = Integer.parseInt(line[0]);\n int B = Integer.parseInt(line[1]);\n int H = Integer.parseInt(line[2]);\n int M = Integer.parseInt(line[3]);\n double radA = Math.PI * (60 * H + M) / (60 * 12) * 2;\n double radB = Math.PI * M / 60 * 2;\n double C = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB)));\n System.out.println(C);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n String[] line = bufferedReader.readLine().split(\" \");\n int A = Integer.parseInt(line[0]);\n int B = Integer.parseInt(line[1]);\n int H = Integer.parseInt(line[2]);\n int M = Integer.parseInt(line[3]);\n double radA = Math.PI * (60 * H + M) / (60 * 12) * 2;\n double radB = Math.PI * M / 60 * 2;\n double C = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB)));\n System.out.println(C);\n }", "main", "{\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n String[] line = bufferedReader.readLine().split(\" \");\n int A = Integer.parseInt(line[0]);\n int B = Integer.parseInt(line[1]);\n int H = Integer.parseInt(line[2]);\n int M = Integer.parseInt(line[3]);\n double radA = Math.PI * (60 * H + M) / (60 * 12) * 2;\n double radB = Math.PI * M / 60 * 2;\n double C = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB)));\n System.out.println(C);\n }", "BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));", "bufferedReader", "new BufferedReader(new InputStreamReader(System.in))", "String[] line = bufferedReader.readLine().split(\" \");", "line", "bufferedReader.readLine().split(\" \")", "bufferedReader.readLine().split", "bufferedReader.readLine()", "bufferedReader.readLine", "bufferedReader", "\" \"", "int A = Integer.parseInt(line[0]);", "A", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "int B = Integer.parseInt(line[1]);", "B", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "int H = Integer.parseInt(line[2]);", "H", "Integer.parseInt(line[2])", "Integer.parseInt", "Integer", "line[2]", "line", "2", "int M = Integer.parseInt(line[3]);", "M", "Integer.parseInt(line[3])", "Integer.parseInt", "Integer", "line[3]", "line", "3", "double radA = Math.PI * (60 * H + M) / (60 * 12) * 2;", "radA", "Math.PI * (60 * H + M) / (60 * 12) * 2", "Math.PI * (60 * H + M) / (60 * 12)", "Math.PI * (60 * H + M)", "Math.PI", "Math", "Math.PI", "(60 * H + M)", "60 * H", "60", "H", "M", "(60 * 12)", "60", "12", "2", "double radB = Math.PI * M / 60 * 2;", "radB", "Math.PI * M / 60 * 2", "Math.PI * M / 60", "Math.PI * M", "Math.PI", "Math", "Math.PI", "M", "60", "2", "double C = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB)));", "C", "Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB)))", "Math.sqrt", "Math", "A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB))", "A * A + B * B", "A * A", "A", "A", "B * B", "B", "B", "2 * A * B * Math.cos(Math.abs(radA - radB))", "B", "2 * A * B * Math.cos(Math.abs(radA - radB))", "2", "A", "B", "Math.cos(Math.abs(radA - radB))", "Math.cos", "Math", "Math.abs(radA - radB)", "Math.abs", "Math", "radA - radB", "radA", "radB", "System.out.println(C)", "System.out.println", "System.out", "System", "System.out", "C", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n String[] line = bufferedReader.readLine().split(\" \");\n int A = Integer.parseInt(line[0]);\n int B = Integer.parseInt(line[1]);\n int H = Integer.parseInt(line[2]);\n int M = Integer.parseInt(line[3]);\n double radA = Math.PI * (60 * H + M) / (60 * 12) * 2;\n double radB = Math.PI * M / 60 * 2;\n double C = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB)));\n System.out.println(C);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n String[] line = bufferedReader.readLine().split(\" \");\n int A = Integer.parseInt(line[0]);\n int B = Integer.parseInt(line[1]);\n int H = Integer.parseInt(line[2]);\n int M = Integer.parseInt(line[3]);\n double radA = Math.PI * (60 * H + M) / (60 * 12) * 2;\n double radB = Math.PI * M / 60 * 2;\n double C = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB)));\n System.out.println(C);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); String[] line = bufferedReader.readLine().split(" "); int A = Integer.parseInt(line[0]); int B = Integer.parseInt(line[1]); int H = Integer.parseInt(line[2]); int M = Integer.parseInt(line[3]); double radA = Math.PI * (60 * H + M) / (60 * 12) * 2; double radB = Math.PI * M / 60 * 2; double C = Math.sqrt(A * A + B * B - 2 * A * B * Math.cos(Math.abs(radA - radB))); System.out.println(C); } }